Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
559 | stage2_werror_flag | |
560 | stage1_checking | |
561 | stage1_cflags | |
562 | MAINT | |
563 | MAINTAINER_MODE_FALSE | |
564 | MAINTAINER_MODE_TRUE | |
565 | COMPILER_NM_FOR_TARGET | |
566 | COMPILER_LD_FOR_TARGET | |
567 | COMPILER_AS_FOR_TARGET | |
568 | FLAGS_FOR_TARGET | |
569 | RAW_CXX_FOR_TARGET | |
570 | WINDMC_FOR_TARGET | |
571 | WINDRES_FOR_TARGET | |
572 | STRIP_FOR_TARGET | |
b121d7d4 | 573 | READELF_FOR_TARGET |
81ecdfbb RW |
574 | RANLIB_FOR_TARGET |
575 | OBJDUMP_FOR_TARGET | |
576 | NM_FOR_TARGET | |
577 | LIPO_FOR_TARGET | |
578 | LD_FOR_TARGET | |
579 | DLLTOOL_FOR_TARGET | |
580 | AS_FOR_TARGET | |
581 | AR_FOR_TARGET | |
e552509b | 582 | GOC_FOR_TARGET |
81ecdfbb RW |
583 | GFORTRAN_FOR_TARGET |
584 | GCJ_FOR_TARGET | |
585 | GCC_FOR_TARGET | |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
b121d7d4 | 588 | READELF |
81ecdfbb RW |
589 | OBJDUMP |
590 | OBJCOPY | |
591 | WINDMC | |
592 | WINDRES | |
593 | STRIP | |
594 | RANLIB | |
595 | NM | |
596 | LIPO | |
597 | LD | |
598 | DLLTOOL | |
599 | AS | |
600 | AR | |
601 | RUNTEST | |
602 | EXPECT | |
603 | MAKEINFO | |
604 | FLEX | |
605 | LEX | |
606 | M4 | |
607 | BISON | |
608 | YACC | |
81ecdfbb RW |
609 | WINDRES_FOR_BUILD |
610 | WINDMC_FOR_BUILD | |
611 | RANLIB_FOR_BUILD | |
612 | NM_FOR_BUILD | |
613 | LD_FOR_BUILD | |
614 | LDFLAGS_FOR_BUILD | |
e552509b | 615 | GOC_FOR_BUILD |
81ecdfbb RW |
616 | GFORTRAN_FOR_BUILD |
617 | GCJ_FOR_BUILD | |
618 | DLLTOOL_FOR_BUILD | |
619 | CXX_FOR_BUILD | |
620 | CXXFLAGS_FOR_BUILD | |
621 | CFLAGS_FOR_BUILD | |
622 | CC_FOR_BUILD | |
623 | AS_FOR_BUILD | |
624 | AR_FOR_BUILD | |
911e63d0 | 625 | target_configdirs |
81ecdfbb | 626 | configdirs |
81ecdfbb | 627 | build_configdirs |
81ecdfbb RW |
628 | INSTALL_GDB_TK |
629 | GDB_TK | |
630 | CONFIGURE_GDB_TK | |
631 | build_tooldir | |
632 | tooldir | |
633 | GCC_SHLIB_SUBDIR | |
634 | RPATH_ENVVAR | |
4074d5f2 RW |
635 | target_configargs |
636 | host_configargs | |
637 | build_configargs | |
96655cc4 | 638 | BUILD_CONFIG |
91c1f14c | 639 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
640 | CXXFLAGS_FOR_TARGET |
641 | CFLAGS_FOR_TARGET | |
642 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
643 | SYSROOT_CFLAGS_FOR_TARGET | |
644 | stage1_languages | |
700d40ca | 645 | extra_host_libiberty_configure_flags |
81ecdfbb RW |
646 | clooginc |
647 | clooglibs | |
7ec59b9e L |
648 | islinc |
649 | isllibs | |
81ecdfbb | 650 | poststage1_ldflags |
143754cd | 651 | poststage1_libs |
81ecdfbb RW |
652 | stage1_libs |
653 | stage1_ldflags | |
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 | |
ffdd6afc ILT |
753 | enable_static_libjava |
754 | enable_bootstrap | |
81ecdfbb RW |
755 | with_mpc |
756 | with_mpc_include | |
757 | with_mpc_lib | |
758 | with_mpfr_dir | |
759 | with_mpfr | |
760 | with_mpfr_include | |
761 | with_mpfr_lib | |
762 | with_gmp_dir | |
763 | with_gmp | |
764 | with_gmp_include | |
765 | with_gmp_lib | |
766 | with_host_libstdcxx | |
767 | with_stage1_ldflags | |
768 | with_stage1_libs | |
81ecdfbb | 769 | with_boot_libs |
143754cd | 770 | with_boot_ldflags |
7ec59b9e L |
771 | with_isl |
772 | with_isl_include | |
773 | with_isl_lib | |
774 | enable_isl_version_check | |
81ecdfbb RW |
775 | with_cloog |
776 | with_cloog_include | |
777 | with_cloog_lib | |
778 | enable_cloog_version_check | |
700d40ca | 779 | enable_lto |
81ecdfbb RW |
780 | enable_stage1_languages |
781 | enable_objc_gc | |
782 | with_build_sysroot | |
783 | with_debug_prefix_map | |
96655cc4 | 784 | with_build_config |
81ecdfbb RW |
785 | enable_serial_configure |
786 | with_build_time_tools | |
787 | enable_maintainer_mode | |
788 | enable_stage1_checking | |
789 | enable_werror | |
81ecdfbb RW |
790 | ' |
791 | ac_precious_vars='build_alias | |
792 | host_alias | |
793 | target_alias | |
794 | CC | |
795 | CFLAGS | |
796 | LDFLAGS | |
797 | LIBS | |
798 | CPPFLAGS | |
799 | CXX | |
800 | CXXFLAGS | |
801 | CCC | |
4074d5f2 RW |
802 | build_configargs |
803 | host_configargs | |
804 | target_configargs | |
81ecdfbb RW |
805 | AR |
806 | AS | |
807 | DLLTOOL | |
808 | LD | |
809 | LIPO | |
810 | NM | |
811 | RANLIB | |
812 | STRIP | |
813 | WINDRES | |
814 | WINDMC | |
815 | OBJCOPY | |
816 | OBJDUMP | |
b121d7d4 | 817 | READELF |
81ecdfbb RW |
818 | CC_FOR_TARGET |
819 | CXX_FOR_TARGET | |
820 | GCC_FOR_TARGET | |
821 | GCJ_FOR_TARGET | |
822 | GFORTRAN_FOR_TARGET | |
e552509b | 823 | GOC_FOR_TARGET |
81ecdfbb RW |
824 | AR_FOR_TARGET |
825 | AS_FOR_TARGET | |
826 | DLLTOOL_FOR_TARGET | |
827 | LD_FOR_TARGET | |
828 | LIPO_FOR_TARGET | |
829 | NM_FOR_TARGET | |
830 | OBJDUMP_FOR_TARGET | |
831 | RANLIB_FOR_TARGET | |
b121d7d4 | 832 | READELF_FOR_TARGET |
81ecdfbb RW |
833 | STRIP_FOR_TARGET |
834 | WINDRES_FOR_TARGET | |
835 | WINDMC_FOR_TARGET' | |
836 | ||
a0da8069 NN |
837 | |
838 | # Initialize some variables set by options. | |
c6b750e1 DJ |
839 | ac_init_help= |
840 | ac_init_version=false | |
81ecdfbb RW |
841 | ac_unrecognized_opts= |
842 | ac_unrecognized_sep= | |
a0da8069 NN |
843 | # The variables have the same names as the options, with |
844 | # dashes changed to underlines. | |
c6b750e1 | 845 | cache_file=/dev/null |
a0da8069 | 846 | exec_prefix=NONE |
a0da8069 | 847 | no_create= |
a0da8069 NN |
848 | no_recursion= |
849 | prefix=NONE | |
850 | program_prefix=NONE | |
851 | program_suffix=NONE | |
852 | program_transform_name=s,x,x, | |
853 | silent= | |
854 | site= | |
855 | srcdir= | |
a0da8069 NN |
856 | verbose= |
857 | x_includes=NONE | |
858 | x_libraries=NONE | |
c6b750e1 DJ |
859 | |
860 | # Installation directory options. | |
861 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
862 | # and all the variables that are supposed to be based on exec_prefix | |
863 | # by default will actually change. | |
864 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 865 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
866 | bindir='${exec_prefix}/bin' |
867 | sbindir='${exec_prefix}/sbin' | |
868 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
869 | datarootdir='${prefix}/share' |
870 | datadir='${datarootdir}' | |
a0da8069 NN |
871 | sysconfdir='${prefix}/etc' |
872 | sharedstatedir='${prefix}/com' | |
873 | localstatedir='${prefix}/var' | |
a0da8069 NN |
874 | includedir='${prefix}/include' |
875 | oldincludedir='/usr/include' | |
81ecdfbb RW |
876 | docdir='${datarootdir}/doc/${PACKAGE}' |
877 | infodir='${datarootdir}/info' | |
878 | htmldir='${docdir}' | |
879 | dvidir='${docdir}' | |
880 | pdfdir='${docdir}' | |
881 | psdir='${docdir}' | |
882 | libdir='${exec_prefix}/lib' | |
883 | localedir='${datarootdir}/locale' | |
884 | mandir='${datarootdir}/man' | |
252b5132 | 885 | |
a0da8069 | 886 | ac_prev= |
81ecdfbb | 887 | ac_dashdash= |
a0da8069 NN |
888 | for ac_option |
889 | do | |
a0da8069 NN |
890 | # If the previous option needs an argument, assign it. |
891 | if test -n "$ac_prev"; then | |
81ecdfbb | 892 | eval $ac_prev=\$ac_option |
a0da8069 NN |
893 | ac_prev= |
894 | continue | |
895 | fi | |
252b5132 | 896 | |
81ecdfbb RW |
897 | case $ac_option in |
898 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
899 | *) ac_optarg=yes ;; | |
900 | esac | |
a0da8069 NN |
901 | |
902 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
903 | ||
81ecdfbb RW |
904 | case $ac_dashdash$ac_option in |
905 | --) | |
906 | ac_dashdash=yes ;; | |
a0da8069 NN |
907 | |
908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
909 | ac_prev=bindir ;; | |
910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 911 | bindir=$ac_optarg ;; |
a0da8069 NN |
912 | |
913 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 914 | ac_prev=build_alias ;; |
a0da8069 | 915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 916 | build_alias=$ac_optarg ;; |
a0da8069 NN |
917 | |
918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
920 | ac_prev=cache_file ;; | |
921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
923 | cache_file=$ac_optarg ;; |
924 | ||
925 | --config-cache | -C) | |
926 | cache_file=config.cache ;; | |
a0da8069 | 927 | |
81ecdfbb | 928 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 929 | ac_prev=datadir ;; |
81ecdfbb | 930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 931 | datadir=$ac_optarg ;; |
a0da8069 | 932 | |
81ecdfbb RW |
933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
934 | | --dataroo | --dataro | --datar) | |
935 | ac_prev=datarootdir ;; | |
936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
938 | datarootdir=$ac_optarg ;; | |
939 | ||
a0da8069 | 940 | -disable-* | --disable-*) |
81ecdfbb | 941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 942 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
944 | as_fn_error "invalid feature name: $ac_useropt" | |
945 | ac_useropt_orig=$ac_useropt | |
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
947 | case $ac_user_opts in | |
948 | *" | |
949 | "enable_$ac_useropt" | |
950 | "*) ;; | |
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
952 | ac_unrecognized_sep=', ';; | |
953 | esac | |
954 | eval enable_$ac_useropt=no ;; | |
955 | ||
956 | -docdir | --docdir | --docdi | --doc | --do) | |
957 | ac_prev=docdir ;; | |
958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
959 | docdir=$ac_optarg ;; | |
960 | ||
961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
962 | ac_prev=dvidir ;; | |
963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
964 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
965 | |
966 | -enable-* | --enable-*) | |
81ecdfbb | 967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 968 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
970 | as_fn_error "invalid feature name: $ac_useropt" | |
971 | ac_useropt_orig=$ac_useropt | |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
a0da8069 | 979 | esac |
81ecdfbb | 980 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
981 | |
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
984 | | --exec | --exe | --ex) | |
985 | ac_prev=exec_prefix ;; | |
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
988 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 989 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
990 | |
991 | -gas | --gas | --ga | --g) | |
992 | # Obsolete; use --with-gas. | |
993 | with_gas=yes ;; | |
994 | ||
c6b750e1 DJ |
995 | -help | --help | --hel | --he | -h) |
996 | ac_init_help=long ;; | |
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
998 | ac_init_help=recursive ;; | |
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1000 | ac_init_help=short ;; | |
a0da8069 NN |
1001 | |
1002 | -host | --host | --hos | --ho) | |
c6b750e1 | 1003 | ac_prev=host_alias ;; |
a0da8069 | 1004 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1005 | host_alias=$ac_optarg ;; |
a0da8069 | 1006 | |
81ecdfbb RW |
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1008 | ac_prev=htmldir ;; | |
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1010 | | --ht=*) | |
1011 | htmldir=$ac_optarg ;; | |
1012 | ||
a0da8069 NN |
1013 | -includedir | --includedir | --includedi | --included | --include \ |
1014 | | --includ | --inclu | --incl | --inc) | |
1015 | ac_prev=includedir ;; | |
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1018 | includedir=$ac_optarg ;; |
a0da8069 NN |
1019 | |
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1021 | ac_prev=infodir ;; | |
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1023 | infodir=$ac_optarg ;; |
a0da8069 NN |
1024 | |
1025 | -libdir | --libdir | --libdi | --libd) | |
1026 | ac_prev=libdir ;; | |
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1028 | libdir=$ac_optarg ;; |
a0da8069 NN |
1029 | |
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1031 | | --libexe | --libex | --libe) | |
1032 | ac_prev=libexecdir ;; | |
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1034 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1035 | libexecdir=$ac_optarg ;; |
a0da8069 | 1036 | |
81ecdfbb RW |
1037 | -localedir | --localedir | --localedi | --localed | --locale) |
1038 | ac_prev=localedir ;; | |
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1040 | localedir=$ac_optarg ;; | |
1041 | ||
a0da8069 | 1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1043 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1044 | ac_prev=localstatedir ;; |
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1047 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1048 | |
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1050 | ac_prev=mandir ;; | |
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1052 | mandir=$ac_optarg ;; |
a0da8069 NN |
1053 | |
1054 | -nfp | --nfp | --nf) | |
1055 | # Obsolete; use --without-fp. | |
1056 | with_fp=no ;; | |
1057 | ||
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1059 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1060 | no_create=yes ;; |
1061 | ||
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1064 | no_recursion=yes ;; | |
1065 | ||
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1068 | | --oldin | --oldi | --old | --ol | --o) | |
1069 | ac_prev=oldincludedir ;; | |
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1073 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1074 | |
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1076 | ac_prev=prefix ;; | |
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1078 | prefix=$ac_optarg ;; |
a0da8069 NN |
1079 | |
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1081 | | --program-pre | --program-pr | --program-p) | |
1082 | ac_prev=program_prefix ;; | |
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1085 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1086 | |
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1088 | | --program-suf | --program-su | --program-s) | |
1089 | ac_prev=program_suffix ;; | |
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1092 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1093 | |
1094 | -program-transform-name | --program-transform-name \ | |
1095 | | --program-transform-nam | --program-transform-na \ | |
1096 | | --program-transform-n | --program-transform- \ | |
1097 | | --program-transform | --program-transfor \ | |
1098 | | --program-transfo | --program-transf \ | |
1099 | | --program-trans | --program-tran \ | |
1100 | | --progr-tra | --program-tr | --program-t) | |
1101 | ac_prev=program_transform_name ;; | |
1102 | -program-transform-name=* | --program-transform-name=* \ | |
1103 | | --program-transform-nam=* | --program-transform-na=* \ | |
1104 | | --program-transform-n=* | --program-transform-=* \ | |
1105 | | --program-transform=* | --program-transfor=* \ | |
1106 | | --program-transfo=* | --program-transf=* \ | |
1107 | | --program-trans=* | --program-tran=* \ | |
1108 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1109 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1110 | |
81ecdfbb RW |
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1112 | ac_prev=pdfdir ;; | |
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1114 | pdfdir=$ac_optarg ;; | |
1115 | ||
1116 | -psdir | --psdir | --psdi | --psd | --ps) | |
1117 | ac_prev=psdir ;; | |
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1119 | psdir=$ac_optarg ;; | |
1120 | ||
a0da8069 NN |
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | silent=yes ;; | |
1124 | ||
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1126 | ac_prev=sbindir ;; | |
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1128 | | --sbi=* | --sb=*) | |
c6b750e1 | 1129 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1130 | |
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1133 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1134 | | --sha | --sh) | |
1135 | ac_prev=sharedstatedir ;; | |
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1139 | | --sha=* | --sh=*) | |
c6b750e1 | 1140 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1141 | |
1142 | -site | --site | --sit) | |
1143 | ac_prev=site ;; | |
1144 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1145 | site=$ac_optarg ;; |
a0da8069 NN |
1146 | |
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1148 | ac_prev=srcdir ;; | |
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1150 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1151 | |
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1153 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1154 | ac_prev=sysconfdir ;; | |
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1157 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1158 | |
1159 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1160 | ac_prev=target_alias ;; |
a0da8069 | 1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1162 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1163 | |
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1165 | verbose=yes ;; | |
1166 | ||
c6b750e1 DJ |
1167 | -version | --version | --versio | --versi | --vers | -V) |
1168 | ac_init_version=: ;; | |
a0da8069 NN |
1169 | |
1170 | -with-* | --with-*) | |
81ecdfbb | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1172 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1174 | as_fn_error "invalid package name: $ac_useropt" | |
1175 | ac_useropt_orig=$ac_useropt | |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1183 | esac |
81ecdfbb | 1184 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1185 | |
1186 | -without-* | --without-*) | |
81ecdfbb | 1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1188 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1190 | as_fn_error "invalid package name: $ac_useropt" | |
1191 | ac_useropt_orig=$ac_useropt | |
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1193 | case $ac_user_opts in | |
1194 | *" | |
1195 | "with_$ac_useropt" | |
1196 | "*) ;; | |
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1198 | ac_unrecognized_sep=', ';; | |
1199 | esac | |
1200 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1201 | |
1202 | --x) | |
1203 | # Obsolete; use --with-x. | |
1204 | with_x=yes ;; | |
1205 | ||
1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1207 | | --x-incl | --x-inc | --x-in | --x-i) | |
1208 | ac_prev=x_includes ;; | |
1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1211 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1212 | |
1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1215 | ac_prev=x_libraries ;; | |
1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1218 | x_libraries=$ac_optarg ;; |
a0da8069 | 1219 | |
81ecdfbb RW |
1220 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1221 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1222 | ;; |
1223 | ||
c6b750e1 DJ |
1224 | *=*) |
1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1226 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1227 | case $ac_envvar in #( |
1228 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1229 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1230 | esac | |
1231 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1232 | export $ac_envvar ;; |
1233 | ||
a0da8069 | 1234 | *) |
c6b750e1 | 1235 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1239 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1240 | ;; |
1241 | ||
1242 | esac | |
1243 | done | |
1244 | ||
1245 | if test -n "$ac_prev"; then | |
c6b750e1 | 1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1247 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1248 | fi |
a0da8069 | 1249 | |
81ecdfbb RW |
1250 | if test -n "$ac_unrecognized_opts"; then |
1251 | case $enable_option_checking in | |
1252 | no) ;; | |
1253 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1255 | esac |
81ecdfbb | 1256 | fi |
a0da8069 | 1257 | |
81ecdfbb RW |
1258 | # Check all directory arguments for consistency. |
1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1260 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1262 | libdir localedir mandir | |
a0da8069 | 1263 | do |
81ecdfbb RW |
1264 | eval ac_val=\$$ac_var |
1265 | # Remove trailing slashes. | |
1266 | case $ac_val in | |
1267 | */ ) | |
1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1269 | eval $ac_var=\$ac_val;; | |
1270 | esac | |
1271 | # Be sure to have absolute directory names. | |
c6b750e1 | 1272 | case $ac_val in |
81ecdfbb RW |
1273 | [\\/$]* | ?:[\\/]* ) continue;; |
1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1275 | esac |
81ecdfbb | 1276 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1277 | done |
1278 | ||
c6b750e1 DJ |
1279 | # There might be people who depend on the old broken behavior: `$host' |
1280 | # used to hold the argument of --host etc. | |
1281 | # FIXME: To remove some day. | |
1282 | build=$build_alias | |
1283 | host=$host_alias | |
1284 | target=$target_alias | |
376a0e54 | 1285 | |
c6b750e1 DJ |
1286 | # FIXME: To remove some day. |
1287 | if test "x$host_alias" != x; then | |
1288 | if test "x$build_alias" = x; then | |
1289 | cross_compiling=maybe | |
81ecdfbb | 1290 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1291 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1292 | elif test "x$build_alias" != "x$host_alias"; then | |
1293 | cross_compiling=yes | |
1294 | fi | |
1295 | fi | |
1296 | ||
1297 | ac_tool_prefix= | |
1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1299 | ||
1300 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1301 | |
a0da8069 | 1302 | |
81ecdfbb RW |
1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1304 | ac_ls_di=`ls -di .` && | |
1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1306 | as_fn_error "working directory cannot be determined" | |
1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1308 | as_fn_error "pwd does not report name of working directory" | |
1309 | ||
1310 | ||
a0da8069 NN |
1311 | # Find the source files, if location was not specified. |
1312 | if test -z "$srcdir"; then | |
1313 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1314 | # Try the directory containing this script, then the parent directory. |
1315 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1318 | X"$as_myself" : 'X\(//\)$' \| \ | |
1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1320 | $as_echo X"$as_myself" | | |
1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1322 | s//\1/ | |
1323 | q | |
1324 | } | |
1325 | /^X\(\/\/\)[^/].*/{ | |
1326 | s//\1/ | |
1327 | q | |
1328 | } | |
1329 | /^X\(\/\/\)$/{ | |
1330 | s//\1/ | |
1331 | q | |
1332 | } | |
1333 | /^X\(\/\).*/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | s/.*/./; q'` | |
a0da8069 | 1338 | srcdir=$ac_confdir |
81ecdfbb | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1340 | srcdir=.. |
1341 | fi | |
1342 | else | |
1343 | ac_srcdir_defaulted=no | |
1344 | fi | |
81ecdfbb RW |
1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1347 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1348 | fi | |
1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1350 | ac_abs_confdir=`( | |
1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1352 | pwd)` | |
1353 | # When building in place, set srcdir=. | |
1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1355 | srcdir=. | |
1356 | fi | |
1357 | # Remove unnecessary trailing slashes from srcdir. | |
1358 | # Double slashes in file names in object file debugging info | |
1359 | # mess up M-x gdb in Emacs. | |
1360 | case $srcdir in | |
1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1362 | esac | |
6d0cd39e AM |
1363 | case $srcdir in |
1364 | *" "*) | |
1365 | as_fn_error "path to source, $srcdir, contains spaces" | |
1366 | ;; | |
1367 | esac | |
9cc8ae67 PB |
1368 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1369 | ||
81ecdfbb RW |
1370 | for ac_var in $ac_precious_vars; do |
1371 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1372 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1373 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1375 | done | |
c6b750e1 DJ |
1376 | |
1377 | # | |
1378 | # Report the --help message. | |
1379 | # | |
1380 | if test "$ac_init_help" = "long"; then | |
1381 | # Omit some internal or obsolete options to make the list less imposing. | |
1382 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1383 | cat <<_ACEOF | |
1384 | \`configure' configures this package to adapt to many kinds of systems. | |
1385 | ||
1386 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1387 | ||
1388 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1389 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1390 | ||
1391 | Defaults for the options are specified in brackets. | |
1392 | ||
1393 | Configuration: | |
1394 | -h, --help display this help and exit | |
1395 | --help=short display options specific to this package | |
1396 | --help=recursive display the short help of all the included packages | |
1397 | -V, --version display version information and exit | |
1398 | -q, --quiet, --silent do not print \`checking...' messages | |
1399 | --cache-file=FILE cache test results in FILE [disabled] | |
1400 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1401 | -n, --no-create do not create output files | |
1402 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1403 | ||
c6b750e1 DJ |
1404 | Installation directories: |
1405 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1406 | [$ac_default_prefix] |
c6b750e1 | 1407 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1408 | [PREFIX] |
c6b750e1 DJ |
1409 | |
1410 | By default, \`make install' will install all the files in | |
1411 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1412 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1413 | for instance \`--prefix=\$HOME'. | |
1414 | ||
1415 | For better control, use the options below. | |
1416 | ||
1417 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1418 | --bindir=DIR user executables [EPREFIX/bin] |
1419 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1420 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1421 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1422 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1423 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1424 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1425 | --includedir=DIR C header files [PREFIX/include] | |
1426 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1427 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1428 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1429 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1430 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1431 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1432 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1433 | --htmldir=DIR html documentation [DOCDIR] | |
1434 | --dvidir=DIR dvi documentation [DOCDIR] | |
1435 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1436 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1437 | _ACEOF |
1438 | ||
1439 | cat <<\_ACEOF | |
1440 | ||
1441 | Program names: | |
1442 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1443 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1444 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1445 | ||
1446 | System types: | |
1447 | --build=BUILD configure for building on BUILD [guessed] | |
1448 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1449 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1450 | _ACEOF | |
a0da8069 | 1451 | fi |
a0da8069 | 1452 | |
c6b750e1 DJ |
1453 | if test -n "$ac_init_help"; then |
1454 | ||
1455 | cat <<\_ACEOF | |
1456 | ||
1457 | Optional Features: | |
81ecdfbb | 1458 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1461 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1462 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1463 | --disable-libquadmath do not build libquadmath directory |
1464 | --disable-libquadmath-support | |
1465 | disable libquadmath support for Fortran | |
521ec477 DD |
1466 | --enable-libada build libada directory |
1467 | --enable-libssp build libssp directory | |
ffdd6afc ILT |
1468 | --enable-static-libjava[=ARG] |
1469 | build static libjava [default=no] | |
1470 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e L |
1471 | --disable-isl-version-check |
1472 | disable check for ISL version | |
e552509b ILT |
1473 | --disable-cloog-version-check |
1474 | disable check for CLooG version | |
700d40ca | 1475 | --enable-lto enable link time optimization support |
7837304f AS |
1476 | --enable-stage1-languages[=all] |
1477 | choose additional languages to build during stage1. | |
1478 | Mostly useful for compiler development | |
1479 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1480 | Objective-C runtime | |
521ec477 | 1481 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1482 | force sequential configuration of sub-packages for |
1483 | the host, target or build machine, or all | |
1484 | sub-packages | |
1485 | --enable-maintainer-mode | |
1486 | enable make rules and dependencies not useful (and | |
1487 | sometimes confusing) to the casual installer | |
1488 | --enable-stage1-checking[=all] | |
1489 | choose additional checking for stage1 of the | |
1490 | compiler | |
c6b750e1 DJ |
1491 | --enable-werror enable -Werror in bootstrap stage2 and later |
1492 | ||
1493 | Optional Packages: | |
1494 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1495 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1496 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1497 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1498 | Equivalent to --with-mpc-include=PATH/include plus | |
1499 | --with-mpc-lib=PATH/lib | |
1500 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1501 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1502 | --with-mpfr-dir=PATH this option has been REMOVED |
1503 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1504 | Equivalent to --with-mpfr-include=PATH/include plus |
1505 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1506 | --with-mpfr-include=PATH |
521ec477 DD |
1507 | specify directory for installed MPFR include files |
1508 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1509 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1510 | --with-gmp=PATH specify prefix directory for the installed GMP |
1511 | package. Equivalent to | |
1512 | --with-gmp-include=PATH/include plus | |
1513 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1514 | --with-gmp-include=PATH specify directory for installed GMP include files |
1515 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1516 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1517 | linking with PPL | |
1518 | --with-stage1-ldflags=FLAGS | |
1519 | linker flags for stage1 | |
1520 | --with-stage1-libs=LIBS libraries for stage1 | |
1521 | --with-boot-libs=LIBS libraries for stage2 and later | |
1522 | --with-boot-ldflags=FLAGS | |
1523 | linker flags for stage2 and later | |
7ec59b9e | 1524 | --with-isl=PATH Specify prefix directory for the installed ISL |
7837304f | 1525 | package. Equivalent to |
7ec59b9e L |
1526 | --with-isl-include=PATH/include plus |
1527 | --with-isl-lib=PATH/lib | |
1528 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1529 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
e552509b ILT |
1530 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1531 | package. Equivalent to | |
1532 | --with-cloog-include=PATH/include plus | |
1533 | --with-cloog-lib=PATH/lib | |
1534 | --with-cloog-include=PATH | |
1535 | Specify directory for installed CLooG include files | |
1536 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1537 | library | |
521ec477 | 1538 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1539 | use sysroot as the system root during the build |
8a6ee3ab | 1540 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1541 | map A to B, C to D ... in debug information |
1542 | --with-build-config='NAME NAME2...' | |
1543 | use config/NAME.mk build configuration | |
521ec477 | 1544 | --with-build-time-tools=PATH |
c6b750e1 | 1545 | use given path to find target tools during the build |
c6b750e1 DJ |
1546 | |
1547 | Some influential environment variables: | |
1548 | CC C compiler command | |
1549 | CFLAGS C compiler flags | |
1550 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1551 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1552 | LIBS libraries to pass to the linker, e.g. -l<library> |
1553 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1554 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1555 | CXX C++ compiler command |
1556 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1557 | build_configargs |
1558 | additional configure arguments for build directories | |
1559 | host_configargs | |
1560 | additional configure arguments for host directories | |
1561 | target_configargs | |
1562 | additional configure arguments for target directories | |
9a819804 AO |
1563 | AR AR for the host |
1564 | AS AS for the host | |
1565 | DLLTOOL DLLTOOL for the host | |
1566 | LD LD for the host | |
1567 | LIPO LIPO for the host | |
1568 | NM NM for the host | |
1569 | RANLIB RANLIB for the host | |
1570 | STRIP STRIP for the host | |
1571 | WINDRES WINDRES for the host | |
0c24b341 | 1572 | WINDMC WINDMC for the host |
9a819804 AO |
1573 | OBJCOPY OBJCOPY for the host |
1574 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1575 | READELF READELF for the host |
9a819804 AO |
1576 | CC_FOR_TARGET |
1577 | CC for the target | |
1578 | CXX_FOR_TARGET | |
1579 | CXX for the target | |
1580 | GCC_FOR_TARGET | |
1581 | GCC for the target | |
1582 | GCJ_FOR_TARGET | |
1583 | GCJ for the target | |
1584 | GFORTRAN_FOR_TARGET | |
1585 | GFORTRAN for the target | |
e552509b ILT |
1586 | GOC_FOR_TARGET |
1587 | GOC for the target | |
9a819804 AO |
1588 | AR_FOR_TARGET |
1589 | AR for the target | |
1590 | AS_FOR_TARGET | |
1591 | AS for the target | |
1592 | DLLTOOL_FOR_TARGET | |
1593 | DLLTOOL for the target | |
1594 | LD_FOR_TARGET | |
1595 | LD for the target | |
1596 | LIPO_FOR_TARGET | |
1597 | LIPO for the target | |
1598 | NM_FOR_TARGET | |
1599 | NM for the target | |
1600 | OBJDUMP_FOR_TARGET | |
1601 | OBJDUMP for the target | |
1602 | RANLIB_FOR_TARGET | |
1603 | RANLIB for the target | |
b121d7d4 DD |
1604 | READELF_FOR_TARGET |
1605 | READELF for the target | |
9a819804 AO |
1606 | STRIP_FOR_TARGET |
1607 | STRIP for the target | |
1608 | WINDRES_FOR_TARGET | |
1609 | WINDRES for the target | |
0c24b341 NC |
1610 | WINDMC_FOR_TARGET |
1611 | WINDMC for the target | |
c6b750e1 DJ |
1612 | |
1613 | Use these variables to override the choices made by `configure' or to help | |
1614 | it to find libraries and programs with nonstandard names/locations. | |
1615 | ||
81ecdfbb | 1616 | Report bugs to the package provider. |
c6b750e1 | 1617 | _ACEOF |
81ecdfbb | 1618 | ac_status=$? |
c6b750e1 DJ |
1619 | fi |
1620 | ||
1621 | if test "$ac_init_help" = "recursive"; then | |
1622 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1623 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1624 | test -d "$ac_dir" || |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1626 | continue | |
c6b750e1 DJ |
1627 | ac_builddir=. |
1628 | ||
81ecdfbb RW |
1629 | case "$ac_dir" in |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) | |
1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1633 | # A ".." for each directory in $ac_dir_suffix. | |
1634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1635 | case $ac_top_builddir_sub in | |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1638 | esac ;; | |
1639 | esac | |
1640 | ac_abs_top_builddir=$ac_pwd | |
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1642 | # for backward compatibility: | |
1643 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1644 | |
1645 | case $srcdir in | |
81ecdfbb | 1646 | .) # We are building in place. |
c6b750e1 | 1647 | ac_srcdir=. |
81ecdfbb RW |
1648 | ac_top_srcdir=$ac_top_builddir_sub |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | |
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1651 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1652 | ac_top_srcdir=$srcdir |
1653 | ac_abs_top_srcdir=$srcdir ;; | |
1654 | *) # Relative name. | |
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1658 | esac |
81ecdfbb RW |
1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1660 | ||
1661 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1662 | # Check for guested configure. | |
1663 | if test -f "$ac_srcdir/configure.gnu"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1666 | elif test -f "$ac_srcdir/configure"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1669 | else |
81ecdfbb RW |
1670 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1671 | fi || ac_status=$? | |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1673 | done |
1674 | fi | |
1675 | ||
81ecdfbb | 1676 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1677 | if $ac_init_version; then |
1678 | cat <<\_ACEOF | |
81ecdfbb RW |
1679 | configure |
1680 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1681 | |
81ecdfbb | 1682 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1683 | This configure script is free software; the Free Software Foundation |
1684 | gives unlimited permission to copy, distribute and modify it. | |
1685 | _ACEOF | |
81ecdfbb | 1686 | exit |
c6b750e1 | 1687 | fi |
81ecdfbb RW |
1688 | |
1689 | ## ------------------------ ## | |
1690 | ## Autoconf initialization. ## | |
1691 | ## ------------------------ ## | |
1692 | ||
1693 | # ac_fn_c_try_compile LINENO | |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1727 | return $ac_retval | |
1728 | ||
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_cxx_try_compile LINENO | |
1732 | # ---------------------------- | |
1733 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_cxx_try_compile () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | rm -f conftest.$ac_objext | |
1738 | if { { ac_try="$ac_compile" | |
1739 | case "(($ac_try" in | |
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1741 | *) ac_try_echo=$ac_try;; | |
1742 | esac | |
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1744 | $as_echo "$ac_try_echo"; } >&5 | |
1745 | (eval "$ac_compile") 2>conftest.err | |
1746 | ac_status=$? | |
1747 | if test -s conftest.err; then | |
1748 | grep -v '^ *+' conftest.err >conftest.er1 | |
1749 | cat conftest.er1 >&5 | |
1750 | mv -f conftest.er1 conftest.err | |
1751 | fi | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; } && { | |
1754 | test -z "$ac_cxx_werror_flag" || | |
1755 | test ! -s conftest.err | |
1756 | } && test -s conftest.$ac_objext; then : | |
1757 | ac_retval=0 | |
1758 | else | |
1759 | $as_echo "$as_me: failed program was:" >&5 | |
1760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1761 | ||
1762 | ac_retval=1 | |
1763 | fi | |
1764 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1765 | return $ac_retval | |
1766 | ||
1767 | } # ac_fn_cxx_try_compile | |
1768 | ||
1769 | # ac_fn_c_try_link LINENO | |
1770 | # ----------------------- | |
1771 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1772 | ac_fn_c_try_link () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1776 | if { { ac_try="$ac_link" | |
1777 | case "(($ac_try" in | |
1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | *) ac_try_echo=$ac_try;; | |
1780 | esac | |
1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | $as_echo "$ac_try_echo"; } >&5 | |
1783 | (eval "$ac_link") 2>conftest.err | |
1784 | ac_status=$? | |
1785 | if test -s conftest.err; then | |
1786 | grep -v '^ *+' conftest.err >conftest.er1 | |
1787 | cat conftest.er1 >&5 | |
1788 | mv -f conftest.er1 conftest.err | |
1789 | fi | |
1790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1791 | test $ac_status = 0; } && { | |
1792 | test -z "$ac_c_werror_flag" || | |
1793 | test ! -s conftest.err | |
1794 | } && test -s conftest$ac_exeext && { | |
1795 | test "$cross_compiling" = yes || | |
1796 | $as_test_x conftest$ac_exeext | |
1797 | }; then : | |
1798 | ac_retval=0 | |
1799 | else | |
1800 | $as_echo "$as_me: failed program was:" >&5 | |
1801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1802 | ||
1803 | ac_retval=1 | |
1804 | fi | |
1805 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1806 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1807 | # interfere with the next link command; also delete a directory that is | |
1808 | # left behind by Apple's compiler. We do this before executing the actions. | |
1809 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1810 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1811 | return $ac_retval | |
1812 | ||
1813 | } # ac_fn_c_try_link | |
7ec59b9e L |
1814 | |
1815 | # ac_fn_c_try_run LINENO | |
1816 | # ---------------------- | |
1817 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1818 | # that executables *can* be run. | |
1819 | ac_fn_c_try_run () | |
1820 | { | |
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1822 | if { { ac_try="$ac_link" | |
1823 | case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_link") 2>&5 | |
1830 | ac_status=$? | |
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1832 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1833 | { { case "(($ac_try" in | |
1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1835 | *) ac_try_echo=$ac_try;; | |
1836 | esac | |
1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1838 | $as_echo "$ac_try_echo"; } >&5 | |
1839 | (eval "$ac_try") 2>&5 | |
1840 | ac_status=$? | |
1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1842 | test $ac_status = 0; }; }; then : | |
1843 | ac_retval=0 | |
1844 | else | |
1845 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1846 | $as_echo "$as_me: failed program was:" >&5 | |
1847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1848 | ||
1849 | ac_retval=$ac_status | |
1850 | fi | |
1851 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1852 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1853 | return $ac_retval | |
1854 | ||
1855 | } # ac_fn_c_try_run | |
81ecdfbb | 1856 | cat >config.log <<_ACEOF |
c6b750e1 DJ |
1857 | This file contains any messages produced by compilers while |
1858 | running configure, to aid debugging if configure makes a mistake. | |
1859 | ||
1860 | It was created by $as_me, which was | |
81ecdfbb | 1861 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1862 | |
1863 | $ $0 $@ | |
1864 | ||
1865 | _ACEOF | |
81ecdfbb | 1866 | exec 5>>config.log |
c6b750e1 DJ |
1867 | { |
1868 | cat <<_ASUNAME | |
1869 | ## --------- ## | |
1870 | ## Platform. ## | |
1871 | ## --------- ## | |
1872 | ||
1873 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1874 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1875 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1876 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1877 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1878 | ||
1879 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1880 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1881 | ||
1882 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1883 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1884 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1885 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1886 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1887 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1888 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1889 | ||
1890 | _ASUNAME | |
1891 | ||
1892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1893 | for as_dir in $PATH | |
1894 | do | |
1895 | IFS=$as_save_IFS | |
1896 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1897 | $as_echo "PATH: $as_dir" |
1898 | done | |
1899 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1900 | |
1901 | } >&5 | |
1902 | ||
1903 | cat >&5 <<_ACEOF | |
1904 | ||
1905 | ||
1906 | ## ----------- ## | |
1907 | ## Core tests. ## | |
1908 | ## ----------- ## | |
1909 | ||
1910 | _ACEOF | |
1911 | ||
1912 | ||
1913 | # Keep a trace of the command line. | |
1914 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1915 | # Strip out --silent because we don't want to record it for future runs. | |
1916 | # Also quote any args containing shell meta-characters. | |
1917 | # Make two passes to allow for proper duplicate-argument suppression. | |
1918 | ac_configure_args= | |
1919 | ac_configure_args0= | |
1920 | ac_configure_args1= | |
c6b750e1 DJ |
1921 | ac_must_keep_next=false |
1922 | for ac_pass in 1 2 | |
1923 | do | |
1924 | for ac_arg | |
1925 | do | |
1926 | case $ac_arg in | |
1927 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1928 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1929 | | -silent | --silent | --silen | --sile | --sil) | |
1930 | continue ;; | |
81ecdfbb RW |
1931 | *\'*) |
1932 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1933 | esac |
1934 | case $ac_pass in | |
81ecdfbb | 1935 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1936 | 2) |
81ecdfbb | 1937 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1938 | if test $ac_must_keep_next = true; then |
1939 | ac_must_keep_next=false # Got value, back to normal. | |
1940 | else | |
1941 | case $ac_arg in | |
1942 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1943 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1944 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1945 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1946 | case "$ac_configure_args0 " in | |
1947 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1948 | esac | |
1949 | ;; | |
1950 | -* ) ac_must_keep_next=true ;; | |
1951 | esac | |
1952 | fi | |
81ecdfbb | 1953 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1954 | ;; |
1955 | esac | |
1956 | done | |
1957 | done | |
81ecdfbb RW |
1958 | { ac_configure_args0=; unset ac_configure_args0;} |
1959 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1960 | |
1961 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1962 | # config.log. We remove comments because anyway the quotes in there | |
1963 | # would cause problems or look ugly. | |
81ecdfbb RW |
1964 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1965 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1966 | trap 'exit_status=$? |
1967 | # Save into config.log some information that might help in debugging. | |
1968 | { | |
1969 | echo | |
1970 | ||
1971 | cat <<\_ASBOX | |
1972 | ## ---------------- ## | |
1973 | ## Cache variables. ## | |
1974 | ## ---------------- ## | |
1975 | _ASBOX | |
1976 | echo | |
1977 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1978 | ( |
1979 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1980 | eval ac_val=\$$ac_var | |
1981 | case $ac_val in #( | |
1982 | *${as_nl}*) | |
1983 | case $ac_var in #( | |
1984 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1985 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1986 | esac | |
1987 | case $ac_var in #( | |
1988 | _ | IFS | as_nl) ;; #( | |
1989 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1990 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1991 | esac ;; | |
1992 | esac | |
1993 | done | |
c6b750e1 | 1994 | (set) 2>&1 | |
81ecdfbb RW |
1995 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1996 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 1997 | sed -n \ |
81ecdfbb RW |
1998 | "s/'\''/'\''\\\\'\'''\''/g; |
1999 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2000 | ;; #( | |
c6b750e1 | 2001 | *) |
81ecdfbb | 2002 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2003 | ;; |
81ecdfbb RW |
2004 | esac | |
2005 | sort | |
2006 | ) | |
c6b750e1 DJ |
2007 | echo |
2008 | ||
2009 | cat <<\_ASBOX | |
2010 | ## ----------------- ## | |
2011 | ## Output variables. ## | |
2012 | ## ----------------- ## | |
2013 | _ASBOX | |
2014 | echo | |
2015 | for ac_var in $ac_subst_vars | |
2016 | do | |
81ecdfbb RW |
2017 | eval ac_val=\$$ac_var |
2018 | case $ac_val in | |
2019 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2020 | esac | |
2021 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2022 | done | sort |
2023 | echo | |
2024 | ||
2025 | if test -n "$ac_subst_files"; then | |
2026 | cat <<\_ASBOX | |
81ecdfbb RW |
2027 | ## ------------------- ## |
2028 | ## File substitutions. ## | |
2029 | ## ------------------- ## | |
c6b750e1 DJ |
2030 | _ASBOX |
2031 | echo | |
2032 | for ac_var in $ac_subst_files | |
2033 | do | |
81ecdfbb RW |
2034 | eval ac_val=\$$ac_var |
2035 | case $ac_val in | |
2036 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2037 | esac | |
2038 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2039 | done | sort |
2040 | echo | |
2041 | fi | |
2042 | ||
2043 | if test -s confdefs.h; then | |
2044 | cat <<\_ASBOX | |
2045 | ## ----------- ## | |
2046 | ## confdefs.h. ## | |
2047 | ## ----------- ## | |
2048 | _ASBOX | |
2049 | echo | |
81ecdfbb | 2050 | cat confdefs.h |
c6b750e1 DJ |
2051 | echo |
2052 | fi | |
2053 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2054 | $as_echo "$as_me: caught signal $ac_signal" |
2055 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2056 | } >&5 |
81ecdfbb RW |
2057 | rm -f core *.core core.conftest.* && |
2058 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2059 | exit $exit_status |
81ecdfbb | 2060 | ' 0 |
c6b750e1 | 2061 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2062 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2063 | done |
2064 | ac_signal=0 | |
2065 | ||
2066 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2067 | rm -f -r conftest* confdefs.h |
2068 | ||
2069 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2070 | |
2071 | # Predefined preprocessor variables. | |
2072 | ||
2073 | cat >>confdefs.h <<_ACEOF | |
2074 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2075 | _ACEOF | |
2076 | ||
c6b750e1 DJ |
2077 | cat >>confdefs.h <<_ACEOF |
2078 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2079 | _ACEOF | |
2080 | ||
c6b750e1 DJ |
2081 | cat >>confdefs.h <<_ACEOF |
2082 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2083 | _ACEOF | |
2084 | ||
c6b750e1 DJ |
2085 | cat >>confdefs.h <<_ACEOF |
2086 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2087 | _ACEOF | |
2088 | ||
c6b750e1 DJ |
2089 | cat >>confdefs.h <<_ACEOF |
2090 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2091 | _ACEOF | |
2092 | ||
81ecdfbb RW |
2093 | cat >>confdefs.h <<_ACEOF |
2094 | #define PACKAGE_URL "$PACKAGE_URL" | |
2095 | _ACEOF | |
2096 | ||
c6b750e1 DJ |
2097 | |
2098 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2099 | # Prefer an explicitly selected file to automatically selected ones. |
2100 | ac_site_file1=NONE | |
2101 | ac_site_file2=NONE | |
2102 | if test -n "$CONFIG_SITE"; then | |
2103 | ac_site_file1=$CONFIG_SITE | |
2104 | elif test "x$prefix" != xNONE; then | |
2105 | ac_site_file1=$prefix/share/config.site | |
2106 | ac_site_file2=$prefix/etc/config.site | |
2107 | else | |
2108 | ac_site_file1=$ac_default_prefix/share/config.site | |
2109 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2110 | fi |
81ecdfbb RW |
2111 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2112 | do | |
2113 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2114 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2115 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2116 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2117 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2118 | . "$ac_site_file" |
2119 | fi | |
2120 | done | |
2121 | ||
2122 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2123 | # Some versions of bash will fail to source /dev/null (special |
2124 | # files actually), so we avoid doing that. | |
2125 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2127 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2128 | case $cache_file in |
81ecdfbb RW |
2129 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2130 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2131 | esac |
2132 | fi | |
a0da8069 | 2133 | else |
81ecdfbb RW |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2135 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2136 | >$cache_file |
2137 | fi | |
2138 | ||
2139 | # Check that the precious variables saved in the cache have kept the same | |
2140 | # value. | |
2141 | ac_cache_corrupted=false | |
81ecdfbb | 2142 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2143 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2144 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2145 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2146 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2147 | case $ac_old_set,$ac_new_set in |
2148 | set,) | |
81ecdfbb RW |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2150 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2151 | ac_cache_corrupted=: ;; |
2152 | ,set) | |
81ecdfbb RW |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2154 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2155 | ac_cache_corrupted=: ;; |
2156 | ,);; | |
2157 | *) | |
2158 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2159 | # differences in whitespace do not lead to failure. |
2160 | ac_old_val_w=`echo x $ac_old_val` | |
2161 | ac_new_val_w=`echo x $ac_new_val` | |
2162 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2164 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2165 | ac_cache_corrupted=: | |
2166 | else | |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2168 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2169 | eval $ac_var=\$ac_old_val | |
2170 | fi | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2172 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2174 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2175 | fi;; |
2176 | esac | |
2177 | # Pass precious variables to config.status. | |
2178 | if test "$ac_new_set" = set; then | |
2179 | case $ac_new_val in | |
81ecdfbb | 2180 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2181 | *) ac_arg=$ac_var=$ac_new_val ;; |
2182 | esac | |
2183 | case " $ac_configure_args " in | |
2184 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2185 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2186 | esac |
2187 | fi | |
2188 | done | |
2189 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2193 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2194 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2195 | fi |
81ecdfbb RW |
2196 | ## -------------------- ## |
2197 | ## Main body of script. ## | |
2198 | ## -------------------- ## | |
a0da8069 NN |
2199 | |
2200 | ac_ext=c | |
a0da8069 | 2201 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2205 | ||
2206 | ||
2207 | ||
2208 | ||
c6b750e1 DJ |
2209 | |
2210 | ||
34a0f3cf | 2211 | |
c6b750e1 | 2212 | |
5b553f7e RW |
2213 | |
2214 | progname=$0 | |
2215 | # if PWD already has a value, it is probably wrong. | |
2216 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2217 | ||
2218 | # Export original configure arguments for use by sub-configures. | |
2219 | # Quote arguments with shell meta charatcers. | |
2220 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2221 | set -- "$progname" "$@" | |
2222 | for ac_arg | |
2223 | do | |
2224 | case "$ac_arg" in | |
2225 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2226 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2227 | # if the argument is of the form -foo=baz, quote the baz part only | |
2228 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2229 | *) ;; | |
2230 | esac | |
2231 | # Add the quoted argument to the list. | |
2232 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2233 | done | |
2234 | if test "$silent" = yes; then | |
2235 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2236 | fi | |
2237 | # Remove the initial space we just introduced and, as these will be | |
2238 | # expanded by make, quote '$'. | |
2239 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2240 | ||
c6b750e1 DJ |
2241 | |
2242 | # Find the build, host, and target systems. | |
a0da8069 | 2243 | ac_aux_dir= |
81ecdfbb RW |
2244 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2245 | for ac_t in install-sh install.sh shtool; do | |
2246 | if test -f "$ac_dir/$ac_t"; then | |
2247 | ac_aux_dir=$ac_dir | |
2248 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2249 | break 2 | |
2250 | fi | |
2251 | done | |
a0da8069 NN |
2252 | done |
2253 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2254 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2255 | fi |
81ecdfbb RW |
2256 | |
2257 | # These three variables are undocumented and unsupported, | |
2258 | # and are intended to be withdrawn in a future Autoconf release. | |
2259 | # They can cause serious problems if a builder's source tree is in a directory | |
2260 | # whose full name contains unusual characters. | |
2261 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2262 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2263 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2264 | ||
a0da8069 | 2265 | |
c6b750e1 | 2266 | # Make sure we can run config.sub. |
81ecdfbb RW |
2267 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2268 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2269 | ||
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2271 | $as_echo_n "checking build system type... " >&6; } | |
2272 | if test "${ac_cv_build+set}" = set; then : | |
2273 | $as_echo_n "(cached) " >&6 | |
2274 | else | |
2275 | ac_build_alias=$build_alias | |
2276 | test "x$ac_build_alias" = x && | |
2277 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2278 | test "x$ac_build_alias" = x && | |
2279 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2280 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2281 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2282 | ||
2283 | fi | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2285 | $as_echo "$ac_cv_build" >&6; } | |
2286 | case $ac_cv_build in | |
2287 | *-*-*) ;; | |
2288 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2289 | esac | |
c6b750e1 | 2290 | build=$ac_cv_build |
81ecdfbb RW |
2291 | ac_save_IFS=$IFS; IFS='-' |
2292 | set x $ac_cv_build | |
2293 | shift | |
2294 | build_cpu=$1 | |
2295 | build_vendor=$2 | |
2296 | shift; shift | |
2297 | # Remember, the first character of IFS is used to create $*, | |
2298 | # except with old shells: | |
2299 | build_os=$* | |
2300 | IFS=$ac_save_IFS | |
2301 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2302 | |
a0da8069 | 2303 | |
c6b750e1 DJ |
2304 | case ${build_alias} in |
2305 | "") build_noncanonical=${build} ;; | |
2306 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2307 | esac |
2308 | ||
2309 | ||
cac3d6c4 | 2310 | |
c6b750e1 DJ |
2311 | case ${host_alias} in |
2312 | "") host_noncanonical=${build_noncanonical} ;; | |
2313 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2314 | esac |
2315 | ||
cac3d6c4 | 2316 | |
c6b750e1 DJ |
2317 | |
2318 | case ${target_alias} in | |
2319 | "") target_noncanonical=${host_noncanonical} ;; | |
2320 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2321 | esac |
2322 | ||
cac3d6c4 | 2323 | |
c6b750e1 DJ |
2324 | |
2325 | ||
2326 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2327 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2328 | NONENONEs,x,x, && | |
c6b750e1 | 2329 | program_transform_name=s,y,y, |
cac3d6c4 | 2330 | |
81ecdfbb RW |
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2332 | $as_echo_n "checking host system type... " >&6; } | |
2333 | if test "${ac_cv_host+set}" = set; then : | |
2334 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2335 | else |
81ecdfbb RW |
2336 | if test "x$host_alias" = x; then |
2337 | ac_cv_host=$ac_cv_build | |
2338 | else | |
2339 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2340 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2341 | fi | |
c6b750e1 DJ |
2342 | |
2343 | fi | |
81ecdfbb RW |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2345 | $as_echo "$ac_cv_host" >&6; } | |
2346 | case $ac_cv_host in | |
2347 | *-*-*) ;; | |
2348 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2349 | esac | |
c6b750e1 | 2350 | host=$ac_cv_host |
81ecdfbb RW |
2351 | ac_save_IFS=$IFS; IFS='-' |
2352 | set x $ac_cv_host | |
2353 | shift | |
2354 | host_cpu=$1 | |
2355 | host_vendor=$2 | |
2356 | shift; shift | |
2357 | # Remember, the first character of IFS is used to create $*, | |
2358 | # except with old shells: | |
2359 | host_os=$* | |
2360 | IFS=$ac_save_IFS | |
2361 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2362 | |
2363 | ||
81ecdfbb RW |
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2365 | $as_echo_n "checking target system type... " >&6; } | |
2366 | if test "${ac_cv_target+set}" = set; then : | |
2367 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2368 | else |
81ecdfbb RW |
2369 | if test "x$target_alias" = x; then |
2370 | ac_cv_target=$ac_cv_host | |
2371 | else | |
2372 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2373 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2374 | fi | |
c6b750e1 | 2375 | |
cac3d6c4 | 2376 | fi |
81ecdfbb RW |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2378 | $as_echo "$ac_cv_target" >&6; } | |
2379 | case $ac_cv_target in | |
2380 | *-*-*) ;; | |
2381 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2382 | esac | |
c6b750e1 | 2383 | target=$ac_cv_target |
81ecdfbb RW |
2384 | ac_save_IFS=$IFS; IFS='-' |
2385 | set x $ac_cv_target | |
2386 | shift | |
2387 | target_cpu=$1 | |
2388 | target_vendor=$2 | |
2389 | shift; shift | |
2390 | # Remember, the first character of IFS is used to create $*, | |
2391 | # except with old shells: | |
2392 | target_os=$* | |
2393 | IFS=$ac_save_IFS | |
2394 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2395 | |
2396 | ||
2397 | # The aliases save the names the user supplied, while $host etc. | |
2398 | # will get canonicalized. | |
2399 | test -n "$target_alias" && | |
2400 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2401 | NONENONEs,x,x, && | |
2402 | program_prefix=${target_alias}- | |
81ecdfbb | 2403 | |
a0da8069 | 2404 | test "$program_prefix" != NONE && |
81ecdfbb | 2405 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2406 | # Use a double $ so make ignores it. |
2407 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2408 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2409 | # Double any \ or $. | |
c6b750e1 | 2410 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2411 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2412 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2413 | |
a0da8069 NN |
2414 | |
2415 | ||
e5c3f801 NN |
2416 | # Get 'install' or 'install-sh' and its variants. |
2417 | # Find a good install program. We prefer a C program (faster), | |
2418 | # so one script is as good as another. But avoid the broken or | |
2419 | # incompatible versions: | |
2420 | # SysV /etc/install, /usr/sbin/install | |
2421 | # SunOS /usr/etc/install | |
2422 | # IRIX /sbin/install | |
2423 | # AIX /bin/install | |
c6b750e1 | 2424 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2425 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2426 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2427 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2428 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2429 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2430 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2432 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2433 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2434 | if test "${ac_cv_path_install+set}" = set; then : |
2435 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2436 | else |
2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2438 | for as_dir in $PATH | |
2439 | do | |
2440 | IFS=$as_save_IFS | |
2441 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2442 | # Account for people who put trailing slashes in PATH elements. |
2443 | case $as_dir/ in #(( | |
2444 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2445 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2446 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2447 | /usr/ucb/* ) ;; |
2448 | *) | |
2449 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2450 | # Don't use installbsd from OSF since it installs stuff as root | |
2451 | # by default. | |
2452 | for ac_prog in ginstall scoinst install; do | |
2453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2454 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2455 | if test $ac_prog = install && |
c6b750e1 | 2456 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2457 | # AIX install. It has an incompatible calling convention. |
2458 | : | |
c6b750e1 DJ |
2459 | elif test $ac_prog = install && |
2460 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2461 | # program-specific install script used by HP pwplus--don't use. | |
2462 | : | |
e5c3f801 | 2463 | else |
58c85be7 RW |
2464 | rm -rf conftest.one conftest.two conftest.dir |
2465 | echo one > conftest.one | |
2466 | echo two > conftest.two | |
2467 | mkdir conftest.dir | |
2468 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2469 | test -s conftest.one && test -s conftest.two && | |
2470 | test -s conftest.dir/conftest.one && | |
2471 | test -s conftest.dir/conftest.two | |
2472 | then | |
2473 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2474 | break 3 | |
2475 | fi | |
e5c3f801 NN |
2476 | fi |
2477 | fi | |
2478 | done | |
c6b750e1 DJ |
2479 | done |
2480 | ;; | |
2481 | esac | |
81ecdfbb RW |
2482 | |
2483 | done | |
2484 | IFS=$as_save_IFS | |
c6b750e1 | 2485 | |
58c85be7 | 2486 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2487 | |
2488 | fi | |
2489 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2490 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2491 | else |
58c85be7 RW |
2492 | # As a last resort, use the slow shell script. Don't cache a |
2493 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2494 | # break other packages using the cache if that directory is |
58c85be7 | 2495 | # removed, or if the value is a relative name. |
c6b750e1 | 2496 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2497 | fi |
2498 | fi | |
81ecdfbb RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2500 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2501 | |
2502 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2503 | # It thinks the first close brace ends the variable substitution. | |
2504 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2505 | ||
c6b750e1 | 2506 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2507 | |
2508 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2509 | ||
81ecdfbb RW |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2511 | $as_echo_n "checking whether ln works... " >&6; } | |
2512 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2513 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2514 | else |
2515 | rm -f conftestdata_t | |
2516 | echo >conftestdata_f | |
2517 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2518 | then | |
2519 | acx_cv_prog_LN=ln | |
2520 | else | |
2521 | acx_cv_prog_LN=no | |
2522 | fi | |
2523 | rm -f conftestdata_f conftestdata_t | |
2524 | ||
2525 | fi | |
2526 | if test $acx_cv_prog_LN = no; then | |
2527 | LN="cp" | |
81ecdfbb RW |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2529 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2530 | else |
2531 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2533 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2534 | fi |
2535 | ||
81ecdfbb RW |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2537 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2538 | LN_S=$as_ln_s |
2539 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2541 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2542 | else |
81ecdfbb RW |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2544 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2545 | fi |
2546 | ||
8e957354 PB |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2548 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2549 | if test "${ac_cv_path_SED+set}" = set; then : | |
2550 | $as_echo_n "(cached) " >&6 | |
2551 | else | |
2552 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2553 | for ac_i in 1 2 3 4 5 6 7; do | |
2554 | ac_script="$ac_script$as_nl$ac_script" | |
2555 | done | |
2556 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2557 | { ac_script=; unset ac_script;} | |
2558 | if test -z "$SED"; then | |
2559 | ac_path_SED_found=false | |
2560 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2562 | for as_dir in $PATH | |
2563 | do | |
2564 | IFS=$as_save_IFS | |
2565 | test -z "$as_dir" && as_dir=. | |
2566 | for ac_prog in sed gsed; do | |
2567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2568 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2569 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2570 | # Check for GNU ac_path_SED and select it if it is found. | |
2571 | # Check for GNU $ac_path_SED | |
2572 | case `"$ac_path_SED" --version 2>&1` in | |
2573 | *GNU*) | |
2574 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2575 | *) | |
2576 | ac_count=0 | |
2577 | $as_echo_n 0123456789 >"conftest.in" | |
2578 | while : | |
2579 | do | |
2580 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2581 | mv "conftest.tmp" "conftest.in" | |
2582 | cp "conftest.in" "conftest.nl" | |
2583 | $as_echo '' >> "conftest.nl" | |
2584 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2585 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2586 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2587 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2588 | # Best one so far, save it but keep looking for a better one | |
2589 | ac_cv_path_SED="$ac_path_SED" | |
2590 | ac_path_SED_max=$ac_count | |
2591 | fi | |
2592 | # 10*(2^10) chars as input seems more than enough | |
2593 | test $ac_count -gt 10 && break | |
2594 | done | |
2595 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2596 | esac | |
2597 | ||
2598 | $ac_path_SED_found && break 3 | |
2599 | done | |
2600 | done | |
2601 | done | |
2602 | IFS=$as_save_IFS | |
2603 | if test -z "$ac_cv_path_SED"; then | |
2604 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2605 | fi | |
2606 | else | |
2607 | ac_cv_path_SED=$SED | |
2608 | fi | |
2609 | ||
2610 | fi | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2612 | $as_echo "$ac_cv_path_SED" >&6; } | |
2613 | SED="$ac_cv_path_SED" | |
2614 | rm -f conftest.sed | |
2615 | ||
2616 | for ac_prog in gawk mawk nawk awk | |
2617 | do | |
2618 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2619 | set dummy $ac_prog; ac_word=$2 | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2621 | $as_echo_n "checking for $ac_word... " >&6; } | |
2622 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2623 | $as_echo_n "(cached) " >&6 | |
2624 | else | |
2625 | if test -n "$AWK"; then | |
2626 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2627 | else | |
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2629 | for as_dir in $PATH | |
2630 | do | |
2631 | IFS=$as_save_IFS | |
2632 | test -z "$as_dir" && as_dir=. | |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2635 | ac_cv_prog_AWK="$ac_prog" | |
2636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2637 | break 2 | |
2638 | fi | |
2639 | done | |
2640 | done | |
2641 | IFS=$as_save_IFS | |
2642 | ||
2643 | fi | |
2644 | fi | |
2645 | AWK=$ac_cv_prog_AWK | |
2646 | if test -n "$AWK"; then | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2648 | $as_echo "$AWK" >&6; } | |
2649 | else | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2651 | $as_echo "no" >&6; } | |
2652 | fi | |
2653 | ||
2654 | ||
2655 | test -n "$AWK" && break | |
2656 | done | |
2657 | ||
e5c3f801 | 2658 | |
0fdbe983 DJ |
2659 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2660 | ||
2661 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2662 | # a relative path. | |
2663 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2664 | INSTALL="${srcpwd}/install-sh -c" | |
2665 | fi | |
2666 | ||
a0da8069 NN |
2667 | # Set srcdir to "." if that's what it is. |
2668 | # This is important for multilib support. | |
2669 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2670 | if test "${pwd}" = "${srcpwd}" ; then |
2671 | srcdir=. | |
252b5132 RH |
2672 | fi |
2673 | ||
a0da8069 | 2674 | topsrcdir=$srcpwd |
252b5132 | 2675 | |
a0da8069 | 2676 | extra_host_args= |
afefada0 | 2677 | |
a0da8069 NN |
2678 | ### To add a new directory to the tree, first choose whether it is a target |
2679 | ### or a host dependent tool. Then put it into the appropriate list | |
2680 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2681 | |
c6b750e1 | 2682 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2683 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2684 | |
c6b750e1 DJ |
2685 | # Dependency sorting is only needed when *configuration* must be done in |
2686 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2687 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2688 | |
a0da8069 NN |
2689 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2690 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2691 | |
6a9cf61e PB |
2692 | # these library is used by various programs built for the build |
2693 | # environment | |
2694 | # | |
2695 | build_libs="build-libiberty" | |
2696 | ||
2697 | # these tools are built for the build environment | |
a90ef4bf | 2698 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2699 | |
a0da8069 NN |
2700 | # these libraries are used by various programs built for the host environment |
2701 | # | |
2bf680c4 | 2702 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" |
a0da8069 | 2703 | |
a0da8069 NN |
2704 | # these tools are built for the host environment |
2705 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2706 | # know that we are building the simulator. | |
2707 | # binutils, gas and ld appear in that order because it makes sense to run | |
2708 | # "make check" in that particular order. | |
e6de499b | 2709 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2710 | 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 |
2711 | |
2712 | # libgcj represents the runtime libraries only used by gcj. | |
2713 | libgcj="target-libffi \ | |
a0da8069 | 2714 | target-zlib \ |
a0da8069 NN |
2715 | target-libjava" |
2716 | ||
2717 | # these libraries are built for the target environment, and are built after | |
2718 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2719 | # Note that libiberty is not a target library. |
b1299c4e | 2720 | target_libraries="target-libgcc \ |
2bf680c4 | 2721 | target-libbacktrace \ |
a0da8069 NN |
2722 | target-libgloss \ |
2723 | target-newlib \ | |
cff87f51 | 2724 | target-libgomp \ |
7ec59b9e | 2725 | target-libatomic \ |
d32e2926 | 2726 | target-libitm \ |
b9459e83 | 2727 | target-libstdc++-v3 \ |
4b1cb4fe | 2728 | target-libmudflap \ |
bb780410 | 2729 | target-libssp \ |
e552509b | 2730 | target-libquadmath \ |
4b1cb4fe | 2731 | target-libgfortran \ |
4f0ef2d8 | 2732 | target-boehm-gc \ |
83326456 | 2733 | ${libgcj} \ |
a2592b1b | 2734 | target-libobjc \ |
e552509b ILT |
2735 | target-libada \ |
2736 | target-libgo" | |
a0da8069 | 2737 | |
9c14acb8 NN |
2738 | # these tools are built using the target libraries, and are intended to |
2739 | # run only in the target environment | |
a0da8069 | 2740 | # |
9c14acb8 | 2741 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2742 | # list belongs in this list. |
a0da8069 | 2743 | # |
a90ef4bf | 2744 | target_tools="target-rda" |
252b5132 | 2745 | |
a0da8069 | 2746 | ################################################################################ |
252b5132 | 2747 | |
a0da8069 NN |
2748 | ## All tools belong in one of the four categories, and are assigned above |
2749 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2750 | ## is important because configure will choke if they ever get through. | |
2751 | ## ${configdirs} is directories we build using the host tools. | |
2752 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2753 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2754 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2755 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2756 | |
9cc8ae67 PB |
2757 | |
2758 | ||
a0da8069 | 2759 | ################################################################################ |
252b5132 | 2760 | |
a0da8069 | 2761 | srcname="gnu development package" |
252b5132 | 2762 | |
a0da8069 NN |
2763 | # This gets set non-empty for some net releases of packages. |
2764 | appdirs="" | |
252b5132 | 2765 | |
a0da8069 NN |
2766 | # Define is_cross_compiler to save on calls to 'test'. |
2767 | is_cross_compiler= | |
2768 | if test x"${host}" = x"${target}" ; then | |
2769 | is_cross_compiler=no | |
252b5132 | 2770 | else |
a0da8069 | 2771 | is_cross_compiler=yes |
c6b750e1 | 2772 | fi |
252b5132 | 2773 | |
9175bfc0 | 2774 | # Find the build and target subdir names. |
dd12c3a8 | 2775 | |
66a79c16 DJ |
2776 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2777 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2778 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2779 | # However, they still use the build modules, because the corresponding | |
2780 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2781 | # finishes. So: | |
2782 | # - build_subdir is where we find build modules, and never changes. | |
2783 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2784 | ||
2785 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2786 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2787 | |
81ecdfbb RW |
2788 | # Check whether --with-build-libsubdir was given. |
2789 | if test "${with_build_libsubdir+set}" = set; then : | |
2790 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2791 | else |
2792 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2793 | fi |
2794 | ||
b00612cc PB |
2795 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2796 | if ( test $srcdir = . && test -d gcc ) \ | |
2797 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2798 | host_subdir="host-${host_noncanonical}" | |
2799 | else | |
2800 | host_subdir=. | |
2801 | fi | |
dd12c3a8 NN |
2802 | # No prefix. |
2803 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2804 | |
2fd0b40b RW |
2805 | # Be sure to cover against remnants of an in-tree build. |
2806 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2807 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2808 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2809 | fi | |
252b5132 | 2810 | |
a0da8069 NN |
2811 | # Skipdirs are removed silently. |
2812 | skipdirs= | |
2813 | # Noconfigdirs are removed loudly. | |
2814 | noconfigdirs="" | |
252b5132 | 2815 | |
a0da8069 NN |
2816 | use_gnu_ld= |
2817 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2818 | if test x$with_gnu_ld = xno ; then | |
2819 | use_gnu_ld=no | |
93f9b408 | 2820 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2821 | fi |
2822 | ||
a0da8069 NN |
2823 | use_gnu_as= |
2824 | # Make sure we don't let GNU as be added if we didn't want it. | |
2825 | if test x$with_gnu_as = xno ; then | |
2826 | use_gnu_as=no | |
2827 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2828 | fi |
2829 | ||
700d40ca ILT |
2830 | use_included_zlib= |
2831 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2832 | if test x$with_system_zlib = xyes ; then | |
2833 | use_included_zlib=no | |
2834 | noconfigdirs="$noconfigdirs zlib" | |
2835 | fi | |
2836 | ||
c6b750e1 | 2837 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2838 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2839 | |
a0da8069 NN |
2840 | case ${with_x} in |
2841 | yes | "") ;; # the default value for this tree is that X11 is available | |
2842 | no) | |
675c6968 | 2843 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2844 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2845 | enable_gdbtk=no |
a0da8069 NN |
2846 | ;; |
2847 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2848 | esac | |
252b5132 | 2849 | |
0377a422 | 2850 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2851 | # Remove these if host=target. |
2852 | cross_only="target-libgloss target-newlib target-opcodes" | |
2853 | ||
2854 | case $is_cross_compiler in | |
2855 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2856 | esac |
252b5132 | 2857 | |
a0da8069 NN |
2858 | # If both --with-headers and --with-libs are specified, default to |
2859 | # --without-newlib. | |
32be62b5 RS |
2860 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2861 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2862 | if test x"${with_newlib}" = x ; then |
2863 | with_newlib=no | |
2864 | fi | |
252b5132 RH |
2865 | fi |
2866 | ||
a0da8069 NN |
2867 | # Recognize --with-newlib/--without-newlib. |
2868 | case ${with_newlib} in | |
2869 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2870 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2871 | esac | |
252b5132 | 2872 | |
c7791212 NC |
2873 | # Handle --enable-gold, --enable-ld. |
2874 | # --disable-gold [--enable-ld] | |
2875 | # Build only ld. Default option. | |
d3b50760 L |
2876 | # --enable-gold [--enable-ld] |
2877 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2878 | # as "ld.bfd" and "ld". | |
2879 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2880 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2881 | # install ld as "ld.bfd". | |
2882 | # --enable-gold[=default] --disable-ld | |
2883 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2884 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2885 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2886 | # and ld.bfd). | |
c7791212 NC |
2887 | # In other words, ld is default |
2888 | # --enable-gold=default --enable-ld=default | |
2889 | # Error. | |
2890 | ||
2891 | default_ld= | |
81ecdfbb RW |
2892 | # Check whether --enable-gold was given. |
2893 | if test "${enable_gold+set}" = set; then : | |
2894 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2895 | else |
2896 | ENABLE_GOLD=no | |
81ecdfbb RW |
2897 | fi |
2898 | ||
c7791212 NC |
2899 | case "${ENABLE_GOLD}" in |
2900 | yes|default) | |
e6de499b NC |
2901 | # Check for ELF target. |
2902 | is_elf=no | |
2903 | case "${target}" in | |
2904 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2905 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
5b806d27 | 2906 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
7ec59b9e | 2907 | | *-*-solaris2* | *-*-nto*) |
e6de499b NC |
2908 | case "${target}" in |
2909 | *-*-linux*aout* | *-*-linux*oldld*) | |
2910 | ;; | |
2911 | *) | |
2912 | is_elf=yes | |
2913 | ;; | |
2914 | esac | |
2915 | esac | |
2916 | ||
2917 | if test "$is_elf" = "yes"; then | |
2918 | # Check for target supported by gold. | |
93f9b408 | 2919 | case "${target}" in |
5c0b3823 | 2920 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*) |
c7791212 NC |
2921 | configdirs="$configdirs gold" |
2922 | if test x${ENABLE_GOLD} = xdefault; then | |
2923 | default_ld=gold | |
2924 | fi | |
e6de499b | 2925 | ENABLE_GOLD=yes |
93f9b408 ILT |
2926 | ;; |
2927 | esac | |
e6de499b NC |
2928 | fi |
2929 | ;; | |
2930 | no) | |
2931 | ;; | |
2932 | *) | |
2933 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2934 | ;; | |
c7791212 NC |
2935 | esac |
2936 | ||
2937 | # Check whether --enable-ld was given. | |
2938 | if test "${enable_ld+set}" = set; then : | |
2939 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2940 | else | |
2941 | ENABLE_LD=yes | |
2942 | fi | |
2943 | ||
2944 | ||
2945 | case "${ENABLE_LD}" in | |
2946 | default) | |
d3b50760 | 2947 | if test x${default_ld} != x; then |
c7791212 NC |
2948 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2949 | fi | |
2950 | ;; | |
2951 | yes) | |
2952 | ;; | |
2953 | no) | |
2954 | if test x${ENABLE_GOLD} != xyes; then | |
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2956 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2957 | fi | |
2958 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2959 | ;; | |
2960 | *) | |
2961 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2962 | ;; | |
2963 | esac | |
93f9b408 | 2964 | |
a0da8069 | 2965 | # Configure extra directories which are host specific |
252b5132 | 2966 | |
a0da8069 NN |
2967 | case "${host}" in |
2968 | *-cygwin*) | |
2969 | configdirs="$configdirs libtermcap" ;; | |
2970 | esac | |
252b5132 | 2971 | |
59f7ec45 HPN |
2972 | # A target can indicate whether a language isn't supported for some reason. |
2973 | # Only spaces may be used in this macro; not newlines or tabs. | |
2974 | unsupported_languages= | |
2975 | ||
c6b750e1 | 2976 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
2977 | # target this usually means that a port of the program doesn't |
2978 | # exist yet. | |
252b5132 | 2979 | |
a0da8069 | 2980 | case "${host}" in |
3516a403 | 2981 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 2982 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 2983 | ;; |
a0da8069 | 2984 | esac |
252b5132 | 2985 | |
4b1cb4fe | 2986 | |
89a1e9c3 PB |
2987 | # Check whether --enable-libquadmath was given. |
2988 | if test "${enable_libquadmath+set}" = set; then : | |
2989 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2990 | else | |
2991 | ENABLE_LIBQUADMATH=yes | |
2992 | fi | |
2993 | ||
2994 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2995 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | # Check whether --enable-libquadmath-support was given. | |
3000 | if test "${enable_libquadmath_support+set}" = set; then : | |
3001 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3002 | else | |
3003 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3004 | fi | |
3005 | ||
3006 | enable_libquadmath_support= | |
3007 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3008 | enable_libquadmath_support=no | |
3009 | fi | |
3010 | ||
3011 | ||
81ecdfbb RW |
3012 | # Check whether --enable-libada was given. |
3013 | if test "${enable_libada+set}" = set; then : | |
3014 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3015 | else |
3016 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3017 | fi |
3018 | ||
a2592b1b | 3019 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3020 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3021 | fi |
3022 | ||
81ecdfbb RW |
3023 | # Check whether --enable-libssp was given. |
3024 | if test "${enable_libssp+set}" = set; then : | |
3025 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3026 | else |
3027 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3028 | fi |
3029 | ||
5f128533 | 3030 | |
a0da8069 NN |
3031 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3032 | # front-end isn't enabled, we still get libgcj disabled. | |
3033 | libgcj_saved=$libgcj | |
3034 | case $enable_libgcj in | |
3035 | yes) | |
3036 | # If we reset it here, it won't get added to noconfigdirs in the | |
3037 | # target-specific build rules, so it will be forcibly enabled | |
3038 | # (unless the Java language itself isn't enabled). | |
3039 | libgcj= | |
3040 | ;; | |
3041 | no) | |
3042 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3043 | # Don't disable libffi, though, other languages use it. |
3044 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3045 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3046 | # built. | |
3047 | libgcj_saved= | |
a0da8069 NN |
3048 | ;; |
3049 | esac | |
252b5132 | 3050 | |
ffdd6afc ILT |
3051 | # Check whether --enable-static-libjava was given. |
3052 | if test "${enable_static_libjava+set}" = set; then : | |
3053 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3054 | else | |
3055 | ENABLE_STATIC_LIBJAVA=no | |
3056 | fi | |
3057 | ||
3058 | enable_static_libjava= | |
3059 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3060 | enable_static_libjava=yes | |
3061 | fi | |
3062 | ||
3063 | if test x$enable_static_libjava != xyes ; then | |
3064 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3065 | fi | |
3066 | ||
4b1cb4fe | 3067 | |
a6df5a19 PB |
3068 | # Disable libmudflap on some systems. |
3069 | if test x$enable_libmudflap = x ; then | |
3e707e94 | 3070 | case "${target}" in |
29383458 | 3071 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
3d6dfe0f | 3072 | # Enable libmudflap by default in GNU and friends. |
3e707e94 PB |
3073 | ;; |
3074 | *-*-freebsd*) | |
3075 | # Enable libmudflap by default in FreeBSD. | |
3076 | ;; | |
3077 | *) | |
3078 | # Disable it by default everywhere else. | |
3079 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3080 | ;; | |
3081 | esac | |
a6df5a19 | 3082 | fi |
4b1cb4fe | 3083 | |
a6df5a19 PB |
3084 | # Disable libgomp on non POSIX hosted systems. |
3085 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3086 | # Enable libgomp by default on hosted POSIX systems. |
3087 | case "${target}" in | |
29383458 | 3088 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3089 | ;; |
5b806d27 | 3090 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3091 | ;; |
2479f722 | 3092 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3093 | ;; |
3094 | *-*-darwin* | *-*-aix*) | |
3095 | ;; | |
3096 | *) | |
3097 | noconfigdirs="$noconfigdirs target-libgomp" | |
3098 | ;; | |
3099 | esac | |
a6df5a19 | 3100 | fi |
b3ded179 | 3101 | |
7ec59b9e L |
3102 | # Disable libatomic on unsupported systems. |
3103 | if test -d ${srcdir}/libatomic; then | |
3104 | if test x$enable_libatomic = x; then | |
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3106 | $as_echo_n "checking for libatomic support... " >&6; } | |
3107 | if (srcdir=${srcdir}/libatomic; \ | |
3108 | . ${srcdir}/configure.tgt; \ | |
3109 | test -n "$UNSUPPORTED") | |
3110 | then | |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3112 | $as_echo "no" >&6; } | |
3113 | noconfigdirs="$noconfigdirs target-libatomic" | |
3114 | else | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3116 | $as_echo "yes" >&6; } | |
3117 | fi | |
3118 | fi | |
3119 | fi | |
3120 | ||
d32e2926 RH |
3121 | # Disable libitm on unsupported systems. |
3122 | if test -d ${srcdir}/libitm; then | |
3123 | if test x$enable_libitm = x; then | |
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3125 | $as_echo_n "checking for libitm support... " >&6; } | |
3126 | if (srcdir=${srcdir}/libitm; \ | |
3127 | . ${srcdir}/configure.tgt; \ | |
3128 | test -n "$UNSUPPORTED") | |
3129 | then | |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3131 | $as_echo "no" >&6; } | |
3132 | noconfigdirs="$noconfigdirs target-libitm" | |
3133 | else | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3135 | $as_echo "yes" >&6; } | |
3136 | fi | |
3137 | fi | |
3138 | fi | |
3139 | ||
1488e230 DE |
3140 | # Disable libquadmath for some systems. |
3141 | case "${target}" in | |
3142 | # libquadmath is unused on AIX and libquadmath build process use of | |
3143 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3144 | powerpc-*-aix* | rs6000-*-aix*) | |
3145 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3146 | ;; | |
3147 | esac | |
3148 | ||
065a5627 JM |
3149 | # Disable libssp for some systems. |
3150 | case "${target}" in | |
3151 | avr-*-*) | |
c5f5c3c2 | 3152 | # No hosted I/O support. |
065a5627 JM |
3153 | noconfigdirs="$noconfigdirs target-libssp" |
3154 | ;; | |
3155 | powerpc-*-aix* | rs6000-*-aix*) | |
3156 | noconfigdirs="$noconfigdirs target-libssp" | |
3157 | ;; | |
99c513f6 | 3158 | rl78-*-*) |
202e2356 NC |
3159 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3160 | # doesn't fault for those - instead, it gives a build-time error | |
3161 | # for explicit misaligned loads. | |
99c513f6 DD |
3162 | noconfigdirs="$noconfigdirs target-libssp" |
3163 | ;; | |
065a5627 JM |
3164 | esac |
3165 | ||
065a5627 JM |
3166 | # Disable libstdc++-v3 for some systems. |
3167 | case "${target}" in | |
3168 | *-*-vxworks*) | |
3169 | # VxWorks uses the Dinkumware C++ library. | |
3170 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3171 | ;; | |
3172 | arm*-wince-pe*) | |
3173 | # the C++ libraries don't build on top of CE's C libraries | |
3174 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3175 | ;; | |
3176 | avr-*-*) | |
3177 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3178 | ;; | |
3179 | esac | |
3180 | ||
3181 | # Disable Fortran for some systems. | |
3182 | case "${target}" in | |
3183 | mmix-*-*) | |
3184 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3185 | unsupported_languages="$unsupported_languages fortran" | |
3186 | ;; | |
3187 | esac | |
3188 | ||
0827f9a6 | 3189 | # Disable Java if libffi is not supported. |
9863d716 | 3190 | case "${target}" in |
0827f9a6 JM |
3191 | alpha*-*-*) |
3192 | ;; | |
3193 | arm*-*-*) | |
3194 | ;; | |
3195 | cris-*-*) | |
3196 | ;; | |
3197 | frv-*-*) | |
3198 | ;; | |
3199 | hppa*-*-linux*) | |
3200 | ;; | |
3201 | hppa*-*-hpux*) | |
3202 | ;; | |
3203 | i?86-*-*) | |
3204 | ;; | |
3205 | ia64*-*-*) | |
3206 | ;; | |
3207 | m32r*-*-*) | |
3208 | ;; | |
3209 | m68k-*-*) | |
3210 | ;; | |
2479f722 | 3211 | mips*-*-rtems*) |
0827f9a6 JM |
3212 | ;; |
3213 | mips*-*-linux*) | |
3214 | ;; | |
3215 | powerpc*-*-linux*) | |
3216 | ;; | |
3217 | powerpc-*-darwin*) | |
3218 | ;; | |
3219 | powerpc-*-aix* | rs6000-*-aix*) | |
3220 | ;; | |
3221 | powerpc-*-freebsd*) | |
3222 | ;; | |
3223 | powerpc64-*-freebsd*) | |
3224 | ;; | |
3225 | powerpc*-*-rtems*) | |
9863d716 | 3226 | ;; |
0827f9a6 JM |
3227 | s390-*-* | s390x-*-*) |
3228 | ;; | |
3229 | sh-*-* | sh[34]*-*-*) | |
3230 | ;; | |
3231 | sh64-*-* | sh5*-*-*) | |
3232 | ;; | |
3233 | sparc*-*-*) | |
3234 | ;; | |
3235 | x86_64-*-*) | |
3236 | ;; | |
3237 | *-*-*) | |
3238 | unsupported_languages="$unsupported_languages java" | |
3239 | ;; | |
3240 | esac | |
3241 | ||
3242 | # Disable Java, libgcj or related libraries for some systems. | |
3243 | case "${target}" in | |
9863d716 JM |
3244 | powerpc-*-darwin*) |
3245 | ;; | |
3246 | i[3456789]86-*-darwin*) | |
3247 | ;; | |
3248 | x86_64-*-darwin[912]*) | |
3249 | ;; | |
3250 | *-*-darwin*) | |
3251 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3252 | ;; | |
9863d716 JM |
3253 | *-*-netware*) |
3254 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3255 | ;; | |
3256 | *-*-rtems*) | |
3257 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3258 | ;; | |
3259 | *-*-tpf*) | |
3260 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3261 | ;; | |
3262 | *-*-uclinux*) | |
3263 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3264 | ;; | |
3265 | *-*-vxworks*) | |
3266 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3267 | ;; | |
9863d716 JM |
3268 | alpha*-*-*vms*) |
3269 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3270 | ;; | |
0827f9a6 | 3271 | arm-wince-pe) |
9863d716 JM |
3272 | noconfigdirs="$noconfigdirs ${libgcj}" |
3273 | ;; | |
9863d716 JM |
3274 | arm*-*-symbianelf*) |
3275 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3276 | ;; | |
9863d716 | 3277 | bfin-*-*) |
9863d716 JM |
3278 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3279 | ;; | |
9863d716 JM |
3280 | cris-*-* | crisv32-*-*) |
3281 | unsupported_languages="$unsupported_languages java" | |
3282 | case "${target}" in | |
3283 | *-*-linux*) | |
3284 | ;; | |
3285 | *) # See PR46792 regarding target-libffi. | |
3286 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3287 | esac | |
3288 | ;; | |
9863d716 JM |
3289 | hppa*64*-*-linux*) |
3290 | # In this case, it's because the hppa64-linux target is for | |
3291 | # the kernel only at this point and has no libc, and thus no | |
3292 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3293 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3294 | ;; |
82ae827f | 3295 | hppa*64*-*-hpux*) |
9863d716 JM |
3296 | noconfigdirs="$noconfigdirs ${libgcj}" |
3297 | ;; | |
3298 | hppa*-hp-hpux11*) | |
3299 | ;; | |
82ae827f | 3300 | hppa*-*-hpux*) |
9863d716 JM |
3301 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3302 | # build on HP-UX 10.20. | |
3303 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3304 | ;; | |
9863d716 JM |
3305 | ia64*-*-*vms*) |
3306 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3307 | ;; | |
9863d716 JM |
3308 | i[3456789]86-w64-mingw*) |
3309 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3310 | ;; | |
3311 | i[3456789]86-*-mingw*) | |
3312 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3313 | ;; | |
3314 | x86_64-*-mingw*) | |
3315 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3316 | ;; | |
9863d716 JM |
3317 | mmix-*-*) |
3318 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3319 | ;; |
3320 | powerpc-*-aix*) | |
3321 | # copied from rs6000-*-* entry | |
3322 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3323 | ;; | |
9863d716 JM |
3324 | rs6000-*-aix*) |
3325 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3326 | ;; | |
9863d716 JM |
3327 | *-*-lynxos*) |
3328 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3329 | ;; | |
9863d716 JM |
3330 | esac |
3331 | ||
691bb5a1 DD |
3332 | # Default libgloss CPU subdirectory. |
3333 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3334 | |
ff46fb8f JM |
3335 | case "${target}" in |
3336 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3337 | libgloss_dir=wince | |
3338 | ;; | |
3339 | arm*-*-*) | |
3340 | libgloss_dir=arm | |
3341 | ;; | |
3342 | cris-*-* | crisv32-*-*) | |
3343 | libgloss_dir=cris | |
3344 | ;; | |
3345 | hppa*-*-*) | |
3346 | libgloss_dir=pa | |
3347 | ;; | |
3348 | i[3456789]86-*-*) | |
3349 | libgloss_dir=i386 | |
3350 | ;; | |
3351 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3352 | libgloss_dir=m68hc11 | |
3353 | ;; | |
3354 | m68*-*-* | fido-*-*) | |
3355 | libgloss_dir=m68k | |
3356 | ;; | |
3357 | mips*-*-*) | |
3358 | libgloss_dir=mips | |
3359 | ;; | |
3360 | powerpc*-*-*) | |
3361 | libgloss_dir=rs6000 | |
3362 | ;; | |
3363 | sparc*-*-*) | |
3364 | libgloss_dir=sparc | |
3365 | ;; | |
3366 | esac | |
3367 | ||
c7e4b184 | 3368 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3369 | case "${target}" in |
c7e4b184 JM |
3370 | alpha*-dec-osf*) |
3371 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3372 | ;; | |
3373 | i[3456789]86-*-linux*) | |
3374 | # This section makes it possible to build newlib natively on linux. | |
3375 | # If we are using a cross compiler then don't configure newlib. | |
3376 | if test x${is_cross_compiler} != xno ; then | |
3377 | noconfigdirs="$noconfigdirs target-newlib" | |
3378 | fi | |
3379 | noconfigdirs="$noconfigdirs target-libgloss" | |
3380 | # If we are not using a cross compiler, do configure newlib. | |
3381 | # Note however, that newlib will only be configured in this situation | |
3382 | # if the --with-newlib option has been given, because otherwise | |
3383 | # 'target-newlib' will appear in skipdirs. | |
3384 | ;; | |
3385 | i[3456789]86-*-rdos*) | |
3386 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3387 | ;; | |
3388 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3389 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3390 | ;; | |
3391 | sparc-*-sunos4*) | |
3392 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3393 | ;; | |
3394 | *-*-aix*) | |
3395 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3396 | ;; | |
3397 | *-*-beos*) | |
3398 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3399 | ;; | |
a0da8069 | 3400 | *-*-chorusos) |
b2f14e4a | 3401 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3402 | ;; |
c7e4b184 JM |
3403 | *-*-dragonfly*) |
3404 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3405 | ;; | |
3406 | *-*-freebsd*) | |
3407 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3408 | ;; | |
3409 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3410 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3411 | ;; | |
3412 | *-*-lynxos*) | |
3413 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3414 | ;; | |
3415 | *-*-mingw*) | |
3416 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3417 | ;; | |
3418 | *-*-netbsd*) | |
3419 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3420 | ;; | |
3421 | *-*-netware*) | |
3422 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3423 | ;; | |
3424 | *-*-tpf*) | |
3425 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3426 | ;; | |
3427 | *-*-uclinux*) | |
3428 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3429 | ;; | |
3430 | *-*-vxworks*) | |
3431 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3432 | ;; | |
3433 | esac | |
3434 | ||
3435 | case "${target}" in | |
3436 | *-*-chorusos) | |
3437 | ;; | |
24741ab2 | 3438 | powerpc-*-darwin*) |
9d39db92 | 3439 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3440 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3441 | ;; |
85bd1942 TG |
3442 | i[3456789]86-*-darwin*) |
3443 | noconfigdirs="$noconfigdirs ld gprof" | |
3444 | noconfigdirs="$noconfigdirs sim target-rda" | |
3445 | ;; | |
e8a5fa9c | 3446 | x86_64-*-darwin[912]*) |
652dec25 TG |
3447 | noconfigdirs="$noconfigdirs ld gas gprof" |
3448 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3449 | ;; |
04d1ab34 | 3450 | *-*-darwin*) |
d320aacb | 3451 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3452 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3453 | ;; |
5b806d27 | 3454 | *-*-dragonfly*) |
5b806d27 | 3455 | ;; |
de0b4a87 | 3456 | *-*-freebsd*) |
4b1cb4fe DD |
3457 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3458 | && test -f /usr/local/include/gmp.h; then | |
3459 | with_gmp=/usr/local | |
3460 | fi | |
4b1cb4fe | 3461 | ;; |
f8a495c8 NC |
3462 | *-*-kaos*) |
3463 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3464 | noconfigdirs="$noconfigdirs target-libgloss" |
3465 | ;; | |
a0da8069 | 3466 | *-*-netbsd*) |
a0da8069 | 3467 | ;; |
2a3124ca | 3468 | *-*-netware*) |
a0da8069 NN |
3469 | ;; |
3470 | *-*-rtems*) | |
9863d716 | 3471 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3472 | ;; |
1587117a EC |
3473 | # The tpf target doesn't support gdb yet. |
3474 | *-*-tpf*) | |
c7e4b184 | 3475 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3476 | ;; |
c1968181 | 3477 | *-*-uclinux*) |
c7e4b184 | 3478 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3479 | ;; |
a0da8069 | 3480 | *-*-vxworks*) |
a0da8069 NN |
3481 | ;; |
3482 | alpha*-dec-osf*) | |
3483 | # ld works, but does not support shared libraries. | |
a0da8069 | 3484 | # gas doesn't generate exception information. |
c7e4b184 | 3485 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3486 | ;; |
3487 | alpha*-*-*vms*) | |
9863d716 | 3488 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3489 | ;; |
a0da8069 NN |
3490 | alpha*-*-*) |
3491 | # newlib is not 64 bit ready | |
9863d716 | 3492 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3493 | ;; |
a0da8069 | 3494 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3495 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 NN |
3496 | ;; |
3497 | arc-*-*) | |
782cb41f | 3498 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3499 | ;; |
a0da8069 | 3500 | arm-*-pe*) |
9863d716 | 3501 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3502 | ;; |
a0da8069 | 3503 | arm-*-riscix*) |
b2f14e4a | 3504 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3505 | ;; |
a0da8069 | 3506 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3507 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3508 | ;; |
b2f14e4a JM |
3509 | tic54x-*-*) |
3510 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3511 | ;; |
a0da8069 | 3512 | d10v-*-*) |
b2f14e4a | 3513 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3514 | ;; |
3515 | d30v-*-*) | |
b2f14e4a | 3516 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3517 | ;; |
3518 | fr30-*-elf*) | |
9863d716 | 3519 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3520 | ;; |
20135e4c | 3521 | moxie-*-*) |
20135e4c NC |
3522 | noconfigdirs="$noconfigdirs gprof" |
3523 | ;; | |
a0da8069 | 3524 | h8300*-*-*) |
9863d716 | 3525 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3526 | ;; |
3527 | h8500-*-*) | |
b2f14e4a | 3528 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3529 | ;; |
caeba88f | 3530 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3531 | ;; |
93cc359e | 3532 | hppa*64*-*-linux*) |
a0da8069 | 3533 | ;; |
f0ff0f90 | 3534 | hppa*-*-linux*) |
5dcac624 | 3535 | ;; |
a0da8069 | 3536 | hppa*-*-*elf* | \ |
a0da8069 NN |
3537 | hppa*-*-lites* | \ |
3538 | hppa*-*-openbsd* | \ | |
3539 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3540 | ;; |
3541 | hppa*-hp-hpux11*) | |
0377a422 | 3542 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3543 | ;; |
691bb5a1 | 3544 | hppa*-*-pro*) |
691bb5a1 | 3545 | ;; |
a0da8069 | 3546 | hppa*-*-*) |
9863d716 | 3547 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3548 | ;; |
b07c2aad | 3549 | i960-*-*) |
b2f14e4a | 3550 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3551 | ;; |
a0da8069 NN |
3552 | ia64*-*-elf*) |
3553 | # No gdb support yet. | |
0377a422 | 3554 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3555 | ;; |
3556 | ia64*-**-hpux*) | |
92c9a463 | 3557 | # No ld support yet. |
9863d716 | 3558 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3559 | ;; |
19e99079 | 3560 | ia64*-*-*vms*) |
7ec59b9e L |
3561 | # No ld support yet. |
3562 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3563 | ;; |
1f53ca9a | 3564 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3565 | ;; |
3566 | i[3456789]86-*-mingw*) | |
45055374 | 3567 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3568 | ;; |
a0da8069 NN |
3569 | *-*-cygwin*) |
3570 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3571 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3572 | # always build newlib if winsup directory is present. |
45055374 | 3573 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3574 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3575 | elif test -d "$srcdir/newlib"; then |
45055374 | 3576 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3577 | fi |
c6b750e1 | 3578 | ;; |
ec11bdc6 | 3579 | i[3456789]86-*-pe) |
782cb41f | 3580 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3581 | ;; |
ec11bdc6 | 3582 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3583 | # The linker does not yet know about weak symbols in COFF, |
3584 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3585 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3586 | ;; |
ec11bdc6 | 3587 | i[3456789]86-*-sco*) |
b2f14e4a | 3588 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3589 | ;; |
cff32a7c | 3590 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3591 | noconfigdirs="$noconfigdirs target-libgloss" |
3592 | ;; | |
ec11bdc6 | 3593 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3594 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3595 | ;; |
ec11bdc6 | 3596 | i[3456789]86-*-beos*) |
c7e4b184 | 3597 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3598 | ;; |
b59bea8a | 3599 | i[3456789]86-*-rdos*) |
c7e4b184 | 3600 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3601 | ;; |
a0da8069 | 3602 | mmix-*-*) |
9863d716 | 3603 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3604 | ;; |
4970f871 | 3605 | mt-*-*) |
cdb9b172 AH |
3606 | noconfigdirs="$noconfigdirs sim" |
3607 | ;; | |
a0da8069 NN |
3608 | powerpc-*-aix*) |
3609 | # copied from rs6000-*-* entry | |
c7e4b184 | 3610 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3611 | ;; |
93cc359e | 3612 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3613 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3614 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3615 | # always build newlib. |
3616 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3617 | ;; | |
3618 | # This is temporary until we can link against shared libraries | |
3619 | powerpcle-*-solaris*) | |
b2f14e4a | 3620 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3621 | ;; |
3622 | powerpc-*-beos*) | |
c7e4b184 | 3623 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3624 | ;; |
a0da8069 | 3625 | rs6000-*-lynxos*) |
c7e4b184 | 3626 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3627 | ;; |
3628 | rs6000-*-aix*) | |
c7e4b184 | 3629 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3630 | ;; |
3631 | rs6000-*-*) | |
9863d716 | 3632 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3633 | ;; |
3634 | m68k-apollo-*) | |
b2f14e4a | 3635 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3636 | ;; |
25a07265 | 3637 | microblaze*) |
9863d716 | 3638 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3639 | ;; |
d09bbf00 | 3640 | mips*-sde-elf* | mips*-mti-elf*) |
5bd8be13 RS |
3641 | if test x$with_newlib = xyes; then |
3642 | noconfigdirs="$noconfigdirs gprof" | |
3643 | fi | |
5bd8be13 | 3644 | ;; |
a0da8069 | 3645 | mips*-*-irix5*) |
b2f14e4a | 3646 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3647 | ;; |
3648 | mips*-*-irix6*) | |
9863d716 | 3649 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3650 | ;; |
a0da8069 | 3651 | mips*-*-bsd*) |
b2f14e4a | 3652 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3653 | ;; |
a0da8069 | 3654 | mips*-*-linux*) |
a0da8069 NN |
3655 | ;; |
3656 | mips*-*-*) | |
9863d716 | 3657 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3658 | ;; |
dbf85af7 | 3659 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3660 | case "${target}" in |
3661 | sh*-*-elf) | |
9863d716 | 3662 | ;; |
e8a5fa9c | 3663 | *) |
9863d716 | 3664 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3665 | esac |
a0da8069 | 3666 | ;; |
a0da8069 | 3667 | sparc-*-sunos4*) |
c7e4b184 | 3668 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3669 | use_gnu_ld=no |
3670 | fi | |
3671 | ;; | |
619a3713 | 3672 | tic6x-*-*) |
40ae9136 | 3673 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3674 | ;; |
eb4b2452 NC |
3675 | tilepro-*-* | tilegx-*-*) |
3676 | noconfigdirs="$noconfigdirs sim" | |
3677 | ;; | |
a0da8069 | 3678 | v810-*-*) |
b2f14e4a | 3679 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3680 | ;; |
3681 | vax-*-*) | |
9863d716 | 3682 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3683 | ;; |
a0da8069 | 3684 | esac |
252b5132 | 3685 | |
a0da8069 NN |
3686 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3687 | # depends upon some newlib header files. | |
3688 | case "${noconfigdirs}" in | |
3689 | *target-libgloss*) ;; | |
3690 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3691 | esac | |
3692 | ||
a0da8069 | 3693 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3694 | host_makefile_frag=/dev/null |
3695 | if test -d ${srcdir}/config ; then | |
3696 | case "${host}" in | |
ec11bdc6 | 3697 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3698 | host_makefile_frag="config/mh-djgpp" |
3699 | ;; | |
3700 | *-cygwin*) | |
e33b51a6 | 3701 | |
81ecdfbb RW |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3703 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3704 | echo a >cygwin-cat-check |
1f53ca9a | 3705 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3706 | rm cygwin-cat-check |
81ecdfbb RW |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3708 | $as_echo "yes" >&6; } | |
e33b51a6 | 3709 | else |
8ade07e9 | 3710 | rm cygwin-cat-check |
81ecdfbb RW |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3712 | $as_echo "no" >&6; } | |
3713 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3714 | Please either mount the build directory in binary mode or run the following |
3715 | commands before running any configure script: | |
3716 | set -o igncr | |
3717 | export SHELLOPTS | |
81ecdfbb | 3718 | " "$LINENO" 5 |
e33b51a6 | 3719 | fi |
e33b51a6 | 3720 | |
a0da8069 NN |
3721 | host_makefile_frag="config/mh-cygwin" |
3722 | ;; | |
8a1599ab | 3723 | *-mingw*) |
84e7906e | 3724 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3725 | ;; |
da888c87 | 3726 | hppa*-hp-hpux10*) |
da888c87 | 3727 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3728 | ;; |
3516a403 | 3729 | hppa*-hp-hpux*) |
da888c87 PB |
3730 | host_makefile_frag="config/mh-pa" |
3731 | ;; | |
3732 | hppa*-*) | |
3733 | host_makefile_frag="config/mh-pa" | |
3734 | ;; | |
e552509b ILT |
3735 | *-*-darwin*) |
3736 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3737 | ;; |
f6d183c0 PB |
3738 | powerpc-*-aix*) |
3739 | host_makefile_frag="config/mh-ppc-aix" | |
3740 | ;; | |
3741 | rs6000-*-aix*) | |
3742 | host_makefile_frag="config/mh-ppc-aix" | |
3743 | ;; | |
a0da8069 NN |
3744 | esac |
3745 | fi | |
3746 | ||
9e07f89d | 3747 | if test "${build}" != "${host}" ; then |
1576798e PB |
3748 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3749 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3750 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3751 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3752 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3753 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3754 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3755 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3756 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3757 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3758 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3759 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3760 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3761 | else | |
3762 | AR_FOR_BUILD="\$(AR)" | |
3763 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3764 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3765 | CXX_FOR_BUILD="\$(CXX)" |
3766 | GCJ_FOR_BUILD="\$(GCJ)" | |
3767 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3768 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3769 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3770 | LD_FOR_BUILD="\$(LD)" | |
3771 | NM_FOR_BUILD="\$(NM)" | |
3772 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3773 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3774 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3775 | fi |
3776 | ||
3777 | ac_ext=c | |
c6b750e1 DJ |
3778 | ac_cpp='$CPP $CPPFLAGS' |
3779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3782 | if test -n "$ac_tool_prefix"; then | |
3783 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3784 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3786 | $as_echo_n "checking for $ac_word... " >&6; } | |
3787 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3788 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3789 | else |
3790 | if test -n "$CC"; then | |
3791 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3792 | else | |
3793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3794 | for as_dir in $PATH | |
3795 | do | |
3796 | IFS=$as_save_IFS | |
3797 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3798 | for ac_exec_ext in '' $ac_executable_extensions; do |
3799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3800 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3802 | break 2 |
3803 | fi | |
3804 | done | |
81ecdfbb RW |
3805 | done |
3806 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3807 | |
3808 | fi | |
3809 | fi | |
3810 | CC=$ac_cv_prog_CC | |
3811 | if test -n "$CC"; then | |
81ecdfbb RW |
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3813 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3814 | else |
81ecdfbb RW |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3816 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3817 | fi |
3818 | ||
81ecdfbb | 3819 | |
c6b750e1 DJ |
3820 | fi |
3821 | if test -z "$ac_cv_prog_CC"; then | |
3822 | ac_ct_CC=$CC | |
6a9cf61e | 3823 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3824 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3826 | $as_echo_n "checking for $ac_word... " >&6; } | |
3827 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3828 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3829 | else |
3830 | if test -n "$ac_ct_CC"; then | |
3831 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3832 | else | |
3833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3834 | for as_dir in $PATH | |
3835 | do | |
3836 | IFS=$as_save_IFS | |
3837 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3838 | for ac_exec_ext in '' $ac_executable_extensions; do |
3839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3840 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3842 | break 2 |
3843 | fi | |
3844 | done | |
81ecdfbb RW |
3845 | done |
3846 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3847 | |
3848 | fi | |
3849 | fi | |
3850 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3851 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3853 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3854 | else |
81ecdfbb RW |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3856 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3857 | fi |
3858 | ||
81ecdfbb RW |
3859 | if test "x$ac_ct_CC" = x; then |
3860 | CC="" | |
3861 | else | |
3862 | case $cross_compiling:$ac_tool_warned in | |
3863 | yes:) | |
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3865 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3866 | ac_tool_warned=yes ;; | |
3867 | esac | |
3868 | CC=$ac_ct_CC | |
3869 | fi | |
c6b750e1 DJ |
3870 | else |
3871 | CC="$ac_cv_prog_CC" | |
3872 | fi | |
3873 | ||
3874 | if test -z "$CC"; then | |
81ecdfbb RW |
3875 | if test -n "$ac_tool_prefix"; then |
3876 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 3877 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3879 | $as_echo_n "checking for $ac_word... " >&6; } | |
3880 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3881 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3882 | else |
3883 | if test -n "$CC"; then | |
3884 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3885 | else | |
c6b750e1 DJ |
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3887 | for as_dir in $PATH | |
3888 | do | |
3889 | IFS=$as_save_IFS | |
3890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
3892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3893 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3895 | break 2 |
3896 | fi | |
3897 | done | |
81ecdfbb RW |
3898 | done |
3899 | IFS=$as_save_IFS | |
c6b750e1 | 3900 | |
9e07f89d NN |
3901 | fi |
3902 | fi | |
c6b750e1 | 3903 | CC=$ac_cv_prog_CC |
9e07f89d | 3904 | if test -n "$CC"; then |
81ecdfbb RW |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3906 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3907 | else |
81ecdfbb RW |
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3909 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3910 | fi |
3911 | ||
c6b750e1 | 3912 | |
81ecdfbb | 3913 | fi |
c6b750e1 | 3914 | fi |
9e07f89d NN |
3915 | if test -z "$CC"; then |
3916 | # Extract the first word of "cc", so it can be a program name with args. | |
3917 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3919 | $as_echo_n "checking for $ac_word... " >&6; } | |
3920 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3921 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3922 | else |
3923 | if test -n "$CC"; then | |
3924 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3925 | else | |
9e07f89d | 3926 | ac_prog_rejected=no |
c6b750e1 DJ |
3927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3928 | for as_dir in $PATH | |
3929 | do | |
3930 | IFS=$as_save_IFS | |
3931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3932 | for ac_exec_ext in '' $ac_executable_extensions; do |
3933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
3934 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3935 | ac_prog_rejected=yes | |
3936 | continue | |
3937 | fi | |
3938 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3940 | break 2 |
3941 | fi | |
3942 | done | |
81ecdfbb RW |
3943 | done |
3944 | IFS=$as_save_IFS | |
c6b750e1 | 3945 | |
9e07f89d NN |
3946 | if test $ac_prog_rejected = yes; then |
3947 | # We found a bogon in the path, so make sure we never use it. | |
3948 | set dummy $ac_cv_prog_CC | |
3949 | shift | |
c6b750e1 | 3950 | if test $# != 0; then |
9e07f89d NN |
3951 | # We chose a different compiler from the bogus one. |
3952 | # However, it has the same basename, so the bogon will be chosen | |
3953 | # first if we set CC to just the basename; use the full file name. | |
3954 | shift | |
c6b750e1 | 3955 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
3956 | fi |
3957 | fi | |
3958 | fi | |
3959 | fi | |
c6b750e1 | 3960 | CC=$ac_cv_prog_CC |
9e07f89d | 3961 | if test -n "$CC"; then |
81ecdfbb RW |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3963 | $as_echo "$CC" >&6; } | |
9e07f89d | 3964 | else |
81ecdfbb RW |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3966 | $as_echo "no" >&6; } | |
9e07f89d NN |
3967 | fi |
3968 | ||
81ecdfbb | 3969 | |
c6b750e1 DJ |
3970 | fi |
3971 | if test -z "$CC"; then | |
3972 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3973 | for ac_prog in cl.exe |
c6b750e1 DJ |
3974 | do |
3975 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3976 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3978 | $as_echo_n "checking for $ac_word... " >&6; } | |
3979 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3980 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3981 | else |
3982 | if test -n "$CC"; then | |
3983 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3984 | else | |
c6b750e1 DJ |
3985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3986 | for as_dir in $PATH | |
3987 | do | |
3988 | IFS=$as_save_IFS | |
3989 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3990 | for ac_exec_ext in '' $ac_executable_extensions; do |
3991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3992 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 3994 | break 2 |
376a0e54 | 3995 | fi |
c6b750e1 | 3996 | done |
81ecdfbb RW |
3997 | done |
3998 | IFS=$as_save_IFS | |
cac3d6c4 | 3999 | |
c6b750e1 DJ |
4000 | fi |
4001 | fi | |
4002 | CC=$ac_cv_prog_CC | |
4003 | if test -n "$CC"; then | |
81ecdfbb RW |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4005 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4006 | else |
81ecdfbb RW |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4008 | $as_echo "no" >&6; } | |
9e07f89d | 4009 | fi |
cac3d6c4 | 4010 | |
81ecdfbb | 4011 | |
c6b750e1 DJ |
4012 | test -n "$CC" && break |
4013 | done | |
cac3d6c4 | 4014 | fi |
c6b750e1 DJ |
4015 | if test -z "$CC"; then |
4016 | ac_ct_CC=$CC | |
81ecdfbb | 4017 | for ac_prog in cl.exe |
c6b750e1 DJ |
4018 | do |
4019 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4020 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4022 | $as_echo_n "checking for $ac_word... " >&6; } | |
4023 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4024 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4025 | else |
c6b750e1 DJ |
4026 | if test -n "$ac_ct_CC"; then |
4027 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4028 | else |
c6b750e1 DJ |
4029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4030 | for as_dir in $PATH | |
4031 | do | |
4032 | IFS=$as_save_IFS | |
4033 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4034 | for ac_exec_ext in '' $ac_executable_extensions; do |
4035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4036 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4038 | break 2 |
4039 | fi | |
4040 | done | |
81ecdfbb RW |
4041 | done |
4042 | IFS=$as_save_IFS | |
c6b750e1 | 4043 | |
cac3d6c4 CM |
4044 | fi |
4045 | fi | |
c6b750e1 DJ |
4046 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4047 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4049 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4050 | else |
81ecdfbb RW |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4052 | $as_echo "no" >&6; } | |
cac3d6c4 | 4053 | fi |
376a0e54 | 4054 | |
81ecdfbb | 4055 | |
c6b750e1 DJ |
4056 | test -n "$ac_ct_CC" && break |
4057 | done | |
4058 | ||
81ecdfbb RW |
4059 | if test "x$ac_ct_CC" = x; then |
4060 | CC="" | |
4061 | else | |
4062 | case $cross_compiling:$ac_tool_warned in | |
4063 | yes:) | |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4065 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4066 | ac_tool_warned=yes ;; | |
4067 | esac | |
4068 | CC=$ac_ct_CC | |
4069 | fi | |
c6b750e1 DJ |
4070 | fi |
4071 | ||
4072 | fi | |
4073 | ||
4074 | ||
81ecdfbb RW |
4075 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4077 | as_fn_error "no acceptable C compiler found in \$PATH | |
4078 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4079 | |
4080 | # Provide some information about the compiler. | |
81ecdfbb RW |
4081 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4082 | set X $ac_compile | |
4083 | ac_compiler=$2 | |
4084 | for ac_option in --version -v -V -qversion; do | |
4085 | { { ac_try="$ac_compiler $ac_option >&5" | |
4086 | case "(($ac_try" in | |
4087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4088 | *) ac_try_echo=$ac_try;; | |
4089 | esac | |
4090 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4091 | $as_echo "$ac_try_echo"; } >&5 | |
4092 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4093 | ac_status=$? |
81ecdfbb RW |
4094 | if test -s conftest.err; then |
4095 | sed '10a\ | |
4096 | ... rest of stderr output deleted ... | |
4097 | 10q' conftest.err >conftest.er1 | |
4098 | cat conftest.er1 >&5 | |
4099 | rm -f conftest.er1 conftest.err | |
4100 | fi | |
4101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4102 | test $ac_status = 0; } | |
4103 | done | |
c6b750e1 | 4104 | |
81ecdfbb | 4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4106 | /* end confdefs.h. */ |
4107 | ||
4108 | int | |
4109 | main () | |
4110 | { | |
4111 | ||
4112 | ; | |
4113 | return 0; | |
4114 | } | |
4115 | _ACEOF | |
4116 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4117 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4118 | # Try to create an executable without -o first, disregard a.out. |
4119 | # It will help us diagnose broken compilers, and finding out an intuition | |
4120 | # of exeext. | |
81ecdfbb RW |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4122 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4123 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4124 | ||
4125 | # The possible output files: | |
4126 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4127 | ||
4128 | ac_rmfiles= | |
4129 | for ac_file in $ac_files | |
4130 | do | |
4131 | case $ac_file in | |
4132 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4133 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4134 | esac | |
4135 | done | |
4136 | rm -f $ac_rmfiles | |
4137 | ||
4138 | if { { ac_try="$ac_link_default" | |
4139 | case "(($ac_try" in | |
4140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4141 | *) ac_try_echo=$ac_try;; | |
4142 | esac | |
4143 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4144 | $as_echo "$ac_try_echo"; } >&5 | |
4145 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4146 | ac_status=$? |
81ecdfbb RW |
4147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4148 | test $ac_status = 0; }; then : | |
4149 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4150 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4151 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4152 | # so that the user can short-circuit this test for compilers unknown to | |
4153 | # Autoconf. | |
4154 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4155 | do |
4156 | test -f "$ac_file" || continue | |
4157 | case $ac_file in | |
81ecdfbb | 4158 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4159 | ;; |
4160 | [ab].out ) | |
4161 | # We found the default executable, but exeext='' is most | |
4162 | # certainly right. | |
4163 | break;; | |
4164 | *.* ) | |
81ecdfbb RW |
4165 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4166 | then :; else | |
4167 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4168 | fi | |
4169 | # We set ac_cv_exeext here because the later test for it is not | |
4170 | # safe: cross compilers may not add the suffix if given an `-o' | |
4171 | # argument, so we may need to know it at that point already. | |
4172 | # Even if this section looks crufty: it has the advantage of | |
4173 | # actually working. | |
c6b750e1 DJ |
4174 | break;; |
4175 | * ) | |
4176 | break;; | |
4177 | esac | |
4178 | done | |
81ecdfbb RW |
4179 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4180 | ||
c6b750e1 | 4181 | else |
81ecdfbb RW |
4182 | ac_file='' |
4183 | fi | |
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4185 | $as_echo "$ac_file" >&6; } | |
4186 | if test -z "$ac_file"; then : | |
4187 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4188 | sed 's/^/| /' conftest.$ac_ext >&5 |
4189 | ||
81ecdfbb RW |
4190 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4192 | { as_fn_set_status 77 | |
4193 | as_fn_error "C compiler cannot create executables | |
4194 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4195 | fi |
c6b750e1 | 4196 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4197 | |
81ecdfbb | 4198 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4199 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4201 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4202 | # If not cross compiling, check that we can run a simple program. |
4203 | if test "$cross_compiling" != yes; then | |
4204 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4205 | { { case "(($ac_try" in |
4206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4207 | *) ac_try_echo=$ac_try;; | |
4208 | esac | |
4209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4210 | $as_echo "$ac_try_echo"; } >&5 | |
4211 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4212 | ac_status=$? |
81ecdfbb RW |
4213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4214 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4215 | cross_compiling=no |
4216 | else | |
4217 | if test "$cross_compiling" = maybe; then | |
4218 | cross_compiling=yes | |
4219 | else | |
81ecdfbb RW |
4220 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4222 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4223 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4224 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4225 | fi |
4226 | fi | |
4227 | fi | |
81ecdfbb RW |
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4229 | $as_echo "yes" >&6; } | |
c6b750e1 | 4230 | |
81ecdfbb | 4231 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4232 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4233 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4234 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4236 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4238 | $as_echo "$cross_compiling" >&6; } | |
4239 | ||
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4241 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4242 | if { { ac_try="$ac_link" | |
4243 | case "(($ac_try" in | |
4244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4245 | *) ac_try_echo=$ac_try;; | |
4246 | esac | |
4247 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4248 | $as_echo "$ac_try_echo"; } >&5 | |
4249 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4250 | ac_status=$? |
81ecdfbb RW |
4251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4252 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4253 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4254 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4255 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4256 | # `rm'. | |
4257 | for ac_file in conftest.exe conftest conftest.*; do | |
4258 | test -f "$ac_file" || continue | |
4259 | case $ac_file in | |
81ecdfbb | 4260 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4261 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4262 | break;; |
4263 | * ) break;; | |
4264 | esac | |
4265 | done | |
4266 | else | |
81ecdfbb RW |
4267 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4269 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4270 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4271 | fi |
c6b750e1 | 4272 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4274 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4275 | |
4276 | rm -f conftest.$ac_ext | |
4277 | EXEEXT=$ac_cv_exeext | |
4278 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4280 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4281 | if test "${ac_cv_objext+set}" = set; then : | |
4282 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4283 | else |
81ecdfbb | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4285 | /* end confdefs.h. */ |
4286 | ||
4287 | int | |
4288 | main () | |
4289 | { | |
4290 | ||
4291 | ; | |
4292 | return 0; | |
4293 | } | |
4294 | _ACEOF | |
4295 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4296 | if { { ac_try="$ac_compile" |
4297 | case "(($ac_try" in | |
4298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4299 | *) ac_try_echo=$ac_try;; | |
4300 | esac | |
4301 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4302 | $as_echo "$ac_try_echo"; } >&5 | |
4303 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4304 | ac_status=$? |
81ecdfbb RW |
4305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4306 | test $ac_status = 0; }; then : | |
4307 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4308 | test -f "$ac_file" || continue; | |
c6b750e1 | 4309 | case $ac_file in |
81ecdfbb | 4310 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4311 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4312 | break;; | |
4313 | esac | |
4314 | done | |
cac3d6c4 | 4315 | else |
81ecdfbb | 4316 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4317 | sed 's/^/| /' conftest.$ac_ext >&5 |
4318 | ||
81ecdfbb RW |
4319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4321 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4322 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4323 | fi |
c6b750e1 DJ |
4324 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4325 | fi | |
81ecdfbb RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4327 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4328 | OBJEXT=$ac_cv_objext |
4329 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4331 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4332 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4333 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4334 | else |
81ecdfbb | 4335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4336 | /* end confdefs.h. */ |
4337 | ||
4338 | int | |
4339 | main () | |
4340 | { | |
4341 | #ifndef __GNUC__ | |
4342 | choke me | |
4343 | #endif | |
4344 | ||
4345 | ; | |
4346 | return 0; | |
4347 | } | |
4348 | _ACEOF | |
81ecdfbb | 4349 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4350 | ac_compiler_gnu=yes |
4351 | else | |
81ecdfbb | 4352 | ac_compiler_gnu=no |
c6b750e1 | 4353 | fi |
81ecdfbb | 4354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4355 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4356 | ||
4357 | fi | |
81ecdfbb RW |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4359 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4360 | if test $ac_compiler_gnu = yes; then | |
4361 | GCC=yes | |
4362 | else | |
4363 | GCC= | |
4364 | fi | |
c6b750e1 DJ |
4365 | ac_test_CFLAGS=${CFLAGS+set} |
4366 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4368 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4369 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4370 | $as_echo_n "(cached) " >&6 | |
4371 | else | |
4372 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4373 | ac_c_werror_flag=yes | |
4374 | ac_cv_prog_cc_g=no | |
4375 | CFLAGS="-g" | |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4377 | /* end confdefs.h. */ |
4378 | ||
4379 | int | |
4380 | main () | |
4381 | { | |
4382 | ||
4383 | ; | |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
81ecdfbb | 4387 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4388 | ac_cv_prog_cc_g=yes |
4389 | else | |
81ecdfbb RW |
4390 | CFLAGS="" |
4391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4392 | /* end confdefs.h. */ | |
4393 | ||
4394 | int | |
4395 | main () | |
4396 | { | |
4397 | ||
4398 | ; | |
4399 | return 0; | |
4400 | } | |
4401 | _ACEOF | |
4402 | if ac_fn_c_try_compile "$LINENO"; then : | |
4403 | ||
4404 | else | |
4405 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4406 | CFLAGS="-g" | |
4407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4408 | /* end confdefs.h. */ | |
cac3d6c4 | 4409 | |
81ecdfbb RW |
4410 | int |
4411 | main () | |
4412 | { | |
4413 | ||
4414 | ; | |
4415 | return 0; | |
4416 | } | |
4417 | _ACEOF | |
4418 | if ac_fn_c_try_compile "$LINENO"; then : | |
4419 | ac_cv_prog_cc_g=yes | |
4420 | fi | |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4422 | fi |
81ecdfbb | 4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4424 | fi |
81ecdfbb RW |
4425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4426 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4427 | fi | |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4429 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4430 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4431 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4432 | elif test $ac_cv_prog_cc_g = yes; then |
4433 | if test "$GCC" = yes; then | |
4434 | CFLAGS="-g -O2" | |
4435 | else | |
4436 | CFLAGS="-g" | |
4437 | fi | |
4438 | else | |
4439 | if test "$GCC" = yes; then | |
4440 | CFLAGS="-O2" | |
4441 | else | |
4442 | CFLAGS= | |
4443 | fi | |
4444 | fi | |
81ecdfbb RW |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4446 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4447 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4448 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4449 | else |
81ecdfbb | 4450 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4451 | ac_save_CC=$CC |
81ecdfbb | 4452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4453 | /* end confdefs.h. */ |
4454 | #include <stdarg.h> | |
4455 | #include <stdio.h> | |
4456 | #include <sys/types.h> | |
4457 | #include <sys/stat.h> | |
4458 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4459 | struct buf { int x; }; | |
4460 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4461 | static char *e (p, i) | |
4462 | char **p; | |
4463 | int i; | |
4464 | { | |
4465 | return p[i]; | |
4466 | } | |
4467 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4468 | { | |
4469 | char *s; | |
4470 | va_list v; | |
4471 | va_start (v,p); | |
4472 | s = g (p, va_arg (v,int)); | |
4473 | va_end (v); | |
4474 | return s; | |
4475 | } | |
4476 | ||
4477 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4478 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4479 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4480 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4481 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4482 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4483 | that's true only with -std. */ |
c6b750e1 DJ |
4484 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4485 | ||
81ecdfbb RW |
4486 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4487 | inside strings and character constants. */ | |
4488 | #define FOO(x) 'x' | |
4489 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4490 | ||
c6b750e1 DJ |
4491 | int test (int i, double x); |
4492 | struct s1 {int (*f) (int a);}; | |
4493 | struct s2 {int (*f) (double a);}; | |
4494 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4495 | int argc; | |
4496 | char **argv; | |
4497 | int | |
4498 | main () | |
4499 | { | |
4500 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4501 | ; | |
4502 | return 0; | |
4503 | } | |
4504 | _ACEOF | |
81ecdfbb RW |
4505 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4506 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4507 | do |
4508 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4509 | if ac_fn_c_try_compile "$LINENO"; then : |
4510 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4511 | fi |
81ecdfbb RW |
4512 | rm -f core conftest.err conftest.$ac_objext |
4513 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4514 | done |
81ecdfbb | 4515 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4516 | CC=$ac_save_CC |
4517 | ||
4518 | fi | |
81ecdfbb RW |
4519 | # AC_CACHE_VAL |
4520 | case "x$ac_cv_prog_cc_c89" in | |
4521 | x) | |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4523 | $as_echo "none needed" >&6; } ;; | |
4524 | xno) | |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4526 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4527 | *) |
81ecdfbb RW |
4528 | CC="$CC $ac_cv_prog_cc_c89" |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4530 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4531 | esac |
81ecdfbb | 4532 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4533 | |
c6b750e1 DJ |
4534 | fi |
4535 | ||
c6b750e1 DJ |
4536 | ac_ext=c |
4537 | ac_cpp='$CPP $CPPFLAGS' | |
4538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4541 | |
81ecdfbb | 4542 | ac_ext=cpp |
18f6b6ee PB |
4543 | ac_cpp='$CXXCPP $CPPFLAGS' |
4544 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4545 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4546 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4547 | if test -z "$CXX"; then |
4548 | if test -n "$CCC"; then | |
4549 | CXX=$CCC | |
4550 | else | |
4551 | if test -n "$ac_tool_prefix"; then | |
4552 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4553 | do |
4554 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4555 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4557 | $as_echo_n "checking for $ac_word... " >&6; } | |
4558 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4559 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4560 | else |
4561 | if test -n "$CXX"; then | |
4562 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4563 | else | |
4564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4565 | for as_dir in $PATH | |
4566 | do | |
4567 | IFS=$as_save_IFS | |
4568 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4569 | for ac_exec_ext in '' $ac_executable_extensions; do |
4570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4571 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4573 | break 2 |
4574 | fi | |
4575 | done | |
81ecdfbb RW |
4576 | done |
4577 | IFS=$as_save_IFS | |
512b7dfb | 4578 | |
18f6b6ee PB |
4579 | fi |
4580 | fi | |
4581 | CXX=$ac_cv_prog_CXX | |
4582 | if test -n "$CXX"; then | |
81ecdfbb RW |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4584 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4585 | else |
81ecdfbb RW |
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4587 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4588 | fi |
4589 | ||
81ecdfbb | 4590 | |
18f6b6ee PB |
4591 | test -n "$CXX" && break |
4592 | done | |
4593 | fi | |
4594 | if test -z "$CXX"; then | |
4595 | ac_ct_CXX=$CXX | |
81ecdfbb | 4596 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4597 | do |
4598 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4599 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4601 | $as_echo_n "checking for $ac_word... " >&6; } | |
4602 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4603 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4604 | else |
4605 | if test -n "$ac_ct_CXX"; then | |
4606 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4607 | else | |
4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4609 | for as_dir in $PATH | |
4610 | do | |
4611 | IFS=$as_save_IFS | |
4612 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4613 | for ac_exec_ext in '' $ac_executable_extensions; do |
4614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4615 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4617 | break 2 |
512b7dfb | 4618 | fi |
18f6b6ee | 4619 | done |
81ecdfbb RW |
4620 | done |
4621 | IFS=$as_save_IFS | |
512b7dfb | 4622 | |
18f6b6ee PB |
4623 | fi |
4624 | fi | |
4625 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4626 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4628 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4629 | else |
81ecdfbb RW |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4631 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4632 | fi |
4633 | ||
81ecdfbb | 4634 | |
18f6b6ee PB |
4635 | test -n "$ac_ct_CXX" && break |
4636 | done | |
18f6b6ee | 4637 | |
81ecdfbb RW |
4638 | if test "x$ac_ct_CXX" = x; then |
4639 | CXX="g++" | |
4640 | else | |
4641 | case $cross_compiling:$ac_tool_warned in | |
4642 | yes:) | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4644 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4645 | ac_tool_warned=yes ;; | |
4646 | esac | |
4647 | CXX=$ac_ct_CXX | |
4648 | fi | |
18f6b6ee PB |
4649 | fi |
4650 | ||
81ecdfbb RW |
4651 | fi |
4652 | fi | |
18f6b6ee | 4653 | # Provide some information about the compiler. |
81ecdfbb RW |
4654 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4655 | set X $ac_compile | |
4656 | ac_compiler=$2 | |
4657 | for ac_option in --version -v -V -qversion; do | |
4658 | { { ac_try="$ac_compiler $ac_option >&5" | |
4659 | case "(($ac_try" in | |
4660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4661 | *) ac_try_echo=$ac_try;; | |
4662 | esac | |
4663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4664 | $as_echo "$ac_try_echo"; } >&5 | |
4665 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4666 | ac_status=$? |
81ecdfbb RW |
4667 | if test -s conftest.err; then |
4668 | sed '10a\ | |
4669 | ... rest of stderr output deleted ... | |
4670 | 10q' conftest.err >conftest.er1 | |
4671 | cat conftest.er1 >&5 | |
4672 | rm -f conftest.er1 conftest.err | |
4673 | fi | |
4674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4675 | test $ac_status = 0; } | |
4676 | done | |
18f6b6ee | 4677 | |
81ecdfbb RW |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4679 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4680 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4681 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4682 | else |
81ecdfbb | 4683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4684 | /* end confdefs.h. */ |
4685 | ||
4686 | int | |
4687 | main () | |
4688 | { | |
4689 | #ifndef __GNUC__ | |
4690 | choke me | |
4691 | #endif | |
4692 | ||
4693 | ; | |
4694 | return 0; | |
4695 | } | |
4696 | _ACEOF | |
81ecdfbb | 4697 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4698 | ac_compiler_gnu=yes |
4699 | else | |
81ecdfbb | 4700 | ac_compiler_gnu=no |
18f6b6ee | 4701 | fi |
81ecdfbb | 4702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4703 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4704 | ||
4705 | fi | |
81ecdfbb RW |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4707 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4708 | if test $ac_compiler_gnu = yes; then | |
4709 | GXX=yes | |
4710 | else | |
4711 | GXX= | |
4712 | fi | |
18f6b6ee PB |
4713 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4714 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4716 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4717 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4718 | $as_echo_n "(cached) " >&6 | |
4719 | else | |
4720 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4721 | ac_cxx_werror_flag=yes | |
4722 | ac_cv_prog_cxx_g=no | |
4723 | CXXFLAGS="-g" | |
4724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4725 | /* end confdefs.h. */ |
4726 | ||
4727 | int | |
4728 | main () | |
4729 | { | |
4730 | ||
4731 | ; | |
4732 | return 0; | |
4733 | } | |
4734 | _ACEOF | |
81ecdfbb | 4735 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4736 | ac_cv_prog_cxx_g=yes |
4737 | else | |
81ecdfbb RW |
4738 | CXXFLAGS="" |
4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4740 | /* end confdefs.h. */ |
81ecdfbb | 4741 | |
18f6b6ee PB |
4742 | int |
4743 | main () | |
4744 | { | |
81ecdfbb | 4745 | |
18f6b6ee PB |
4746 | ; |
4747 | return 0; | |
4748 | } | |
4749 | _ACEOF | |
81ecdfbb | 4750 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4751 | |
81ecdfbb RW |
4752 | else |
4753 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4754 | CXXFLAGS="-g" | |
4755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4756 | /* end confdefs.h. */ |
81ecdfbb | 4757 | |
18f6b6ee PB |
4758 | int |
4759 | main () | |
4760 | { | |
81ecdfbb | 4761 | |
18f6b6ee PB |
4762 | ; |
4763 | return 0; | |
4764 | } | |
4765 | _ACEOF | |
81ecdfbb RW |
4766 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4767 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4768 | fi |
81ecdfbb RW |
4769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4770 | fi | |
4771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4772 | fi | |
4773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4774 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4775 | fi | |
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4777 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4778 | if test "$ac_test_CXXFLAGS" = set; then | |
4779 | CXXFLAGS=$ac_save_CXXFLAGS | |
4780 | elif test $ac_cv_prog_cxx_g = yes; then | |
4781 | if test "$GXX" = yes; then | |
4782 | CXXFLAGS="-g -O2" | |
4783 | else | |
4784 | CXXFLAGS="-g" | |
4785 | fi | |
4786 | else | |
4787 | if test "$GXX" = yes; then | |
4788 | CXXFLAGS="-O2" | |
4789 | else | |
4790 | CXXFLAGS= | |
4791 | fi | |
18f6b6ee | 4792 | fi |
18f6b6ee PB |
4793 | ac_ext=c |
4794 | ac_cpp='$CPP $CPPFLAGS' | |
4795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4798 | ||
4799 | ||
4800 | # We must set the default linker to the linker used by gcc for the correct | |
4801 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4802 | # set the LD default to the ld used by gcc. | |
4803 | if test -z "$LD"; then | |
4804 | if test "$GCC" = yes; then | |
4805 | case $build in | |
4806 | *-*-mingw*) | |
4807 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4808 | *) | |
4809 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4810 | esac | |
4811 | case $gcc_prog_ld in | |
4812 | # Accept absolute paths. | |
4813 | [\\/]* | [A-Za-z]:[\\/]*) | |
4814 | LD="$gcc_prog_ld" ;; | |
4815 | esac | |
4816 | fi | |
512b7dfb PB |
4817 | fi |
4818 | ||
4819 | ||
4820 | ||
4821 | ||
c6b750e1 | 4822 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4823 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4824 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4826 | $as_echo_n "checking for $ac_word... " >&6; } | |
4827 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4828 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4829 | else |
512b7dfb PB |
4830 | if test -n "$GNATBIND"; then |
4831 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 4832 | else |
c6b750e1 DJ |
4833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4834 | for as_dir in $PATH | |
4835 | do | |
4836 | IFS=$as_save_IFS | |
4837 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4838 | for ac_exec_ext in '' $ac_executable_extensions; do |
4839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4840 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 4841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4842 | break 2 |
4843 | fi | |
4844 | done | |
81ecdfbb RW |
4845 | done |
4846 | IFS=$as_save_IFS | |
c6b750e1 | 4847 | |
9e07f89d NN |
4848 | fi |
4849 | fi | |
512b7dfb PB |
4850 | GNATBIND=$ac_cv_prog_GNATBIND |
4851 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4853 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 4854 | else |
81ecdfbb RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4856 | $as_echo "no" >&6; } | |
9e07f89d NN |
4857 | fi |
4858 | ||
81ecdfbb | 4859 | |
c6b750e1 | 4860 | fi |
512b7dfb PB |
4861 | if test -z "$ac_cv_prog_GNATBIND"; then |
4862 | ac_ct_GNATBIND=$GNATBIND | |
4863 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4864 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4866 | $as_echo_n "checking for $ac_word... " >&6; } | |
4867 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4868 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4869 | else |
512b7dfb PB |
4870 | if test -n "$ac_ct_GNATBIND"; then |
4871 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 4872 | else |
c6b750e1 DJ |
4873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4874 | for as_dir in $PATH | |
4875 | do | |
4876 | IFS=$as_save_IFS | |
4877 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4878 | for ac_exec_ext in '' $ac_executable_extensions; do |
4879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4880 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 4881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4882 | break 2 |
4883 | fi | |
4884 | done | |
81ecdfbb RW |
4885 | done |
4886 | IFS=$as_save_IFS | |
c6b750e1 | 4887 | |
9e07f89d NN |
4888 | fi |
4889 | fi | |
512b7dfb PB |
4890 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4891 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4893 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 4894 | else |
81ecdfbb RW |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4896 | $as_echo "no" >&6; } | |
9e07f89d NN |
4897 | fi |
4898 | ||
81ecdfbb RW |
4899 | if test "x$ac_ct_GNATBIND" = x; then |
4900 | GNATBIND="no" | |
4901 | else | |
4902 | case $cross_compiling:$ac_tool_warned in | |
4903 | yes:) | |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4906 | ac_tool_warned=yes ;; | |
4907 | esac | |
4908 | GNATBIND=$ac_ct_GNATBIND | |
4909 | fi | |
24ff9987 | 4910 | else |
512b7dfb | 4911 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
4912 | fi |
4913 | ||
7df2cd5d | 4914 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4915 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4916 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4918 | $as_echo_n "checking for $ac_word... " >&6; } | |
4919 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4920 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4921 | else |
512b7dfb PB |
4922 | if test -n "$GNATMAKE"; then |
4923 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4924 | else |
4925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4926 | for as_dir in $PATH | |
4927 | do | |
4928 | IFS=$as_save_IFS | |
4929 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4930 | for ac_exec_ext in '' $ac_executable_extensions; do |
4931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4932 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 4933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4934 | break 2 |
4935 | fi | |
4936 | done | |
81ecdfbb RW |
4937 | done |
4938 | IFS=$as_save_IFS | |
7df2cd5d PB |
4939 | |
4940 | fi | |
4941 | fi | |
512b7dfb PB |
4942 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4943 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4945 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 4946 | else |
81ecdfbb RW |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4948 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4949 | fi |
4950 | ||
81ecdfbb | 4951 | |
7df2cd5d | 4952 | fi |
512b7dfb PB |
4953 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4954 | ac_ct_GNATMAKE=$GNATMAKE | |
4955 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4956 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4958 | $as_echo_n "checking for $ac_word... " >&6; } | |
4959 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4960 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4961 | else |
512b7dfb PB |
4962 | if test -n "$ac_ct_GNATMAKE"; then |
4963 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4964 | else |
4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4966 | for as_dir in $PATH | |
4967 | do | |
4968 | IFS=$as_save_IFS | |
4969 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4970 | for ac_exec_ext in '' $ac_executable_extensions; do |
4971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4972 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 4973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4974 | break 2 |
4975 | fi | |
4976 | done | |
81ecdfbb RW |
4977 | done |
4978 | IFS=$as_save_IFS | |
7df2cd5d | 4979 | |
7df2cd5d PB |
4980 | fi |
4981 | fi | |
512b7dfb PB |
4982 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4983 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4985 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 4986 | else |
81ecdfbb RW |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4988 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4989 | fi |
4990 | ||
81ecdfbb RW |
4991 | if test "x$ac_ct_GNATMAKE" = x; then |
4992 | GNATMAKE="no" | |
4993 | else | |
4994 | case $cross_compiling:$ac_tool_warned in | |
4995 | yes:) | |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4997 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4998 | ac_tool_warned=yes ;; | |
4999 | esac | |
5000 | GNATMAKE=$ac_ct_GNATMAKE | |
5001 | fi | |
7df2cd5d | 5002 | else |
512b7dfb | 5003 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5004 | fi |
5005 | ||
81ecdfbb RW |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5007 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5008 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5009 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5010 | else |
5011 | cat >conftest.adb <<EOF | |
5012 | procedure conftest is begin null; end conftest; | |
5013 | EOF | |
5014 | acx_cv_cc_gcc_supports_ada=no | |
5015 | # There is a bug in old released versions of GCC which causes the | |
5016 | # driver to exit successfully when the appropriate language module | |
5017 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5018 | # Therefore we must check for the error message as well as an | |
5019 | # unsuccessful exit. | |
b8908782 DD |
5020 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5021 | # given a .adb file, but produce no object file. So we must check | |
5022 | # if an object file was really produced to guard against this. | |
9e07f89d | 5023 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5024 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5025 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5026 | fi |
5027 | rm -f conftest.* | |
5028 | fi | |
81ecdfbb RW |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5030 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5031 | |
64b986c0 | 5032 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5033 | have_gnat=yes |
5034 | else | |
5035 | have_gnat=no | |
5036 | fi | |
5037 | ||
81ecdfbb RW |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5039 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5040 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5041 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5042 | else |
5043 | echo abfoo >t1 | |
5044 | echo cdfoo >t2 | |
5045 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5046 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5047 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5048 | : | |
5049 | else | |
5050 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5051 | fi | |
5052 | fi | |
b8908782 DD |
5053 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5054 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5055 | : |
b8908782 DD |
5056 | else |
5057 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5058 | fi | |
5059 | fi | |
5060 | rm t1 t2 | |
5061 | ||
5062 | fi | |
81ecdfbb RW |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5064 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5065 | do_compare="$gcc_cv_prog_cmp_skip" |
5066 | ||
5067 | ||
9e07f89d | 5068 | |
ffdd6afc ILT |
5069 | # Check whether --enable-bootstrap was given. |
5070 | if test "${enable_bootstrap+set}" = set; then : | |
5071 | enableval=$enable_bootstrap; | |
5072 | else | |
5073 | enable_bootstrap=default | |
5074 | fi | |
5075 | ||
5076 | ||
5077 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5078 | if test -r $srcdir/gcc/configure; then | |
5079 | have_compiler=yes | |
5080 | else | |
5081 | have_compiler=no | |
5082 | fi | |
5083 | ||
5084 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5085 | *:*:*:no) ;; | |
5086 | ||
5087 | # Default behavior. Enable bootstrap if we have a compiler | |
5088 | # and we are in a native configuration. | |
5089 | yes:$build:$build:default) | |
5090 | enable_bootstrap=yes ;; | |
5091 | ||
5092 | *:*:*:default) | |
5093 | enable_bootstrap=no ;; | |
5094 | ||
5095 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5096 | yes:$build:$build:yes) | |
5097 | ;; | |
5098 | ||
5099 | # Other configurations, but we have a compiler. Assume the user knows | |
5100 | # what he's doing. | |
5101 | yes:*:*:yes) | |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5103 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5104 | ;; | |
5105 | ||
5106 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5107 | no:*:*:yes) | |
5108 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5109 | ||
5110 | # Fail if wrong command line | |
5111 | *) | |
5112 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5113 | ;; | |
5114 | esac | |
5115 | ||
d5f2ee2e KG |
5116 | # Used for setting $lt_cv_objdir |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5118 | $as_echo_n "checking for objdir... " >&6; } | |
5119 | if test "${lt_cv_objdir+set}" = set; then : | |
5120 | $as_echo_n "(cached) " >&6 | |
5121 | else | |
5122 | rm -f .libs 2>/dev/null | |
5123 | mkdir .libs 2>/dev/null | |
5124 | if test -d .libs; then | |
5125 | lt_cv_objdir=.libs | |
5126 | else | |
5127 | # MS-DOS does not allow filenames that begin with a dot. | |
5128 | lt_cv_objdir=_libs | |
5129 | fi | |
5130 | rmdir .libs 2>/dev/null | |
5131 | fi | |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5133 | $as_echo "$lt_cv_objdir" >&6; } | |
5134 | objdir=$lt_cv_objdir | |
5135 | ||
5136 | ||
5137 | ||
5138 | ||
5139 | ||
5140 | cat >>confdefs.h <<_ACEOF | |
5141 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5142 | _ACEOF | |
5143 | ||
5144 | ||
5145 | ||
e8a5fa9c | 5146 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5147 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5148 | gmpinc= |
4b900473 | 5149 | have_gmp=no |
e8a5fa9c RW |
5150 | |
5151 | # Specify a location for mpc | |
5152 | # check for this first so it ends up on the link line before mpfr. | |
5153 | ||
81ecdfbb RW |
5154 | # Check whether --with-mpc was given. |
5155 | if test "${with_mpc+set}" = set; then : | |
5156 | withval=$with_mpc; | |
5157 | fi | |
e8a5fa9c | 5158 | |
e8a5fa9c | 5159 | |
e552509b | 5160 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5161 | if test "${with_mpc_include+set}" = set; then : |
5162 | withval=$with_mpc_include; | |
5163 | fi | |
e8a5fa9c | 5164 | |
e8a5fa9c | 5165 | |
e552509b | 5166 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5167 | if test "${with_mpc_lib+set}" = set; then : |
5168 | withval=$with_mpc_lib; | |
5169 | fi | |
e8a5fa9c | 5170 | |
e8a5fa9c RW |
5171 | |
5172 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5173 | gmplibs="-L$with_mpc/lib $gmplibs" |
5174 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5175 | fi |
5176 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5177 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5178 | fi |
5179 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5180 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5181 | fi |
5182 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5183 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5184 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5185 | # Do not test the mpc version. Assume that it is sufficient, since |
5186 | # it is in the source tree, and the library has not been built yet | |
5187 | # but it would be included on the link line in the version check below | |
5188 | # hence making the test fail. | |
d9b76ff9 | 5189 | have_gmp=yes |
e8a5fa9c | 5190 | fi |
4b900473 | 5191 | |
11b04d1f DD |
5192 | # Specify a location for mpfr |
5193 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5194 | |
81ecdfbb RW |
5195 | # Check whether --with-mpfr-dir was given. |
5196 | if test "${with_mpfr_dir+set}" = set; then : | |
5197 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5198 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5199 | fi | |
5200 | ||
11b04d1f DD |
5201 | |
5202 | ||
81ecdfbb RW |
5203 | # Check whether --with-mpfr was given. |
5204 | if test "${with_mpfr+set}" = set; then : | |
5205 | withval=$with_mpfr; | |
5206 | fi | |
c6b750e1 | 5207 | |
11b04d1f | 5208 | |
e552509b | 5209 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5210 | if test "${with_mpfr_include+set}" = set; then : |
5211 | withval=$with_mpfr_include; | |
5212 | fi | |
c6b750e1 | 5213 | |
8a0d8a5c | 5214 | |
e552509b | 5215 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5216 | if test "${with_mpfr_lib+set}" = set; then : |
5217 | withval=$with_mpfr_lib; | |
5218 | fi | |
8a0d8a5c | 5219 | |
11b04d1f DD |
5220 | |
5221 | if test "x$with_mpfr" != x; then | |
5222 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5223 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5224 | fi |
8a0d8a5c | 5225 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5226 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5227 | fi |
5228 | if test "x$with_mpfr_lib" != x; then | |
5229 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5230 | fi | |
4b900473 | 5231 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5232 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5233 | if test -d ${srcdir}/mpfr/src; then | |
5234 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5235 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5236 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5237 | else | |
5238 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5239 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5240 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5241 | fi | |
4b900473 PB |
5242 | # Do not test the mpfr version. Assume that it is sufficient, since |
5243 | # it is in the source tree, and the library has not been built yet | |
5244 | # but it would be included on the link line in the version check below | |
5245 | # hence making the test fail. | |
5246 | have_gmp=yes | |
5247 | fi | |
11b04d1f | 5248 | |
4b1cb4fe | 5249 | # Specify a location for gmp |
c6b750e1 | 5250 | |
81ecdfbb RW |
5251 | # Check whether --with-gmp-dir was given. |
5252 | if test "${with_gmp_dir+set}" = set; then : | |
5253 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5254 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5255 | fi | |
5256 | ||
4b1cb4fe DD |
5257 | |
5258 | ||
81ecdfbb RW |
5259 | # Check whether --with-gmp was given. |
5260 | if test "${with_gmp+set}" = set; then : | |
5261 | withval=$with_gmp; | |
5262 | fi | |
c6b750e1 | 5263 | |
4b1cb4fe | 5264 | |
e552509b | 5265 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5266 | if test "${with_gmp_include+set}" = set; then : |
5267 | withval=$with_gmp_include; | |
5268 | fi | |
c6b750e1 | 5269 | |
8a0d8a5c | 5270 | |
e552509b | 5271 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5272 | if test "${with_gmp_lib+set}" = set; then : |
5273 | withval=$with_gmp_lib; | |
5274 | fi | |
8a0d8a5c PB |
5275 | |
5276 | ||
4b1cb4fe | 5277 | |
11b04d1f DD |
5278 | if test "x$with_gmp" != x; then |
5279 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5280 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5281 | fi |
8a0d8a5c PB |
5282 | if test "x$with_gmp_include" != x; then |
5283 | gmpinc="-I$with_gmp_include $gmpinc" | |
5284 | fi | |
5285 | if test "x$with_gmp_lib" != x; then | |
5286 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5287 | fi | |
4b900473 | 5288 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5289 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5290 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5291 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5292 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5293 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5294 | # Do not test the gmp version. Assume that it is sufficient, since |
5295 | # it is in the source tree, and the library has not been built yet | |
5296 | # but it would be included on the link line in the version check below | |
5297 | # hence making the test fail. | |
5298 | have_gmp=yes | |
5299 | fi | |
4b1cb4fe | 5300 | |
ceb92e78 | 5301 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5302 | have_gmp=yes |
5303 | saved_CFLAGS="$CFLAGS" | |
5304 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5305 | # Check for the recommended and required versions of GMP. |
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5307 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5308 | |
5309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5310 | /* end confdefs.h. */ |
5311 | #include "gmp.h" | |
5312 | int | |
5313 | main () | |
5314 | { | |
5315 | ||
5316 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5317 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5318 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5319 | choke me | |
5320 | #endif | |
5321 | ||
5322 | ; | |
5323 | return 0; | |
5324 | } | |
5325 | _ACEOF | |
5326 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5328 | /* end confdefs.h. */ |
a6b5846e | 5329 | #include <gmp.h> |
c6b750e1 DJ |
5330 | int |
5331 | main () | |
5332 | { | |
4b1cb4fe | 5333 | |
a6b5846e KG |
5334 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5335 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5336 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5337 | choke me |
5338 | #endif | |
c6b750e1 DJ |
5339 | |
5340 | ; | |
5341 | return 0; | |
5342 | } | |
5343 | _ACEOF | |
81ecdfbb RW |
5344 | if ac_fn_c_try_compile "$LINENO"; then : |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5346 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5347 | else |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5349 | $as_echo "buggy but acceptable" >&6; } | |
5350 | fi | |
5351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5352 | else |
81ecdfbb RW |
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5354 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5355 | fi |
81ecdfbb | 5356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5357 | |
e8a5fa9c | 5358 | # If we have GMP, check the MPFR version. |
4b900473 | 5359 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5360 | # Check for the recommended and required versions of MPFR. |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5362 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5364 | /* end confdefs.h. */ |
9b134994 | 5365 | #include <gmp.h> |
4b900473 | 5366 | #include <mpfr.h> |
c6b750e1 DJ |
5367 | int |
5368 | main () | |
5369 | { | |
9b134994 | 5370 | |
7ec59b9e | 5371 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5372 | choke me |
5373 | #endif | |
c6b750e1 DJ |
5374 | |
5375 | ; | |
5376 | return 0; | |
5377 | } | |
5378 | _ACEOF | |
81ecdfbb RW |
5379 | if ac_fn_c_try_compile "$LINENO"; then : |
5380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5381 | /* end confdefs.h. */ |
4b1cb4fe | 5382 | #include <gmp.h> |
4b900473 | 5383 | #include <mpfr.h> |
c6b750e1 DJ |
5384 | int |
5385 | main () | |
5386 | { | |
9dbaa842 | 5387 | |
a6b5846e | 5388 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5389 | choke me |
5390 | #endif | |
e8a5fa9c RW |
5391 | |
5392 | ; | |
5393 | return 0; | |
5394 | } | |
5395 | _ACEOF | |
81ecdfbb RW |
5396 | if ac_fn_c_try_compile "$LINENO"; then : |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5398 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5399 | else |
81ecdfbb RW |
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5401 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5402 | fi |
81ecdfbb | 5403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5404 | else |
81ecdfbb RW |
5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5406 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5407 | fi |
81ecdfbb | 5408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5409 | fi |
5410 | ||
5411 | # Check for the MPC header version. | |
d9b76ff9 | 5412 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5413 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5415 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5417 | /* end confdefs.h. */ |
5418 | #include <mpc.h> | |
5419 | int | |
5420 | main () | |
5421 | { | |
5422 | ||
a6b5846e KG |
5423 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5424 | choke me | |
5425 | #endif | |
5426 | ||
5427 | ; | |
5428 | return 0; | |
5429 | } | |
5430 | _ACEOF | |
5431 | if ac_fn_c_try_compile "$LINENO"; then : | |
5432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5433 | /* end confdefs.h. */ | |
5434 | #include <mpc.h> | |
5435 | int | |
5436 | main () | |
5437 | { | |
5438 | ||
5439 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5440 | choke me |
5441 | #endif | |
5442 | ||
5443 | ; | |
5444 | return 0; | |
5445 | } | |
5446 | _ACEOF | |
81ecdfbb RW |
5447 | if ac_fn_c_try_compile "$LINENO"; then : |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5449 | $as_echo "yes" >&6; } |
a6b5846e KG |
5450 | else |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5452 | $as_echo "buggy but acceptable" >&6; } | |
5453 | fi | |
5454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5455 | else |
81ecdfbb | 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5457 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5458 | fi |
81ecdfbb | 5459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5460 | fi |
5461 | ||
5462 | # Now check the MPFR library. | |
5463 | if test x"$have_gmp" = xyes; then | |
5464 | saved_LIBS="$LIBS" | |
5465 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5467 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5469 | /* end confdefs.h. */ |
d9b76ff9 | 5470 | #include <mpc.h> |
e8a5fa9c RW |
5471 | int |
5472 | main () | |
5473 | { | |
5474 | ||
5475 | mpfr_t n; | |
5476 | mpfr_t x; | |
d9b76ff9 | 5477 | mpc_t c; |
e8a5fa9c RW |
5478 | int t; |
5479 | mpfr_init (n); | |
5480 | mpfr_init (x); | |
5481 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5482 | mpfr_erfc (n, x, GMP_RNDN); | |
5483 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5484 | mpfr_clear(n); |
5485 | mpfr_clear(x); | |
5486 | mpc_init2 (c, 53); | |
5487 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5488 | mpc_cosh (c, c, MPC_RNDNN); | |
5489 | mpc_pow (c, c, c, MPC_RNDNN); | |
5490 | mpc_acosh (c, c, MPC_RNDNN); | |
5491 | mpc_clear (c); | |
c6b750e1 DJ |
5492 | |
5493 | ; | |
5494 | return 0; | |
5495 | } | |
5496 | _ACEOF | |
81ecdfbb RW |
5497 | if ac_fn_c_try_link "$LINENO"; then : |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5499 | $as_echo "yes" >&6; } | |
c6b750e1 | 5500 | else |
81ecdfbb RW |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5502 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5503 | fi |
81ecdfbb RW |
5504 | rm -f core conftest.err conftest.$ac_objext \ |
5505 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5506 | LIBS="$saved_LIBS" |
5507 | fi | |
5508 | ||
4b900473 | 5509 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5510 | |
a6b5846e KG |
5511 | # The library versions listed in the error message below should match |
5512 | # the HARD-minimums enforced above. | |
4b900473 | 5513 | if test x$have_gmp != xyes; then |
7ec59b9e | 5514 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5515 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5516 | their locations. Source code for these libraries can be found at | |
5517 | their respective hosting sites as well as at | |
5518 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5519 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5520 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5521 | make sure that you have installed both the libraries and the header | |
5522 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5523 | fi |
9dbaa842 DD |
5524 | fi |
5525 | ||
e8a5fa9c RW |
5526 | # Flags needed for both GMP, MPFR and/or MPC. |
5527 | ||
5528 | ||
5529 | ||
4b1cb4fe DD |
5530 | |
5531 | ||
5532 | ||
7ec59b9e | 5533 | |
29383458 JM |
5534 | # Allow host libstdc++ to be specified for static linking with PPL. |
5535 | ||
81ecdfbb RW |
5536 | # Check whether --with-host-libstdcxx was given. |
5537 | if test "${with_host_libstdcxx+set}" = set; then : | |
5538 | withval=$with_host_libstdcxx; | |
5539 | fi | |
29383458 | 5540 | |
29383458 JM |
5541 | |
5542 | case $with_host_libstdcxx in | |
5543 | no|yes) | |
81ecdfbb | 5544 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5545 | ;; |
5546 | esac | |
e28c595f | 5547 | |
e8a5fa9c RW |
5548 | # Linker flags to use for stage1 or when not boostrapping. |
5549 | ||
81ecdfbb RW |
5550 | # Check whether --with-stage1-ldflags was given. |
5551 | if test "${with_stage1_ldflags+set}" = set; then : | |
5552 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5553 | stage1_ldflags= |
5554 | else | |
5555 | stage1_ldflags=$withval | |
5556 | fi | |
5557 | else | |
5558 | stage1_ldflags= | |
81ecdfbb RW |
5559 | fi |
5560 | ||
e8a5fa9c RW |
5561 | |
5562 | ||
5563 | # Libraries to use for stage1 or when not bootstrapping. | |
5564 | ||
81ecdfbb RW |
5565 | # Check whether --with-stage1-libs was given. |
5566 | if test "${with_stage1_libs+set}" = set; then : | |
5567 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5568 | stage1_libs= |
5569 | else | |
5570 | stage1_libs=$withval | |
5571 | fi | |
5572 | else | |
5573 | stage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5574 | fi |
5575 | ||
e8a5fa9c RW |
5576 | |
5577 | ||
e8a5fa9c RW |
5578 | # Libraries to use for stage2 and later builds. This defaults to the |
5579 | # argument passed to --with-host-libstdcxx. | |
5580 | ||
81ecdfbb RW |
5581 | # Check whether --with-boot-libs was given. |
5582 | if test "${with_boot_libs+set}" = set; then : | |
5583 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5584 | poststage1_libs= |
5585 | else | |
5586 | poststage1_libs=$withval | |
5587 | fi | |
5588 | else | |
5589 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5590 | fi |
5591 | ||
e8a5fa9c RW |
5592 | |
5593 | ||
143754cd NC |
5594 | # Linker flags to use for stage2 and later builds. |
5595 | ||
5596 | # Check whether --with-boot-ldflags was given. | |
5597 | if test "${with_boot_ldflags+set}" = set; then : | |
5598 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5599 | poststage1_ldflags= | |
5600 | else | |
5601 | poststage1_ldflags=$withval | |
5602 | fi | |
5603 | else | |
5604 | poststage1_ldflags= | |
4f11b223 ILT |
5605 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5606 | # statically. But if the user explicitly specified the libraries to | |
5607 | # use, trust that they are doing what they want. | |
5608 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5609 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5610 | fi | |
5611 | fi | |
5612 | ||
5613 | ||
5614 | ||
7ec59b9e | 5615 | # Check for ISL |
e28c595f JM |
5616 | |
5617 | ||
7ec59b9e L |
5618 | # Check whether --with-isl was given. |
5619 | if test "${with_isl+set}" = set; then : | |
5620 | withval=$with_isl; | |
81ecdfbb | 5621 | fi |
e28c595f | 5622 | |
e28c595f | 5623 | |
7ec59b9e L |
5624 | # Check whether --with-isl-include was given. |
5625 | if test "${with_isl_include+set}" = set; then : | |
5626 | withval=$with_isl_include; | |
81ecdfbb RW |
5627 | fi |
5628 | ||
e28c595f | 5629 | |
7ec59b9e L |
5630 | # Check whether --with-isl-lib was given. |
5631 | if test "${with_isl_lib+set}" = set; then : | |
5632 | withval=$with_isl_lib; | |
81ecdfbb | 5633 | fi |
e28c595f | 5634 | |
e28c595f | 5635 | |
7ec59b9e L |
5636 | # Check whether --enable-isl-version-check was given. |
5637 | if test "${enable_isl_version_check+set}" = set; then : | |
5638 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5639 | else | |
5640 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5641 | fi |
5642 | ||
5643 | ||
7ec59b9e L |
5644 | # Initialize isllibs and islinc. |
5645 | case $with_isl in | |
5646 | no) | |
5647 | isllibs= | |
5648 | islinc= | |
5649 | ;; | |
5650 | "" | yes) | |
5651 | ;; | |
5652 | *) | |
5653 | isllibs="-L$with_isl/lib" | |
5654 | islinc="-I$with_isl/include" | |
5655 | ;; | |
5656 | esac | |
5657 | if test "x${with_isl_include}" != x ; then | |
5658 | islinc="-I$with_isl_include" | |
5659 | fi | |
5660 | if test "x${with_isl_lib}" != x; then | |
5661 | isllibs="-L$with_isl_lib" | |
5662 | fi | |
5663 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5664 | && test -d ${srcdir}/isl; then | |
5665 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5666 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5667 | ENABLE_ISL_CHECK=no | |
5668 | fi | |
b123da99 | 5669 | |
7ec59b9e | 5670 | isllibs="${isllibs} -lisl" |
b123da99 | 5671 | |
b123da99 | 5672 | |
e28c595f | 5673 | |
7ec59b9e L |
5674 | |
5675 | ||
5676 | if test "x$with_isl" != "xno"; then | |
5677 | ||
5678 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5679 | _isl_saved_CFLAGS=$CFLAGS | |
5680 | _isl_saved_LDFLAGS=$LDFLAGS | |
5681 | _isl_saved_LIBS=$LIBS | |
5682 | ||
5683 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5684 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5685 | LIBS="${_isl_saved_LIBS} -lisl" | |
5686 | echo $CFLAGS | |
5687 | ||
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5689 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
5690 | if test "${gcc_cv_isl+set}" = set; then : | |
b123da99 SP |
5691 | $as_echo_n "(cached) " >&6 |
5692 | else | |
7ec59b9e L |
5693 | if test "$cross_compiling" = yes; then : |
5694 | gcc_cv_isl=yes | |
5695 | else | |
5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b123da99 | 5697 | /* end confdefs.h. */ |
7ec59b9e L |
5698 | #include <isl/version.h> |
5699 | #include <string.h> | |
b123da99 SP |
5700 | int |
5701 | main () | |
5702 | { | |
7ec59b9e L |
5703 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) |
5704 | return 1; | |
5705 | ||
b123da99 SP |
5706 | ; |
5707 | return 0; | |
5708 | } | |
5709 | _ACEOF | |
7ec59b9e L |
5710 | if ac_fn_c_try_run "$LINENO"; then : |
5711 | gcc_cv_isl=yes | |
e28c595f | 5712 | else |
7ec59b9e | 5713 | gcc_cv_isl=no |
b123da99 | 5714 | fi |
7ec59b9e L |
5715 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5716 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b123da99 | 5717 | fi |
7ec59b9e | 5718 | |
81ecdfbb | 5719 | fi |
7ec59b9e L |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5721 | $as_echo "$gcc_cv_isl" >&6; } | |
81ecdfbb | 5722 | |
7ec59b9e L |
5723 | CFLAGS=$_isl_saved_CFLAGS |
5724 | LDFLAGS=$_isl_saved_LDFLAGS | |
5725 | LIBS=$_isl_saved_LIBS | |
b123da99 | 5726 | fi |
e28c595f | 5727 | |
b123da99 | 5728 | |
e28c595f | 5729 | |
e28c595f | 5730 | |
7ec59b9e L |
5731 | |
5732 | ||
5733 | ||
5734 | if test "x${with_isl}" = xno; then | |
5735 | graphite_requested=no | |
5736 | elif test "x${with_isl}" != x \ | |
5737 | || test "x${with_isl_include}" != x \ | |
5738 | || test "x${with_isl_lib}" != x ; then | |
5739 | graphite_requested=yes | |
5740 | else | |
5741 | graphite_requested=no | |
b123da99 | 5742 | fi |
e28c595f | 5743 | |
e28c595f JM |
5744 | |
5745 | ||
7ec59b9e L |
5746 | if test "${gcc_cv_isl}" = no ; then |
5747 | isllibs= | |
5748 | islinc= | |
5749 | fi | |
e28c595f | 5750 | |
7ec59b9e L |
5751 | if test "${graphite_requested}" = yes \ |
5752 | && test "x${isllibs}" = x \ | |
5753 | && test "x${islinc}" = x ; then | |
e28c595f | 5754 | |
7ec59b9e L |
5755 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
5756 | fi | |
e552509b | 5757 | |
e28c595f | 5758 | |
7ec59b9e L |
5759 | fi |
5760 | ||
5761 | # Check for CLOOG | |
5762 | ||
e28c595f | 5763 | |
81ecdfbb RW |
5764 | # Check whether --with-cloog was given. |
5765 | if test "${with_cloog+set}" = set; then : | |
5766 | withval=$with_cloog; | |
81ecdfbb RW |
5767 | fi |
5768 | ||
e28c595f | 5769 | |
e552509b | 5770 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
5771 | if test "${with_cloog_include+set}" = set; then : |
5772 | withval=$with_cloog_include; | |
5773 | fi | |
e28c595f | 5774 | |
e28c595f | 5775 | |
e552509b | 5776 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
5777 | if test "${with_cloog_lib+set}" = set; then : |
5778 | withval=$with_cloog_lib; | |
5779 | fi | |
e28c595f | 5780 | |
e28c595f | 5781 | |
e552509b ILT |
5782 | # Check whether --enable-cloog-version-check was given. |
5783 | if test "${enable_cloog_version_check+set}" = set; then : | |
5784 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5785 | else | |
5786 | ENABLE_CLOOG_CHECK=yes | |
5787 | fi | |
5788 | ||
5789 | ||
5790 | # Initialize clooglibs and clooginc. | |
5791 | case $with_cloog in | |
5792 | no) | |
5793 | clooglibs= | |
5794 | clooginc= | |
5795 | ;; | |
5796 | "" | yes) | |
5797 | ;; | |
5798 | *) | |
5799 | clooglibs="-L$with_cloog/lib" | |
5800 | clooginc="-I$with_cloog/include" | |
5801 | ;; | |
5802 | esac | |
5803 | if test "x${with_cloog_include}" != x ; then | |
5804 | clooginc="-I$with_cloog_include" | |
5805 | fi | |
5806 | if test "x${with_cloog_lib}" != x; then | |
5807 | clooglibs="-L$with_cloog_lib" | |
5808 | fi | |
7ec59b9e L |
5809 | if test "x${clooginc}" = x && test "x${clooglibs}" = x \ |
5810 | && test -d ${srcdir}/cloog; then | |
5811 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5812 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
8d8eef9a RW |
5813 | fi |
5814 | ||
7ec59b9e L |
5815 | clooginc="-DCLOOG_INT_GMP ${clooginc}" |
5816 | clooglibs="${clooglibs} -lcloog-isl ${isllibs}" | |
8d8eef9a | 5817 | |
e552509b | 5818 | |
81ecdfbb | 5819 | |
e28c595f | 5820 | |
e552509b | 5821 | |
7ec59b9e L |
5822 | if test "x$isllibs" = x && test "x$islinc" = x; then |
5823 | clooglibs= | |
5824 | clooginc= | |
5825 | elif test "x$with_cloog" != "xno"; then | |
e552509b ILT |
5826 | |
5827 | ||
5828 | ||
5829 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5830 | _cloog_saved_CFLAGS=$CFLAGS | |
5831 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5832 | ||
7ec59b9e L |
5833 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" |
5834 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
e552509b | 5835 | |
7ec59b9e L |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 |
5837 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
5838 | if test "${gcc_cv_cloog+set}" = set; then : | |
e552509b ILT |
5839 | $as_echo_n "(cached) " >&6 |
5840 | else | |
5841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5842 | /* end confdefs.h. */ | |
7ec59b9e | 5843 | #include "cloog/version.h" |
e552509b ILT |
5844 | int |
5845 | main () | |
5846 | { | |
5847 | #if CLOOG_VERSION_MAJOR != 0 \ | |
7ec59b9e L |
5848 | || CLOOG_VERSION_MINOR != 17 \ |
5849 | || CLOOG_VERSION_REVISION < 0 | |
e552509b ILT |
5850 | choke me |
5851 | #endif | |
5852 | ; | |
5853 | return 0; | |
5854 | } | |
5855 | _ACEOF | |
5856 | if ac_fn_c_try_compile "$LINENO"; then : | |
7ec59b9e | 5857 | gcc_cv_cloog=yes |
e552509b | 5858 | else |
7ec59b9e | 5859 | gcc_cv_cloog=no |
e552509b ILT |
5860 | fi |
5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5862 | fi | |
7ec59b9e L |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 |
5864 | $as_echo "$gcc_cv_cloog" >&6; } | |
e552509b ILT |
5865 | |
5866 | CFLAGS=$_cloog_saved_CFLAGS | |
5867 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5868 | fi | |
5869 | ||
5870 | ||
5871 | ||
e28c595f | 5872 | |
e28c595f JM |
5873 | |
5874 | ||
5875 | ||
8d8eef9a RW |
5876 | if test "x${with_cloog}" = xno; then |
5877 | graphite_requested=no | |
5878 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
5879 | || test "x${with_cloog_include}" != x \ |
5880 | || test "x${with_cloog_lib}" != x ; then | |
5881 | graphite_requested=yes | |
5882 | else | |
5883 | graphite_requested=no | |
5884 | fi | |
5885 | ||
5886 | ||
5887 | ||
7ec59b9e | 5888 | if test "${gcc_cv_cloog}" = no ; then |
e552509b ILT |
5889 | clooglibs= |
5890 | clooginc= | |
5891 | fi | |
5892 | ||
5893 | if test "${graphite_requested}" = yes \ | |
5894 | && test "x${clooglibs}" = x \ | |
5895 | && test "x${clooginc}" = x ; then | |
5896 | ||
8d8eef9a | 5897 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
5898 | fi |
5899 | ||
5900 | ||
5901 | fi | |
5902 | ||
7ec59b9e L |
5903 | # If either the ISL or the CLooG check failed, disable builds of in-tree |
5904 | # variants of both | |
5905 | if test "x$clooglibs" = x && test "x$clooginc" = x; then | |
5906 | noconfigdirs="$noconfigdirs cloog isl" | |
5907 | fi | |
5908 | ||
700d40ca ILT |
5909 | # Check for LTO support. |
5910 | # Check whether --enable-lto was given. | |
5911 | if test "${enable_lto+set}" = set; then : | |
5912 | enableval=$enable_lto; enable_lto=$enableval | |
5913 | else | |
5914 | enable_lto=yes; default_enable_lto=yes | |
5915 | fi | |
5916 | ||
5917 | ||
143754cd | 5918 | |
e49e5c92 DK |
5919 | |
5920 | ||
5921 | target_elf=no | |
5922 | case $target in | |
5923 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 5924 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
a009f2e7 | 5925 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
5926 | target_elf=no |
5927 | ;; | |
5928 | *) | |
5929 | target_elf=yes | |
5930 | ;; | |
5931 | esac | |
5932 | ||
5933 | if test $target_elf = yes; then : | |
74cea91b DK |
5934 | # ELF platforms build the lto-plugin always. |
5935 | build_lto_plugin=yes | |
e49e5c92 | 5936 | |
e49e5c92 DK |
5937 | else |
5938 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 5939 | case $target in |
899b04ef | 5940 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 5941 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
5942 | *) enable_lto=no ;; |
5943 | esac | |
e49e5c92 | 5944 | else |
29821356 RW |
5945 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
5946 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
5947 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
5948 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
5949 | # -flto it won't be needed until after installation anyway. | |
5950 | case $target in | |
a8eb3f0a | 5951 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
5952 | *) if test x"$enable_lto" = x"yes"; then |
5953 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
5954 | fi | |
5955 | ;; | |
5956 | esac | |
5957 | fi | |
a8eb3f0a | 5958 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 5959 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 5960 | case $target in |
74cea91b | 5961 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
5962 | *) ;; |
5963 | esac | |
74cea91b | 5964 | |
e49e5c92 DK |
5965 | fi |
5966 | ||
700d40ca | 5967 | |
e28c595f | 5968 | |
7ec59b9e | 5969 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 5970 | stage1_languages=,c, |
1d39f329 | 5971 | |
e8a5fa9c | 5972 | # Target libraries that we bootstrap. |
2aa2364a | 5973 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 5974 | |
9e07f89d NN |
5975 | # Figure out what language subdirectories are present. |
5976 | # Look if the user specified --enable-languages="..."; if not, use | |
5977 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
5978 | # go away some day. | |
5979 | # NB: embedded tabs in this IF block -- do not untabify | |
5980 | if test -d ${srcdir}/gcc; then | |
5981 | if test x"${enable_languages+set}" != xset; then | |
5982 | if test x"${LANGUAGES+set}" = xset; then | |
5983 | enable_languages="${LANGUAGES}" | |
5984 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
5985 | else | |
5986 | enable_languages=all | |
5987 | fi | |
5988 | else | |
5989 | if test x"${enable_languages}" = x || | |
5990 | test x"${enable_languages}" = xyes; | |
5991 | then | |
5992 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
5993 | exit 1 | |
5994 | fi | |
5995 | fi | |
5996 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
5997 | ||
096f7d00 DE |
5998 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
5999 | # and make the substitution. | |
6000 | case ,${enable_languages}, in | |
6001 | *,f95,*) | |
6002 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6003 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6004 | ;; | |
6005 | esac | |
6006 | ||
7ec59b9e L |
6007 | # If bootstrapping, C++ must be enabled. |
6008 | case ",$enable_languages,:$enable_bootstrap" in | |
6009 | *,c++,*:*) ;; | |
6010 | *:yes) | |
ffdd6afc ILT |
6011 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6012 | enable_languages="${enable_languages},c++" | |
6013 | else | |
7ec59b9e | 6014 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6015 | fi |
6016 | ;; | |
6017 | esac | |
6018 | ||
9e07f89d NN |
6019 | # First scan to see if an enabled language requires some other language. |
6020 | # We assume that a given config-lang.in will list all the language | |
6021 | # front ends it requires, even if some are required indirectly. | |
6022 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6023 | case ${lang_frag} in | |
6024 | ..) ;; | |
6025 | # The odd quoting in the next line works around | |
6026 | # an apparent bug in bash 1.12 on linux. | |
6027 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6028 | *) | |
e552509b ILT |
6029 | # From the config-lang.in, get $language, $lang_requires, and |
6030 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6031 | language= |
6032 | lang_requires= | |
e552509b | 6033 | lang_requires_boot_languages= |
9e07f89d | 6034 | . ${lang_frag} |
e552509b | 6035 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6036 | case ,${enable_languages}, in |
6037 | *,$other,*) ;; | |
6038 | *,all,*) ;; | |
6039 | *,$language,*) | |
6040 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6041 | enable_languages="${enable_languages},${other}" | |
6042 | ;; | |
6043 | esac | |
6044 | done | |
e552509b ILT |
6045 | for other in ${lang_requires_boot_languages} ; do |
6046 | if test "$other" != "c"; then | |
6047 | case ,${enable_stage1_languages}, in | |
6048 | *,$other,*) ;; | |
6049 | *,all,*) ;; | |
6050 | *) | |
6051 | case ,${enable_languages}, in | |
6052 | *,$language,*) | |
6053 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6054 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6055 | ;; | |
6056 | esac | |
6057 | ;; | |
6058 | esac | |
6059 | fi | |
6060 | done | |
9e07f89d NN |
6061 | ;; |
6062 | esac | |
6063 | done | |
6064 | ||
9b134994 | 6065 | new_enable_languages=,c, |
700d40ca ILT |
6066 | |
6067 | # If LTO is enabled, add the LTO front end. | |
6068 | extra_host_libiberty_configure_flags= | |
6069 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6070 | case ,${enable_languages}, in |
6071 | *,lto,*) ;; | |
6072 | *) enable_languages="${enable_languages},lto" ;; | |
6073 | esac | |
a8eb3f0a | 6074 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6075 | configdirs="$configdirs lto-plugin" |
6076 | extra_host_libiberty_configure_flags=--enable-shared | |
6077 | fi | |
6078 | fi | |
6079 | ||
6080 | ||
9e07f89d | 6081 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6082 | potential_languages=,c, |
9e07f89d | 6083 | |
9e1a94f4 ILT |
6084 | enabled_target_libs= |
6085 | disabled_target_libs= | |
6086 | ||
9e07f89d NN |
6087 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6088 | case ${lang_frag} in | |
6089 | ..) ;; | |
6090 | # The odd quoting in the next line works around | |
6091 | # an apparent bug in bash 1.12 on linux. | |
6092 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6093 | *) | |
c6b750e1 | 6094 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6095 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6096 | language= |
6097 | target_libs= | |
6098 | lang_dirs= | |
64ce424c | 6099 | subdir_requires= |
9b134994 PB |
6100 | boot_language=no |
6101 | build_by_default=yes | |
9e07f89d | 6102 | . ${lang_frag} |
9b134994 PB |
6103 | if test x${language} = x; then |
6104 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6105 | exit 1 | |
6106 | fi | |
6107 | ||
ffdd6afc | 6108 | if test "$language" = "c++"; then |
7ec59b9e | 6109 | boot_language=yes |
e8a5fa9c RW |
6110 | fi |
6111 | ||
9b134994 PB |
6112 | case ,${enable_languages}, in |
6113 | *,${language},*) | |
7ec59b9e L |
6114 | # Language was explicitly selected; include it |
6115 | # unless it is C, which is enabled by default. | |
6116 | if test "$language" != "c"; then | |
6117 | add_this_lang=yes | |
6118 | fi | |
9e07f89d | 6119 | ;; |
9b134994 PB |
6120 | *,all,*) |
6121 | # 'all' was selected, select it if it is a default language | |
6122 | add_this_lang=${build_by_default} | |
9e07f89d NN |
6123 | ;; |
6124 | *) | |
6125 | add_this_lang=no | |
6126 | ;; | |
6127 | esac | |
4b1cb4fe | 6128 | |
64ce424c | 6129 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6130 | for i in $subdir_requires; do |
3d3adb43 | 6131 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6132 | case ,${enable_languages}, in |
6133 | *,${language},*) | |
6134 | # Specifically requested language; tell them. | |
81ecdfbb | 6135 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6136 | ;; |
6137 | *) | |
6138 | # Silently disable. | |
9b134994 | 6139 | add_this_lang=unsupported |
64ce424c PB |
6140 | ;; |
6141 | esac | |
6142 | done | |
6143 | ||
9b134994 PB |
6144 | # Disable Ada if no preexisting GNAT is available. |
6145 | case ,${enable_languages},:${language}:${have_gnat} in | |
6146 | *,${language},*:ada:no) | |
6147 | # Specifically requested language; tell them. | |
81ecdfbb | 6148 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6149 | ;; |
6150 | *:ada:no) | |
6151 | # Silently disable. | |
6152 | add_this_lang=unsupported | |
6153 | ;; | |
6154 | esac | |
6155 | ||
59f7ec45 HPN |
6156 | # Disable a language that is unsupported by the target. |
6157 | case " $unsupported_languages " in | |
6158 | *" $language "*) | |
9b134994 | 6159 | add_this_lang=unsupported |
59f7ec45 HPN |
6160 | ;; |
6161 | esac | |
6162 | ||
4b1cb4fe | 6163 | case $add_this_lang in |
9b134994 | 6164 | unsupported) |
9e07f89d | 6165 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6166 | disabled_target_libs="$disabled_target_libs $target_libs" |
6167 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6168 | ;; |
9b134994 PB |
6169 | no) |
6170 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6171 | disabled_target_libs="$disabled_target_libs $target_libs" |
6172 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6173 | potential_languages="${potential_languages}${language}," |
6174 | ;; | |
6175 | yes) | |
6176 | new_enable_languages="${new_enable_languages}${language}," | |
6177 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6178 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6179 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6180 | case "${boot_language}:,$enable_stage1_languages," in |
6181 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6182 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6183 | case ",$stage1_languages," in |
6184 | *,$language,* | ,yes, | ,all,) ;; | |
6185 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6186 | esac | |
e8a5fa9c RW |
6187 | # We need to bootstrap any supporting libraries. |
6188 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6189 | ;; |
6190 | esac | |
6191 | ;; | |
9e07f89d NN |
6192 | esac |
6193 | ;; | |
6194 | esac | |
6195 | done | |
6196 | ||
9e1a94f4 ILT |
6197 | # Add target libraries which are only needed for disabled languages |
6198 | # to noconfigdirs. | |
6199 | if test -n "$disabled_target_libs"; then | |
6200 | for dir in $disabled_target_libs; do | |
6201 | case " $enabled_target_libs " in | |
6202 | *" ${dir} "*) ;; | |
6203 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6204 | esac | |
6205 | done | |
6206 | fi | |
6207 | ||
81ecdfbb RW |
6208 | # Check whether --enable-stage1-languages was given. |
6209 | if test "${enable_stage1_languages+set}" = set; then : | |
6210 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6211 | ,no,|,,) |
6212 | # Set it to something that will have no effect in the loop below | |
6213 | enable_stage1_languages=c ;; | |
6214 | ,yes,) | |
6215 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6216 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6217 | *,all,*) | |
6218 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6219 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6220 | esac | |
6221 | ||
6222 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6223 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6224 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6225 | case $potential_languages in | |
6226 | *,$i,*) | |
6227 | case $stage1_languages in | |
6228 | *,$i,*) ;; | |
6229 | *) stage1_languages="$stage1_languages$i," ;; | |
6230 | esac ;; | |
6231 | *) | |
6232 | case $missing_languages in | |
6233 | *,$i,*) ;; | |
6234 | *) missing_languages="$missing_languages$i," ;; | |
6235 | esac ;; | |
6236 | esac | |
6237 | done | |
81ecdfbb RW |
6238 | fi |
6239 | ||
9b134994 PB |
6240 | |
6241 | # Remove leading/trailing commas that were added for simplicity | |
6242 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6243 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6244 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6245 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6246 | ||
9e07f89d | 6247 | if test "x$missing_languages" != x; then |
81ecdfbb | 6248 | as_fn_error " |
27258dd4 | 6249 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6250 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6251 | fi |
9e07f89d NN |
6252 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6253 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6254 | enable_languages="$new_enable_languages" |
9e07f89d | 6255 | fi |
9b134994 | 6256 | |
c6b750e1 | 6257 | |
81ec575a | 6258 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6259 | fi |
6260 | ||
a6df5a19 PB |
6261 | # Handle --disable-<component> generically. |
6262 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6263 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6264 | varname=`echo $dirname | sed -e s/+/_/g` |
6265 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6266 | noconfigdirs="$noconfigdirs $dir" |
6267 | fi | |
6268 | done | |
6269 | ||
4f0ef2d8 | 6270 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6271 | # Check whether --enable-objc-gc was given. |
6272 | if test "${enable_objc_gc+set}" = set; then : | |
6273 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6274 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6275 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6276 | ;; |
6277 | esac | |
81ecdfbb RW |
6278 | fi |
6279 | ||
4f0ef2d8 CD |
6280 | |
6281 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6282 | case ,${enable_languages},:${enable_objc_gc} in |
6283 | *,objc,*:yes) | |
4f0ef2d8 CD |
6284 | # Keep target-boehm-gc if requested for Objective-C. |
6285 | ;; | |
4f0ef2d8 | 6286 | *) |
d42c4017 DA |
6287 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6288 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6289 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6290 | fi | |
4f0ef2d8 CD |
6291 | ;; |
6292 | esac | |
6293 | ||
7ec59b9e L |
6294 | # Disable libitm if we're not building C++ |
6295 | case ,${enable_languages}, in | |
6296 | *,c++,*) ;; | |
6297 | *) | |
6298 | noconfigdirs="$noconfigdirs target-libitm" | |
6299 | ;; | |
6300 | esac | |
6301 | ||
caeba88f AL |
6302 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6303 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6304 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6305 | ||
6306 | notsupp="" | |
6307 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6308 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6309 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6310 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6311 | if test -r $srcdir/$dirname/configure ; then | |
6312 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6313 | true | |
6314 | else | |
6315 | notsupp="$notsupp $dir" | |
6316 | fi | |
6317 | fi | |
6318 | fi | |
caeba88f AL |
6319 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6320 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6321 | if test -r $srcdir/$dirname/configure ; then | |
6322 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6323 | true | |
6324 | else | |
6325 | notsupp="$notsupp $dir" | |
6326 | fi | |
6327 | fi | |
6328 | fi | |
9e07f89d NN |
6329 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6330 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6331 | if test -r $srcdir/$dirname/configure ; then | |
6332 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6333 | true | |
6334 | else | |
6335 | notsupp="$notsupp $dir" | |
6336 | fi | |
6337 | fi | |
6338 | fi | |
6339 | done | |
6340 | ||
9e07f89d NN |
6341 | # Quietly strip out all directories which aren't configurable in this tree. |
6342 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6343 | # is now the case. | |
6a9cf61e PB |
6344 | build_configdirs_all="$build_configdirs" |
6345 | build_configdirs= | |
6346 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6347 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6348 | if test -f ${srcdir}/$j/configure ; then |
6349 | build_configdirs="${build_configdirs} $i" | |
6350 | fi | |
6351 | done | |
6352 | ||
9e07f89d NN |
6353 | configdirs_all="$configdirs" |
6354 | configdirs= | |
6355 | for i in ${configdirs_all} ; do | |
6356 | if test -f ${srcdir}/$i/configure ; then | |
6357 | configdirs="${configdirs} $i" | |
6358 | fi | |
6359 | done | |
6a9cf61e | 6360 | |
9e07f89d NN |
6361 | target_configdirs_all="$target_configdirs" |
6362 | target_configdirs= | |
6363 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6364 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6365 | if test -f ${srcdir}/$j/configure ; then |
6366 | target_configdirs="${target_configdirs} $i" | |
6367 | fi | |
6368 | done | |
6369 | ||
6370 | # Produce a warning message for the subdirs we can't configure. | |
6371 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6372 | # FSF releases, it's important to let people know when their machine isn't | |
6373 | # supported by the one or two programs in a package. | |
6374 | ||
6375 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6376 | # If $appdirs is non-empty, at least one of those directories must still | |
6377 | # be configured, or we error out. (E.g., if the gas release supports a | |
6378 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6379 | # pretend that all is well.) | |
6380 | if test -n "$appdirs" ; then | |
6381 | for dir in $appdirs ; do | |
6382 | if test -r $dir/Makefile.in ; then | |
6383 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6384 | appdirs="" | |
6385 | break | |
6386 | fi | |
6a9cf61e | 6387 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6388 | appdirs="" |
6389 | break | |
6390 | fi | |
6391 | fi | |
6392 | done | |
6393 | if test -n "$appdirs" ; then | |
6394 | echo "*** This configuration is not supported by this package." 1>&2 | |
6395 | exit 1 | |
6396 | fi | |
6397 | fi | |
6398 | # Okay, some application will build, or we don't care to check. Still | |
6399 | # notify of subdirs not getting built. | |
6400 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6401 | echo " ${notsupp}" 1>&2 | |
6402 | echo " (Any other directories should still work fine.)" 1>&2 | |
6403 | fi | |
6404 | ||
6405 | case "$host" in | |
6406 | *msdosdjgpp*) | |
6407 | enable_gdbtk=no ;; | |
6408 | esac | |
6409 | ||
18f6b6ee PB |
6410 | # To find our prefix, in gcc_cv_tool_prefix. |
6411 | ||
6412 | # The user is always right. | |
6413 | if test "${PATH_SEPARATOR+set}" != set; then | |
6414 | echo "#! /bin/sh" >conf$$.sh | |
6415 | echo "exit 0" >>conf$$.sh | |
6416 | chmod +x conf$$.sh | |
6417 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6418 | PATH_SEPARATOR=';' | |
6419 | else | |
6420 | PATH_SEPARATOR=: | |
6421 | fi | |
6422 | rm -f conf$$.sh | |
6423 | fi | |
6424 | ||
6425 | ||
6426 | ||
6427 | if test "x$exec_prefix" = xNONE; then | |
6428 | if test "x$prefix" = xNONE; then | |
6429 | gcc_cv_tool_prefix=$ac_default_prefix | |
6430 | else | |
6431 | gcc_cv_tool_prefix=$prefix | |
6432 | fi | |
6433 | else | |
6434 | gcc_cv_tool_prefix=$exec_prefix | |
6435 | fi | |
6436 | ||
6437 | # If there is no compiler in the tree, use the PATH only. In any | |
6438 | # case, if there is no compiler in the tree nobody should use | |
6439 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6440 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6441 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6442 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6443 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6444 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6445 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6446 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6447 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6448 | else | |
6449 | gcc_cv_tool_dirs= | |
6450 | fi | |
6451 | ||
6452 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6453 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6454 | fi | |
6455 | ||
6456 | ||
6457 | ||
9e07f89d NN |
6458 | copy_dirs= |
6459 | ||
c6b750e1 | 6460 | |
81ecdfbb RW |
6461 | # Check whether --with-build-sysroot was given. |
6462 | if test "${with_build_sysroot+set}" = set; then : | |
6463 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6464 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6465 | fi | |
6466 | else | |
6467 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6468 | fi |
a19b6204 MM |
6469 | |
6470 | ||
8a6ee3ab | 6471 | |
81ecdfbb RW |
6472 | |
6473 | # Check whether --with-debug-prefix-map was given. | |
6474 | if test "${with_debug_prefix_map+set}" = set; then : | |
6475 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6476 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6477 | for debug_map in $withval; do | |
6478 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6479 | done | |
6480 | fi | |
6481 | else | |
6482 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6483 | fi |
6484 | ||
8a6ee3ab JM |
6485 | |
6486 | ||
7f6ef0c0 PB |
6487 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6488 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6489 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6490 | # We want to ensure that TARGET libraries (which we know are built with | |
6491 | # gcc) are built with "-O2 -g", so include those options when setting | |
6492 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6493 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6494 | CFLAGS_FOR_TARGET=$CFLAGS | |
6495 | case " $CFLAGS " in | |
6496 | *" -O2 "*) ;; | |
68f107fa | 6497 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6498 | esac |
6499 | case " $CFLAGS " in | |
6500 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6501 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6502 | esac |
6503 | fi | |
6504 | ||
6505 | ||
6506 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6507 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6508 | case " $CXXFLAGS " in | |
6509 | *" -O2 "*) ;; | |
68f107fa | 6510 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6511 | esac |
6512 | case " $CXXFLAGS " in | |
6513 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6514 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6515 | esac |
6516 | fi | |
6517 | ||
6518 | ||
91c1f14c DK |
6519 | |
6520 | ||
9e07f89d NN |
6521 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6522 | # the named directory are copied to $(tooldir)/sys-include. | |
6523 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6524 | if test x${is_cross_compiler} = xno ; then | |
6525 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6526 | exit 1 | |
6527 | fi | |
6528 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6529 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6530 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6531 | fi |
6532 | fi | |
6533 | ||
6534 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6535 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6536 | # are permitted. | |
6537 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6538 | if test x${is_cross_compiler} = xno ; then | |
6539 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6540 | exit 1 | |
6541 | fi | |
6542 | if test x"${with_libs}" != xyes ; then | |
6543 | # Copy the libraries in reverse order, so that files in the first named | |
6544 | # library override files in subsequent libraries. | |
18f6b6ee | 6545 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6546 | for l in ${with_libs}; do |
c6b750e1 | 6547 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6548 | done |
6549 | fi | |
6550 | fi | |
6551 | ||
700d40ca | 6552 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6553 | # |
6554 | # This is done by determining whether or not the appropriate directory | |
6555 | # is available, and by checking whether or not specific configurations | |
6556 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6557 | # |
6558 | # The command line options always override the explicit settings in | |
2429c060 PB |
6559 | # configure.in, and the settings in configure.in override this magic. |
6560 | # | |
c6b750e1 | 6561 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6562 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6563 | # --without-gnu-ld options for the configure script. Similarly, if |
6564 | # the default is to use the included zlib and you don't want to do that, | |
6565 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6566 | |
6567 | if test x${use_gnu_as} = x && | |
6568 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6569 | with_gnu_as=yes | |
6570 | extra_host_args="$extra_host_args --with-gnu-as" | |
6571 | fi | |
6572 | ||
6573 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6574 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6575 | with_gnu_ld=yes |
6576 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6577 | fi | |
6578 | ||
700d40ca ILT |
6579 | if test x${use_included_zlib} = x && |
6580 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6581 | : | |
6582 | else | |
6583 | with_system_zlib=yes | |
6584 | extra_host_args="$extra_host_args --with-system-zlib" | |
6585 | fi | |
6586 | ||
2429c060 PB |
6587 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6588 | # can detect this case. | |
6589 | ||
6590 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6591 | with_newlib=yes | |
6592 | extra_host_args="$extra_host_args --with-newlib" | |
6593 | fi | |
6594 | ||
9e07f89d NN |
6595 | # Handle ${copy_dirs} |
6596 | set fnord ${copy_dirs} | |
6597 | shift | |
6598 | while test $# != 0 ; do | |
6599 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6600 | : | |
6601 | else | |
6602 | echo Copying $1 to $2 | |
6603 | ||
6604 | # Use the install script to create the directory and all required | |
6605 | # parent directories. | |
6606 | if test -d $2 ; then | |
6607 | : | |
6608 | else | |
6609 | echo >config.temp | |
6610 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6611 | fi | |
6612 | ||
6613 | # Copy the directory, assuming we have tar. | |
6614 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6615 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6616 | ||
6617 | # It is the responsibility of the user to correctly adjust all | |
6618 | # symlinks. If somebody can figure out how to handle them correctly | |
6619 | # here, feel free to add the code. | |
6620 | ||
6621 | echo $1 > $2/COPIED | |
6622 | fi | |
6623 | shift; shift | |
6624 | done | |
6625 | ||
2429c060 PB |
6626 | # Determine a target-dependent exec_prefix that the installed |
6627 | # gcc will search in. Keep this list sorted by triplet, with | |
6628 | # the *-*-osname triplets last. | |
6629 | md_exec_prefix= | |
6630 | case "${target}" in | |
521ec477 | 6631 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6632 | md_exec_prefix=/dev/env/DJDIR/bin |
6633 | ;; | |
2429c060 | 6634 | *-*-hpux* | \ |
2429c060 | 6635 | *-*-nto-qnx* | \ |
1f111696 | 6636 | *-*-solaris2*) |
2429c060 PB |
6637 | md_exec_prefix=/usr/ccs/bin |
6638 | ;; | |
6639 | esac | |
6640 | ||
a0da8069 NN |
6641 | extra_arflags_for_target= |
6642 | extra_nmflags_for_target= | |
6643 | extra_ranlibflags_for_target= | |
6644 | target_makefile_frag=/dev/null | |
6645 | case "${target}" in | |
77d7106f AM |
6646 | spu-*-*) |
6647 | target_makefile_frag="config/mt-spu" | |
6648 | ;; | |
d09bbf00 | 6649 | mips*-sde-elf* | mips*-mti-elf*) |
429acdec RS |
6650 | target_makefile_frag="config/mt-sde" |
6651 | ;; | |
f3b1e08e RS |
6652 | mipsisa*-*-elfoabi*) |
6653 | target_makefile_frag="config/mt-mips-elfoabi" | |
6654 | ;; | |
e7c8859c RS |
6655 | mips*-*-*linux* | mips*-*-gnu*) |
6656 | target_makefile_frag="config/mt-mips-gnu" | |
6657 | ;; | |
29383458 | 6658 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6659 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6660 | ;; |
6661 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6662 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6663 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6664 | # harmless if we're using GNU nm or ar. | |
6665 | extra_arflags_for_target=" -X32_64" | |
6666 | extra_nmflags_for_target=" -B -X32_64" | |
6667 | ;; | |
a0da8069 NN |
6668 | esac |
6669 | ||
6670 | alphaieee_frag=/dev/null | |
6671 | case $target in | |
6672 | alpha*-*-*) | |
6673 | # This just makes sure to use the -mieee option to build target libs. | |
6674 | # This should probably be set individually by each library. | |
6675 | alphaieee_frag="config/mt-alphaieee" | |
6676 | ;; | |
6677 | esac | |
6678 | ||
6679 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6680 | # the target libraries, similarly if it is not specified, use -Os | |
6681 | # on selected platforms. | |
6682 | ospace_frag=/dev/null | |
6683 | case "${enable_target_optspace}:${target}" in | |
6684 | yes:*) | |
6685 | ospace_frag="config/mt-ospace" | |
6686 | ;; | |
6687 | :d30v-*) | |
6688 | ospace_frag="config/mt-d30v" | |
6689 | ;; | |
6690 | :m32r-* | :d10v-* | :fr30-*) | |
6691 | ospace_frag="config/mt-ospace" | |
6692 | ;; | |
6693 | no:* | :*) | |
6694 | ;; | |
6695 | *) | |
6696 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6697 | ;; | |
6698 | esac | |
6699 | ||
a0da8069 NN |
6700 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6701 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6702 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6703 | build_tooldir=${tooldir} |
6704 | ||
a0da8069 NN |
6705 | # Create a .gdbinit file which runs the one in srcdir |
6706 | # and tells GDB to look there for source files. | |
6707 | ||
6708 | if test -r ${srcdir}/.gdbinit ; then | |
6709 | case ${srcdir} in | |
6710 | .) ;; | |
6711 | *) cat > ./.gdbinit <<EOF | |
6712 | # ${NO_EDIT} | |
6713 | dir ${srcdir} | |
6714 | dir . | |
6715 | source ${srcdir}/.gdbinit | |
6716 | EOF | |
6717 | ;; | |
6718 | esac | |
6719 | fi | |
6720 | ||
a0da8069 NN |
6721 | # Make sure that the compiler is able to generate an executable. If it |
6722 | # can't, we are probably in trouble. We don't care whether we can run the | |
6723 | # executable--we might be using a cross compiler--we only care whether it | |
6724 | # can be created. At this point the main configure script has set CC. | |
6725 | we_are_ok=no | |
6726 | echo "int main () { return 0; }" > conftest.c | |
6727 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6728 | if test $? = 0 ; then | |
6729 | if test -s conftest || test -s conftest.exe ; then | |
6730 | we_are_ok=yes | |
6731 | fi | |
c6b750e1 | 6732 | fi |
a0da8069 NN |
6733 | case $we_are_ok in |
6734 | no) | |
6735 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6736 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6737 | rm -f conftest* | |
6738 | exit 1 | |
6739 | ;; | |
6740 | esac | |
6741 | rm -f conftest* | |
6742 | ||
3bbd2f8f | 6743 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6744 | case "${host}" in |
6745 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6746 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6747 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6748 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6749 | esac | |
6750 | ||
3bbd2f8f | 6751 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6752 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6753 | # built executables to PATH. | |
3bbd2f8f AL |
6754 | if test "$RPATH_ENVVAR" = PATH; then |
6755 | GCC_SHLIB_SUBDIR=/shlib | |
6756 | else | |
6757 | GCC_SHLIB_SUBDIR= | |
6758 | fi | |
6759 | ||
a0da8069 NN |
6760 | # Record target_configdirs and the configure arguments for target and |
6761 | # build configuration in Makefile. | |
6762 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 6763 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 6764 | |
2aa2364a JR |
6765 | # If we are building libgomp, bootstrap it. |
6766 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6767 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6768 | fi | |
6769 | ||
a0da8069 NN |
6770 | # Determine whether gdb needs tk/tcl or not. |
6771 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6772 | # and in that case we want gdb to be built without tk. Ugh! | |
6773 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6774 | # so we should be able to put the 'maybe's in unconditionally and | |
6775 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6776 | # 100% sure that that's safe though. | |
c180f501 | 6777 | |
675c6968 | 6778 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
6779 | case "$enable_gdbtk" in |
6780 | no) | |
6781 | GDB_TK="" ;; | |
c180f501 AC |
6782 | yes) |
6783 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 6784 | *) |
c180f501 AC |
6785 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6786 | # distro. Eventually someone will fix this and move Insight, nee | |
6787 | # gdbtk to a separate directory. | |
6788 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6789 | GDB_TK="${gdb_tk}" | |
6790 | else | |
6791 | GDB_TK="" | |
6792 | fi | |
6793 | ;; | |
a0da8069 | 6794 | esac |
907be67c DJ |
6795 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6796 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 6797 | |
6bd3dfaa | 6798 | # Strip out unwanted targets. |
dd12c3a8 NN |
6799 | |
6800 | # While at that, we remove Makefiles if we were started for recursive | |
6801 | # configuration, so that the top-level Makefile reconfigures them, | |
6802 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 6803 | |
06a51eac RW |
6804 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6805 | # but now we're fixing up the Makefile ourselves with the additional | |
6806 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6807 | # extrasub-{build,host,target} not because there is any reason to split | |
6808 | # the substitutions up that way, but only to remain below the limit of | |
6809 | # 99 commands in a script, for HP-UX sed. | |
6810 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 6811 | |
16b1ad29 RW |
6812 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6813 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6814 | yes:yes:*\ gold\ *:*) | |
6815 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6816 | ;; | |
6817 | esac | |
6818 | ||
9cb3fa6f | 6819 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 6820 | case $enable_bootstrap in |
319cab08 | 6821 | yes) |
96655cc4 AO |
6822 | bootstrap_suffix=bootstrap |
6823 | BUILD_CONFIG=bootstrap-debug | |
6824 | ;; | |
319cab08 | 6825 | no) |
96655cc4 AO |
6826 | bootstrap_suffix=no-bootstrap |
6827 | BUILD_CONFIG= | |
6828 | ;; | |
319cab08 PB |
6829 | esac |
6830 | ||
96655cc4 AO |
6831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6832 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6833 | ||
6834 | ||
6835 | # Check whether --with-build-config was given. | |
6836 | if test "${with_build_config+set}" = set; then : | |
6837 | withval=$with_build_config; case $with_build_config in | |
6838 | yes) with_build_config= ;; | |
6839 | no) with_build_config= BUILD_CONFIG= ;; | |
6840 | esac | |
6841 | fi | |
6842 | ||
6843 | ||
6844 | if test "x${with_build_config}" != x; then | |
6845 | BUILD_CONFIG=$with_build_config | |
6846 | else | |
6847 | case $BUILD_CONFIG in | |
6848 | bootstrap-debug) | |
6849 | if echo "int f (void) { return 0; }" > conftest.c && | |
6850 | ${CC} -c conftest.c && | |
6851 | mv conftest.o conftest.o.g0 && | |
6852 | ${CC} -c -g conftest.c && | |
6853 | mv conftest.o conftest.o.g && | |
a009f2e7 | 6854 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
6855 | : |
6856 | else | |
6857 | BUILD_CONFIG= | |
6858 | fi | |
6859 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6860 | ;; | |
6861 | esac | |
6862 | fi | |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6864 | $as_echo "$BUILD_CONFIG" >&6; } | |
6865 | ||
6866 | ||
06a51eac | 6867 | extrasub_build= |
6a9cf61e | 6868 | for module in ${build_configdirs} ; do |
498d4a71 CF |
6869 | if test -z "${no_recursion}" \ |
6870 | && test -f ${build_subdir}/${module}/Makefile; then | |
6871 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
6872 | rm -f ${build_subdir}/${module}/Makefile | |
6873 | fi | |
06a51eac | 6874 | extrasub_build="$extrasub_build |
498d4a71 CF |
6875 | /^@if build-$module\$/d |
6876 | /^@endif build-$module\$/d | |
6877 | /^@if build-$module-$bootstrap_suffix\$/d | |
6878 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
6879 | done | |
06a51eac | 6880 | extrasub_host= |
498d4a71 | 6881 | for module in ${configdirs} ; do |
80911fe1 | 6882 | if test -z "${no_recursion}"; then |
8cf39b1b | 6883 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
6884 | if test -f ${file}; then |
6885 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
6886 | rm -f ${file} | |
6887 | fi | |
6888 | done | |
498d4a71 | 6889 | fi |
06a51eac | 6890 | extrasub_host="$extrasub_host |
498d4a71 CF |
6891 | /^@if $module\$/d |
6892 | /^@endif $module\$/d | |
6893 | /^@if $module-$bootstrap_suffix\$/d | |
6894 | /^@endif $module-$bootstrap_suffix\$/d" | |
6895 | done | |
06a51eac | 6896 | extrasub_target= |
498d4a71 CF |
6897 | for module in ${target_configdirs} ; do |
6898 | if test -z "${no_recursion}" \ | |
6899 | && test -f ${target_subdir}/${module}/Makefile; then | |
6900 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
6901 | rm -f ${target_subdir}/${module}/Makefile | |
6902 | fi | |
e8a5fa9c RW |
6903 | |
6904 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
6905 | case $bootstrap_target_libs in | |
6906 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
6907 | *) target_bootstrap_suffix=no-bootstrap ;; | |
6908 | esac | |
6909 | ||
06a51eac | 6910 | extrasub_target="$extrasub_target |
498d4a71 CF |
6911 | /^@if target-$module\$/d |
6912 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
6913 | /^@if target-$module-$target_bootstrap_suffix\$/d |
6914 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
6915 | done |
6916 | ||
06a51eac RW |
6917 | # Do the final fixup along with target modules. |
6918 | extrasub_target="$extrasub_target | |
6bd3dfaa | 6919 | /^@if /,/^@endif /d" |
a0da8069 NN |
6920 | |
6921 | # Create the serialization dependencies. This uses a temporary file. | |
6922 | ||
81ecdfbb RW |
6923 | # Check whether --enable-serial-configure was given. |
6924 | if test "${enable_serial_configure+set}" = set; then : | |
6925 | enableval=$enable_serial_configure; | |
6926 | fi | |
e6bfb94a AO |
6927 | |
6928 | ||
1047cb91 DD |
6929 | case ${enable_serial_configure} in |
6930 | yes) | |
6931 | enable_serial_build_configure=yes | |
6932 | enable_serial_host_configure=yes | |
6933 | enable_serial_target_configure=yes | |
6934 | ;; | |
6935 | esac | |
6936 | ||
a0da8069 NN |
6937 | # These force 'configure's to be done one at a time, to avoid problems |
6938 | # with contention over a shared config.cache. | |
6939 | rm -f serdep.tmp | |
e6bfb94a | 6940 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 6941 | olditem= |
1047cb91 | 6942 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
6943 | for item in ${build_configdirs} ; do |
6944 | case ${olditem} in | |
6945 | "") ;; | |
e6bfb94a | 6946 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
6947 | esac |
6948 | olditem=${item} | |
6949 | done | |
6950 | olditem= | |
1047cb91 | 6951 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
6952 | for item in ${configdirs} ; do |
6953 | case ${olditem} in | |
6954 | "") ;; | |
e6bfb94a | 6955 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
6956 | esac |
6957 | olditem=${item} | |
6958 | done | |
6959 | olditem= | |
1047cb91 | 6960 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
6961 | for item in ${target_configdirs} ; do |
6962 | case ${olditem} in | |
6963 | "") ;; | |
e6bfb94a | 6964 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
6965 | esac |
6966 | olditem=${item} | |
6967 | done | |
6968 | serialization_dependencies=serdep.tmp | |
6969 | ||
6970 | ||
e6bfb94a | 6971 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 6972 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
6973 | # might not want to pass down to subconfigures. The exception being |
6974 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
6975 | # files altogether, and which should be passed on to subconfigures. | |
6976 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
6977 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 6978 | baseargs= |
65b4571a | 6979 | tbaseargs= |
c6b750e1 DJ |
6980 | keep_next=no |
6981 | skip_next=no | |
6982 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
6983 | for ac_arg |
6984 | do | |
c6b750e1 DJ |
6985 | if test X"$skip_next" = X"yes"; then |
6986 | skip_next=no | |
6987 | continue | |
6988 | fi | |
6989 | if test X"$keep_next" = X"yes"; then | |
6990 | case $ac_arg in | |
6991 | *\'*) | |
6992 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6993 | esac | |
6994 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 6995 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
6996 | keep_next=no |
6997 | continue | |
6998 | fi | |
6999 | ||
7000 | # Handle separated arguments. Based on the logic generated by | |
7001 | # autoconf 2.59. | |
7002 | case $ac_arg in | |
7003 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7004 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7005 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7006 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7007 | separate_arg=no | |
7008 | ;; | |
7009 | -*) | |
7010 | separate_arg=yes | |
7011 | ;; | |
7012 | *) | |
7013 | separate_arg=no | |
7014 | ;; | |
7015 | esac | |
7016 | ||
65b4571a AO |
7017 | skip_targ=no |
7018 | case $ac_arg in | |
7019 | ||
7020 | --with-* | --without-*) | |
7021 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7022 | ||
7023 | case $libopt in | |
7024 | *[-_]include) | |
7025 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7026 | ;; | |
7027 | *[-_]lib) | |
7028 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7029 | ;; | |
7030 | *) | |
7031 | lib=$libopt | |
7032 | ;; | |
7033 | esac | |
7034 | ||
7035 | ||
7036 | case $lib in | |
7ec59b9e | 7037 | mpc | mpfr | gmp | cloog) |
65b4571a AO |
7038 | # If we're processing --with-$lib, --with-$lib-include or |
7039 | # --with-$lib-lib, for one of the libs above, and target is | |
7040 | # different from host, don't pass the current argument to any | |
7041 | # target library's configure. | |
7042 | if test x$is_cross_compiler = xyes; then | |
7043 | skip_targ=yes | |
7044 | fi | |
7045 | ;; | |
7046 | esac | |
7047 | ;; | |
7048 | esac | |
7049 | ||
c6b750e1 | 7050 | case "$ac_arg" in |
30167e0a NC |
7051 | --cache-file=/dev/null | \ |
7052 | -cache-file=/dev/null ) | |
7053 | # Handled here to avoid the test to skip args below. | |
7054 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7055 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7056 | # Assert: $separate_arg should always be no. |
7057 | keep_next=$separate_arg | |
7058 | ;; | |
c6b750e1 DJ |
7059 | --no*) |
7060 | continue | |
7061 | ;; | |
7062 | --c* | \ | |
7063 | --sr* | \ | |
7064 | --ho* | \ | |
7065 | --bu* | \ | |
7066 | --t* | \ | |
7067 | --program-* | \ | |
7068 | -cache_file* | \ | |
7069 | -srcdir* | \ | |
7070 | -host* | \ | |
7071 | -build* | \ | |
7072 | -target* | \ | |
7073 | -program-prefix* | \ | |
7074 | -program-suffix* | \ | |
7075 | -program-transform-name* ) | |
7076 | skip_next=$separate_arg | |
7077 | continue | |
7078 | ;; | |
7079 | -*) | |
7080 | # An option. Add it. | |
7081 | case $ac_arg in | |
7082 | *\'*) | |
7083 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7084 | esac | |
7085 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7086 | if test X"$skip_targ" = Xno; then |
7087 | tbaseargs="$tbaseargs '$ac_arg'" | |
7088 | fi | |
c6b750e1 DJ |
7089 | keep_next=$separate_arg |
7090 | ;; | |
7091 | *) | |
7092 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7093 | # pass it down; let the Makefile handle this. | |
7094 | continue | |
7095 | ;; | |
7096 | esac | |
7097 | done | |
7098 | # Remove the initial space we just introduced and, as these will be | |
7099 | # expanded by make, quote '$'. | |
7100 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7101 | |
f27d4f92 DJ |
7102 | # Add in --program-transform-name, after --program-prefix and |
7103 | # --program-suffix have been applied to it. Autoconf has already | |
7104 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7105 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7106 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7107 | # Also, because we want to override the logic in subdir configure scripts to |
7108 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7109 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7110 | ${program_transform_name} | |
7111 | EOF_SED | |
7112 | gcc_transform_name=`cat conftestsed.out` | |
7113 | rm -f conftestsed.out | |
7114 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7115 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7116 | if test "$silent" = yes; then |
7117 | baseargs="$baseargs --silent" | |
65b4571a | 7118 | tbaseargs="$tbaseargs --silent" |
2444379b | 7119 | fi |
34a0f3cf | 7120 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7121 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7122 | |
4074d5f2 RW |
7123 | # Record and document user additions to sub configure arguments. |
7124 | ||
7125 | ||
7126 | ||
7127 | ||
a0da8069 NN |
7128 | # For the build-side libraries, we just need to pretend we're native, |
7129 | # and not use the same cache file. Multilibs are neither needed nor | |
7130 | # desired. | |
4074d5f2 | 7131 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7132 | |
7133 | # For host modules, accept cache file option, or specification as blank. | |
7134 | case "${cache_file}" in | |
7135 | "") # empty | |
7136 | cache_file_option="" ;; | |
7137 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7138 | cache_file_option="--cache-file=${cache_file}" ;; | |
7139 | *) # relative path | |
7140 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7141 | esac | |
7142 | ||
82252c06 NN |
7143 | # Host dirs don't like to share a cache file either, horribly enough. |
7144 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7145 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7146 | |
65b4571a | 7147 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7148 | |
7149 | # Passing a --with-cross-host argument lets the target libraries know | |
7150 | # whether they are being built with a cross-compiler or being built | |
7151 | # native. However, it would be better to use other mechanisms to make the | |
7152 | # sorts of decisions they want to make on this basis. Please consider | |
7153 | # this option to be deprecated. FIXME. | |
7154 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7155 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7156 | fi |
7157 | ||
938d2b74 RW |
7158 | # Default to --enable-multilib. |
7159 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7160 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7161 | fi |
a0da8069 NN |
7162 | |
7163 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7164 | # changed from the earlier setting of with_newlib. | |
7165 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7166 | target_configargs="--with-newlib ${target_configargs}" | |
7167 | fi | |
7168 | ||
95036d20 NN |
7169 | # Different target subdirs use different values of certain variables |
7170 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7171 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7172 | # it doesn't automatically accept command-line overrides of them. | |
7173 | # This means it's not safe for target subdirs to share a cache file, | |
7174 | # which is disgusting, but there you have it. Hopefully this can be | |
7175 | # fixed in future. It's still worthwhile to use a cache file for each | |
7176 | # directory. I think. | |
7177 | ||
ae380b45 MS |
7178 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7179 | # We need to pass --target, as newer autoconf's requires consistency | |
7180 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7181 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7182 | |
a0da8069 NN |
7183 | FLAGS_FOR_TARGET= |
7184 | case " $target_configdirs " in | |
7185 | *" newlib "*) | |
7186 | case " $target_configargs " in | |
7187 | *" --with-newlib "*) | |
7188 | case "$target" in | |
1f53ca9a AO |
7189 | *-cygwin*) |
7190 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7191 | ;; | |
a0da8069 NN |
7192 | esac |
7193 | ||
7194 | # If we're not building GCC, don't discard standard headers. | |
7195 | if test -d ${srcdir}/gcc; then | |
7196 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7197 | ||
7198 | if test "${build}" != "${host}"; then | |
7199 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7200 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7201 | # to it. This is right: we don't want to search that directory | |
7202 | # for binaries, but we want the header files in there, so add | |
7203 | # them explicitly. | |
e552509b | 7204 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7205 | |
7206 | # Someone might think of using the pre-installed headers on | |
7207 | # Canadian crosses, in case the installed compiler is not fully | |
7208 | # compatible with the compiler being built. In this case, it | |
7209 | # would be better to flag an error than risking having | |
7210 | # incompatible object files being constructed. We can't | |
7211 | # guarantee that an error will be flagged, but let's hope the | |
7212 | # compiler will do it, when presented with incompatible header | |
7213 | # files. | |
7214 | fi | |
7215 | fi | |
7216 | ||
7217 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7218 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7219 | # Here host == target, so we don't need to build gcc, |
7220 | # so we don't want to discard standard headers. | |
7221 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7222 | ;; | |
7223 | *) | |
7224 | # If we're building newlib, use its generic headers last, but search | |
7225 | # for any libc-related directories first (so make it the last -B | |
7226 | # switch). | |
7227 | 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 |
7228 | |
7229 | # If we're building libgloss, find the startup file, simulator library | |
7230 | # and linker script. | |
7231 | case " $target_configdirs " in | |
7232 | *" libgloss "*) | |
7233 | # Look for startup file, simulator library and maybe linker script. | |
7234 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7235 | # Look for libnosys.a in case the target needs it. | |
7236 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7237 | # Most targets have the linker script in the source directory. | |
7238 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7239 | ;; | |
7240 | esac | |
a0da8069 NN |
7241 | ;; |
7242 | esac | |
7243 | ;; | |
7244 | esac | |
7245 | ;; | |
7246 | esac | |
1f53ca9a | 7247 | |
45055374 | 7248 | case "$target" in |
1f53ca9a AO |
7249 | x86_64-*mingw* | *-w64-mingw*) |
7250 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7251 | # however, use a symlink named 'mingw' in ${prefix} . | |
7252 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7253 | ;; | |
7254 | *-mingw*) | |
7255 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7256 | 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' | |
7257 | ;; | |
45055374 | 7258 | esac |
a0da8069 | 7259 | |
5fbad20a DD |
7260 | # Allow the user to override the flags for |
7261 | # our build compiler if desired. | |
c66487f8 NC |
7262 | if test x"${build}" = x"${host}" ; then |
7263 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7264 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7265 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7266 | fi | |
5fbad20a | 7267 | |
a0da8069 NN |
7268 | # On Canadian crosses, we'll be searching the right directories for |
7269 | # the previously-installed cross compiler, so don't bother to add | |
7270 | # flags for directories within the install tree of the compiler | |
7271 | # being built; programs in there won't even run. | |
7272 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7273 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7274 | 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 |
7275 | fi |
7276 | ||
7277 | if test "x${use_gnu_ld}" = x && | |
7278 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7279 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7280 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7281 | fi |
7282 | ||
a481dbb7 DD |
7283 | # Search for other target-specific linker scripts and such. |
7284 | case "${target}" in | |
4e206d7e DB |
7285 | mep*) |
7286 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7287 | ;; | |
7288 | esac | |
7289 | ||
a0da8069 | 7290 | # Makefile fragments. |
3e707e94 PB |
7291 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7292 | do | |
7293 | eval fragval=\$$frag | |
7294 | if test $fragval != /dev/null; then | |
7295 | eval $frag=${srcdir}/$fragval | |
7296 | fi | |
7297 | done | |
a0da8069 NN |
7298 | |
7299 | ||
7300 | ||
7301 | ||
7302 | ||
7303 | # Miscellanea: directories, flags, etc. | |
7304 | ||
7305 | ||
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | ||
3bbd2f8f | 7311 | |
6a9cf61e | 7312 | # Build module lists & subconfigure args. |
a0da8069 NN |
7313 | |
7314 | ||
7315 | ||
be01d343 PB |
7316 | # Host module lists & subconfigure args. |
7317 | ||
7318 | ||
7319 | ||
911e63d0 | 7320 | |
be01d343 PB |
7321 | # Target module lists & subconfigure args. |
7322 | ||
7323 | ||
7324 | ||
7325 | # Build tools. | |
7326 | ||
7327 | ||
7328 | ||
1576798e PB |
7329 | |
7330 | ||
7331 | ||
7332 | ||
7333 | ||
7334 | ||
7335 | ||
7336 | ||
7337 | ||
7338 | ||
7339 | ||
7340 | ||
7341 | ||
7342 | ||
be01d343 PB |
7343 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7344 | # on the build machine. These are used if the Makefile can't locate these | |
7345 | # programs in objdir. | |
7346 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7347 | ||
7348 | for ac_prog in 'bison -y' byacc yacc | |
7349 | do | |
c6b750e1 | 7350 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7351 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7353 | $as_echo_n "checking for $ac_word... " >&6; } | |
7354 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7355 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7356 | else |
7357 | if test -n "$YACC"; then | |
7358 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7359 | else | |
c6b750e1 DJ |
7360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7361 | for as_dir in $PATH | |
7362 | do | |
7363 | IFS=$as_save_IFS | |
7364 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7365 | for ac_exec_ext in '' $ac_executable_extensions; do |
7366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7367 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7369 | break 2 |
7370 | fi | |
7371 | done | |
81ecdfbb RW |
7372 | done |
7373 | IFS=$as_save_IFS | |
c6b750e1 | 7374 | |
be01d343 PB |
7375 | fi |
7376 | fi | |
c6b750e1 | 7377 | YACC=$ac_cv_prog_YACC |
be01d343 | 7378 | if test -n "$YACC"; then |
81ecdfbb RW |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7380 | $as_echo "$YACC" >&6; } | |
be01d343 | 7381 | else |
81ecdfbb RW |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7383 | $as_echo "no" >&6; } | |
be01d343 PB |
7384 | fi |
7385 | ||
81ecdfbb | 7386 | |
c6b750e1 | 7387 | test -n "$YACC" && break |
be01d343 PB |
7388 | done |
7389 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7390 | ||
7391 | case " $build_configdirs " in | |
7392 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7393 | esac |
7394 | ||
7395 | for ac_prog in bison | |
7396 | do | |
c6b750e1 | 7397 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7398 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7400 | $as_echo_n "checking for $ac_word... " >&6; } | |
7401 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7402 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7403 | else |
7404 | if test -n "$BISON"; then | |
7405 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7406 | else | |
c6b750e1 DJ |
7407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7408 | for as_dir in $PATH | |
7409 | do | |
7410 | IFS=$as_save_IFS | |
7411 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7412 | for ac_exec_ext in '' $ac_executable_extensions; do |
7413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7414 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7416 | break 2 |
7417 | fi | |
7418 | done | |
81ecdfbb RW |
7419 | done |
7420 | IFS=$as_save_IFS | |
c6b750e1 | 7421 | |
be01d343 PB |
7422 | fi |
7423 | fi | |
c6b750e1 | 7424 | BISON=$ac_cv_prog_BISON |
be01d343 | 7425 | if test -n "$BISON"; then |
81ecdfbb RW |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7427 | $as_echo "$BISON" >&6; } | |
be01d343 | 7428 | else |
81ecdfbb RW |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7430 | $as_echo "no" >&6; } | |
be01d343 PB |
7431 | fi |
7432 | ||
81ecdfbb | 7433 | |
c6b750e1 | 7434 | test -n "$BISON" && break |
be01d343 PB |
7435 | done |
7436 | test -n "$BISON" || BISON="$MISSING bison" | |
7437 | ||
7438 | case " $build_configdirs " in | |
7439 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7440 | esac | |
7441 | ||
7442 | for ac_prog in gm4 gnum4 m4 | |
7443 | do | |
c6b750e1 | 7444 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7445 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7447 | $as_echo_n "checking for $ac_word... " >&6; } | |
7448 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7449 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7450 | else |
7451 | if test -n "$M4"; then | |
7452 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7453 | else | |
c6b750e1 DJ |
7454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7455 | for as_dir in $PATH | |
7456 | do | |
7457 | IFS=$as_save_IFS | |
7458 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7459 | for ac_exec_ext in '' $ac_executable_extensions; do |
7460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7461 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7463 | break 2 |
7464 | fi | |
7465 | done | |
81ecdfbb RW |
7466 | done |
7467 | IFS=$as_save_IFS | |
c6b750e1 | 7468 | |
be01d343 PB |
7469 | fi |
7470 | fi | |
c6b750e1 | 7471 | M4=$ac_cv_prog_M4 |
be01d343 | 7472 | if test -n "$M4"; then |
81ecdfbb RW |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7474 | $as_echo "$M4" >&6; } | |
be01d343 | 7475 | else |
81ecdfbb RW |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7477 | $as_echo "no" >&6; } | |
be01d343 PB |
7478 | fi |
7479 | ||
81ecdfbb | 7480 | |
c6b750e1 | 7481 | test -n "$M4" && break |
be01d343 PB |
7482 | done |
7483 | test -n "$M4" || M4="$MISSING m4" | |
7484 | ||
7485 | case " $build_configdirs " in | |
7486 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7487 | esac | |
7488 | ||
7489 | for ac_prog in flex lex | |
7490 | do | |
c6b750e1 | 7491 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7492 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7494 | $as_echo_n "checking for $ac_word... " >&6; } | |
7495 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7496 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7497 | else |
7498 | if test -n "$LEX"; then | |
7499 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7500 | else | |
c6b750e1 DJ |
7501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7502 | for as_dir in $PATH | |
7503 | do | |
7504 | IFS=$as_save_IFS | |
7505 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7506 | for ac_exec_ext in '' $ac_executable_extensions; do |
7507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7508 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7510 | break 2 |
7511 | fi | |
7512 | done | |
81ecdfbb RW |
7513 | done |
7514 | IFS=$as_save_IFS | |
c6b750e1 | 7515 | |
be01d343 PB |
7516 | fi |
7517 | fi | |
c6b750e1 | 7518 | LEX=$ac_cv_prog_LEX |
be01d343 | 7519 | if test -n "$LEX"; then |
81ecdfbb RW |
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7521 | $as_echo "$LEX" >&6; } | |
be01d343 | 7522 | else |
81ecdfbb RW |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7524 | $as_echo "no" >&6; } | |
be01d343 PB |
7525 | fi |
7526 | ||
81ecdfbb | 7527 | |
c6b750e1 | 7528 | test -n "$LEX" && break |
be01d343 PB |
7529 | done |
7530 | test -n "$LEX" || LEX="$MISSING flex" | |
7531 | ||
7532 | case " $build_configdirs " in | |
7533 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7534 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7535 | esac | |
7536 | ||
7537 | for ac_prog in flex | |
7538 | do | |
c6b750e1 | 7539 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7540 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7542 | $as_echo_n "checking for $ac_word... " >&6; } | |
7543 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7544 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7545 | else |
7546 | if test -n "$FLEX"; then | |
7547 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7548 | else | |
c6b750e1 DJ |
7549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7550 | for as_dir in $PATH | |
7551 | do | |
7552 | IFS=$as_save_IFS | |
7553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7554 | for ac_exec_ext in '' $ac_executable_extensions; do |
7555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7556 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7558 | break 2 |
7559 | fi | |
7560 | done | |
81ecdfbb RW |
7561 | done |
7562 | IFS=$as_save_IFS | |
c6b750e1 | 7563 | |
be01d343 PB |
7564 | fi |
7565 | fi | |
c6b750e1 | 7566 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7567 | if test -n "$FLEX"; then |
81ecdfbb RW |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7569 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7570 | else |
81ecdfbb RW |
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7572 | $as_echo "no" >&6; } | |
be01d343 PB |
7573 | fi |
7574 | ||
81ecdfbb | 7575 | |
c6b750e1 | 7576 | test -n "$FLEX" && break |
be01d343 PB |
7577 | done |
7578 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7579 | ||
7580 | case " $build_configdirs " in | |
7581 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7582 | esac | |
7583 | ||
7584 | for ac_prog in makeinfo | |
7585 | do | |
c6b750e1 | 7586 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7587 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7589 | $as_echo_n "checking for $ac_word... " >&6; } | |
7590 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7591 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7592 | else |
7593 | if test -n "$MAKEINFO"; then | |
7594 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7595 | else | |
c6b750e1 DJ |
7596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7597 | for as_dir in $PATH | |
7598 | do | |
7599 | IFS=$as_save_IFS | |
7600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7601 | for ac_exec_ext in '' $ac_executable_extensions; do |
7602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7603 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7605 | break 2 |
7606 | fi | |
7607 | done | |
81ecdfbb RW |
7608 | done |
7609 | IFS=$as_save_IFS | |
c6b750e1 | 7610 | |
be01d343 PB |
7611 | fi |
7612 | fi | |
c6b750e1 | 7613 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7614 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7616 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7617 | else |
81ecdfbb RW |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7619 | $as_echo "no" >&6; } | |
be01d343 PB |
7620 | fi |
7621 | ||
81ecdfbb | 7622 | |
c6b750e1 | 7623 | test -n "$MAKEINFO" && break |
be01d343 PB |
7624 | done |
7625 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7626 | ||
7627 | case " $build_configdirs " in | |
7628 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7629 | *) | |
7630 | ||
10ad8ef3 | 7631 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7632 | # higher, else we use the "missing" dummy. |
7633 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7634 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7635 | : |
7636 | else | |
7637 | MAKEINFO="$MISSING makeinfo" | |
7638 | fi | |
7639 | ;; | |
7640 | ||
7641 | esac | |
a0da8069 | 7642 | |
be01d343 | 7643 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7644 | |
be01d343 PB |
7645 | for ac_prog in expect |
7646 | do | |
c6b750e1 | 7647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7648 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7650 | $as_echo_n "checking for $ac_word... " >&6; } | |
7651 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7652 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7653 | else |
7654 | if test -n "$EXPECT"; then | |
7655 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7656 | else | |
c6b750e1 DJ |
7657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7658 | for as_dir in $PATH | |
7659 | do | |
7660 | IFS=$as_save_IFS | |
7661 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7662 | for ac_exec_ext in '' $ac_executable_extensions; do |
7663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7664 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7666 | break 2 |
7667 | fi | |
7668 | done | |
81ecdfbb RW |
7669 | done |
7670 | IFS=$as_save_IFS | |
c6b750e1 | 7671 | |
be01d343 PB |
7672 | fi |
7673 | fi | |
c6b750e1 | 7674 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7675 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7677 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7678 | else |
81ecdfbb RW |
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7680 | $as_echo "no" >&6; } | |
be01d343 | 7681 | fi |
a0da8069 | 7682 | |
81ecdfbb | 7683 | |
c6b750e1 | 7684 | test -n "$EXPECT" && break |
be01d343 PB |
7685 | done |
7686 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7687 | |
be01d343 PB |
7688 | case " $configdirs " in |
7689 | *" expect "*) | |
7690 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7691 | ;; | |
7692 | esac | |
a0da8069 | 7693 | |
be01d343 PB |
7694 | for ac_prog in runtest |
7695 | do | |
c6b750e1 | 7696 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7697 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7699 | $as_echo_n "checking for $ac_word... " >&6; } | |
7700 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7701 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7702 | else |
7703 | if test -n "$RUNTEST"; then | |
7704 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7705 | else | |
c6b750e1 DJ |
7706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7707 | for as_dir in $PATH | |
7708 | do | |
7709 | IFS=$as_save_IFS | |
7710 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7711 | for ac_exec_ext in '' $ac_executable_extensions; do |
7712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7713 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 7714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7715 | break 2 |
7716 | fi | |
7717 | done | |
81ecdfbb RW |
7718 | done |
7719 | IFS=$as_save_IFS | |
c6b750e1 | 7720 | |
be01d343 PB |
7721 | fi |
7722 | fi | |
c6b750e1 | 7723 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 7724 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7726 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 7727 | else |
81ecdfbb RW |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7729 | $as_echo "no" >&6; } | |
be01d343 | 7730 | fi |
a0da8069 | 7731 | |
81ecdfbb | 7732 | |
c6b750e1 | 7733 | test -n "$RUNTEST" && break |
be01d343 PB |
7734 | done |
7735 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 7736 | |
be01d343 PB |
7737 | case " $configdirs " in |
7738 | *" dejagnu "*) | |
6b89cc21 | 7739 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
7740 | ;; |
7741 | esac | |
a0da8069 NN |
7742 | |
7743 | ||
a0da8069 | 7744 | # Host tools. |
859789af AC |
7745 | ncn_tool_prefix= |
7746 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7747 | ncn_target_tool_prefix= | |
7748 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7749 | ||
9a819804 AO |
7750 | |
7751 | ||
7752 | if test -n "$AR"; then | |
7753 | ac_cv_prog_AR=$AR | |
7754 | elif test -n "$ac_cv_prog_AR"; then | |
7755 | AR=$ac_cv_prog_AR | |
7756 | fi | |
7757 | ||
7758 | if test -n "$ac_cv_prog_AR"; then | |
7759 | for ncn_progname in ar; do | |
7760 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7761 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7763 | $as_echo_n "checking for $ac_word... " >&6; } | |
7764 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7765 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
7766 | else |
7767 | if test -n "$AR"; then | |
7768 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7769 | else | |
7770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7771 | for as_dir in $PATH | |
7772 | do | |
7773 | IFS=$as_save_IFS | |
7774 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7775 | for ac_exec_ext in '' $ac_executable_extensions; do |
7776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 7777 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
7779 | break 2 |
7780 | fi | |
7781 | done | |
81ecdfbb RW |
7782 | done |
7783 | IFS=$as_save_IFS | |
9a819804 AO |
7784 | |
7785 | fi | |
7786 | fi | |
7787 | AR=$ac_cv_prog_AR | |
7788 | if test -n "$AR"; then | |
81ecdfbb RW |
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7790 | $as_echo "$AR" >&6; } | |
9a819804 | 7791 | else |
81ecdfbb RW |
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7793 | $as_echo "no" >&6; } | |
9a819804 AO |
7794 | fi |
7795 | ||
81ecdfbb | 7796 | |
9a819804 AO |
7797 | done |
7798 | fi | |
7799 | ||
7800 | for ncn_progname in ar; do | |
05cbd757 PB |
7801 | if test -n "$ncn_tool_prefix"; then |
7802 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7803 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7805 | $as_echo_n "checking for $ac_word... " >&6; } | |
7806 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7807 | $as_echo_n "(cached) " >&6 | |
859789af AC |
7808 | else |
7809 | if test -n "$AR"; then | |
7810 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7811 | else | |
c6b750e1 DJ |
7812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7813 | for as_dir in $PATH | |
7814 | do | |
7815 | IFS=$as_save_IFS | |
7816 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7817 | for ac_exec_ext in '' $ac_executable_extensions; do |
7818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7819 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 7820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7821 | break 2 |
7822 | fi | |
7823 | done | |
81ecdfbb RW |
7824 | done |
7825 | IFS=$as_save_IFS | |
c6b750e1 | 7826 | |
859789af AC |
7827 | fi |
7828 | fi | |
c6b750e1 | 7829 | AR=$ac_cv_prog_AR |
859789af | 7830 | if test -n "$AR"; then |
81ecdfbb RW |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7832 | $as_echo "$AR" >&6; } | |
859789af | 7833 | else |
81ecdfbb RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7835 | $as_echo "no" >&6; } | |
859789af AC |
7836 | fi |
7837 | ||
81ecdfbb | 7838 | |
05cbd757 PB |
7839 | fi |
7840 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7841 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7842 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7844 | $as_echo_n "checking for $ac_word... " >&6; } | |
7845 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7846 | $as_echo_n "(cached) " >&6 | |
859789af | 7847 | else |
05cbd757 PB |
7848 | if test -n "$AR"; then |
7849 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 7850 | else |
c6b750e1 DJ |
7851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7852 | for as_dir in $PATH | |
7853 | do | |
7854 | IFS=$as_save_IFS | |
7855 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7856 | for ac_exec_ext in '' $ac_executable_extensions; do |
7857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7858 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7860 | break 2 |
7861 | fi | |
7862 | done | |
81ecdfbb RW |
7863 | done |
7864 | IFS=$as_save_IFS | |
c6b750e1 | 7865 | |
859789af AC |
7866 | fi |
7867 | fi | |
c6b750e1 | 7868 | AR=$ac_cv_prog_AR |
05cbd757 | 7869 | if test -n "$AR"; then |
81ecdfbb RW |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7871 | $as_echo "$AR" >&6; } | |
859789af | 7872 | else |
81ecdfbb RW |
7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7874 | $as_echo "no" >&6; } | |
859789af | 7875 | fi |
c6b750e1 | 7876 | |
81ecdfbb | 7877 | |
05cbd757 PB |
7878 | fi |
7879 | test -n "$ac_cv_prog_AR" && break | |
7880 | done | |
7881 | ||
7882 | if test -z "$ac_cv_prog_AR" ; then | |
7883 | set dummy ar | |
7884 | if test $build = $host ; then | |
7885 | AR="$2" | |
859789af | 7886 | else |
05cbd757 | 7887 | AR="${ncn_tool_prefix}$2" |
859789af | 7888 | fi |
859789af AC |
7889 | fi |
7890 | ||
9a819804 AO |
7891 | |
7892 | ||
7893 | if test -n "$AS"; then | |
7894 | ac_cv_prog_AS=$AS | |
7895 | elif test -n "$ac_cv_prog_AS"; then | |
7896 | AS=$ac_cv_prog_AS | |
7897 | fi | |
7898 | ||
7899 | if test -n "$ac_cv_prog_AS"; then | |
7900 | for ncn_progname in as; do | |
7901 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7902 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7904 | $as_echo_n "checking for $ac_word... " >&6; } | |
7905 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7906 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
7907 | else |
7908 | if test -n "$AS"; then | |
7909 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
7910 | else | |
7911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7912 | for as_dir in $PATH | |
7913 | do | |
7914 | IFS=$as_save_IFS | |
7915 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7916 | for ac_exec_ext in '' $ac_executable_extensions; do |
7917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 7918 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 7919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
7920 | break 2 |
7921 | fi | |
7922 | done | |
81ecdfbb RW |
7923 | done |
7924 | IFS=$as_save_IFS | |
9a819804 AO |
7925 | |
7926 | fi | |
7927 | fi | |
7928 | AS=$ac_cv_prog_AS | |
7929 | if test -n "$AS"; then | |
81ecdfbb RW |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
7931 | $as_echo "$AS" >&6; } | |
9a819804 | 7932 | else |
81ecdfbb RW |
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7934 | $as_echo "no" >&6; } | |
9a819804 AO |
7935 | fi |
7936 | ||
81ecdfbb | 7937 | |
9a819804 AO |
7938 | done |
7939 | fi | |
7940 | ||
7941 | for ncn_progname in as; do | |
05cbd757 PB |
7942 | if test -n "$ncn_tool_prefix"; then |
7943 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7944 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7946 | $as_echo_n "checking for $ac_word... " >&6; } | |
7947 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7948 | $as_echo_n "(cached) " >&6 | |
859789af AC |
7949 | else |
7950 | if test -n "$AS"; then | |
7951 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
7952 | else |
7953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7954 | for as_dir in $PATH | |
7955 | do | |
7956 | IFS=$as_save_IFS | |
7957 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7958 | for ac_exec_ext in '' $ac_executable_extensions; do |
7959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7960 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 7961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7962 | break 2 |
7963 | fi | |
7964 | done | |
81ecdfbb RW |
7965 | done |
7966 | IFS=$as_save_IFS | |
c6b750e1 | 7967 | |
859789af AC |
7968 | fi |
7969 | fi | |
c6b750e1 | 7970 | AS=$ac_cv_prog_AS |
859789af | 7971 | if test -n "$AS"; then |
81ecdfbb RW |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
7973 | $as_echo "$AS" >&6; } | |
859789af | 7974 | else |
81ecdfbb RW |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7976 | $as_echo "no" >&6; } | |
859789af AC |
7977 | fi |
7978 | ||
81ecdfbb | 7979 | |
05cbd757 PB |
7980 | fi |
7981 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
7982 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7983 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7985 | $as_echo_n "checking for $ac_word... " >&6; } | |
7986 | if test "${ac_cv_prog_AS+set}" = set; then : | |
7987 | $as_echo_n "(cached) " >&6 | |
859789af | 7988 | else |
05cbd757 PB |
7989 | if test -n "$AS"; then |
7990 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 7991 | else |
c6b750e1 DJ |
7992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7993 | for as_dir in $PATH | |
7994 | do | |
7995 | IFS=$as_save_IFS | |
7996 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7997 | for ac_exec_ext in '' $ac_executable_extensions; do |
7998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7999 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8001 | break 2 |
8002 | fi | |
8003 | done | |
81ecdfbb RW |
8004 | done |
8005 | IFS=$as_save_IFS | |
c6b750e1 | 8006 | |
859789af AC |
8007 | fi |
8008 | fi | |
c6b750e1 | 8009 | AS=$ac_cv_prog_AS |
05cbd757 | 8010 | if test -n "$AS"; then |
81ecdfbb RW |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8012 | $as_echo "$AS" >&6; } | |
859789af | 8013 | else |
81ecdfbb RW |
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8015 | $as_echo "no" >&6; } | |
859789af | 8016 | fi |
c6b750e1 | 8017 | |
81ecdfbb | 8018 | |
05cbd757 PB |
8019 | fi |
8020 | test -n "$ac_cv_prog_AS" && break | |
8021 | done | |
8022 | ||
8023 | if test -z "$ac_cv_prog_AS" ; then | |
8024 | set dummy as | |
8025 | if test $build = $host ; then | |
8026 | AS="$2" | |
859789af | 8027 | else |
05cbd757 | 8028 | AS="${ncn_tool_prefix}$2" |
859789af | 8029 | fi |
859789af AC |
8030 | fi |
8031 | ||
9a819804 AO |
8032 | |
8033 | ||
8034 | if test -n "$DLLTOOL"; then | |
8035 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8036 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8037 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8038 | fi | |
8039 | ||
8040 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8041 | for ncn_progname in dlltool; do | |
8042 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8043 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8045 | $as_echo_n "checking for $ac_word... " >&6; } | |
8046 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8047 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8048 | else |
8049 | if test -n "$DLLTOOL"; then | |
8050 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8051 | else | |
8052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8053 | for as_dir in $PATH | |
8054 | do | |
8055 | IFS=$as_save_IFS | |
8056 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8057 | for ac_exec_ext in '' $ac_executable_extensions; do |
8058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8059 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8061 | break 2 |
8062 | fi | |
8063 | done | |
81ecdfbb RW |
8064 | done |
8065 | IFS=$as_save_IFS | |
9a819804 AO |
8066 | |
8067 | fi | |
8068 | fi | |
8069 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8070 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8072 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8073 | else |
81ecdfbb RW |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8075 | $as_echo "no" >&6; } | |
9a819804 AO |
8076 | fi |
8077 | ||
81ecdfbb | 8078 | |
9a819804 AO |
8079 | done |
8080 | fi | |
8081 | ||
8082 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8083 | if test -n "$ncn_tool_prefix"; then |
8084 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8085 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8087 | $as_echo_n "checking for $ac_word... " >&6; } | |
8088 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8089 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8090 | else |
8091 | if test -n "$DLLTOOL"; then | |
8092 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8093 | else | |
c6b750e1 DJ |
8094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8095 | for as_dir in $PATH | |
8096 | do | |
8097 | IFS=$as_save_IFS | |
8098 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8099 | for ac_exec_ext in '' $ac_executable_extensions; do |
8100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8101 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8103 | break 2 |
8104 | fi | |
8105 | done | |
81ecdfbb RW |
8106 | done |
8107 | IFS=$as_save_IFS | |
c6b750e1 | 8108 | |
859789af AC |
8109 | fi |
8110 | fi | |
c6b750e1 | 8111 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8112 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8114 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8115 | else |
81ecdfbb RW |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8117 | $as_echo "no" >&6; } | |
859789af AC |
8118 | fi |
8119 | ||
81ecdfbb | 8120 | |
05cbd757 PB |
8121 | fi |
8122 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8123 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8124 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8126 | $as_echo_n "checking for $ac_word... " >&6; } | |
8127 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8128 | $as_echo_n "(cached) " >&6 | |
859789af | 8129 | else |
05cbd757 PB |
8130 | if test -n "$DLLTOOL"; then |
8131 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8132 | else |
c6b750e1 DJ |
8133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8134 | for as_dir in $PATH | |
8135 | do | |
8136 | IFS=$as_save_IFS | |
8137 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8138 | for ac_exec_ext in '' $ac_executable_extensions; do |
8139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8140 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8142 | break 2 |
8143 | fi | |
8144 | done | |
81ecdfbb RW |
8145 | done |
8146 | IFS=$as_save_IFS | |
c6b750e1 | 8147 | |
859789af AC |
8148 | fi |
8149 | fi | |
c6b750e1 | 8150 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8151 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8153 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8154 | else |
81ecdfbb RW |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8156 | $as_echo "no" >&6; } | |
859789af | 8157 | fi |
c6b750e1 | 8158 | |
81ecdfbb | 8159 | |
05cbd757 PB |
8160 | fi |
8161 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8162 | done | |
8163 | ||
8164 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8165 | set dummy dlltool | |
8166 | if test $build = $host ; then | |
8167 | DLLTOOL="$2" | |
859789af | 8168 | else |
05cbd757 | 8169 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8170 | fi |
859789af AC |
8171 | fi |
8172 | ||
9a819804 AO |
8173 | |
8174 | ||
8175 | if test -n "$LD"; then | |
8176 | ac_cv_prog_LD=$LD | |
8177 | elif test -n "$ac_cv_prog_LD"; then | |
8178 | LD=$ac_cv_prog_LD | |
8179 | fi | |
8180 | ||
8181 | if test -n "$ac_cv_prog_LD"; then | |
8182 | for ncn_progname in ld; do | |
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_LD+set}" = set; then : | |
8188 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8189 | else |
8190 | if test -n "$LD"; then | |
8191 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8192 | else | |
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 | |
9a819804 | 8200 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8202 | break 2 |
8203 | fi | |
8204 | done | |
81ecdfbb RW |
8205 | done |
8206 | IFS=$as_save_IFS | |
9a819804 AO |
8207 | |
8208 | fi | |
8209 | fi | |
8210 | LD=$ac_cv_prog_LD | |
8211 | if test -n "$LD"; then | |
81ecdfbb RW |
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8213 | $as_echo "$LD" >&6; } | |
9a819804 | 8214 | else |
81ecdfbb RW |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8216 | $as_echo "no" >&6; } | |
9a819804 AO |
8217 | fi |
8218 | ||
81ecdfbb | 8219 | |
9a819804 AO |
8220 | done |
8221 | fi | |
8222 | ||
8223 | for ncn_progname in ld; do | |
05cbd757 PB |
8224 | if test -n "$ncn_tool_prefix"; then |
8225 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8226 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8228 | $as_echo_n "checking for $ac_word... " >&6; } | |
8229 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8230 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8231 | else |
8232 | if test -n "$LD"; then | |
8233 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8234 | else | |
c6b750e1 DJ |
8235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8236 | for as_dir in $PATH | |
8237 | do | |
8238 | IFS=$as_save_IFS | |
8239 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8240 | for ac_exec_ext in '' $ac_executable_extensions; do |
8241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8242 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8244 | break 2 |
8245 | fi | |
8246 | done | |
81ecdfbb RW |
8247 | done |
8248 | IFS=$as_save_IFS | |
c6b750e1 | 8249 | |
859789af AC |
8250 | fi |
8251 | fi | |
c6b750e1 | 8252 | LD=$ac_cv_prog_LD |
859789af | 8253 | if test -n "$LD"; then |
81ecdfbb RW |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8255 | $as_echo "$LD" >&6; } | |
859789af | 8256 | else |
81ecdfbb RW |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8258 | $as_echo "no" >&6; } | |
859789af AC |
8259 | fi |
8260 | ||
81ecdfbb | 8261 | |
05cbd757 PB |
8262 | fi |
8263 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8264 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8265 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8267 | $as_echo_n "checking for $ac_word... " >&6; } | |
8268 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8269 | $as_echo_n "(cached) " >&6 | |
859789af | 8270 | else |
05cbd757 PB |
8271 | if test -n "$LD"; then |
8272 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8273 | else |
c6b750e1 DJ |
8274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8275 | for as_dir in $PATH | |
8276 | do | |
8277 | IFS=$as_save_IFS | |
8278 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8279 | for ac_exec_ext in '' $ac_executable_extensions; do |
8280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8281 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8283 | break 2 |
8284 | fi | |
8285 | done | |
81ecdfbb RW |
8286 | done |
8287 | IFS=$as_save_IFS | |
c6b750e1 | 8288 | |
859789af AC |
8289 | fi |
8290 | fi | |
c6b750e1 | 8291 | LD=$ac_cv_prog_LD |
05cbd757 | 8292 | if test -n "$LD"; then |
81ecdfbb RW |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8294 | $as_echo "$LD" >&6; } | |
859789af | 8295 | else |
81ecdfbb RW |
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8297 | $as_echo "no" >&6; } | |
859789af | 8298 | fi |
c6b750e1 | 8299 | |
81ecdfbb | 8300 | |
05cbd757 PB |
8301 | fi |
8302 | test -n "$ac_cv_prog_LD" && break | |
8303 | done | |
8304 | ||
8305 | if test -z "$ac_cv_prog_LD" ; then | |
8306 | set dummy ld | |
8307 | if test $build = $host ; then | |
8308 | LD="$2" | |
859789af | 8309 | else |
05cbd757 | 8310 | LD="${ncn_tool_prefix}$2" |
859789af | 8311 | fi |
859789af AC |
8312 | fi |
8313 | ||
9a819804 AO |
8314 | |
8315 | ||
8316 | if test -n "$LIPO"; then | |
8317 | ac_cv_prog_LIPO=$LIPO | |
8318 | elif test -n "$ac_cv_prog_LIPO"; then | |
8319 | LIPO=$ac_cv_prog_LIPO | |
8320 | fi | |
8321 | ||
8322 | if test -n "$ac_cv_prog_LIPO"; then | |
8323 | for ncn_progname in lipo; do | |
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_LIPO+set}" = set; then : | |
8329 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8330 | else |
8331 | if test -n "$LIPO"; then | |
8332 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8333 | else | |
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 | |
9a819804 | 8341 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8343 | break 2 |
8344 | fi | |
8345 | done | |
81ecdfbb RW |
8346 | done |
8347 | IFS=$as_save_IFS | |
9a819804 AO |
8348 | |
8349 | fi | |
8350 | fi | |
8351 | LIPO=$ac_cv_prog_LIPO | |
8352 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8354 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8355 | else |
81ecdfbb RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8357 | $as_echo "no" >&6; } | |
9a819804 AO |
8358 | fi |
8359 | ||
81ecdfbb | 8360 | |
9a819804 AO |
8361 | done |
8362 | fi | |
8363 | ||
8364 | for ncn_progname in lipo; do | |
be01d343 PB |
8365 | if test -n "$ncn_tool_prefix"; then |
8366 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8367 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8369 | $as_echo_n "checking for $ac_word... " >&6; } | |
8370 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8371 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8372 | else |
8373 | if test -n "$LIPO"; then | |
8374 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8375 | else | |
c6b750e1 DJ |
8376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8377 | for as_dir in $PATH | |
8378 | do | |
8379 | IFS=$as_save_IFS | |
8380 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8381 | for ac_exec_ext in '' $ac_executable_extensions; do |
8382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8383 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8385 | break 2 |
8386 | fi | |
8387 | done | |
81ecdfbb RW |
8388 | done |
8389 | IFS=$as_save_IFS | |
c6b750e1 | 8390 | |
be01d343 PB |
8391 | fi |
8392 | fi | |
c6b750e1 | 8393 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8394 | if test -n "$LIPO"; then |
81ecdfbb RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8396 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8397 | else |
81ecdfbb RW |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8399 | $as_echo "no" >&6; } | |
be01d343 PB |
8400 | fi |
8401 | ||
81ecdfbb | 8402 | |
be01d343 PB |
8403 | fi |
8404 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8405 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8406 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8408 | $as_echo_n "checking for $ac_word... " >&6; } | |
8409 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8410 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8411 | else |
8412 | if test -n "$LIPO"; then | |
8413 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8414 | else | |
c6b750e1 DJ |
8415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8416 | for as_dir in $PATH | |
8417 | do | |
8418 | IFS=$as_save_IFS | |
8419 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8420 | for ac_exec_ext in '' $ac_executable_extensions; do |
8421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8422 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8424 | break 2 |
8425 | fi | |
8426 | done | |
81ecdfbb RW |
8427 | done |
8428 | IFS=$as_save_IFS | |
c6b750e1 | 8429 | |
be01d343 PB |
8430 | fi |
8431 | fi | |
c6b750e1 | 8432 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8433 | if test -n "$LIPO"; then |
81ecdfbb RW |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8435 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8436 | else |
81ecdfbb RW |
8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8438 | $as_echo "no" >&6; } | |
be01d343 | 8439 | fi |
c6b750e1 | 8440 | |
81ecdfbb | 8441 | |
be01d343 PB |
8442 | fi |
8443 | test -n "$ac_cv_prog_LIPO" && break | |
8444 | done | |
8445 | ||
8446 | if test -z "$ac_cv_prog_LIPO" ; then | |
8447 | set dummy lipo | |
8448 | if test $build = $host ; then | |
8449 | LIPO="$2" | |
8450 | else | |
8451 | LIPO="${ncn_tool_prefix}$2" | |
8452 | fi | |
8453 | fi | |
8454 | ||
9a819804 AO |
8455 | |
8456 | ||
8457 | if test -n "$NM"; then | |
8458 | ac_cv_prog_NM=$NM | |
8459 | elif test -n "$ac_cv_prog_NM"; then | |
8460 | NM=$ac_cv_prog_NM | |
8461 | fi | |
8462 | ||
8463 | if test -n "$ac_cv_prog_NM"; then | |
8464 | for ncn_progname in nm; do | |
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_NM+set}" = set; then : | |
8470 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8471 | else |
8472 | if test -n "$NM"; then | |
8473 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
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 | |
9a819804 | 8482 | ac_cv_prog_NM="${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 | NM=$ac_cv_prog_NM |
859789af | 8493 | if test -n "$NM"; then |
81ecdfbb RW |
8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8495 | $as_echo "$NM" >&6; } | |
859789af | 8496 | else |
81ecdfbb RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8498 | $as_echo "no" >&6; } | |
859789af AC |
8499 | fi |
8500 | ||
81ecdfbb | 8501 | |
9a819804 AO |
8502 | done |
8503 | fi | |
8504 | ||
8505 | for ncn_progname in nm; do | |
8506 | if test -n "$ncn_tool_prefix"; then | |
8507 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8508 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8510 | $as_echo_n "checking for $ac_word... " >&6; } | |
8511 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8512 | $as_echo_n "(cached) " >&6 | |
859789af | 8513 | else |
05cbd757 PB |
8514 | if test -n "$NM"; then |
8515 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8516 | else |
c6b750e1 DJ |
8517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8518 | for as_dir in $PATH | |
8519 | do | |
8520 | IFS=$as_save_IFS | |
8521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8522 | for ac_exec_ext in '' $ac_executable_extensions; do |
8523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8524 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8526 | break 2 |
8527 | fi | |
8528 | done | |
81ecdfbb RW |
8529 | done |
8530 | IFS=$as_save_IFS | |
c6b750e1 | 8531 | |
859789af AC |
8532 | fi |
8533 | fi | |
c6b750e1 | 8534 | NM=$ac_cv_prog_NM |
05cbd757 | 8535 | if test -n "$NM"; then |
81ecdfbb RW |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8537 | $as_echo "$NM" >&6; } | |
859789af | 8538 | else |
81ecdfbb RW |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8540 | $as_echo "no" >&6; } | |
859789af | 8541 | fi |
c6b750e1 | 8542 | |
81ecdfbb | 8543 | |
05cbd757 | 8544 | fi |
9a819804 AO |
8545 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8546 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8547 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8549 | $as_echo_n "checking for $ac_word... " >&6; } | |
8550 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8551 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8552 | else |
8553 | if test -n "$NM"; then | |
8554 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8555 | else | |
8556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8557 | for as_dir in $PATH | |
8558 | do | |
8559 | IFS=$as_save_IFS | |
8560 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8561 | for ac_exec_ext in '' $ac_executable_extensions; do |
8562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8563 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8565 | break 2 |
8566 | fi | |
8567 | done | |
81ecdfbb RW |
8568 | done |
8569 | IFS=$as_save_IFS | |
9a819804 AO |
8570 | |
8571 | fi | |
8572 | fi | |
8573 | NM=$ac_cv_prog_NM | |
8574 | if test -n "$NM"; then | |
81ecdfbb RW |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8576 | $as_echo "$NM" >&6; } | |
9a819804 | 8577 | else |
81ecdfbb RW |
8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8579 | $as_echo "no" >&6; } | |
9a819804 AO |
8580 | fi |
8581 | ||
81ecdfbb | 8582 | |
9a819804 AO |
8583 | fi |
8584 | test -n "$ac_cv_prog_NM" && break | |
8585 | done | |
8586 | ||
8587 | if test -z "$ac_cv_prog_NM" ; then | |
8588 | set dummy nm | |
8589 | if test $build = $host ; then | |
8590 | NM="$2" | |
8591 | else | |
8592 | NM="${ncn_tool_prefix}$2" | |
8593 | fi | |
8594 | fi | |
8595 | ||
8596 | ||
8597 | ||
8598 | if test -n "$RANLIB"; then | |
8599 | ac_cv_prog_RANLIB=$RANLIB | |
8600 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8601 | RANLIB=$ac_cv_prog_RANLIB | |
8602 | fi | |
8603 | ||
8604 | if test -n "$ac_cv_prog_RANLIB"; then | |
8605 | for ncn_progname in ranlib; do | |
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_RANLIB+set}" = set; then : | |
8611 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8612 | else |
8613 | if test -n "$RANLIB"; then | |
8614 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8615 | else | |
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 | |
9a819804 | 8623 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8625 | break 2 |
8626 | fi | |
8627 | done | |
81ecdfbb RW |
8628 | done |
8629 | IFS=$as_save_IFS | |
9a819804 AO |
8630 | |
8631 | fi | |
8632 | fi | |
8633 | RANLIB=$ac_cv_prog_RANLIB | |
8634 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8636 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8637 | else |
81ecdfbb RW |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8639 | $as_echo "no" >&6; } | |
9a819804 AO |
8640 | fi |
8641 | ||
81ecdfbb | 8642 | |
9a819804 AO |
8643 | done |
8644 | fi | |
859789af | 8645 | |
9a819804 | 8646 | for ncn_progname in ranlib; do |
05cbd757 PB |
8647 | if test -n "$ncn_tool_prefix"; then |
8648 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8649 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8651 | $as_echo_n "checking for $ac_word... " >&6; } | |
8652 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8653 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8654 | else |
8655 | if test -n "$RANLIB"; then | |
8656 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8657 | else | |
c6b750e1 DJ |
8658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8659 | for as_dir in $PATH | |
8660 | do | |
8661 | IFS=$as_save_IFS | |
8662 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8663 | for ac_exec_ext in '' $ac_executable_extensions; do |
8664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8665 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8667 | break 2 |
8668 | fi | |
8669 | done | |
81ecdfbb RW |
8670 | done |
8671 | IFS=$as_save_IFS | |
c6b750e1 | 8672 | |
859789af AC |
8673 | fi |
8674 | fi | |
c6b750e1 | 8675 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8676 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8678 | $as_echo "$RANLIB" >&6; } | |
859789af | 8679 | else |
81ecdfbb RW |
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8681 | $as_echo "no" >&6; } | |
859789af AC |
8682 | fi |
8683 | ||
81ecdfbb | 8684 | |
05cbd757 PB |
8685 | fi |
8686 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8687 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8688 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8690 | $as_echo_n "checking for $ac_word... " >&6; } | |
8691 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8692 | $as_echo_n "(cached) " >&6 | |
859789af | 8693 | else |
05cbd757 PB |
8694 | if test -n "$RANLIB"; then |
8695 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8696 | else |
c6b750e1 DJ |
8697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8698 | for as_dir in $PATH | |
8699 | do | |
8700 | IFS=$as_save_IFS | |
8701 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8702 | for ac_exec_ext in '' $ac_executable_extensions; do |
8703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8704 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8706 | break 2 |
8707 | fi | |
8708 | done | |
81ecdfbb RW |
8709 | done |
8710 | IFS=$as_save_IFS | |
c6b750e1 | 8711 | |
859789af AC |
8712 | fi |
8713 | fi | |
c6b750e1 | 8714 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 8715 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8717 | $as_echo "$RANLIB" >&6; } | |
859789af | 8718 | else |
81ecdfbb RW |
8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8720 | $as_echo "no" >&6; } | |
859789af | 8721 | fi |
c6b750e1 | 8722 | |
81ecdfbb | 8723 | |
859789af | 8724 | fi |
05cbd757 PB |
8725 | test -n "$ac_cv_prog_RANLIB" && break |
8726 | done | |
8727 | ||
8728 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 8729 | RANLIB="true" |
859789af AC |
8730 | fi |
8731 | ||
9a819804 AO |
8732 | |
8733 | ||
8734 | if test -n "$STRIP"; then | |
8735 | ac_cv_prog_STRIP=$STRIP | |
8736 | elif test -n "$ac_cv_prog_STRIP"; then | |
8737 | STRIP=$ac_cv_prog_STRIP | |
8738 | fi | |
8739 | ||
8740 | if test -n "$ac_cv_prog_STRIP"; then | |
8741 | for ncn_progname in strip; do | |
8742 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8743 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8745 | $as_echo_n "checking for $ac_word... " >&6; } | |
8746 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8747 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8748 | else |
8749 | if test -n "$STRIP"; then | |
8750 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8751 | else | |
8752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8753 | for as_dir in $PATH | |
8754 | do | |
8755 | IFS=$as_save_IFS | |
8756 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8757 | for ac_exec_ext in '' $ac_executable_extensions; do |
8758 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8759 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8761 | break 2 |
8762 | fi | |
8763 | done | |
81ecdfbb RW |
8764 | done |
8765 | IFS=$as_save_IFS | |
9a819804 AO |
8766 | |
8767 | fi | |
8768 | fi | |
8769 | STRIP=$ac_cv_prog_STRIP | |
8770 | if test -n "$STRIP"; then | |
81ecdfbb RW |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8772 | $as_echo "$STRIP" >&6; } | |
9a819804 | 8773 | else |
81ecdfbb RW |
8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8775 | $as_echo "no" >&6; } | |
9a819804 AO |
8776 | fi |
8777 | ||
81ecdfbb | 8778 | |
9a819804 AO |
8779 | done |
8780 | fi | |
8781 | ||
8782 | for ncn_progname in strip; do | |
be01d343 PB |
8783 | if test -n "$ncn_tool_prefix"; then |
8784 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8785 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8787 | $as_echo_n "checking for $ac_word... " >&6; } | |
8788 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8789 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8790 | else |
8791 | if test -n "$STRIP"; then | |
8792 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8793 | else | |
c6b750e1 DJ |
8794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8795 | for as_dir in $PATH | |
8796 | do | |
8797 | IFS=$as_save_IFS | |
8798 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8799 | for ac_exec_ext in '' $ac_executable_extensions; do |
8800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8801 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8803 | break 2 |
8804 | fi | |
8805 | done | |
81ecdfbb RW |
8806 | done |
8807 | IFS=$as_save_IFS | |
c6b750e1 | 8808 | |
be01d343 PB |
8809 | fi |
8810 | fi | |
c6b750e1 | 8811 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8812 | if test -n "$STRIP"; then |
81ecdfbb RW |
8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8814 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8815 | else |
81ecdfbb RW |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8817 | $as_echo "no" >&6; } | |
be01d343 PB |
8818 | fi |
8819 | ||
81ecdfbb | 8820 | |
be01d343 PB |
8821 | fi |
8822 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8823 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8824 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8826 | $as_echo_n "checking for $ac_word... " >&6; } | |
8827 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8828 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8829 | else |
8830 | if test -n "$STRIP"; then | |
8831 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8832 | else | |
c6b750e1 DJ |
8833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8834 | for as_dir in $PATH | |
8835 | do | |
8836 | IFS=$as_save_IFS | |
8837 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8838 | for ac_exec_ext in '' $ac_executable_extensions; do |
8839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8840 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8842 | break 2 |
8843 | fi | |
8844 | done | |
81ecdfbb RW |
8845 | done |
8846 | IFS=$as_save_IFS | |
c6b750e1 | 8847 | |
be01d343 PB |
8848 | fi |
8849 | fi | |
c6b750e1 | 8850 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8851 | if test -n "$STRIP"; then |
81ecdfbb RW |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8853 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8854 | else |
81ecdfbb RW |
8855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8856 | $as_echo "no" >&6; } | |
be01d343 | 8857 | fi |
c6b750e1 | 8858 | |
81ecdfbb | 8859 | |
be01d343 PB |
8860 | fi |
8861 | test -n "$ac_cv_prog_STRIP" && break | |
8862 | done | |
8863 | ||
8864 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 8865 | STRIP="true" |
be01d343 PB |
8866 | fi |
8867 | ||
9a819804 AO |
8868 | |
8869 | ||
8870 | if test -n "$WINDRES"; then | |
8871 | ac_cv_prog_WINDRES=$WINDRES | |
8872 | elif test -n "$ac_cv_prog_WINDRES"; then | |
8873 | WINDRES=$ac_cv_prog_WINDRES | |
8874 | fi | |
8875 | ||
8876 | if test -n "$ac_cv_prog_WINDRES"; then | |
8877 | for ncn_progname in windres; do | |
8878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8879 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8881 | $as_echo_n "checking for $ac_word... " >&6; } | |
8882 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8883 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8884 | else |
8885 | if test -n "$WINDRES"; then | |
8886 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8887 | else | |
8888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8889 | for as_dir in $PATH | |
8890 | do | |
8891 | IFS=$as_save_IFS | |
8892 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8893 | for ac_exec_ext in '' $ac_executable_extensions; do |
8894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8895 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 8896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8897 | break 2 |
8898 | fi | |
8899 | done | |
81ecdfbb RW |
8900 | done |
8901 | IFS=$as_save_IFS | |
9a819804 AO |
8902 | |
8903 | fi | |
8904 | fi | |
8905 | WINDRES=$ac_cv_prog_WINDRES | |
8906 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8908 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 8909 | else |
81ecdfbb RW |
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8911 | $as_echo "no" >&6; } | |
9a819804 AO |
8912 | fi |
8913 | ||
81ecdfbb | 8914 | |
9a819804 AO |
8915 | done |
8916 | fi | |
8917 | ||
8918 | for ncn_progname in windres; do | |
05cbd757 PB |
8919 | if test -n "$ncn_tool_prefix"; then |
8920 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8921 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8923 | $as_echo_n "checking for $ac_word... " >&6; } | |
8924 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8925 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8926 | else |
8927 | if test -n "$WINDRES"; then | |
8928 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8929 | else | |
c6b750e1 DJ |
8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8931 | for as_dir in $PATH | |
8932 | do | |
8933 | IFS=$as_save_IFS | |
8934 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8935 | for ac_exec_ext in '' $ac_executable_extensions; do |
8936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8937 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8939 | break 2 |
8940 | fi | |
8941 | done | |
81ecdfbb RW |
8942 | done |
8943 | IFS=$as_save_IFS | |
c6b750e1 | 8944 | |
859789af AC |
8945 | fi |
8946 | fi | |
c6b750e1 | 8947 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 8948 | if test -n "$WINDRES"; then |
81ecdfbb RW |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8950 | $as_echo "$WINDRES" >&6; } | |
859789af | 8951 | else |
81ecdfbb RW |
8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8953 | $as_echo "no" >&6; } | |
859789af AC |
8954 | fi |
8955 | ||
81ecdfbb | 8956 | |
05cbd757 PB |
8957 | fi |
8958 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
8959 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8960 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8962 | $as_echo_n "checking for $ac_word... " >&6; } | |
8963 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
8964 | $as_echo_n "(cached) " >&6 | |
859789af | 8965 | else |
05cbd757 PB |
8966 | if test -n "$WINDRES"; then |
8967 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 8968 | else |
c6b750e1 DJ |
8969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8970 | for as_dir in $PATH | |
8971 | do | |
8972 | IFS=$as_save_IFS | |
8973 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8974 | for ac_exec_ext in '' $ac_executable_extensions; do |
8975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8976 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 8977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8978 | break 2 |
8979 | fi | |
8980 | done | |
81ecdfbb RW |
8981 | done |
8982 | IFS=$as_save_IFS | |
c6b750e1 | 8983 | |
859789af AC |
8984 | fi |
8985 | fi | |
c6b750e1 | 8986 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 8987 | if test -n "$WINDRES"; then |
81ecdfbb RW |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
8989 | $as_echo "$WINDRES" >&6; } | |
859789af | 8990 | else |
81ecdfbb RW |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
859789af | 8993 | fi |
c6b750e1 | 8994 | |
81ecdfbb | 8995 | |
05cbd757 PB |
8996 | fi |
8997 | test -n "$ac_cv_prog_WINDRES" && break | |
8998 | done | |
8999 | ||
9000 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9001 | set dummy windres | |
9002 | if test $build = $host ; then | |
9003 | WINDRES="$2" | |
859789af | 9004 | else |
05cbd757 | 9005 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9006 | fi |
859789af AC |
9007 | fi |
9008 | ||
9a819804 AO |
9009 | |
9010 | ||
0c24b341 NC |
9011 | if test -n "$WINDMC"; then |
9012 | ac_cv_prog_WINDMC=$WINDMC | |
9013 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9014 | WINDMC=$ac_cv_prog_WINDMC | |
9015 | fi | |
9016 | ||
9017 | if test -n "$ac_cv_prog_WINDMC"; then | |
9018 | for ncn_progname in windmc; do | |
9019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9020 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9022 | $as_echo_n "checking for $ac_word... " >&6; } | |
9023 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9024 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9025 | else |
9026 | if test -n "$WINDMC"; then | |
9027 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9028 | else | |
9029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9030 | for as_dir in $PATH | |
9031 | do | |
9032 | IFS=$as_save_IFS | |
9033 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9034 | for ac_exec_ext in '' $ac_executable_extensions; do |
9035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9036 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9038 | break 2 |
9039 | fi | |
9040 | done | |
81ecdfbb RW |
9041 | done |
9042 | IFS=$as_save_IFS | |
0c24b341 NC |
9043 | |
9044 | fi | |
9045 | fi | |
9046 | WINDMC=$ac_cv_prog_WINDMC | |
9047 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9049 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9050 | else |
81ecdfbb RW |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9052 | $as_echo "no" >&6; } | |
0c24b341 NC |
9053 | fi |
9054 | ||
81ecdfbb | 9055 | |
0c24b341 NC |
9056 | done |
9057 | fi | |
9058 | ||
9059 | for ncn_progname in windmc; do | |
9060 | if test -n "$ncn_tool_prefix"; then | |
9061 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9062 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9064 | $as_echo_n "checking for $ac_word... " >&6; } | |
9065 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9066 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9067 | else |
9068 | if test -n "$WINDMC"; then | |
9069 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9070 | else | |
9071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9072 | for as_dir in $PATH | |
9073 | do | |
9074 | IFS=$as_save_IFS | |
9075 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9076 | for ac_exec_ext in '' $ac_executable_extensions; do |
9077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9078 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9080 | break 2 |
9081 | fi | |
9082 | done | |
81ecdfbb RW |
9083 | done |
9084 | IFS=$as_save_IFS | |
0c24b341 NC |
9085 | |
9086 | fi | |
9087 | fi | |
9088 | WINDMC=$ac_cv_prog_WINDMC | |
9089 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9091 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9092 | else |
81ecdfbb RW |
9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9094 | $as_echo "no" >&6; } | |
0c24b341 NC |
9095 | fi |
9096 | ||
81ecdfbb | 9097 | |
0c24b341 NC |
9098 | fi |
9099 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9101 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9103 | $as_echo_n "checking for $ac_word... " >&6; } | |
9104 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9105 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9106 | else |
9107 | if test -n "$WINDMC"; then | |
9108 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9109 | else | |
9110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9111 | for as_dir in $PATH | |
9112 | do | |
9113 | IFS=$as_save_IFS | |
9114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9115 | for ac_exec_ext in '' $ac_executable_extensions; do |
9116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9117 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9119 | break 2 |
9120 | fi | |
9121 | done | |
81ecdfbb RW |
9122 | done |
9123 | IFS=$as_save_IFS | |
0c24b341 NC |
9124 | |
9125 | fi | |
9126 | fi | |
9127 | WINDMC=$ac_cv_prog_WINDMC | |
9128 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9130 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9131 | else |
81ecdfbb RW |
9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9133 | $as_echo "no" >&6; } | |
0c24b341 NC |
9134 | fi |
9135 | ||
81ecdfbb | 9136 | |
0c24b341 NC |
9137 | fi |
9138 | test -n "$ac_cv_prog_WINDMC" && break | |
9139 | done | |
9140 | ||
9141 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9142 | set dummy windmc | |
9143 | if test $build = $host ; then | |
9144 | WINDMC="$2" | |
9145 | else | |
9146 | WINDMC="${ncn_tool_prefix}$2" | |
9147 | fi | |
9148 | fi | |
9149 | ||
9150 | ||
9151 | ||
9a819804 AO |
9152 | if test -n "$OBJCOPY"; then |
9153 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9154 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9155 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9156 | fi | |
9157 | ||
9158 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9159 | for ncn_progname in objcopy; do | |
9160 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9161 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9163 | $as_echo_n "checking for $ac_word... " >&6; } | |
9164 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9165 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9166 | else |
9167 | if test -n "$OBJCOPY"; then | |
9168 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9169 | else | |
9170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9171 | for as_dir in $PATH | |
9172 | do | |
9173 | IFS=$as_save_IFS | |
9174 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9175 | for ac_exec_ext in '' $ac_executable_extensions; do |
9176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9177 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9179 | break 2 |
9180 | fi | |
9181 | done | |
81ecdfbb RW |
9182 | done |
9183 | IFS=$as_save_IFS | |
9a819804 AO |
9184 | |
9185 | fi | |
9186 | fi | |
9187 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9188 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9190 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9191 | else |
81ecdfbb RW |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9193 | $as_echo "no" >&6; } | |
9a819804 AO |
9194 | fi |
9195 | ||
81ecdfbb | 9196 | |
9a819804 AO |
9197 | done |
9198 | fi | |
9199 | ||
9200 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9201 | if test -n "$ncn_tool_prefix"; then |
9202 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9203 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9205 | $as_echo_n "checking for $ac_word... " >&6; } | |
9206 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9207 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9208 | else |
9209 | if test -n "$OBJCOPY"; then | |
9210 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9211 | else | |
c6b750e1 DJ |
9212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9213 | for as_dir in $PATH | |
9214 | do | |
9215 | IFS=$as_save_IFS | |
9216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9217 | for ac_exec_ext in '' $ac_executable_extensions; do |
9218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9219 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9221 | break 2 |
9222 | fi | |
9223 | done | |
81ecdfbb RW |
9224 | done |
9225 | IFS=$as_save_IFS | |
c6b750e1 | 9226 | |
859789af AC |
9227 | fi |
9228 | fi | |
c6b750e1 | 9229 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9230 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9232 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9233 | else |
81ecdfbb RW |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9235 | $as_echo "no" >&6; } | |
859789af AC |
9236 | fi |
9237 | ||
81ecdfbb | 9238 | |
05cbd757 PB |
9239 | fi |
9240 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9242 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9244 | $as_echo_n "checking for $ac_word... " >&6; } | |
9245 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9246 | $as_echo_n "(cached) " >&6 | |
859789af | 9247 | else |
05cbd757 PB |
9248 | if test -n "$OBJCOPY"; then |
9249 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9250 | else |
c6b750e1 DJ |
9251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9252 | for as_dir in $PATH | |
9253 | do | |
9254 | IFS=$as_save_IFS | |
9255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9256 | for ac_exec_ext in '' $ac_executable_extensions; do |
9257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9258 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9260 | break 2 |
9261 | fi | |
9262 | done | |
81ecdfbb RW |
9263 | done |
9264 | IFS=$as_save_IFS | |
c6b750e1 | 9265 | |
859789af AC |
9266 | fi |
9267 | fi | |
c6b750e1 | 9268 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9269 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9271 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9272 | else |
81ecdfbb RW |
9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9274 | $as_echo "no" >&6; } | |
859789af | 9275 | fi |
c6b750e1 | 9276 | |
81ecdfbb | 9277 | |
05cbd757 PB |
9278 | fi |
9279 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9280 | done | |
9281 | ||
9282 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9283 | set dummy objcopy | |
9284 | if test $build = $host ; then | |
9285 | OBJCOPY="$2" | |
859789af | 9286 | else |
05cbd757 | 9287 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9288 | fi |
859789af AC |
9289 | fi |
9290 | ||
9a819804 AO |
9291 | |
9292 | ||
9293 | if test -n "$OBJDUMP"; then | |
9294 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9295 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9296 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9297 | fi | |
9298 | ||
9299 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9300 | for ncn_progname in objdump; do | |
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_OBJDUMP+set}" = set; then : | |
9306 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9307 | else |
9308 | if test -n "$OBJDUMP"; then | |
9309 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9310 | else | |
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 | |
9a819804 | 9318 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9320 | break 2 |
9321 | fi | |
9322 | done | |
81ecdfbb RW |
9323 | done |
9324 | IFS=$as_save_IFS | |
9a819804 AO |
9325 | |
9326 | fi | |
9327 | fi | |
9328 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9329 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9331 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9332 | else |
81ecdfbb RW |
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9334 | $as_echo "no" >&6; } | |
9a819804 AO |
9335 | fi |
9336 | ||
81ecdfbb | 9337 | |
9a819804 AO |
9338 | done |
9339 | fi | |
9340 | ||
9341 | for ncn_progname in objdump; do | |
05cbd757 PB |
9342 | if test -n "$ncn_tool_prefix"; then |
9343 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9344 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9346 | $as_echo_n "checking for $ac_word... " >&6; } | |
9347 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9348 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9349 | else |
9350 | if test -n "$OBJDUMP"; then | |
9351 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9352 | else | |
c6b750e1 DJ |
9353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9354 | for as_dir in $PATH | |
9355 | do | |
9356 | IFS=$as_save_IFS | |
9357 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9358 | for ac_exec_ext in '' $ac_executable_extensions; do |
9359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9360 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9362 | break 2 |
9363 | fi | |
9364 | done | |
81ecdfbb RW |
9365 | done |
9366 | IFS=$as_save_IFS | |
c6b750e1 | 9367 | |
859789af AC |
9368 | fi |
9369 | fi | |
c6b750e1 | 9370 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9371 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9373 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9374 | else |
81ecdfbb RW |
9375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9376 | $as_echo "no" >&6; } | |
859789af AC |
9377 | fi |
9378 | ||
81ecdfbb | 9379 | |
05cbd757 PB |
9380 | fi |
9381 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9382 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9383 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9385 | $as_echo_n "checking for $ac_word... " >&6; } | |
9386 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9387 | $as_echo_n "(cached) " >&6 | |
859789af | 9388 | else |
05cbd757 PB |
9389 | if test -n "$OBJDUMP"; then |
9390 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9391 | else |
c6b750e1 DJ |
9392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9393 | for as_dir in $PATH | |
9394 | do | |
9395 | IFS=$as_save_IFS | |
9396 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9397 | for ac_exec_ext in '' $ac_executable_extensions; do |
9398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9399 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9401 | break 2 |
9402 | fi | |
9403 | done | |
81ecdfbb RW |
9404 | done |
9405 | IFS=$as_save_IFS | |
c6b750e1 | 9406 | |
859789af AC |
9407 | fi |
9408 | fi | |
c6b750e1 | 9409 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9410 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9412 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9413 | else |
81ecdfbb RW |
9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9415 | $as_echo "no" >&6; } | |
859789af | 9416 | fi |
c6b750e1 | 9417 | |
81ecdfbb | 9418 | |
05cbd757 PB |
9419 | fi |
9420 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9421 | done | |
9422 | ||
9423 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9424 | set dummy objdump | |
9425 | if test $build = $host ; then | |
9426 | OBJDUMP="$2" | |
859789af | 9427 | else |
05cbd757 | 9428 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9429 | fi |
859789af AC |
9430 | fi |
9431 | ||
a0da8069 NN |
9432 | |
9433 | ||
b121d7d4 DD |
9434 | if test -n "$READELF"; then |
9435 | ac_cv_prog_READELF=$READELF | |
9436 | elif test -n "$ac_cv_prog_READELF"; then | |
9437 | READELF=$ac_cv_prog_READELF | |
9438 | fi | |
9439 | ||
9440 | if test -n "$ac_cv_prog_READELF"; then | |
9441 | for ncn_progname in readelf; do | |
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 | |
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_READELF+set}" = set; then : | |
9447 | $as_echo_n "(cached) " >&6 | |
9448 | else | |
9449 | if test -n "$READELF"; then | |
9450 | ac_cv_prog_READELF="$READELF" # 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=. | |
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 | |
9459 | ac_cv_prog_READELF="${ncn_progname}" | |
9460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9461 | break 2 | |
9462 | fi | |
9463 | done | |
9464 | done | |
9465 | IFS=$as_save_IFS | |
9466 | ||
9467 | fi | |
9468 | fi | |
9469 | READELF=$ac_cv_prog_READELF | |
9470 | if test -n "$READELF"; then | |
9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9472 | $as_echo "$READELF" >&6; } | |
9473 | else | |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9475 | $as_echo "no" >&6; } | |
9476 | fi | |
9477 | ||
9478 | ||
9479 | done | |
9480 | fi | |
9481 | ||
9482 | for ncn_progname in readelf; do | |
9483 | if test -n "$ncn_tool_prefix"; then | |
9484 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9485 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9487 | $as_echo_n "checking for $ac_word... " >&6; } | |
9488 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9489 | $as_echo_n "(cached) " >&6 | |
9490 | else | |
9491 | if test -n "$READELF"; then | |
9492 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9493 | else | |
9494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9495 | for as_dir in $PATH | |
9496 | do | |
9497 | IFS=$as_save_IFS | |
9498 | test -z "$as_dir" && as_dir=. | |
9499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9501 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9503 | break 2 | |
9504 | fi | |
9505 | done | |
9506 | done | |
9507 | IFS=$as_save_IFS | |
9508 | ||
9509 | fi | |
9510 | fi | |
9511 | READELF=$ac_cv_prog_READELF | |
9512 | if test -n "$READELF"; then | |
9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9514 | $as_echo "$READELF" >&6; } | |
9515 | else | |
9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9517 | $as_echo "no" >&6; } | |
9518 | fi | |
9519 | ||
9520 | ||
9521 | fi | |
9522 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9523 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9524 | set dummy ${ncn_progname}; ac_word=$2 | |
9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9526 | $as_echo_n "checking for $ac_word... " >&6; } | |
9527 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9528 | $as_echo_n "(cached) " >&6 | |
9529 | else | |
9530 | if test -n "$READELF"; then | |
9531 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9532 | else | |
9533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9534 | for as_dir in $PATH | |
9535 | do | |
9536 | IFS=$as_save_IFS | |
9537 | test -z "$as_dir" && as_dir=. | |
9538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9540 | ac_cv_prog_READELF="${ncn_progname}" | |
9541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9542 | break 2 | |
9543 | fi | |
9544 | done | |
9545 | done | |
9546 | IFS=$as_save_IFS | |
9547 | ||
9548 | fi | |
9549 | fi | |
9550 | READELF=$ac_cv_prog_READELF | |
9551 | if test -n "$READELF"; then | |
9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9553 | $as_echo "$READELF" >&6; } | |
9554 | else | |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9556 | $as_echo "no" >&6; } | |
9557 | fi | |
9558 | ||
9559 | ||
9560 | fi | |
9561 | test -n "$ac_cv_prog_READELF" && break | |
9562 | done | |
9563 | ||
9564 | if test -z "$ac_cv_prog_READELF" ; then | |
9565 | set dummy readelf | |
9566 | if test $build = $host ; then | |
9567 | READELF="$2" | |
9568 | else | |
9569 | READELF="${ncn_tool_prefix}$2" | |
9570 | fi | |
9571 | fi | |
9572 | ||
9573 | ||
9574 | ||
a0da8069 NN |
9575 | |
9576 | ||
9577 | ||
be01d343 | 9578 | # Target tools. |
c6b750e1 | 9579 | |
81ecdfbb RW |
9580 | # Check whether --with-build-time-tools was given. |
9581 | if test "${with_build_time_tools+set}" = set; then : | |
9582 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9583 | x/*) ;; |
9584 | *) | |
9585 | with_build_time_tools= | |
81ecdfbb RW |
9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9587 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9588 | ;; |
9589 | esac | |
859789af | 9590 | else |
2429c060 | 9591 | with_build_time_tools= |
81ecdfbb RW |
9592 | fi |
9593 | ||
859789af | 9594 | |
9a819804 AO |
9595 | |
9596 | ||
9597 | if test -n "$CC_FOR_TARGET"; then | |
9598 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9599 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9600 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9601 | fi | |
9602 | ||
9603 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9604 | for ncn_progname in cc gcc; do | |
9605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9606 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9608 | $as_echo_n "checking for $ac_word... " >&6; } | |
9609 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9610 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9611 | else |
9612 | if test -n "$CC_FOR_TARGET"; then | |
9613 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9614 | else | |
9615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9616 | for as_dir in $PATH | |
9617 | do | |
9618 | IFS=$as_save_IFS | |
9619 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9620 | for ac_exec_ext in '' $ac_executable_extensions; do |
9621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9622 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9624 | break 2 |
9625 | fi | |
9626 | done | |
81ecdfbb RW |
9627 | done |
9628 | IFS=$as_save_IFS | |
9a819804 AO |
9629 | |
9630 | fi | |
9631 | fi | |
9632 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9633 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9635 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9636 | else |
81ecdfbb RW |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9638 | $as_echo "no" >&6; } | |
9a819804 AO |
9639 | fi |
9640 | ||
81ecdfbb | 9641 | |
9a819804 AO |
9642 | done |
9643 | fi | |
9644 | ||
9645 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9646 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9648 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9649 | if test -x $with_build_time_tools/${ncn_progname}; then |
9650 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9652 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9653 | break |
2429c060 | 9654 | else |
81ecdfbb RW |
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9656 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9657 | fi |
9658 | done | |
55db4b87 PB |
9659 | fi |
9660 | ||
2429c060 PB |
9661 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9662 | for ncn_progname in cc gcc; do | |
9663 | if test -n "$ncn_target_tool_prefix"; then | |
9664 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9665 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9667 | $as_echo_n "checking for $ac_word... " >&6; } | |
9668 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9669 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9670 | else |
9671 | if test -n "$CC_FOR_TARGET"; then | |
9672 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9673 | else | |
c6b750e1 DJ |
9674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9675 | for as_dir in $PATH | |
9676 | do | |
9677 | IFS=$as_save_IFS | |
9678 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9679 | for ac_exec_ext in '' $ac_executable_extensions; do |
9680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9681 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9683 | break 2 |
9684 | fi | |
9685 | done | |
81ecdfbb RW |
9686 | done |
9687 | IFS=$as_save_IFS | |
c6b750e1 | 9688 | |
55db4b87 PB |
9689 | fi |
9690 | fi | |
c6b750e1 | 9691 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9692 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9694 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9695 | else |
81ecdfbb RW |
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9697 | $as_echo "no" >&6; } | |
55db4b87 PB |
9698 | fi |
9699 | ||
81ecdfbb | 9700 | |
2429c060 PB |
9701 | fi |
9702 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9704 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9706 | $as_echo_n "checking for $ac_word... " >&6; } | |
9707 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9708 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9709 | else |
05cbd757 PB |
9710 | if test -n "$CC_FOR_TARGET"; then |
9711 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9712 | else |
c6b750e1 DJ |
9713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9714 | for as_dir in $PATH | |
9715 | do | |
9716 | IFS=$as_save_IFS | |
9717 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9718 | for ac_exec_ext in '' $ac_executable_extensions; do |
9719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9720 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9722 | break 2 |
9723 | fi | |
9724 | done | |
81ecdfbb RW |
9725 | done |
9726 | IFS=$as_save_IFS | |
c6b750e1 | 9727 | |
55db4b87 PB |
9728 | fi |
9729 | fi | |
c6b750e1 | 9730 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 9731 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9733 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9734 | else |
81ecdfbb RW |
9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9736 | $as_echo "no" >&6; } | |
55db4b87 | 9737 | fi |
c6b750e1 | 9738 | |
81ecdfbb | 9739 | |
2429c060 PB |
9740 | fi |
9741 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9742 | done | |
9743 | fi | |
c6b750e1 | 9744 | |
05cbd757 PB |
9745 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9746 | set dummy cc gcc | |
9747 | if test $build = $target ; then | |
9748 | CC_FOR_TARGET="$2" | |
55db4b87 | 9749 | else |
05cbd757 | 9750 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9751 | fi |
d3f5afc4 MS |
9752 | else |
9753 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
9754 | fi |
9755 | ||
9a819804 AO |
9756 | |
9757 | ||
9758 | if test -n "$CXX_FOR_TARGET"; then | |
9759 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9760 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9761 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9762 | fi | |
9763 | ||
9764 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9765 | for ncn_progname in c++ g++ cxx gxx; do | |
9766 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9767 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9769 | $as_echo_n "checking for $ac_word... " >&6; } | |
9770 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9771 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9772 | else |
9773 | if test -n "$CXX_FOR_TARGET"; then | |
9774 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9775 | else | |
9776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9777 | for as_dir in $PATH | |
9778 | do | |
9779 | IFS=$as_save_IFS | |
9780 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9781 | for ac_exec_ext in '' $ac_executable_extensions; do |
9782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9783 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9785 | break 2 |
9786 | fi | |
9787 | done | |
81ecdfbb RW |
9788 | done |
9789 | IFS=$as_save_IFS | |
9a819804 AO |
9790 | |
9791 | fi | |
9792 | fi | |
9793 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9794 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9796 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 9797 | else |
81ecdfbb RW |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9799 | $as_echo "no" >&6; } | |
9a819804 AO |
9800 | fi |
9801 | ||
81ecdfbb | 9802 | |
9a819804 AO |
9803 | done |
9804 | fi | |
9805 | ||
9806 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9807 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9809 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9810 | if test -x $with_build_time_tools/${ncn_progname}; then |
9811 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9813 | $as_echo "yes" >&6; } | |
2429c060 PB |
9814 | break |
9815 | else | |
81ecdfbb RW |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9817 | $as_echo "no" >&6; } | |
2429c060 PB |
9818 | fi |
9819 | done | |
9820 | fi | |
9821 | ||
9822 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9823 | for ncn_progname in c++ g++ cxx gxx; do | |
9824 | if test -n "$ncn_target_tool_prefix"; then | |
9825 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9826 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9828 | $as_echo_n "checking for $ac_word... " >&6; } | |
9829 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9830 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9831 | else |
9832 | if test -n "$CXX_FOR_TARGET"; then | |
9833 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9834 | else | |
c6b750e1 DJ |
9835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9836 | for as_dir in $PATH | |
9837 | do | |
9838 | IFS=$as_save_IFS | |
9839 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9840 | for ac_exec_ext in '' $ac_executable_extensions; do |
9841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9842 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9844 | break 2 |
9845 | fi | |
9846 | done | |
81ecdfbb RW |
9847 | done |
9848 | IFS=$as_save_IFS | |
c6b750e1 | 9849 | |
55db4b87 PB |
9850 | fi |
9851 | fi | |
c6b750e1 | 9852 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 9853 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9855 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9856 | else |
81ecdfbb RW |
9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9858 | $as_echo "no" >&6; } | |
55db4b87 PB |
9859 | fi |
9860 | ||
81ecdfbb | 9861 | |
2429c060 PB |
9862 | fi |
9863 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9864 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9865 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9867 | $as_echo_n "checking for $ac_word... " >&6; } | |
9868 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9869 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9870 | else |
05cbd757 PB |
9871 | if test -n "$CXX_FOR_TARGET"; then |
9872 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9873 | else |
c6b750e1 DJ |
9874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9875 | for as_dir in $PATH | |
9876 | do | |
9877 | IFS=$as_save_IFS | |
9878 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9879 | for ac_exec_ext in '' $ac_executable_extensions; do |
9880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9881 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9883 | break 2 |
9884 | fi | |
9885 | done | |
81ecdfbb RW |
9886 | done |
9887 | IFS=$as_save_IFS | |
c6b750e1 | 9888 | |
55db4b87 PB |
9889 | fi |
9890 | fi | |
c6b750e1 | 9891 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 9892 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9894 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9895 | else |
81ecdfbb RW |
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9897 | $as_echo "no" >&6; } | |
55db4b87 | 9898 | fi |
c6b750e1 | 9899 | |
81ecdfbb | 9900 | |
2429c060 PB |
9901 | fi |
9902 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9903 | done | |
9904 | fi | |
c6b750e1 | 9905 | |
05cbd757 PB |
9906 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9907 | set dummy c++ g++ cxx gxx | |
9908 | if test $build = $target ; then | |
9909 | CXX_FOR_TARGET="$2" | |
55db4b87 | 9910 | else |
05cbd757 | 9911 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9912 | fi |
d3f5afc4 MS |
9913 | else |
9914 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
9915 | fi |
9916 | ||
9a819804 AO |
9917 | |
9918 | ||
9919 | if test -n "$GCC_FOR_TARGET"; then | |
9920 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9921 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9922 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9923 | fi | |
9924 | ||
9925 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9926 | for ncn_progname in gcc; do | |
9927 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9928 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9930 | $as_echo_n "checking for $ac_word... " >&6; } | |
9931 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9932 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9933 | else |
9934 | if test -n "$GCC_FOR_TARGET"; then | |
9935 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9936 | else | |
9937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9938 | for as_dir in $PATH | |
9939 | do | |
9940 | IFS=$as_save_IFS | |
9941 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9942 | for ac_exec_ext in '' $ac_executable_extensions; do |
9943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9944 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9946 | break 2 |
9947 | fi | |
9948 | done | |
81ecdfbb RW |
9949 | done |
9950 | IFS=$as_save_IFS | |
9a819804 AO |
9951 | |
9952 | fi | |
9953 | fi | |
9954 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9955 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9957 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 9958 | else |
81ecdfbb RW |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9960 | $as_echo "no" >&6; } | |
9a819804 AO |
9961 | fi |
9962 | ||
81ecdfbb | 9963 | |
9a819804 AO |
9964 | done |
9965 | fi | |
9966 | ||
9967 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9968 | for ncn_progname in gcc; do |
81ecdfbb RW |
9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9970 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9971 | if test -x $with_build_time_tools/${ncn_progname}; then |
9972 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9974 | $as_echo "yes" >&6; } | |
2429c060 PB |
9975 | break |
9976 | else | |
81ecdfbb RW |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9978 | $as_echo "no" >&6; } | |
2429c060 PB |
9979 | fi |
9980 | done | |
9981 | fi | |
9982 | ||
9983 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9984 | for ncn_progname in gcc; do | |
9985 | if test -n "$ncn_target_tool_prefix"; then | |
9986 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9987 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9989 | $as_echo_n "checking for $ac_word... " >&6; } | |
9990 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9991 | $as_echo_n "(cached) " >&6 | |
859789af | 9992 | else |
2429c060 PB |
9993 | if test -n "$GCC_FOR_TARGET"; then |
9994 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9995 | else |
c6b750e1 DJ |
9996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9997 | for as_dir in $PATH | |
9998 | do | |
9999 | IFS=$as_save_IFS | |
10000 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10001 | for ac_exec_ext in '' $ac_executable_extensions; do |
10002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10003 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10005 | break 2 |
10006 | fi | |
10007 | done | |
81ecdfbb RW |
10008 | done |
10009 | IFS=$as_save_IFS | |
c6b750e1 | 10010 | |
55db4b87 PB |
10011 | fi |
10012 | fi | |
c6b750e1 | 10013 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10014 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10016 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10017 | else |
81ecdfbb RW |
10018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10019 | $as_echo "no" >&6; } | |
55db4b87 PB |
10020 | fi |
10021 | ||
81ecdfbb | 10022 | |
2429c060 PB |
10023 | fi |
10024 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10025 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10026 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10028 | $as_echo_n "checking for $ac_word... " >&6; } | |
10029 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10030 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10031 | else |
05cbd757 PB |
10032 | if test -n "$GCC_FOR_TARGET"; then |
10033 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10034 | else |
c6b750e1 DJ |
10035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10036 | for as_dir in $PATH | |
10037 | do | |
10038 | IFS=$as_save_IFS | |
10039 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10040 | for ac_exec_ext in '' $ac_executable_extensions; do |
10041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10042 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10044 | break 2 |
10045 | fi | |
10046 | done | |
81ecdfbb RW |
10047 | done |
10048 | IFS=$as_save_IFS | |
c6b750e1 | 10049 | |
55db4b87 PB |
10050 | fi |
10051 | fi | |
c6b750e1 | 10052 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10053 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10055 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10056 | else |
81ecdfbb RW |
10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10058 | $as_echo "no" >&6; } | |
55db4b87 | 10059 | fi |
c6b750e1 | 10060 | |
81ecdfbb | 10061 | |
2429c060 PB |
10062 | fi |
10063 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10064 | done | |
10065 | fi | |
c6b750e1 | 10066 | |
05cbd757 PB |
10067 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10068 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10069 | else |
10070 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10071 | fi |
10072 | ||
9a819804 AO |
10073 | |
10074 | ||
10075 | if test -n "$GCJ_FOR_TARGET"; then | |
10076 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10077 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10078 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10079 | fi | |
10080 | ||
10081 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10082 | for ncn_progname in gcj; do | |
10083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10084 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10086 | $as_echo_n "checking for $ac_word... " >&6; } | |
10087 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10088 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10089 | else |
10090 | if test -n "$GCJ_FOR_TARGET"; then | |
10091 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10092 | else | |
10093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10094 | for as_dir in $PATH | |
10095 | do | |
10096 | IFS=$as_save_IFS | |
10097 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10098 | for ac_exec_ext in '' $ac_executable_extensions; do |
10099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10100 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10102 | break 2 |
10103 | fi | |
10104 | done | |
81ecdfbb RW |
10105 | done |
10106 | IFS=$as_save_IFS | |
9a819804 AO |
10107 | |
10108 | fi | |
10109 | fi | |
10110 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10111 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10113 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10114 | else |
81ecdfbb RW |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10116 | $as_echo "no" >&6; } | |
9a819804 AO |
10117 | fi |
10118 | ||
81ecdfbb | 10119 | |
9a819804 AO |
10120 | done |
10121 | fi | |
10122 | ||
10123 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10124 | for ncn_progname in gcj; do |
81ecdfbb RW |
10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10126 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10127 | if test -x $with_build_time_tools/${ncn_progname}; then |
10128 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10130 | $as_echo "yes" >&6; } | |
2429c060 PB |
10131 | break |
10132 | else | |
81ecdfbb RW |
10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10134 | $as_echo "no" >&6; } | |
2429c060 PB |
10135 | fi |
10136 | done | |
10137 | fi | |
10138 | ||
10139 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10140 | for ncn_progname in gcj; do | |
10141 | if test -n "$ncn_target_tool_prefix"; then | |
10142 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10143 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10145 | $as_echo_n "checking for $ac_word... " >&6; } | |
10146 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10147 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10148 | else |
10149 | if test -n "$GCJ_FOR_TARGET"; then | |
10150 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10151 | else | |
c6b750e1 DJ |
10152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10153 | for as_dir in $PATH | |
10154 | do | |
10155 | IFS=$as_save_IFS | |
10156 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10157 | for ac_exec_ext in '' $ac_executable_extensions; do |
10158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10159 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10161 | break 2 |
10162 | fi | |
10163 | done | |
81ecdfbb RW |
10164 | done |
10165 | IFS=$as_save_IFS | |
c6b750e1 | 10166 | |
55db4b87 PB |
10167 | fi |
10168 | fi | |
9a819804 AO |
10169 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10170 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10172 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10173 | else |
81ecdfbb RW |
10174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10175 | $as_echo "no" >&6; } | |
9a819804 AO |
10176 | fi |
10177 | ||
81ecdfbb | 10178 | |
9a819804 AO |
10179 | fi |
10180 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10181 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10182 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10184 | $as_echo_n "checking for $ac_word... " >&6; } | |
10185 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10186 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10187 | else |
10188 | if test -n "$GCJ_FOR_TARGET"; then | |
10189 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10190 | else | |
10191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10192 | for as_dir in $PATH | |
10193 | do | |
10194 | IFS=$as_save_IFS | |
10195 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10196 | for ac_exec_ext in '' $ac_executable_extensions; do |
10197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10198 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10200 | break 2 |
10201 | fi | |
10202 | done | |
81ecdfbb RW |
10203 | done |
10204 | IFS=$as_save_IFS | |
9a819804 AO |
10205 | |
10206 | fi | |
10207 | fi | |
10208 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10209 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10211 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10212 | else |
81ecdfbb RW |
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10214 | $as_echo "no" >&6; } | |
9a819804 AO |
10215 | fi |
10216 | ||
81ecdfbb | 10217 | |
9a819804 AO |
10218 | fi |
10219 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10220 | done | |
10221 | fi | |
10222 | ||
10223 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10224 | set dummy gcj | |
10225 | if test $build = $target ; then | |
10226 | GCJ_FOR_TARGET="$2" | |
10227 | else | |
10228 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10229 | fi | |
d3f5afc4 MS |
10230 | else |
10231 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10232 | fi |
10233 | ||
10234 | ||
10235 | ||
10236 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10237 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10238 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10239 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10240 | fi |
10241 | ||
9a819804 AO |
10242 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10243 | for ncn_progname in gfortran; do | |
10244 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10245 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10247 | $as_echo_n "checking for $ac_word... " >&6; } | |
10248 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10249 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10250 | else |
9a819804 AO |
10251 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10252 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10253 | else |
c6b750e1 DJ |
10254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10255 | for as_dir in $PATH | |
10256 | do | |
10257 | IFS=$as_save_IFS | |
10258 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10259 | for ac_exec_ext in '' $ac_executable_extensions; do |
10260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10261 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10263 | break 2 |
10264 | fi | |
10265 | done | |
81ecdfbb RW |
10266 | done |
10267 | IFS=$as_save_IFS | |
c6b750e1 | 10268 | |
55db4b87 PB |
10269 | fi |
10270 | fi | |
9a819804 AO |
10271 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10272 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10274 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10275 | else |
81ecdfbb RW |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10277 | $as_echo "no" >&6; } | |
55db4b87 | 10278 | fi |
c6b750e1 | 10279 | |
81ecdfbb | 10280 | |
2429c060 PB |
10281 | done |
10282 | fi | |
c6b750e1 | 10283 | |
9a819804 | 10284 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10285 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10287 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10288 | if test -x $with_build_time_tools/${ncn_progname}; then |
10289 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10291 | $as_echo "yes" >&6; } | |
2429c060 PB |
10292 | break |
10293 | else | |
81ecdfbb RW |
10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10295 | $as_echo "no" >&6; } | |
2429c060 PB |
10296 | fi |
10297 | done | |
10298 | fi | |
10299 | ||
10300 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10301 | for ncn_progname in gfortran; do | |
10302 | if test -n "$ncn_target_tool_prefix"; then | |
10303 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10304 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10306 | $as_echo_n "checking for $ac_word... " >&6; } | |
10307 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10308 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10309 | else |
10310 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10311 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10312 | else | |
c6b750e1 DJ |
10313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10314 | for as_dir in $PATH | |
10315 | do | |
10316 | IFS=$as_save_IFS | |
10317 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10318 | for ac_exec_ext in '' $ac_executable_extensions; do |
10319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10320 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10322 | break 2 |
10323 | fi | |
10324 | done | |
81ecdfbb RW |
10325 | done |
10326 | IFS=$as_save_IFS | |
c6b750e1 | 10327 | |
55db4b87 PB |
10328 | fi |
10329 | fi | |
c6b750e1 | 10330 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10331 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10333 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10334 | else |
81ecdfbb RW |
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10336 | $as_echo "no" >&6; } | |
55db4b87 PB |
10337 | fi |
10338 | ||
81ecdfbb | 10339 | |
2429c060 PB |
10340 | fi |
10341 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10342 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10343 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10345 | $as_echo_n "checking for $ac_word... " >&6; } | |
10346 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10347 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10348 | else |
05cbd757 | 10349 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10350 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10351 | else | |
10352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10353 | for as_dir in $PATH | |
10354 | do | |
10355 | IFS=$as_save_IFS | |
10356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10357 | for ac_exec_ext in '' $ac_executable_extensions; do |
10358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10359 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10361 | break 2 |
10362 | fi | |
10363 | done | |
81ecdfbb RW |
10364 | done |
10365 | IFS=$as_save_IFS | |
c6b750e1 | 10366 | |
55db4b87 PB |
10367 | fi |
10368 | fi | |
c6b750e1 | 10369 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10370 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10372 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10373 | else |
81ecdfbb RW |
10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10375 | $as_echo "no" >&6; } | |
55db4b87 | 10376 | fi |
c6b750e1 | 10377 | |
81ecdfbb | 10378 | |
2429c060 PB |
10379 | fi |
10380 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10381 | done | |
10382 | fi | |
c6b750e1 | 10383 | |
05cbd757 PB |
10384 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10385 | set dummy gfortran | |
10386 | if test $build = $target ; then | |
10387 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10388 | else |
05cbd757 | 10389 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10390 | fi |
d3f5afc4 MS |
10391 | else |
10392 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10393 | fi |
10394 | ||
2429c060 PB |
10395 | |
10396 | ||
e552509b ILT |
10397 | if test -n "$GOC_FOR_TARGET"; then |
10398 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10399 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10400 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10401 | fi | |
10402 | ||
10403 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10404 | for ncn_progname in gccgo; do | |
10405 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10406 | set dummy ${ncn_progname}; ac_word=$2 | |
10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10408 | $as_echo_n "checking for $ac_word... " >&6; } | |
10409 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10410 | $as_echo_n "(cached) " >&6 | |
10411 | else | |
10412 | if test -n "$GOC_FOR_TARGET"; then | |
10413 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10414 | else | |
10415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10416 | for as_dir in $PATH | |
10417 | do | |
10418 | IFS=$as_save_IFS | |
10419 | test -z "$as_dir" && as_dir=. | |
10420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10422 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10424 | break 2 | |
10425 | fi | |
10426 | done | |
10427 | done | |
10428 | IFS=$as_save_IFS | |
10429 | ||
10430 | fi | |
10431 | fi | |
10432 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10433 | if test -n "$GOC_FOR_TARGET"; then | |
10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10435 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10436 | else | |
10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10438 | $as_echo "no" >&6; } | |
10439 | fi | |
10440 | ||
10441 | ||
10442 | done | |
10443 | fi | |
10444 | ||
10445 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10446 | for ncn_progname in gccgo; do | |
10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10448 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10449 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10450 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10452 | $as_echo "yes" >&6; } | |
10453 | break | |
10454 | else | |
10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10456 | $as_echo "no" >&6; } | |
10457 | fi | |
10458 | done | |
10459 | fi | |
10460 | ||
10461 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10462 | for ncn_progname in gccgo; do | |
10463 | if test -n "$ncn_target_tool_prefix"; then | |
10464 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10465 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10467 | $as_echo_n "checking for $ac_word... " >&6; } | |
10468 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10469 | $as_echo_n "(cached) " >&6 | |
10470 | else | |
10471 | if test -n "$GOC_FOR_TARGET"; then | |
10472 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10473 | else | |
10474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10475 | for as_dir in $PATH | |
10476 | do | |
10477 | IFS=$as_save_IFS | |
10478 | test -z "$as_dir" && as_dir=. | |
10479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10481 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10483 | break 2 | |
10484 | fi | |
10485 | done | |
10486 | done | |
10487 | IFS=$as_save_IFS | |
10488 | ||
10489 | fi | |
10490 | fi | |
10491 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10492 | if test -n "$GOC_FOR_TARGET"; then | |
10493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10494 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10495 | else | |
10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10497 | $as_echo "no" >&6; } | |
10498 | fi | |
10499 | ||
10500 | ||
10501 | fi | |
10502 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10503 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10504 | set dummy ${ncn_progname}; ac_word=$2 | |
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10506 | $as_echo_n "checking for $ac_word... " >&6; } | |
10507 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10508 | $as_echo_n "(cached) " >&6 | |
10509 | else | |
10510 | if test -n "$GOC_FOR_TARGET"; then | |
10511 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10512 | else | |
10513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10514 | for as_dir in $PATH | |
10515 | do | |
10516 | IFS=$as_save_IFS | |
10517 | test -z "$as_dir" && as_dir=. | |
10518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10520 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10522 | break 2 | |
10523 | fi | |
10524 | done | |
10525 | done | |
10526 | IFS=$as_save_IFS | |
10527 | ||
10528 | fi | |
10529 | fi | |
10530 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10531 | if test -n "$GOC_FOR_TARGET"; then | |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10533 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10534 | else | |
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10536 | $as_echo "no" >&6; } | |
10537 | fi | |
10538 | ||
10539 | ||
10540 | fi | |
10541 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10542 | done | |
10543 | fi | |
10544 | ||
10545 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10546 | set dummy gccgo | |
10547 | if test $build = $target ; then | |
10548 | GOC_FOR_TARGET="$2" | |
10549 | else | |
10550 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10551 | fi | |
10552 | else | |
10553 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10554 | fi | |
10555 | ||
10556 | ||
10557 | ||
2429c060 PB |
10558 | cat > conftest.c << \EOF |
10559 | #ifdef __GNUC__ | |
10560 | gcc_yay; | |
10561 | #endif | |
10562 | EOF | |
10563 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10564 | have_gcc_for_target=yes | |
859789af | 10565 | else |
2429c060 PB |
10566 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10567 | have_gcc_for_target=no | |
859789af | 10568 | fi |
2429c060 PB |
10569 | rm conftest.c |
10570 | ||
10571 | ||
10572 | ||
859789af | 10573 | |
2429c060 PB |
10574 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10575 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10577 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10578 | if test -x $with_build_time_tools/ar; then |
10579 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10580 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10582 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10583 | else |
81ecdfbb RW |
10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10585 | $as_echo "no" >&6; } | |
3a35eeb3 | 10586 | fi |
2429c060 PB |
10587 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10588 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10589 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10590 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10591 | fi |
2429c060 | 10592 | fi |
c6b750e1 | 10593 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10594 | # Extract the first word of "ar", so it can be a program name with args. |
10595 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10597 | $as_echo_n "checking for $ac_word... " >&6; } | |
10598 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10599 | $as_echo_n "(cached) " >&6 | |
859789af | 10600 | else |
c6b750e1 DJ |
10601 | case $AR_FOR_TARGET in |
10602 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10603 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10604 | ;; | |
2429c060 | 10605 | *) |
c6b750e1 DJ |
10606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10607 | for as_dir in $gcc_cv_tool_dirs | |
10608 | do | |
10609 | IFS=$as_save_IFS | |
10610 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10611 | for ac_exec_ext in '' $ac_executable_extensions; do |
10612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10613 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10615 | break 2 |
10616 | fi | |
10617 | done | |
81ecdfbb RW |
10618 | done |
10619 | IFS=$as_save_IFS | |
c6b750e1 | 10620 | |
2429c060 PB |
10621 | ;; |
10622 | esac | |
859789af | 10623 | fi |
c6b750e1 | 10624 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10625 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10627 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10628 | else |
81ecdfbb RW |
10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10630 | $as_echo "no" >&6; } | |
859789af | 10631 | fi |
05cbd757 | 10632 | |
81ecdfbb | 10633 | |
2429c060 PB |
10634 | fi |
10635 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10636 | |
10637 | ||
10638 | if test -n "$AR_FOR_TARGET"; then | |
10639 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10640 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10641 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10642 | fi | |
10643 | ||
10644 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10645 | for ncn_progname in ar; do | |
10646 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10647 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10649 | $as_echo_n "checking for $ac_word... " >&6; } | |
10650 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10651 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10652 | else |
10653 | if test -n "$AR_FOR_TARGET"; then | |
10654 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10655 | else | |
10656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10657 | for as_dir in $PATH | |
10658 | do | |
10659 | IFS=$as_save_IFS | |
10660 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10661 | for ac_exec_ext in '' $ac_executable_extensions; do |
10662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10663 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10665 | break 2 |
10666 | fi | |
10667 | done | |
81ecdfbb RW |
10668 | done |
10669 | IFS=$as_save_IFS | |
9a819804 AO |
10670 | |
10671 | fi | |
10672 | fi | |
10673 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10674 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10676 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10677 | else |
81ecdfbb RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10679 | $as_echo "no" >&6; } | |
9a819804 AO |
10680 | fi |
10681 | ||
81ecdfbb | 10682 | |
9a819804 AO |
10683 | done |
10684 | fi | |
10685 | ||
10686 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10687 | for ncn_progname in ar; do |
81ecdfbb RW |
10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10689 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10690 | if test -x $with_build_time_tools/${ncn_progname}; then |
10691 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10693 | $as_echo "yes" >&6; } | |
2429c060 PB |
10694 | break |
10695 | else | |
81ecdfbb RW |
10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10697 | $as_echo "no" >&6; } | |
2429c060 PB |
10698 | fi |
10699 | done | |
859789af AC |
10700 | fi |
10701 | ||
2429c060 PB |
10702 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10703 | for ncn_progname in ar; do | |
10704 | if test -n "$ncn_target_tool_prefix"; then | |
10705 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10706 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10708 | $as_echo_n "checking for $ac_word... " >&6; } | |
10709 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10710 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10711 | else |
2429c060 PB |
10712 | if test -n "$AR_FOR_TARGET"; then |
10713 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10714 | else |
c6b750e1 DJ |
10715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10716 | for as_dir in $PATH | |
10717 | do | |
10718 | IFS=$as_save_IFS | |
10719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10720 | for ac_exec_ext in '' $ac_executable_extensions; do |
10721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10722 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10724 | break 2 |
10725 | fi | |
10726 | done | |
81ecdfbb RW |
10727 | done |
10728 | IFS=$as_save_IFS | |
c6b750e1 | 10729 | |
7e0f7140 GK |
10730 | fi |
10731 | fi | |
c6b750e1 | 10732 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10733 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10735 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10736 | else |
81ecdfbb RW |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10738 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10739 | fi |
10740 | ||
81ecdfbb | 10741 | |
2429c060 PB |
10742 | fi |
10743 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10744 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10745 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10747 | $as_echo_n "checking for $ac_word... " >&6; } | |
10748 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10749 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10750 | else |
2429c060 PB |
10751 | if test -n "$AR_FOR_TARGET"; then |
10752 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10753 | else |
c6b750e1 DJ |
10754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10755 | for as_dir in $PATH | |
10756 | do | |
10757 | IFS=$as_save_IFS | |
10758 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10759 | for ac_exec_ext in '' $ac_executable_extensions; do |
10760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10761 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10763 | break 2 |
10764 | fi | |
10765 | done | |
81ecdfbb RW |
10766 | done |
10767 | IFS=$as_save_IFS | |
c6b750e1 | 10768 | |
7e0f7140 GK |
10769 | fi |
10770 | fi | |
c6b750e1 | 10771 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10772 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10774 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10775 | else |
81ecdfbb RW |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10777 | $as_echo "no" >&6; } | |
7e0f7140 | 10778 | fi |
c6b750e1 | 10779 | |
81ecdfbb | 10780 | |
2429c060 PB |
10781 | fi |
10782 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10783 | done | |
10784 | fi | |
c6b750e1 | 10785 | |
2429c060 PB |
10786 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10787 | set dummy ar | |
7e0f7140 | 10788 | if test $build = $target ; then |
2429c060 | 10789 | AR_FOR_TARGET="$2" |
7e0f7140 | 10790 | else |
2429c060 | 10791 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10792 | fi |
d3f5afc4 MS |
10793 | else |
10794 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10795 | fi |
10796 | ||
3a35eeb3 PB |
10797 | else |
10798 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10799 | fi |
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10805 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10807 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10808 | if test -x $with_build_time_tools/as; then |
10809 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10810 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10812 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10813 | else |
81ecdfbb RW |
10814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10815 | $as_echo "no" >&6; } | |
3a35eeb3 | 10816 | fi |
2429c060 PB |
10817 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10818 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10819 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10820 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10821 | fi |
10822 | fi | |
c6b750e1 | 10823 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10824 | # Extract the first word of "as", so it can be a program name with args. |
10825 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10827 | $as_echo_n "checking for $ac_word... " >&6; } | |
10828 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10829 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10830 | else |
c6b750e1 DJ |
10831 | case $AS_FOR_TARGET in |
10832 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10833 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10834 | ;; | |
2429c060 | 10835 | *) |
c6b750e1 DJ |
10836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10837 | for as_dir in $gcc_cv_tool_dirs | |
10838 | do | |
10839 | IFS=$as_save_IFS | |
10840 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10841 | for ac_exec_ext in '' $ac_executable_extensions; do |
10842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10843 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10845 | break 2 |
10846 | fi | |
10847 | done | |
81ecdfbb RW |
10848 | done |
10849 | IFS=$as_save_IFS | |
c6b750e1 | 10850 | |
2429c060 PB |
10851 | ;; |
10852 | esac | |
10853 | fi | |
c6b750e1 | 10854 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10855 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10857 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10858 | else |
81ecdfbb RW |
10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10860 | $as_echo "no" >&6; } | |
2429c060 PB |
10861 | fi |
10862 | ||
81ecdfbb | 10863 | |
2429c060 PB |
10864 | fi |
10865 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
10866 | |
10867 | ||
10868 | if test -n "$AS_FOR_TARGET"; then | |
10869 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10870 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10871 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10872 | fi | |
10873 | ||
10874 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10875 | for ncn_progname in as; do | |
10876 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10877 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10879 | $as_echo_n "checking for $ac_word... " >&6; } | |
10880 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10881 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10882 | else |
10883 | if test -n "$AS_FOR_TARGET"; then | |
10884 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10885 | else | |
10886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10887 | for as_dir in $PATH | |
10888 | do | |
10889 | IFS=$as_save_IFS | |
10890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10891 | for ac_exec_ext in '' $ac_executable_extensions; do |
10892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10893 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10895 | break 2 |
10896 | fi | |
10897 | done | |
81ecdfbb RW |
10898 | done |
10899 | IFS=$as_save_IFS | |
9a819804 AO |
10900 | |
10901 | fi | |
10902 | fi | |
10903 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10904 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10906 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 10907 | else |
81ecdfbb RW |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10909 | $as_echo "no" >&6; } | |
9a819804 AO |
10910 | fi |
10911 | ||
81ecdfbb | 10912 | |
9a819804 AO |
10913 | done |
10914 | fi | |
10915 | ||
10916 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10917 | for ncn_progname in as; do |
81ecdfbb RW |
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10919 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10920 | if test -x $with_build_time_tools/${ncn_progname}; then |
10921 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10923 | $as_echo "yes" >&6; } | |
2429c060 PB |
10924 | break |
10925 | else | |
81ecdfbb RW |
10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10927 | $as_echo "no" >&6; } | |
2429c060 PB |
10928 | fi |
10929 | done | |
10930 | fi | |
10931 | ||
10932 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10933 | for ncn_progname in as; do | |
10934 | if test -n "$ncn_target_tool_prefix"; then | |
10935 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10936 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10938 | $as_echo_n "checking for $ac_word... " >&6; } | |
10939 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10940 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10941 | else |
10942 | if test -n "$AS_FOR_TARGET"; then | |
10943 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10944 | else | |
c6b750e1 DJ |
10945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10946 | for as_dir in $PATH | |
10947 | do | |
10948 | IFS=$as_save_IFS | |
10949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10950 | for ac_exec_ext in '' $ac_executable_extensions; do |
10951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10952 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10954 | break 2 |
10955 | fi | |
10956 | done | |
81ecdfbb RW |
10957 | done |
10958 | IFS=$as_save_IFS | |
c6b750e1 | 10959 | |
2429c060 PB |
10960 | fi |
10961 | fi | |
c6b750e1 | 10962 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 10963 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10965 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10966 | else |
81ecdfbb RW |
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10968 | $as_echo "no" >&6; } | |
2429c060 PB |
10969 | fi |
10970 | ||
81ecdfbb | 10971 | |
2429c060 PB |
10972 | fi |
10973 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10974 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10975 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10977 | $as_echo_n "checking for $ac_word... " >&6; } | |
10978 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10979 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10980 | else |
10981 | if test -n "$AS_FOR_TARGET"; then | |
10982 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10983 | else | |
c6b750e1 DJ |
10984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10985 | for as_dir in $PATH | |
10986 | do | |
10987 | IFS=$as_save_IFS | |
10988 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10989 | for ac_exec_ext in '' $ac_executable_extensions; do |
10990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10991 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10993 | break 2 |
10994 | fi | |
10995 | done | |
81ecdfbb RW |
10996 | done |
10997 | IFS=$as_save_IFS | |
c6b750e1 | 10998 | |
2429c060 PB |
10999 | fi |
11000 | fi | |
c6b750e1 | 11001 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11002 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11004 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11005 | else |
81ecdfbb RW |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11007 | $as_echo "no" >&6; } | |
2429c060 | 11008 | fi |
c6b750e1 | 11009 | |
81ecdfbb | 11010 | |
2429c060 PB |
11011 | fi |
11012 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11013 | done | |
11014 | fi | |
c6b750e1 | 11015 | |
2429c060 PB |
11016 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11017 | set dummy as | |
11018 | if test $build = $target ; then | |
11019 | AS_FOR_TARGET="$2" | |
11020 | else | |
11021 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11022 | fi | |
d3f5afc4 MS |
11023 | else |
11024 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11025 | fi |
11026 | ||
3a35eeb3 PB |
11027 | else |
11028 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11029 | fi |
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11035 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11037 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11038 | if test -x $with_build_time_tools/dlltool; then |
11039 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11040 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11042 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11043 | else |
81ecdfbb RW |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11045 | $as_echo "no" >&6; } | |
3a35eeb3 | 11046 | fi |
2429c060 PB |
11047 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11048 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11049 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11050 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11051 | fi |
11052 | fi | |
c6b750e1 | 11053 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11054 | # Extract the first word of "dlltool", so it can be a program name with args. |
11055 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11057 | $as_echo_n "checking for $ac_word... " >&6; } | |
11058 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11059 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11060 | else |
c6b750e1 DJ |
11061 | case $DLLTOOL_FOR_TARGET in |
11062 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11063 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11064 | ;; | |
2429c060 | 11065 | *) |
c6b750e1 DJ |
11066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11067 | for as_dir in $gcc_cv_tool_dirs | |
11068 | do | |
11069 | IFS=$as_save_IFS | |
11070 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11071 | for ac_exec_ext in '' $ac_executable_extensions; do |
11072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11073 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11075 | break 2 |
11076 | fi | |
11077 | done | |
81ecdfbb RW |
11078 | done |
11079 | IFS=$as_save_IFS | |
c6b750e1 | 11080 | |
2429c060 PB |
11081 | ;; |
11082 | esac | |
11083 | fi | |
c6b750e1 | 11084 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11085 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11087 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11088 | else |
81ecdfbb RW |
11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11090 | $as_echo "no" >&6; } | |
2429c060 PB |
11091 | fi |
11092 | ||
81ecdfbb | 11093 | |
2429c060 PB |
11094 | fi |
11095 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11096 | |
11097 | ||
11098 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11099 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11100 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11101 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11102 | fi | |
11103 | ||
11104 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11105 | for ncn_progname in dlltool; do | |
11106 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11107 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11109 | $as_echo_n "checking for $ac_word... " >&6; } | |
11110 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11111 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11112 | else |
11113 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11114 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11115 | else | |
11116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11117 | for as_dir in $PATH | |
11118 | do | |
11119 | IFS=$as_save_IFS | |
11120 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11121 | for ac_exec_ext in '' $ac_executable_extensions; do |
11122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11123 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11125 | break 2 |
11126 | fi | |
11127 | done | |
81ecdfbb RW |
11128 | done |
11129 | IFS=$as_save_IFS | |
9a819804 AO |
11130 | |
11131 | fi | |
11132 | fi | |
11133 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11134 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11136 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11137 | else |
81ecdfbb RW |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11139 | $as_echo "no" >&6; } | |
9a819804 AO |
11140 | fi |
11141 | ||
81ecdfbb | 11142 | |
9a819804 AO |
11143 | done |
11144 | fi | |
11145 | ||
11146 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11147 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11149 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11150 | if test -x $with_build_time_tools/${ncn_progname}; then |
11151 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11153 | $as_echo "yes" >&6; } | |
2429c060 PB |
11154 | break |
11155 | else | |
81ecdfbb RW |
11156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11157 | $as_echo "no" >&6; } | |
2429c060 PB |
11158 | fi |
11159 | done | |
11160 | fi | |
11161 | ||
11162 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11163 | for ncn_progname in dlltool; do | |
11164 | if test -n "$ncn_target_tool_prefix"; then | |
11165 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11166 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11168 | $as_echo_n "checking for $ac_word... " >&6; } | |
11169 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11170 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11171 | else |
11172 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11173 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11174 | else | |
c6b750e1 DJ |
11175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11176 | for as_dir in $PATH | |
11177 | do | |
11178 | IFS=$as_save_IFS | |
11179 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11180 | for ac_exec_ext in '' $ac_executable_extensions; do |
11181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11182 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11184 | break 2 |
11185 | fi | |
11186 | done | |
81ecdfbb RW |
11187 | done |
11188 | IFS=$as_save_IFS | |
c6b750e1 | 11189 | |
2429c060 PB |
11190 | fi |
11191 | fi | |
c6b750e1 | 11192 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11193 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11195 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11196 | else |
81ecdfbb RW |
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11198 | $as_echo "no" >&6; } | |
2429c060 PB |
11199 | fi |
11200 | ||
81ecdfbb | 11201 | |
2429c060 PB |
11202 | fi |
11203 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11204 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11205 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11207 | $as_echo_n "checking for $ac_word... " >&6; } | |
11208 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11209 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11210 | else |
11211 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11212 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11213 | else | |
c6b750e1 DJ |
11214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11215 | for as_dir in $PATH | |
11216 | do | |
11217 | IFS=$as_save_IFS | |
11218 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11219 | for ac_exec_ext in '' $ac_executable_extensions; do |
11220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11221 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11223 | break 2 |
11224 | fi | |
11225 | done | |
81ecdfbb RW |
11226 | done |
11227 | IFS=$as_save_IFS | |
c6b750e1 | 11228 | |
2429c060 PB |
11229 | fi |
11230 | fi | |
c6b750e1 | 11231 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11232 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11234 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11235 | else |
81ecdfbb RW |
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11237 | $as_echo "no" >&6; } | |
2429c060 | 11238 | fi |
c6b750e1 | 11239 | |
81ecdfbb | 11240 | |
2429c060 PB |
11241 | fi |
11242 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11243 | done | |
11244 | fi | |
c6b750e1 | 11245 | |
2429c060 PB |
11246 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11247 | set dummy dlltool | |
11248 | if test $build = $target ; then | |
11249 | DLLTOOL_FOR_TARGET="$2" | |
11250 | else | |
11251 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11252 | fi | |
d3f5afc4 MS |
11253 | else |
11254 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11255 | fi |
11256 | ||
3a35eeb3 PB |
11257 | else |
11258 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11259 | fi |
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11265 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11267 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11268 | if test -x $with_build_time_tools/ld; then |
11269 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11270 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11272 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11273 | else |
81ecdfbb RW |
11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11275 | $as_echo "no" >&6; } | |
3a35eeb3 | 11276 | fi |
2429c060 PB |
11277 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11278 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11279 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11280 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11281 | fi |
11282 | fi | |
c6b750e1 | 11283 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11284 | # Extract the first word of "ld", so it can be a program name with args. |
11285 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11287 | $as_echo_n "checking for $ac_word... " >&6; } | |
11288 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11289 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11290 | else |
c6b750e1 DJ |
11291 | case $LD_FOR_TARGET in |
11292 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11293 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11294 | ;; | |
2429c060 | 11295 | *) |
c6b750e1 DJ |
11296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11297 | for as_dir in $gcc_cv_tool_dirs | |
11298 | do | |
11299 | IFS=$as_save_IFS | |
11300 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11301 | for ac_exec_ext in '' $ac_executable_extensions; do |
11302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11303 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11305 | break 2 |
11306 | fi | |
11307 | done | |
81ecdfbb RW |
11308 | done |
11309 | IFS=$as_save_IFS | |
c6b750e1 | 11310 | |
2429c060 PB |
11311 | ;; |
11312 | esac | |
11313 | fi | |
c6b750e1 | 11314 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11315 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11317 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11318 | else |
81ecdfbb RW |
11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11320 | $as_echo "no" >&6; } | |
2429c060 PB |
11321 | fi |
11322 | ||
81ecdfbb | 11323 | |
2429c060 PB |
11324 | fi |
11325 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11326 | |
11327 | ||
11328 | if test -n "$LD_FOR_TARGET"; then | |
11329 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11330 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11331 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11332 | fi | |
11333 | ||
11334 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11335 | for ncn_progname in ld; do | |
11336 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11337 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11339 | $as_echo_n "checking for $ac_word... " >&6; } | |
11340 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11341 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11342 | else |
11343 | if test -n "$LD_FOR_TARGET"; then | |
11344 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11345 | else | |
11346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11347 | for as_dir in $PATH | |
11348 | do | |
11349 | IFS=$as_save_IFS | |
11350 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11351 | for ac_exec_ext in '' $ac_executable_extensions; do |
11352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11353 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11355 | break 2 |
11356 | fi | |
11357 | done | |
81ecdfbb RW |
11358 | done |
11359 | IFS=$as_save_IFS | |
9a819804 AO |
11360 | |
11361 | fi | |
11362 | fi | |
11363 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11364 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11366 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11367 | else |
81ecdfbb RW |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11369 | $as_echo "no" >&6; } | |
9a819804 AO |
11370 | fi |
11371 | ||
81ecdfbb | 11372 | |
9a819804 AO |
11373 | done |
11374 | fi | |
11375 | ||
11376 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11377 | for ncn_progname in ld; do |
81ecdfbb RW |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11379 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11380 | if test -x $with_build_time_tools/${ncn_progname}; then |
11381 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11383 | $as_echo "yes" >&6; } | |
2429c060 PB |
11384 | break |
11385 | else | |
81ecdfbb RW |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11387 | $as_echo "no" >&6; } | |
2429c060 PB |
11388 | fi |
11389 | done | |
11390 | fi | |
11391 | ||
11392 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11393 | for ncn_progname in ld; do | |
11394 | if test -n "$ncn_target_tool_prefix"; then | |
11395 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11396 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11398 | $as_echo_n "checking for $ac_word... " >&6; } | |
11399 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11400 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11401 | else |
11402 | if test -n "$LD_FOR_TARGET"; then | |
11403 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11404 | else | |
c6b750e1 DJ |
11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11406 | for as_dir in $PATH | |
11407 | do | |
11408 | IFS=$as_save_IFS | |
11409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11410 | for ac_exec_ext in '' $ac_executable_extensions; do |
11411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11412 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11414 | break 2 |
11415 | fi | |
11416 | done | |
81ecdfbb RW |
11417 | done |
11418 | IFS=$as_save_IFS | |
c6b750e1 | 11419 | |
2429c060 PB |
11420 | fi |
11421 | fi | |
c6b750e1 | 11422 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11423 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11425 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11426 | else |
81ecdfbb RW |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11428 | $as_echo "no" >&6; } | |
2429c060 PB |
11429 | fi |
11430 | ||
81ecdfbb | 11431 | |
2429c060 PB |
11432 | fi |
11433 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11434 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11435 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11437 | $as_echo_n "checking for $ac_word... " >&6; } | |
11438 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11439 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11440 | else |
11441 | if test -n "$LD_FOR_TARGET"; then | |
11442 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11443 | else | |
c6b750e1 DJ |
11444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11445 | for as_dir in $PATH | |
11446 | do | |
11447 | IFS=$as_save_IFS | |
11448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11449 | for ac_exec_ext in '' $ac_executable_extensions; do |
11450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11451 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11453 | break 2 |
11454 | fi | |
11455 | done | |
81ecdfbb RW |
11456 | done |
11457 | IFS=$as_save_IFS | |
c6b750e1 | 11458 | |
2429c060 PB |
11459 | fi |
11460 | fi | |
c6b750e1 | 11461 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11462 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11464 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11465 | else |
81ecdfbb RW |
11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11467 | $as_echo "no" >&6; } | |
2429c060 | 11468 | fi |
c6b750e1 | 11469 | |
81ecdfbb | 11470 | |
2429c060 PB |
11471 | fi |
11472 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11473 | done | |
11474 | fi | |
c6b750e1 | 11475 | |
2429c060 PB |
11476 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11477 | set dummy ld | |
11478 | if test $build = $target ; then | |
11479 | LD_FOR_TARGET="$2" | |
11480 | else | |
11481 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11482 | fi | |
d3f5afc4 MS |
11483 | else |
11484 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11485 | fi |
11486 | ||
3a35eeb3 PB |
11487 | else |
11488 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11489 | fi |
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11495 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11497 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11498 | if test -x $with_build_time_tools/lipo; then |
11499 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11500 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11502 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11503 | else |
81ecdfbb RW |
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11505 | $as_echo "no" >&6; } | |
3a35eeb3 | 11506 | fi |
2429c060 PB |
11507 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11508 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11509 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11510 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11511 | fi |
11512 | fi | |
9a819804 AO |
11513 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11514 | # Extract the first word of "lipo", so it can be a program name with args. | |
11515 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11517 | $as_echo_n "checking for $ac_word... " >&6; } | |
11518 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11519 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11520 | else |
11521 | case $LIPO_FOR_TARGET in | |
11522 | [\\/]* | ?:[\\/]*) | |
11523 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11524 | ;; | |
11525 | *) | |
11526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11527 | for as_dir in $gcc_cv_tool_dirs | |
11528 | do | |
11529 | IFS=$as_save_IFS | |
11530 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11531 | for ac_exec_ext in '' $ac_executable_extensions; do |
11532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11533 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11535 | break 2 |
11536 | fi | |
11537 | done | |
81ecdfbb RW |
11538 | done |
11539 | IFS=$as_save_IFS | |
9a819804 AO |
11540 | |
11541 | ;; | |
11542 | esac | |
11543 | fi | |
11544 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11545 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11547 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11548 | else |
81ecdfbb RW |
11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11550 | $as_echo "no" >&6; } | |
9a819804 AO |
11551 | fi |
11552 | ||
81ecdfbb | 11553 | |
9a819804 AO |
11554 | fi |
11555 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11556 | ||
11557 | ||
11558 | if test -n "$LIPO_FOR_TARGET"; then | |
11559 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11560 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11561 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11562 | fi | |
11563 | ||
11564 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11565 | for ncn_progname in lipo; do | |
11566 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11567 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11569 | $as_echo_n "checking for $ac_word... " >&6; } | |
11570 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11571 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11572 | else |
9a819804 AO |
11573 | if test -n "$LIPO_FOR_TARGET"; then |
11574 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11575 | else | |
11576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11577 | for as_dir in $PATH | |
c6b750e1 DJ |
11578 | do |
11579 | IFS=$as_save_IFS | |
11580 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11581 | for ac_exec_ext in '' $ac_executable_extensions; do |
11582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11583 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11585 | break 2 |
11586 | fi | |
11587 | done | |
81ecdfbb RW |
11588 | done |
11589 | IFS=$as_save_IFS | |
c6b750e1 | 11590 | |
2429c060 | 11591 | fi |
9a819804 AO |
11592 | fi |
11593 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11594 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11596 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11597 | else |
81ecdfbb RW |
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11599 | $as_echo "no" >&6; } | |
2429c060 PB |
11600 | fi |
11601 | ||
81ecdfbb | 11602 | |
9a819804 | 11603 | done |
2429c060 | 11604 | fi |
9a819804 AO |
11605 | |
11606 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11607 | for ncn_progname in lipo; do |
81ecdfbb RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11609 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11610 | if test -x $with_build_time_tools/${ncn_progname}; then |
11611 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11613 | $as_echo "yes" >&6; } | |
2429c060 PB |
11614 | break |
11615 | else | |
81ecdfbb RW |
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11617 | $as_echo "no" >&6; } | |
2429c060 PB |
11618 | fi |
11619 | done | |
11620 | fi | |
11621 | ||
11622 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11623 | for ncn_progname in lipo; do | |
11624 | if test -n "$ncn_target_tool_prefix"; then | |
11625 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11626 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11628 | $as_echo_n "checking for $ac_word... " >&6; } | |
11629 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11630 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11631 | else |
11632 | if test -n "$LIPO_FOR_TARGET"; then | |
11633 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11634 | else | |
c6b750e1 DJ |
11635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11636 | for as_dir in $PATH | |
11637 | do | |
11638 | IFS=$as_save_IFS | |
11639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11640 | for ac_exec_ext in '' $ac_executable_extensions; do |
11641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11642 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11644 | break 2 |
11645 | fi | |
11646 | done | |
81ecdfbb RW |
11647 | done |
11648 | IFS=$as_save_IFS | |
c6b750e1 | 11649 | |
2429c060 PB |
11650 | fi |
11651 | fi | |
c6b750e1 | 11652 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11653 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11655 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11656 | else |
81ecdfbb RW |
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11658 | $as_echo "no" >&6; } | |
2429c060 PB |
11659 | fi |
11660 | ||
81ecdfbb | 11661 | |
2429c060 PB |
11662 | fi |
11663 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11664 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11665 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11667 | $as_echo_n "checking for $ac_word... " >&6; } | |
11668 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11669 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11670 | else |
11671 | if test -n "$LIPO_FOR_TARGET"; then | |
11672 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11673 | else | |
c6b750e1 DJ |
11674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11675 | for as_dir in $PATH | |
11676 | do | |
11677 | IFS=$as_save_IFS | |
11678 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11679 | for ac_exec_ext in '' $ac_executable_extensions; do |
11680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11681 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11683 | break 2 |
11684 | fi | |
11685 | done | |
81ecdfbb RW |
11686 | done |
11687 | IFS=$as_save_IFS | |
c6b750e1 | 11688 | |
2429c060 PB |
11689 | fi |
11690 | fi | |
c6b750e1 | 11691 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11692 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11694 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11695 | else |
81ecdfbb RW |
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11697 | $as_echo "no" >&6; } | |
2429c060 | 11698 | fi |
c6b750e1 | 11699 | |
81ecdfbb | 11700 | |
2429c060 PB |
11701 | fi |
11702 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11703 | done | |
11704 | fi | |
c6b750e1 | 11705 | |
2429c060 PB |
11706 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11707 | set dummy lipo | |
11708 | if test $build = $target ; then | |
11709 | LIPO_FOR_TARGET="$2" | |
11710 | else | |
11711 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11712 | fi | |
d3f5afc4 MS |
11713 | else |
11714 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11715 | fi |
11716 | ||
3a35eeb3 PB |
11717 | else |
11718 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11719 | fi |
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11725 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11727 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11728 | if test -x $with_build_time_tools/nm; then |
11729 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11730 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11732 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11733 | else |
81ecdfbb RW |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11735 | $as_echo "no" >&6; } | |
3a35eeb3 | 11736 | fi |
2429c060 PB |
11737 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11738 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11739 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11740 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11741 | fi |
11742 | fi | |
c6b750e1 | 11743 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11744 | # Extract the first word of "nm", so it can be a program name with args. |
11745 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11747 | $as_echo_n "checking for $ac_word... " >&6; } | |
11748 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11749 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11750 | else |
c6b750e1 DJ |
11751 | case $NM_FOR_TARGET in |
11752 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11753 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11754 | ;; | |
2429c060 | 11755 | *) |
c6b750e1 DJ |
11756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11757 | for as_dir in $gcc_cv_tool_dirs | |
11758 | do | |
11759 | IFS=$as_save_IFS | |
11760 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11761 | for ac_exec_ext in '' $ac_executable_extensions; do |
11762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11763 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11765 | break 2 |
11766 | fi | |
11767 | done | |
81ecdfbb RW |
11768 | done |
11769 | IFS=$as_save_IFS | |
c6b750e1 | 11770 | |
2429c060 PB |
11771 | ;; |
11772 | esac | |
11773 | fi | |
c6b750e1 | 11774 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11775 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11777 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11778 | else |
81ecdfbb RW |
11779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11780 | $as_echo "no" >&6; } | |
2429c060 PB |
11781 | fi |
11782 | ||
81ecdfbb | 11783 | |
2429c060 PB |
11784 | fi |
11785 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11786 | |
11787 | ||
11788 | if test -n "$NM_FOR_TARGET"; then | |
11789 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11790 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11791 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11792 | fi | |
11793 | ||
11794 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11795 | for ncn_progname in nm; do | |
11796 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11797 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11799 | $as_echo_n "checking for $ac_word... " >&6; } | |
11800 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11801 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11802 | else |
11803 | if test -n "$NM_FOR_TARGET"; then | |
11804 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11805 | else | |
11806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11807 | for as_dir in $PATH | |
11808 | do | |
11809 | IFS=$as_save_IFS | |
11810 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11811 | for ac_exec_ext in '' $ac_executable_extensions; do |
11812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11813 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11815 | break 2 |
11816 | fi | |
11817 | done | |
81ecdfbb RW |
11818 | done |
11819 | IFS=$as_save_IFS | |
9a819804 AO |
11820 | |
11821 | fi | |
11822 | fi | |
11823 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11824 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11826 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 11827 | else |
81ecdfbb RW |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11829 | $as_echo "no" >&6; } | |
9a819804 AO |
11830 | fi |
11831 | ||
81ecdfbb | 11832 | |
9a819804 AO |
11833 | done |
11834 | fi | |
11835 | ||
11836 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11837 | for ncn_progname in nm; do |
81ecdfbb RW |
11838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11839 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11840 | if test -x $with_build_time_tools/${ncn_progname}; then |
11841 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11843 | $as_echo "yes" >&6; } | |
2429c060 PB |
11844 | break |
11845 | else | |
81ecdfbb RW |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11847 | $as_echo "no" >&6; } | |
2429c060 PB |
11848 | fi |
11849 | done | |
11850 | fi | |
11851 | ||
11852 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11853 | for ncn_progname in nm; do | |
11854 | if test -n "$ncn_target_tool_prefix"; then | |
11855 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11856 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11858 | $as_echo_n "checking for $ac_word... " >&6; } | |
11859 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11860 | $as_echo_n "(cached) " >&6 | |
859789af | 11861 | else |
55db4b87 PB |
11862 | if test -n "$NM_FOR_TARGET"; then |
11863 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11864 | else |
c6b750e1 DJ |
11865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11866 | for as_dir in $PATH | |
11867 | do | |
11868 | IFS=$as_save_IFS | |
11869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11870 | for ac_exec_ext in '' $ac_executable_extensions; do |
11871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11872 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11874 | break 2 |
11875 | fi | |
11876 | done | |
81ecdfbb RW |
11877 | done |
11878 | IFS=$as_save_IFS | |
c6b750e1 | 11879 | |
859789af AC |
11880 | fi |
11881 | fi | |
c6b750e1 | 11882 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 11883 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11885 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11886 | else |
81ecdfbb RW |
11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11888 | $as_echo "no" >&6; } | |
859789af AC |
11889 | fi |
11890 | ||
81ecdfbb | 11891 | |
2429c060 PB |
11892 | fi |
11893 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11894 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11895 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11897 | $as_echo_n "checking for $ac_word... " >&6; } | |
11898 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11899 | $as_echo_n "(cached) " >&6 | |
859789af | 11900 | else |
05cbd757 PB |
11901 | if test -n "$NM_FOR_TARGET"; then |
11902 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11903 | else |
c6b750e1 DJ |
11904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11905 | for as_dir in $PATH | |
11906 | do | |
11907 | IFS=$as_save_IFS | |
11908 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11909 | for ac_exec_ext in '' $ac_executable_extensions; do |
11910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11911 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11913 | break 2 |
11914 | fi | |
11915 | done | |
81ecdfbb RW |
11916 | done |
11917 | IFS=$as_save_IFS | |
c6b750e1 | 11918 | |
859789af AC |
11919 | fi |
11920 | fi | |
c6b750e1 | 11921 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 11922 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11924 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11925 | else |
81ecdfbb RW |
11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11927 | $as_echo "no" >&6; } | |
859789af | 11928 | fi |
c6b750e1 | 11929 | |
81ecdfbb | 11930 | |
2429c060 PB |
11931 | fi |
11932 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11933 | done | |
11934 | fi | |
c6b750e1 | 11935 | |
05cbd757 PB |
11936 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11937 | set dummy nm | |
11938 | if test $build = $target ; then | |
11939 | NM_FOR_TARGET="$2" | |
859789af | 11940 | else |
05cbd757 | 11941 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 11942 | fi |
d3f5afc4 MS |
11943 | else |
11944 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
11945 | fi |
11946 | ||
3a35eeb3 PB |
11947 | else |
11948 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
11949 | fi |
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11955 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11957 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11958 | if test -x $with_build_time_tools/objdump; then |
11959 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11960 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11962 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 11963 | else |
81ecdfbb RW |
11964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11965 | $as_echo "no" >&6; } | |
3a35eeb3 | 11966 | fi |
2429c060 PB |
11967 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11968 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
11969 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11970 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
11971 | fi |
11972 | fi | |
c6b750e1 | 11973 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11974 | # Extract the first word of "objdump", so it can be a program name with args. |
11975 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11977 | $as_echo_n "checking for $ac_word... " >&6; } | |
11978 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11979 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11980 | else |
c6b750e1 DJ |
11981 | case $OBJDUMP_FOR_TARGET in |
11982 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11983 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
11984 | ;; | |
2429c060 | 11985 | *) |
c6b750e1 DJ |
11986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11987 | for as_dir in $gcc_cv_tool_dirs | |
11988 | do | |
11989 | IFS=$as_save_IFS | |
11990 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11991 | for ac_exec_ext in '' $ac_executable_extensions; do |
11992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11993 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11995 | break 2 |
11996 | fi | |
11997 | done | |
81ecdfbb RW |
11998 | done |
11999 | IFS=$as_save_IFS | |
c6b750e1 | 12000 | |
2429c060 PB |
12001 | ;; |
12002 | esac | |
12003 | fi | |
c6b750e1 | 12004 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12005 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12007 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12008 | else |
81ecdfbb RW |
12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12010 | $as_echo "no" >&6; } | |
2429c060 PB |
12011 | fi |
12012 | ||
81ecdfbb | 12013 | |
2429c060 PB |
12014 | fi |
12015 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12016 | |
12017 | ||
12018 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12019 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12020 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12021 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12022 | fi | |
12023 | ||
12024 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12025 | for ncn_progname in objdump; do | |
12026 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12027 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12029 | $as_echo_n "checking for $ac_word... " >&6; } | |
12030 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12031 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12032 | else |
12033 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12034 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12035 | else | |
12036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12037 | for as_dir in $PATH | |
12038 | do | |
12039 | IFS=$as_save_IFS | |
12040 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12041 | for ac_exec_ext in '' $ac_executable_extensions; do |
12042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12043 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12045 | break 2 |
12046 | fi | |
12047 | done | |
81ecdfbb RW |
12048 | done |
12049 | IFS=$as_save_IFS | |
9a819804 AO |
12050 | |
12051 | fi | |
12052 | fi | |
12053 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12054 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12056 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12057 | else |
81ecdfbb RW |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12059 | $as_echo "no" >&6; } | |
9a819804 AO |
12060 | fi |
12061 | ||
81ecdfbb | 12062 | |
9a819804 AO |
12063 | done |
12064 | fi | |
12065 | ||
12066 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12067 | for ncn_progname in objdump; do |
81ecdfbb RW |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12069 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12070 | if test -x $with_build_time_tools/${ncn_progname}; then |
12071 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12073 | $as_echo "yes" >&6; } | |
2429c060 PB |
12074 | break |
12075 | else | |
81ecdfbb RW |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12077 | $as_echo "no" >&6; } | |
2429c060 PB |
12078 | fi |
12079 | done | |
12080 | fi | |
12081 | ||
12082 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12083 | for ncn_progname in objdump; do | |
12084 | if test -n "$ncn_target_tool_prefix"; then | |
12085 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12086 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12088 | $as_echo_n "checking for $ac_word... " >&6; } | |
12089 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12090 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12091 | else |
12092 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12093 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12094 | else | |
c6b750e1 DJ |
12095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12096 | for as_dir in $PATH | |
12097 | do | |
12098 | IFS=$as_save_IFS | |
12099 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12100 | for ac_exec_ext in '' $ac_executable_extensions; do |
12101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12102 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12104 | break 2 |
12105 | fi | |
12106 | done | |
81ecdfbb RW |
12107 | done |
12108 | IFS=$as_save_IFS | |
c6b750e1 | 12109 | |
5ae72758 DJ |
12110 | fi |
12111 | fi | |
c6b750e1 | 12112 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12113 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12115 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12116 | else |
81ecdfbb RW |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12118 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12119 | fi |
12120 | ||
81ecdfbb | 12121 | |
2429c060 PB |
12122 | fi |
12123 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12124 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12125 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12127 | $as_echo_n "checking for $ac_word... " >&6; } | |
12128 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12129 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12130 | else |
12131 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12132 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12133 | else | |
c6b750e1 DJ |
12134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12135 | for as_dir in $PATH | |
12136 | do | |
12137 | IFS=$as_save_IFS | |
12138 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12139 | for ac_exec_ext in '' $ac_executable_extensions; do |
12140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12141 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12143 | break 2 |
12144 | fi | |
12145 | done | |
81ecdfbb RW |
12146 | done |
12147 | IFS=$as_save_IFS | |
c6b750e1 | 12148 | |
5ae72758 DJ |
12149 | fi |
12150 | fi | |
c6b750e1 | 12151 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12152 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12154 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12155 | else |
81ecdfbb RW |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12157 | $as_echo "no" >&6; } | |
5ae72758 | 12158 | fi |
c6b750e1 | 12159 | |
81ecdfbb | 12160 | |
2429c060 PB |
12161 | fi |
12162 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12163 | done | |
12164 | fi | |
c6b750e1 | 12165 | |
5ae72758 DJ |
12166 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12167 | set dummy objdump | |
12168 | if test $build = $target ; then | |
12169 | OBJDUMP_FOR_TARGET="$2" | |
12170 | else | |
12171 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12172 | fi | |
d3f5afc4 MS |
12173 | else |
12174 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12175 | fi |
12176 | ||
3a35eeb3 PB |
12177 | else |
12178 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12179 | fi |
12180 | ||
12181 | ||
12182 | ||
12183 | ||
12184 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12185 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12187 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12188 | if test -x $with_build_time_tools/ranlib; then |
12189 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12190 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12192 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12193 | else |
81ecdfbb RW |
12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12195 | $as_echo "no" >&6; } | |
3a35eeb3 | 12196 | fi |
2429c060 PB |
12197 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12198 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12199 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12200 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12201 | fi |
12202 | fi | |
c6b750e1 | 12203 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12204 | # Extract the first word of "ranlib", so it can be a program name with args. |
12205 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12207 | $as_echo_n "checking for $ac_word... " >&6; } | |
12208 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12209 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12210 | else |
c6b750e1 DJ |
12211 | case $RANLIB_FOR_TARGET in |
12212 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12213 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12214 | ;; | |
2429c060 | 12215 | *) |
c6b750e1 DJ |
12216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12217 | for as_dir in $gcc_cv_tool_dirs | |
12218 | do | |
12219 | IFS=$as_save_IFS | |
12220 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12221 | for ac_exec_ext in '' $ac_executable_extensions; do |
12222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12223 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12225 | break 2 |
12226 | fi | |
12227 | done | |
81ecdfbb RW |
12228 | done |
12229 | IFS=$as_save_IFS | |
c6b750e1 | 12230 | |
2429c060 PB |
12231 | ;; |
12232 | esac | |
12233 | fi | |
c6b750e1 | 12234 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12235 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12237 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12238 | else |
81ecdfbb RW |
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12240 | $as_echo "no" >&6; } | |
2429c060 PB |
12241 | fi |
12242 | ||
81ecdfbb | 12243 | |
2429c060 PB |
12244 | fi |
12245 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12246 | |
12247 | ||
12248 | if test -n "$RANLIB_FOR_TARGET"; then | |
12249 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12250 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12251 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12252 | fi | |
12253 | ||
12254 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12255 | for ncn_progname in ranlib; do | |
12256 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12257 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12259 | $as_echo_n "checking for $ac_word... " >&6; } | |
12260 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12261 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12262 | else |
12263 | if test -n "$RANLIB_FOR_TARGET"; then | |
12264 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12265 | else | |
12266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12267 | for as_dir in $PATH | |
12268 | do | |
12269 | IFS=$as_save_IFS | |
12270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12271 | for ac_exec_ext in '' $ac_executable_extensions; do |
12272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12273 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12275 | break 2 |
12276 | fi | |
12277 | done | |
81ecdfbb RW |
12278 | done |
12279 | IFS=$as_save_IFS | |
9a819804 AO |
12280 | |
12281 | fi | |
12282 | fi | |
12283 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12284 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12286 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12287 | else |
81ecdfbb RW |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12289 | $as_echo "no" >&6; } | |
9a819804 AO |
12290 | fi |
12291 | ||
81ecdfbb | 12292 | |
9a819804 AO |
12293 | done |
12294 | fi | |
12295 | ||
12296 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12297 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12299 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12300 | if test -x $with_build_time_tools/${ncn_progname}; then |
12301 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12303 | $as_echo "yes" >&6; } | |
2429c060 PB |
12304 | break |
12305 | else | |
81ecdfbb RW |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12307 | $as_echo "no" >&6; } | |
2429c060 PB |
12308 | fi |
12309 | done | |
12310 | fi | |
12311 | ||
12312 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12313 | for ncn_progname in ranlib; do | |
12314 | if test -n "$ncn_target_tool_prefix"; then | |
12315 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12316 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12318 | $as_echo_n "checking for $ac_word... " >&6; } | |
12319 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12320 | $as_echo_n "(cached) " >&6 | |
859789af | 12321 | else |
55db4b87 PB |
12322 | if test -n "$RANLIB_FOR_TARGET"; then |
12323 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12324 | else |
c6b750e1 DJ |
12325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12326 | for as_dir in $PATH | |
12327 | do | |
12328 | IFS=$as_save_IFS | |
12329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12330 | for ac_exec_ext in '' $ac_executable_extensions; do |
12331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12332 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12334 | break 2 |
12335 | fi | |
12336 | done | |
81ecdfbb RW |
12337 | done |
12338 | IFS=$as_save_IFS | |
c6b750e1 | 12339 | |
859789af AC |
12340 | fi |
12341 | fi | |
c6b750e1 | 12342 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12343 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12345 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12346 | else |
81ecdfbb RW |
12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12348 | $as_echo "no" >&6; } | |
859789af AC |
12349 | fi |
12350 | ||
81ecdfbb | 12351 | |
2429c060 PB |
12352 | fi |
12353 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12354 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12355 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12357 | $as_echo_n "checking for $ac_word... " >&6; } | |
12358 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12359 | $as_echo_n "(cached) " >&6 | |
859789af | 12360 | else |
05cbd757 PB |
12361 | if test -n "$RANLIB_FOR_TARGET"; then |
12362 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12363 | else |
c6b750e1 DJ |
12364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12365 | for as_dir in $PATH | |
12366 | do | |
12367 | IFS=$as_save_IFS | |
12368 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12369 | for ac_exec_ext in '' $ac_executable_extensions; do |
12370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12371 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12373 | break 2 |
12374 | fi | |
12375 | done | |
81ecdfbb RW |
12376 | done |
12377 | IFS=$as_save_IFS | |
c6b750e1 | 12378 | |
859789af AC |
12379 | fi |
12380 | fi | |
c6b750e1 | 12381 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12382 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12384 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12385 | else |
81ecdfbb RW |
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12387 | $as_echo "no" >&6; } | |
859789af | 12388 | fi |
c6b750e1 | 12389 | |
81ecdfbb | 12390 | |
2429c060 PB |
12391 | fi |
12392 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12393 | done | |
12394 | fi | |
c6b750e1 | 12395 | |
2429c060 PB |
12396 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12397 | set dummy ranlib | |
12398 | if test $build = $target ; then | |
12399 | RANLIB_FOR_TARGET="$2" | |
12400 | else | |
12401 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12402 | fi |
d3f5afc4 MS |
12403 | else |
12404 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12405 | fi |
05cbd757 | 12406 | |
3a35eeb3 PB |
12407 | else |
12408 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12409 | fi |
12410 | ||
2429c060 PB |
12411 | |
12412 | ||
12413 | ||
b121d7d4 DD |
12414 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12415 | if test -n "$with_build_time_tools"; then | |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12417 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12418 | if test -x $with_build_time_tools/readelf; then | |
12419 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12420 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12422 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12423 | else | |
12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12425 | $as_echo "no" >&6; } | |
12426 | fi | |
12427 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12428 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12429 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12430 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12431 | fi | |
12432 | fi | |
12433 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12434 | # Extract the first word of "readelf", so it can be a program name with args. | |
12435 | set dummy readelf; ac_word=$2 | |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12437 | $as_echo_n "checking for $ac_word... " >&6; } | |
12438 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12439 | $as_echo_n "(cached) " >&6 | |
12440 | else | |
12441 | case $READELF_FOR_TARGET in | |
12442 | [\\/]* | ?:[\\/]*) | |
12443 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12444 | ;; | |
12445 | *) | |
12446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12447 | for as_dir in $gcc_cv_tool_dirs | |
12448 | do | |
12449 | IFS=$as_save_IFS | |
12450 | test -z "$as_dir" && as_dir=. | |
12451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12453 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12455 | break 2 | |
12456 | fi | |
12457 | done | |
12458 | done | |
12459 | IFS=$as_save_IFS | |
12460 | ||
12461 | ;; | |
12462 | esac | |
12463 | fi | |
12464 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12465 | if test -n "$READELF_FOR_TARGET"; then | |
12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12467 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12468 | else | |
12469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12470 | $as_echo "no" >&6; } | |
12471 | fi | |
12472 | ||
12473 | ||
12474 | fi | |
12475 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12476 | ||
12477 | ||
12478 | if test -n "$READELF_FOR_TARGET"; then | |
12479 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12480 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12481 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12482 | fi | |
12483 | ||
12484 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12485 | for ncn_progname in readelf; do | |
12486 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12487 | set dummy ${ncn_progname}; ac_word=$2 | |
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12489 | $as_echo_n "checking for $ac_word... " >&6; } | |
12490 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12491 | $as_echo_n "(cached) " >&6 | |
12492 | else | |
12493 | if test -n "$READELF_FOR_TARGET"; then | |
12494 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12495 | else | |
12496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12497 | for as_dir in $PATH | |
12498 | do | |
12499 | IFS=$as_save_IFS | |
12500 | test -z "$as_dir" && as_dir=. | |
12501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12502 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12503 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12505 | break 2 | |
12506 | fi | |
12507 | done | |
12508 | done | |
12509 | IFS=$as_save_IFS | |
12510 | ||
12511 | fi | |
12512 | fi | |
12513 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12514 | if test -n "$READELF_FOR_TARGET"; then | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12516 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12517 | else | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12519 | $as_echo "no" >&6; } | |
12520 | fi | |
12521 | ||
12522 | ||
12523 | done | |
12524 | fi | |
12525 | ||
12526 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12527 | for ncn_progname in readelf; do | |
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12529 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12530 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12531 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12533 | $as_echo "yes" >&6; } | |
12534 | break | |
12535 | else | |
12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12537 | $as_echo "no" >&6; } | |
12538 | fi | |
12539 | done | |
12540 | fi | |
12541 | ||
12542 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12543 | for ncn_progname in readelf; do | |
12544 | if test -n "$ncn_target_tool_prefix"; then | |
12545 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12546 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12548 | $as_echo_n "checking for $ac_word... " >&6; } | |
12549 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12550 | $as_echo_n "(cached) " >&6 | |
12551 | else | |
12552 | if test -n "$READELF_FOR_TARGET"; then | |
12553 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12554 | else | |
12555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12556 | for as_dir in $PATH | |
12557 | do | |
12558 | IFS=$as_save_IFS | |
12559 | test -z "$as_dir" && as_dir=. | |
12560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12562 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12564 | break 2 | |
12565 | fi | |
12566 | done | |
12567 | done | |
12568 | IFS=$as_save_IFS | |
12569 | ||
12570 | fi | |
12571 | fi | |
12572 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12573 | if test -n "$READELF_FOR_TARGET"; then | |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12575 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12576 | else | |
12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12578 | $as_echo "no" >&6; } | |
12579 | fi | |
12580 | ||
12581 | ||
12582 | fi | |
12583 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12584 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12585 | set dummy ${ncn_progname}; ac_word=$2 | |
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12587 | $as_echo_n "checking for $ac_word... " >&6; } | |
12588 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12589 | $as_echo_n "(cached) " >&6 | |
12590 | else | |
12591 | if test -n "$READELF_FOR_TARGET"; then | |
12592 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12593 | else | |
12594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12595 | for as_dir in $PATH | |
12596 | do | |
12597 | IFS=$as_save_IFS | |
12598 | test -z "$as_dir" && as_dir=. | |
12599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12600 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12601 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12603 | break 2 | |
12604 | fi | |
12605 | done | |
12606 | done | |
12607 | IFS=$as_save_IFS | |
12608 | ||
12609 | fi | |
12610 | fi | |
12611 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12612 | if test -n "$READELF_FOR_TARGET"; then | |
12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12614 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12615 | else | |
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12617 | $as_echo "no" >&6; } | |
12618 | fi | |
12619 | ||
12620 | ||
12621 | fi | |
12622 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12623 | done | |
12624 | fi | |
12625 | ||
12626 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12627 | set dummy readelf | |
12628 | if test $build = $target ; then | |
12629 | READELF_FOR_TARGET="$2" | |
12630 | else | |
12631 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12632 | fi | |
12633 | else | |
12634 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
12635 | fi | |
12636 | ||
12637 | else | |
12638 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12639 | fi | |
12640 | ||
12641 | ||
12642 | ||
12643 | ||
2429c060 PB |
12644 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
12645 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12647 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12648 | if test -x $with_build_time_tools/strip; then |
12649 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12650 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12652 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12653 | else |
81ecdfbb RW |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12655 | $as_echo "no" >&6; } | |
3a35eeb3 | 12656 | fi |
2429c060 PB |
12657 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12658 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12659 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12660 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
12661 | fi |
12662 | fi | |
c6b750e1 | 12663 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12664 | # Extract the first word of "strip", so it can be a program name with args. |
12665 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12667 | $as_echo_n "checking for $ac_word... " >&6; } | |
12668 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12669 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12670 | else |
c6b750e1 DJ |
12671 | case $STRIP_FOR_TARGET in |
12672 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12673 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12674 | ;; | |
2429c060 | 12675 | *) |
c6b750e1 DJ |
12676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12677 | for as_dir in $gcc_cv_tool_dirs | |
12678 | do | |
12679 | IFS=$as_save_IFS | |
12680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12681 | for ac_exec_ext in '' $ac_executable_extensions; do |
12682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12683 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12685 | break 2 |
12686 | fi | |
12687 | done | |
81ecdfbb RW |
12688 | done |
12689 | IFS=$as_save_IFS | |
c6b750e1 | 12690 | |
2429c060 PB |
12691 | ;; |
12692 | esac | |
12693 | fi | |
c6b750e1 | 12694 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 12695 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12697 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 12698 | else |
81ecdfbb RW |
12699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12700 | $as_echo "no" >&6; } | |
2429c060 PB |
12701 | fi |
12702 | ||
81ecdfbb | 12703 | |
2429c060 PB |
12704 | fi |
12705 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
12706 | |
12707 | ||
12708 | if test -n "$STRIP_FOR_TARGET"; then | |
12709 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12710 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12711 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12712 | fi | |
12713 | ||
12714 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12715 | for ncn_progname in strip; do | |
12716 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12717 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12719 | $as_echo_n "checking for $ac_word... " >&6; } | |
12720 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12721 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12722 | else |
12723 | if test -n "$STRIP_FOR_TARGET"; then | |
12724 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12725 | else | |
12726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12727 | for as_dir in $PATH | |
12728 | do | |
12729 | IFS=$as_save_IFS | |
12730 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12731 | for ac_exec_ext in '' $ac_executable_extensions; do |
12732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12733 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12735 | break 2 |
12736 | fi | |
12737 | done | |
81ecdfbb RW |
12738 | done |
12739 | IFS=$as_save_IFS | |
9a819804 AO |
12740 | |
12741 | fi | |
12742 | fi | |
12743 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12744 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12746 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 12747 | else |
81ecdfbb RW |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12749 | $as_echo "no" >&6; } | |
9a819804 AO |
12750 | fi |
12751 | ||
81ecdfbb | 12752 | |
9a819804 AO |
12753 | done |
12754 | fi | |
12755 | ||
12756 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12757 | for ncn_progname in strip; do |
81ecdfbb RW |
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12759 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12760 | if test -x $with_build_time_tools/${ncn_progname}; then |
12761 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12763 | $as_echo "yes" >&6; } | |
2429c060 PB |
12764 | break |
12765 | else | |
81ecdfbb RW |
12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12767 | $as_echo "no" >&6; } | |
2429c060 PB |
12768 | fi |
12769 | done | |
12770 | fi | |
12771 | ||
12772 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12773 | for ncn_progname in strip; do | |
12774 | if test -n "$ncn_target_tool_prefix"; then | |
12775 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12776 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12778 | $as_echo_n "checking for $ac_word... " >&6; } | |
12779 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12780 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12781 | else |
12782 | if test -n "$STRIP_FOR_TARGET"; then | |
12783 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
12784 | else |
12785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12786 | for as_dir in $PATH | |
12787 | do | |
12788 | IFS=$as_save_IFS | |
12789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12790 | for ac_exec_ext in '' $ac_executable_extensions; do |
12791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12792 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12794 | break 2 |
12795 | fi | |
12796 | done | |
81ecdfbb RW |
12797 | done |
12798 | IFS=$as_save_IFS | |
c6b750e1 | 12799 | |
7e0f7140 GK |
12800 | fi |
12801 | fi | |
c6b750e1 | 12802 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12803 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12805 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12806 | else |
81ecdfbb RW |
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12808 | $as_echo "no" >&6; } | |
7e0f7140 GK |
12809 | fi |
12810 | ||
81ecdfbb | 12811 | |
2429c060 PB |
12812 | fi |
12813 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12815 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12817 | $as_echo_n "checking for $ac_word... " >&6; } | |
12818 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12819 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12820 | else |
12821 | if test -n "$STRIP_FOR_TARGET"; then | |
12822 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12823 | else | |
c6b750e1 DJ |
12824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12825 | for as_dir in $PATH | |
12826 | do | |
12827 | IFS=$as_save_IFS | |
12828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12829 | for ac_exec_ext in '' $ac_executable_extensions; do |
12830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12831 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12833 | break 2 |
12834 | fi | |
12835 | done | |
81ecdfbb RW |
12836 | done |
12837 | IFS=$as_save_IFS | |
c6b750e1 | 12838 | |
7e0f7140 GK |
12839 | fi |
12840 | fi | |
c6b750e1 | 12841 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12842 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12844 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12845 | else |
81ecdfbb RW |
12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12847 | $as_echo "no" >&6; } | |
7e0f7140 | 12848 | fi |
c6b750e1 | 12849 | |
81ecdfbb | 12850 | |
2429c060 PB |
12851 | fi |
12852 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12853 | done | |
12854 | fi | |
c6b750e1 | 12855 | |
7e0f7140 GK |
12856 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12857 | set dummy strip | |
12858 | if test $build = $target ; then | |
12859 | STRIP_FOR_TARGET="$2" | |
12860 | else | |
12861 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12862 | fi | |
d3f5afc4 MS |
12863 | else |
12864 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
12865 | fi |
12866 | ||
3a35eeb3 PB |
12867 | else |
12868 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
12869 | fi |
12870 | ||
12871 | ||
12872 | ||
12873 | ||
12874 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12875 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12877 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12878 | if test -x $with_build_time_tools/windres; then |
12879 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12880 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12882 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 12883 | else |
81ecdfbb RW |
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12885 | $as_echo "no" >&6; } | |
3a35eeb3 | 12886 | fi |
2429c060 PB |
12887 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12888 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
12889 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12890 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
12891 | fi |
12892 | fi | |
c6b750e1 | 12893 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12894 | # Extract the first word of "windres", so it can be a program name with args. |
12895 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12897 | $as_echo_n "checking for $ac_word... " >&6; } | |
12898 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12899 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12900 | else |
c6b750e1 DJ |
12901 | case $WINDRES_FOR_TARGET in |
12902 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12903 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12904 | ;; | |
2429c060 | 12905 | *) |
c6b750e1 DJ |
12906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12907 | for as_dir in $gcc_cv_tool_dirs | |
12908 | do | |
12909 | IFS=$as_save_IFS | |
12910 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12911 | for ac_exec_ext in '' $ac_executable_extensions; do |
12912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12913 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12915 | break 2 |
12916 | fi | |
12917 | done | |
81ecdfbb RW |
12918 | done |
12919 | IFS=$as_save_IFS | |
c6b750e1 | 12920 | |
2429c060 PB |
12921 | ;; |
12922 | esac | |
12923 | fi | |
c6b750e1 | 12924 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 12925 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12927 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 12928 | else |
81ecdfbb RW |
12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12930 | $as_echo "no" >&6; } | |
2429c060 PB |
12931 | fi |
12932 | ||
81ecdfbb | 12933 | |
2429c060 PB |
12934 | fi |
12935 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
12936 | |
12937 | ||
12938 | if test -n "$WINDRES_FOR_TARGET"; then | |
12939 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12940 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12941 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12942 | fi | |
12943 | ||
12944 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12945 | for ncn_progname in windres; do | |
12946 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12947 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12949 | $as_echo_n "checking for $ac_word... " >&6; } | |
12950 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12951 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12952 | else |
12953 | if test -n "$WINDRES_FOR_TARGET"; then | |
12954 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12955 | else | |
12956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12957 | for as_dir in $PATH | |
12958 | do | |
12959 | IFS=$as_save_IFS | |
12960 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12961 | for ac_exec_ext in '' $ac_executable_extensions; do |
12962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12963 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12965 | break 2 |
12966 | fi | |
12967 | done | |
81ecdfbb RW |
12968 | done |
12969 | IFS=$as_save_IFS | |
9a819804 AO |
12970 | |
12971 | fi | |
12972 | fi | |
12973 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12974 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12976 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 12977 | else |
81ecdfbb RW |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12979 | $as_echo "no" >&6; } | |
9a819804 AO |
12980 | fi |
12981 | ||
81ecdfbb | 12982 | |
9a819804 AO |
12983 | done |
12984 | fi | |
12985 | ||
12986 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12987 | for ncn_progname in windres; do |
81ecdfbb RW |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12989 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12990 | if test -x $with_build_time_tools/${ncn_progname}; then |
12991 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12993 | $as_echo "yes" >&6; } | |
2429c060 PB |
12994 | break |
12995 | else | |
81ecdfbb RW |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12997 | $as_echo "no" >&6; } | |
2429c060 PB |
12998 | fi |
12999 | done | |
13000 | fi | |
13001 | ||
13002 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13003 | for ncn_progname in windres; do | |
13004 | if test -n "$ncn_target_tool_prefix"; then | |
13005 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13006 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13008 | $as_echo_n "checking for $ac_word... " >&6; } | |
13009 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13010 | $as_echo_n "(cached) " >&6 | |
859789af | 13011 | else |
55db4b87 PB |
13012 | if test -n "$WINDRES_FOR_TARGET"; then |
13013 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13014 | else |
c6b750e1 DJ |
13015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13016 | for as_dir in $PATH | |
13017 | do | |
13018 | IFS=$as_save_IFS | |
13019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13020 | for ac_exec_ext in '' $ac_executable_extensions; do |
13021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13022 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13024 | break 2 |
13025 | fi | |
13026 | done | |
81ecdfbb RW |
13027 | done |
13028 | IFS=$as_save_IFS | |
c6b750e1 | 13029 | |
859789af AC |
13030 | fi |
13031 | fi | |
c6b750e1 | 13032 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13033 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13035 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13036 | else |
81ecdfbb RW |
13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13038 | $as_echo "no" >&6; } | |
859789af AC |
13039 | fi |
13040 | ||
81ecdfbb | 13041 | |
2429c060 PB |
13042 | fi |
13043 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13044 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13045 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13047 | $as_echo_n "checking for $ac_word... " >&6; } | |
13048 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13049 | $as_echo_n "(cached) " >&6 | |
859789af | 13050 | else |
05cbd757 PB |
13051 | if test -n "$WINDRES_FOR_TARGET"; then |
13052 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13053 | else |
c6b750e1 DJ |
13054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13055 | for as_dir in $PATH | |
13056 | do | |
13057 | IFS=$as_save_IFS | |
13058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13059 | for ac_exec_ext in '' $ac_executable_extensions; do |
13060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13061 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13063 | break 2 |
13064 | fi | |
13065 | done | |
81ecdfbb RW |
13066 | done |
13067 | IFS=$as_save_IFS | |
c6b750e1 | 13068 | |
859789af AC |
13069 | fi |
13070 | fi | |
c6b750e1 | 13071 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13072 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13074 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13075 | else |
81ecdfbb RW |
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13077 | $as_echo "no" >&6; } | |
859789af | 13078 | fi |
c6b750e1 | 13079 | |
81ecdfbb | 13080 | |
2429c060 PB |
13081 | fi |
13082 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13083 | done | |
13084 | fi | |
c6b750e1 | 13085 | |
05cbd757 PB |
13086 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13087 | set dummy windres | |
13088 | if test $build = $target ; then | |
13089 | WINDRES_FOR_TARGET="$2" | |
859789af | 13090 | else |
05cbd757 | 13091 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13092 | fi |
d3f5afc4 MS |
13093 | else |
13094 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13095 | fi |
13096 | ||
3a35eeb3 PB |
13097 | else |
13098 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13099 | fi |
13100 | ||
852e5f18 | 13101 | |
0c24b341 NC |
13102 | |
13103 | ||
13104 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13105 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13107 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13108 | if test -x $with_build_time_tools/windmc; then |
13109 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13110 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13112 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13113 | else |
81ecdfbb RW |
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13115 | $as_echo "no" >&6; } | |
0c24b341 NC |
13116 | fi |
13117 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13118 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13119 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13120 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13121 | fi | |
13122 | fi | |
13123 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13124 | # Extract the first word of "windmc", so it can be a program name with args. | |
13125 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13127 | $as_echo_n "checking for $ac_word... " >&6; } | |
13128 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13129 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13130 | else |
13131 | case $WINDMC_FOR_TARGET in | |
13132 | [\\/]* | ?:[\\/]*) | |
13133 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13134 | ;; | |
13135 | *) | |
13136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13137 | for as_dir in $gcc_cv_tool_dirs | |
13138 | do | |
13139 | IFS=$as_save_IFS | |
13140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13141 | for ac_exec_ext in '' $ac_executable_extensions; do |
13142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13143 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13145 | break 2 |
13146 | fi | |
13147 | done | |
81ecdfbb RW |
13148 | done |
13149 | IFS=$as_save_IFS | |
0c24b341 NC |
13150 | |
13151 | ;; | |
13152 | esac | |
13153 | fi | |
13154 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13155 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13157 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13158 | else |
81ecdfbb RW |
13159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13160 | $as_echo "no" >&6; } | |
0c24b341 NC |
13161 | fi |
13162 | ||
81ecdfbb | 13163 | |
0c24b341 NC |
13164 | fi |
13165 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13166 | ||
13167 | ||
13168 | if test -n "$WINDMC_FOR_TARGET"; then | |
13169 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13170 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13171 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13172 | fi | |
13173 | ||
13174 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13175 | for ncn_progname in windmc; do | |
13176 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13177 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13179 | $as_echo_n "checking for $ac_word... " >&6; } | |
13180 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13181 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13182 | else |
13183 | if test -n "$WINDMC_FOR_TARGET"; then | |
13184 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13185 | else | |
13186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13187 | for as_dir in $PATH | |
13188 | do | |
13189 | IFS=$as_save_IFS | |
13190 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13191 | for ac_exec_ext in '' $ac_executable_extensions; do |
13192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13193 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13195 | break 2 |
13196 | fi | |
13197 | done | |
81ecdfbb RW |
13198 | done |
13199 | IFS=$as_save_IFS | |
0c24b341 NC |
13200 | |
13201 | fi | |
13202 | fi | |
13203 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13204 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13206 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13207 | else |
81ecdfbb RW |
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13209 | $as_echo "no" >&6; } | |
0c24b341 NC |
13210 | fi |
13211 | ||
81ecdfbb | 13212 | |
0c24b341 NC |
13213 | done |
13214 | fi | |
13215 | ||
13216 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13217 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13219 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13220 | if test -x $with_build_time_tools/${ncn_progname}; then |
13221 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13223 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13224 | break |
13225 | else | |
81ecdfbb RW |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13227 | $as_echo "no" >&6; } | |
0c24b341 NC |
13228 | fi |
13229 | done | |
13230 | fi | |
13231 | ||
13232 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13233 | for ncn_progname in windmc; do | |
13234 | if test -n "$ncn_target_tool_prefix"; then | |
13235 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13236 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13238 | $as_echo_n "checking for $ac_word... " >&6; } | |
13239 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13240 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13241 | else |
13242 | if test -n "$WINDMC_FOR_TARGET"; then | |
13243 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13244 | else | |
13245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13246 | for as_dir in $PATH | |
13247 | do | |
13248 | IFS=$as_save_IFS | |
13249 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13250 | for ac_exec_ext in '' $ac_executable_extensions; do |
13251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13252 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13254 | break 2 |
13255 | fi | |
13256 | done | |
81ecdfbb RW |
13257 | done |
13258 | IFS=$as_save_IFS | |
0c24b341 NC |
13259 | |
13260 | fi | |
13261 | fi | |
13262 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13263 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13265 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13266 | else |
81ecdfbb RW |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13268 | $as_echo "no" >&6; } | |
0c24b341 NC |
13269 | fi |
13270 | ||
81ecdfbb | 13271 | |
0c24b341 NC |
13272 | fi |
13273 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13274 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13275 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13277 | $as_echo_n "checking for $ac_word... " >&6; } | |
13278 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13279 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13280 | else |
13281 | if test -n "$WINDMC_FOR_TARGET"; then | |
13282 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13283 | else | |
13284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13285 | for as_dir in $PATH | |
13286 | do | |
13287 | IFS=$as_save_IFS | |
13288 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13289 | for ac_exec_ext in '' $ac_executable_extensions; do |
13290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13291 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13293 | break 2 |
13294 | fi | |
13295 | done | |
81ecdfbb RW |
13296 | done |
13297 | IFS=$as_save_IFS | |
0c24b341 NC |
13298 | |
13299 | fi | |
13300 | fi | |
13301 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13302 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13304 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13305 | else |
81ecdfbb RW |
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13307 | $as_echo "no" >&6; } | |
0c24b341 NC |
13308 | fi |
13309 | ||
81ecdfbb | 13310 | |
0c24b341 NC |
13311 | fi |
13312 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13313 | done | |
13314 | fi | |
13315 | ||
13316 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13317 | set dummy windmc | |
13318 | if test $build = $target ; then | |
13319 | WINDMC_FOR_TARGET="$2" | |
13320 | else | |
13321 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13322 | fi | |
13323 | else | |
13324 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13325 | fi | |
13326 | ||
13327 | else | |
13328 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13329 | fi | |
13330 | ||
13331 | ||
be01d343 PB |
13332 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13333 | ||
81ecdfbb RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13335 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13336 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13337 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13338 | # We already found the complete path | |
b8025f34 | 13339 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13341 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13342 | else |
13343 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13345 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13346 | fi |
be01d343 PB |
13347 | else |
13348 | ok=yes | |
13349 | case " ${configdirs} " in | |
13350 | *" binutils "*) ;; | |
13351 | *) ok=no ;; | |
13352 | esac | |
c6b750e1 | 13353 | |
be01d343 PB |
13354 | if test $ok = yes; then |
13355 | # An in-tree tool is available and we can use it | |
13356 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13358 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13359 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13360 | # We already found the complete path | |
b8025f34 | 13361 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13363 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13364 | elif test "x$target" = "x$host"; then |
13365 | # We can use an host tool | |
13366 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13368 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13369 | else |
13370 | # We need a cross tool | |
81ecdfbb RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13372 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13373 | fi |
13374 | fi | |
4b900473 | 13375 | |
81ecdfbb RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13377 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13378 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13379 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13380 | # We already found the complete path | |
b8025f34 | 13381 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13383 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13384 | else |
13385 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13387 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13388 | fi |
be01d343 PB |
13389 | else |
13390 | ok=yes | |
13391 | case " ${configdirs} " in | |
13392 | *" gas "*) ;; | |
13393 | *) ok=no ;; | |
13394 | esac | |
c6b750e1 | 13395 | |
be01d343 PB |
13396 | if test $ok = yes; then |
13397 | # An in-tree tool is available and we can use it | |
13398 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13400 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13401 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13402 | # We already found the complete path | |
b8025f34 | 13403 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13405 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13406 | elif test "x$target" = "x$host"; then |
13407 | # We can use an host tool | |
13408 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13410 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13411 | else |
13412 | # We need a cross tool | |
81ecdfbb RW |
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13414 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13415 | fi |
13416 | fi | |
4b900473 | 13417 | |
81ecdfbb RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13419 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13420 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13421 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13422 | # We already found the complete path | |
b8025f34 | 13423 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13425 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13426 | else |
13427 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13429 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13430 | fi |
be01d343 PB |
13431 | else |
13432 | ok=yes | |
13433 | case " ${configdirs} " in | |
13434 | *" gcc "*) ;; | |
13435 | *) ok=no ;; | |
13436 | esac | |
c6b750e1 | 13437 | |
be01d343 PB |
13438 | if test $ok = yes; then |
13439 | # An in-tree tool is available and we can use it | |
13440 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13442 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13443 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13444 | # We already found the complete path | |
b8025f34 | 13445 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13447 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13448 | elif test "x$target" = "x$host"; then |
13449 | # We can use an host tool | |
13450 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13452 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13453 | else |
13454 | # We need a cross tool | |
81ecdfbb RW |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13456 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13457 | fi |
13458 | fi | |
4b900473 | 13459 | |
81ecdfbb RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13461 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13462 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13463 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13464 | # We already found the complete path | |
b8025f34 | 13465 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13467 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13468 | else |
13469 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13471 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13472 | fi |
be01d343 PB |
13473 | else |
13474 | ok=yes | |
13475 | case " ${configdirs} " in | |
13476 | *" gcc "*) ;; | |
13477 | *) ok=no ;; | |
13478 | esac | |
13479 | case ,${enable_languages}, in | |
13480 | *,c++,*) ;; | |
13481 | *) ok=no ;; | |
13482 | esac | |
13483 | if test $ok = yes; then | |
13484 | # An in-tree tool is available and we can use it | |
87cda2cf | 13485 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
81ecdfbb RW |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13487 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13488 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13489 | # We already found the complete path | |
b8025f34 | 13490 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13492 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13493 | elif test "x$target" = "x$host"; then |
13494 | # We can use an host tool | |
13495 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13497 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13498 | else |
13499 | # We need a cross tool | |
81ecdfbb RW |
13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13501 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13502 | fi |
13503 | fi | |
4b900473 | 13504 | |
81ecdfbb RW |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13506 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13507 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13508 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13509 | # We already found the complete path | |
b8025f34 | 13510 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13512 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13513 | else |
13514 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13516 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13517 | fi |
be01d343 PB |
13518 | else |
13519 | ok=yes | |
13520 | case " ${configdirs} " in | |
13521 | *" gcc "*) ;; | |
13522 | *) ok=no ;; | |
13523 | esac | |
13524 | case ,${enable_languages}, in | |
13525 | *,c++,*) ;; | |
13526 | *) ok=no ;; | |
13527 | esac | |
13528 | if test $ok = yes; then | |
13529 | # An in-tree tool is available and we can use it | |
13530 | 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' | |
81ecdfbb RW |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13532 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13533 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13534 | # We already found the complete path | |
b8025f34 | 13535 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13537 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13538 | elif test "x$target" = "x$host"; then |
13539 | # We can use an host tool | |
13540 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13542 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13543 | else |
13544 | # We need a cross tool | |
81ecdfbb RW |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13546 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13547 | fi |
13548 | fi | |
4b900473 | 13549 | |
81ecdfbb RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13551 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13552 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13553 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13554 | # We already found the complete path | |
b8025f34 | 13555 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13557 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13558 | else |
13559 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13561 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13562 | fi |
be01d343 PB |
13563 | else |
13564 | ok=yes | |
13565 | case " ${configdirs} " in | |
13566 | *" binutils "*) ;; | |
13567 | *) ok=no ;; | |
13568 | esac | |
c6b750e1 | 13569 | |
be01d343 PB |
13570 | if test $ok = yes; then |
13571 | # An in-tree tool is available and we can use it | |
13572 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13574 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13575 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13576 | # We already found the complete path | |
b8025f34 | 13577 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13579 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13580 | elif test "x$target" = "x$host"; then |
13581 | # We can use an host tool | |
13582 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13584 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13585 | else |
13586 | # We need a cross tool | |
81ecdfbb RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13588 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13589 | fi |
13590 | fi | |
4b900473 | 13591 | |
81ecdfbb RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13593 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13594 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13595 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13596 | # We already found the complete path | |
b8025f34 | 13597 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13599 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13600 | else |
13601 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13603 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13604 | fi |
be01d343 PB |
13605 | else |
13606 | ok=yes | |
13607 | case " ${configdirs} " in | |
13608 | *" gcc "*) ;; | |
13609 | *) ok=no ;; | |
13610 | esac | |
c6b750e1 | 13611 | |
be01d343 PB |
13612 | if test $ok = yes; then |
13613 | # An in-tree tool is available and we can use it | |
13614 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13616 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13617 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13618 | # We already found the complete path | |
b8025f34 | 13619 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13621 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13622 | elif test "x$target" = "x$host"; then |
13623 | # We can use an host tool | |
13624 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13626 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13627 | else |
13628 | # We need a cross tool | |
81ecdfbb RW |
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13630 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13631 | fi |
13632 | fi | |
4b900473 | 13633 | |
81ecdfbb RW |
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13635 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13636 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13637 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13638 | # We already found the complete path | |
b8025f34 | 13639 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13641 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13642 | else |
13643 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13645 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13646 | fi |
be01d343 PB |
13647 | else |
13648 | ok=yes | |
13649 | case " ${configdirs} " in | |
13650 | *" gcc "*) ;; | |
13651 | *) ok=no ;; | |
13652 | esac | |
13653 | case ,${enable_languages}, in | |
13654 | *,java,*) ;; | |
13655 | *) ok=no ;; | |
13656 | esac | |
13657 | if test $ok = yes; then | |
13658 | # An in-tree tool is available and we can use it | |
13659 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13661 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13662 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13663 | # We already found the complete path | |
b8025f34 | 13664 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13666 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13667 | elif test "x$target" = "x$host"; then |
13668 | # We can use an host tool | |
13669 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13671 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13672 | else |
13673 | # We need a cross tool | |
81ecdfbb RW |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13675 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13676 | fi |
13677 | fi | |
4b900473 | 13678 | |
81ecdfbb RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13680 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13681 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13682 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13683 | # We already found the complete path | |
b8025f34 | 13684 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13686 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13687 | else |
13688 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13690 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13691 | fi |
be01d343 PB |
13692 | else |
13693 | ok=yes | |
13694 | case " ${configdirs} " in | |
13695 | *" gcc "*) ;; | |
13696 | *) ok=no ;; | |
13697 | esac | |
13698 | case ,${enable_languages}, in | |
13699 | *,fortran,*) ;; | |
13700 | *) ok=no ;; | |
13701 | esac | |
13702 | if test $ok = yes; then | |
13703 | # An in-tree tool is available and we can use it | |
13704 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13706 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13707 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13708 | # We already found the complete path | |
b8025f34 | 13709 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13711 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13712 | elif test "x$target" = "x$host"; then |
13713 | # We can use an host tool | |
13714 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13716 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13717 | else |
13718 | # We need a cross tool | |
81ecdfbb RW |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13720 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13721 | fi |
13722 | fi | |
4b900473 | 13723 | |
e552509b ILT |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13725 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13726 | if test "x${build}" != "x${host}" ; then | |
13727 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13728 | # We already found the complete path | |
13729 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13731 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13732 | else | |
13733 | # Canadian cross, just use what we found | |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13735 | $as_echo "pre-installed" >&6; } | |
13736 | fi | |
13737 | else | |
13738 | ok=yes | |
13739 | case " ${configdirs} " in | |
13740 | *" gcc "*) ;; | |
13741 | *) ok=no ;; | |
13742 | esac | |
13743 | case ,${enable_languages}, in | |
13744 | *,go,*) ;; | |
13745 | *) ok=no ;; | |
13746 | esac | |
13747 | if test $ok = yes; then | |
13748 | # An in-tree tool is available and we can use it | |
13749 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13751 | $as_echo "just compiled" >&6; } | |
13752 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13753 | # We already found the complete path | |
13754 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13756 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13757 | elif test "x$target" = "x$host"; then | |
13758 | # We can use an host tool | |
13759 | GOC_FOR_TARGET='$(GOC)' | |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13761 | $as_echo "host tool" >&6; } | |
13762 | else | |
13763 | # We need a cross tool | |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13765 | $as_echo "pre-installed" >&6; } | |
13766 | fi | |
13767 | fi | |
13768 | ||
81ecdfbb RW |
13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13770 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 13771 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13772 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13773 | # We already found the complete path | |
b8025f34 | 13774 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13776 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13777 | else |
13778 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13780 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13781 | fi |
be01d343 PB |
13782 | else |
13783 | ok=yes | |
13784 | case " ${configdirs} " in | |
13785 | *" ld "*) ;; | |
13786 | *) ok=no ;; | |
13787 | esac | |
c6b750e1 | 13788 | |
be01d343 PB |
13789 | if test $ok = yes; then |
13790 | # An in-tree tool is available and we can use it | |
13791 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13793 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13794 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13795 | # We already found the complete path | |
b8025f34 | 13796 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13798 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13799 | elif test "x$target" = "x$host"; then |
13800 | # We can use an host tool | |
13801 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13803 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13804 | else |
13805 | # We need a cross tool | |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13807 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13808 | fi |
13809 | fi | |
4b900473 | 13810 | |
81ecdfbb RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13812 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 13813 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13814 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13815 | # We already found the complete path | |
b8025f34 | 13816 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13818 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13819 | else |
13820 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13822 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13823 | fi |
be01d343 | 13824 | else |
2429c060 PB |
13825 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13826 | # We already found the complete path | |
b8025f34 | 13827 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13829 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 13830 | elif test "x$target" = "x$host"; then |
be01d343 PB |
13831 | # We can use an host tool |
13832 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13834 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13835 | else |
13836 | # We need a cross tool | |
81ecdfbb RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13838 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13839 | fi |
13840 | fi | |
4b900473 | 13841 | |
81ecdfbb RW |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13843 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 13844 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13845 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13846 | # We already found the complete path | |
b8025f34 | 13847 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13849 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13850 | else |
13851 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13853 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13854 | fi |
be01d343 PB |
13855 | else |
13856 | ok=yes | |
13857 | case " ${configdirs} " in | |
13858 | *" binutils "*) ;; | |
13859 | *) ok=no ;; | |
13860 | esac | |
c6b750e1 | 13861 | |
be01d343 PB |
13862 | if test $ok = yes; then |
13863 | # An in-tree tool is available and we can use it | |
13864 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13866 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13867 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13868 | # We already found the complete path | |
b8025f34 | 13869 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13871 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13872 | elif test "x$target" = "x$host"; then |
13873 | # We can use an host tool | |
13874 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13876 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13877 | else |
13878 | # We need a cross tool | |
81ecdfbb RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13880 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13881 | fi |
13882 | fi | |
4b900473 | 13883 | |
81ecdfbb RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13885 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 13886 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13887 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13888 | # We already found the complete path | |
b8025f34 | 13889 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13891 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13892 | else |
13893 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13895 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13896 | fi |
be01d343 PB |
13897 | else |
13898 | ok=yes | |
13899 | case " ${configdirs} " in | |
13900 | *" binutils "*) ;; | |
13901 | *) ok=no ;; | |
13902 | esac | |
c6b750e1 | 13903 | |
be01d343 PB |
13904 | if test $ok = yes; then |
13905 | # An in-tree tool is available and we can use it | |
13906 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13908 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13909 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13910 | # We already found the complete path | |
b8025f34 | 13911 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13913 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13914 | elif test "x$target" = "x$host"; then |
13915 | # We can use an host tool | |
13916 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13918 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13919 | else |
13920 | # We need a cross tool | |
81ecdfbb RW |
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13922 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13923 | fi |
13924 | fi | |
4b900473 | 13925 | |
81ecdfbb RW |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13927 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 13928 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13929 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13930 | # We already found the complete path | |
b8025f34 | 13931 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13933 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13934 | else |
13935 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13937 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13938 | fi |
be01d343 PB |
13939 | else |
13940 | ok=yes | |
13941 | case " ${configdirs} " in | |
13942 | *" binutils "*) ;; | |
13943 | *) ok=no ;; | |
13944 | esac | |
c6b750e1 | 13945 | |
be01d343 PB |
13946 | if test $ok = yes; then |
13947 | # An in-tree tool is available and we can use it | |
13948 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13950 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13951 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13952 | # We already found the complete path | |
b8025f34 | 13953 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13955 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13956 | elif test "x$target" = "x$host"; then |
13957 | # We can use an host tool | |
13958 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
13959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13960 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13961 | else |
13962 | # We need a cross tool | |
81ecdfbb RW |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13964 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13965 | fi |
13966 | fi | |
4b900473 | 13967 | |
b121d7d4 DD |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
13969 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
13970 | if test "x${build}" != "x${host}" ; then | |
13971 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13972 | # We already found the complete path | |
13973 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13975 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13976 | else | |
13977 | # Canadian cross, just use what we found | |
13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13979 | $as_echo "pre-installed" >&6; } | |
13980 | fi | |
13981 | else | |
13982 | ok=yes | |
13983 | case " ${configdirs} " in | |
13984 | *" binutils "*) ;; | |
13985 | *) ok=no ;; | |
13986 | esac | |
13987 | ||
13988 | if test $ok = yes; then | |
13989 | # An in-tree tool is available and we can use it | |
13990 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13992 | $as_echo "just compiled" >&6; } | |
13993 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
13994 | # We already found the complete path | |
13995 | ac_dir=`dirname $READELF_FOR_TARGET` | |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13997 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13998 | elif test "x$target" = "x$host"; then | |
13999 | # We can use an host tool | |
14000 | READELF_FOR_TARGET='$(READELF)' | |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14002 | $as_echo "host tool" >&6; } | |
14003 | else | |
14004 | # We need a cross tool | |
14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14006 | $as_echo "pre-installed" >&6; } | |
14007 | fi | |
14008 | fi | |
14009 | ||
81ecdfbb RW |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14011 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14012 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14013 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14014 | # We already found the complete path | |
b8025f34 | 14015 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14017 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14018 | else |
14019 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14021 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14022 | fi |
be01d343 PB |
14023 | else |
14024 | ok=yes | |
14025 | case " ${configdirs} " in | |
14026 | *" binutils "*) ;; | |
14027 | *) ok=no ;; | |
14028 | esac | |
c6b750e1 | 14029 | |
be01d343 PB |
14030 | if test $ok = yes; then |
14031 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14032 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14034 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14035 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14036 | # We already found the complete path | |
b8025f34 | 14037 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14039 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14040 | elif test "x$target" = "x$host"; then |
14041 | # We can use an host tool | |
14042 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14044 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14045 | else |
14046 | # We need a cross tool | |
81ecdfbb RW |
14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14048 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14049 | fi |
14050 | fi | |
4b900473 | 14051 | |
81ecdfbb RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14053 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14054 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14055 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14056 | # We already found the complete path | |
b8025f34 | 14057 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14059 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14060 | else |
14061 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14063 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14064 | fi |
be01d343 PB |
14065 | else |
14066 | ok=yes | |
14067 | case " ${configdirs} " in | |
14068 | *" binutils "*) ;; | |
14069 | *) ok=no ;; | |
14070 | esac | |
c6b750e1 | 14071 | |
be01d343 PB |
14072 | if test $ok = yes; then |
14073 | # An in-tree tool is available and we can use it | |
14074 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14076 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14077 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14078 | # We already found the complete path | |
b8025f34 | 14079 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14081 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14082 | elif test "x$target" = "x$host"; then |
14083 | # We can use an host tool | |
14084 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14086 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14087 | else |
14088 | # We need a cross tool | |
81ecdfbb RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14090 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14091 | fi |
a0da8069 | 14092 | fi |
54752a6b | 14093 | |
81ecdfbb RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14095 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14096 | if test "x${build}" != "x${host}" ; then |
14097 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14098 | # We already found the complete path | |
14099 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14101 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14102 | else |
14103 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14105 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14106 | fi |
14107 | else | |
14108 | ok=yes | |
14109 | case " ${configdirs} " in | |
14110 | *" binutils "*) ;; | |
14111 | *) ok=no ;; | |
14112 | esac | |
14113 | ||
14114 | if test $ok = yes; then | |
14115 | # An in-tree tool is available and we can use it | |
14116 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14118 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14119 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14120 | # We already found the complete path | |
14121 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14123 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14124 | elif test "x$target" = "x$host"; then |
14125 | # We can use an host tool | |
14126 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14128 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14129 | else |
14130 | # We need a cross tool | |
81ecdfbb RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14132 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14133 | fi |
14134 | fi | |
14135 | ||
54752a6b NN |
14136 | |
14137 | ||
be01d343 | 14138 | |
4b900473 | 14139 | |
a0da8069 NN |
14140 | # Certain tools may need extra flags. |
14141 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14142 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14143 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14144 | ||
be01d343 PB |
14145 | # When building target libraries, except in a Canadian cross, we use |
14146 | # the same toolchain as the compiler we just built. | |
14147 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14148 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14149 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14150 | if test $host = $build; then | |
14151 | case " $configdirs " in | |
14152 | *" gcc "*) | |
14153 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14154 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14155 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14156 | ;; | |
14157 | esac | |
14158 | fi | |
14159 | ||
14160 | ||
14161 | ||
14162 | ||
14163 | ||
81ecdfbb RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14165 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14166 | # Check whether --enable-maintainer-mode was given. | |
14167 | if test "${enable_maintainer_mode+set}" = set; then : | |
14168 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14169 | else |
14170 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14171 | fi |
14172 | ||
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14174 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14175 | |
14176 | ||
14177 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14178 | MAINTAINER_MODE_TRUE= | |
14179 | MAINTAINER_MODE_FALSE='#' | |
14180 | else | |
14181 | MAINTAINER_MODE_TRUE='#' | |
14182 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14183 | fi |
3d5e36ae AO |
14184 | MAINT=$MAINTAINER_MODE_TRUE |
14185 | ||
1d39f329 NN |
14186 | # --------------------- |
14187 | # GCC bootstrap support | |
14188 | # --------------------- | |
14189 | ||
14190 | # Stage specific cflags for build. | |
14191 | stage1_cflags="-g" | |
14192 | case $build in | |
14193 | vax-*-*) | |
14194 | case ${GCC} in | |
14195 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14196 | *) stage1_cflags="-g -J" ;; | |
14197 | esac ;; | |
1d39f329 NN |
14198 | esac |
14199 | ||
1d89b610 | 14200 | |
1d39f329 | 14201 | |
8a0d8a5c | 14202 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14203 | # Check whether --enable-stage1-checking was given. |
14204 | if test "${enable_stage1_checking+set}" = set; then : | |
14205 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14206 | else |
5566c1fa | 14207 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14208 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14209 | else |
5566c1fa | 14210 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14211 | fi |
81ecdfbb | 14212 | fi |
8a0d8a5c PB |
14213 | |
14214 | ||
c6b750e1 | 14215 | |
81ecdfbb RW |
14216 | # Enable -Werror in bootstrap stage2 and later. |
14217 | # Check whether --enable-werror was given. | |
14218 | if test "${enable_werror+set}" = set; then : | |
14219 | enableval=$enable_werror; | |
1d39f329 | 14220 | else |
a0323144 | 14221 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14222 | enable_werror=yes |
79fcd0ec PB |
14223 | else |
14224 | enable_werror=no | |
14225 | fi | |
81ecdfbb RW |
14226 | fi |
14227 | ||
1a6f2dc7 NN |
14228 | case ${enable_werror} in |
14229 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14230 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14231 | esac |
14232 | ||
14233 | ||
e8a5fa9c RW |
14234 | # Specify what files to not compare during bootstrap. |
14235 | ||
14236 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14237 | case "$target" in | |
14238 | hppa*64*-*-hpux*) ;; | |
14239 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14240 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14241 | esac |
14242 | ||
14243 | ||
81ecdfbb RW |
14244 | ac_config_files="$ac_config_files Makefile" |
14245 | ||
c6b750e1 | 14246 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14247 | # This file is a shell script that caches the results of configure |
14248 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14249 | # scripts and configure runs, see configure's option --config-cache. |
14250 | # It is not useful on other systems. If it contains results you don't | |
14251 | # want to keep, you may remove or edit it. | |
a0da8069 | 14252 | # |
c6b750e1 DJ |
14253 | # config.status only pays attention to the cache file if you give it |
14254 | # the --recheck option to rerun configure. | |
a0da8069 | 14255 | # |
c6b750e1 DJ |
14256 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14257 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14258 | # following values. | |
14259 | ||
14260 | _ACEOF | |
14261 | ||
a0da8069 NN |
14262 | # The following way of writing the cache mishandles newlines in values, |
14263 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14264 | # So, we kill variables containing newlines. |
a0da8069 NN |
14265 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14266 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14267 | ( |
14268 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14269 | eval ac_val=\$$ac_var | |
14270 | case $ac_val in #( | |
14271 | *${as_nl}*) | |
14272 | case $ac_var in #( | |
14273 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14274 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14275 | esac | |
14276 | case $ac_var in #( | |
14277 | _ | IFS | as_nl) ;; #( | |
14278 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14279 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14280 | esac ;; | |
14281 | esac | |
14282 | done | |
14283 | ||
c6b750e1 | 14284 | (set) 2>&1 | |
81ecdfbb RW |
14285 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14286 | *${as_nl}ac_space=\ *) | |
14287 | # `set' does not quote correctly, so add quotes: double-quote | |
14288 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14289 | sed -n \ |
14290 | "s/'/'\\\\''/g; | |
14291 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14292 | ;; #( |
c6b750e1 DJ |
14293 | *) |
14294 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14295 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14296 | ;; |
81ecdfbb RW |
14297 | esac | |
14298 | sort | |
14299 | ) | | |
c6b750e1 | 14300 | sed ' |
81ecdfbb | 14301 | /^ac_cv_env_/b end |
c6b750e1 | 14302 | t clear |
81ecdfbb | 14303 | :clear |
c6b750e1 DJ |
14304 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14305 | t end | |
81ecdfbb RW |
14306 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14307 | :end' >>confcache | |
14308 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14309 | if test -w "$cache_file"; then | |
14310 | test "x$cache_file" != "x/dev/null" && | |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14312 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14313 | cat confcache >$cache_file |
a0da8069 | 14314 | else |
81ecdfbb RW |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14316 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14317 | fi |
852e5f18 | 14318 | fi |
a0da8069 | 14319 | rm -f confcache |
852e5f18 | 14320 | |
a0da8069 NN |
14321 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14322 | # Let make expand exec_prefix. | |
14323 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14324 | |
a0da8069 NN |
14325 | # Transform confdefs.h into DEFS. |
14326 | # Protect against shell expansion while executing Makefile rules. | |
14327 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14328 | # |
14329 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14330 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14331 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14332 | ac_script=' |
14333 | :mline | |
14334 | /\\$/{ | |
14335 | N | |
14336 | s,\\\n,, | |
14337 | b mline | |
14338 | } | |
c6b750e1 | 14339 | t clear |
81ecdfbb RW |
14340 | :clear |
14341 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14342 | t quote |
81ecdfbb | 14343 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14344 | t quote |
81ecdfbb RW |
14345 | b any |
14346 | :quote | |
14347 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14348 | s/\[/\\&/g | |
14349 | s/\]/\\&/g | |
14350 | s/\$/$$/g | |
14351 | H | |
14352 | :any | |
14353 | ${ | |
14354 | g | |
14355 | s/^\n// | |
14356 | s/\n/ /g | |
14357 | p | |
14358 | } | |
14359 | ' | |
14360 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14361 | |
14362 | ||
14363 | ac_libobjs= | |
14364 | ac_ltlibobjs= | |
14365 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14366 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14367 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14368 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14369 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14370 | # will be set to the directory where LIBOBJS objects are built. | |
14371 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14372 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14373 | done |
14374 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14375 | |
c6b750e1 | 14376 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14377 | |
cac3d6c4 | 14378 | |
c6b750e1 DJ |
14379 | |
14380 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14381 | ac_write_fail=0 |
c6b750e1 DJ |
14382 | ac_clean_files_save=$ac_clean_files |
14383 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14384 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14385 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14386 | as_write_fail=0 | |
14387 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14388 | #! $SHELL |
14389 | # Generated by $as_me. | |
a0da8069 | 14390 | # Run this file to recreate the current configuration. |
a0da8069 | 14391 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14392 | # configure, is in config.log if it exists. |
376a0e54 | 14393 | |
c6b750e1 DJ |
14394 | debug=false |
14395 | ac_cs_recheck=false | |
14396 | ac_cs_silent=false | |
c6b750e1 | 14397 | |
81ecdfbb RW |
14398 | SHELL=\${CONFIG_SHELL-$SHELL} |
14399 | export SHELL | |
14400 | _ASEOF | |
14401 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14402 | ## -------------------- ## | |
14403 | ## M4sh Initialization. ## | |
14404 | ## -------------------- ## | |
14405 | ||
14406 | # Be more Bourne compatible | |
14407 | DUALCASE=1; export DUALCASE # for MKS sh | |
14408 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14409 | emulate sh |
14410 | NULLCMD=: | |
81ecdfbb | 14411 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14412 | # is contrary to our usage. Disable this feature. |
14413 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14414 | setopt NO_GLOB_SUBST |
14415 | else | |
14416 | case `(set -o) 2>/dev/null` in #( | |
14417 | *posix*) : | |
14418 | set -o posix ;; #( | |
14419 | *) : | |
14420 | ;; | |
14421 | esac | |
c6b750e1 | 14422 | fi |
c6b750e1 | 14423 | |
81ecdfbb RW |
14424 | |
14425 | as_nl=' | |
14426 | ' | |
14427 | export as_nl | |
14428 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14429 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14430 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14431 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14432 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14433 | # but without wasting forks for bash or zsh. | |
14434 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14435 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14436 | as_echo='print -r --' | |
14437 | as_echo_n='print -rn --' | |
14438 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14439 | as_echo='printf %s\n' | |
14440 | as_echo_n='printf %s' | |
14441 | else | |
14442 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14443 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14444 | as_echo_n='/usr/ucb/echo -n' | |
14445 | else | |
14446 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14447 | as_echo_n_body='eval | |
14448 | arg=$1; | |
14449 | case $arg in #( | |
14450 | *"$as_nl"*) | |
14451 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14452 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14453 | esac; | |
14454 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14455 | ' | |
14456 | export as_echo_n_body | |
14457 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14458 | fi | |
14459 | export as_echo_body | |
14460 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14461 | fi |
14462 | ||
81ecdfbb RW |
14463 | # The user is always right. |
14464 | if test "${PATH_SEPARATOR+set}" != set; then | |
14465 | PATH_SEPARATOR=: | |
14466 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14467 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14468 | PATH_SEPARATOR=';' | |
14469 | } | |
14470 | fi | |
14471 | ||
14472 | ||
14473 | # IFS | |
14474 | # We need space, tab and new line, in precisely that order. Quoting is | |
14475 | # there to prevent editors from complaining about space-tab. | |
14476 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14477 | # splitting by setting IFS to empty value.) | |
14478 | IFS=" "" $as_nl" | |
14479 | ||
14480 | # Find who we are. Look in the path if we contain no directory separator. | |
14481 | case $0 in #(( | |
14482 | *[\\/]* ) as_myself=$0 ;; | |
14483 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14484 | for as_dir in $PATH | |
14485 | do | |
14486 | IFS=$as_save_IFS | |
14487 | test -z "$as_dir" && as_dir=. | |
14488 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14489 | done | |
14490 | IFS=$as_save_IFS | |
14491 | ||
14492 | ;; | |
14493 | esac | |
14494 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14495 | # in which case we are not to be found in the path. | |
14496 | if test "x$as_myself" = x; then | |
14497 | as_myself=$0 | |
14498 | fi | |
14499 | if test ! -f "$as_myself"; then | |
14500 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14501 | exit 1 | |
14502 | fi | |
c6b750e1 | 14503 | |
81ecdfbb RW |
14504 | # Unset variables that we do not need and which cause bugs (e.g. in |
14505 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14506 | # suppresses any "Segmentation fault" message there. '((' could | |
14507 | # trigger a bug in pdksh 5.2.14. | |
14508 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14509 | do eval test x\${$as_var+set} = xset \ | |
14510 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14511 | done | |
c6b750e1 DJ |
14512 | PS1='$ ' |
14513 | PS2='> ' | |
14514 | PS4='+ ' | |
14515 | ||
14516 | # NLS nuisances. | |
81ecdfbb RW |
14517 | LC_ALL=C |
14518 | export LC_ALL | |
14519 | LANGUAGE=C | |
14520 | export LANGUAGE | |
14521 | ||
14522 | # CDPATH. | |
14523 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14524 | ||
14525 | ||
14526 | # as_fn_error ERROR [LINENO LOG_FD] | |
14527 | # --------------------------------- | |
14528 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14529 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14530 | # script with status $?, using 1 if that was 0. | |
14531 | as_fn_error () | |
14532 | { | |
14533 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14534 | if test "$3"; then | |
14535 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14536 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14537 | fi |
81ecdfbb RW |
14538 | $as_echo "$as_me: error: $1" >&2 |
14539 | as_fn_exit $as_status | |
14540 | } # as_fn_error | |
14541 | ||
14542 | ||
14543 | # as_fn_set_status STATUS | |
14544 | # ----------------------- | |
14545 | # Set $? to STATUS, without forking. | |
14546 | as_fn_set_status () | |
14547 | { | |
14548 | return $1 | |
14549 | } # as_fn_set_status | |
14550 | ||
14551 | # as_fn_exit STATUS | |
14552 | # ----------------- | |
14553 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14554 | as_fn_exit () | |
14555 | { | |
14556 | set +e | |
14557 | as_fn_set_status $1 | |
14558 | exit $1 | |
14559 | } # as_fn_exit | |
14560 | ||
14561 | # as_fn_unset VAR | |
14562 | # --------------- | |
14563 | # Portably unset VAR. | |
14564 | as_fn_unset () | |
14565 | { | |
14566 | { eval $1=; unset $1;} | |
14567 | } | |
14568 | as_unset=as_fn_unset | |
14569 | # as_fn_append VAR VALUE | |
14570 | # ---------------------- | |
14571 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14572 | # advantage of any shell optimizations that allow amortized linear growth over | |
14573 | # repeated appends, instead of the typical quadratic growth present in naive | |
14574 | # implementations. | |
14575 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14576 | eval 'as_fn_append () | |
14577 | { | |
14578 | eval $1+=\$2 | |
14579 | }' | |
14580 | else | |
14581 | as_fn_append () | |
14582 | { | |
14583 | eval $1=\$$1\$2 | |
14584 | } | |
14585 | fi # as_fn_append | |
14586 | ||
14587 | # as_fn_arith ARG... | |
14588 | # ------------------ | |
14589 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14590 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14591 | # must be portable across $(()) and expr. | |
14592 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14593 | eval 'as_fn_arith () | |
14594 | { | |
14595 | as_val=$(( $* )) | |
14596 | }' | |
14597 | else | |
14598 | as_fn_arith () | |
14599 | { | |
14600 | as_val=`expr "$@" || test $? -eq 1` | |
14601 | } | |
14602 | fi # as_fn_arith | |
14603 | ||
c6b750e1 | 14604 | |
81ecdfbb RW |
14605 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14606 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14607 | as_expr=expr |
14608 | else | |
14609 | as_expr=false | |
14610 | fi | |
14611 | ||
81ecdfbb | 14612 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14613 | as_basename=basename |
14614 | else | |
14615 | as_basename=false | |
14616 | fi | |
14617 | ||
81ecdfbb RW |
14618 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14619 | as_dirname=dirname | |
14620 | else | |
14621 | as_dirname=false | |
14622 | fi | |
c6b750e1 | 14623 | |
81ecdfbb | 14624 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14625 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14626 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14627 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14628 | $as_echo X/"$0" | | |
14629 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14630 | s//\1/ | |
14631 | q | |
14632 | } | |
14633 | /^X\/\(\/\/\)$/{ | |
14634 | s//\1/ | |
14635 | q | |
14636 | } | |
14637 | /^X\/\(\/\).*/{ | |
14638 | s//\1/ | |
14639 | q | |
14640 | } | |
14641 | s/.*/./; q'` | |
c6b750e1 | 14642 | |
c6b750e1 DJ |
14643 | # Avoid depending upon Character Ranges. |
14644 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14645 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14646 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14647 | as_cr_digits='0123456789' | |
14648 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14649 | ||
81ecdfbb RW |
14650 | ECHO_C= ECHO_N= ECHO_T= |
14651 | case `echo -n x` in #((((( | |
14652 | -n*) | |
14653 | case `echo 'xy\c'` in | |
14654 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14655 | xy) ECHO_C='\c';; | |
14656 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14657 | ECHO_T=' ';; | |
14658 | esac;; | |
14659 | *) | |
14660 | ECHO_N='-n';; | |
c6b750e1 DJ |
14661 | esac |
14662 | ||
81ecdfbb RW |
14663 | rm -f conf$$ conf$$.exe conf$$.file |
14664 | if test -d conf$$.dir; then | |
14665 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 14666 | else |
81ecdfbb RW |
14667 | rm -f conf$$.dir |
14668 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 14669 | fi |
81ecdfbb RW |
14670 | if (echo >conf$$.file) 2>/dev/null; then |
14671 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 14672 | as_ln_s='ln -s' |
81ecdfbb RW |
14673 | # ... but there are two gotchas: |
14674 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14675 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14676 | # In both cases, we have to default to `cp -p'. | |
14677 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14678 | as_ln_s='cp -p' | |
14679 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14680 | as_ln_s=ln | |
14681 | else | |
14682 | as_ln_s='cp -p' | |
c6b750e1 | 14683 | fi |
c6b750e1 DJ |
14684 | else |
14685 | as_ln_s='cp -p' | |
14686 | fi | |
81ecdfbb RW |
14687 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14688 | rmdir conf$$.dir 2>/dev/null | |
14689 | ||
14690 | ||
14691 | # as_fn_mkdir_p | |
14692 | # ------------- | |
14693 | # Create "$as_dir" as a directory, including parents if necessary. | |
14694 | as_fn_mkdir_p () | |
14695 | { | |
14696 | ||
14697 | case $as_dir in #( | |
14698 | -*) as_dir=./$as_dir;; | |
14699 | esac | |
14700 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14701 | as_dirs= | |
14702 | while :; do | |
14703 | case $as_dir in #( | |
14704 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14705 | *) as_qdir=$as_dir;; | |
14706 | esac | |
14707 | as_dirs="'$as_qdir' $as_dirs" | |
14708 | as_dir=`$as_dirname -- "$as_dir" || | |
14709 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14710 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14711 | X"$as_dir" : 'X\(//\)$' \| \ | |
14712 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14713 | $as_echo X"$as_dir" | | |
14714 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14715 | s//\1/ | |
14716 | q | |
14717 | } | |
14718 | /^X\(\/\/\)[^/].*/{ | |
14719 | s//\1/ | |
14720 | q | |
14721 | } | |
14722 | /^X\(\/\/\)$/{ | |
14723 | s//\1/ | |
14724 | q | |
14725 | } | |
14726 | /^X\(\/\).*/{ | |
14727 | s//\1/ | |
14728 | q | |
14729 | } | |
14730 | s/.*/./; q'` | |
14731 | test -d "$as_dir" && break | |
14732 | done | |
14733 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14734 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14735 | ||
c6b750e1 | 14736 | |
81ecdfbb | 14737 | } # as_fn_mkdir_p |
c6b750e1 | 14738 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14739 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
14740 | else |
14741 | test -d ./-p && rmdir ./-p | |
14742 | as_mkdir_p=false | |
14743 | fi | |
14744 | ||
81ecdfbb RW |
14745 | if test -x / >/dev/null 2>&1; then |
14746 | as_test_x='test -x' | |
14747 | else | |
14748 | if ls -dL / >/dev/null 2>&1; then | |
14749 | as_ls_L_option=L | |
14750 | else | |
14751 | as_ls_L_option= | |
14752 | fi | |
14753 | as_test_x=' | |
14754 | eval sh -c '\'' | |
14755 | if test -d "$1"; then | |
14756 | test -d "$1/."; | |
14757 | else | |
14758 | case $1 in #( | |
14759 | -*)set "./$1";; | |
14760 | esac; | |
14761 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14762 | ???[sx]*):;;*)false;;esac;fi | |
14763 | '\'' sh | |
14764 | ' | |
14765 | fi | |
14766 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
14767 | |
14768 | # Sed expression to map a string onto a valid CPP name. | |
14769 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14770 | ||
14771 | # Sed expression to map a string onto a valid variable name. | |
14772 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14773 | ||
14774 | ||
c6b750e1 | 14775 | exec 6>&1 |
81ecdfbb RW |
14776 | ## ----------------------------------- ## |
14777 | ## Main body of $CONFIG_STATUS script. ## | |
14778 | ## ----------------------------------- ## | |
14779 | _ASEOF | |
14780 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14781 | ||
14782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14783 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 14784 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14785 | # values after options handling. |
14786 | ac_log=" | |
c6b750e1 | 14787 | This file was extended by $as_me, which was |
81ecdfbb | 14788 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
14789 | |
14790 | CONFIG_FILES = $CONFIG_FILES | |
14791 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14792 | CONFIG_LINKS = $CONFIG_LINKS | |
14793 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14794 | $ $0 $@ | |
14795 | ||
81ecdfbb RW |
14796 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14797 | " | |
14798 | ||
c6b750e1 DJ |
14799 | _ACEOF |
14800 | ||
81ecdfbb RW |
14801 | case $ac_config_files in *" |
14802 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14803 | esac | |
c6b750e1 | 14804 | |
c6b750e1 | 14805 | |
c6b750e1 | 14806 | |
81ecdfbb RW |
14807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14808 | # Files that config.status was made for. | |
14809 | config_files="$ac_config_files" | |
c6b750e1 | 14810 | |
81ecdfbb | 14811 | _ACEOF |
c6b750e1 | 14812 | |
81ecdfbb | 14813 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14814 | ac_cs_usage="\ |
81ecdfbb RW |
14815 | \`$as_me' instantiates files and other configuration actions |
14816 | from templates according to the current configuration. Unless the files | |
14817 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 14818 | |
81ecdfbb | 14819 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
14820 | |
14821 | -h, --help print this help, then exit | |
81ecdfbb RW |
14822 | -V, --version print version number and configuration settings, then exit |
14823 | -q, --quiet, --silent | |
14824 | do not print progress messages | |
c6b750e1 DJ |
14825 | -d, --debug don't remove temporary files |
14826 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14827 | --file=FILE[:TEMPLATE] |
14828 | instantiate the configuration file FILE | |
c6b750e1 DJ |
14829 | |
14830 | Configuration files: | |
14831 | $config_files | |
14832 | ||
81ecdfbb | 14833 | Report bugs to the package provider." |
c6b750e1 | 14834 | |
81ecdfbb RW |
14835 | _ACEOF |
14836 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
14837 | ac_cs_version="\\ |
14838 | config.status | |
81ecdfbb RW |
14839 | configured by $0, generated by GNU Autoconf 2.64, |
14840 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 14841 | |
81ecdfbb | 14842 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
14843 | This config.status script is free software; the Free Software Foundation |
14844 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14845 | |
14846 | ac_pwd='$ac_pwd' | |
14847 | srcdir='$srcdir' | |
14848 | INSTALL='$INSTALL' | |
8e957354 | 14849 | AWK='$AWK' |
81ecdfbb | 14850 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
14851 | _ACEOF |
14852 | ||
81ecdfbb RW |
14853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14854 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
14855 | ac_need_defaults=: |
14856 | while test $# != 0 | |
a0da8069 | 14857 | do |
c6b750e1 DJ |
14858 | case $1 in |
14859 | --*=*) | |
81ecdfbb RW |
14860 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14861 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
14862 | ac_shift=: |
14863 | ;; | |
81ecdfbb | 14864 | *) |
c6b750e1 DJ |
14865 | ac_option=$1 |
14866 | ac_optarg=$2 | |
14867 | ac_shift=shift | |
14868 | ;; | |
c6b750e1 DJ |
14869 | esac |
14870 | ||
14871 | case $ac_option in | |
14872 | # Handling of the options. | |
a0da8069 | 14873 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 14874 | ac_cs_recheck=: ;; |
81ecdfbb RW |
14875 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14876 | $as_echo "$ac_cs_version"; exit ;; | |
14877 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
14878 | debug=: ;; |
14879 | --file | --fil | --fi | --f ) | |
14880 | $ac_shift | |
81ecdfbb RW |
14881 | case $ac_optarg in |
14882 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14883 | esac | |
14884 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 14885 | ac_need_defaults=false;; |
81ecdfbb RW |
14886 | --he | --h | --help | --hel | -h ) |
14887 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
14888 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14889 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14890 | ac_cs_silent=: ;; | |
14891 | ||
14892 | # This is an error. | |
81ecdfbb RW |
14893 | -*) as_fn_error "unrecognized option: \`$1' |
14894 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 14895 | |
81ecdfbb RW |
14896 | *) as_fn_append ac_config_targets " $1" |
14897 | ac_need_defaults=false ;; | |
c6b750e1 | 14898 | |
376a0e54 | 14899 | esac |
c6b750e1 | 14900 | shift |
376a0e54 CM |
14901 | done |
14902 | ||
c6b750e1 | 14903 | ac_configure_extra_args= |
376a0e54 | 14904 | |
c6b750e1 DJ |
14905 | if $ac_cs_silent; then |
14906 | exec 6>/dev/null | |
14907 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14908 | fi | |
376a0e54 | 14909 | |
c6b750e1 | 14910 | _ACEOF |
81ecdfbb | 14911 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 14912 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14913 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14914 | shift | |
14915 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14916 | CONFIG_SHELL='$SHELL' | |
14917 | export CONFIG_SHELL | |
14918 | exec "\$@" | |
c6b750e1 DJ |
14919 | fi |
14920 | ||
14921 | _ACEOF | |
81ecdfbb RW |
14922 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14923 | exec 5>>config.log | |
14924 | { | |
14925 | echo | |
14926 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14927 | ## Running $as_me. ## | |
14928 | _ASBOX | |
14929 | $as_echo "$ac_log" | |
14930 | } >&5 | |
c6b750e1 | 14931 | |
81ecdfbb RW |
14932 | _ACEOF |
14933 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
14934 | # |
14935 | # INIT-COMMANDS | |
14936 | # | |
14937 | extrasub_build="$extrasub_build" | |
14938 | extrasub_host="$extrasub_host" | |
14939 | extrasub_target="$extrasub_target" | |
14940 | ||
81ecdfbb | 14941 | _ACEOF |
c6b750e1 | 14942 | |
81ecdfbb | 14943 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14944 | |
81ecdfbb | 14945 | # Handling of arguments. |
c6b750e1 DJ |
14946 | for ac_config_target in $ac_config_targets |
14947 | do | |
81ecdfbb RW |
14948 | case $ac_config_target in |
14949 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14950 | ||
14951 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
14952 | esac |
14953 | done | |
14954 | ||
81ecdfbb | 14955 | |
c6b750e1 DJ |
14956 | # If the user did not use the arguments to specify the items to instantiate, |
14957 | # then the envvar interface is used. Set only those that are not. | |
14958 | # We use the long form for the default assignment because of an extremely | |
14959 | # bizarre bug on SunOS 4.1.3. | |
14960 | if $ac_need_defaults; then | |
14961 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14962 | fi | |
14963 | ||
14964 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14965 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 14966 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14967 | # Hook for its removal unless debugging. |
14968 | # Note that there is a small window in which the directory will not be cleaned: | |
14969 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
14970 | $debug || |
14971 | { | |
81ecdfbb RW |
14972 | tmp= |
14973 | trap 'exit_status=$? | |
14974 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14975 | ' 0 | |
14976 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 14977 | } |
c6b750e1 DJ |
14978 | # Create a (secure) tmp directory for tmp files. |
14979 | ||
14980 | { | |
81ecdfbb | 14981 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
14982 | test -n "$tmp" && test -d "$tmp" |
14983 | } || | |
14984 | { | |
81ecdfbb RW |
14985 | tmp=./conf$$-$RANDOM |
14986 | (umask 077 && mkdir "$tmp") | |
14987 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14988 | ||
14989 | # Set up the scripts for CONFIG_FILES section. | |
14990 | # No need to generate them if there are no CONFIG_FILES. | |
14991 | # This happens for instance with `./config.status config.h'. | |
14992 | if test -n "$CONFIG_FILES"; then | |
14993 | ||
14994 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14995 | ac_cs_awk_getline=: | |
14996 | ac_cs_awk_pipe_init= | |
14997 | ac_cs_awk_read_file=' | |
14998 | while ((getline aline < (F[key])) > 0) | |
14999 | print(aline) | |
15000 | close(F[key])' | |
15001 | ac_cs_awk_pipe_fini= | |
15002 | else | |
15003 | ac_cs_awk_getline=false | |
15004 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15005 | ac_cs_awk_read_file=' | |
15006 | print "|#_!!_#|" | |
15007 | print "cat " F[key] " &&" | |
15008 | '$ac_cs_awk_pipe_init | |
15009 | # The final `:' finishes the AND list. | |
15010 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15011 | fi | |
15012 | ac_cr=`echo X | tr X '\015'` | |
15013 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15014 | # But we know of no other shell where ac_cr would be empty at this | |
15015 | # point, so we can use a bashism as a fallback. | |
15016 | if test "x$ac_cr" = x; then | |
15017 | eval ac_cr=\$\'\\r\' | |
15018 | fi | |
15019 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15020 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15021 | ac_cs_awk_cr='\r' | |
15022 | else | |
15023 | ac_cs_awk_cr=$ac_cr | |
15024 | fi | |
15025 | ||
15026 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15027 | _ACEOF | |
15028 | ||
15029 | # Create commands to substitute file output variables. | |
c6b750e1 | 15030 | { |
81ecdfbb RW |
15031 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15032 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15033 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15034 | echo "_ACAWK" && | |
15035 | echo "_ACEOF" | |
15036 | } >conf$$files.sh && | |
15037 | . ./conf$$files.sh || | |
15038 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15039 | rm -f conf$$files.sh | |
c6b750e1 | 15040 | |
81ecdfbb RW |
15041 | { |
15042 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15043 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15044 | echo "_ACEOF" | |
15045 | } >conf$$subs.sh || | |
15046 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15047 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15048 | ac_delim='%!_!# ' | |
15049 | for ac_last_try in false false false false false :; do | |
15050 | . ./conf$$subs.sh || | |
15051 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15052 | ||
15053 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15054 | if test $ac_delim_n = $ac_delim_num; then | |
15055 | break | |
15056 | elif $ac_last_try; then | |
15057 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15058 | else | |
15059 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15060 | fi | |
15061 | done | |
15062 | rm -f conf$$subs.sh | |
15063 | ||
15064 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15065 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15066 | _ACEOF |
81ecdfbb RW |
15067 | sed -n ' |
15068 | h | |
15069 | s/^/S["/; s/!.*/"]=/ | |
15070 | p | |
15071 | g | |
15072 | s/^[^!]*!// | |
15073 | :repl | |
15074 | t repl | |
15075 | s/'"$ac_delim"'$// | |
15076 | t delim | |
15077 | :nl | |
15078 | h | |
15079 | s/\(.\{148\}\).*/\1/ | |
15080 | t more1 | |
15081 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15082 | p | |
15083 | n | |
15084 | b repl | |
15085 | :more1 | |
15086 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15087 | p | |
15088 | g | |
15089 | s/.\{148\}// | |
15090 | t nl | |
15091 | :delim | |
15092 | h | |
15093 | s/\(.\{148\}\).*/\1/ | |
15094 | t more2 | |
15095 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15096 | p | |
15097 | b | |
15098 | :more2 | |
15099 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15100 | p | |
15101 | g | |
15102 | s/.\{148\}// | |
15103 | t delim | |
15104 | ' <conf$$subs.awk | sed ' | |
15105 | /^[^""]/{ | |
15106 | N | |
15107 | s/\n// | |
15108 | } | |
15109 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15110 | rm -f conf$$subs.awk | |
15111 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15112 | _ACAWK | |
15113 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15114 | for (key in S) S_is_set[key] = 1 | |
15115 | FS = "\a" | |
15116 | \$ac_cs_awk_pipe_init | |
15117 | } | |
15118 | { | |
15119 | line = $ 0 | |
15120 | nfields = split(line, field, "@") | |
15121 | substed = 0 | |
15122 | len = length(field[1]) | |
15123 | for (i = 2; i < nfields; i++) { | |
15124 | key = field[i] | |
15125 | keylen = length(key) | |
15126 | if (S_is_set[key]) { | |
15127 | value = S[key] | |
15128 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15129 | len += length(value) + length(field[++i]) | |
15130 | substed = 1 | |
15131 | } else | |
15132 | len += 1 + keylen | |
15133 | } | |
15134 | if (nfields == 3 && !substed) { | |
15135 | key = field[2] | |
15136 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15137 | \$ac_cs_awk_read_file | |
15138 | next | |
15139 | } | |
15140 | } | |
15141 | print line | |
15142 | } | |
15143 | \$ac_cs_awk_pipe_fini | |
15144 | _ACAWK | |
15145 | _ACEOF | |
15146 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15147 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15148 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15149 | else | |
15150 | cat | |
15151 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15152 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15153 | _ACEOF | |
15154 | ||
15155 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15156 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15157 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15158 | # (actually we leave an empty line to preserve line numbers). | |
15159 | if test "x$srcdir" = x.; then | |
15160 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15161 | s/:*\$(srcdir):*/:/ | |
15162 | s/:*\${srcdir}:*/:/ | |
15163 | s/:*@srcdir@:*/:/ | |
15164 | s/^\([^=]*=[ ]*\):*/\1/ | |
15165 | s/:*$// | |
15166 | s/^[^=]*=[ ]*$// | |
15167 | }' | |
15168 | fi | |
c6b750e1 | 15169 | |
81ecdfbb RW |
15170 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15171 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15172 | |
c6b750e1 | 15173 | |
81ecdfbb RW |
15174 | eval set X " :F $CONFIG_FILES " |
15175 | shift | |
15176 | for ac_tag | |
15177 | do | |
15178 | case $ac_tag in | |
15179 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15180 | esac | |
15181 | case $ac_mode$ac_tag in | |
15182 | :[FHL]*:*);; | |
15183 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15184 | :[FH]-) ac_tag=-:-;; | |
15185 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15186 | esac | |
15187 | ac_save_IFS=$IFS | |
15188 | IFS=: | |
15189 | set x $ac_tag | |
15190 | IFS=$ac_save_IFS | |
15191 | shift | |
15192 | ac_file=$1 | |
15193 | shift | |
252b5132 | 15194 | |
81ecdfbb RW |
15195 | case $ac_mode in |
15196 | :L) ac_source=$1;; | |
15197 | :[FH]) | |
15198 | ac_file_inputs= | |
15199 | for ac_f | |
15200 | do | |
15201 | case $ac_f in | |
15202 | -) ac_f="$tmp/stdin";; | |
15203 | *) # Look for the file first in the build tree, then in the source tree | |
15204 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15205 | # because $ac_f cannot contain `:'. | |
15206 | test -f "$ac_f" || | |
15207 | case $ac_f in | |
15208 | [\\/$]*) false;; | |
15209 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15210 | esac || | |
15211 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15212 | esac | |
15213 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15214 | as_fn_append ac_file_inputs " '$ac_f'" | |
15215 | done | |
c6b750e1 | 15216 | |
81ecdfbb RW |
15217 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15218 | # use $as_me), people would be surprised to read: | |
15219 | # /* config.h. Generated by config.status. */ | |
15220 | configure_input='Generated from '` | |
15221 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15222 | `' by configure.' | |
15223 | if test x"$ac_file" != x-; then | |
15224 | configure_input="$ac_file. $configure_input" | |
15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15226 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15227 | fi |
81ecdfbb RW |
15228 | # Neutralize special characters interpreted by sed in replacement strings. |
15229 | case $configure_input in #( | |
15230 | *\&* | *\|* | *\\* ) | |
15231 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15232 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15233 | *) ac_sed_conf_input=$configure_input;; | |
15234 | esac | |
cac3d6c4 | 15235 | |
81ecdfbb RW |
15236 | case $ac_tag in |
15237 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15238 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15239 | esac | |
15240 | ;; | |
a0da8069 | 15241 | esac |
252b5132 | 15242 | |
81ecdfbb | 15243 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15244 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15245 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15246 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15247 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15248 | $as_echo X"$ac_file" | | |
15249 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15250 | s//\1/ | |
15251 | q | |
15252 | } | |
15253 | /^X\(\/\/\)[^/].*/{ | |
15254 | s//\1/ | |
15255 | q | |
15256 | } | |
15257 | /^X\(\/\/\)$/{ | |
15258 | s//\1/ | |
15259 | q | |
15260 | } | |
15261 | /^X\(\/\).*/{ | |
15262 | s//\1/ | |
15263 | q | |
15264 | } | |
15265 | s/.*/./; q'` | |
15266 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15267 | ac_builddir=. |
252b5132 | 15268 | |
81ecdfbb RW |
15269 | case "$ac_dir" in |
15270 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15271 | *) | |
15272 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15273 | # A ".." for each directory in $ac_dir_suffix. | |
15274 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15275 | case $ac_top_builddir_sub in | |
15276 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15277 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15278 | esac ;; | |
15279 | esac | |
15280 | ac_abs_top_builddir=$ac_pwd | |
15281 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15282 | # for backward compatibility: | |
15283 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15284 | |
15285 | case $srcdir in | |
81ecdfbb | 15286 | .) # We are building in place. |
c6b750e1 | 15287 | ac_srcdir=. |
81ecdfbb RW |
15288 | ac_top_srcdir=$ac_top_builddir_sub |
15289 | ac_abs_top_srcdir=$ac_pwd ;; | |
15290 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15291 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15292 | ac_top_srcdir=$srcdir |
15293 | ac_abs_top_srcdir=$srcdir ;; | |
15294 | *) # Relative name. | |
15295 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15296 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15297 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15298 | esac |
81ecdfbb | 15299 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15300 | |
252b5132 | 15301 | |
81ecdfbb RW |
15302 | case $ac_mode in |
15303 | :F) | |
15304 | # | |
15305 | # CONFIG_FILE | |
15306 | # | |
c6b750e1 DJ |
15307 | |
15308 | case $INSTALL in | |
15309 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15310 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15311 | esac |
81ecdfbb | 15312 | _ACEOF |
252b5132 | 15313 | |
81ecdfbb RW |
15314 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15315 | # If the template does not know about datarootdir, expand it. | |
15316 | # FIXME: This hack should be removed a few years after 2.60. | |
15317 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15318 | ac_sed_dataroot=' | |
15319 | /datarootdir/ { | |
15320 | p | |
15321 | q | |
15322 | } | |
15323 | /@datadir@/p | |
15324 | /@docdir@/p | |
15325 | /@infodir@/p | |
15326 | /@localedir@/p | |
15327 | /@mandir@/p' | |
15328 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15329 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15330 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15332 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15333 | _ACEOF |
81ecdfbb RW |
15334 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15335 | ac_datarootdir_hack=' | |
15336 | s&@datadir@&$datadir&g | |
15337 | s&@docdir@&$docdir&g | |
15338 | s&@infodir@&$infodir&g | |
15339 | s&@localedir@&$localedir&g | |
15340 | s&@mandir@&$mandir&g | |
15341 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15342 | esac | |
15343 | _ACEOF | |
15344 | ||
15345 | # Neutralize VPATH when `$srcdir' = `.'. | |
15346 | # Shell code in configure.ac might set extrasub. | |
15347 | # FIXME: do we really want to maintain this feature? | |
15348 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15349 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15350 | $extrasub |
15351 | _ACEOF | |
81ecdfbb | 15352 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15353 | :t |
15354 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15355 | s|@configure_input@|$ac_sed_conf_input|;t t |
15356 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15357 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15358 | s&@srcdir@&$ac_srcdir&;t t | |
15359 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15360 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15361 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15362 | s&@builddir@&$ac_builddir&;t t | |
15363 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15364 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15365 | s&@INSTALL@&$ac_INSTALL&;t t | |
15366 | $ac_datarootdir_hack | |
15367 | " | |
15368 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15369 | if $ac_cs_awk_getline; then | |
15370 | $AWK -f "$tmp/subs.awk" | |
15371 | else | |
15372 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15373 | fi >$tmp/out \ | |
15374 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15375 | ||
15376 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15377 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15378 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15380 | which seems to be undefined. Please make sure it is defined." >&5 | |
15381 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15382 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15383 | ||
15384 | rm -f "$tmp/stdin" | |
15385 | case $ac_file in | |
15386 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15387 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15388 | esac \ | |
15389 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15390 | ;; | |
c148b4cb | 15391 | |
c148b4cb | 15392 | |
c148b4cb | 15393 | |
81ecdfbb RW |
15394 | esac |
15395 | ||
06a51eac RW |
15396 | |
15397 | case $ac_file$ac_mode in | |
15398 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15399 | sed "$extrasub_host" | | |
15400 | sed "$extrasub_target" > mf$$ | |
15401 | mv -f mf$$ Makefile ;; | |
15402 | ||
15403 | esac | |
81ecdfbb RW |
15404 | done # for ac_tag |
15405 | ||
15406 | ||
15407 | as_fn_exit 0 | |
c6b750e1 | 15408 | _ACEOF |
c6b750e1 DJ |
15409 | ac_clean_files=$ac_clean_files_save |
15410 | ||
81ecdfbb RW |
15411 | test $ac_write_fail = 0 || |
15412 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15413 | ||
c6b750e1 DJ |
15414 | |
15415 | # configure is writing to config.log, and then calls config.status. | |
15416 | # config.status does its own redirection, appending to config.log. | |
15417 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15418 | # by configure, so config.status won't be able to write to it; its | |
15419 | # output is simply discarded. So we exec the FD to /dev/null, | |
15420 | # effectively closing config.log, so it can be properly (re)opened and | |
15421 | # appended to by config.status. When coming back to configure, we | |
15422 | # need to make the FD available again. | |
15423 | if test "$no_create" != yes; then | |
15424 | ac_cs_success=: | |
15425 | ac_config_status_args= | |
15426 | test "$silent" = yes && | |
15427 | ac_config_status_args="$ac_config_status_args --quiet" | |
15428 | exec 5>/dev/null | |
15429 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15430 | exec 5>>config.log | |
15431 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15432 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15433 | $ac_cs_success || as_fn_exit $? |
15434 | fi | |
15435 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15437 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15438 | fi |
c148b4cb | 15439 |