]>
Commit | Line | Data |
---|---|---|
bafecfd6 | 1 | #! /bin/sh |
bafecfd6 | 2 | # Guess values for system-dependent variables and create Makefiles. |
6d3ddf51 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
efd58f08 | 7 | # |
bafecfd6 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
efd58f08 RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b58b6ee1 | 14 | |
efd58f08 RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b58b6ee1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
efd58f08 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b58b6ee1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
efd58f08 RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
b58b6ee1 | 31 | fi |
b58b6ee1 | 32 | |
efd58f08 RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
b58b6ee1 DJ |
79 | fi |
80 | ||
81 | ||
efd58f08 RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
6d3ddf51 | 90 | as_myself= |
efd58f08 RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
b58b6ee1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
efd58f08 RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
6d3ddf51 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
efd58f08 RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
6d3ddf51 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
efd58f08 RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
a8a01987 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
efd58f08 RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b58b6ee1 | 211 | do |
efd58f08 RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
6d3ddf51 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
efd58f08 RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b58b6ee1 | 266 | else |
efd58f08 RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
b58b6ee1 | 271 | fi |
efd58f08 RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
b58b6ee1 | 301 | |
efd58f08 RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6d3ddf51 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
efd58f08 RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
6d3ddf51 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
efd58f08 RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
6d3ddf51 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
efd58f08 RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6d3ddf51 | 407 | # script with STATUS, using 1 if that was 0. |
efd58f08 RW |
408 | as_fn_error () |
409 | { | |
6d3ddf51 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
efd58f08 | 414 | fi |
6d3ddf51 | 415 | $as_echo "$as_me: error: $2" >&2 |
efd58f08 RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b58b6ee1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
efd58f08 | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b58b6ee1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
efd58f08 RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
b58b6ee1 | 437 | |
efd58f08 | 438 | as_me=`$as_basename -- "$0" || |
b58b6ee1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
efd58f08 RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
b58b6ee1 | 456 | |
b58b6ee1 DJ |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
b58b6ee1 | 464 | |
efd58f08 RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
b58b6ee1 | 474 | sed ' |
efd58f08 RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
b58b6ee1 | 479 | N |
efd58f08 RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b58b6ee1 | 482 | t loop |
efd58f08 | 483 | s/-\n.*// |
b58b6ee1 | 484 | ' >$as_me.lineno && |
efd58f08 RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b58b6ee1 | 487 | |
6d3ddf51 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
b58b6ee1 DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
efd58f08 RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
b58b6ee1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
efd58f08 RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
b58b6ee1 DJ |
511 | esac |
512 | ||
efd58f08 RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
b58b6ee1 | 516 | else |
efd58f08 RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
b58b6ee1 | 519 | fi |
efd58f08 RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b58b6ee1 | 522 | as_ln_s='ln -s' |
efd58f08 RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6d3ddf51 | 526 | # In both cases, we have to default to `cp -pR'. |
efd58f08 | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
6d3ddf51 | 528 | as_ln_s='cp -pR' |
efd58f08 RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
6d3ddf51 | 532 | as_ln_s='cp -pR' |
b58b6ee1 | 533 | fi |
b58b6ee1 | 534 | else |
6d3ddf51 | 535 | as_ln_s='cp -pR' |
b58b6ee1 | 536 | fi |
efd58f08 RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
b58b6ee1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
efd58f08 | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
b58b6ee1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
6d3ddf51 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
b58b6ee1 DJ |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
6d3ddf51 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
bafecfd6 | 559 | |
b58b6ee1 | 560 | # Name of the host. |
6d3ddf51 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b58b6ee1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
b58b6ee1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
bafecfd6 | 568 | ac_default_prefix=/usr/local |
efd58f08 | 569 | ac_clean_files= |
b58b6ee1 | 570 | ac_config_libobj_dir=. |
efd58f08 | 571 | LIBOBJS= |
b58b6ee1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
b58b6ee1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
efd58f08 | 583 | PACKAGE_URL= |
b58b6ee1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
efd58f08 RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
afa221db | 590 | host_shared |
efd58f08 RW |
591 | stage2_werror_flag |
592 | stage1_checking | |
593 | stage1_cflags | |
594 | MAINT | |
595 | MAINTAINER_MODE_FALSE | |
596 | MAINTAINER_MODE_TRUE | |
597 | COMPILER_NM_FOR_TARGET | |
598 | COMPILER_LD_FOR_TARGET | |
599 | COMPILER_AS_FOR_TARGET | |
600 | FLAGS_FOR_TARGET | |
601 | RAW_CXX_FOR_TARGET | |
602 | WINDMC_FOR_TARGET | |
603 | WINDRES_FOR_TARGET | |
604 | STRIP_FOR_TARGET | |
46e7439b | 605 | READELF_FOR_TARGET |
efd58f08 RW |
606 | RANLIB_FOR_TARGET |
607 | OBJDUMP_FOR_TARGET | |
fe508576 | 608 | OBJCOPY_FOR_TARGET |
efd58f08 RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
d5b7129a | 615 | GOC_FOR_TARGET |
efd58f08 RW |
616 | GFORTRAN_FOR_TARGET |
617 | GCJ_FOR_TARGET | |
618 | GCC_FOR_TARGET | |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
d8d5dac0 L |
621 | RANLIB_PLUGIN_OPTION |
622 | AR_PLUGIN_OPTION | |
46e7439b | 623 | READELF |
efd58f08 RW |
624 | OBJDUMP |
625 | OBJCOPY | |
626 | WINDMC | |
627 | WINDRES | |
628 | STRIP | |
629 | RANLIB | |
630 | NM | |
631 | LIPO | |
632 | LD | |
633 | DLLTOOL | |
634 | AS | |
635 | AR | |
636 | RUNTEST | |
637 | EXPECT | |
638 | MAKEINFO | |
639 | FLEX | |
640 | LEX | |
641 | M4 | |
642 | BISON | |
643 | YACC | |
efd58f08 RW |
644 | WINDRES_FOR_BUILD |
645 | WINDMC_FOR_BUILD | |
646 | RANLIB_FOR_BUILD | |
647 | NM_FOR_BUILD | |
648 | LD_FOR_BUILD | |
649 | LDFLAGS_FOR_BUILD | |
d5b7129a | 650 | GOC_FOR_BUILD |
efd58f08 RW |
651 | GFORTRAN_FOR_BUILD |
652 | GCJ_FOR_BUILD | |
653 | DLLTOOL_FOR_BUILD | |
654 | CXX_FOR_BUILD | |
655 | CXXFLAGS_FOR_BUILD | |
656 | CFLAGS_FOR_BUILD | |
657 | CC_FOR_BUILD | |
658 | AS_FOR_BUILD | |
659 | AR_FOR_BUILD | |
e894eef9 | 660 | target_configdirs |
efd58f08 | 661 | configdirs |
efd58f08 | 662 | build_configdirs |
efd58f08 RW |
663 | INSTALL_GDB_TK |
664 | GDB_TK | |
665 | CONFIGURE_GDB_TK | |
666 | build_tooldir | |
667 | tooldir | |
668 | GCC_SHLIB_SUBDIR | |
669 | RPATH_ENVVAR | |
1d694d8e RW |
670 | target_configargs |
671 | host_configargs | |
672 | build_configargs | |
55662058 | 673 | BUILD_CONFIG |
2e7bf520 | 674 | LDFLAGS_FOR_TARGET |
efd58f08 RW |
675 | CXXFLAGS_FOR_TARGET |
676 | CFLAGS_FOR_TARGET | |
677 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
678 | SYSROOT_CFLAGS_FOR_TARGET | |
fe508576 | 679 | extra_host_zlib_configure_flags |
bd45d6fa | 680 | extra_host_libiberty_configure_flags |
fe508576 CV |
681 | stage1_languages |
682 | extra_linker_plugin_flags | |
683 | extra_linker_plugin_configure_flags | |
a626f4ee | 684 | islinc |
fe508576 CV |
685 | isllibs |
686 | islver | |
efd58f08 | 687 | poststage1_ldflags |
f107c370 | 688 | poststage1_libs |
efd58f08 | 689 | stage1_ldflags |
e8853092 | 690 | stage1_libs |
a626f4ee | 691 | extra_isl_gmp_configure_flags |
efd58f08 RW |
692 | extra_mpc_mpfr_configure_flags |
693 | extra_mpc_gmp_configure_flags | |
694 | extra_mpfr_configure_flags | |
695 | gmpinc | |
696 | gmplibs | |
697 | do_compare | |
698 | GNATMAKE | |
699 | GNATBIND | |
700 | ac_ct_CXX | |
701 | CXXFLAGS | |
702 | CXX | |
703 | OBJEXT | |
704 | EXEEXT | |
705 | ac_ct_CC | |
706 | CPPFLAGS | |
707 | LDFLAGS | |
708 | CFLAGS | |
709 | CC | |
c9161585 | 710 | EXTRA_CONFIGARGS_LIBJAVA |
fe508576 | 711 | extra_liboffloadmic_configure_flags |
efd58f08 RW |
712 | target_subdir |
713 | host_subdir | |
714 | build_subdir | |
715 | build_libsubdir | |
a8a01987 PB |
716 | AWK |
717 | SED | |
efd58f08 RW |
718 | LN_S |
719 | LN | |
720 | INSTALL_DATA | |
721 | INSTALL_SCRIPT | |
722 | INSTALL_PROGRAM | |
723 | target_os | |
724 | target_vendor | |
725 | target_cpu | |
726 | target | |
727 | host_os | |
728 | host_vendor | |
729 | host_cpu | |
730 | host | |
731 | target_noncanonical | |
732 | host_noncanonical | |
733 | build_noncanonical | |
734 | build_os | |
735 | build_vendor | |
736 | build_cpu | |
737 | build | |
738 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
739 | target_alias | |
740 | host_alias | |
741 | build_alias | |
742 | LIBS | |
743 | ECHO_T | |
744 | ECHO_N | |
745 | ECHO_C | |
746 | DEFS | |
747 | mandir | |
748 | localedir | |
749 | libdir | |
750 | psdir | |
751 | pdfdir | |
752 | dvidir | |
753 | htmldir | |
754 | infodir | |
755 | docdir | |
756 | oldincludedir | |
757 | includedir | |
90d6966b | 758 | runstatedir |
efd58f08 RW |
759 | localstatedir |
760 | sharedstatedir | |
761 | sysconfdir | |
762 | datadir | |
763 | datarootdir | |
764 | libexecdir | |
765 | sbindir | |
766 | bindir | |
767 | program_transform_name | |
768 | prefix | |
769 | exec_prefix | |
770 | PACKAGE_URL | |
771 | PACKAGE_BUGREPORT | |
772 | PACKAGE_STRING | |
773 | PACKAGE_VERSION | |
774 | PACKAGE_TARNAME | |
775 | PACKAGE_NAME | |
776 | PATH_SEPARATOR | |
777 | SHELL' | |
778 | ac_subst_files='serialization_dependencies | |
779 | host_makefile_frag | |
780 | target_makefile_frag | |
781 | alphaieee_frag | |
782 | ospace_frag' | |
783 | ac_user_opts=' | |
784 | enable_option_checking | |
785 | with_build_libsubdir | |
fe508576 CV |
786 | with_system_zlib |
787 | enable_as_accelerator_for | |
788 | enable_offload_targets | |
efd58f08 | 789 | enable_gold |
679e4c82 | 790 | enable_ld |
fe508576 | 791 | enable_compressed_debug_sections |
d4b54911 PB |
792 | enable_libquadmath |
793 | enable_libquadmath_support | |
efd58f08 RW |
794 | enable_libada |
795 | enable_libssp | |
5ec30f78 | 796 | enable_libstdcxx |
fe508576 | 797 | enable_liboffloadmic |
c9161585 ILT |
798 | enable_static_libjava |
799 | enable_bootstrap | |
efd58f08 RW |
800 | with_mpc |
801 | with_mpc_include | |
802 | with_mpc_lib | |
803 | with_mpfr_dir | |
804 | with_mpfr | |
805 | with_mpfr_include | |
806 | with_mpfr_lib | |
807 | with_gmp_dir | |
808 | with_gmp | |
809 | with_gmp_include | |
810 | with_gmp_lib | |
efd58f08 | 811 | with_stage1_libs |
e8853092 | 812 | with_stage1_ldflags |
efd58f08 | 813 | with_boot_libs |
f107c370 | 814 | with_boot_ldflags |
a626f4ee L |
815 | with_isl |
816 | with_isl_include | |
817 | with_isl_lib | |
818 | enable_isl_version_check | |
bd45d6fa | 819 | enable_lto |
fe508576 CV |
820 | enable_linker_plugin_configure_flags |
821 | enable_linker_plugin_flags | |
efd58f08 RW |
822 | enable_stage1_languages |
823 | enable_objc_gc | |
824 | with_build_sysroot | |
825 | with_debug_prefix_map | |
90d6966b | 826 | with_tooldir |
55662058 | 827 | with_build_config |
fe508576 | 828 | enable_vtable_verify |
efd58f08 RW |
829 | enable_serial_configure |
830 | with_build_time_tools | |
831 | enable_maintainer_mode | |
832 | enable_stage1_checking | |
833 | enable_werror | |
afa221db | 834 | enable_host_shared |
efd58f08 RW |
835 | ' |
836 | ac_precious_vars='build_alias | |
837 | host_alias | |
838 | target_alias | |
839 | CC | |
840 | CFLAGS | |
841 | LDFLAGS | |
842 | LIBS | |
843 | CPPFLAGS | |
844 | CXX | |
845 | CXXFLAGS | |
846 | CCC | |
1d694d8e RW |
847 | build_configargs |
848 | host_configargs | |
849 | target_configargs | |
efd58f08 RW |
850 | AR |
851 | AS | |
852 | DLLTOOL | |
853 | LD | |
854 | LIPO | |
855 | NM | |
856 | RANLIB | |
857 | STRIP | |
858 | WINDRES | |
859 | WINDMC | |
860 | OBJCOPY | |
861 | OBJDUMP | |
46e7439b | 862 | READELF |
efd58f08 RW |
863 | CC_FOR_TARGET |
864 | CXX_FOR_TARGET | |
865 | GCC_FOR_TARGET | |
866 | GCJ_FOR_TARGET | |
867 | GFORTRAN_FOR_TARGET | |
d5b7129a | 868 | GOC_FOR_TARGET |
efd58f08 RW |
869 | AR_FOR_TARGET |
870 | AS_FOR_TARGET | |
871 | DLLTOOL_FOR_TARGET | |
872 | LD_FOR_TARGET | |
873 | LIPO_FOR_TARGET | |
874 | NM_FOR_TARGET | |
fe508576 | 875 | OBJCOPY_FOR_TARGET |
efd58f08 RW |
876 | OBJDUMP_FOR_TARGET |
877 | RANLIB_FOR_TARGET | |
46e7439b | 878 | READELF_FOR_TARGET |
efd58f08 RW |
879 | STRIP_FOR_TARGET |
880 | WINDRES_FOR_TARGET | |
881 | WINDMC_FOR_TARGET' | |
882 | ||
bafecfd6 NN |
883 | |
884 | # Initialize some variables set by options. | |
b58b6ee1 DJ |
885 | ac_init_help= |
886 | ac_init_version=false | |
efd58f08 RW |
887 | ac_unrecognized_opts= |
888 | ac_unrecognized_sep= | |
bafecfd6 NN |
889 | # The variables have the same names as the options, with |
890 | # dashes changed to underlines. | |
b58b6ee1 | 891 | cache_file=/dev/null |
bafecfd6 | 892 | exec_prefix=NONE |
bafecfd6 | 893 | no_create= |
bafecfd6 NN |
894 | no_recursion= |
895 | prefix=NONE | |
896 | program_prefix=NONE | |
897 | program_suffix=NONE | |
898 | program_transform_name=s,x,x, | |
899 | silent= | |
900 | site= | |
901 | srcdir= | |
bafecfd6 NN |
902 | verbose= |
903 | x_includes=NONE | |
904 | x_libraries=NONE | |
b58b6ee1 DJ |
905 | |
906 | # Installation directory options. | |
907 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
908 | # and all the variables that are supposed to be based on exec_prefix | |
909 | # by default will actually change. | |
910 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
efd58f08 | 911 | # (The list follows the same order as the GNU Coding Standards.) |
bafecfd6 NN |
912 | bindir='${exec_prefix}/bin' |
913 | sbindir='${exec_prefix}/sbin' | |
914 | libexecdir='${exec_prefix}/libexec' | |
efd58f08 RW |
915 | datarootdir='${prefix}/share' |
916 | datadir='${datarootdir}' | |
bafecfd6 NN |
917 | sysconfdir='${prefix}/etc' |
918 | sharedstatedir='${prefix}/com' | |
919 | localstatedir='${prefix}/var' | |
90d6966b | 920 | runstatedir='${localstatedir}/run' |
bafecfd6 NN |
921 | includedir='${prefix}/include' |
922 | oldincludedir='/usr/include' | |
efd58f08 RW |
923 | docdir='${datarootdir}/doc/${PACKAGE}' |
924 | infodir='${datarootdir}/info' | |
925 | htmldir='${docdir}' | |
926 | dvidir='${docdir}' | |
927 | pdfdir='${docdir}' | |
928 | psdir='${docdir}' | |
929 | libdir='${exec_prefix}/lib' | |
930 | localedir='${datarootdir}/locale' | |
931 | mandir='${datarootdir}/man' | |
a3acbf46 | 932 | |
bafecfd6 | 933 | ac_prev= |
efd58f08 | 934 | ac_dashdash= |
bafecfd6 NN |
935 | for ac_option |
936 | do | |
bafecfd6 NN |
937 | # If the previous option needs an argument, assign it. |
938 | if test -n "$ac_prev"; then | |
efd58f08 | 939 | eval $ac_prev=\$ac_option |
bafecfd6 NN |
940 | ac_prev= |
941 | continue | |
942 | fi | |
a3acbf46 | 943 | |
efd58f08 | 944 | case $ac_option in |
6d3ddf51 SM |
945 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
946 | *=) ac_optarg= ;; | |
947 | *) ac_optarg=yes ;; | |
efd58f08 | 948 | esac |
bafecfd6 NN |
949 | |
950 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
951 | ||
efd58f08 RW |
952 | case $ac_dashdash$ac_option in |
953 | --) | |
954 | ac_dashdash=yes ;; | |
bafecfd6 NN |
955 | |
956 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
957 | ac_prev=bindir ;; | |
958 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b58b6ee1 | 959 | bindir=$ac_optarg ;; |
bafecfd6 NN |
960 | |
961 | -build | --build | --buil | --bui | --bu) | |
b58b6ee1 | 962 | ac_prev=build_alias ;; |
bafecfd6 | 963 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b58b6ee1 | 964 | build_alias=$ac_optarg ;; |
bafecfd6 NN |
965 | |
966 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
967 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
968 | ac_prev=cache_file ;; | |
969 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
970 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b58b6ee1 DJ |
971 | cache_file=$ac_optarg ;; |
972 | ||
973 | --config-cache | -C) | |
974 | cache_file=config.cache ;; | |
bafecfd6 | 975 | |
efd58f08 | 976 | -datadir | --datadir | --datadi | --datad) |
bafecfd6 | 977 | ac_prev=datadir ;; |
efd58f08 | 978 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b58b6ee1 | 979 | datadir=$ac_optarg ;; |
bafecfd6 | 980 | |
efd58f08 RW |
981 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
982 | | --dataroo | --dataro | --datar) | |
983 | ac_prev=datarootdir ;; | |
984 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
985 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
986 | datarootdir=$ac_optarg ;; | |
987 | ||
bafecfd6 | 988 | -disable-* | --disable-*) |
efd58f08 | 989 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bafecfd6 | 990 | # Reject names that are not valid shell variable names. |
efd58f08 | 991 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
6d3ddf51 | 992 | as_fn_error $? "invalid feature name: $ac_useropt" |
efd58f08 RW |
993 | ac_useropt_orig=$ac_useropt |
994 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
995 | case $ac_user_opts in | |
996 | *" | |
997 | "enable_$ac_useropt" | |
998 | "*) ;; | |
999 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1000 | ac_unrecognized_sep=', ';; | |
1001 | esac | |
1002 | eval enable_$ac_useropt=no ;; | |
1003 | ||
1004 | -docdir | --docdir | --docdi | --doc | --do) | |
1005 | ac_prev=docdir ;; | |
1006 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1007 | docdir=$ac_optarg ;; | |
1008 | ||
1009 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1010 | ac_prev=dvidir ;; | |
1011 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1012 | dvidir=$ac_optarg ;; | |
bafecfd6 NN |
1013 | |
1014 | -enable-* | --enable-*) | |
efd58f08 | 1015 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bafecfd6 | 1016 | # Reject names that are not valid shell variable names. |
efd58f08 | 1017 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
6d3ddf51 | 1018 | as_fn_error $? "invalid feature name: $ac_useropt" |
efd58f08 RW |
1019 | ac_useropt_orig=$ac_useropt |
1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1021 | case $ac_user_opts in | |
1022 | *" | |
1023 | "enable_$ac_useropt" | |
1024 | "*) ;; | |
1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1026 | ac_unrecognized_sep=', ';; | |
bafecfd6 | 1027 | esac |
efd58f08 | 1028 | eval enable_$ac_useropt=\$ac_optarg ;; |
bafecfd6 NN |
1029 | |
1030 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1031 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1032 | | --exec | --exe | --ex) | |
1033 | ac_prev=exec_prefix ;; | |
1034 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1035 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1036 | | --exec=* | --exe=* | --ex=*) | |
b58b6ee1 | 1037 | exec_prefix=$ac_optarg ;; |
bafecfd6 NN |
1038 | |
1039 | -gas | --gas | --ga | --g) | |
1040 | # Obsolete; use --with-gas. | |
1041 | with_gas=yes ;; | |
1042 | ||
b58b6ee1 DJ |
1043 | -help | --help | --hel | --he | -h) |
1044 | ac_init_help=long ;; | |
1045 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1046 | ac_init_help=recursive ;; | |
1047 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1048 | ac_init_help=short ;; | |
bafecfd6 NN |
1049 | |
1050 | -host | --host | --hos | --ho) | |
b58b6ee1 | 1051 | ac_prev=host_alias ;; |
bafecfd6 | 1052 | -host=* | --host=* | --hos=* | --ho=*) |
b58b6ee1 | 1053 | host_alias=$ac_optarg ;; |
bafecfd6 | 1054 | |
efd58f08 RW |
1055 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1056 | ac_prev=htmldir ;; | |
1057 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1058 | | --ht=*) | |
1059 | htmldir=$ac_optarg ;; | |
1060 | ||
bafecfd6 NN |
1061 | -includedir | --includedir | --includedi | --included | --include \ |
1062 | | --includ | --inclu | --incl | --inc) | |
1063 | ac_prev=includedir ;; | |
1064 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1065 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b58b6ee1 | 1066 | includedir=$ac_optarg ;; |
bafecfd6 NN |
1067 | |
1068 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1069 | ac_prev=infodir ;; | |
1070 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b58b6ee1 | 1071 | infodir=$ac_optarg ;; |
bafecfd6 NN |
1072 | |
1073 | -libdir | --libdir | --libdi | --libd) | |
1074 | ac_prev=libdir ;; | |
1075 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b58b6ee1 | 1076 | libdir=$ac_optarg ;; |
bafecfd6 NN |
1077 | |
1078 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1079 | | --libexe | --libex | --libe) | |
1080 | ac_prev=libexecdir ;; | |
1081 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1082 | | --libexe=* | --libex=* | --libe=*) | |
b58b6ee1 | 1083 | libexecdir=$ac_optarg ;; |
bafecfd6 | 1084 | |
efd58f08 RW |
1085 | -localedir | --localedir | --localedi | --localed | --locale) |
1086 | ac_prev=localedir ;; | |
1087 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1088 | localedir=$ac_optarg ;; | |
1089 | ||
bafecfd6 | 1090 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
efd58f08 | 1091 | | --localstate | --localstat | --localsta | --localst | --locals) |
bafecfd6 NN |
1092 | ac_prev=localstatedir ;; |
1093 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
efd58f08 | 1094 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b58b6ee1 | 1095 | localstatedir=$ac_optarg ;; |
bafecfd6 NN |
1096 | |
1097 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1098 | ac_prev=mandir ;; | |
1099 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b58b6ee1 | 1100 | mandir=$ac_optarg ;; |
bafecfd6 NN |
1101 | |
1102 | -nfp | --nfp | --nf) | |
1103 | # Obsolete; use --without-fp. | |
1104 | with_fp=no ;; | |
1105 | ||
1106 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b58b6ee1 | 1107 | | --no-cr | --no-c | -n) |
bafecfd6 NN |
1108 | no_create=yes ;; |
1109 | ||
1110 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1111 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1112 | no_recursion=yes ;; | |
1113 | ||
1114 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1115 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1116 | | --oldin | --oldi | --old | --ol | --o) | |
1117 | ac_prev=oldincludedir ;; | |
1118 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1119 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1120 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b58b6ee1 | 1121 | oldincludedir=$ac_optarg ;; |
bafecfd6 NN |
1122 | |
1123 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1124 | ac_prev=prefix ;; | |
1125 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b58b6ee1 | 1126 | prefix=$ac_optarg ;; |
bafecfd6 NN |
1127 | |
1128 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1129 | | --program-pre | --program-pr | --program-p) | |
1130 | ac_prev=program_prefix ;; | |
1131 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1132 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b58b6ee1 | 1133 | program_prefix=$ac_optarg ;; |
bafecfd6 NN |
1134 | |
1135 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1136 | | --program-suf | --program-su | --program-s) | |
1137 | ac_prev=program_suffix ;; | |
1138 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1139 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b58b6ee1 | 1140 | program_suffix=$ac_optarg ;; |
bafecfd6 NN |
1141 | |
1142 | -program-transform-name | --program-transform-name \ | |
1143 | | --program-transform-nam | --program-transform-na \ | |
1144 | | --program-transform-n | --program-transform- \ | |
1145 | | --program-transform | --program-transfor \ | |
1146 | | --program-transfo | --program-transf \ | |
1147 | | --program-trans | --program-tran \ | |
1148 | | --progr-tra | --program-tr | --program-t) | |
1149 | ac_prev=program_transform_name ;; | |
1150 | -program-transform-name=* | --program-transform-name=* \ | |
1151 | | --program-transform-nam=* | --program-transform-na=* \ | |
1152 | | --program-transform-n=* | --program-transform-=* \ | |
1153 | | --program-transform=* | --program-transfor=* \ | |
1154 | | --program-transfo=* | --program-transf=* \ | |
1155 | | --program-trans=* | --program-tran=* \ | |
1156 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b58b6ee1 | 1157 | program_transform_name=$ac_optarg ;; |
bafecfd6 | 1158 | |
efd58f08 RW |
1159 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1160 | ac_prev=pdfdir ;; | |
1161 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1162 | pdfdir=$ac_optarg ;; | |
1163 | ||
1164 | -psdir | --psdir | --psdi | --psd | --ps) | |
1165 | ac_prev=psdir ;; | |
1166 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1167 | psdir=$ac_optarg ;; | |
1168 | ||
bafecfd6 NN |
1169 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1170 | | -silent | --silent | --silen | --sile | --sil) | |
1171 | silent=yes ;; | |
1172 | ||
90d6966b NF |
1173 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1174 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1175 | | --run | --ru | --r) | |
1176 | ac_prev=runstatedir ;; | |
1177 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1178 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1179 | | --run=* | --ru=* | --r=*) | |
1180 | runstatedir=$ac_optarg ;; | |
1181 | ||
bafecfd6 NN |
1182 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1183 | ac_prev=sbindir ;; | |
1184 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1185 | | --sbi=* | --sb=*) | |
b58b6ee1 | 1186 | sbindir=$ac_optarg ;; |
bafecfd6 NN |
1187 | |
1188 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1189 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1190 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1191 | | --sha | --sh) | |
1192 | ac_prev=sharedstatedir ;; | |
1193 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1194 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1195 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1196 | | --sha=* | --sh=*) | |
b58b6ee1 | 1197 | sharedstatedir=$ac_optarg ;; |
bafecfd6 NN |
1198 | |
1199 | -site | --site | --sit) | |
1200 | ac_prev=site ;; | |
1201 | -site=* | --site=* | --sit=*) | |
b58b6ee1 | 1202 | site=$ac_optarg ;; |
bafecfd6 NN |
1203 | |
1204 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1205 | ac_prev=srcdir ;; | |
1206 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b58b6ee1 | 1207 | srcdir=$ac_optarg ;; |
bafecfd6 NN |
1208 | |
1209 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1210 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1211 | ac_prev=sysconfdir ;; | |
1212 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1213 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b58b6ee1 | 1214 | sysconfdir=$ac_optarg ;; |
bafecfd6 NN |
1215 | |
1216 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b58b6ee1 | 1217 | ac_prev=target_alias ;; |
bafecfd6 | 1218 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b58b6ee1 | 1219 | target_alias=$ac_optarg ;; |
bafecfd6 NN |
1220 | |
1221 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1222 | verbose=yes ;; | |
1223 | ||
b58b6ee1 DJ |
1224 | -version | --version | --versio | --versi | --vers | -V) |
1225 | ac_init_version=: ;; | |
bafecfd6 NN |
1226 | |
1227 | -with-* | --with-*) | |
efd58f08 | 1228 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bafecfd6 | 1229 | # Reject names that are not valid shell variable names. |
efd58f08 | 1230 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
6d3ddf51 | 1231 | as_fn_error $? "invalid package name: $ac_useropt" |
efd58f08 RW |
1232 | ac_useropt_orig=$ac_useropt |
1233 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1234 | case $ac_user_opts in | |
1235 | *" | |
1236 | "with_$ac_useropt" | |
1237 | "*) ;; | |
1238 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1239 | ac_unrecognized_sep=', ';; | |
bafecfd6 | 1240 | esac |
efd58f08 | 1241 | eval with_$ac_useropt=\$ac_optarg ;; |
bafecfd6 NN |
1242 | |
1243 | -without-* | --without-*) | |
efd58f08 | 1244 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bafecfd6 | 1245 | # Reject names that are not valid shell variable names. |
efd58f08 | 1246 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
6d3ddf51 | 1247 | as_fn_error $? "invalid package name: $ac_useropt" |
efd58f08 RW |
1248 | ac_useropt_orig=$ac_useropt |
1249 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1250 | case $ac_user_opts in | |
1251 | *" | |
1252 | "with_$ac_useropt" | |
1253 | "*) ;; | |
1254 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1255 | ac_unrecognized_sep=', ';; | |
1256 | esac | |
1257 | eval with_$ac_useropt=no ;; | |
bafecfd6 NN |
1258 | |
1259 | --x) | |
1260 | # Obsolete; use --with-x. | |
1261 | with_x=yes ;; | |
1262 | ||
1263 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1264 | | --x-incl | --x-inc | --x-in | --x-i) | |
1265 | ac_prev=x_includes ;; | |
1266 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1267 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b58b6ee1 | 1268 | x_includes=$ac_optarg ;; |
bafecfd6 NN |
1269 | |
1270 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1271 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1272 | ac_prev=x_libraries ;; | |
1273 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1274 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b58b6ee1 | 1275 | x_libraries=$ac_optarg ;; |
bafecfd6 | 1276 | |
6d3ddf51 SM |
1277 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1278 | Try \`$0 --help' for more information" | |
bafecfd6 NN |
1279 | ;; |
1280 | ||
b58b6ee1 DJ |
1281 | *=*) |
1282 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1283 | # Reject names that are not valid shell variable names. | |
efd58f08 RW |
1284 | case $ac_envvar in #( |
1285 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
6d3ddf51 | 1286 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
efd58f08 RW |
1287 | esac |
1288 | eval $ac_envvar=\$ac_optarg | |
b58b6ee1 DJ |
1289 | export $ac_envvar ;; |
1290 | ||
bafecfd6 | 1291 | *) |
b58b6ee1 | 1292 | # FIXME: should be removed in autoconf 3.0. |
efd58f08 | 1293 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b58b6ee1 | 1294 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
efd58f08 | 1295 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
6d3ddf51 | 1296 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
bafecfd6 NN |
1297 | ;; |
1298 | ||
1299 | esac | |
1300 | done | |
1301 | ||
1302 | if test -n "$ac_prev"; then | |
b58b6ee1 | 1303 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
6d3ddf51 | 1304 | as_fn_error $? "missing argument to $ac_option" |
bafecfd6 | 1305 | fi |
bafecfd6 | 1306 | |
efd58f08 RW |
1307 | if test -n "$ac_unrecognized_opts"; then |
1308 | case $enable_option_checking in | |
1309 | no) ;; | |
6d3ddf51 | 1310 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
efd58f08 | 1311 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
b58b6ee1 | 1312 | esac |
efd58f08 | 1313 | fi |
bafecfd6 | 1314 | |
efd58f08 RW |
1315 | # Check all directory arguments for consistency. |
1316 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1317 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1318 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
90d6966b | 1319 | libdir localedir mandir runstatedir |
bafecfd6 | 1320 | do |
efd58f08 RW |
1321 | eval ac_val=\$$ac_var |
1322 | # Remove trailing slashes. | |
1323 | case $ac_val in | |
1324 | */ ) | |
1325 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1326 | eval $ac_var=\$ac_val;; | |
1327 | esac | |
1328 | # Be sure to have absolute directory names. | |
b58b6ee1 | 1329 | case $ac_val in |
efd58f08 RW |
1330 | [\\/$]* | ?:[\\/]* ) continue;; |
1331 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
bafecfd6 | 1332 | esac |
6d3ddf51 | 1333 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
bafecfd6 NN |
1334 | done |
1335 | ||
b58b6ee1 DJ |
1336 | # There might be people who depend on the old broken behavior: `$host' |
1337 | # used to hold the argument of --host etc. | |
1338 | # FIXME: To remove some day. | |
1339 | build=$build_alias | |
1340 | host=$host_alias | |
1341 | target=$target_alias | |
76402c80 | 1342 | |
b58b6ee1 DJ |
1343 | # FIXME: To remove some day. |
1344 | if test "x$host_alias" != x; then | |
1345 | if test "x$build_alias" = x; then | |
1346 | cross_compiling=maybe | |
b58b6ee1 DJ |
1347 | elif test "x$build_alias" != "x$host_alias"; then |
1348 | cross_compiling=yes | |
1349 | fi | |
1350 | fi | |
1351 | ||
1352 | ac_tool_prefix= | |
1353 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1354 | ||
1355 | test "$silent" = yes && exec 6>/dev/null | |
bafecfd6 | 1356 | |
bafecfd6 | 1357 | |
efd58f08 RW |
1358 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1359 | ac_ls_di=`ls -di .` && | |
1360 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
6d3ddf51 | 1361 | as_fn_error $? "working directory cannot be determined" |
efd58f08 | 1362 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
6d3ddf51 | 1363 | as_fn_error $? "pwd does not report name of working directory" |
efd58f08 RW |
1364 | |
1365 | ||
bafecfd6 NN |
1366 | # Find the source files, if location was not specified. |
1367 | if test -z "$srcdir"; then | |
1368 | ac_srcdir_defaulted=yes | |
efd58f08 RW |
1369 | # Try the directory containing this script, then the parent directory. |
1370 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1371 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1372 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1373 | X"$as_myself" : 'X\(//\)$' \| \ | |
1374 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1375 | $as_echo X"$as_myself" | | |
1376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\/\)[^/].*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)$/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\).*/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | s/.*/./; q'` | |
bafecfd6 | 1393 | srcdir=$ac_confdir |
efd58f08 | 1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
bafecfd6 NN |
1395 | srcdir=.. |
1396 | fi | |
1397 | else | |
1398 | ac_srcdir_defaulted=no | |
1399 | fi | |
efd58f08 RW |
1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
1401 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
6d3ddf51 | 1402 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
efd58f08 RW |
1403 | fi |
1404 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1405 | ac_abs_confdir=`( | |
6d3ddf51 | 1406 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
efd58f08 RW |
1407 | pwd)` |
1408 | # When building in place, set srcdir=. | |
1409 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1410 | srcdir=. | |
1411 | fi | |
1412 | # Remove unnecessary trailing slashes from srcdir. | |
1413 | # Double slashes in file names in object file debugging info | |
1414 | # mess up M-x gdb in Emacs. | |
1415 | case $srcdir in | |
1416 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1417 | esac | |
c7fc8442 AM |
1418 | case $srcdir in |
1419 | *" "*) | |
6d3ddf51 | 1420 | as_fn_error $? "path to source, $srcdir, contains spaces" |
c7fc8442 AM |
1421 | ;; |
1422 | esac | |
3fbb5e3d PB |
1423 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1424 | ||
efd58f08 RW |
1425 | for ac_var in $ac_precious_vars; do |
1426 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1428 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1429 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1430 | done | |
b58b6ee1 DJ |
1431 | |
1432 | # | |
1433 | # Report the --help message. | |
1434 | # | |
1435 | if test "$ac_init_help" = "long"; then | |
1436 | # Omit some internal or obsolete options to make the list less imposing. | |
1437 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1438 | cat <<_ACEOF | |
1439 | \`configure' configures this package to adapt to many kinds of systems. | |
1440 | ||
1441 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1442 | ||
1443 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1444 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1445 | ||
1446 | Defaults for the options are specified in brackets. | |
1447 | ||
1448 | Configuration: | |
1449 | -h, --help display this help and exit | |
1450 | --help=short display options specific to this package | |
1451 | --help=recursive display the short help of all the included packages | |
1452 | -V, --version display version information and exit | |
6d3ddf51 | 1453 | -q, --quiet, --silent do not print \`checking ...' messages |
b58b6ee1 DJ |
1454 | --cache-file=FILE cache test results in FILE [disabled] |
1455 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1456 | -n, --no-create do not create output files | |
1457 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1458 | ||
b58b6ee1 DJ |
1459 | Installation directories: |
1460 | --prefix=PREFIX install architecture-independent files in PREFIX | |
efd58f08 | 1461 | [$ac_default_prefix] |
b58b6ee1 | 1462 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
efd58f08 | 1463 | [PREFIX] |
b58b6ee1 DJ |
1464 | |
1465 | By default, \`make install' will install all the files in | |
1466 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1467 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1468 | for instance \`--prefix=\$HOME'. | |
1469 | ||
1470 | For better control, use the options below. | |
1471 | ||
1472 | Fine tuning of the installation directories: | |
efd58f08 RW |
1473 | --bindir=DIR user executables [EPREFIX/bin] |
1474 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1475 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1476 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1477 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1478 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
90d6966b | 1479 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
efd58f08 RW |
1480 | --libdir=DIR object code libraries [EPREFIX/lib] |
1481 | --includedir=DIR C header files [PREFIX/include] | |
1482 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1483 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1484 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1485 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1486 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1487 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1488 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1489 | --htmldir=DIR html documentation [DOCDIR] | |
1490 | --dvidir=DIR dvi documentation [DOCDIR] | |
1491 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1492 | --psdir=DIR ps documentation [DOCDIR] | |
b58b6ee1 DJ |
1493 | _ACEOF |
1494 | ||
1495 | cat <<\_ACEOF | |
1496 | ||
1497 | Program names: | |
1498 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1499 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1500 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1501 | ||
1502 | System types: | |
1503 | --build=BUILD configure for building on BUILD [guessed] | |
1504 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1505 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1506 | _ACEOF | |
bafecfd6 | 1507 | fi |
bafecfd6 | 1508 | |
b58b6ee1 DJ |
1509 | if test -n "$ac_init_help"; then |
1510 | ||
1511 | cat <<\_ACEOF | |
1512 | ||
1513 | Optional Features: | |
efd58f08 | 1514 | --disable-option-checking ignore unrecognized --enable/--with options |
b58b6ee1 DJ |
1515 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1516 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
fe508576 CV |
1517 | --enable-as-accelerator-for=ARG |
1518 | build as offload target compiler. Specify offload | |
1519 | host triple by ARG | |
1520 | --enable-offload-targets=LIST | |
1521 | enable offloading to devices from comma-separated | |
1522 | LIST of TARGET[=DIR]. Use optional path to find | |
1523 | offload target compiler during the build | |
679e4c82 | 1524 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
5623c499 | 1525 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
fe508576 CV |
1526 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
1527 | Enable compressed debug sections for gas, gold or ld | |
1528 | by default | |
d4b54911 PB |
1529 | --disable-libquadmath do not build libquadmath directory |
1530 | --disable-libquadmath-support | |
1531 | disable libquadmath support for Fortran | |
b301596e DD |
1532 | --enable-libada build libada directory |
1533 | --enable-libssp build libssp directory | |
5ec30f78 | 1534 | --disable-libstdcxx do not build libstdc++-v3 directory |
fe508576 CV |
1535 | --enable-liboffloadmic=ARG |
1536 | build liboffloadmic [ARG={no,host,target}] | |
c9161585 ILT |
1537 | --enable-static-libjava[=ARG] |
1538 | build static libjava [default=no] | |
1539 | --enable-bootstrap enable bootstrapping [yes if native build] | |
a626f4ee | 1540 | --disable-isl-version-check |
fe508576 | 1541 | disable check for isl version |
bd45d6fa | 1542 | --enable-lto enable link time optimization support |
fe508576 CV |
1543 | --enable-linker-plugin-configure-flags=FLAGS |
1544 | additional flags for configuring linker plugins | |
1545 | [none] | |
1546 | --enable-linker-plugin-flags=FLAGS | |
1547 | additional flags for configuring and building linker | |
1548 | plugins [none] | |
5623c499 AS |
1549 | --enable-stage1-languages[=all] |
1550 | choose additional languages to build during stage1. | |
1551 | Mostly useful for compiler development | |
1552 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1553 | Objective-C runtime | |
fe508576 | 1554 | --enable-vtable-verify Enable vtable verification feature |
b301596e | 1555 | --enable-serial-[{host,target,build}-]configure |
5623c499 AS |
1556 | force sequential configuration of sub-packages for |
1557 | the host, target or build machine, or all | |
1558 | sub-packages | |
1559 | --enable-maintainer-mode | |
1560 | enable make rules and dependencies not useful (and | |
1561 | sometimes confusing) to the casual installer | |
1562 | --enable-stage1-checking[=all] | |
1563 | choose additional checking for stage1 of the | |
1564 | compiler | |
b58b6ee1 | 1565 | --enable-werror enable -Werror in bootstrap stage2 and later |
afa221db | 1566 | --enable-host-shared build host code as shared libraries |
b58b6ee1 DJ |
1567 | |
1568 | Optional Packages: | |
1569 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1570 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1571 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
fe508576 | 1572 | --with-system-zlib use installed libz |
5623c499 AS |
1573 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1574 | Equivalent to --with-mpc-include=PATH/include plus | |
1575 | --with-mpc-lib=PATH/lib | |
1576 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1577 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
b301596e DD |
1578 | --with-mpfr-dir=PATH this option has been REMOVED |
1579 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
5623c499 AS |
1580 | Equivalent to --with-mpfr-include=PATH/include plus |
1581 | --with-mpfr-lib=PATH/lib | |
b58b6ee1 | 1582 | --with-mpfr-include=PATH |
b301596e DD |
1583 | specify directory for installed MPFR include files |
1584 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1585 | --with-gmp-dir=PATH this option has been REMOVED | |
5623c499 AS |
1586 | --with-gmp=PATH specify prefix directory for the installed GMP |
1587 | package. Equivalent to | |
1588 | --with-gmp-include=PATH/include plus | |
1589 | --with-gmp-lib=PATH/lib | |
b301596e DD |
1590 | --with-gmp-include=PATH specify directory for installed GMP include files |
1591 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
e8853092 | 1592 | --with-stage1-libs=LIBS libraries for stage1 |
5623c499 AS |
1593 | --with-stage1-ldflags=FLAGS |
1594 | linker flags for stage1 | |
5623c499 AS |
1595 | --with-boot-libs=LIBS libraries for stage2 and later |
1596 | --with-boot-ldflags=FLAGS | |
1597 | linker flags for stage2 and later | |
fe508576 | 1598 | --with-isl=PATH Specify prefix directory for the installed isl |
5623c499 | 1599 | package. Equivalent to |
a626f4ee L |
1600 | --with-isl-include=PATH/include plus |
1601 | --with-isl-lib=PATH/lib | |
fe508576 CV |
1602 | --with-isl-include=PATH Specify directory for installed isl include files |
1603 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
b301596e | 1604 | --with-build-sysroot=SYSROOT |
b58b6ee1 | 1605 | use sysroot as the system root during the build |
fcc5fef0 | 1606 | --with-debug-prefix-map='A=B C=D ...' |
5623c499 | 1607 | map A to B, C to D ... in debug information |
90d6966b | 1608 | --with-tooldir=PATH use given path to install target tools after build |
5623c499 AS |
1609 | --with-build-config='NAME NAME2...' |
1610 | use config/NAME.mk build configuration | |
b301596e | 1611 | --with-build-time-tools=PATH |
b58b6ee1 | 1612 | use given path to find target tools during the build |
b58b6ee1 DJ |
1613 | |
1614 | Some influential environment variables: | |
1615 | CC C compiler command | |
1616 | CFLAGS C compiler flags | |
1617 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1618 | nonstandard directory <lib dir> | |
efd58f08 | 1619 | LIBS libraries to pass to the linker, e.g. -l<library> |
6d3ddf51 | 1620 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
efd58f08 | 1621 | you have headers in a nonstandard directory <include dir> |
b8c26111 PB |
1622 | CXX C++ compiler command |
1623 | CXXFLAGS C++ compiler flags | |
1d694d8e RW |
1624 | build_configargs |
1625 | additional configure arguments for build directories | |
1626 | host_configargs | |
1627 | additional configure arguments for host directories | |
1628 | target_configargs | |
1629 | additional configure arguments for target directories | |
82026593 AO |
1630 | AR AR for the host |
1631 | AS AS for the host | |
1632 | DLLTOOL DLLTOOL for the host | |
1633 | LD LD for the host | |
1634 | LIPO LIPO for the host | |
1635 | NM NM for the host | |
1636 | RANLIB RANLIB for the host | |
1637 | STRIP STRIP for the host | |
1638 | WINDRES WINDRES for the host | |
bffcbe34 | 1639 | WINDMC WINDMC for the host |
82026593 AO |
1640 | OBJCOPY OBJCOPY for the host |
1641 | OBJDUMP OBJDUMP for the host | |
46e7439b | 1642 | READELF READELF for the host |
82026593 AO |
1643 | CC_FOR_TARGET |
1644 | CC for the target | |
1645 | CXX_FOR_TARGET | |
1646 | CXX for the target | |
1647 | GCC_FOR_TARGET | |
1648 | GCC for the target | |
1649 | GCJ_FOR_TARGET | |
1650 | GCJ for the target | |
1651 | GFORTRAN_FOR_TARGET | |
1652 | GFORTRAN for the target | |
d5b7129a ILT |
1653 | GOC_FOR_TARGET |
1654 | GOC for the target | |
82026593 AO |
1655 | AR_FOR_TARGET |
1656 | AR for the target | |
1657 | AS_FOR_TARGET | |
1658 | AS for the target | |
1659 | DLLTOOL_FOR_TARGET | |
1660 | DLLTOOL for the target | |
1661 | LD_FOR_TARGET | |
1662 | LD for the target | |
1663 | LIPO_FOR_TARGET | |
1664 | LIPO for the target | |
1665 | NM_FOR_TARGET | |
1666 | NM for the target | |
fe508576 CV |
1667 | OBJCOPY_FOR_TARGET |
1668 | OBJCOPY for the target | |
82026593 AO |
1669 | OBJDUMP_FOR_TARGET |
1670 | OBJDUMP for the target | |
1671 | RANLIB_FOR_TARGET | |
1672 | RANLIB for the target | |
46e7439b DD |
1673 | READELF_FOR_TARGET |
1674 | READELF for the target | |
82026593 AO |
1675 | STRIP_FOR_TARGET |
1676 | STRIP for the target | |
1677 | WINDRES_FOR_TARGET | |
1678 | WINDRES for the target | |
bffcbe34 NC |
1679 | WINDMC_FOR_TARGET |
1680 | WINDMC for the target | |
b58b6ee1 DJ |
1681 | |
1682 | Use these variables to override the choices made by `configure' or to help | |
1683 | it to find libraries and programs with nonstandard names/locations. | |
1684 | ||
efd58f08 | 1685 | Report bugs to the package provider. |
b58b6ee1 | 1686 | _ACEOF |
efd58f08 | 1687 | ac_status=$? |
b58b6ee1 DJ |
1688 | fi |
1689 | ||
1690 | if test "$ac_init_help" = "recursive"; then | |
1691 | # If there are subdirs, report their specific --help. | |
b58b6ee1 | 1692 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
efd58f08 RW |
1693 | test -d "$ac_dir" || |
1694 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1695 | continue | |
b58b6ee1 DJ |
1696 | ac_builddir=. |
1697 | ||
efd58f08 RW |
1698 | case "$ac_dir" in |
1699 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1700 | *) | |
1701 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1702 | # A ".." for each directory in $ac_dir_suffix. | |
1703 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1704 | case $ac_top_builddir_sub in | |
1705 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1706 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1707 | esac ;; | |
1708 | esac | |
1709 | ac_abs_top_builddir=$ac_pwd | |
1710 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1711 | # for backward compatibility: | |
1712 | ac_top_builddir=$ac_top_build_prefix | |
b58b6ee1 DJ |
1713 | |
1714 | case $srcdir in | |
efd58f08 | 1715 | .) # We are building in place. |
b58b6ee1 | 1716 | ac_srcdir=. |
efd58f08 RW |
1717 | ac_top_srcdir=$ac_top_builddir_sub |
1718 | ac_abs_top_srcdir=$ac_pwd ;; | |
1719 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b58b6ee1 | 1720 | ac_srcdir=$srcdir$ac_dir_suffix; |
efd58f08 RW |
1721 | ac_top_srcdir=$srcdir |
1722 | ac_abs_top_srcdir=$srcdir ;; | |
1723 | *) # Relative name. | |
1724 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1725 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1726 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b58b6ee1 | 1727 | esac |
efd58f08 RW |
1728 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1729 | ||
1730 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1731 | # Check for guested configure. | |
1732 | if test -f "$ac_srcdir/configure.gnu"; then | |
1733 | echo && | |
1734 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1735 | elif test -f "$ac_srcdir/configure"; then | |
1736 | echo && | |
1737 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b58b6ee1 | 1738 | else |
efd58f08 RW |
1739 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1740 | fi || ac_status=$? | |
1741 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b58b6ee1 DJ |
1742 | done |
1743 | fi | |
1744 | ||
efd58f08 | 1745 | test -n "$ac_init_help" && exit $ac_status |
b58b6ee1 DJ |
1746 | if $ac_init_version; then |
1747 | cat <<\_ACEOF | |
efd58f08 | 1748 | configure |
6d3ddf51 | 1749 | generated by GNU Autoconf 2.69 |
b58b6ee1 | 1750 | |
6d3ddf51 | 1751 | Copyright (C) 2012 Free Software Foundation, Inc. |
b58b6ee1 DJ |
1752 | This configure script is free software; the Free Software Foundation |
1753 | gives unlimited permission to copy, distribute and modify it. | |
1754 | _ACEOF | |
efd58f08 | 1755 | exit |
b58b6ee1 | 1756 | fi |
efd58f08 RW |
1757 | |
1758 | ## ------------------------ ## | |
1759 | ## Autoconf initialization. ## | |
1760 | ## ------------------------ ## | |
1761 | ||
1762 | # ac_fn_c_try_compile LINENO | |
1763 | # -------------------------- | |
1764 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1765 | ac_fn_c_try_compile () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | rm -f conftest.$ac_objext | |
1769 | if { { ac_try="$ac_compile" | |
1770 | case "(($ac_try" in | |
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 | *) ac_try_echo=$ac_try;; | |
1773 | esac | |
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 | $as_echo "$ac_try_echo"; } >&5 | |
1776 | (eval "$ac_compile") 2>conftest.err | |
1777 | ac_status=$? | |
1778 | if test -s conftest.err; then | |
1779 | grep -v '^ *+' conftest.err >conftest.er1 | |
1780 | cat conftest.er1 >&5 | |
1781 | mv -f conftest.er1 conftest.err | |
1782 | fi | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; } && { | |
1785 | test -z "$ac_c_werror_flag" || | |
1786 | test ! -s conftest.err | |
1787 | } && test -s conftest.$ac_objext; then : | |
1788 | ac_retval=0 | |
1789 | else | |
1790 | $as_echo "$as_me: failed program was:" >&5 | |
1791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1792 | ||
1793 | ac_retval=1 | |
1794 | fi | |
6d3ddf51 SM |
1795 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1796 | as_fn_set_status $ac_retval | |
efd58f08 RW |
1797 | |
1798 | } # ac_fn_c_try_compile | |
1799 | ||
1800 | # ac_fn_cxx_try_compile LINENO | |
1801 | # ---------------------------- | |
1802 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1803 | ac_fn_cxx_try_compile () | |
1804 | { | |
1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1806 | rm -f conftest.$ac_objext | |
1807 | if { { ac_try="$ac_compile" | |
1808 | case "(($ac_try" in | |
1809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1810 | *) ac_try_echo=$ac_try;; | |
1811 | esac | |
1812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1813 | $as_echo "$ac_try_echo"; } >&5 | |
1814 | (eval "$ac_compile") 2>conftest.err | |
1815 | ac_status=$? | |
1816 | if test -s conftest.err; then | |
1817 | grep -v '^ *+' conftest.err >conftest.er1 | |
1818 | cat conftest.er1 >&5 | |
1819 | mv -f conftest.er1 conftest.err | |
1820 | fi | |
1821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1822 | test $ac_status = 0; } && { | |
1823 | test -z "$ac_cxx_werror_flag" || | |
1824 | test ! -s conftest.err | |
1825 | } && test -s conftest.$ac_objext; then : | |
1826 | ac_retval=0 | |
1827 | else | |
1828 | $as_echo "$as_me: failed program was:" >&5 | |
1829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1830 | ||
1831 | ac_retval=1 | |
1832 | fi | |
6d3ddf51 SM |
1833 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1834 | as_fn_set_status $ac_retval | |
efd58f08 RW |
1835 | |
1836 | } # ac_fn_cxx_try_compile | |
1837 | ||
e8853092 EB |
1838 | # ac_fn_cxx_try_link LINENO |
1839 | # ------------------------- | |
1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1841 | ac_fn_cxx_try_link () | |
1842 | { | |
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1845 | if { { ac_try="$ac_link" | |
1846 | case "(($ac_try" in | |
1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 | *) ac_try_echo=$ac_try;; | |
1849 | esac | |
1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1851 | $as_echo "$ac_try_echo"; } >&5 | |
1852 | (eval "$ac_link") 2>conftest.err | |
1853 | ac_status=$? | |
1854 | if test -s conftest.err; then | |
1855 | grep -v '^ *+' conftest.err >conftest.er1 | |
1856 | cat conftest.er1 >&5 | |
1857 | mv -f conftest.er1 conftest.err | |
1858 | fi | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { | |
1861 | test -z "$ac_cxx_werror_flag" || | |
1862 | test ! -s conftest.err | |
1863 | } && test -s conftest$ac_exeext && { | |
1864 | test "$cross_compiling" = yes || | |
6d3ddf51 | 1865 | test -x conftest$ac_exeext |
e8853092 EB |
1866 | }; then : |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: failed program was:" >&5 | |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1871 | ||
1872 | ac_retval=1 | |
1873 | fi | |
1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1876 | # interfere with the next link command; also delete a directory that is | |
1877 | # left behind by Apple's compiler. We do this before executing the actions. | |
1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
6d3ddf51 SM |
1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1880 | as_fn_set_status $ac_retval | |
e8853092 EB |
1881 | |
1882 | } # ac_fn_cxx_try_link | |
1883 | ||
efd58f08 RW |
1884 | # ac_fn_c_try_link LINENO |
1885 | # ----------------------- | |
1886 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1887 | ac_fn_c_try_link () | |
1888 | { | |
1889 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1891 | if { { ac_try="$ac_link" | |
1892 | case "(($ac_try" in | |
1893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1894 | *) ac_try_echo=$ac_try;; | |
1895 | esac | |
1896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1897 | $as_echo "$ac_try_echo"; } >&5 | |
1898 | (eval "$ac_link") 2>conftest.err | |
1899 | ac_status=$? | |
1900 | if test -s conftest.err; then | |
1901 | grep -v '^ *+' conftest.err >conftest.er1 | |
1902 | cat conftest.er1 >&5 | |
1903 | mv -f conftest.er1 conftest.err | |
1904 | fi | |
1905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1906 | test $ac_status = 0; } && { | |
1907 | test -z "$ac_c_werror_flag" || | |
1908 | test ! -s conftest.err | |
1909 | } && test -s conftest$ac_exeext && { | |
1910 | test "$cross_compiling" = yes || | |
6d3ddf51 | 1911 | test -x conftest$ac_exeext |
efd58f08 RW |
1912 | }; then : |
1913 | ac_retval=0 | |
1914 | else | |
1915 | $as_echo "$as_me: failed program was:" >&5 | |
1916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1917 | ||
1918 | ac_retval=1 | |
1919 | fi | |
1920 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1921 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1922 | # interfere with the next link command; also delete a directory that is | |
1923 | # left behind by Apple's compiler. We do this before executing the actions. | |
1924 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
6d3ddf51 SM |
1925 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1926 | as_fn_set_status $ac_retval | |
efd58f08 RW |
1927 | |
1928 | } # ac_fn_c_try_link | |
1929 | cat >config.log <<_ACEOF | |
b58b6ee1 DJ |
1930 | This file contains any messages produced by compilers while |
1931 | running configure, to aid debugging if configure makes a mistake. | |
1932 | ||
1933 | It was created by $as_me, which was | |
6d3ddf51 | 1934 | generated by GNU Autoconf 2.69. Invocation command line was |
b58b6ee1 DJ |
1935 | |
1936 | $ $0 $@ | |
1937 | ||
1938 | _ACEOF | |
efd58f08 | 1939 | exec 5>>config.log |
b58b6ee1 DJ |
1940 | { |
1941 | cat <<_ASUNAME | |
1942 | ## --------- ## | |
1943 | ## Platform. ## | |
1944 | ## --------- ## | |
1945 | ||
1946 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1947 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1948 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1949 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1950 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1951 | ||
1952 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1953 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1954 | ||
1955 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1956 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1957 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
efd58f08 | 1958 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b58b6ee1 DJ |
1959 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1960 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1961 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1962 | ||
1963 | _ASUNAME | |
1964 | ||
1965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1966 | for as_dir in $PATH | |
1967 | do | |
1968 | IFS=$as_save_IFS | |
1969 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
1970 | $as_echo "PATH: $as_dir" |
1971 | done | |
1972 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
1973 | |
1974 | } >&5 | |
1975 | ||
1976 | cat >&5 <<_ACEOF | |
1977 | ||
1978 | ||
1979 | ## ----------- ## | |
1980 | ## Core tests. ## | |
1981 | ## ----------- ## | |
1982 | ||
1983 | _ACEOF | |
1984 | ||
1985 | ||
1986 | # Keep a trace of the command line. | |
1987 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1988 | # Strip out --silent because we don't want to record it for future runs. | |
1989 | # Also quote any args containing shell meta-characters. | |
1990 | # Make two passes to allow for proper duplicate-argument suppression. | |
1991 | ac_configure_args= | |
1992 | ac_configure_args0= | |
1993 | ac_configure_args1= | |
b58b6ee1 DJ |
1994 | ac_must_keep_next=false |
1995 | for ac_pass in 1 2 | |
1996 | do | |
1997 | for ac_arg | |
1998 | do | |
1999 | case $ac_arg in | |
2000 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2001 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2002 | | -silent | --silent | --silen | --sile | --sil) | |
2003 | continue ;; | |
efd58f08 RW |
2004 | *\'*) |
2005 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b58b6ee1 DJ |
2006 | esac |
2007 | case $ac_pass in | |
efd58f08 | 2008 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b58b6ee1 | 2009 | 2) |
efd58f08 | 2010 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b58b6ee1 DJ |
2011 | if test $ac_must_keep_next = true; then |
2012 | ac_must_keep_next=false # Got value, back to normal. | |
2013 | else | |
2014 | case $ac_arg in | |
2015 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2016 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2017 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2018 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2019 | case "$ac_configure_args0 " in | |
2020 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2021 | esac | |
2022 | ;; | |
2023 | -* ) ac_must_keep_next=true ;; | |
2024 | esac | |
2025 | fi | |
efd58f08 | 2026 | as_fn_append ac_configure_args " '$ac_arg'" |
b58b6ee1 DJ |
2027 | ;; |
2028 | esac | |
2029 | done | |
2030 | done | |
efd58f08 RW |
2031 | { ac_configure_args0=; unset ac_configure_args0;} |
2032 | { ac_configure_args1=; unset ac_configure_args1;} | |
b58b6ee1 DJ |
2033 | |
2034 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2035 | # config.log. We remove comments because anyway the quotes in there | |
2036 | # would cause problems or look ugly. | |
efd58f08 RW |
2037 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2038 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b58b6ee1 DJ |
2039 | trap 'exit_status=$? |
2040 | # Save into config.log some information that might help in debugging. | |
2041 | { | |
2042 | echo | |
2043 | ||
6d3ddf51 | 2044 | $as_echo "## ---------------- ## |
b58b6ee1 | 2045 | ## Cache variables. ## |
6d3ddf51 | 2046 | ## ---------------- ##" |
b58b6ee1 DJ |
2047 | echo |
2048 | # The following way of writing the cache mishandles newlines in values, | |
efd58f08 RW |
2049 | ( |
2050 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2051 | eval ac_val=\$$ac_var | |
2052 | case $ac_val in #( | |
2053 | *${as_nl}*) | |
2054 | case $ac_var in #( | |
2055 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2056 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2057 | esac | |
2058 | case $ac_var in #( | |
2059 | _ | IFS | as_nl) ;; #( | |
2060 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2061 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2062 | esac ;; | |
2063 | esac | |
2064 | done | |
b58b6ee1 | 2065 | (set) 2>&1 | |
efd58f08 RW |
2066 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2067 | *${as_nl}ac_space=\ *) | |
b58b6ee1 | 2068 | sed -n \ |
efd58f08 RW |
2069 | "s/'\''/'\''\\\\'\'''\''/g; |
2070 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2071 | ;; #( | |
b58b6ee1 | 2072 | *) |
efd58f08 | 2073 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b58b6ee1 | 2074 | ;; |
efd58f08 RW |
2075 | esac | |
2076 | sort | |
2077 | ) | |
b58b6ee1 DJ |
2078 | echo |
2079 | ||
6d3ddf51 | 2080 | $as_echo "## ----------------- ## |
b58b6ee1 | 2081 | ## Output variables. ## |
6d3ddf51 | 2082 | ## ----------------- ##" |
b58b6ee1 DJ |
2083 | echo |
2084 | for ac_var in $ac_subst_vars | |
2085 | do | |
efd58f08 RW |
2086 | eval ac_val=\$$ac_var |
2087 | case $ac_val in | |
2088 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2089 | esac | |
2090 | $as_echo "$ac_var='\''$ac_val'\''" | |
b58b6ee1 DJ |
2091 | done | sort |
2092 | echo | |
2093 | ||
2094 | if test -n "$ac_subst_files"; then | |
6d3ddf51 | 2095 | $as_echo "## ------------------- ## |
efd58f08 | 2096 | ## File substitutions. ## |
6d3ddf51 | 2097 | ## ------------------- ##" |
b58b6ee1 DJ |
2098 | echo |
2099 | for ac_var in $ac_subst_files | |
2100 | do | |
efd58f08 RW |
2101 | eval ac_val=\$$ac_var |
2102 | case $ac_val in | |
2103 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2104 | esac | |
2105 | $as_echo "$ac_var='\''$ac_val'\''" | |
b58b6ee1 DJ |
2106 | done | sort |
2107 | echo | |
2108 | fi | |
2109 | ||
2110 | if test -s confdefs.h; then | |
6d3ddf51 | 2111 | $as_echo "## ----------- ## |
b58b6ee1 | 2112 | ## confdefs.h. ## |
6d3ddf51 | 2113 | ## ----------- ##" |
b58b6ee1 | 2114 | echo |
efd58f08 | 2115 | cat confdefs.h |
b58b6ee1 DJ |
2116 | echo |
2117 | fi | |
2118 | test "$ac_signal" != 0 && | |
efd58f08 RW |
2119 | $as_echo "$as_me: caught signal $ac_signal" |
2120 | $as_echo "$as_me: exit $exit_status" | |
b58b6ee1 | 2121 | } >&5 |
efd58f08 RW |
2122 | rm -f core *.core core.conftest.* && |
2123 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b58b6ee1 | 2124 | exit $exit_status |
efd58f08 | 2125 | ' 0 |
b58b6ee1 | 2126 | for ac_signal in 1 2 13 15; do |
efd58f08 | 2127 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b58b6ee1 DJ |
2128 | done |
2129 | ac_signal=0 | |
2130 | ||
2131 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
efd58f08 RW |
2132 | rm -f -r conftest* confdefs.h |
2133 | ||
2134 | $as_echo "/* confdefs.h */" > confdefs.h | |
b58b6ee1 DJ |
2135 | |
2136 | # Predefined preprocessor variables. | |
2137 | ||
2138 | cat >>confdefs.h <<_ACEOF | |
2139 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2140 | _ACEOF | |
2141 | ||
b58b6ee1 DJ |
2142 | cat >>confdefs.h <<_ACEOF |
2143 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2144 | _ACEOF | |
2145 | ||
b58b6ee1 DJ |
2146 | cat >>confdefs.h <<_ACEOF |
2147 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2148 | _ACEOF | |
2149 | ||
b58b6ee1 DJ |
2150 | cat >>confdefs.h <<_ACEOF |
2151 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2152 | _ACEOF | |
2153 | ||
b58b6ee1 DJ |
2154 | cat >>confdefs.h <<_ACEOF |
2155 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2156 | _ACEOF | |
2157 | ||
efd58f08 RW |
2158 | cat >>confdefs.h <<_ACEOF |
2159 | #define PACKAGE_URL "$PACKAGE_URL" | |
2160 | _ACEOF | |
2161 | ||
b58b6ee1 DJ |
2162 | |
2163 | # Let the site file select an alternate cache file if it wants to. | |
efd58f08 RW |
2164 | # Prefer an explicitly selected file to automatically selected ones. |
2165 | ac_site_file1=NONE | |
2166 | ac_site_file2=NONE | |
2167 | if test -n "$CONFIG_SITE"; then | |
6d3ddf51 SM |
2168 | # We do not want a PATH search for config.site. |
2169 | case $CONFIG_SITE in #(( | |
2170 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2171 | */*) ac_site_file1=$CONFIG_SITE;; | |
2172 | *) ac_site_file1=./$CONFIG_SITE;; | |
2173 | esac | |
efd58f08 RW |
2174 | elif test "x$prefix" != xNONE; then |
2175 | ac_site_file1=$prefix/share/config.site | |
2176 | ac_site_file2=$prefix/etc/config.site | |
2177 | else | |
2178 | ac_site_file1=$ac_default_prefix/share/config.site | |
2179 | ac_site_file2=$ac_default_prefix/etc/config.site | |
bafecfd6 | 2180 | fi |
efd58f08 RW |
2181 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2182 | do | |
2183 | test "x$ac_site_file" = xNONE && continue | |
6d3ddf51 | 2184 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
efd58f08 RW |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2186 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b58b6ee1 | 2187 | sed 's/^/| /' "$ac_site_file" >&5 |
6d3ddf51 SM |
2188 | . "$ac_site_file" \ |
2189 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2191 | as_fn_error $? "failed to load site script $ac_site_file | |
2192 | See \`config.log' for more details" "$LINENO" 5; } | |
bafecfd6 NN |
2193 | fi |
2194 | done | |
2195 | ||
2196 | if test -r "$cache_file"; then | |
6d3ddf51 SM |
2197 | # Some versions of bash will fail to source /dev/null (special files |
2198 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2199 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
efd58f08 RW |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2201 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b58b6ee1 | 2202 | case $cache_file in |
efd58f08 RW |
2203 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2204 | *) . "./$cache_file";; | |
b58b6ee1 DJ |
2205 | esac |
2206 | fi | |
bafecfd6 | 2207 | else |
efd58f08 RW |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2209 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b58b6ee1 DJ |
2210 | >$cache_file |
2211 | fi | |
2212 | ||
2213 | # Check that the precious variables saved in the cache have kept the same | |
2214 | # value. | |
2215 | ac_cache_corrupted=false | |
efd58f08 | 2216 | for ac_var in $ac_precious_vars; do |
b58b6ee1 DJ |
2217 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2218 | eval ac_new_set=\$ac_env_${ac_var}_set | |
efd58f08 RW |
2219 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2220 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b58b6ee1 DJ |
2221 | case $ac_old_set,$ac_new_set in |
2222 | set,) | |
efd58f08 RW |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2224 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b58b6ee1 DJ |
2225 | ac_cache_corrupted=: ;; |
2226 | ,set) | |
efd58f08 RW |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2228 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b58b6ee1 DJ |
2229 | ac_cache_corrupted=: ;; |
2230 | ,);; | |
2231 | *) | |
2232 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
efd58f08 RW |
2233 | # differences in whitespace do not lead to failure. |
2234 | ac_old_val_w=`echo x $ac_old_val` | |
2235 | ac_new_val_w=`echo x $ac_new_val` | |
2236 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2238 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2239 | ac_cache_corrupted=: | |
2240 | else | |
2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2242 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2243 | eval $ac_var=\$ac_old_val | |
2244 | fi | |
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2246 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2248 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b58b6ee1 DJ |
2249 | fi;; |
2250 | esac | |
2251 | # Pass precious variables to config.status. | |
2252 | if test "$ac_new_set" = set; then | |
2253 | case $ac_new_val in | |
efd58f08 | 2254 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b58b6ee1 DJ |
2255 | *) ac_arg=$ac_var=$ac_new_val ;; |
2256 | esac | |
2257 | case " $ac_configure_args " in | |
2258 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
efd58f08 | 2259 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b58b6ee1 DJ |
2260 | esac |
2261 | fi | |
2262 | done | |
2263 | if $ac_cache_corrupted; then | |
efd58f08 RW |
2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2267 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
6d3ddf51 | 2268 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
bafecfd6 | 2269 | fi |
efd58f08 RW |
2270 | ## -------------------- ## |
2271 | ## Main body of script. ## | |
2272 | ## -------------------- ## | |
bafecfd6 NN |
2273 | |
2274 | ac_ext=c | |
bafecfd6 | 2275 | ac_cpp='$CPP $CPPFLAGS' |
b58b6ee1 DJ |
2276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2279 | ||
2280 | ||
2281 | ||
2282 | ||
b58b6ee1 DJ |
2283 | |
2284 | ||
5546e07b | 2285 | |
b58b6ee1 | 2286 | |
00f8aa9c RW |
2287 | progname=$0 |
2288 | # if PWD already has a value, it is probably wrong. | |
2289 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2290 | ||
2291 | # Export original configure arguments for use by sub-configures. | |
2292 | # Quote arguments with shell meta charatcers. | |
2293 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2294 | set -- "$progname" "$@" | |
2295 | for ac_arg | |
2296 | do | |
2297 | case "$ac_arg" in | |
2298 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2299 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2300 | # if the argument is of the form -foo=baz, quote the baz part only | |
2301 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2302 | *) ;; | |
2303 | esac | |
2304 | # Add the quoted argument to the list. | |
2305 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2306 | done | |
2307 | if test "$silent" = yes; then | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2309 | fi | |
2310 | # Remove the initial space we just introduced and, as these will be | |
2311 | # expanded by make, quote '$'. | |
2312 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2313 | ||
b58b6ee1 DJ |
2314 | |
2315 | # Find the build, host, and target systems. | |
bafecfd6 | 2316 | ac_aux_dir= |
efd58f08 | 2317 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
6d3ddf51 SM |
2318 | if test -f "$ac_dir/install-sh"; then |
2319 | ac_aux_dir=$ac_dir | |
2320 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2321 | break | |
2322 | elif test -f "$ac_dir/install.sh"; then | |
2323 | ac_aux_dir=$ac_dir | |
2324 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2325 | break | |
2326 | elif test -f "$ac_dir/shtool"; then | |
2327 | ac_aux_dir=$ac_dir | |
2328 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2329 | break | |
2330 | fi | |
bafecfd6 NN |
2331 | done |
2332 | if test -z "$ac_aux_dir"; then | |
6d3ddf51 | 2333 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
bafecfd6 | 2334 | fi |
efd58f08 RW |
2335 | |
2336 | # These three variables are undocumented and unsupported, | |
2337 | # and are intended to be withdrawn in a future Autoconf release. | |
2338 | # They can cause serious problems if a builder's source tree is in a directory | |
2339 | # whose full name contains unusual characters. | |
2340 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2341 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2342 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2343 | ||
bafecfd6 | 2344 | |
b58b6ee1 | 2345 | # Make sure we can run config.sub. |
efd58f08 | 2346 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
6d3ddf51 | 2347 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
efd58f08 RW |
2348 | |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2350 | $as_echo_n "checking build system type... " >&6; } | |
6d3ddf51 | 2351 | if ${ac_cv_build+:} false; then : |
efd58f08 RW |
2352 | $as_echo_n "(cached) " >&6 |
2353 | else | |
2354 | ac_build_alias=$build_alias | |
2355 | test "x$ac_build_alias" = x && | |
2356 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2357 | test "x$ac_build_alias" = x && | |
6d3ddf51 | 2358 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
efd58f08 | 2359 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
6d3ddf51 | 2360 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
efd58f08 RW |
2361 | |
2362 | fi | |
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2364 | $as_echo "$ac_cv_build" >&6; } | |
2365 | case $ac_cv_build in | |
2366 | *-*-*) ;; | |
6d3ddf51 | 2367 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
efd58f08 | 2368 | esac |
b58b6ee1 | 2369 | build=$ac_cv_build |
efd58f08 RW |
2370 | ac_save_IFS=$IFS; IFS='-' |
2371 | set x $ac_cv_build | |
2372 | shift | |
2373 | build_cpu=$1 | |
2374 | build_vendor=$2 | |
2375 | shift; shift | |
2376 | # Remember, the first character of IFS is used to create $*, | |
2377 | # except with old shells: | |
2378 | build_os=$* | |
2379 | IFS=$ac_save_IFS | |
2380 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
bafecfd6 | 2381 | |
bafecfd6 | 2382 | |
b58b6ee1 DJ |
2383 | case ${build_alias} in |
2384 | "") build_noncanonical=${build} ;; | |
2385 | *) build_noncanonical=${build_alias} ;; | |
f69e2532 CM |
2386 | esac |
2387 | ||
2388 | ||
f69e2532 | 2389 | |
b58b6ee1 DJ |
2390 | case ${host_alias} in |
2391 | "") host_noncanonical=${build_noncanonical} ;; | |
2392 | *) host_noncanonical=${host_alias} ;; | |
f69e2532 CM |
2393 | esac |
2394 | ||
f69e2532 | 2395 | |
b58b6ee1 DJ |
2396 | |
2397 | case ${target_alias} in | |
2398 | "") target_noncanonical=${host_noncanonical} ;; | |
2399 | *) target_noncanonical=${target_alias} ;; | |
f69e2532 CM |
2400 | esac |
2401 | ||
f69e2532 | 2402 | |
b58b6ee1 DJ |
2403 | |
2404 | ||
2405 | test "$host_noncanonical" = "$target_noncanonical" && | |
bafecfd6 NN |
2406 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2407 | NONENONEs,x,x, && | |
b58b6ee1 | 2408 | program_transform_name=s,y,y, |
f69e2532 | 2409 | |
efd58f08 RW |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2411 | $as_echo_n "checking host system type... " >&6; } | |
6d3ddf51 | 2412 | if ${ac_cv_host+:} false; then : |
efd58f08 | 2413 | $as_echo_n "(cached) " >&6 |
f69e2532 | 2414 | else |
efd58f08 RW |
2415 | if test "x$host_alias" = x; then |
2416 | ac_cv_host=$ac_cv_build | |
2417 | else | |
2418 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
6d3ddf51 | 2419 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
efd58f08 | 2420 | fi |
b58b6ee1 DJ |
2421 | |
2422 | fi | |
efd58f08 RW |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2424 | $as_echo "$ac_cv_host" >&6; } | |
2425 | case $ac_cv_host in | |
2426 | *-*-*) ;; | |
6d3ddf51 | 2427 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
efd58f08 | 2428 | esac |
b58b6ee1 | 2429 | host=$ac_cv_host |
efd58f08 RW |
2430 | ac_save_IFS=$IFS; IFS='-' |
2431 | set x $ac_cv_host | |
2432 | shift | |
2433 | host_cpu=$1 | |
2434 | host_vendor=$2 | |
2435 | shift; shift | |
2436 | # Remember, the first character of IFS is used to create $*, | |
2437 | # except with old shells: | |
2438 | host_os=$* | |
2439 | IFS=$ac_save_IFS | |
2440 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
b58b6ee1 DJ |
2441 | |
2442 | ||
efd58f08 RW |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2444 | $as_echo_n "checking target system type... " >&6; } | |
6d3ddf51 | 2445 | if ${ac_cv_target+:} false; then : |
efd58f08 | 2446 | $as_echo_n "(cached) " >&6 |
b58b6ee1 | 2447 | else |
efd58f08 RW |
2448 | if test "x$target_alias" = x; then |
2449 | ac_cv_target=$ac_cv_host | |
2450 | else | |
2451 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
6d3ddf51 | 2452 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
efd58f08 | 2453 | fi |
b58b6ee1 | 2454 | |
f69e2532 | 2455 | fi |
efd58f08 RW |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2457 | $as_echo "$ac_cv_target" >&6; } | |
2458 | case $ac_cv_target in | |
2459 | *-*-*) ;; | |
6d3ddf51 | 2460 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
efd58f08 | 2461 | esac |
b58b6ee1 | 2462 | target=$ac_cv_target |
efd58f08 RW |
2463 | ac_save_IFS=$IFS; IFS='-' |
2464 | set x $ac_cv_target | |
2465 | shift | |
2466 | target_cpu=$1 | |
2467 | target_vendor=$2 | |
2468 | shift; shift | |
2469 | # Remember, the first character of IFS is used to create $*, | |
2470 | # except with old shells: | |
2471 | target_os=$* | |
2472 | IFS=$ac_save_IFS | |
2473 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b58b6ee1 DJ |
2474 | |
2475 | ||
2476 | # The aliases save the names the user supplied, while $host etc. | |
2477 | # will get canonicalized. | |
2478 | test -n "$target_alias" && | |
2479 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2480 | NONENONEs,x,x, && | |
2481 | program_prefix=${target_alias}- | |
efd58f08 | 2482 | |
bafecfd6 | 2483 | test "$program_prefix" != NONE && |
efd58f08 | 2484 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bafecfd6 NN |
2485 | # Use a double $ so make ignores it. |
2486 | test "$program_suffix" != NONE && | |
efd58f08 RW |
2487 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2488 | # Double any \ or $. | |
b58b6ee1 | 2489 | # By default was `s,x,x', remove it if useless. |
efd58f08 RW |
2490 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2491 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
f69e2532 | 2492 | |
bafecfd6 NN |
2493 | |
2494 | ||
282c0e47 NN |
2495 | # Get 'install' or 'install-sh' and its variants. |
2496 | # Find a good install program. We prefer a C program (faster), | |
2497 | # so one script is as good as another. But avoid the broken or | |
2498 | # incompatible versions: | |
2499 | # SysV /etc/install, /usr/sbin/install | |
2500 | # SunOS /usr/etc/install | |
2501 | # IRIX /sbin/install | |
2502 | # AIX /bin/install | |
b58b6ee1 | 2503 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
282c0e47 NN |
2504 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2505 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2506 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b58b6ee1 | 2507 | # OS/2's system install, which has a completely different semantic |
282c0e47 | 2508 | # ./install, which can be erroneously created by make from ./install.sh. |
e30fd60f | 2509 | # Reject install programs that cannot install multiple files. |
efd58f08 RW |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2511 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
282c0e47 | 2512 | if test -z "$INSTALL"; then |
6d3ddf51 | 2513 | if ${ac_cv_path_install+:} false; then : |
efd58f08 | 2514 | $as_echo_n "(cached) " >&6 |
b58b6ee1 DJ |
2515 | else |
2516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2517 | for as_dir in $PATH | |
2518 | do | |
2519 | IFS=$as_save_IFS | |
2520 | test -z "$as_dir" && as_dir=. | |
efd58f08 RW |
2521 | # Account for people who put trailing slashes in PATH elements. |
2522 | case $as_dir/ in #(( | |
2523 | ./ | .// | /[cC]/* | \ | |
b58b6ee1 | 2524 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
efd58f08 | 2525 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b58b6ee1 DJ |
2526 | /usr/ucb/* ) ;; |
2527 | *) | |
2528 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2529 | # Don't use installbsd from OSF since it installs stuff as root | |
2530 | # by default. | |
2531 | for ac_prog in ginstall scoinst install; do | |
2532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 2533 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
282c0e47 | 2534 | if test $ac_prog = install && |
b58b6ee1 | 2535 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
282c0e47 NN |
2536 | # AIX install. It has an incompatible calling convention. |
2537 | : | |
b58b6ee1 DJ |
2538 | elif test $ac_prog = install && |
2539 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2540 | # program-specific install script used by HP pwplus--don't use. | |
2541 | : | |
282c0e47 | 2542 | else |
e30fd60f RW |
2543 | rm -rf conftest.one conftest.two conftest.dir |
2544 | echo one > conftest.one | |
2545 | echo two > conftest.two | |
2546 | mkdir conftest.dir | |
2547 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2548 | test -s conftest.one && test -s conftest.two && | |
2549 | test -s conftest.dir/conftest.one && | |
2550 | test -s conftest.dir/conftest.two | |
2551 | then | |
2552 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2553 | break 3 | |
2554 | fi | |
282c0e47 NN |
2555 | fi |
2556 | fi | |
2557 | done | |
b58b6ee1 DJ |
2558 | done |
2559 | ;; | |
2560 | esac | |
efd58f08 RW |
2561 | |
2562 | done | |
2563 | IFS=$as_save_IFS | |
b58b6ee1 | 2564 | |
e30fd60f | 2565 | rm -rf conftest.one conftest.two conftest.dir |
282c0e47 NN |
2566 | |
2567 | fi | |
2568 | if test "${ac_cv_path_install+set}" = set; then | |
b58b6ee1 | 2569 | INSTALL=$ac_cv_path_install |
282c0e47 | 2570 | else |
e30fd60f RW |
2571 | # As a last resort, use the slow shell script. Don't cache a |
2572 | # value for INSTALL within a source directory, because that will | |
282c0e47 | 2573 | # break other packages using the cache if that directory is |
e30fd60f | 2574 | # removed, or if the value is a relative name. |
b58b6ee1 | 2575 | INSTALL=$ac_install_sh |
282c0e47 NN |
2576 | fi |
2577 | fi | |
efd58f08 RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2579 | $as_echo "$INSTALL" >&6; } | |
282c0e47 NN |
2580 | |
2581 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2582 | # It thinks the first close brace ends the variable substitution. | |
2583 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2584 | ||
b58b6ee1 | 2585 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
282c0e47 NN |
2586 | |
2587 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2588 | ||
efd58f08 RW |
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2590 | $as_echo_n "checking whether ln works... " >&6; } | |
6d3ddf51 | 2591 | if ${acx_cv_prog_LN+:} false; then : |
efd58f08 | 2592 | $as_echo_n "(cached) " >&6 |
21ff191e PB |
2593 | else |
2594 | rm -f conftestdata_t | |
2595 | echo >conftestdata_f | |
2596 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2597 | then | |
2598 | acx_cv_prog_LN=ln | |
2599 | else | |
2600 | acx_cv_prog_LN=no | |
2601 | fi | |
2602 | rm -f conftestdata_f conftestdata_t | |
2603 | ||
2604 | fi | |
2605 | if test $acx_cv_prog_LN = no; then | |
2606 | LN="cp" | |
efd58f08 RW |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2608 | $as_echo "no, using $LN" >&6; } | |
21ff191e PB |
2609 | else |
2610 | LN="$acx_cv_prog_LN" | |
efd58f08 RW |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2612 | $as_echo "yes" >&6; } | |
21ff191e PB |
2613 | fi |
2614 | ||
efd58f08 RW |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2616 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b58b6ee1 DJ |
2617 | LN_S=$as_ln_s |
2618 | if test "$LN_S" = "ln -s"; then | |
efd58f08 RW |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2620 | $as_echo "yes" >&6; } | |
f69e2532 | 2621 | else |
efd58f08 RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2623 | $as_echo "no, using $LN_S" >&6; } | |
35269421 PB |
2624 | fi |
2625 | ||
a8a01987 PB |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2627 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6d3ddf51 | 2628 | if ${ac_cv_path_SED+:} false; then : |
a8a01987 PB |
2629 | $as_echo_n "(cached) " >&6 |
2630 | else | |
2631 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2632 | for ac_i in 1 2 3 4 5 6 7; do | |
2633 | ac_script="$ac_script$as_nl$ac_script" | |
2634 | done | |
2635 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2636 | { ac_script=; unset ac_script;} | |
2637 | if test -z "$SED"; then | |
2638 | ac_path_SED_found=false | |
2639 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2641 | for as_dir in $PATH | |
2642 | do | |
2643 | IFS=$as_save_IFS | |
2644 | test -z "$as_dir" && as_dir=. | |
2645 | for ac_prog in sed gsed; do | |
2646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2647 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
6d3ddf51 | 2648 | as_fn_executable_p "$ac_path_SED" || continue |
a8a01987 PB |
2649 | # Check for GNU ac_path_SED and select it if it is found. |
2650 | # Check for GNU $ac_path_SED | |
2651 | case `"$ac_path_SED" --version 2>&1` in | |
2652 | *GNU*) | |
2653 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2654 | *) | |
2655 | ac_count=0 | |
2656 | $as_echo_n 0123456789 >"conftest.in" | |
2657 | while : | |
2658 | do | |
2659 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2660 | mv "conftest.tmp" "conftest.in" | |
2661 | cp "conftest.in" "conftest.nl" | |
2662 | $as_echo '' >> "conftest.nl" | |
2663 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2664 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2665 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2666 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2667 | # Best one so far, save it but keep looking for a better one | |
2668 | ac_cv_path_SED="$ac_path_SED" | |
2669 | ac_path_SED_max=$ac_count | |
2670 | fi | |
2671 | # 10*(2^10) chars as input seems more than enough | |
2672 | test $ac_count -gt 10 && break | |
2673 | done | |
2674 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2675 | esac | |
2676 | ||
2677 | $ac_path_SED_found && break 3 | |
2678 | done | |
2679 | done | |
2680 | done | |
2681 | IFS=$as_save_IFS | |
2682 | if test -z "$ac_cv_path_SED"; then | |
6d3ddf51 | 2683 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
a8a01987 PB |
2684 | fi |
2685 | else | |
2686 | ac_cv_path_SED=$SED | |
2687 | fi | |
2688 | ||
2689 | fi | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2691 | $as_echo "$ac_cv_path_SED" >&6; } | |
2692 | SED="$ac_cv_path_SED" | |
2693 | rm -f conftest.sed | |
2694 | ||
2695 | for ac_prog in gawk mawk nawk awk | |
2696 | do | |
2697 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2698 | set dummy $ac_prog; ac_word=$2 | |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2700 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 2701 | if ${ac_cv_prog_AWK+:} false; then : |
a8a01987 PB |
2702 | $as_echo_n "(cached) " >&6 |
2703 | else | |
2704 | if test -n "$AWK"; then | |
2705 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2706 | else | |
2707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2708 | for as_dir in $PATH | |
2709 | do | |
2710 | IFS=$as_save_IFS | |
2711 | test -z "$as_dir" && as_dir=. | |
2712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 2713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8a01987 PB |
2714 | ac_cv_prog_AWK="$ac_prog" |
2715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2716 | break 2 | |
2717 | fi | |
2718 | done | |
2719 | done | |
2720 | IFS=$as_save_IFS | |
2721 | ||
2722 | fi | |
2723 | fi | |
2724 | AWK=$ac_cv_prog_AWK | |
2725 | if test -n "$AWK"; then | |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2727 | $as_echo "$AWK" >&6; } | |
2728 | else | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2730 | $as_echo "no" >&6; } | |
2731 | fi | |
2732 | ||
2733 | ||
2734 | test -n "$AWK" && break | |
2735 | done | |
2736 | ||
282c0e47 | 2737 | |
714fa3b8 DJ |
2738 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2739 | ||
2740 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2741 | # a relative path. | |
2742 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2743 | INSTALL="${srcpwd}/install-sh -c" | |
2744 | fi | |
2745 | ||
bafecfd6 NN |
2746 | # Set srcdir to "." if that's what it is. |
2747 | # This is important for multilib support. | |
2748 | pwd=`${PWDCMD-pwd}` | |
bafecfd6 NN |
2749 | if test "${pwd}" = "${srcpwd}" ; then |
2750 | srcdir=. | |
a3acbf46 RH |
2751 | fi |
2752 | ||
bafecfd6 | 2753 | topsrcdir=$srcpwd |
a3acbf46 | 2754 | |
bafecfd6 | 2755 | extra_host_args= |
afdaeaab | 2756 | |
bafecfd6 NN |
2757 | ### To add a new directory to the tree, first choose whether it is a target |
2758 | ### or a host dependent tool. Then put it into the appropriate list | |
2759 | ### (library or tools, host or target), doing a dependency sort. | |
a3acbf46 | 2760 | |
b58b6ee1 | 2761 | # Subdirs will be configured in the order listed in build_configdirs, |
bafecfd6 | 2762 | # configdirs, or target_configdirs; see the serialization section below. |
a3acbf46 | 2763 | |
b58b6ee1 DJ |
2764 | # Dependency sorting is only needed when *configuration* must be done in |
2765 | # a particular order. In all cases a dependency should be specified in | |
bafecfd6 | 2766 | # the Makefile, whether or not it's implicitly specified here. |
a3acbf46 | 2767 | |
bafecfd6 NN |
2768 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2769 | # cause circular dependencies and break everything horribly. | |
a3acbf46 | 2770 | |
2cb47d68 PB |
2771 | # these library is used by various programs built for the build |
2772 | # environment | |
2773 | # | |
fe508576 | 2774 | build_libs="build-libiberty build-libcpp" |
2cb47d68 PB |
2775 | |
2776 | # these tools are built for the build environment | |
64196564 | 2777 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2cb47d68 | 2778 | |
bafecfd6 | 2779 | # these libraries are used by various programs built for the host environment |
fe508576 CV |
2780 | #f |
2781 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
bafecfd6 | 2782 | |
bafecfd6 NN |
2783 | # these tools are built for the host environment |
2784 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2785 | # know that we are building the simulator. | |
2786 | # binutils, gas and ld appear in that order because it makes sense to run | |
2787 | # "make check" in that particular order. | |
32c2e09b | 2788 | # If --enable-gold is used, "gold" may replace "ld". |
fe508576 | 2789 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
bafecfd6 NN |
2790 | |
2791 | # libgcj represents the runtime libraries only used by gcj. | |
2792 | libgcj="target-libffi \ | |
bafecfd6 | 2793 | target-zlib \ |
bafecfd6 NN |
2794 | target-libjava" |
2795 | ||
2796 | # these libraries are built for the target environment, and are built after | |
2797 | # the host libraries and the host tools (which may be a cross compiler) | |
c9161585 | 2798 | # Note that libiberty is not a target library. |
1277a9a0 | 2799 | target_libraries="target-libgcc \ |
0c770d16 | 2800 | target-libbacktrace \ |
bafecfd6 NN |
2801 | target-libgloss \ |
2802 | target-newlib \ | |
a8c17d42 | 2803 | target-libgomp \ |
fe508576 CV |
2804 | target-libcilkrts \ |
2805 | target-liboffloadmic \ | |
a626f4ee | 2806 | target-libatomic \ |
068a111a | 2807 | target-libitm \ |
76ab491a | 2808 | target-libstdc++-v3 \ |
5094cf21 | 2809 | target-libsanitizer \ |
111ced6d | 2810 | target-libvtv \ |
fe508576 | 2811 | target-libmpx \ |
2c193664 | 2812 | target-libssp \ |
d5b7129a | 2813 | target-libquadmath \ |
cb2333e8 | 2814 | target-libgfortran \ |
e1e5148c | 2815 | target-boehm-gc \ |
6f2480fb | 2816 | ${libgcj} \ |
d832a288 | 2817 | target-libobjc \ |
d5b7129a ILT |
2818 | target-libada \ |
2819 | target-libgo" | |
bafecfd6 | 2820 | |
5283b643 NN |
2821 | # these tools are built using the target libraries, and are intended to |
2822 | # run only in the target environment | |
bafecfd6 | 2823 | # |
5283b643 | 2824 | # note: any program that *uses* libraries that are in the "target_libraries" |
5b45e8c9 | 2825 | # list belongs in this list. |
bafecfd6 | 2826 | # |
64196564 | 2827 | target_tools="target-rda" |
a3acbf46 | 2828 | |
bafecfd6 | 2829 | ################################################################################ |
a3acbf46 | 2830 | |
bafecfd6 NN |
2831 | ## All tools belong in one of the four categories, and are assigned above |
2832 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2833 | ## is important because configure will choke if they ever get through. | |
2834 | ## ${configdirs} is directories we build using the host tools. | |
2835 | ## ${target_configdirs} is directories we build using the target tools. | |
bafecfd6 | 2836 | configdirs=`echo ${host_libs} ${host_tools}` |
5283b643 | 2837 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
607d4caf | 2838 | build_configdirs=`echo ${build_libs} ${build_tools}` |
9b520963 | 2839 | |
3fbb5e3d PB |
2840 | |
2841 | ||
bafecfd6 | 2842 | ################################################################################ |
a3acbf46 | 2843 | |
bafecfd6 | 2844 | srcname="gnu development package" |
a3acbf46 | 2845 | |
bafecfd6 NN |
2846 | # This gets set non-empty for some net releases of packages. |
2847 | appdirs="" | |
a3acbf46 | 2848 | |
bafecfd6 NN |
2849 | # Define is_cross_compiler to save on calls to 'test'. |
2850 | is_cross_compiler= | |
2851 | if test x"${host}" = x"${target}" ; then | |
2852 | is_cross_compiler=no | |
a3acbf46 | 2853 | else |
bafecfd6 | 2854 | is_cross_compiler=yes |
b58b6ee1 | 2855 | fi |
a3acbf46 | 2856 | |
df4b5a9c | 2857 | # Find the build and target subdir names. |
9b520963 | 2858 | |
3160f998 DJ |
2859 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2860 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2861 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2862 | # However, they still use the build modules, because the corresponding | |
2863 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2864 | # finishes. So: | |
2865 | # - build_subdir is where we find build modules, and never changes. | |
2866 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2867 | ||
2868 | # Prefix 'build-' so this never conflicts with target_subdir. | |
9b520963 | 2869 | build_subdir="build-${build_noncanonical}" |
b58b6ee1 | 2870 | |
efd58f08 RW |
2871 | # Check whether --with-build-libsubdir was given. |
2872 | if test "${with_build_libsubdir+set}" = set; then : | |
2873 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3160f998 DJ |
2874 | else |
2875 | build_libsubdir="$build_subdir" | |
efd58f08 RW |
2876 | fi |
2877 | ||
7fc2ca22 PB |
2878 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2879 | if ( test $srcdir = . && test -d gcc ) \ | |
2880 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2881 | host_subdir="host-${host_noncanonical}" | |
2882 | else | |
2883 | host_subdir=. | |
2884 | fi | |
9b520963 NN |
2885 | # No prefix. |
2886 | target_subdir=${target_noncanonical} | |
b58b6ee1 | 2887 | |
8980b9ad RW |
2888 | # Be sure to cover against remnants of an in-tree build. |
2889 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
6d3ddf51 | 2890 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
8980b9ad RW |
2891 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2892 | fi | |
a3acbf46 | 2893 | |
bafecfd6 NN |
2894 | # Skipdirs are removed silently. |
2895 | skipdirs= | |
2896 | # Noconfigdirs are removed loudly. | |
2897 | noconfigdirs="" | |
a3acbf46 | 2898 | |
bafecfd6 NN |
2899 | use_gnu_ld= |
2900 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2901 | if test x$with_gnu_ld = xno ; then | |
2902 | use_gnu_ld=no | |
b916272a | 2903 | noconfigdirs="$noconfigdirs ld gold" |
a3acbf46 RH |
2904 | fi |
2905 | ||
bafecfd6 NN |
2906 | use_gnu_as= |
2907 | # Make sure we don't let GNU as be added if we didn't want it. | |
2908 | if test x$with_gnu_as = xno ; then | |
2909 | use_gnu_as=no | |
2910 | noconfigdirs="$noconfigdirs gas" | |
a3acbf46 RH |
2911 | fi |
2912 | ||
bd45d6fa | 2913 | use_included_zlib= |
fe508576 CV |
2914 | |
2915 | # Check whether --with-system-zlib was given. | |
2916 | if test "${with_system_zlib+set}" = set; then : | |
2917 | withval=$with_system_zlib; | |
2918 | fi | |
2919 | ||
bd45d6fa ILT |
2920 | # Make sure we don't let ZLIB be added if we didn't want it. |
2921 | if test x$with_system_zlib = xyes ; then | |
2922 | use_included_zlib=no | |
2923 | noconfigdirs="$noconfigdirs zlib" | |
2924 | fi | |
2925 | ||
b58b6ee1 | 2926 | # some tools are so dependent upon X11 that if we're not building with X, |
bafecfd6 | 2927 | # it's not even worth trying to configure, much less build, that tool. |
a3acbf46 | 2928 | |
bafecfd6 NN |
2929 | case ${with_x} in |
2930 | yes | "") ;; # the default value for this tree is that X11 is available | |
2931 | no) | |
44397772 | 2932 | skipdirs="${skipdirs} tk itcl libgui" |
bafecfd6 | 2933 | # We won't be able to build gdbtk without X. |
b58b6ee1 | 2934 | enable_gdbtk=no |
bafecfd6 NN |
2935 | ;; |
2936 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2937 | esac | |
a3acbf46 | 2938 | |
5b45e8c9 | 2939 | # Some are only suitable for cross toolchains. |
bafecfd6 NN |
2940 | # Remove these if host=target. |
2941 | cross_only="target-libgloss target-newlib target-opcodes" | |
2942 | ||
2943 | case $is_cross_compiler in | |
2944 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
bafecfd6 | 2945 | esac |
a3acbf46 | 2946 | |
bafecfd6 NN |
2947 | # If both --with-headers and --with-libs are specified, default to |
2948 | # --without-newlib. | |
09ebdaf7 RS |
2949 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2950 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
bafecfd6 NN |
2951 | if test x"${with_newlib}" = x ; then |
2952 | with_newlib=no | |
2953 | fi | |
a3acbf46 RH |
2954 | fi |
2955 | ||
bafecfd6 NN |
2956 | # Recognize --with-newlib/--without-newlib. |
2957 | case ${with_newlib} in | |
2958 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2959 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2960 | esac | |
a3acbf46 | 2961 | |
fe508576 CV |
2962 | # Check whether --enable-as-accelerator-for was given. |
2963 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2964 | enableval=$enable_as_accelerator_for; | |
2965 | fi | |
2966 | ||
2967 | ||
2968 | # Check whether --enable-offload-targets was given. | |
2969 | if test "${enable_offload_targets+set}" = set; then : | |
2970 | enableval=$enable_offload_targets; | |
2971 | if test x"$enable_offload_targets" = x; then | |
6d3ddf51 | 2972 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
fe508576 CV |
2973 | fi |
2974 | ||
2975 | else | |
2976 | enable_offload_targets= | |
2977 | fi | |
2978 | ||
2979 | ||
679e4c82 NC |
2980 | # Handle --enable-gold, --enable-ld. |
2981 | # --disable-gold [--enable-ld] | |
2982 | # Build only ld. Default option. | |
6805373e L |
2983 | # --enable-gold [--enable-ld] |
2984 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2985 | # as "ld.bfd" and "ld". | |
2986 | # --enable-gold=default [--enable-ld] | |
679e4c82 NC |
2987 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2988 | # install ld as "ld.bfd". | |
2989 | # --enable-gold[=default] --disable-ld | |
2990 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2991 | # --enable-gold --enable-ld=default | |
6805373e L |
2992 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2993 | # and ld.bfd). | |
679e4c82 NC |
2994 | # In other words, ld is default |
2995 | # --enable-gold=default --enable-ld=default | |
2996 | # Error. | |
2997 | ||
2998 | default_ld= | |
efd58f08 RW |
2999 | # Check whether --enable-gold was given. |
3000 | if test "${enable_gold+set}" = set; then : | |
3001 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
b916272a ILT |
3002 | else |
3003 | ENABLE_GOLD=no | |
efd58f08 RW |
3004 | fi |
3005 | ||
679e4c82 NC |
3006 | case "${ENABLE_GOLD}" in |
3007 | yes|default) | |
32c2e09b NC |
3008 | # Check for ELF target. |
3009 | is_elf=no | |
3010 | case "${target}" in | |
3011 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0d6e26f8 | 3012 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
573c698a | 3013 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
8a563bfd | 3014 | | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*) |
32c2e09b NC |
3015 | case "${target}" in |
3016 | *-*-linux*aout* | *-*-linux*oldld*) | |
3017 | ;; | |
3018 | *) | |
3019 | is_elf=yes | |
3020 | ;; | |
3021 | esac | |
3022 | esac | |
3023 | ||
3024 | if test "$is_elf" = "yes"; then | |
3025 | # Check for target supported by gold. | |
b916272a | 3026 | case "${target}" in |
fe508576 CV |
3027 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
3028 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) | |
679e4c82 NC |
3029 | configdirs="$configdirs gold" |
3030 | if test x${ENABLE_GOLD} = xdefault; then | |
3031 | default_ld=gold | |
3032 | fi | |
32c2e09b | 3033 | ENABLE_GOLD=yes |
b916272a ILT |
3034 | ;; |
3035 | esac | |
32c2e09b NC |
3036 | fi |
3037 | ;; | |
3038 | no) | |
3039 | ;; | |
3040 | *) | |
6d3ddf51 | 3041 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
32c2e09b | 3042 | ;; |
679e4c82 NC |
3043 | esac |
3044 | ||
3045 | # Check whether --enable-ld was given. | |
3046 | if test "${enable_ld+set}" = set; then : | |
3047 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3048 | else | |
3049 | ENABLE_LD=yes | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | case "${ENABLE_LD}" in | |
3054 | default) | |
6805373e | 3055 | if test x${default_ld} != x; then |
6d3ddf51 | 3056 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
679e4c82 NC |
3057 | fi |
3058 | ;; | |
3059 | yes) | |
3060 | ;; | |
3061 | no) | |
3062 | if test x${ENABLE_GOLD} != xyes; then | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3064 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3065 | fi | |
3066 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3067 | ;; | |
3068 | *) | |
6d3ddf51 | 3069 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
679e4c82 NC |
3070 | ;; |
3071 | esac | |
b916272a | 3072 | |
fe508576 CV |
3073 | # PR gas/19109 |
3074 | # Decide the default method for compressing debug sections. | |
3075 | # Provide a configure time option to override our default. | |
3076 | # Check whether --enable-compressed_debug_sections was given. | |
3077 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3078 | enableval=$enable_compressed_debug_sections; | |
3079 | if test x"$enable_compressed_debug_sections" = xyes; then | |
6d3ddf51 | 3080 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
fe508576 CV |
3081 | fi |
3082 | ||
3083 | else | |
3084 | enable_compressed_debug_sections= | |
3085 | fi | |
3086 | ||
3087 | ||
bafecfd6 | 3088 | # Configure extra directories which are host specific |
a3acbf46 | 3089 | |
bafecfd6 NN |
3090 | case "${host}" in |
3091 | *-cygwin*) | |
3092 | configdirs="$configdirs libtermcap" ;; | |
3093 | esac | |
a3acbf46 | 3094 | |
aac893c5 HPN |
3095 | # A target can indicate whether a language isn't supported for some reason. |
3096 | # Only spaces may be used in this macro; not newlines or tabs. | |
3097 | unsupported_languages= | |
3098 | ||
b58b6ee1 | 3099 | # Remove more programs from consideration, based on the host or |
bafecfd6 NN |
3100 | # target this usually means that a port of the program doesn't |
3101 | # exist yet. | |
a3acbf46 | 3102 | |
bafecfd6 | 3103 | case "${host}" in |
4e55c4e3 | 3104 | i[3456789]86-*-msdosdjgpp*) |
44dabc08 | 3105 | noconfigdirs="$noconfigdirs tcl tk itcl" |
bafecfd6 | 3106 | ;; |
bafecfd6 | 3107 | esac |
a3acbf46 | 3108 | |
cb2333e8 | 3109 | |
d4b54911 PB |
3110 | # Check whether --enable-libquadmath was given. |
3111 | if test "${enable_libquadmath+set}" = set; then : | |
3112 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3113 | else | |
3114 | ENABLE_LIBQUADMATH=yes | |
3115 | fi | |
3116 | ||
3117 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3118 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3119 | fi | |
3120 | ||
3121 | ||
3122 | # Check whether --enable-libquadmath-support was given. | |
3123 | if test "${enable_libquadmath_support+set}" = set; then : | |
3124 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3125 | else | |
3126 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3127 | fi | |
3128 | ||
3129 | enable_libquadmath_support= | |
3130 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3131 | enable_libquadmath_support=no | |
3132 | fi | |
3133 | ||
3134 | ||
efd58f08 RW |
3135 | # Check whether --enable-libada was given. |
3136 | if test "${enable_libada+set}" = set; then : | |
3137 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d832a288 DD |
3138 | else |
3139 | ENABLE_LIBADA=yes | |
efd58f08 RW |
3140 | fi |
3141 | ||
d832a288 | 3142 | if test "${ENABLE_LIBADA}" != "yes" ; then |
7fc2ca22 | 3143 | noconfigdirs="$noconfigdirs gnattools" |
d832a288 DD |
3144 | fi |
3145 | ||
efd58f08 RW |
3146 | # Check whether --enable-libssp was given. |
3147 | if test "${enable_libssp+set}" = set; then : | |
3148 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
fa19ba07 KH |
3149 | else |
3150 | ENABLE_LIBSSP=yes | |
efd58f08 RW |
3151 | fi |
3152 | ||
fa19ba07 | 3153 | |
5ec30f78 L |
3154 | # Check whether --enable-libstdcxx was given. |
3155 | if test "${enable_libstdcxx+set}" = set; then : | |
3156 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3157 | else | |
3158 | ENABLE_LIBSTDCXX=default | |
3159 | fi | |
3160 | ||
3161 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
fe508576 CV |
3162 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3163 | fi | |
3164 | ||
3165 | # If this is accelerator compiler and its target is intelmic we enable | |
3166 | # target liboffloadmic by default. If this is compiler with offloading | |
3167 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3168 | # liboffloadmic is disabled by default. | |
3169 | # Check whether --enable-liboffloadmic was given. | |
3170 | if test "${enable_liboffloadmic+set}" = set; then : | |
3171 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3172 | no | host | target) | |
3173 | enable_liboffloadmic=$enableval ;; | |
3174 | *) | |
6d3ddf51 | 3175 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
fe508576 CV |
3176 | esac |
3177 | else | |
3178 | if test x"$enable_as_accelerator_for" != x; then | |
3179 | case "${target}" in | |
3180 | *-intelmic-* | *-intelmicemul-*) | |
3181 | enable_liboffloadmic=target | |
3182 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3183 | ;; | |
3184 | *) | |
3185 | enable_liboffloadmic=no | |
3186 | ;; | |
3187 | esac | |
3188 | else | |
3189 | case "${enable_offload_targets}" in | |
3190 | *-intelmic-* | *-intelmicemul-*) | |
3191 | enable_liboffloadmic=host | |
3192 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3193 | ;; | |
3194 | *) | |
3195 | enable_liboffloadmic=no | |
3196 | ;; | |
3197 | esac | |
3198 | fi | |
5ec30f78 L |
3199 | fi |
3200 | ||
fe508576 CV |
3201 | |
3202 | ||
bafecfd6 NN |
3203 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3204 | # front-end isn't enabled, we still get libgcj disabled. | |
3205 | libgcj_saved=$libgcj | |
3206 | case $enable_libgcj in | |
3207 | yes) | |
3208 | # If we reset it here, it won't get added to noconfigdirs in the | |
3209 | # target-specific build rules, so it will be forcibly enabled | |
3210 | # (unless the Java language itself isn't enabled). | |
3211 | libgcj= | |
3212 | ;; | |
3213 | no) | |
3214 | # Make sure we get it printed in the list of not supported target libs. | |
77a5d6cc ILT |
3215 | # Don't disable libffi, though, other languages use it. |
3216 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8acbc359 ILT |
3217 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3218 | # built. | |
3219 | libgcj_saved= | |
bafecfd6 NN |
3220 | ;; |
3221 | esac | |
a3acbf46 | 3222 | |
c9161585 ILT |
3223 | # Check whether --enable-static-libjava was given. |
3224 | if test "${enable_static_libjava+set}" = set; then : | |
3225 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3226 | else | |
3227 | ENABLE_STATIC_LIBJAVA=no | |
3228 | fi | |
3229 | ||
3230 | enable_static_libjava= | |
3231 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3232 | enable_static_libjava=yes | |
3233 | fi | |
3234 | ||
3235 | if test x$enable_static_libjava != xyes ; then | |
3236 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3237 | fi | |
3238 | ||
cb2333e8 | 3239 | |
fe508576 | 3240 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
f621a0dc | 3241 | if test x$enable_libgomp = x ; then |
00bc9d7f | 3242 | case "${target}" in |
9f8da9ce | 3243 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
00bc9d7f | 3244 | ;; |
573c698a | 3245 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
00bc9d7f | 3246 | ;; |
d3f6480e | 3247 | *-*-solaris2* | *-*-hpux11*) |
00bc9d7f PB |
3248 | ;; |
3249 | *-*-darwin* | *-*-aix*) | |
3250 | ;; | |
fe508576 CV |
3251 | nvptx*-*-*) |
3252 | ;; | |
00bc9d7f PB |
3253 | *) |
3254 | noconfigdirs="$noconfigdirs target-libgomp" | |
3255 | ;; | |
3256 | esac | |
f621a0dc | 3257 | fi |
00bc9d7f | 3258 | |
a626f4ee L |
3259 | # Disable libatomic on unsupported systems. |
3260 | if test -d ${srcdir}/libatomic; then | |
3261 | if test x$enable_libatomic = x; then | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3263 | $as_echo_n "checking for libatomic support... " >&6; } | |
3264 | if (srcdir=${srcdir}/libatomic; \ | |
3265 | . ${srcdir}/configure.tgt; \ | |
3266 | test -n "$UNSUPPORTED") | |
3267 | then | |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3269 | $as_echo "no" >&6; } | |
3270 | noconfigdirs="$noconfigdirs target-libatomic" | |
3271 | else | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3273 | $as_echo "yes" >&6; } | |
3274 | fi | |
3275 | fi | |
3276 | fi | |
3277 | ||
fe508576 CV |
3278 | # Disable libcilkrts on unsupported systems. |
3279 | if test -d ${srcdir}/libcilkrts; then | |
3280 | if test x$enable_libcilkrts = x; then | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3282 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3283 | if (srcdir=${srcdir}/libcilkrts; \ | |
3284 | . ${srcdir}/configure.tgt; \ | |
3285 | test -n "$UNSUPPORTED") | |
3286 | then | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3288 | $as_echo "no" >&6; } | |
3289 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3290 | else | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3292 | $as_echo "yes" >&6; } | |
3293 | fi | |
3294 | fi | |
3295 | fi | |
3296 | ||
3297 | # Disable liboffloadmic on unsupported systems. | |
3298 | if test -d ${srcdir}/liboffloadmic; then | |
3299 | if test x$enable_liboffloadmic != xno; then | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3301 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3302 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3303 | . ${srcdir}/configure.tgt; \ | |
3304 | test -n "$UNSUPPORTED") | |
3305 | then | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3307 | $as_echo "no" >&6; } | |
3308 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3309 | else | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3311 | $as_echo "yes" >&6; } | |
3312 | fi | |
3313 | fi | |
3314 | fi | |
3315 | ||
068a111a RH |
3316 | # Disable libitm on unsupported systems. |
3317 | if test -d ${srcdir}/libitm; then | |
3318 | if test x$enable_libitm = x; then | |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3320 | $as_echo_n "checking for libitm support... " >&6; } | |
3321 | if (srcdir=${srcdir}/libitm; \ | |
3322 | . ${srcdir}/configure.tgt; \ | |
3323 | test -n "$UNSUPPORTED") | |
3324 | then | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3326 | $as_echo "no" >&6; } | |
3327 | noconfigdirs="$noconfigdirs target-libitm" | |
3328 | else | |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3330 | $as_echo "yes" >&6; } | |
3331 | fi | |
3332 | fi | |
3333 | fi | |
3334 | ||
5094cf21 L |
3335 | # Disable libsanitizer on unsupported systems. |
3336 | if test -d ${srcdir}/libsanitizer; then | |
3337 | if test x$enable_libsanitizer = x; then | |
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3339 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3340 | if (srcdir=${srcdir}/libsanitizer; \ | |
3341 | . ${srcdir}/configure.tgt; \ | |
3342 | test -n "$UNSUPPORTED") | |
3343 | then | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3345 | $as_echo "no" >&6; } | |
3346 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3347 | else | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3349 | $as_echo "yes" >&6; } | |
3350 | fi | |
3351 | fi | |
3352 | fi | |
3353 | ||
111ced6d JBG |
3354 | # Disable libvtv on unsupported systems. |
3355 | if test -d ${srcdir}/libvtv; then | |
3356 | if test x$enable_libvtv = x; then | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3358 | $as_echo_n "checking for libvtv support... " >&6; } | |
3359 | if (srcdir=${srcdir}/libvtv; \ | |
3360 | . ${srcdir}/configure.tgt; \ | |
3361 | test "$VTV_SUPPORTED" != "yes") | |
3362 | then | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3364 | $as_echo "no" >&6; } | |
3365 | noconfigdirs="$noconfigdirs target-libvtv" | |
3366 | else | |
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3368 | $as_echo "yes" >&6; } | |
3369 | fi | |
3370 | fi | |
3371 | fi | |
3372 | ||
fe508576 CV |
3373 | |
3374 | # Enable libmpx on supported systems by request. | |
3375 | if test -d ${srcdir}/libmpx; then | |
3376 | if test x$enable_libmpx = x; then | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 | |
3378 | $as_echo_n "checking for libmpx support... " >&6; } | |
3379 | if (srcdir=${srcdir}/libmpx; \ | |
3380 | . ${srcdir}/configure.tgt; \ | |
3381 | test "$LIBMPX_SUPPORTED" != "yes") | |
3382 | then | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3384 | $as_echo "no" >&6; } | |
3385 | noconfigdirs="$noconfigdirs target-libmpx" | |
3386 | else | |
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3388 | $as_echo "yes" >&6; } | |
3389 | fi | |
3390 | fi | |
3391 | fi | |
3392 | ||
3393 | ||
3394 | ||
ddb7b65a DE |
3395 | # Disable libquadmath for some systems. |
3396 | case "${target}" in | |
5094cf21 L |
3397 | avr-*-*) |
3398 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3399 | ;; | |
ddb7b65a DE |
3400 | # libquadmath is unused on AIX and libquadmath build process use of |
3401 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3402 | powerpc-*-aix* | rs6000-*-aix*) | |
3403 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3404 | ;; | |
3405 | esac | |
3406 | ||
d36ed46d JM |
3407 | # Disable libssp for some systems. |
3408 | case "${target}" in | |
3409 | avr-*-*) | |
e974e7a0 | 3410 | # No hosted I/O support. |
d36ed46d JM |
3411 | noconfigdirs="$noconfigdirs target-libssp" |
3412 | ;; | |
3413 | powerpc-*-aix* | rs6000-*-aix*) | |
3414 | noconfigdirs="$noconfigdirs target-libssp" | |
3415 | ;; | |
a4cff05a | 3416 | rl78-*-*) |
0c910152 NC |
3417 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3418 | # doesn't fault for those - instead, it gives a build-time error | |
3419 | # for explicit misaligned loads. | |
a4cff05a DD |
3420 | noconfigdirs="$noconfigdirs target-libssp" |
3421 | ;; | |
fe508576 CV |
3422 | visium-*-*) |
3423 | # No hosted I/O support. | |
3424 | noconfigdirs="$noconfigdirs target-libssp" | |
3425 | ;; | |
d36ed46d JM |
3426 | esac |
3427 | ||
d36ed46d | 3428 | # Disable libstdc++-v3 for some systems. |
5ec30f78 L |
3429 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3430 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3431 | case "${target}" in | |
3432 | *-*-vxworks*) | |
3433 | # VxWorks uses the Dinkumware C++ library. | |
3434 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3435 | ;; | |
3436 | arm*-wince-pe*) | |
3437 | # the C++ libraries don't build on top of CE's C libraries | |
3438 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3439 | ;; | |
3440 | avr-*-*) | |
3441 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3442 | ;; | |
fe508576 CV |
3443 | ft32-*-*) |
3444 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3445 | ;; | |
5ec30f78 L |
3446 | esac |
3447 | fi | |
d36ed46d JM |
3448 | |
3449 | # Disable Fortran for some systems. | |
3450 | case "${target}" in | |
3451 | mmix-*-*) | |
3452 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3453 | unsupported_languages="$unsupported_languages fortran" | |
3454 | ;; | |
3455 | esac | |
3456 | ||
fdb1f028 | 3457 | # Disable Java if libffi is not supported. |
4819e64b | 3458 | case "${target}" in |
35b79fa5 JBG |
3459 | aarch64-*-*) |
3460 | ;; | |
fdb1f028 JM |
3461 | alpha*-*-*) |
3462 | ;; | |
3463 | arm*-*-*) | |
3464 | ;; | |
3465 | cris-*-*) | |
3466 | ;; | |
3467 | frv-*-*) | |
3468 | ;; | |
3469 | hppa*-*-linux*) | |
3470 | ;; | |
3471 | hppa*-*-hpux*) | |
3472 | ;; | |
3473 | i?86-*-*) | |
3474 | ;; | |
3475 | ia64*-*-*) | |
3476 | ;; | |
3477 | m32r*-*-*) | |
3478 | ;; | |
3479 | m68k-*-*) | |
3480 | ;; | |
d3f6480e | 3481 | mips*-*-rtems*) |
fdb1f028 JM |
3482 | ;; |
3483 | mips*-*-linux*) | |
3484 | ;; | |
3485 | powerpc*-*-linux*) | |
3486 | ;; | |
3487 | powerpc-*-darwin*) | |
3488 | ;; | |
3489 | powerpc-*-aix* | rs6000-*-aix*) | |
3490 | ;; | |
3491 | powerpc-*-freebsd*) | |
3492 | ;; | |
3493 | powerpc64-*-freebsd*) | |
3494 | ;; | |
3495 | powerpc*-*-rtems*) | |
4819e64b | 3496 | ;; |
fdb1f028 JM |
3497 | s390-*-* | s390x-*-*) |
3498 | ;; | |
3499 | sh-*-* | sh[34]*-*-*) | |
3500 | ;; | |
fdb1f028 JM |
3501 | sparc*-*-*) |
3502 | ;; | |
3503 | x86_64-*-*) | |
3504 | ;; | |
3505 | *-*-*) | |
3506 | unsupported_languages="$unsupported_languages java" | |
3507 | ;; | |
3508 | esac | |
3509 | ||
3510 | # Disable Java, libgcj or related libraries for some systems. | |
3511 | case "${target}" in | |
4819e64b JM |
3512 | powerpc-*-darwin*) |
3513 | ;; | |
3514 | i[3456789]86-*-darwin*) | |
3515 | ;; | |
3516 | x86_64-*-darwin[912]*) | |
3517 | ;; | |
3518 | *-*-darwin*) | |
3519 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3520 | ;; | |
4819e64b JM |
3521 | *-*-netware*) |
3522 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3523 | ;; | |
79bb0de3 JJ |
3524 | *-*-phoenix*) |
3525 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3526 | ;; | |
4819e64b JM |
3527 | *-*-rtems*) |
3528 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3529 | ;; | |
3530 | *-*-tpf*) | |
3531 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3532 | ;; | |
3533 | *-*-uclinux*) | |
3534 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3535 | ;; | |
3536 | *-*-vxworks*) | |
3537 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3538 | ;; | |
4819e64b JM |
3539 | alpha*-*-*vms*) |
3540 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3541 | ;; | |
fe508576 CV |
3542 | arm*-*-freebsd*) |
3543 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3544 | ;; | |
fdb1f028 | 3545 | arm-wince-pe) |
4819e64b JM |
3546 | noconfigdirs="$noconfigdirs ${libgcj}" |
3547 | ;; | |
4819e64b JM |
3548 | arm*-*-symbianelf*) |
3549 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3550 | ;; | |
4819e64b | 3551 | bfin-*-*) |
4819e64b JM |
3552 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3553 | ;; | |
4819e64b JM |
3554 | cris-*-* | crisv32-*-*) |
3555 | unsupported_languages="$unsupported_languages java" | |
3556 | case "${target}" in | |
3557 | *-*-linux*) | |
3558 | ;; | |
3559 | *) # See PR46792 regarding target-libffi. | |
3560 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3561 | esac | |
3562 | ;; | |
4819e64b JM |
3563 | hppa*64*-*-linux*) |
3564 | # In this case, it's because the hppa64-linux target is for | |
3565 | # the kernel only at this point and has no libc, and thus no | |
3566 | # headers, crt*.o, etc., all of which are needed by these. | |
530994bd | 3567 | unsupported_languages="$unsupported_languages java" |
4819e64b | 3568 | ;; |
530994bd | 3569 | hppa*64*-*-hpux*) |
4819e64b JM |
3570 | noconfigdirs="$noconfigdirs ${libgcj}" |
3571 | ;; | |
3572 | hppa*-hp-hpux11*) | |
3573 | ;; | |
530994bd | 3574 | hppa*-*-hpux*) |
4819e64b JM |
3575 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3576 | # build on HP-UX 10.20. | |
3577 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3578 | ;; | |
4819e64b JM |
3579 | ia64*-*-*vms*) |
3580 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3581 | ;; | |
4819e64b JM |
3582 | i[3456789]86-w64-mingw*) |
3583 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3584 | ;; | |
3585 | i[3456789]86-*-mingw*) | |
3586 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3587 | ;; | |
3588 | x86_64-*-mingw*) | |
3589 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3590 | ;; | |
4819e64b JM |
3591 | mmix-*-*) |
3592 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
4819e64b JM |
3593 | ;; |
3594 | powerpc-*-aix*) | |
3595 | # copied from rs6000-*-* entry | |
3596 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3597 | ;; | |
4819e64b JM |
3598 | rs6000-*-aix*) |
3599 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3600 | ;; | |
fe508576 CV |
3601 | ft32-*-*) |
3602 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3603 | ;; | |
4819e64b JM |
3604 | *-*-lynxos*) |
3605 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3606 | ;; | |
4819e64b JM |
3607 | esac |
3608 | ||
fe508576 CV |
3609 | # Disable the go frontend on systems where it is known to not work. Please keep |
3610 | # this in sync with contrib/config-list.mk. | |
3611 | case "${target}" in | |
3612 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3613 | unsupported_languages="$unsupported_languages go" | |
3614 | ;; | |
3615 | esac | |
3616 | ||
51ab11f7 ILT |
3617 | # Disable libgo for some systems where it is known to not work. |
3618 | # For testing, you can easily override this with --enable-libgo. | |
3619 | if test x$enable_libgo = x; then | |
3620 | case "${target}" in | |
3621 | *-*-darwin*) | |
3622 | # PR 46986 | |
3623 | noconfigdirs="$noconfigdirs target-libgo" | |
3624 | ;; | |
3625 | *-*-cygwin* | *-*-mingw*) | |
3626 | noconfigdirs="$noconfigdirs target-libgo" | |
3627 | ;; | |
3628 | *-*-aix*) | |
3629 | noconfigdirs="$noconfigdirs target-libgo" | |
3630 | ;; | |
3631 | esac | |
3632 | fi | |
3633 | ||
46093329 DD |
3634 | # Default libgloss CPU subdirectory. |
3635 | libgloss_dir="$target_cpu" | |
cb2333e8 | 3636 | |
3c348668 JM |
3637 | case "${target}" in |
3638 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3639 | libgloss_dir=wince | |
3640 | ;; | |
34969368 YZ |
3641 | aarch64*-*-* ) |
3642 | libgloss_dir=aarch64 | |
3643 | ;; | |
3c348668 JM |
3644 | arm*-*-*) |
3645 | libgloss_dir=arm | |
3646 | ;; | |
3647 | cris-*-* | crisv32-*-*) | |
3648 | libgloss_dir=cris | |
3649 | ;; | |
3650 | hppa*-*-*) | |
3651 | libgloss_dir=pa | |
3652 | ;; | |
3653 | i[3456789]86-*-*) | |
3654 | libgloss_dir=i386 | |
3655 | ;; | |
3656 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3657 | libgloss_dir=m68hc11 | |
3658 | ;; | |
3659 | m68*-*-* | fido-*-*) | |
3660 | libgloss_dir=m68k | |
3661 | ;; | |
3662 | mips*-*-*) | |
3663 | libgloss_dir=mips | |
3664 | ;; | |
3665 | powerpc*-*-*) | |
3666 | libgloss_dir=rs6000 | |
3667 | ;; | |
3668 | sparc*-*-*) | |
3669 | libgloss_dir=sparc | |
3670 | ;; | |
3671 | esac | |
3672 | ||
25c50222 | 3673 | # Disable newlib and libgloss for various target OSes. |
bafecfd6 | 3674 | case "${target}" in |
25c50222 JM |
3675 | alpha*-dec-osf*) |
3676 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3677 | ;; | |
3678 | i[3456789]86-*-linux*) | |
3679 | # This section makes it possible to build newlib natively on linux. | |
3680 | # If we are using a cross compiler then don't configure newlib. | |
3681 | if test x${is_cross_compiler} != xno ; then | |
3682 | noconfigdirs="$noconfigdirs target-newlib" | |
3683 | fi | |
3684 | noconfigdirs="$noconfigdirs target-libgloss" | |
3685 | # If we are not using a cross compiler, do configure newlib. | |
3686 | # Note however, that newlib will only be configured in this situation | |
3687 | # if the --with-newlib option has been given, because otherwise | |
3688 | # 'target-newlib' will appear in skipdirs. | |
3689 | ;; | |
3690 | i[3456789]86-*-rdos*) | |
3691 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3692 | ;; | |
3693 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3694 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3695 | ;; | |
3696 | sparc-*-sunos4*) | |
3697 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3698 | ;; | |
3699 | *-*-aix*) | |
3700 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3701 | ;; | |
3702 | *-*-beos*) | |
3703 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3704 | ;; | |
bafecfd6 | 3705 | *-*-chorusos) |
61cc119d | 3706 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3707 | ;; |
25c50222 JM |
3708 | *-*-dragonfly*) |
3709 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3710 | ;; | |
3711 | *-*-freebsd*) | |
3712 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3713 | ;; | |
3714 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3715 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3716 | ;; | |
3717 | *-*-lynxos*) | |
3718 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3719 | ;; | |
3720 | *-*-mingw*) | |
3721 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3722 | ;; | |
3723 | *-*-netbsd*) | |
3724 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3725 | ;; | |
3726 | *-*-netware*) | |
3727 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3728 | ;; | |
3729 | *-*-tpf*) | |
3730 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3731 | ;; | |
3732 | *-*-uclinux*) | |
3733 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3734 | ;; | |
3735 | *-*-vxworks*) | |
3736 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3737 | ;; | |
3738 | esac | |
3739 | ||
3740 | case "${target}" in | |
3741 | *-*-chorusos) | |
3742 | ;; | |
fe508576 CV |
3743 | aarch64-*-darwin*) |
3744 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3745 | noconfigdirs="$noconfigdirs sim target-rda" | |
3746 | ;; | |
3747 | arm-*-darwin*) | |
3748 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3749 | noconfigdirs="$noconfigdirs sim target-rda" | |
3750 | ;; | |
2926fdf5 | 3751 | powerpc-*-darwin*) |
173af0fb | 3752 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
bbaae19b | 3753 | noconfigdirs="$noconfigdirs sim target-rda" |
5f0d49b5 | 3754 | ;; |
41592149 TG |
3755 | i[3456789]86-*-darwin*) |
3756 | noconfigdirs="$noconfigdirs ld gprof" | |
3757 | noconfigdirs="$noconfigdirs sim target-rda" | |
3758 | ;; | |
121f0eb2 | 3759 | x86_64-*-darwin[912]*) |
5f0d49b5 TG |
3760 | noconfigdirs="$noconfigdirs ld gas gprof" |
3761 | noconfigdirs="$noconfigdirs sim target-rda" | |
44dc96d1 | 3762 | ;; |
4b649dd9 | 3763 | *-*-darwin*) |
56fa0798 | 3764 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
bbaae19b | 3765 | noconfigdirs="$noconfigdirs sim target-rda" |
4b649dd9 | 3766 | ;; |
573c698a | 3767 | *-*-dragonfly*) |
573c698a | 3768 | ;; |
eb2d1dee | 3769 | *-*-freebsd*) |
cb2333e8 DD |
3770 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3771 | && test -f /usr/local/include/gmp.h; then | |
3772 | with_gmp=/usr/local | |
3773 | fi | |
cb2333e8 | 3774 | ;; |
5cd57f01 NC |
3775 | *-*-kaos*) |
3776 | # Remove unsupported stuff on all kaOS configurations. | |
5cd57f01 NC |
3777 | noconfigdirs="$noconfigdirs target-libgloss" |
3778 | ;; | |
bafecfd6 | 3779 | *-*-netbsd*) |
bafecfd6 | 3780 | ;; |
b330724f | 3781 | *-*-netware*) |
bafecfd6 | 3782 | ;; |
79bb0de3 JJ |
3783 | *-*-phoenix*) |
3784 | noconfigdirs="$noconfigdirs target-libgloss" | |
3785 | ;; | |
bafecfd6 | 3786 | *-*-rtems*) |
4819e64b | 3787 | noconfigdirs="$noconfigdirs target-libgloss" |
fe508576 CV |
3788 | # this is not caught below because this stanza matches earlier |
3789 | case $target in | |
3790 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3791 | esac | |
bafecfd6 | 3792 | ;; |
3d93afbc EC |
3793 | # The tpf target doesn't support gdb yet. |
3794 | *-*-tpf*) | |
25c50222 | 3795 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
3d93afbc | 3796 | ;; |
1fb9256d | 3797 | *-*-uclinux*) |
25c50222 | 3798 | noconfigdirs="$noconfigdirs target-rda" |
1fb9256d | 3799 | ;; |
bafecfd6 | 3800 | *-*-vxworks*) |
bafecfd6 NN |
3801 | ;; |
3802 | alpha*-dec-osf*) | |
3803 | # ld works, but does not support shared libraries. | |
bafecfd6 | 3804 | # gas doesn't generate exception information. |
25c50222 | 3805 | noconfigdirs="$noconfigdirs gas ld" |
bafecfd6 NN |
3806 | ;; |
3807 | alpha*-*-*vms*) | |
4819e64b | 3808 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
bafecfd6 | 3809 | ;; |
bafecfd6 NN |
3810 | alpha*-*-*) |
3811 | # newlib is not 64 bit ready | |
4819e64b | 3812 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 3813 | ;; |
bafecfd6 | 3814 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
44397772 | 3815 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
bafecfd6 | 3816 | ;; |
bafecfd6 | 3817 | arm-*-pe*) |
4819e64b | 3818 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3819 | ;; |
bafecfd6 | 3820 | arm-*-riscix*) |
61cc119d | 3821 | noconfigdirs="$noconfigdirs ld target-libgloss" |
bafecfd6 | 3822 | ;; |
125bb3c9 L |
3823 | avr-*-*) |
3824 | if test x${with_avrlibc} != xno; then | |
3825 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3826 | fi | |
3827 | ;; | |
bafecfd6 | 3828 | c4x-*-* | tic4x-*-*) |
61cc119d | 3829 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3830 | ;; |
61cc119d JM |
3831 | tic54x-*-*) |
3832 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
bafecfd6 | 3833 | ;; |
bafecfd6 | 3834 | d10v-*-*) |
61cc119d | 3835 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 NN |
3836 | ;; |
3837 | d30v-*-*) | |
61cc119d | 3838 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 NN |
3839 | ;; |
3840 | fr30-*-elf*) | |
4819e64b | 3841 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3842 | ;; |
fe508576 CV |
3843 | ft32-*-*) |
3844 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3845 | ;; | |
cc074893 | 3846 | moxie-*-*) |
fe508576 | 3847 | noconfigdirs="$noconfigdirs" |
cc074893 | 3848 | ;; |
bafecfd6 | 3849 | h8300*-*-*) |
4819e64b | 3850 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 NN |
3851 | ;; |
3852 | h8500-*-*) | |
61cc119d | 3853 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3854 | ;; |
3d439922 | 3855 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
3d439922 | 3856 | ;; |
fe508576 CV |
3857 | hppa*64*-*-hpux*) |
3858 | noconfigdirs="$noconfigdirs gdb" | |
3859 | ;; | |
3860 | hppa*-*-hpux11*) | |
3861 | noconfigdirs="$noconfigdirs gdb ld" | |
3862 | ;; | |
3d4d1d30 | 3863 | hppa*64*-*-linux*) |
bafecfd6 | 3864 | ;; |
4fcb78d9 | 3865 | hppa*-*-linux*) |
53af4f25 | 3866 | ;; |
bafecfd6 | 3867 | hppa*-*-*elf* | \ |
bafecfd6 NN |
3868 | hppa*-*-lites* | \ |
3869 | hppa*-*-openbsd* | \ | |
3870 | hppa*64*-*-*) | |
e1e5148c | 3871 | ;; |
46093329 | 3872 | hppa*-*-pro*) |
46093329 | 3873 | ;; |
bafecfd6 | 3874 | hppa*-*-*) |
4819e64b | 3875 | noconfigdirs="$noconfigdirs ld" |
bafecfd6 | 3876 | ;; |
7e269125 | 3877 | i960-*-*) |
61cc119d | 3878 | noconfigdirs="$noconfigdirs gdb" |
7e269125 | 3879 | ;; |
bafecfd6 NN |
3880 | ia64*-*-elf*) |
3881 | # No gdb support yet. | |
5b45e8c9 | 3882 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
bafecfd6 NN |
3883 | ;; |
3884 | ia64*-**-hpux*) | |
e82bcd79 | 3885 | # No ld support yet. |
fe508576 | 3886 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
bafecfd6 | 3887 | ;; |
608adbed | 3888 | ia64*-*-*vms*) |
a626f4ee L |
3889 | # No ld support yet. |
3890 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
608adbed | 3891 | ;; |
5074489a | 3892 | i[3456789]86-w64-mingw*) |
5074489a AO |
3893 | ;; |
3894 | i[3456789]86-*-mingw*) | |
bc668665 | 3895 | target_configdirs="$target_configdirs target-winsup" |
b58b6ee1 | 3896 | ;; |
bafecfd6 NN |
3897 | *-*-cygwin*) |
3898 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
5b45e8c9 | 3899 | noconfigdirs="$noconfigdirs target-libgloss" |
99dbec4c | 3900 | # always build newlib if winsup directory is present. |
bc668665 | 3901 | if test -d "$srcdir/winsup/cygwin"; then |
99dbec4c | 3902 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
4ea74b34 | 3903 | elif test -d "$srcdir/newlib"; then |
bc668665 | 3904 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
99dbec4c | 3905 | fi |
b58b6ee1 | 3906 | ;; |
08049c01 | 3907 | i[3456789]86-*-pe) |
9aedc1d4 | 3908 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3909 | ;; |
08049c01 | 3910 | i[3456789]86-*-sco3.2v5*) |
bafecfd6 NN |
3911 | # The linker does not yet know about weak symbols in COFF, |
3912 | # and is not configured to handle mixed ELF and COFF. | |
61cc119d | 3913 | noconfigdirs="$noconfigdirs ld target-libgloss" |
bafecfd6 | 3914 | ;; |
08049c01 | 3915 | i[3456789]86-*-sco*) |
61cc119d | 3916 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3917 | ;; |
da2cf961 | 3918 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
bafecfd6 NN |
3919 | noconfigdirs="$noconfigdirs target-libgloss" |
3920 | ;; | |
08049c01 | 3921 | i[3456789]86-*-sysv4*) |
61cc119d | 3922 | noconfigdirs="$noconfigdirs target-libgloss" |
bafecfd6 | 3923 | ;; |
08049c01 | 3924 | i[3456789]86-*-beos*) |
25c50222 | 3925 | noconfigdirs="$noconfigdirs gdb" |
2245eb63 | 3926 | ;; |
22d7108e | 3927 | i[3456789]86-*-rdos*) |
25c50222 | 3928 | noconfigdirs="$noconfigdirs gdb" |
46093329 | 3929 | ;; |
bafecfd6 | 3930 | mmix-*-*) |
4819e64b | 3931 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3932 | ;; |
74ecef0d | 3933 | mt-*-*) |
66cb6a19 AH |
3934 | noconfigdirs="$noconfigdirs sim" |
3935 | ;; | |
bafecfd6 NN |
3936 | powerpc-*-aix*) |
3937 | # copied from rs6000-*-* entry | |
25c50222 | 3938 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 | 3939 | ;; |
3d4d1d30 | 3940 | powerpc*-*-winnt* | powerpc*-*-pe*) |
bafecfd6 | 3941 | target_configdirs="$target_configdirs target-winsup" |
61cc119d | 3942 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
bafecfd6 NN |
3943 | # always build newlib. |
3944 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3945 | ;; | |
3946 | # This is temporary until we can link against shared libraries | |
3947 | powerpcle-*-solaris*) | |
61cc119d | 3948 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
bafecfd6 NN |
3949 | ;; |
3950 | powerpc-*-beos*) | |
25c50222 | 3951 | noconfigdirs="$noconfigdirs gdb" |
bafecfd6 | 3952 | ;; |
bafecfd6 | 3953 | rs6000-*-lynxos*) |
25c50222 | 3954 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3955 | ;; |
3956 | rs6000-*-aix*) | |
25c50222 | 3957 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3958 | ;; |
3959 | rs6000-*-*) | |
4819e64b | 3960 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 NN |
3961 | ;; |
3962 | m68k-apollo-*) | |
61cc119d | 3963 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
bafecfd6 | 3964 | ;; |
45f03e33 | 3965 | microblaze*) |
4819e64b | 3966 | noconfigdirs="$noconfigdirs gprof" |
45f03e33 | 3967 | ;; |
fe508576 | 3968 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
524e4570 RS |
3969 | if test x$with_newlib = xyes; then |
3970 | noconfigdirs="$noconfigdirs gprof" | |
3971 | fi | |
524e4570 | 3972 | ;; |
bafecfd6 | 3973 | mips*-*-irix5*) |
61cc119d | 3974 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 NN |
3975 | ;; |
3976 | mips*-*-irix6*) | |
4819e64b | 3977 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
bafecfd6 | 3978 | ;; |
bafecfd6 | 3979 | mips*-*-bsd*) |
b5627d2e | 3980 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
bafecfd6 | 3981 | ;; |
bafecfd6 | 3982 | mips*-*-linux*) |
bafecfd6 | 3983 | ;; |
b5627d2e RS |
3984 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3985 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3986 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3987 | ;; | |
bafecfd6 | 3988 | mips*-*-*) |
4819e64b | 3989 | noconfigdirs="$noconfigdirs gprof" |
bafecfd6 | 3990 | ;; |
fe508576 CV |
3991 | nds32*-*-*) |
3992 | noconfigdirs="$noconfigdirs gdb" | |
3993 | ;; | |
3994 | nvptx*-*-*) | |
3995 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3996 | ;; | |
3997 | or1k*-*-*) | |
3998 | noconfigdirs="$noconfigdirs gdb" | |
3999 | ;; | |
d5632bcf | 4000 | sh-*-*) |
121f0eb2 RW |
4001 | case "${target}" in |
4002 | sh*-*-elf) | |
4819e64b | 4003 | ;; |
121f0eb2 | 4004 | *) |
4819e64b | 4005 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
121f0eb2 | 4006 | esac |
bafecfd6 | 4007 | ;; |
bafecfd6 | 4008 | sparc-*-sunos4*) |
25c50222 | 4009 | if test x${is_cross_compiler} = xno ; then |
bafecfd6 NN |
4010 | use_gnu_ld=no |
4011 | fi | |
4012 | ;; | |
6315af0f | 4013 | tic6x-*-*) |
a2ffbf1e | 4014 | noconfigdirs="$noconfigdirs sim" |
6315af0f | 4015 | ;; |
fe508576 | 4016 | tilepro*-*-* | tilegx*-*-*) |
f9dd2b32 NC |
4017 | noconfigdirs="$noconfigdirs sim" |
4018 | ;; | |
bafecfd6 | 4019 | v810-*-*) |
61cc119d | 4020 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
bafecfd6 NN |
4021 | ;; |
4022 | vax-*-*) | |
4819e64b | 4023 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
bafecfd6 | 4024 | ;; |
bafecfd6 | 4025 | esac |
a3acbf46 | 4026 | |
bafecfd6 NN |
4027 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4028 | # depends upon some newlib header files. | |
4029 | case "${noconfigdirs}" in | |
4030 | *target-libgloss*) ;; | |
4031 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4032 | esac | |
4033 | ||
bafecfd6 | 4034 | # Work in distributions that contain no compiler tools, like Autoconf. |
bafecfd6 NN |
4035 | host_makefile_frag=/dev/null |
4036 | if test -d ${srcdir}/config ; then | |
4037 | case "${host}" in | |
08049c01 | 4038 | i[3456789]86-*-msdosdjgpp*) |
bafecfd6 NN |
4039 | host_makefile_frag="config/mh-djgpp" |
4040 | ;; | |
4041 | *-cygwin*) | |
981b79bf | 4042 | |
efd58f08 RW |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4044 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
981b79bf | 4045 | echo a >cygwin-cat-check |
5074489a | 4046 | if test `cat cygwin-cat-check` = a ; then |
999fa990 | 4047 | rm cygwin-cat-check |
efd58f08 RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4049 | $as_echo "yes" >&6; } | |
981b79bf | 4050 | else |
999fa990 | 4051 | rm cygwin-cat-check |
efd58f08 RW |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4053 | $as_echo "no" >&6; } | |
6d3ddf51 | 4054 | as_fn_error $? "The cat command does not ignore carriage return characters. |
981b79bf NC |
4055 | Please either mount the build directory in binary mode or run the following |
4056 | commands before running any configure script: | |
4057 | set -o igncr | |
4058 | export SHELLOPTS | |
efd58f08 | 4059 | " "$LINENO" 5 |
981b79bf | 4060 | fi |
981b79bf | 4061 | |
bafecfd6 NN |
4062 | host_makefile_frag="config/mh-cygwin" |
4063 | ;; | |
617c478d | 4064 | *-mingw*) |
fd1c1753 | 4065 | host_makefile_frag="config/mh-mingw" |
6a24f03b | 4066 | ;; |
fe508576 CV |
4067 | alpha*-linux*) |
4068 | host_makefile_frag="config/mh-alpha-linux" | |
4069 | ;; | |
9ad2ea2f | 4070 | hppa*-hp-hpux10*) |
9ad2ea2f | 4071 | host_makefile_frag="config/mh-pa-hpux10" |
bafecfd6 | 4072 | ;; |
4e55c4e3 | 4073 | hppa*-hp-hpux*) |
9ad2ea2f PB |
4074 | host_makefile_frag="config/mh-pa" |
4075 | ;; | |
4076 | hppa*-*) | |
4077 | host_makefile_frag="config/mh-pa" | |
4078 | ;; | |
d5b7129a ILT |
4079 | *-*-darwin*) |
4080 | host_makefile_frag="config/mh-darwin" | |
99df82b9 | 4081 | ;; |
7e958b2e PB |
4082 | powerpc-*-aix*) |
4083 | host_makefile_frag="config/mh-ppc-aix" | |
4084 | ;; | |
4085 | rs6000-*-aix*) | |
4086 | host_makefile_frag="config/mh-ppc-aix" | |
4087 | ;; | |
bafecfd6 NN |
4088 | esac |
4089 | fi | |
4090 | ||
cfc26d93 | 4091 | if test "${build}" != "${host}" ; then |
4413ec01 PB |
4092 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4093 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
cfc26d93 | 4094 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
4413ec01 PB |
4095 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4096 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4097 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
d5b7129a | 4098 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
4413ec01 PB |
4099 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4100 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4101 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4102 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4103 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4104 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4105 | else | |
4106 | AR_FOR_BUILD="\$(AR)" | |
4107 | AS_FOR_BUILD="\$(AS)" | |
31839eae | 4108 | CC_FOR_BUILD="\$(CC)" |
4413ec01 PB |
4109 | CXX_FOR_BUILD="\$(CXX)" |
4110 | GCJ_FOR_BUILD="\$(GCJ)" | |
4111 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
d5b7129a | 4112 | GOC_FOR_BUILD="\$(GOC)" |
4413ec01 PB |
4113 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4114 | LD_FOR_BUILD="\$(LD)" | |
4115 | NM_FOR_BUILD="\$(NM)" | |
4116 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4117 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4118 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
b8c26111 PB |
4119 | fi |
4120 | ||
4121 | ac_ext=c | |
b58b6ee1 DJ |
4122 | ac_cpp='$CPP $CPPFLAGS' |
4123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4126 | if test -n "$ac_tool_prefix"; then | |
4127 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4128 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
efd58f08 RW |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4130 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4131 | if ${ac_cv_prog_CC+:} false; then : |
efd58f08 | 4132 | $as_echo_n "(cached) " >&6 |
b58b6ee1 DJ |
4133 | else |
4134 | if test -n "$CC"; then | |
4135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4136 | else | |
4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4138 | for as_dir in $PATH | |
4139 | do | |
4140 | IFS=$as_save_IFS | |
4141 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4142 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 4144 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
efd58f08 | 4145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4146 | break 2 |
4147 | fi | |
4148 | done | |
efd58f08 RW |
4149 | done |
4150 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
4151 | |
4152 | fi | |
4153 | fi | |
4154 | CC=$ac_cv_prog_CC | |
4155 | if test -n "$CC"; then | |
efd58f08 RW |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4157 | $as_echo "$CC" >&6; } | |
b58b6ee1 | 4158 | else |
efd58f08 RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4160 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
4161 | fi |
4162 | ||
efd58f08 | 4163 | |
b58b6ee1 DJ |
4164 | fi |
4165 | if test -z "$ac_cv_prog_CC"; then | |
4166 | ac_ct_CC=$CC | |
2cb47d68 | 4167 | # Extract the first word of "gcc", so it can be a program name with args. |
cfc26d93 | 4168 | set dummy gcc; ac_word=$2 |
efd58f08 RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4170 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4171 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
efd58f08 | 4172 | $as_echo_n "(cached) " >&6 |
b58b6ee1 DJ |
4173 | else |
4174 | if test -n "$ac_ct_CC"; then | |
4175 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4176 | else | |
4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4178 | for as_dir in $PATH | |
4179 | do | |
4180 | IFS=$as_save_IFS | |
4181 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4182 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 4184 | ac_cv_prog_ac_ct_CC="gcc" |
efd58f08 | 4185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4186 | break 2 |
4187 | fi | |
4188 | done | |
efd58f08 RW |
4189 | done |
4190 | IFS=$as_save_IFS | |
b58b6ee1 DJ |
4191 | |
4192 | fi | |
4193 | fi | |
4194 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4195 | if test -n "$ac_ct_CC"; then | |
efd58f08 RW |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4197 | $as_echo "$ac_ct_CC" >&6; } | |
b58b6ee1 | 4198 | else |
efd58f08 RW |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4200 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
4201 | fi |
4202 | ||
efd58f08 RW |
4203 | if test "x$ac_ct_CC" = x; then |
4204 | CC="" | |
4205 | else | |
4206 | case $cross_compiling:$ac_tool_warned in | |
4207 | yes:) | |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4209 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4210 | ac_tool_warned=yes ;; | |
4211 | esac | |
4212 | CC=$ac_ct_CC | |
4213 | fi | |
b58b6ee1 DJ |
4214 | else |
4215 | CC="$ac_cv_prog_CC" | |
4216 | fi | |
4217 | ||
4218 | if test -z "$CC"; then | |
efd58f08 RW |
4219 | if test -n "$ac_tool_prefix"; then |
4220 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b58b6ee1 | 4221 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
efd58f08 RW |
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4223 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4224 | if ${ac_cv_prog_CC+:} false; then : |
efd58f08 | 4225 | $as_echo_n "(cached) " >&6 |
cfc26d93 NN |
4226 | else |
4227 | if test -n "$CC"; then | |
4228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4229 | else | |
b58b6ee1 DJ |
4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4231 | for as_dir in $PATH | |
4232 | do | |
4233 | IFS=$as_save_IFS | |
4234 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 4237 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
efd58f08 | 4238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4239 | break 2 |
4240 | fi | |
4241 | done | |
efd58f08 RW |
4242 | done |
4243 | IFS=$as_save_IFS | |
b58b6ee1 | 4244 | |
cfc26d93 NN |
4245 | fi |
4246 | fi | |
b58b6ee1 | 4247 | CC=$ac_cv_prog_CC |
cfc26d93 | 4248 | if test -n "$CC"; then |
efd58f08 RW |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4250 | $as_echo "$CC" >&6; } | |
b58b6ee1 | 4251 | else |
efd58f08 RW |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4253 | $as_echo "no" >&6; } | |
b58b6ee1 DJ |
4254 | fi |
4255 | ||
b58b6ee1 | 4256 | |
efd58f08 | 4257 | fi |
b58b6ee1 | 4258 | fi |
cfc26d93 NN |
4259 | if test -z "$CC"; then |
4260 | # Extract the first word of "cc", so it can be a program name with args. | |
4261 | set dummy cc; ac_word=$2 | |
efd58f08 RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4263 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4264 | if ${ac_cv_prog_CC+:} false; then : |
efd58f08 | 4265 | $as_echo_n "(cached) " >&6 |
cfc26d93 NN |
4266 | else |
4267 | if test -n "$CC"; then | |
4268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4269 | else | |
cfc26d93 | 4270 | ac_prog_rejected=no |
b58b6ee1 DJ |
4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4272 | for as_dir in $PATH | |
4273 | do | |
4274 | IFS=$as_save_IFS | |
4275 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4276 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 DJ |
4278 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4279 | ac_prog_rejected=yes | |
4280 | continue | |
4281 | fi | |
4282 | ac_cv_prog_CC="cc" | |
efd58f08 | 4283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4284 | break 2 |
4285 | fi | |
4286 | done | |
efd58f08 RW |
4287 | done |
4288 | IFS=$as_save_IFS | |
b58b6ee1 | 4289 | |
cfc26d93 NN |
4290 | if test $ac_prog_rejected = yes; then |
4291 | # We found a bogon in the path, so make sure we never use it. | |
4292 | set dummy $ac_cv_prog_CC | |
4293 | shift | |
b58b6ee1 | 4294 | if test $# != 0; then |
cfc26d93 NN |
4295 | # We chose a different compiler from the bogus one. |
4296 | # However, it has the same basename, so the bogon will be chosen | |
4297 | # first if we set CC to just the basename; use the full file name. | |
4298 | shift | |
b58b6ee1 | 4299 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
cfc26d93 NN |
4300 | fi |
4301 | fi | |
4302 | fi | |
4303 | fi | |
b58b6ee1 | 4304 | CC=$ac_cv_prog_CC |
cfc26d93 | 4305 | if test -n "$CC"; then |
efd58f08 RW |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4307 | $as_echo "$CC" >&6; } | |
cfc26d93 | 4308 | else |
efd58f08 RW |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4310 | $as_echo "no" >&6; } | |
cfc26d93 NN |
4311 | fi |
4312 | ||
efd58f08 | 4313 | |
b58b6ee1 DJ |
4314 | fi |
4315 | if test -z "$CC"; then | |
4316 | if test -n "$ac_tool_prefix"; then | |
efd58f08 | 4317 | for ac_prog in cl.exe |
b58b6ee1 DJ |
4318 | do |
4319 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4320 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
efd58f08 RW |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4322 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4323 | if ${ac_cv_prog_CC+:} false; then : |
efd58f08 | 4324 | $as_echo_n "(cached) " >&6 |
cfc26d93 NN |
4325 | else |
4326 | if test -n "$CC"; then | |
4327 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4328 | else | |
b58b6ee1 DJ |
4329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4330 | for as_dir in $PATH | |
4331 | do | |
4332 | IFS=$as_save_IFS | |
4333 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4334 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 4336 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
efd58f08 | 4337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 | 4338 | break 2 |
76402c80 | 4339 | fi |
b58b6ee1 | 4340 | done |
efd58f08 RW |
4341 | done |
4342 | IFS=$as_save_IFS | |
f69e2532 | 4343 | |
b58b6ee1 DJ |
4344 | fi |
4345 | fi | |
4346 | CC=$ac_cv_prog_CC | |
4347 | if test -n "$CC"; then | |
efd58f08 RW |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4349 | $as_echo "$CC" >&6; } | |
f69e2532 | 4350 | else |
efd58f08 RW |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4352 | $as_echo "no" >&6; } | |
cfc26d93 | 4353 | fi |
f69e2532 | 4354 | |
efd58f08 | 4355 | |
b58b6ee1 DJ |
4356 | test -n "$CC" && break |
4357 | done | |
f69e2532 | 4358 | fi |
b58b6ee1 DJ |
4359 | if test -z "$CC"; then |
4360 | ac_ct_CC=$CC | |
efd58f08 | 4361 | for ac_prog in cl.exe |
b58b6ee1 DJ |
4362 | do |
4363 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4364 | set dummy $ac_prog; ac_word=$2 | |
efd58f08 RW |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4366 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4367 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
efd58f08 | 4368 | $as_echo_n "(cached) " >&6 |
f69e2532 | 4369 | else |
b58b6ee1 DJ |
4370 | if test -n "$ac_ct_CC"; then |
4371 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
76402c80 | 4372 | else |
b58b6ee1 DJ |
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4374 | for as_dir in $PATH | |
4375 | do | |
4376 | IFS=$as_save_IFS | |
4377 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4378 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 4380 | ac_cv_prog_ac_ct_CC="$ac_prog" |
efd58f08 | 4381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
4382 | break 2 |
4383 | fi | |
4384 | done | |
efd58f08 RW |
4385 | done |
4386 | IFS=$as_save_IFS | |
b58b6ee1 | 4387 | |
f69e2532 CM |
4388 | fi |
4389 | fi | |
b58b6ee1 DJ |
4390 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4391 | if test -n "$ac_ct_CC"; then | |
efd58f08 RW |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4393 | $as_echo "$ac_ct_CC" >&6; } | |
cfc26d93 | 4394 | else |
efd58f08 RW |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4396 | $as_echo "no" >&6; } | |
f69e2532 | 4397 | fi |
76402c80 | 4398 | |
efd58f08 | 4399 | |
b58b6ee1 DJ |
4400 | test -n "$ac_ct_CC" && break |
4401 | done | |
4402 | ||
efd58f08 RW |
4403 | if test "x$ac_ct_CC" = x; then |
4404 | CC="" | |
4405 | else | |
4406 | case $cross_compiling:$ac_tool_warned in | |
4407 | yes:) | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4409 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4410 | ac_tool_warned=yes ;; | |
4411 | esac | |
4412 | CC=$ac_ct_CC | |
4413 | fi | |
b58b6ee1 DJ |
4414 | fi |
4415 | ||
4416 | fi | |
4417 | ||
4418 | ||
efd58f08 RW |
4419 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6d3ddf51 SM |
4421 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4422 | See \`config.log' for more details" "$LINENO" 5; } | |
b58b6ee1 DJ |
4423 | |
4424 | # Provide some information about the compiler. | |
efd58f08 RW |
4425 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4426 | set X $ac_compile | |
4427 | ac_compiler=$2 | |
4428 | for ac_option in --version -v -V -qversion; do | |
4429 | { { ac_try="$ac_compiler $ac_option >&5" | |
4430 | case "(($ac_try" in | |
4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4432 | *) ac_try_echo=$ac_try;; | |
4433 | esac | |
4434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4435 | $as_echo "$ac_try_echo"; } >&5 | |
4436 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b58b6ee1 | 4437 | ac_status=$? |
efd58f08 RW |
4438 | if test -s conftest.err; then |
4439 | sed '10a\ | |
4440 | ... rest of stderr output deleted ... | |
4441 | 10q' conftest.err >conftest.er1 | |
4442 | cat conftest.er1 >&5 | |
efd58f08 | 4443 | fi |
6d3ddf51 | 4444 | rm -f conftest.er1 conftest.err |
efd58f08 RW |
4445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4446 | test $ac_status = 0; } | |
4447 | done | |
b58b6ee1 | 4448 | |
efd58f08 | 4449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4450 | /* end confdefs.h. */ |
4451 | ||
4452 | int | |
4453 | main () | |
4454 | { | |
4455 | ||
4456 | ; | |
4457 | return 0; | |
4458 | } | |
4459 | _ACEOF | |
4460 | ac_clean_files_save=$ac_clean_files | |
6d3ddf51 | 4461 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b58b6ee1 DJ |
4462 | # Try to create an executable without -o first, disregard a.out. |
4463 | # It will help us diagnose broken compilers, and finding out an intuition | |
4464 | # of exeext. | |
6d3ddf51 SM |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4466 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
efd58f08 RW |
4467 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4468 | ||
4469 | # The possible output files: | |
4470 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4471 | ||
4472 | ac_rmfiles= | |
4473 | for ac_file in $ac_files | |
4474 | do | |
4475 | case $ac_file in | |
4476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4477 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4478 | esac | |
4479 | done | |
4480 | rm -f $ac_rmfiles | |
4481 | ||
4482 | if { { ac_try="$ac_link_default" | |
4483 | case "(($ac_try" in | |
4484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4485 | *) ac_try_echo=$ac_try;; | |
4486 | esac | |
4487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4488 | $as_echo "$ac_try_echo"; } >&5 | |
4489 | (eval "$ac_link_default") 2>&5 | |
b58b6ee1 | 4490 | ac_status=$? |
efd58f08 RW |
4491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4492 | test $ac_status = 0; }; then : | |
4493 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4494 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4495 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4496 | # so that the user can short-circuit this test for compilers unknown to | |
4497 | # Autoconf. | |
4498 | for ac_file in $ac_files '' | |
b58b6ee1 DJ |
4499 | do |
4500 | test -f "$ac_file" || continue | |
4501 | case $ac_file in | |
efd58f08 | 4502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b58b6ee1 DJ |
4503 | ;; |
4504 | [ab].out ) | |
4505 | # We found the default executable, but exeext='' is most | |
4506 | # certainly right. | |
4507 | break;; | |
4508 | *.* ) | |
efd58f08 RW |
4509 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4510 | then :; else | |
4511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4512 | fi | |
4513 | # We set ac_cv_exeext here because the later test for it is not | |
4514 | # safe: cross compilers may not add the suffix if given an `-o' | |
4515 | # argument, so we may need to know it at that point already. | |
4516 | # Even if this section looks crufty: it has the advantage of | |
4517 | # actually working. | |
b58b6ee1 DJ |
4518 | break;; |
4519 | * ) | |
4520 | break;; | |
4521 | esac | |
4522 | done | |
efd58f08 RW |
4523 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4524 | ||
b58b6ee1 | 4525 | else |
efd58f08 RW |
4526 | ac_file='' |
4527 | fi | |
efd58f08 | 4528 | if test -z "$ac_file"; then : |
6d3ddf51 SM |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4530 | $as_echo "no" >&6; } | |
4531 | $as_echo "$as_me: failed program was:" >&5 | |
b58b6ee1 DJ |
4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
4533 | ||
efd58f08 RW |
4534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6d3ddf51 SM |
4536 | as_fn_error 77 "C compiler cannot create executables |
4537 | See \`config.log' for more details" "$LINENO" 5; } | |
4538 | else | |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4540 | $as_echo "yes" >&6; } | |
b58b6ee1 | 4541 | fi |
6d3ddf51 SM |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4543 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4545 | $as_echo "$ac_file" >&6; } | |
b58b6ee1 | 4546 | ac_exeext=$ac_cv_exeext |
b58b6ee1 | 4547 | |
6d3ddf51 | 4548 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b58b6ee1 | 4549 | ac_clean_files=$ac_clean_files_save |
efd58f08 RW |
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4551 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4552 | if { { ac_try="$ac_link" | |
4553 | case "(($ac_try" in | |
4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4555 | *) ac_try_echo=$ac_try;; | |
4556 | esac | |
4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4558 | $as_echo "$ac_try_echo"; } >&5 | |
4559 | (eval "$ac_link") 2>&5 | |
b58b6ee1 | 4560 | ac_status=$? |
efd58f08 RW |
4561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4562 | test $ac_status = 0; }; then : | |
b58b6ee1 DJ |
4563 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4564 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4565 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4566 | # `rm'. | |
4567 | for ac_file in conftest.exe conftest conftest.*; do | |
4568 | test -f "$ac_file" || continue | |
4569 | case $ac_file in | |
efd58f08 | 4570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b58b6ee1 | 4571 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b58b6ee1 DJ |
4572 | break;; |
4573 | * ) break;; | |
4574 | esac | |
4575 | done | |
4576 | else | |
efd58f08 RW |
4577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6d3ddf51 SM |
4579 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4580 | See \`config.log' for more details" "$LINENO" 5; } | |
b58b6ee1 | 4581 | fi |
6d3ddf51 | 4582 | rm -f conftest conftest$ac_cv_exeext |
efd58f08 RW |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4584 | $as_echo "$ac_cv_exeext" >&6; } | |
b58b6ee1 DJ |
4585 | |
4586 | rm -f conftest.$ac_ext | |
4587 | EXEEXT=$ac_cv_exeext | |
4588 | ac_exeext=$EXEEXT | |
6d3ddf51 SM |
4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4590 | /* end confdefs.h. */ | |
4591 | #include <stdio.h> | |
4592 | int | |
4593 | main () | |
4594 | { | |
4595 | FILE *f = fopen ("conftest.out", "w"); | |
4596 | return ferror (f) || fclose (f) != 0; | |
4597 | ||
4598 | ; | |
4599 | return 0; | |
4600 | } | |
4601 | _ACEOF | |
4602 | ac_clean_files="$ac_clean_files conftest.out" | |
4603 | # Check that the compiler produces executables we can run. If not, either | |
4604 | # the compiler is broken, or we cross compile. | |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4606 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4607 | if test "$cross_compiling" != yes; then | |
4608 | { { ac_try="$ac_link" | |
4609 | case "(($ac_try" in | |
4610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4611 | *) ac_try_echo=$ac_try;; | |
4612 | esac | |
4613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4614 | $as_echo "$ac_try_echo"; } >&5 | |
4615 | (eval "$ac_link") 2>&5 | |
4616 | ac_status=$? | |
4617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4618 | test $ac_status = 0; } | |
4619 | if { ac_try='./conftest$ac_cv_exeext' | |
4620 | { { case "(($ac_try" in | |
4621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4622 | *) ac_try_echo=$ac_try;; | |
4623 | esac | |
4624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4625 | $as_echo "$ac_try_echo"; } >&5 | |
4626 | (eval "$ac_try") 2>&5 | |
4627 | ac_status=$? | |
4628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4629 | test $ac_status = 0; }; }; then | |
4630 | cross_compiling=no | |
4631 | else | |
4632 | if test "$cross_compiling" = maybe; then | |
4633 | cross_compiling=yes | |
4634 | else | |
4635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4637 | as_fn_error $? "cannot run C compiled programs. | |
4638 | If you meant to cross compile, use \`--host'. | |
4639 | See \`config.log' for more details" "$LINENO" 5; } | |
4640 | fi | |
4641 | fi | |
4642 | fi | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4644 | $as_echo "$cross_compiling" >&6; } | |
4645 | ||
4646 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4647 | ac_clean_files=$ac_clean_files_save | |
efd58f08 RW |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4649 | $as_echo_n "checking for suffix of object files... " >&6; } | |
6d3ddf51 | 4650 | if ${ac_cv_objext+:} false; then : |
efd58f08 | 4651 | $as_echo_n "(cached) " >&6 |
b58b6ee1 | 4652 | else |
efd58f08 | 4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4654 | /* end confdefs.h. */ |
4655 | ||
4656 | int | |
4657 | main () | |
4658 | { | |
4659 | ||
4660 | ; | |
4661 | return 0; | |
4662 | } | |
4663 | _ACEOF | |
4664 | rm -f conftest.o conftest.obj | |
efd58f08 RW |
4665 | if { { ac_try="$ac_compile" |
4666 | case "(($ac_try" in | |
4667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4668 | *) ac_try_echo=$ac_try;; | |
4669 | esac | |
4670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4671 | $as_echo "$ac_try_echo"; } >&5 | |
4672 | (eval "$ac_compile") 2>&5 | |
b58b6ee1 | 4673 | ac_status=$? |
efd58f08 RW |
4674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4675 | test $ac_status = 0; }; then : | |
4676 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4677 | test -f "$ac_file" || continue; | |
b58b6ee1 | 4678 | case $ac_file in |
efd58f08 | 4679 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b58b6ee1 DJ |
4680 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4681 | break;; | |
4682 | esac | |
4683 | done | |
f69e2532 | 4684 | else |
efd58f08 | 4685 | $as_echo "$as_me: failed program was:" >&5 |
b58b6ee1 DJ |
4686 | sed 's/^/| /' conftest.$ac_ext >&5 |
4687 | ||
efd58f08 RW |
4688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6d3ddf51 SM |
4690 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4691 | See \`config.log' for more details" "$LINENO" 5; } | |
b58b6ee1 | 4692 | fi |
b58b6ee1 DJ |
4693 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4694 | fi | |
efd58f08 RW |
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4696 | $as_echo "$ac_cv_objext" >&6; } | |
b58b6ee1 DJ |
4697 | OBJEXT=$ac_cv_objext |
4698 | ac_objext=$OBJEXT | |
efd58f08 RW |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4700 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
6d3ddf51 | 4701 | if ${ac_cv_c_compiler_gnu+:} false; then : |
efd58f08 | 4702 | $as_echo_n "(cached) " >&6 |
b58b6ee1 | 4703 | else |
efd58f08 | 4704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4705 | /* end confdefs.h. */ |
4706 | ||
4707 | int | |
4708 | main () | |
4709 | { | |
4710 | #ifndef __GNUC__ | |
4711 | choke me | |
4712 | #endif | |
4713 | ||
4714 | ; | |
4715 | return 0; | |
4716 | } | |
4717 | _ACEOF | |
efd58f08 | 4718 | if ac_fn_c_try_compile "$LINENO"; then : |
b58b6ee1 DJ |
4719 | ac_compiler_gnu=yes |
4720 | else | |
efd58f08 | 4721 | ac_compiler_gnu=no |
b58b6ee1 | 4722 | fi |
efd58f08 | 4723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b58b6ee1 DJ |
4724 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4725 | ||
4726 | fi | |
efd58f08 RW |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4728 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4729 | if test $ac_compiler_gnu = yes; then | |
4730 | GCC=yes | |
4731 | else | |
4732 | GCC= | |
4733 | fi | |
b58b6ee1 DJ |
4734 | ac_test_CFLAGS=${CFLAGS+set} |
4735 | ac_save_CFLAGS=$CFLAGS | |
efd58f08 RW |
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4737 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
6d3ddf51 | 4738 | if ${ac_cv_prog_cc_g+:} false; then : |
efd58f08 RW |
4739 | $as_echo_n "(cached) " >&6 |
4740 | else | |
4741 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4742 | ac_c_werror_flag=yes | |
4743 | ac_cv_prog_cc_g=no | |
4744 | CFLAGS="-g" | |
4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b58b6ee1 DJ |
4746 | /* end confdefs.h. */ |
4747 | ||
4748 | int | |
4749 | main () | |
4750 | { | |
4751 | ||
4752 | ; | |
4753 | return 0; | |
4754 | } | |
4755 | _ACEOF | |
efd58f08 | 4756 | if ac_fn_c_try_compile "$LINENO"; then : |
cfc26d93 NN |
4757 | ac_cv_prog_cc_g=yes |
4758 | else | |
efd58f08 RW |
4759 | CFLAGS="" |
4760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4761 | /* end confdefs.h. */ | |
4762 | ||
4763 | int | |
4764 | main () | |
4765 | { | |
4766 | ||
4767 | ; | |
4768 | return 0; | |
4769 | } | |
4770 | _ACEOF | |
4771 | if ac_fn_c_try_compile "$LINENO"; then : | |
4772 | ||
4773 | else | |
4774 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4775 | CFLAGS="-g" | |
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4777 | /* end confdefs.h. */ | |
f69e2532 | 4778 | |
efd58f08 RW |
4779 | int |
4780 | main () | |
4781 | { | |
4782 | ||
4783 | ; | |
4784 | return 0; | |
4785 | } | |
4786 | _ACEOF | |
4787 | if ac_fn_c_try_compile "$LINENO"; then : | |
4788 | ac_cv_prog_cc_g=yes | |
4789 | fi | |
4790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
76402c80 | 4791 | fi |
efd58f08 | 4792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b58b6ee1 | 4793 | fi |
efd58f08 RW |
4794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4795 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4796 | fi | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4798 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
cfc26d93 | 4799 | if test "$ac_test_CFLAGS" = set; then |
b58b6ee1 | 4800 | CFLAGS=$ac_save_CFLAGS |
cfc26d93 NN |
4801 | elif test $ac_cv_prog_cc_g = yes; then |
4802 | if test "$GCC" = yes; then | |
4803 | CFLAGS="-g -O2" | |
4804 | else | |
4805 | CFLAGS="-g" | |
4806 | fi | |
4807 | else | |
4808 | if test "$GCC" = yes; then | |
4809 | CFLAGS="-O2" | |
4810 | else | |
4811 | CFLAGS= | |
4812 | fi | |
4813 | fi | |
efd58f08 RW |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4815 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
6d3ddf51 | 4816 | if ${ac_cv_prog_cc_c89+:} false; then : |
efd58f08 | 4817 | $as_echo_n "(cached) " >&6 |
b58b6ee1 | 4818 | else |
efd58f08 | 4819 | ac_cv_prog_cc_c89=no |
b58b6ee1 | 4820 | ac_save_CC=$CC |
efd58f08 | 4821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 DJ |
4822 | /* end confdefs.h. */ |
4823 | #include <stdarg.h> | |
4824 | #include <stdio.h> | |
6d3ddf51 | 4825 | struct stat; |
b58b6ee1 DJ |
4826 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4827 | struct buf { int x; }; | |
4828 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4829 | static char *e (p, i) | |
4830 | char **p; | |
4831 | int i; | |
4832 | { | |
4833 | return p[i]; | |
4834 | } | |
4835 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4836 | { | |
4837 | char *s; | |
4838 | va_list v; | |
4839 | va_start (v,p); | |
4840 | s = g (p, va_arg (v,int)); | |
4841 | va_end (v); | |
4842 | return s; | |
4843 | } | |
4844 | ||
4845 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4846 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4847 | These don't provoke an error unfortunately, instead are silently treated | |
efd58f08 | 4848 | as 'x'. The following induces an error, until -std is added to get |
b58b6ee1 DJ |
4849 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4850 | array size at least. It's necessary to write '\x00'==0 to get something | |
efd58f08 | 4851 | that's true only with -std. */ |
b58b6ee1 DJ |
4852 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4853 | ||
efd58f08 RW |
4854 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4855 | inside strings and character constants. */ | |
4856 | #define FOO(x) 'x' | |
4857 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4858 | ||
b58b6ee1 DJ |
4859 | int test (int i, double x); |
4860 | struct s1 {int (*f) (int a);}; | |
4861 | struct s2 {int (*f) (double a);}; | |
4862 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4863 | int argc; | |
4864 | char **argv; | |
4865 | int | |
4866 | main () | |
4867 | { | |
4868 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4869 | ; | |
4870 | return 0; | |
4871 | } | |
4872 | _ACEOF | |
efd58f08 RW |
4873 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4874 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b58b6ee1 DJ |
4875 | do |
4876 | CC="$ac_save_CC $ac_arg" | |
efd58f08 RW |
4877 | if ac_fn_c_try_compile "$LINENO"; then : |
4878 | ac_cv_prog_cc_c89=$ac_arg | |
b58b6ee1 | 4879 | fi |
efd58f08 RW |
4880 | rm -f core conftest.err conftest.$ac_objext |
4881 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b58b6ee1 | 4882 | done |
efd58f08 | 4883 | rm -f conftest.$ac_ext |
b58b6ee1 DJ |
4884 | CC=$ac_save_CC |
4885 | ||
4886 | fi | |
efd58f08 RW |
4887 | # AC_CACHE_VAL |
4888 | case "x$ac_cv_prog_cc_c89" in | |
4889 | x) | |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4891 | $as_echo "none needed" >&6; } ;; | |
4892 | xno) | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4894 | $as_echo "unsupported" >&6; } ;; | |
b58b6ee1 | 4895 | *) |
efd58f08 RW |
4896 | CC="$CC $ac_cv_prog_cc_c89" |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4898 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b58b6ee1 | 4899 | esac |
efd58f08 | 4900 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b58b6ee1 | 4901 | |
b58b6ee1 DJ |
4902 | fi |
4903 | ||
b58b6ee1 DJ |
4904 | ac_ext=c |
4905 | ac_cpp='$CPP $CPPFLAGS' | |
4906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cfc26d93 | 4909 | |
efd58f08 | 4910 | ac_ext=cpp |
b8c26111 PB |
4911 | ac_cpp='$CXXCPP $CPPFLAGS' |
4912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
efd58f08 RW |
4915 | if test -z "$CXX"; then |
4916 | if test -n "$CCC"; then | |
4917 | CXX=$CCC | |
4918 | else | |
4919 | if test -n "$ac_tool_prefix"; then | |
4920 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
b8c26111 PB |
4921 | do |
4922 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4923 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
efd58f08 RW |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4925 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4926 | if ${ac_cv_prog_CXX+:} false; then : |
efd58f08 | 4927 | $as_echo_n "(cached) " >&6 |
b8c26111 PB |
4928 | else |
4929 | if test -n "$CXX"; then | |
4930 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4931 | else | |
4932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4933 | for as_dir in $PATH | |
4934 | do | |
4935 | IFS=$as_save_IFS | |
4936 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4937 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b8c26111 | 4939 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
efd58f08 | 4940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b8c26111 PB |
4941 | break 2 |
4942 | fi | |
4943 | done | |
efd58f08 RW |
4944 | done |
4945 | IFS=$as_save_IFS | |
31839eae | 4946 | |
b8c26111 PB |
4947 | fi |
4948 | fi | |
4949 | CXX=$ac_cv_prog_CXX | |
4950 | if test -n "$CXX"; then | |
efd58f08 RW |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4952 | $as_echo "$CXX" >&6; } | |
b8c26111 | 4953 | else |
efd58f08 RW |
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4955 | $as_echo "no" >&6; } | |
b8c26111 PB |
4956 | fi |
4957 | ||
efd58f08 | 4958 | |
b8c26111 PB |
4959 | test -n "$CXX" && break |
4960 | done | |
4961 | fi | |
4962 | if test -z "$CXX"; then | |
4963 | ac_ct_CXX=$CXX | |
efd58f08 | 4964 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
b8c26111 PB |
4965 | do |
4966 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4967 | set dummy $ac_prog; ac_word=$2 | |
efd58f08 RW |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4969 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 4970 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
efd58f08 | 4971 | $as_echo_n "(cached) " >&6 |
b8c26111 PB |
4972 | else |
4973 | if test -n "$ac_ct_CXX"; then | |
4974 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4975 | else | |
4976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4977 | for as_dir in $PATH | |
4978 | do | |
4979 | IFS=$as_save_IFS | |
4980 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 4981 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 4982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b8c26111 | 4983 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
efd58f08 | 4984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b8c26111 | 4985 | break 2 |
31839eae | 4986 | fi |
b8c26111 | 4987 | done |
efd58f08 RW |
4988 | done |
4989 | IFS=$as_save_IFS | |
31839eae | 4990 | |
b8c26111 PB |
4991 | fi |
4992 | fi | |
4993 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4994 | if test -n "$ac_ct_CXX"; then | |
efd58f08 RW |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4996 | $as_echo "$ac_ct_CXX" >&6; } | |
b8c26111 | 4997 | else |
efd58f08 RW |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4999 | $as_echo "no" >&6; } | |
b8c26111 PB |
5000 | fi |
5001 | ||
efd58f08 | 5002 | |
b8c26111 PB |
5003 | test -n "$ac_ct_CXX" && break |
5004 | done | |
b8c26111 | 5005 | |
efd58f08 RW |
5006 | if test "x$ac_ct_CXX" = x; then |
5007 | CXX="g++" | |
5008 | else | |
5009 | case $cross_compiling:$ac_tool_warned in | |
5010 | yes:) | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5012 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5013 | ac_tool_warned=yes ;; | |
5014 | esac | |
5015 | CXX=$ac_ct_CXX | |
5016 | fi | |
b8c26111 PB |
5017 | fi |
5018 | ||
efd58f08 RW |
5019 | fi |
5020 | fi | |
b8c26111 | 5021 | # Provide some information about the compiler. |
efd58f08 RW |
5022 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5023 | set X $ac_compile | |
5024 | ac_compiler=$2 | |
5025 | for ac_option in --version -v -V -qversion; do | |
5026 | { { ac_try="$ac_compiler $ac_option >&5" | |
5027 | case "(($ac_try" in | |
5028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5029 | *) ac_try_echo=$ac_try;; | |
5030 | esac | |
5031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5032 | $as_echo "$ac_try_echo"; } >&5 | |
5033 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b8c26111 | 5034 | ac_status=$? |
efd58f08 RW |
5035 | if test -s conftest.err; then |
5036 | sed '10a\ | |
5037 | ... rest of stderr output deleted ... | |
5038 | 10q' conftest.err >conftest.er1 | |
5039 | cat conftest.er1 >&5 | |
efd58f08 | 5040 | fi |
6d3ddf51 | 5041 | rm -f conftest.er1 conftest.err |
efd58f08 RW |
5042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5043 | test $ac_status = 0; } | |
5044 | done | |
b8c26111 | 5045 | |
efd58f08 RW |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5047 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
6d3ddf51 | 5048 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
efd58f08 | 5049 | $as_echo_n "(cached) " >&6 |
b8c26111 | 5050 | else |
efd58f08 | 5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b8c26111 PB |
5052 | /* end confdefs.h. */ |
5053 | ||
5054 | int | |
5055 | main () | |
5056 | { | |
5057 | #ifndef __GNUC__ | |
5058 | choke me | |
5059 | #endif | |
5060 | ||
5061 | ; | |
5062 | return 0; | |
5063 | } | |
5064 | _ACEOF | |
efd58f08 | 5065 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 PB |
5066 | ac_compiler_gnu=yes |
5067 | else | |
efd58f08 | 5068 | ac_compiler_gnu=no |
b8c26111 | 5069 | fi |
efd58f08 | 5070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b8c26111 PB |
5071 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5072 | ||
5073 | fi | |
efd58f08 RW |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5075 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5076 | if test $ac_compiler_gnu = yes; then | |
5077 | GXX=yes | |
5078 | else | |
5079 | GXX= | |
5080 | fi | |
b8c26111 PB |
5081 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5082 | ac_save_CXXFLAGS=$CXXFLAGS | |
efd58f08 RW |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5084 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
6d3ddf51 | 5085 | if ${ac_cv_prog_cxx_g+:} false; then : |
efd58f08 RW |
5086 | $as_echo_n "(cached) " >&6 |
5087 | else | |
5088 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5089 | ac_cxx_werror_flag=yes | |
5090 | ac_cv_prog_cxx_g=no | |
5091 | CXXFLAGS="-g" | |
5092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 PB |
5093 | /* end confdefs.h. */ |
5094 | ||
5095 | int | |
5096 | main () | |
5097 | { | |
5098 | ||
5099 | ; | |
5100 | return 0; | |
5101 | } | |
5102 | _ACEOF | |
efd58f08 | 5103 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 PB |
5104 | ac_cv_prog_cxx_g=yes |
5105 | else | |
efd58f08 RW |
5106 | CXXFLAGS="" |
5107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 | 5108 | /* end confdefs.h. */ |
efd58f08 | 5109 | |
b8c26111 PB |
5110 | int |
5111 | main () | |
5112 | { | |
efd58f08 | 5113 | |
b8c26111 PB |
5114 | ; |
5115 | return 0; | |
5116 | } | |
5117 | _ACEOF | |
efd58f08 | 5118 | if ac_fn_cxx_try_compile "$LINENO"; then : |
b8c26111 | 5119 | |
efd58f08 RW |
5120 | else |
5121 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5122 | CXXFLAGS="-g" | |
5123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b8c26111 | 5124 | /* end confdefs.h. */ |
efd58f08 | 5125 | |
b8c26111 PB |
5126 | int |
5127 | main () | |
5128 | { | |
efd58f08 | 5129 | |
b8c26111 PB |
5130 | ; |
5131 | return 0; | |
5132 | } | |
5133 | _ACEOF | |
efd58f08 RW |
5134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5135 | ac_cv_prog_cxx_g=yes | |
b8c26111 | 5136 | fi |
efd58f08 RW |
5137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5138 | fi | |
5139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5140 | fi | |
5141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5142 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5143 | fi | |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5145 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5146 | if test "$ac_test_CXXFLAGS" = set; then | |
5147 | CXXFLAGS=$ac_save_CXXFLAGS | |
5148 | elif test $ac_cv_prog_cxx_g = yes; then | |
5149 | if test "$GXX" = yes; then | |
5150 | CXXFLAGS="-g -O2" | |
5151 | else | |
5152 | CXXFLAGS="-g" | |
5153 | fi | |
5154 | else | |
5155 | if test "$GXX" = yes; then | |
5156 | CXXFLAGS="-O2" | |
5157 | else | |
5158 | CXXFLAGS= | |
5159 | fi | |
b8c26111 | 5160 | fi |
b8c26111 PB |
5161 | ac_ext=c |
5162 | ac_cpp='$CPP $CPPFLAGS' | |
5163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5166 | ||
5167 | ||
5168 | # We must set the default linker to the linker used by gcc for the correct | |
5169 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5170 | # set the LD default to the ld used by gcc. | |
5171 | if test -z "$LD"; then | |
5172 | if test "$GCC" = yes; then | |
5173 | case $build in | |
5174 | *-*-mingw*) | |
5175 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5176 | *) | |
5177 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5178 | esac | |
5179 | case $gcc_prog_ld in | |
5180 | # Accept absolute paths. | |
5181 | [\\/]* | [A-Za-z]:[\\/]*) | |
5182 | LD="$gcc_prog_ld" ;; | |
5183 | esac | |
5184 | fi | |
31839eae PB |
5185 | fi |
5186 | ||
e8853092 EB |
5187 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5188 | have_static_libs=no | |
5189 | if test "$GCC" = yes; then | |
5190 | saved_LDFLAGS="$LDFLAGS" | |
5191 | ||
5192 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5194 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5195 | ac_ext=cpp | |
5196 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5197 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5198 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5199 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5200 | ||
5201 | ||
5202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5203 | /* end confdefs.h. */ | |
d25fac71 EB |
5204 | |
5205 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5206 | #error -static-libstdc++ not implemented | |
5207 | #endif | |
e8853092 EB |
5208 | int main() {} |
5209 | _ACEOF | |
5210 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5212 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5213 | else | |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5215 | $as_echo "no" >&6; } | |
5216 | fi | |
5217 | rm -f core conftest.err conftest.$ac_objext \ | |
5218 | conftest$ac_exeext conftest.$ac_ext | |
5219 | ac_ext=c | |
5220 | ac_cpp='$CPP $CPPFLAGS' | |
5221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5224 | ||
5225 | ||
5226 | LDFLAGS="$saved_LDFLAGS" | |
5227 | fi | |
5228 | ||
31839eae PB |
5229 | |
5230 | ||
5231 | ||
b58b6ee1 | 5232 | if test -n "$ac_tool_prefix"; then |
31839eae PB |
5233 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5234 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
efd58f08 RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5236 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 5237 | if ${ac_cv_prog_GNATBIND+:} false; then : |
efd58f08 | 5238 | $as_echo_n "(cached) " >&6 |
cfc26d93 | 5239 | else |
31839eae PB |
5240 | if test -n "$GNATBIND"; then |
5241 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
cfc26d93 | 5242 | else |
b58b6ee1 DJ |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5244 | for as_dir in $PATH | |
5245 | do | |
5246 | IFS=$as_save_IFS | |
5247 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 5248 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 5249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
31839eae | 5250 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
efd58f08 | 5251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
5252 | break 2 |
5253 | fi | |
5254 | done | |
efd58f08 RW |
5255 | done |
5256 | IFS=$as_save_IFS | |
b58b6ee1 | 5257 | |
cfc26d93 NN |
5258 | fi |
5259 | fi | |
31839eae PB |
5260 | GNATBIND=$ac_cv_prog_GNATBIND |
5261 | if test -n "$GNATBIND"; then | |
efd58f08 RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5263 | $as_echo "$GNATBIND" >&6; } | |
cfc26d93 | 5264 | else |
efd58f08 RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5266 | $as_echo "no" >&6; } | |
cfc26d93 NN |
5267 | fi |
5268 | ||
efd58f08 | 5269 | |
b58b6ee1 | 5270 | fi |
31839eae PB |
5271 | if test -z "$ac_cv_prog_GNATBIND"; then |
5272 | ac_ct_GNATBIND=$GNATBIND | |
5273 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5274 | set dummy gnatbind; ac_word=$2 | |
efd58f08 RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5276 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 5277 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
efd58f08 | 5278 | $as_echo_n "(cached) " >&6 |
cfc26d93 | 5279 | else |
31839eae PB |
5280 | if test -n "$ac_ct_GNATBIND"; then |
5281 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
cfc26d93 | 5282 | else |
b58b6ee1 DJ |
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5284 | for as_dir in $PATH | |
5285 | do | |
5286 | IFS=$as_save_IFS | |
5287 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 5288 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 5289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
31839eae | 5290 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
efd58f08 | 5291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
5292 | break 2 |
5293 | fi | |
5294 | done | |
efd58f08 RW |
5295 | done |
5296 | IFS=$as_save_IFS | |
b58b6ee1 | 5297 | |
cfc26d93 NN |
5298 | fi |
5299 | fi | |
31839eae PB |
5300 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5301 | if test -n "$ac_ct_GNATBIND"; then | |
efd58f08 RW |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5303 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
cfc26d93 | 5304 | else |
efd58f08 RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5306 | $as_echo "no" >&6; } | |
cfc26d93 NN |
5307 | fi |
5308 | ||
efd58f08 RW |
5309 | if test "x$ac_ct_GNATBIND" = x; then |
5310 | GNATBIND="no" | |
5311 | else | |
5312 | case $cross_compiling:$ac_tool_warned in | |
5313 | yes:) | |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5316 | ac_tool_warned=yes ;; | |
5317 | esac | |
5318 | GNATBIND=$ac_ct_GNATBIND | |
5319 | fi | |
893220e0 | 5320 | else |
31839eae | 5321 | GNATBIND="$ac_cv_prog_GNATBIND" |
cfc26d93 NN |
5322 | fi |
5323 | ||
60800fb2 | 5324 | if test -n "$ac_tool_prefix"; then |
31839eae PB |
5325 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5326 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
efd58f08 RW |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5328 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 5329 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
efd58f08 | 5330 | $as_echo_n "(cached) " >&6 |
60800fb2 | 5331 | else |
31839eae PB |
5332 | if test -n "$GNATMAKE"; then |
5333 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
60800fb2 PB |
5334 | else |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 5340 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 5341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
31839eae | 5342 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
efd58f08 | 5343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
60800fb2 PB |
5344 | break 2 |
5345 | fi | |
5346 | done | |
efd58f08 RW |
5347 | done |
5348 | IFS=$as_save_IFS | |
60800fb2 PB |
5349 | |
5350 | fi | |
5351 | fi | |
31839eae PB |
5352 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5353 | if test -n "$GNATMAKE"; then | |
efd58f08 RW |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5355 | $as_echo "$GNATMAKE" >&6; } | |
60800fb2 | 5356 | else |
efd58f08 RW |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5358 | $as_echo "no" >&6; } | |
60800fb2 PB |
5359 | fi |
5360 | ||
efd58f08 | 5361 | |
60800fb2 | 5362 | fi |
31839eae PB |
5363 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5364 | ac_ct_GNATMAKE=$GNATMAKE | |
5365 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5366 | set dummy gnatmake; ac_word=$2 | |
efd58f08 RW |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5368 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 5369 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
efd58f08 | 5370 | $as_echo_n "(cached) " >&6 |
60800fb2 | 5371 | else |
31839eae PB |
5372 | if test -n "$ac_ct_GNATMAKE"; then |
5373 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
60800fb2 PB |
5374 | else |
5375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5376 | for as_dir in $PATH | |
5377 | do | |
5378 | IFS=$as_save_IFS | |
5379 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 5380 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 5381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
31839eae | 5382 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
efd58f08 | 5383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
60800fb2 PB |
5384 | break 2 |
5385 | fi | |
5386 | done | |
efd58f08 RW |
5387 | done |
5388 | IFS=$as_save_IFS | |
60800fb2 | 5389 | |
60800fb2 PB |
5390 | fi |
5391 | fi | |
31839eae PB |
5392 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5393 | if test -n "$ac_ct_GNATMAKE"; then | |
efd58f08 RW |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5395 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
60800fb2 | 5396 | else |
efd58f08 RW |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5398 | $as_echo "no" >&6; } | |
60800fb2 PB |
5399 | fi |
5400 | ||
efd58f08 RW |
5401 | if test "x$ac_ct_GNATMAKE" = x; then |
5402 | GNATMAKE="no" | |
5403 | else | |
5404 | case $cross_compiling:$ac_tool_warned in | |
5405 | yes:) | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5407 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5408 | ac_tool_warned=yes ;; | |
5409 | esac | |
5410 | GNATMAKE=$ac_ct_GNATMAKE | |
5411 | fi | |
60800fb2 | 5412 | else |
31839eae | 5413 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
60800fb2 PB |
5414 | fi |
5415 | ||
efd58f08 RW |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5417 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
6d3ddf51 | 5418 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
efd58f08 | 5419 | $as_echo_n "(cached) " >&6 |
cfc26d93 NN |
5420 | else |
5421 | cat >conftest.adb <<EOF | |
5422 | procedure conftest is begin null; end conftest; | |
5423 | EOF | |
5424 | acx_cv_cc_gcc_supports_ada=no | |
5425 | # There is a bug in old released versions of GCC which causes the | |
5426 | # driver to exit successfully when the appropriate language module | |
5427 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5428 | # Therefore we must check for the error message as well as an | |
5429 | # unsuccessful exit. | |
866c244e DD |
5430 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5431 | # given a .adb file, but produce no object file. So we must check | |
5432 | # if an object file was really produced to guard against this. | |
cfc26d93 | 5433 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
866c244e | 5434 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
cfc26d93 | 5435 | acx_cv_cc_gcc_supports_ada=yes |
cfc26d93 NN |
5436 | fi |
5437 | rm -f conftest.* | |
5438 | fi | |
efd58f08 RW |
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5440 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
cfc26d93 | 5441 | |
1a08e38b | 5442 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
cfc26d93 NN |
5443 | have_gnat=yes |
5444 | else | |
5445 | have_gnat=no | |
5446 | fi | |
5447 | ||
efd58f08 RW |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5449 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
6d3ddf51 | 5450 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
efd58f08 | 5451 | $as_echo_n "(cached) " >&6 |
866c244e DD |
5452 | else |
5453 | echo abfoo >t1 | |
5454 | echo cdfoo >t2 | |
5455 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
cb2333e8 DD |
5456 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5457 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5458 | : | |
5459 | else | |
5460 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5461 | fi | |
5462 | fi | |
866c244e DD |
5463 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5464 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
cb2333e8 | 5465 | : |
866c244e DD |
5466 | else |
5467 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5468 | fi | |
5469 | fi | |
5470 | rm t1 t2 | |
5471 | ||
5472 | fi | |
efd58f08 RW |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5474 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
866c244e DD |
5475 | do_compare="$gcc_cv_prog_cmp_skip" |
5476 | ||
5477 | ||
cfc26d93 | 5478 | |
c9161585 ILT |
5479 | # Check whether --enable-bootstrap was given. |
5480 | if test "${enable_bootstrap+set}" = set; then : | |
5481 | enableval=$enable_bootstrap; | |
5482 | else | |
5483 | enable_bootstrap=default | |
5484 | fi | |
5485 | ||
5486 | ||
5487 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5488 | if test -r $srcdir/gcc/configure; then | |
5489 | have_compiler=yes | |
5490 | else | |
5491 | have_compiler=no | |
5492 | fi | |
5493 | ||
5494 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5495 | *:*:*:no) ;; | |
5496 | ||
5497 | # Default behavior. Enable bootstrap if we have a compiler | |
5498 | # and we are in a native configuration. | |
5499 | yes:$build:$build:default) | |
5500 | enable_bootstrap=yes ;; | |
5501 | ||
5502 | *:*:*:default) | |
5503 | enable_bootstrap=no ;; | |
5504 | ||
5505 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5506 | yes:$build:$build:yes) | |
5507 | ;; | |
5508 | ||
5509 | # Other configurations, but we have a compiler. Assume the user knows | |
5510 | # what he's doing. | |
5511 | yes:*:*:yes) | |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5513 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5514 | ;; | |
5515 | ||
5516 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5517 | no:*:*:yes) | |
6d3ddf51 | 5518 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
c9161585 ILT |
5519 | |
5520 | # Fail if wrong command line | |
5521 | *) | |
6d3ddf51 | 5522 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
c9161585 ILT |
5523 | ;; |
5524 | esac | |
5525 | ||
fe508576 CV |
5526 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5527 | # C++98 compiler can still start the bootstrap. | |
5528 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5529 | CXX="$CXX -std=gnu++98" | |
5530 | fi | |
5531 | ||
74fabfaf KG |
5532 | # Used for setting $lt_cv_objdir |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5534 | $as_echo_n "checking for objdir... " >&6; } | |
6d3ddf51 | 5535 | if ${lt_cv_objdir+:} false; then : |
74fabfaf KG |
5536 | $as_echo_n "(cached) " >&6 |
5537 | else | |
5538 | rm -f .libs 2>/dev/null | |
5539 | mkdir .libs 2>/dev/null | |
5540 | if test -d .libs; then | |
5541 | lt_cv_objdir=.libs | |
5542 | else | |
5543 | # MS-DOS does not allow filenames that begin with a dot. | |
5544 | lt_cv_objdir=_libs | |
5545 | fi | |
5546 | rmdir .libs 2>/dev/null | |
5547 | fi | |
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5549 | $as_echo "$lt_cv_objdir" >&6; } | |
5550 | objdir=$lt_cv_objdir | |
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | cat >>confdefs.h <<_ACEOF | |
5557 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5558 | _ACEOF | |
5559 | ||
5560 | ||
5561 | ||
121f0eb2 | 5562 | # Check for GMP, MPFR and MPC |
1d30ae12 | 5563 | gmplibs="-lmpc -lmpfr -lgmp" |
cb2333e8 | 5564 | gmpinc= |
42f55f77 | 5565 | have_gmp=no |
121f0eb2 RW |
5566 | |
5567 | # Specify a location for mpc | |
5568 | # check for this first so it ends up on the link line before mpfr. | |
5569 | ||
efd58f08 RW |
5570 | # Check whether --with-mpc was given. |
5571 | if test "${with_mpc+set}" = set; then : | |
5572 | withval=$with_mpc; | |
5573 | fi | |
121f0eb2 | 5574 | |
121f0eb2 | 5575 | |
d5b7129a | 5576 | # Check whether --with-mpc-include was given. |
efd58f08 RW |
5577 | if test "${with_mpc_include+set}" = set; then : |
5578 | withval=$with_mpc_include; | |
5579 | fi | |
121f0eb2 | 5580 | |
121f0eb2 | 5581 | |
d5b7129a | 5582 | # Check whether --with-mpc-lib was given. |
efd58f08 RW |
5583 | if test "${with_mpc_lib+set}" = set; then : |
5584 | withval=$with_mpc_lib; | |
5585 | fi | |
121f0eb2 | 5586 | |
121f0eb2 RW |
5587 | |
5588 | if test "x$with_mpc" != x; then | |
1d30ae12 KG |
5589 | gmplibs="-L$with_mpc/lib $gmplibs" |
5590 | gmpinc="-I$with_mpc/include $gmpinc" | |
121f0eb2 RW |
5591 | fi |
5592 | if test "x$with_mpc_include" != x; then | |
1d30ae12 | 5593 | gmpinc="-I$with_mpc_include $gmpinc" |
121f0eb2 RW |
5594 | fi |
5595 | if test "x$with_mpc_lib" != x; then | |
1d30ae12 | 5596 | gmplibs="-L$with_mpc_lib $gmplibs" |
121f0eb2 RW |
5597 | fi |
5598 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
74fabfaf | 5599 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
1d30ae12 | 5600 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
121f0eb2 RW |
5601 | # Do not test the mpc version. Assume that it is sufficient, since |
5602 | # it is in the source tree, and the library has not been built yet | |
5603 | # but it would be included on the link line in the version check below | |
5604 | # hence making the test fail. | |
1d30ae12 | 5605 | have_gmp=yes |
121f0eb2 | 5606 | fi |
42f55f77 | 5607 | |
cbd6bc14 DD |
5608 | # Specify a location for mpfr |
5609 | # check for this first so it ends up on the link line before gmp. | |
b58b6ee1 | 5610 | |
efd58f08 RW |
5611 | # Check whether --with-mpfr-dir was given. |
5612 | if test "${with_mpfr_dir+set}" = set; then : | |
6d3ddf51 | 5613 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
efd58f08 RW |
5614 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5615 | fi | |
5616 | ||
cbd6bc14 DD |
5617 | |
5618 | ||
efd58f08 RW |
5619 | # Check whether --with-mpfr was given. |
5620 | if test "${with_mpfr+set}" = set; then : | |
5621 | withval=$with_mpfr; | |
5622 | fi | |
b58b6ee1 | 5623 | |
cbd6bc14 | 5624 | |
d5b7129a | 5625 | # Check whether --with-mpfr-include was given. |
efd58f08 RW |
5626 | if test "${with_mpfr_include+set}" = set; then : |
5627 | withval=$with_mpfr_include; | |
5628 | fi | |
b58b6ee1 | 5629 | |
14a1406e | 5630 | |
d5b7129a | 5631 | # Check whether --with-mpfr-lib was given. |
efd58f08 RW |
5632 | if test "${with_mpfr_lib+set}" = set; then : |
5633 | withval=$with_mpfr_lib; | |
5634 | fi | |
14a1406e | 5635 | |
cbd6bc14 DD |
5636 | |
5637 | if test "x$with_mpfr" != x; then | |
5638 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
1d30ae12 | 5639 | gmpinc="-I$with_mpfr/include $gmpinc" |
cbd6bc14 | 5640 | fi |
14a1406e | 5641 | if test "x$with_mpfr_include" != x; then |
1d30ae12 | 5642 | gmpinc="-I$with_mpfr_include $gmpinc" |
14a1406e PB |
5643 | fi |
5644 | if test "x$with_mpfr_lib" != x; then | |
5645 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5646 | fi | |
42f55f77 | 5647 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5632bcf AK |
5648 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5649 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5650 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
42f55f77 PB |
5651 | # Do not test the mpfr version. Assume that it is sufficient, since |
5652 | # it is in the source tree, and the library has not been built yet | |
5653 | # but it would be included on the link line in the version check below | |
5654 | # hence making the test fail. | |
5655 | have_gmp=yes | |
5656 | fi | |
cbd6bc14 | 5657 | |
cb2333e8 | 5658 | # Specify a location for gmp |
b58b6ee1 | 5659 | |
efd58f08 RW |
5660 | # Check whether --with-gmp-dir was given. |
5661 | if test "${with_gmp_dir+set}" = set; then : | |
6d3ddf51 | 5662 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
efd58f08 RW |
5663 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5664 | fi | |
5665 | ||
cb2333e8 DD |
5666 | |
5667 | ||
efd58f08 RW |
5668 | # Check whether --with-gmp was given. |
5669 | if test "${with_gmp+set}" = set; then : | |
5670 | withval=$with_gmp; | |
5671 | fi | |
b58b6ee1 | 5672 | |
cb2333e8 | 5673 | |
d5b7129a | 5674 | # Check whether --with-gmp-include was given. |
efd58f08 RW |
5675 | if test "${with_gmp_include+set}" = set; then : |
5676 | withval=$with_gmp_include; | |
5677 | fi | |
b58b6ee1 | 5678 | |
14a1406e | 5679 | |
d5b7129a | 5680 | # Check whether --with-gmp-lib was given. |
efd58f08 RW |
5681 | if test "${with_gmp_lib+set}" = set; then : |
5682 | withval=$with_gmp_lib; | |
5683 | fi | |
14a1406e PB |
5684 | |
5685 | ||
cb2333e8 | 5686 | |
cbd6bc14 DD |
5687 | if test "x$with_gmp" != x; then |
5688 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5689 | gmpinc="-I$with_gmp/include $gmpinc" | |
cb2333e8 | 5690 | fi |
14a1406e PB |
5691 | if test "x$with_gmp_include" != x; then |
5692 | gmpinc="-I$with_gmp_include $gmpinc" | |
5693 | fi | |
5694 | if test "x$with_gmp_lib" != x; then | |
5695 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5696 | fi | |
42f55f77 | 5697 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
74fabfaf | 5698 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
42f55f77 | 5699 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
65a20d8c | 5700 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
74fabfaf | 5701 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
a626f4ee | 5702 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
42f55f77 PB |
5703 | # Do not test the gmp version. Assume that it is sufficient, since |
5704 | # it is in the source tree, and the library has not been built yet | |
5705 | # but it would be included on the link line in the version check below | |
5706 | # hence making the test fail. | |
5707 | have_gmp=yes | |
5708 | fi | |
cb2333e8 | 5709 | |
bd74ff2b | 5710 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
42f55f77 PB |
5711 | have_gmp=yes |
5712 | saved_CFLAGS="$CFLAGS" | |
5713 | CFLAGS="$CFLAGS $gmpinc" | |
dded80b3 KG |
5714 | # Check for the recommended and required versions of GMP. |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5716 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
112afadf RW |
5717 | |
5718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dded80b3 KG |
5719 | /* end confdefs.h. */ |
5720 | #include "gmp.h" | |
5721 | int | |
5722 | main () | |
5723 | { | |
5724 | ||
5725 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5726 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
125bb3c9 | 5727 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
dded80b3 KG |
5728 | choke me |
5729 | #endif | |
5730 | ||
5731 | ; | |
5732 | return 0; | |
5733 | } | |
5734 | _ACEOF | |
5735 | if ac_fn_c_try_compile "$LINENO"; then : | |
112afadf | 5736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 | 5737 | /* end confdefs.h. */ |
dded80b3 | 5738 | #include <gmp.h> |
b58b6ee1 DJ |
5739 | int |
5740 | main () | |
5741 | { | |
cb2333e8 | 5742 | |
dded80b3 KG |
5743 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5744 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5745 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
42f55f77 PB |
5746 | choke me |
5747 | #endif | |
b58b6ee1 DJ |
5748 | |
5749 | ; | |
5750 | return 0; | |
5751 | } | |
5752 | _ACEOF | |
efd58f08 RW |
5753 | if ac_fn_c_try_compile "$LINENO"; then : |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5755 | $as_echo "yes" >&6; } | |
dded80b3 KG |
5756 | else |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5758 | $as_echo "buggy but acceptable" >&6; } | |
5759 | fi | |
5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b58b6ee1 | 5761 | else |
efd58f08 RW |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5763 | $as_echo "no" >&6; }; have_gmp=no | |
b58b6ee1 | 5764 | fi |
efd58f08 | 5765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cb2333e8 | 5766 | |
121f0eb2 | 5767 | # If we have GMP, check the MPFR version. |
42f55f77 | 5768 | if test x"$have_gmp" = xyes; then |
dded80b3 KG |
5769 | # Check for the recommended and required versions of MPFR. |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5771 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
efd58f08 | 5772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b58b6ee1 | 5773 | /* end confdefs.h. */ |
75ea5758 | 5774 | #include <gmp.h> |
42f55f77 | 5775 | #include <mpfr.h> |
b58b6ee1 DJ |
5776 | int |
5777 | main () | |
5778 | { | |
75ea5758 | 5779 | |
a626f4ee | 5780 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
42f55f77 PB |
5781 | choke me |
5782 | #endif | |
b58b6ee1 DJ |
5783 | |
5784 | ; | |
5785 | return 0; | |
5786 | } | |
5787 | _ACEOF | |
efd58f08 RW |
5788 | if ac_fn_c_try_compile "$LINENO"; then : |
5789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b58b6ee1 | 5790 | /* end confdefs.h. */ |
cb2333e8 | 5791 | #include <gmp.h> |
42f55f77 | 5792 | #include <mpfr.h> |
b58b6ee1 DJ |
5793 | int |
5794 | main () | |
5795 | { | |
a6a4e782 | 5796 | |
dded80b3 | 5797 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
42f55f77 PB |
5798 | choke me |
5799 | #endif | |
121f0eb2 RW |
5800 | |
5801 | ; | |
5802 | return 0; | |
5803 | } | |
5804 | _ACEOF | |
efd58f08 RW |
5805 | if ac_fn_c_try_compile "$LINENO"; then : |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5807 | $as_echo "yes" >&6; } | |
121f0eb2 | 5808 | else |
efd58f08 RW |
5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5810 | $as_echo "buggy but acceptable" >&6; } | |
121f0eb2 | 5811 | fi |
efd58f08 | 5812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 | 5813 | else |
efd58f08 RW |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5815 | $as_echo "no" >&6; }; have_gmp=no | |
121f0eb2 | 5816 | fi |
efd58f08 | 5817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 RW |
5818 | fi |
5819 | ||
5820 | # Check for the MPC header version. | |
1d30ae12 | 5821 | if test x"$have_gmp" = xyes ; then |
dded80b3 | 5822 | # Check for the recommended and required versions of MPC. |
efd58f08 RW |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5824 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
121f0eb2 RW |
5826 | /* end confdefs.h. */ |
5827 | #include <mpc.h> | |
5828 | int | |
5829 | main () | |
5830 | { | |
5831 | ||
dded80b3 KG |
5832 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5833 | choke me | |
5834 | #endif | |
5835 | ||
5836 | ; | |
5837 | return 0; | |
5838 | } | |
5839 | _ACEOF | |
5840 | if ac_fn_c_try_compile "$LINENO"; then : | |
5841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5842 | /* end confdefs.h. */ | |
5843 | #include <mpc.h> | |
5844 | int | |
5845 | main () | |
5846 | { | |
5847 | ||
5848 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
121f0eb2 RW |
5849 | choke me |
5850 | #endif | |
5851 | ||
5852 | ; | |
5853 | return 0; | |
5854 | } | |
5855 | _ACEOF | |
efd58f08 RW |
5856 | if ac_fn_c_try_compile "$LINENO"; then : |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1d30ae12 | 5858 | $as_echo "yes" >&6; } |
dded80b3 KG |
5859 | else |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5861 | $as_echo "buggy but acceptable" >&6; } | |
5862 | fi | |
5863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
121f0eb2 | 5864 | else |
efd58f08 | 5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1d30ae12 | 5866 | $as_echo "no" >&6; }; have_gmp=no |
121f0eb2 | 5867 | fi |
efd58f08 | 5868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
121f0eb2 RW |
5869 | fi |
5870 | ||
5871 | # Now check the MPFR library. | |
5872 | if test x"$have_gmp" = xyes; then | |
5873 | saved_LIBS="$LIBS" | |
5874 | LIBS="$LIBS $gmplibs" | |
1d30ae12 KG |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5876 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
efd58f08 | 5877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
121f0eb2 | 5878 | /* end confdefs.h. */ |
1d30ae12 | 5879 | #include <mpc.h> |
121f0eb2 RW |
5880 | int |
5881 | main () | |
5882 | { | |
5883 | ||
5884 | mpfr_t n; | |
5885 | mpfr_t x; | |
1d30ae12 | 5886 | mpc_t c; |
121f0eb2 RW |
5887 | int t; |
5888 | mpfr_init (n); | |
5889 | mpfr_init (x); | |
5890 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5891 | mpfr_erfc (n, x, GMP_RNDN); | |
5892 | mpfr_subnormalize (x, t, GMP_RNDN); | |
1d30ae12 KG |
5893 | mpfr_clear(n); |
5894 | mpfr_clear(x); | |
5895 | mpc_init2 (c, 53); | |
5896 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5897 | mpc_cosh (c, c, MPC_RNDNN); | |
5898 | mpc_pow (c, c, c, MPC_RNDNN); | |
5899 | mpc_acosh (c, c, MPC_RNDNN); | |
5900 | mpc_clear (c); | |
b58b6ee1 DJ |
5901 | |
5902 | ; | |
5903 | return 0; | |
5904 | } | |
5905 | _ACEOF | |
efd58f08 RW |
5906 | if ac_fn_c_try_link "$LINENO"; then : |
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5908 | $as_echo "yes" >&6; } | |
b58b6ee1 | 5909 | else |
efd58f08 RW |
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5911 | $as_echo "no" >&6; }; have_gmp=no | |
b58b6ee1 | 5912 | fi |
efd58f08 RW |
5913 | rm -f core conftest.err conftest.$ac_objext \ |
5914 | conftest$ac_exeext conftest.$ac_ext | |
121f0eb2 RW |
5915 | LIBS="$saved_LIBS" |
5916 | fi | |
5917 | ||
42f55f77 | 5918 | CFLAGS="$saved_CFLAGS" |
cb2333e8 | 5919 | |
dded80b3 KG |
5920 | # The library versions listed in the error message below should match |
5921 | # the HARD-minimums enforced above. | |
42f55f77 | 5922 | if test x$have_gmp != xyes; then |
6d3ddf51 | 5923 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
1d30ae12 KG |
5924 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5925 | their locations. Source code for these libraries can be found at | |
5926 | their respective hosting sites as well as at | |
5927 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5928 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5929 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5930 | make sure that you have installed both the libraries and the header | |
5931 | files. They may be located in separate packages." "$LINENO" 5 | |
42f55f77 | 5932 | fi |
a6a4e782 DD |
5933 | fi |
5934 | ||
121f0eb2 RW |
5935 | # Flags needed for both GMP, MPFR and/or MPC. |
5936 | ||
5937 | ||
5938 | ||
cb2333e8 DD |
5939 | |
5940 | ||
5941 | ||
a626f4ee | 5942 | |
e8853092 | 5943 | # Libraries to use for stage1 or when not bootstrapping. |
121f0eb2 | 5944 | |
e8853092 EB |
5945 | # Check whether --with-stage1-libs was given. |
5946 | if test "${with_stage1_libs+set}" = set; then : | |
5947 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5948 | stage1_libs= | |
121f0eb2 | 5949 | else |
e8853092 | 5950 | stage1_libs=$withval |
121f0eb2 RW |
5951 | fi |
5952 | else | |
fe508576 | 5953 | stage1_libs= |
efd58f08 RW |
5954 | fi |
5955 | ||
121f0eb2 RW |
5956 | |
5957 | ||
e8853092 | 5958 | # Linker flags to use for stage1 or when not bootstrapping. |
121f0eb2 | 5959 | |
e8853092 EB |
5960 | # Check whether --with-stage1-ldflags was given. |
5961 | if test "${with_stage1_ldflags+set}" = set; then : | |
5962 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5963 | stage1_ldflags= | |
121f0eb2 | 5964 | else |
e8853092 | 5965 | stage1_ldflags=$withval |
121f0eb2 RW |
5966 | fi |
5967 | else | |
e8853092 EB |
5968 | stage1_ldflags= |
5969 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5970 | # if supported. But if the user explicitly specified the libraries to use, | |
5971 | # trust that they are doing what they want. | |
5972 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5973 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5974 | fi | |
efd58f08 RW |
5975 | fi |
5976 | ||
121f0eb2 RW |
5977 | |
5978 | ||
fe508576 | 5979 | # Libraries to use for stage2 and later builds. |
121f0eb2 | 5980 | |
efd58f08 RW |
5981 | # Check whether --with-boot-libs was given. |
5982 | if test "${with_boot_libs+set}" = set; then : | |
5983 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
121f0eb2 RW |
5984 | poststage1_libs= |
5985 | else | |
5986 | poststage1_libs=$withval | |
5987 | fi | |
5988 | else | |
fe508576 | 5989 | poststage1_libs= |
efd58f08 RW |
5990 | fi |
5991 | ||
121f0eb2 RW |
5992 | |
5993 | ||
f107c370 NC |
5994 | # Linker flags to use for stage2 and later builds. |
5995 | ||
5996 | # Check whether --with-boot-ldflags was given. | |
5997 | if test "${with_boot_ldflags+set}" = set; then : | |
5998 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5999 | poststage1_ldflags= | |
6000 | else | |
6001 | poststage1_ldflags=$withval | |
6002 | fi | |
6003 | else | |
6004 | poststage1_ldflags= | |
f2588cb9 ILT |
6005 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
6006 | # statically. But if the user explicitly specified the libraries to | |
6007 | # use, trust that they are doing what they want. | |
6008 | if test "$poststage1_libs" = ""; then | |
f107c370 NC |
6009 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
6010 | fi | |
6011 | fi | |
6012 | ||
6013 | ||
6014 | ||
fe508576 CV |
6015 | # GCC GRAPHITE dependency isl. |
6016 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
311b6756 JM |
6017 | |
6018 | ||
a626f4ee L |
6019 | # Check whether --with-isl was given. |
6020 | if test "${with_isl+set}" = set; then : | |
6021 | withval=$with_isl; | |
efd58f08 | 6022 | fi |
311b6756 | 6023 | |
311b6756 | 6024 | |
fe508576 | 6025 | # Treat --without-isl as a request to disable |
125bb3c9 | 6026 | # GRAPHITE support and skip all following checks. |
fe508576 CV |
6027 | if test "x$with_isl" != "xno"; then |
6028 | # Check for isl | |
125bb3c9 L |
6029 | |
6030 | ||
a626f4ee L |
6031 | # Check whether --with-isl-include was given. |
6032 | if test "${with_isl_include+set}" = set; then : | |
6033 | withval=$with_isl_include; | |
efd58f08 RW |
6034 | fi |
6035 | ||
311b6756 | 6036 | |
a626f4ee L |
6037 | # Check whether --with-isl-lib was given. |
6038 | if test "${with_isl_lib+set}" = set; then : | |
6039 | withval=$with_isl_lib; | |
efd58f08 | 6040 | fi |
311b6756 | 6041 | |
311b6756 | 6042 | |
a626f4ee L |
6043 | # Check whether --enable-isl-version-check was given. |
6044 | if test "${enable_isl_version_check+set}" = set; then : | |
6045 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
6046 | else | |
6047 | ENABLE_ISL_CHECK=yes | |
2e4cdd55 SP |
6048 | fi |
6049 | ||
6050 | ||
a626f4ee L |
6051 | # Initialize isllibs and islinc. |
6052 | case $with_isl in | |
6053 | no) | |
6054 | isllibs= | |
6055 | islinc= | |
6056 | ;; | |
6057 | "" | yes) | |
6058 | ;; | |
6059 | *) | |
6060 | isllibs="-L$with_isl/lib" | |
6061 | islinc="-I$with_isl/include" | |
6062 | ;; | |
6063 | esac | |
6064 | if test "x${with_isl_include}" != x ; then | |
6065 | islinc="-I$with_isl_include" | |
6066 | fi | |
6067 | if test "x${with_isl_lib}" != x; then | |
6068 | isllibs="-L$with_isl_lib" | |
6069 | fi | |
6070 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6071 | && test -d ${srcdir}/isl; then | |
6072 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6073 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6074 | ENABLE_ISL_CHECK=no | |
fe508576 CV |
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6076 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
a626f4ee | 6077 | fi |
2e4cdd55 | 6078 | |
fe508576 CV |
6079 | isllibs="${isllibs} -lisl" |
6080 | ||
2e4cdd55 | 6081 | |
311b6756 | 6082 | |
0a7746bd JBG |
6083 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6084 | _isl_saved_CFLAGS=$CFLAGS | |
6085 | _isl_saved_LDFLAGS=$LDFLAGS | |
6086 | _isl_saved_LIBS=$LIBS | |
6087 | ||
6088 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
fe508576 CV |
6089 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6090 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
0a7746bd | 6091 | |
fe508576 CV |
6092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
6093 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
6094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0a7746bd | 6095 | /* end confdefs.h. */ |
fe508576 | 6096 | #include <isl/ctx.h> |
0a7746bd JBG |
6097 | int |
6098 | main () | |
6099 | { | |
fe508576 | 6100 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
0a7746bd JBG |
6101 | ; |
6102 | return 0; | |
6103 | } | |
6104 | _ACEOF | |
fe508576 | 6105 | if ac_fn_c_try_link "$LINENO"; then : |
0a7746bd JBG |
6106 | gcc_cv_isl=yes |
6107 | else | |
6108 | gcc_cv_isl=no | |
6109 | fi | |
fe508576 CV |
6110 | rm -f core conftest.err conftest.$ac_objext \ |
6111 | conftest$ac_exeext conftest.$ac_ext | |
0a7746bd | 6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
a626f4ee | 6113 | $as_echo "$gcc_cv_isl" >&6; } |
efd58f08 | 6114 | |
fe508576 CV |
6115 | if test "${gcc_cv_isl}" = no ; then |
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 | |
6117 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
6118 | fi | |
31fb5c64 | 6119 | |
fe508576 CV |
6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
6121 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31fb5c64 | 6123 | /* end confdefs.h. */ |
fe508576 | 6124 | #include <isl/schedule.h> |
31fb5c64 JBG |
6125 | int |
6126 | main () | |
6127 | { | |
fe508576 | 6128 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
31fb5c64 JBG |
6129 | ; |
6130 | return 0; | |
6131 | } | |
6132 | _ACEOF | |
fe508576 CV |
6133 | if ac_fn_c_try_link "$LINENO"; then : |
6134 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
31fb5c64 | 6135 | else |
fe508576 | 6136 | ac_has_isl_options_set_schedule_serialize_sccs=no |
31fb5c64 | 6137 | fi |
fe508576 CV |
6138 | rm -f core conftest.err conftest.$ac_objext \ |
6139 | conftest$ac_exeext conftest.$ac_ext | |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
6141 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
31fb5c64 | 6142 | |
fe508576 CV |
6143 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then |
6144 | islver="0.15" | |
6145 | ||
6146 | fi | |
31fb5c64 JBG |
6147 | |
6148 | CFLAGS=$_isl_saved_CFLAGS | |
6149 | LDFLAGS=$_isl_saved_LDFLAGS | |
6150 | LIBS=$_isl_saved_LIBS | |
6151 | fi | |
6152 | ||
6153 | ||
311b6756 | 6154 | |
311b6756 | 6155 | |
a626f4ee L |
6156 | |
6157 | ||
a626f4ee L |
6158 | if test "x${with_isl}" = xno; then |
6159 | graphite_requested=no | |
6160 | elif test "x${with_isl}" != x \ | |
6161 | || test "x${with_isl_include}" != x \ | |
6162 | || test "x${with_isl_lib}" != x ; then | |
6163 | graphite_requested=yes | |
6164 | else | |
6165 | graphite_requested=no | |
2e4cdd55 | 6166 | fi |
311b6756 | 6167 | |
311b6756 JM |
6168 | |
6169 | ||
a626f4ee L |
6170 | if test "${gcc_cv_isl}" = no ; then |
6171 | isllibs= | |
6172 | islinc= | |
6173 | fi | |
311b6756 | 6174 | |
a626f4ee L |
6175 | if test "${graphite_requested}" = yes \ |
6176 | && test "x${isllibs}" = x \ | |
6177 | && test "x${islinc}" = x ; then | |
311b6756 | 6178 | |
6d3ddf51 | 6179 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
a626f4ee | 6180 | fi |
d5b7129a | 6181 | |
311b6756 | 6182 | |
efd58f08 | 6183 | fi |
311b6756 | 6184 | |
fe508576 | 6185 | # If the isl check failed, disable builds of in-tree variant of isl |
125bb3c9 | 6186 | if test "x$with_isl" = xno || |
125bb3c9 | 6187 | test "x$gcc_cv_isl" = xno; then |
fe508576 | 6188 | noconfigdirs="$noconfigdirs isl" |
125bb3c9 | 6189 | islinc= |
a626f4ee L |
6190 | fi |
6191 | ||
125bb3c9 L |
6192 | |
6193 | ||
6194 | ||
bd45d6fa ILT |
6195 | # Check for LTO support. |
6196 | # Check whether --enable-lto was given. | |
6197 | if test "${enable_lto+set}" = set; then : | |
6198 | enableval=$enable_lto; enable_lto=$enableval | |
6199 | else | |
6200 | enable_lto=yes; default_enable_lto=yes | |
6201 | fi | |
6202 | ||
6203 | ||
f107c370 | 6204 | |
0b3906a8 DK |
6205 | |
6206 | ||
6207 | target_elf=no | |
6208 | case $target in | |
6209 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
7b6010cc | 6210 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
79bb0de3 | 6211 | alpha*-dec-osf* | hppa[12]*-*-hpux* | \ |
fe508576 | 6212 | nvptx-*-none) |
0b3906a8 DK |
6213 | target_elf=no |
6214 | ;; | |
6215 | *) | |
6216 | target_elf=yes | |
6217 | ;; | |
6218 | esac | |
6219 | ||
6220 | if test $target_elf = yes; then : | |
5e504c84 DK |
6221 | # ELF platforms build the lto-plugin always. |
6222 | build_lto_plugin=yes | |
0b3906a8 | 6223 | |
0b3906a8 DK |
6224 | else |
6225 | if test x"$default_enable_lto" = x"yes" ; then | |
65a20d8c | 6226 | case $target in |
fe508576 | 6227 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
5e504c84 | 6228 | # On other non-ELF platforms, LTO has yet to be validated. |
65a20d8c RW |
6229 | *) enable_lto=no ;; |
6230 | esac | |
0b3906a8 | 6231 | else |
65a20d8c RW |
6232 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6233 | # It would also be nice to check the binutils support, but we don't | |
0b3906a8 DK |
6234 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6235 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6236 | # -flto it won't be needed until after installation anyway. | |
6237 | case $target in | |
fe508576 | 6238 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
0b3906a8 | 6239 | *) if test x"$enable_lto" = x"yes"; then |
6d3ddf51 | 6240 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
0b3906a8 DK |
6241 | fi |
6242 | ;; | |
6243 | esac | |
6244 | fi | |
1a91b8c0 | 6245 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
5e504c84 | 6246 | # Build it unless LTO was explicitly disabled. |
1a91b8c0 | 6247 | case $target in |
5e504c84 | 6248 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1a91b8c0 DK |
6249 | *) ;; |
6250 | esac | |
5e504c84 | 6251 | |
0b3906a8 DK |
6252 | fi |
6253 | ||
bd45d6fa | 6254 | |
fe508576 CV |
6255 | # Check whether --enable-linker-plugin-configure-flags was given. |
6256 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6257 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6258 | else | |
6259 | extra_linker_plugin_configure_flags= | |
6260 | fi | |
6261 | ||
6262 | ||
6263 | # Check whether --enable-linker-plugin-flags was given. | |
6264 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6265 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6266 | else | |
6267 | extra_linker_plugin_flags= | |
6268 | fi | |
6269 | ||
6270 | ||
6271 | ||
311b6756 | 6272 | |
a626f4ee | 6273 | # By default, C and C++ are the only stage 1 languages. |
75ea5758 | 6274 | stage1_languages=,c, |
457eaf16 | 6275 | |
121f0eb2 | 6276 | # Target libraries that we bootstrap. |
bf01561d | 6277 | bootstrap_target_libs=,target-libgcc, |
121f0eb2 | 6278 | |
cfc26d93 NN |
6279 | # Figure out what language subdirectories are present. |
6280 | # Look if the user specified --enable-languages="..."; if not, use | |
6281 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6282 | # go away some day. | |
6283 | # NB: embedded tabs in this IF block -- do not untabify | |
6284 | if test -d ${srcdir}/gcc; then | |
6285 | if test x"${enable_languages+set}" != xset; then | |
6286 | if test x"${LANGUAGES+set}" = xset; then | |
6287 | enable_languages="${LANGUAGES}" | |
fe508576 | 6288 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
cfc26d93 NN |
6289 | else |
6290 | enable_languages=all | |
6291 | fi | |
6292 | else | |
6293 | if test x"${enable_languages}" = x || | |
6294 | test x"${enable_languages}" = xyes; | |
6295 | then | |
fe508576 | 6296 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
cfc26d93 NN |
6297 | exit 1 |
6298 | fi | |
6299 | fi | |
6300 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6301 | ||
c2105cb9 DE |
6302 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6303 | # and make the substitution. | |
6304 | case ,${enable_languages}, in | |
6305 | *,f95,*) | |
fe508576 | 6306 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
c2105cb9 DE |
6307 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6308 | ;; | |
6309 | esac | |
6310 | ||
a626f4ee L |
6311 | # If bootstrapping, C++ must be enabled. |
6312 | case ",$enable_languages,:$enable_bootstrap" in | |
6313 | *,c++,*:*) ;; | |
6314 | *:yes) | |
c9161585 ILT |
6315 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6316 | enable_languages="${enable_languages},c++" | |
6317 | else | |
6d3ddf51 | 6318 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
c9161585 ILT |
6319 | fi |
6320 | ;; | |
6321 | esac | |
6322 | ||
cfc26d93 NN |
6323 | # First scan to see if an enabled language requires some other language. |
6324 | # We assume that a given config-lang.in will list all the language | |
6325 | # front ends it requires, even if some are required indirectly. | |
6326 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6327 | case ${lang_frag} in | |
6328 | ..) ;; | |
6329 | # The odd quoting in the next line works around | |
6330 | # an apparent bug in bash 1.12 on linux. | |
6331 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6332 | *) | |
d5b7129a ILT |
6333 | # From the config-lang.in, get $language, $lang_requires, and |
6334 | # $lang_requires_boot_languages. | |
cfc26d93 NN |
6335 | language= |
6336 | lang_requires= | |
d5b7129a | 6337 | lang_requires_boot_languages= |
cfc26d93 | 6338 | . ${lang_frag} |
d5b7129a | 6339 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
cfc26d93 NN |
6340 | case ,${enable_languages}, in |
6341 | *,$other,*) ;; | |
6342 | *,all,*) ;; | |
6343 | *,$language,*) | |
6344 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6345 | enable_languages="${enable_languages},${other}" | |
6346 | ;; | |
6347 | esac | |
6348 | done | |
d5b7129a ILT |
6349 | for other in ${lang_requires_boot_languages} ; do |
6350 | if test "$other" != "c"; then | |
6351 | case ,${enable_stage1_languages}, in | |
6352 | *,$other,*) ;; | |
6353 | *,all,*) ;; | |
6354 | *) | |
6355 | case ,${enable_languages}, in | |
6356 | *,$language,*) | |
6357 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6358 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6359 | ;; | |
6360 | esac | |
6361 | ;; | |
6362 | esac | |
6363 | fi | |
6364 | done | |
cfc26d93 NN |
6365 | ;; |
6366 | esac | |
6367 | done | |
6368 | ||
75ea5758 | 6369 | new_enable_languages=,c, |
bd45d6fa ILT |
6370 | |
6371 | # If LTO is enabled, add the LTO front end. | |
bd45d6fa | 6372 | if test "$enable_lto" = "yes" ; then |
6c41e710 RW |
6373 | case ,${enable_languages}, in |
6374 | *,lto,*) ;; | |
6375 | *) enable_languages="${enable_languages},lto" ;; | |
6376 | esac | |
1a91b8c0 | 6377 | if test "${build_lto_plugin}" = "yes" ; then |
bd45d6fa | 6378 | configdirs="$configdirs lto-plugin" |
bd45d6fa ILT |
6379 | fi |
6380 | fi | |
6381 | ||
fe508576 CV |
6382 | # If we're building an offloading compiler, add the LTO front end. |
6383 | if test x"$enable_as_accelerator_for" != x ; then | |
6384 | case ,${enable_languages}, in | |
6385 | *,lto,*) ;; | |
6386 | *) enable_languages="${enable_languages},lto" ;; | |
6387 | esac | |
6388 | fi | |
bd45d6fa | 6389 | |
cfc26d93 | 6390 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
75ea5758 | 6391 | potential_languages=,c, |
cfc26d93 | 6392 | |
77a5d6cc ILT |
6393 | enabled_target_libs= |
6394 | disabled_target_libs= | |
6395 | ||
cfc26d93 NN |
6396 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6397 | case ${lang_frag} in | |
6398 | ..) ;; | |
6399 | # The odd quoting in the next line works around | |
6400 | # an apparent bug in bash 1.12 on linux. | |
6401 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6402 | *) | |
b58b6ee1 | 6403 | # From the config-lang.in, get $language, $target_libs, |
457eaf16 | 6404 | # $lang_dirs, $boot_language, and $build_by_default |
cfc26d93 NN |
6405 | language= |
6406 | target_libs= | |
6407 | lang_dirs= | |
f90716dd | 6408 | subdir_requires= |
75ea5758 PB |
6409 | boot_language=no |
6410 | build_by_default=yes | |
cfc26d93 | 6411 | . ${lang_frag} |
75ea5758 PB |
6412 | if test x${language} = x; then |
6413 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6414 | exit 1 | |
6415 | fi | |
6416 | ||
c9161585 | 6417 | if test "$language" = "c++"; then |
a626f4ee | 6418 | boot_language=yes |
121f0eb2 RW |
6419 | fi |
6420 | ||
125bb3c9 | 6421 | add_this_lang=no |
75ea5758 PB |
6422 | case ,${enable_languages}, in |
6423 | *,${language},*) | |
a626f4ee L |
6424 | # Language was explicitly selected; include it |
6425 | # unless it is C, which is enabled by default. | |
6426 | if test "$language" != "c"; then | |
6427 | add_this_lang=yes | |
6428 | fi | |
cfc26d93 | 6429 | ;; |
75ea5758 PB |
6430 | *,all,*) |
6431 | # 'all' was selected, select it if it is a default language | |
125bb3c9 L |
6432 | if test "$language" != "c"; then |
6433 | add_this_lang=${build_by_default} | |
6434 | fi | |
cfc26d93 NN |
6435 | ;; |
6436 | esac | |
cb2333e8 | 6437 | |
f90716dd | 6438 | # Disable languages that need other directories if these aren't available. |
37b43cde | 6439 | for i in $subdir_requires; do |
69d5f332 | 6440 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
f90716dd PB |
6441 | case ,${enable_languages}, in |
6442 | *,${language},*) | |
6443 | # Specifically requested language; tell them. | |
6d3ddf51 | 6444 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
f90716dd PB |
6445 | ;; |
6446 | *) | |
6447 | # Silently disable. | |
75ea5758 | 6448 | add_this_lang=unsupported |
f90716dd PB |
6449 | ;; |
6450 | esac | |
6451 | done | |
6452 | ||
75ea5758 PB |
6453 | # Disable Ada if no preexisting GNAT is available. |
6454 | case ,${enable_languages},:${language}:${have_gnat} in | |
6455 | *,${language},*:ada:no) | |
6456 | # Specifically requested language; tell them. | |
6d3ddf51 | 6457 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
75ea5758 PB |
6458 | ;; |
6459 | *:ada:no) | |
6460 | # Silently disable. | |
6461 | add_this_lang=unsupported | |
6462 | ;; | |
6463 | esac | |
6464 | ||
aac893c5 HPN |
6465 | # Disable a language that is unsupported by the target. |
6466 | case " $unsupported_languages " in | |
6467 | *" $language "*) | |
75ea5758 | 6468 | add_this_lang=unsupported |
aac893c5 HPN |
6469 | ;; |
6470 | esac | |
6471 | ||
cb2333e8 | 6472 | case $add_this_lang in |
75ea5758 | 6473 | unsupported) |
cfc26d93 | 6474 | # Remove language-dependent dirs. |
77a5d6cc ILT |
6475 | disabled_target_libs="$disabled_target_libs $target_libs" |
6476 | noconfigdirs="$noconfigdirs $lang_dirs" | |
457eaf16 | 6477 | ;; |
75ea5758 PB |
6478 | no) |
6479 | # Remove language-dependent dirs; still show language as supported. | |
77a5d6cc ILT |
6480 | disabled_target_libs="$disabled_target_libs $target_libs" |
6481 | noconfigdirs="$noconfigdirs $lang_dirs" | |
75ea5758 PB |
6482 | potential_languages="${potential_languages}${language}," |
6483 | ;; | |
6484 | yes) | |
6485 | new_enable_languages="${new_enable_languages}${language}," | |
6486 | potential_languages="${potential_languages}${language}," | |
457eaf16 | 6487 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
77a5d6cc | 6488 | enabled_target_libs="$enabled_target_libs $target_libs" |
e1762cf3 RW |
6489 | case "${boot_language}:,$enable_stage1_languages," in |
6490 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
8ec98d6c | 6491 | # Add to (comma-separated) list of stage 1 languages. |
e1762cf3 RW |
6492 | case ",$stage1_languages," in |
6493 | *,$language,* | ,yes, | ,all,) ;; | |
6494 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6495 | esac | |
121f0eb2 RW |
6496 | # We need to bootstrap any supporting libraries. |
6497 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
457eaf16 NN |
6498 | ;; |
6499 | esac | |
6500 | ;; | |
cfc26d93 NN |
6501 | esac |
6502 | ;; | |
6503 | esac | |
6504 | done | |
6505 | ||
77a5d6cc ILT |
6506 | # Add target libraries which are only needed for disabled languages |
6507 | # to noconfigdirs. | |
6508 | if test -n "$disabled_target_libs"; then | |
6509 | for dir in $disabled_target_libs; do | |
6510 | case " $enabled_target_libs " in | |
6511 | *" ${dir} "*) ;; | |
6512 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6513 | esac | |
6514 | done | |
6515 | fi | |
6516 | ||
efd58f08 RW |
6517 | # Check whether --enable-stage1-languages was given. |
6518 | if test "${enable_stage1_languages+set}" = set; then : | |
6519 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
75ea5758 PB |
6520 | ,no,|,,) |
6521 | # Set it to something that will have no effect in the loop below | |
6522 | enable_stage1_languages=c ;; | |
6523 | ,yes,) | |
6524 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6525 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6526 | *,all,*) | |
6527 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6528 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6529 | esac | |
6530 | ||
6531 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6532 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6533 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6534 | case $potential_languages in | |
6535 | *,$i,*) | |
6536 | case $stage1_languages in | |
6537 | *,$i,*) ;; | |
6538 | *) stage1_languages="$stage1_languages$i," ;; | |
6539 | esac ;; | |
6540 | *) | |
6541 | case $missing_languages in | |
6542 | *,$i,*) ;; | |
6543 | *) missing_languages="$missing_languages$i," ;; | |
6544 | esac ;; | |
6545 | esac | |
6546 | done | |
efd58f08 RW |
6547 | fi |
6548 | ||
75ea5758 PB |
6549 | |
6550 | # Remove leading/trailing commas that were added for simplicity | |
6551 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
2e93c971 | 6552 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
75ea5758 PB |
6553 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6554 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6555 | ||
cfc26d93 | 6556 | if test "x$missing_languages" != x; then |
6d3ddf51 | 6557 | as_fn_error $? " |
57bcaf2d | 6558 | The following requested languages could not be built: ${missing_languages} |
efd58f08 | 6559 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
cfc26d93 | 6560 | fi |
cfc26d93 NN |
6561 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6562 | echo The following languages will be built: ${new_enable_languages} | |
75ea5758 | 6563 | enable_languages="$new_enable_languages" |
cfc26d93 | 6564 | fi |
75ea5758 | 6565 | |
b58b6ee1 | 6566 | |
0661a4a3 | 6567 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
cfc26d93 NN |
6568 | fi |
6569 | ||
f621a0dc PB |
6570 | # Handle --disable-<component> generically. |
6571 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6572 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
3fbb5e3d PB |
6573 | varname=`echo $dirname | sed -e s/+/_/g` |
6574 | if eval test x\${enable_${varname}} "=" xno ; then | |
f621a0dc PB |
6575 | noconfigdirs="$noconfigdirs $dir" |
6576 | fi | |
6577 | done | |
6578 | ||
e1e5148c | 6579 | # Check for Boehm's garbage collector |
efd58f08 RW |
6580 | # Check whether --enable-objc-gc was given. |
6581 | if test "${enable_objc_gc+set}" = set; then : | |
6582 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
e1e5148c | 6583 | *,objc,*:*:yes:*target-boehm-gc*) |
6d3ddf51 | 6584 | as_fn_error $? "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
e1e5148c CD |
6585 | ;; |
6586 | esac | |
efd58f08 RW |
6587 | fi |
6588 | ||
e1e5148c CD |
6589 | |
6590 | # Make sure we only build Boehm's garbage collector if required. | |
09fd280c DA |
6591 | case ,${enable_languages},:${enable_objc_gc} in |
6592 | *,objc,*:yes) | |
e1e5148c CD |
6593 | # Keep target-boehm-gc if requested for Objective-C. |
6594 | ;; | |
e1e5148c | 6595 | *) |
09fd280c DA |
6596 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6597 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6598 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6599 | fi | |
e1e5148c CD |
6600 | ;; |
6601 | esac | |
6602 | ||
fe508576 | 6603 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
a626f4ee | 6604 | case ,${enable_languages}, in |
fe508576 CV |
6605 | *,c++,*) |
6606 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6607 | case "${noconfigdirs}" in | |
6608 | *target-libstdc++-v3*) | |
6609 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6610 | ;; | |
6611 | *) ;; | |
6612 | esac | |
6613 | ;; | |
a626f4ee | 6614 | *) |
fe508576 | 6615 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
a626f4ee L |
6616 | ;; |
6617 | esac | |
6618 | ||
3d439922 AL |
6619 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6620 | # $build_configdirs and $target_configdirs. | |
cfc26d93 NN |
6621 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6622 | ||
6623 | notsupp="" | |
6624 | for dir in . $skipdirs $noconfigdirs ; do | |
3d439922 | 6625 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
cfc26d93 NN |
6626 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6627 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6628 | if test -r $srcdir/$dirname/configure ; then | |
6629 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6630 | true | |
6631 | else | |
6632 | notsupp="$notsupp $dir" | |
6633 | fi | |
6634 | fi | |
6635 | fi | |
3d439922 AL |
6636 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6637 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6638 | if test -r $srcdir/$dirname/configure ; then | |
6639 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6640 | true | |
6641 | else | |
6642 | notsupp="$notsupp $dir" | |
6643 | fi | |
6644 | fi | |
6645 | fi | |
cfc26d93 NN |
6646 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6647 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6648 | if test -r $srcdir/$dirname/configure ; then | |
6649 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6650 | true | |
6651 | else | |
6652 | notsupp="$notsupp $dir" | |
6653 | fi | |
6654 | fi | |
6655 | fi | |
6656 | done | |
6657 | ||
cfc26d93 NN |
6658 | # Quietly strip out all directories which aren't configurable in this tree. |
6659 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6660 | # is now the case. | |
2cb47d68 PB |
6661 | build_configdirs_all="$build_configdirs" |
6662 | build_configdirs= | |
6663 | for i in ${build_configdirs_all} ; do | |
b58b6ee1 | 6664 | j=`echo $i | sed -e s/build-//g` |
2cb47d68 PB |
6665 | if test -f ${srcdir}/$j/configure ; then |
6666 | build_configdirs="${build_configdirs} $i" | |
6667 | fi | |
6668 | done | |
6669 | ||
cfc26d93 NN |
6670 | configdirs_all="$configdirs" |
6671 | configdirs= | |
6672 | for i in ${configdirs_all} ; do | |
6673 | if test -f ${srcdir}/$i/configure ; then | |
6674 | configdirs="${configdirs} $i" | |
6675 | fi | |
6676 | done | |
2cb47d68 | 6677 | |
cfc26d93 NN |
6678 | target_configdirs_all="$target_configdirs" |
6679 | target_configdirs= | |
6680 | for i in ${target_configdirs_all} ; do | |
b58b6ee1 | 6681 | j=`echo $i | sed -e s/target-//g` |
cfc26d93 NN |
6682 | if test -f ${srcdir}/$j/configure ; then |
6683 | target_configdirs="${target_configdirs} $i" | |
6684 | fi | |
6685 | done | |
6686 | ||
fe508576 CV |
6687 | # Exclude target-zlib if target-libjava isn't built. |
6688 | case ${target_configdirs} in | |
6689 | *target-libjava*) | |
6690 | ;; | |
6691 | *) | |
6692 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6693 | ;; | |
6694 | esac | |
6695 | ||
6696 | # libiberty-linker-plugin is special: it doesn't have its own source directory, | |
6697 | # so we have to add it after the preceding checks. | |
6698 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6699 | then | |
6700 | case " $configdirs " in | |
6701 | *" libiberty "*) | |
6702 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6703 | configdirs="$configdirs libiberty-linker-plugin" | |
6704 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6705 | --with-libiberty=../libiberty-linker-plugin";; | |
6706 | *) | |
6d3ddf51 | 6707 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
fe508576 CV |
6708 | esac |
6709 | fi | |
6710 | ||
6711 | # Sometimes we have special requirements for the host libiberty. | |
6712 | extra_host_libiberty_configure_flags= | |
6713 | extra_host_zlib_configure_flags= | |
6714 | case " $configdirs " in | |
6715 | *" lto-plugin "* | *" libcc1 "*) | |
6716 | # When these are to be built as shared libraries, the same applies to | |
6717 | # libiberty. | |
6718 | extra_host_libiberty_configure_flags=--enable-shared | |
6719 | ;; | |
6720 | *" bfd "*) | |
6721 | # When bfd is to be built as a shared library, the same applies to | |
6722 | # zlib. | |
6723 | if test "$enable_shared" = "yes"; then | |
6724 | extra_host_zlib_configure_flags=--enable-host-shared | |
6725 | fi | |
6726 | ;; | |
6727 | esac | |
6728 | ||
6729 | ||
6730 | ||
cfc26d93 NN |
6731 | # Produce a warning message for the subdirs we can't configure. |
6732 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6733 | # FSF releases, it's important to let people know when their machine isn't | |
6734 | # supported by the one or two programs in a package. | |
6735 | ||
6736 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6737 | # If $appdirs is non-empty, at least one of those directories must still | |
6738 | # be configured, or we error out. (E.g., if the gas release supports a | |
6739 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6740 | # pretend that all is well.) | |
6741 | if test -n "$appdirs" ; then | |
6742 | for dir in $appdirs ; do | |
6743 | if test -r $dir/Makefile.in ; then | |
6744 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6745 | appdirs="" | |
6746 | break | |
6747 | fi | |
2cb47d68 | 6748 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
cfc26d93 NN |
6749 | appdirs="" |
6750 | break | |
6751 | fi | |
6752 | fi | |
6753 | done | |
6754 | if test -n "$appdirs" ; then | |
6755 | echo "*** This configuration is not supported by this package." 1>&2 | |
6756 | exit 1 | |
6757 | fi | |
6758 | fi | |
6759 | # Okay, some application will build, or we don't care to check. Still | |
6760 | # notify of subdirs not getting built. | |
6761 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6762 | echo " ${notsupp}" 1>&2 | |
6763 | echo " (Any other directories should still work fine.)" 1>&2 | |
6764 | fi | |
6765 | ||
6766 | case "$host" in | |
6767 | *msdosdjgpp*) | |
6768 | enable_gdbtk=no ;; | |
6769 | esac | |
6770 | ||
b8c26111 PB |
6771 | # To find our prefix, in gcc_cv_tool_prefix. |
6772 | ||
6773 | # The user is always right. | |
6774 | if test "${PATH_SEPARATOR+set}" != set; then | |
6775 | echo "#! /bin/sh" >conf$$.sh | |
6776 | echo "exit 0" >>conf$$.sh | |
6777 | chmod +x conf$$.sh | |
6778 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6779 | PATH_SEPARATOR=';' | |
6780 | else | |
6781 | PATH_SEPARATOR=: | |
6782 | fi | |
6783 | rm -f conf$$.sh | |
6784 | fi | |
6785 | ||
6786 | ||
6787 | ||
6788 | if test "x$exec_prefix" = xNONE; then | |
6789 | if test "x$prefix" = xNONE; then | |
6790 | gcc_cv_tool_prefix=$ac_default_prefix | |
6791 | else | |
6792 | gcc_cv_tool_prefix=$prefix | |
6793 | fi | |
6794 | else | |
6795 | gcc_cv_tool_prefix=$exec_prefix | |
6796 | fi | |
6797 | ||
6798 | # If there is no compiler in the tree, use the PATH only. In any | |
6799 | # case, if there is no compiler in the tree nobody should use | |
6800 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6801 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6802 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6803 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6804 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6805 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6806 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6807 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6808 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6809 | else | |
6810 | gcc_cv_tool_dirs= | |
6811 | fi | |
6812 | ||
6813 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6814 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6815 | fi | |
6816 | ||
6817 | ||
6818 | ||
cfc26d93 NN |
6819 | copy_dirs= |
6820 | ||
b58b6ee1 | 6821 | |
efd58f08 RW |
6822 | # Check whether --with-build-sysroot was given. |
6823 | if test "${with_build_sysroot+set}" = set; then : | |
6824 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
9b992990 MM |
6825 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6826 | fi | |
6827 | else | |
6828 | SYSROOT_CFLAGS_FOR_TARGET= | |
efd58f08 | 6829 | fi |
9b992990 MM |
6830 | |
6831 | ||
fcc5fef0 | 6832 | |
efd58f08 RW |
6833 | |
6834 | # Check whether --with-debug-prefix-map was given. | |
6835 | if test "${with_debug_prefix_map+set}" = set; then : | |
6836 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
fcc5fef0 JM |
6837 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6838 | for debug_map in $withval; do | |
6839 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6840 | done | |
6841 | fi | |
6842 | else | |
6843 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
efd58f08 RW |
6844 | fi |
6845 | ||
fcc5fef0 JM |
6846 | |
6847 | ||
6532abb6 PB |
6848 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6849 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6850 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6851 | # We want to ensure that TARGET libraries (which we know are built with | |
6852 | # gcc) are built with "-O2 -g", so include those options when setting | |
6853 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6854 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fe508576 CV |
6855 | if test "x${is_cross_compiler}" = xyes; then |
6856 | CFLAGS_FOR_TARGET="-g -O2" | |
6857 | else | |
6858 | CFLAGS_FOR_TARGET=$CFLAGS | |
6859 | case " $CFLAGS " in | |
6860 | *" -O2 "*) ;; | |
6861 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6862 | esac | |
6863 | case " $CFLAGS " in | |
6864 | *" -g "* | *" -g3 "*) ;; | |
6865 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6866 | esac | |
6867 | fi | |
6532abb6 PB |
6868 | fi |
6869 | ||
6870 | ||
6871 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fe508576 CV |
6872 | if test "x${is_cross_compiler}" = xyes; then |
6873 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6874 | else | |
6875 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6876 | case " $CXXFLAGS " in | |
6877 | *" -O2 "*) ;; | |
6878 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6879 | esac | |
6880 | case " $CXXFLAGS " in | |
6881 | *" -g "* | *" -g3 "*) ;; | |
6882 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6883 | esac | |
6884 | fi | |
6532abb6 PB |
6885 | fi |
6886 | ||
6887 | ||
2e7bf520 DK |
6888 | |
6889 | ||
cfc26d93 NN |
6890 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6891 | # the named directory are copied to $(tooldir)/sys-include. | |
6892 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6893 | if test x${is_cross_compiler} = xno ; then | |
6894 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6895 | exit 1 | |
6896 | fi | |
6897 | if test x"${with_headers}" != xyes ; then | |
b8c26111 | 6898 | x=${gcc_cv_tool_prefix} |
b58b6ee1 | 6899 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
cfc26d93 NN |
6900 | fi |
6901 | fi | |
6902 | ||
6903 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6904 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6905 | # are permitted. | |
6906 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6907 | if test x${is_cross_compiler} = xno ; then | |
6908 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6909 | exit 1 | |
6910 | fi | |
6911 | if test x"${with_libs}" != xyes ; then | |
6912 | # Copy the libraries in reverse order, so that files in the first named | |
6913 | # library override files in subsequent libraries. | |
b8c26111 | 6914 | x=${gcc_cv_tool_prefix} |
cfc26d93 | 6915 | for l in ${with_libs}; do |
b58b6ee1 | 6916 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
cfc26d93 NN |
6917 | done |
6918 | fi | |
6919 | fi | |
6920 | ||
bd45d6fa | 6921 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
fef3f213 PB |
6922 | # |
6923 | # This is done by determining whether or not the appropriate directory | |
6924 | # is available, and by checking whether or not specific configurations | |
6925 | # have requested that this magic not happen. | |
b58b6ee1 DJ |
6926 | # |
6927 | # The command line options always override the explicit settings in | |
fe508576 | 6928 | # configure.ac, and the settings in configure.ac override this magic. |
fef3f213 | 6929 | # |
b58b6ee1 | 6930 | # If the default for a toolchain is to use GNU as and ld, and you don't |
fef3f213 | 6931 | # want to do that, then you should use the --without-gnu-as and |
bd45d6fa ILT |
6932 | # --without-gnu-ld options for the configure script. Similarly, if |
6933 | # the default is to use the included zlib and you don't want to do that, | |
6934 | # you should use the --with-system-zlib option for the configure script. | |
fef3f213 PB |
6935 | |
6936 | if test x${use_gnu_as} = x && | |
6937 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6938 | with_gnu_as=yes | |
6939 | extra_host_args="$extra_host_args --with-gnu-as" | |
6940 | fi | |
6941 | ||
6942 | if test x${use_gnu_ld} = x && | |
b916272a | 6943 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
fef3f213 PB |
6944 | with_gnu_ld=yes |
6945 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6946 | fi | |
6947 | ||
bd45d6fa ILT |
6948 | if test x${use_included_zlib} = x && |
6949 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6950 | : | |
6951 | else | |
6952 | with_system_zlib=yes | |
6953 | extra_host_args="$extra_host_args --with-system-zlib" | |
6954 | fi | |
6955 | ||
fef3f213 PB |
6956 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6957 | # can detect this case. | |
6958 | ||
6959 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6960 | with_newlib=yes | |
6961 | extra_host_args="$extra_host_args --with-newlib" | |
6962 | fi | |
6963 | ||
cfc26d93 NN |
6964 | # Handle ${copy_dirs} |
6965 | set fnord ${copy_dirs} | |
6966 | shift | |
6967 | while test $# != 0 ; do | |
6968 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6969 | : | |
6970 | else | |
6971 | echo Copying $1 to $2 | |
6972 | ||
6973 | # Use the install script to create the directory and all required | |
6974 | # parent directories. | |
6975 | if test -d $2 ; then | |
6976 | : | |
6977 | else | |
6978 | echo >config.temp | |
6979 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6980 | fi | |
6981 | ||
6982 | # Copy the directory, assuming we have tar. | |
6983 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6984 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6985 | ||
6986 | # It is the responsibility of the user to correctly adjust all | |
6987 | # symlinks. If somebody can figure out how to handle them correctly | |
6988 | # here, feel free to add the code. | |
6989 | ||
6990 | echo $1 > $2/COPIED | |
6991 | fi | |
6992 | shift; shift | |
6993 | done | |
6994 | ||
fef3f213 PB |
6995 | # Determine a target-dependent exec_prefix that the installed |
6996 | # gcc will search in. Keep this list sorted by triplet, with | |
6997 | # the *-*-osname triplets last. | |
6998 | md_exec_prefix= | |
6999 | case "${target}" in | |
b301596e | 7000 | i[34567]86-pc-msdosdjgpp*) |
fef3f213 PB |
7001 | md_exec_prefix=/dev/env/DJDIR/bin |
7002 | ;; | |
fef3f213 | 7003 | *-*-hpux* | \ |
fef3f213 | 7004 | *-*-nto-qnx* | \ |
ebc0cd55 | 7005 | *-*-solaris2*) |
fef3f213 PB |
7006 | md_exec_prefix=/usr/ccs/bin |
7007 | ;; | |
7008 | esac | |
7009 | ||
bafecfd6 NN |
7010 | extra_arflags_for_target= |
7011 | extra_nmflags_for_target= | |
7012 | extra_ranlibflags_for_target= | |
7013 | target_makefile_frag=/dev/null | |
7014 | case "${target}" in | |
e53c5df0 AM |
7015 | spu-*-*) |
7016 | target_makefile_frag="config/mt-spu" | |
7017 | ;; | |
fe508576 | 7018 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
2ad518b5 RS |
7019 | target_makefile_frag="config/mt-sde" |
7020 | ;; | |
2d2e75dd RS |
7021 | mipsisa*-*-elfoabi*) |
7022 | target_makefile_frag="config/mt-mips-elfoabi" | |
7023 | ;; | |
59c59569 RS |
7024 | mips*-*-*linux* | mips*-*-gnu*) |
7025 | target_makefile_frag="config/mt-mips-gnu" | |
7026 | ;; | |
b9ee0bb0 SL |
7027 | nios2-*-elf*) |
7028 | target_makefile_frag="config/mt-nios2-elf" | |
7029 | ;; | |
9f8da9ce | 7030 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
824cf273 | 7031 | target_makefile_frag="config/mt-gnu" |
bafecfd6 NN |
7032 | ;; |
7033 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b58b6ee1 | 7034 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
bafecfd6 NN |
7035 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7036 | # harmless if we're using GNU nm or ar. | |
7037 | extra_arflags_for_target=" -X32_64" | |
7038 | extra_nmflags_for_target=" -B -X32_64" | |
7039 | ;; | |
bafecfd6 NN |
7040 | esac |
7041 | ||
7042 | alphaieee_frag=/dev/null | |
7043 | case $target in | |
7044 | alpha*-*-*) | |
7045 | # This just makes sure to use the -mieee option to build target libs. | |
7046 | # This should probably be set individually by each library. | |
7047 | alphaieee_frag="config/mt-alphaieee" | |
7048 | ;; | |
7049 | esac | |
7050 | ||
7051 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7052 | # the target libraries, similarly if it is not specified, use -Os | |
7053 | # on selected platforms. | |
7054 | ospace_frag=/dev/null | |
7055 | case "${enable_target_optspace}:${target}" in | |
7056 | yes:*) | |
7057 | ospace_frag="config/mt-ospace" | |
7058 | ;; | |
7059 | :d30v-*) | |
7060 | ospace_frag="config/mt-d30v" | |
7061 | ;; | |
fe508576 | 7062 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
bafecfd6 NN |
7063 | ospace_frag="config/mt-ospace" |
7064 | ;; | |
7065 | no:* | :*) | |
7066 | ;; | |
7067 | *) | |
7068 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7069 | ;; | |
7070 | esac | |
7071 | ||
bafecfd6 NN |
7072 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7073 | # using) don't handle "\$" correctly, so don't use it here. | |
90d6966b NF |
7074 | |
7075 | # Check whether --with-tooldir was given. | |
7076 | if test "${with_tooldir+set}" = set; then : | |
7077 | withval=$with_tooldir; case x"$withval" in #( | |
7078 | x/*) : | |
7079 | ;; #( | |
7080 | *) : | |
7081 | as_fn_error $? "argument to --with-tooldir must be an absolute path" "$LINENO" 5 ;; | |
7082 | esac | |
7083 | ||
7084 | else | |
7085 | with_tooldir='${exec_prefix}'/${target_noncanonical} | |
7086 | fi | |
7087 | ||
7088 | tooldir=${with_tooldir} | |
bafecfd6 NN |
7089 | build_tooldir=${tooldir} |
7090 | ||
bafecfd6 NN |
7091 | # Create a .gdbinit file which runs the one in srcdir |
7092 | # and tells GDB to look there for source files. | |
7093 | ||
7094 | if test -r ${srcdir}/.gdbinit ; then | |
7095 | case ${srcdir} in | |
7096 | .) ;; | |
7097 | *) cat > ./.gdbinit <<EOF | |
7098 | # ${NO_EDIT} | |
7099 | dir ${srcdir} | |
7100 | dir . | |
7101 | source ${srcdir}/.gdbinit | |
7102 | EOF | |
7103 | ;; | |
7104 | esac | |
7105 | fi | |
7106 | ||
bafecfd6 NN |
7107 | # Make sure that the compiler is able to generate an executable. If it |
7108 | # can't, we are probably in trouble. We don't care whether we can run the | |
7109 | # executable--we might be using a cross compiler--we only care whether it | |
7110 | # can be created. At this point the main configure script has set CC. | |
7111 | we_are_ok=no | |
7112 | echo "int main () { return 0; }" > conftest.c | |
7113 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7114 | if test $? = 0 ; then | |
7115 | if test -s conftest || test -s conftest.exe ; then | |
7116 | we_are_ok=yes | |
7117 | fi | |
b58b6ee1 | 7118 | fi |
bafecfd6 NN |
7119 | case $we_are_ok in |
7120 | no) | |
7121 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7122 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7123 | rm -f conftest* | |
7124 | exit 1 | |
7125 | ;; | |
7126 | esac | |
7127 | rm -f conftest* | |
7128 | ||
8453fdba | 7129 | # Decide which environment variable is used to find dynamic libraries. |
bafecfd6 NN |
7130 | case "${host}" in |
7131 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
4e55c4e3 | 7132 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
8453fdba | 7133 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
bafecfd6 NN |
7134 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7135 | esac | |
7136 | ||
8453fdba | 7137 | # On systems where the dynamic library environment variable is PATH, |
311b6756 JM |
7138 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7139 | # built executables to PATH. | |
8453fdba AL |
7140 | if test "$RPATH_ENVVAR" = PATH; then |
7141 | GCC_SHLIB_SUBDIR=/shlib | |
7142 | else | |
7143 | GCC_SHLIB_SUBDIR= | |
7144 | fi | |
7145 | ||
ebc58bf8 | 7146 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
55662058 | 7147 | case $enable_bootstrap in |
e1666221 | 7148 | yes) |
55662058 AO |
7149 | bootstrap_suffix=bootstrap |
7150 | BUILD_CONFIG=bootstrap-debug | |
7151 | ;; | |
e1666221 | 7152 | no) |
55662058 AO |
7153 | bootstrap_suffix=no-bootstrap |
7154 | BUILD_CONFIG= | |
7155 | ;; | |
e1666221 PB |
7156 | esac |
7157 | ||
55662058 AO |
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7159 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7160 | ||
7161 | ||
7162 | # Check whether --with-build-config was given. | |
7163 | if test "${with_build_config+set}" = set; then : | |
7164 | withval=$with_build_config; case $with_build_config in | |
7165 | yes) with_build_config= ;; | |
7166 | no) with_build_config= BUILD_CONFIG= ;; | |
7167 | esac | |
7168 | fi | |
7169 | ||
7170 | ||
7171 | if test "x${with_build_config}" != x; then | |
7172 | BUILD_CONFIG=$with_build_config | |
7173 | else | |
7174 | case $BUILD_CONFIG in | |
7175 | bootstrap-debug) | |
7176 | if echo "int f (void) { return 0; }" > conftest.c && | |
7177 | ${CC} -c conftest.c && | |
7178 | mv conftest.o conftest.o.g0 && | |
7179 | ${CC} -c -g conftest.c && | |
7180 | mv conftest.o conftest.o.g && | |
112afadf | 7181 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
55662058 AO |
7182 | : |
7183 | else | |
fe508576 CV |
7184 | BUILD_CONFIG= |
7185 | fi | |
7186 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7187 | ;; | |
7188 | esac | |
7189 | fi | |
7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7191 | $as_echo "$BUILD_CONFIG" >&6; } | |
7192 | ||
7193 | ||
7194 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7196 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7197 | # Check whether --enable-vtable-verify was given. | |
7198 | if test "${enable_vtable_verify+set}" = set; then : | |
7199 | enableval=$enable_vtable_verify; case "$enableval" in | |
7200 | yes) enable_vtable_verify=yes ;; | |
7201 | no) enable_vtable_verify=no ;; | |
7202 | *) enable_vtable_verify=no;; | |
7203 | esac | |
7204 | else | |
7205 | enable_vtable_verify=no | |
7206 | fi | |
7207 | ||
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7209 | $as_echo "$enable_vtable_verify" >&6; } | |
7210 | ||
7211 | # Record target_configdirs and the configure arguments for target and | |
7212 | # build configuration in Makefile. | |
7213 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
7214 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` | |
7215 | bootstrap_fixincludes=no | |
7216 | ||
7217 | # If we are building libgomp, bootstrap it. | |
7218 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7219 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7220 | fi | |
7221 | ||
7222 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan | |
7223 | # or bootstrap-ubsan, bootstrap it. | |
7224 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7225 | case "$BUILD_CONFIG" in | |
7226 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7227 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
7228 | bootstrap_fixincludes=yes | |
7229 | ;; | |
7230 | esac | |
7231 | fi | |
7232 | ||
7233 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. | |
7234 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7235 | test "$enable_vtable_verify" != no; then | |
7236 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, | |
7237 | fi | |
7238 | ||
7239 | # If we are building libmpx, bootstrap it. | |
7240 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7241 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7242 | fi | |
7243 | ||
7244 | # Determine whether gdb needs tk/tcl or not. | |
7245 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7246 | # and in that case we want gdb to be built without tk. Ugh! | |
7247 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7248 | # so we should be able to put the 'maybe's in unconditionally and | |
7249 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7250 | # 100% sure that that's safe though. | |
7251 | ||
7252 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" | |
7253 | case "$enable_gdbtk" in | |
7254 | no) | |
7255 | GDB_TK="" ;; | |
7256 | yes) | |
7257 | GDB_TK="${gdb_tk}" ;; | |
7258 | *) | |
7259 | # Only add the dependency on gdbtk when GDBtk is part of the gdb | |
7260 | # distro. Eventually someone will fix this and move Insight, nee | |
7261 | # gdbtk to a separate directory. | |
7262 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7263 | GDB_TK="${gdb_tk}" | |
7264 | else | |
7265 | GDB_TK="" | |
55662058 | 7266 | fi |
55662058 | 7267 | ;; |
fe508576 CV |
7268 | esac |
7269 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` | |
7270 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
7271 | ||
7272 | # Strip out unwanted targets. | |
7273 | ||
7274 | # While at that, we remove Makefiles if we were started for recursive | |
7275 | # configuration, so that the top-level Makefile reconfigures them, | |
7276 | # like we used to do when configure itself was recursive. | |
7277 | ||
7278 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf | |
7279 | # but now we're fixing up the Makefile ourselves with the additional | |
7280 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7281 | # extrasub-{build,host,target} not because there is any reason to split | |
7282 | # the substitutions up that way, but only to remain below the limit of | |
7283 | # 99 commands in a script, for HP-UX sed. | |
3127effc AO |
7284 | |
7285 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7286 | # configure will not warn you at all. | |
55662058 | 7287 | |
fe508576 CV |
7288 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7289 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7290 | yes:yes:*\ gold\ *:*) | |
6d3ddf51 | 7291 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
fe508576 CV |
7292 | ;; |
7293 | esac | |
55662058 | 7294 | |
94f4a7b9 | 7295 | extrasub_build= |
2cb47d68 | 7296 | for module in ${build_configdirs} ; do |
aac4e7d4 CF |
7297 | if test -z "${no_recursion}" \ |
7298 | && test -f ${build_subdir}/${module}/Makefile; then | |
7299 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7300 | rm -f ${build_subdir}/${module}/Makefile | |
7301 | fi | |
94f4a7b9 | 7302 | extrasub_build="$extrasub_build |
aac4e7d4 CF |
7303 | /^@if build-$module\$/d |
7304 | /^@endif build-$module\$/d | |
3127effc | 7305 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
aac4e7d4 | 7306 | /^@if build-$module-$bootstrap_suffix\$/d |
3127effc AO |
7307 | /^@endif build-$module-$bootstrap_suffix\$/d |
7308 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
aac4e7d4 | 7309 | done |
94f4a7b9 | 7310 | extrasub_host= |
aac4e7d4 | 7311 | for module in ${configdirs} ; do |
e3c08f94 | 7312 | if test -z "${no_recursion}"; then |
bde7f665 | 7313 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
e3c08f94 PB |
7314 | if test -f ${file}; then |
7315 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7316 | rm -f ${file} | |
7317 | fi | |
7318 | done | |
aac4e7d4 | 7319 | fi |
fe508576 CV |
7320 | case ${module},${bootstrap_fixincludes} in |
7321 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7322 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7323 | esac | |
94f4a7b9 | 7324 | extrasub_host="$extrasub_host |
aac4e7d4 CF |
7325 | /^@if $module\$/d |
7326 | /^@endif $module\$/d | |
3127effc | 7327 | /^@unless $module\$/,/^@endunless $module\$/d |
fe508576 | 7328 | /^@if $module-$host_bootstrap_suffix\$/d |
3127effc AO |
7329 | /^@endif $module-$host_bootstrap_suffix\$/d |
7330 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
aac4e7d4 | 7331 | done |
94f4a7b9 | 7332 | extrasub_target= |
aac4e7d4 CF |
7333 | for module in ${target_configdirs} ; do |
7334 | if test -z "${no_recursion}" \ | |
7335 | && test -f ${target_subdir}/${module}/Makefile; then | |
7336 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7337 | rm -f ${target_subdir}/${module}/Makefile | |
7338 | fi | |
121f0eb2 RW |
7339 | |
7340 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7341 | case $bootstrap_target_libs in | |
7342 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7343 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7344 | esac | |
7345 | ||
94f4a7b9 | 7346 | extrasub_target="$extrasub_target |
aac4e7d4 CF |
7347 | /^@if target-$module\$/d |
7348 | /^@endif target-$module\$/d | |
3127effc | 7349 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
121f0eb2 | 7350 | /^@if target-$module-$target_bootstrap_suffix\$/d |
3127effc AO |
7351 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7352 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
aac4e7d4 CF |
7353 | done |
7354 | ||
94f4a7b9 RW |
7355 | # Do the final fixup along with target modules. |
7356 | extrasub_target="$extrasub_target | |
3127effc AO |
7357 | /^@if /,/^@endif /d |
7358 | /^@unless /d | |
7359 | /^@endunless /d" | |
bafecfd6 NN |
7360 | |
7361 | # Create the serialization dependencies. This uses a temporary file. | |
7362 | ||
efd58f08 RW |
7363 | # Check whether --enable-serial-configure was given. |
7364 | if test "${enable_serial_configure+set}" = set; then : | |
7365 | enableval=$enable_serial_configure; | |
7366 | fi | |
af9955fa AO |
7367 | |
7368 | ||
7f74e6a3 DD |
7369 | case ${enable_serial_configure} in |
7370 | yes) | |
7371 | enable_serial_build_configure=yes | |
7372 | enable_serial_host_configure=yes | |
7373 | enable_serial_target_configure=yes | |
7374 | ;; | |
7375 | esac | |
7376 | ||
bafecfd6 NN |
7377 | # These force 'configure's to be done one at a time, to avoid problems |
7378 | # with contention over a shared config.cache. | |
7379 | rm -f serdep.tmp | |
af9955fa | 7380 | echo '# serdep.tmp' > serdep.tmp |
bafecfd6 | 7381 | olditem= |
7f74e6a3 | 7382 | test "x${enable_serial_build_configure}" = xyes && |
bafecfd6 NN |
7383 | for item in ${build_configdirs} ; do |
7384 | case ${olditem} in | |
7385 | "") ;; | |
af9955fa | 7386 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
7387 | esac |
7388 | olditem=${item} | |
7389 | done | |
7390 | olditem= | |
7f74e6a3 | 7391 | test "x${enable_serial_host_configure}" = xyes && |
bafecfd6 NN |
7392 | for item in ${configdirs} ; do |
7393 | case ${olditem} in | |
7394 | "") ;; | |
af9955fa | 7395 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
7396 | esac |
7397 | olditem=${item} | |
7398 | done | |
7399 | olditem= | |
7f74e6a3 | 7400 | test "x${enable_serial_target_configure}" = xyes && |
bafecfd6 NN |
7401 | for item in ${target_configdirs} ; do |
7402 | case ${olditem} in | |
7403 | "") ;; | |
af9955fa | 7404 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
7405 | esac |
7406 | olditem=${item} | |
7407 | done | |
7408 | serialization_dependencies=serdep.tmp | |
7409 | ||
7410 | ||
af9955fa | 7411 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b58b6ee1 | 7412 | # target, nonopt, and variable assignments. These are the ones we |
358d4e3c NC |
7413 | # might not want to pass down to subconfigures. The exception being |
7414 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7415 | # files altogether, and which should be passed on to subconfigures. | |
7416 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7417 | # so that we can pass down a consistent program-transform-name. | |
b58b6ee1 | 7418 | baseargs= |
3bd3027c | 7419 | tbaseargs= |
b58b6ee1 DJ |
7420 | keep_next=no |
7421 | skip_next=no | |
7422 | eval "set -- $ac_configure_args" | |
b8c26111 PB |
7423 | for ac_arg |
7424 | do | |
b58b6ee1 DJ |
7425 | if test X"$skip_next" = X"yes"; then |
7426 | skip_next=no | |
7427 | continue | |
7428 | fi | |
7429 | if test X"$keep_next" = X"yes"; then | |
7430 | case $ac_arg in | |
7431 | *\'*) | |
7432 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7433 | esac | |
7434 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c | 7435 | tbaseargs="$tbaseargs '$ac_arg'" |
b58b6ee1 DJ |
7436 | keep_next=no |
7437 | continue | |
7438 | fi | |
7439 | ||
7440 | # Handle separated arguments. Based on the logic generated by | |
7441 | # autoconf 2.59. | |
7442 | case $ac_arg in | |
7443 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7444 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7445 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7446 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7447 | separate_arg=no | |
7448 | ;; | |
7449 | -*) | |
7450 | separate_arg=yes | |
7451 | ;; | |
7452 | *) | |
7453 | separate_arg=no | |
7454 | ;; | |
7455 | esac | |
7456 | ||
3bd3027c AO |
7457 | skip_targ=no |
7458 | case $ac_arg in | |
7459 | ||
7460 | --with-* | --without-*) | |
7461 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7462 | ||
7463 | case $libopt in | |
7464 | *[-_]include) | |
7465 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7466 | ;; | |
7467 | *[-_]lib) | |
7468 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7469 | ;; | |
7470 | *) | |
7471 | lib=$libopt | |
7472 | ;; | |
7473 | esac | |
7474 | ||
7475 | ||
7476 | case $lib in | |
fe508576 | 7477 | mpc | mpfr | gmp | isl) |
3bd3027c AO |
7478 | # If we're processing --with-$lib, --with-$lib-include or |
7479 | # --with-$lib-lib, for one of the libs above, and target is | |
7480 | # different from host, don't pass the current argument to any | |
7481 | # target library's configure. | |
7482 | if test x$is_cross_compiler = xyes; then | |
7483 | skip_targ=yes | |
7484 | fi | |
7485 | ;; | |
7486 | esac | |
7487 | ;; | |
7488 | esac | |
7489 | ||
b58b6ee1 | 7490 | case "$ac_arg" in |
358d4e3c NC |
7491 | --cache-file=/dev/null | \ |
7492 | -cache-file=/dev/null ) | |
7493 | # Handled here to avoid the test to skip args below. | |
7494 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c | 7495 | tbaseargs="$tbaseargs '$ac_arg'" |
358d4e3c NC |
7496 | # Assert: $separate_arg should always be no. |
7497 | keep_next=$separate_arg | |
7498 | ;; | |
b58b6ee1 DJ |
7499 | --no*) |
7500 | continue | |
7501 | ;; | |
7502 | --c* | \ | |
7503 | --sr* | \ | |
7504 | --ho* | \ | |
7505 | --bu* | \ | |
7506 | --t* | \ | |
7507 | --program-* | \ | |
7508 | -cache_file* | \ | |
7509 | -srcdir* | \ | |
7510 | -host* | \ | |
7511 | -build* | \ | |
7512 | -target* | \ | |
7513 | -program-prefix* | \ | |
7514 | -program-suffix* | \ | |
7515 | -program-transform-name* ) | |
7516 | skip_next=$separate_arg | |
7517 | continue | |
7518 | ;; | |
7519 | -*) | |
7520 | # An option. Add it. | |
7521 | case $ac_arg in | |
7522 | *\'*) | |
7523 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7524 | esac | |
7525 | baseargs="$baseargs '$ac_arg'" | |
3bd3027c AO |
7526 | if test X"$skip_targ" = Xno; then |
7527 | tbaseargs="$tbaseargs '$ac_arg'" | |
7528 | fi | |
b58b6ee1 DJ |
7529 | keep_next=$separate_arg |
7530 | ;; | |
7531 | *) | |
7532 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7533 | # pass it down; let the Makefile handle this. | |
7534 | continue | |
7535 | ;; | |
7536 | esac | |
7537 | done | |
7538 | # Remove the initial space we just introduced and, as these will be | |
7539 | # expanded by make, quote '$'. | |
7540 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
bafecfd6 | 7541 | |
eedd1e14 DJ |
7542 | # Add in --program-transform-name, after --program-prefix and |
7543 | # --program-suffix have been applied to it. Autoconf has already | |
7544 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7545 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b58b6ee1 | 7546 | # quotes, because this will be expanded first by make and then by the shell. |
eedd1e14 DJ |
7547 | # Also, because we want to override the logic in subdir configure scripts to |
7548 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7549 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7550 | ${program_transform_name} | |
7551 | EOF_SED | |
7552 | gcc_transform_name=`cat conftestsed.out` | |
7553 | rm -f conftestsed.out | |
7554 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
3bd3027c | 7555 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
fc7c811f BE |
7556 | if test "$silent" = yes; then |
7557 | baseargs="$baseargs --silent" | |
3bd3027c | 7558 | tbaseargs="$tbaseargs --silent" |
fc7c811f | 7559 | fi |
5546e07b | 7560 | baseargs="$baseargs --disable-option-checking" |
3bd3027c | 7561 | tbaseargs="$tbaseargs --disable-option-checking" |
eedd1e14 | 7562 | |
1d694d8e RW |
7563 | # Record and document user additions to sub configure arguments. |
7564 | ||
7565 | ||
7566 | ||
7567 | ||
bafecfd6 NN |
7568 | # For the build-side libraries, we just need to pretend we're native, |
7569 | # and not use the same cache file. Multilibs are neither needed nor | |
fe508576 CV |
7570 | # desired. We can't even use the same cache file for all build-side |
7571 | # libraries, as they're compiled differently; some with C, some with | |
7572 | # C++ or with different feature-enabling options. | |
7573 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
bafecfd6 NN |
7574 | |
7575 | # For host modules, accept cache file option, or specification as blank. | |
7576 | case "${cache_file}" in | |
7577 | "") # empty | |
7578 | cache_file_option="" ;; | |
7579 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7580 | cache_file_option="--cache-file=${cache_file}" ;; | |
7581 | *) # relative path | |
7582 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7583 | esac | |
7584 | ||
68c6d8ac NN |
7585 | # Host dirs don't like to share a cache file either, horribly enough. |
7586 | # This seems to be due to autoconf 2.5x stupidity. | |
1d694d8e | 7587 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
bafecfd6 | 7588 | |
3bd3027c | 7589 | target_configargs="$target_configargs ${tbaseargs}" |
bafecfd6 NN |
7590 | |
7591 | # Passing a --with-cross-host argument lets the target libraries know | |
7592 | # whether they are being built with a cross-compiler or being built | |
7593 | # native. However, it would be better to use other mechanisms to make the | |
7594 | # sorts of decisions they want to make on this basis. Please consider | |
7595 | # this option to be deprecated. FIXME. | |
7596 | if test x${is_cross_compiler} = xyes ; then | |
b58b6ee1 | 7597 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
bafecfd6 NN |
7598 | fi |
7599 | ||
fe508576 CV |
7600 | # Special user-friendly check for native x86_64-linux build, if |
7601 | # multilib is not explicitly enabled. | |
7602 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7603 | x86_64-*linux*:yes:$build:$build:) | |
7604 | # Make sure we have a development environment that handles 32-bit | |
7605 | dev64=no | |
7606 | echo "int main () { return 0; }" > conftest.c | |
7607 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7608 | if test $? = 0 ; then | |
7609 | if test -s conftest || test -s conftest.exe ; then | |
7610 | dev64=yes | |
7611 | fi | |
7612 | fi | |
7613 | rm -f conftest* | |
7614 | if test x${dev64} != xyes ; then | |
6d3ddf51 | 7615 | as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
fe508576 CV |
7616 | fi |
7617 | ;; | |
7618 | esac | |
7619 | ||
5d239c61 RW |
7620 | # Default to --enable-multilib. |
7621 | if test x${enable_multilib} = x ; then | |
bafecfd6 | 7622 | target_configargs="--enable-multilib ${target_configargs}" |
5d239c61 | 7623 | fi |
bafecfd6 NN |
7624 | |
7625 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7626 | # changed from the earlier setting of with_newlib. | |
7627 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7628 | target_configargs="--with-newlib ${target_configargs}" | |
7629 | fi | |
7630 | ||
5b28b6ef NN |
7631 | # Different target subdirs use different values of certain variables |
7632 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7633 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7634 | # it doesn't automatically accept command-line overrides of them. | |
7635 | # This means it's not safe for target subdirs to share a cache file, | |
7636 | # which is disgusting, but there you have it. Hopefully this can be | |
7637 | # fixed in future. It's still worthwhile to use a cache file for each | |
7638 | # directory. I think. | |
7639 | ||
29730600 MS |
7640 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7641 | # We need to pass --target, as newer autoconf's requires consistency | |
7642 | # for target_alias and gcc doesn't manage it consistently. | |
42f55f77 | 7643 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
bafecfd6 | 7644 | |
bafecfd6 NN |
7645 | FLAGS_FOR_TARGET= |
7646 | case " $target_configdirs " in | |
7647 | *" newlib "*) | |
7648 | case " $target_configargs " in | |
7649 | *" --with-newlib "*) | |
7650 | case "$target" in | |
5074489a | 7651 | *-cygwin*) |
738ff2e8 | 7652 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5074489a | 7653 | ;; |
bafecfd6 NN |
7654 | esac |
7655 | ||
7656 | # If we're not building GCC, don't discard standard headers. | |
7657 | if test -d ${srcdir}/gcc; then | |
7658 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7659 | ||
7660 | if test "${build}" != "${host}"; then | |
7661 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7662 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7663 | # to it. This is right: we don't want to search that directory | |
7664 | # for binaries, but we want the header files in there, so add | |
7665 | # them explicitly. | |
d5b7129a | 7666 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
bafecfd6 NN |
7667 | |
7668 | # Someone might think of using the pre-installed headers on | |
7669 | # Canadian crosses, in case the installed compiler is not fully | |
7670 | # compatible with the compiler being built. In this case, it | |
7671 | # would be better to flag an error than risking having | |
7672 | # incompatible object files being constructed. We can't | |
7673 | # guarantee that an error will be flagged, but let's hope the | |
7674 | # compiler will do it, when presented with incompatible header | |
7675 | # files. | |
7676 | fi | |
7677 | fi | |
7678 | ||
7679 | case "${target}-${is_cross_compiler}" in | |
08049c01 | 7680 | i[3456789]86-*-linux*-no) |
bafecfd6 NN |
7681 | # Here host == target, so we don't need to build gcc, |
7682 | # so we don't want to discard standard headers. | |
7683 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7684 | ;; | |
7685 | *) | |
7686 | # If we're building newlib, use its generic headers last, but search | |
7687 | # for any libc-related directories first (so make it the last -B | |
7688 | # switch). | |
7689 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
46093329 DD |
7690 | |
7691 | # If we're building libgloss, find the startup file, simulator library | |
7692 | # and linker script. | |
7693 | case " $target_configdirs " in | |
7694 | *" libgloss "*) | |
7695 | # Look for startup file, simulator library and maybe linker script. | |
7696 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7697 | # Look for libnosys.a in case the target needs it. | |
7698 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7699 | # Most targets have the linker script in the source directory. | |
7700 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7701 | ;; | |
7702 | esac | |
bafecfd6 NN |
7703 | ;; |
7704 | esac | |
7705 | ;; | |
7706 | esac | |
7707 | ;; | |
7708 | esac | |
5074489a | 7709 | |
bc668665 | 7710 | case "$target" in |
5074489a AO |
7711 | x86_64-*mingw* | *-w64-mingw*) |
7712 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7713 | # however, use a symlink named 'mingw' in ${prefix} . | |
7714 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7715 | ;; | |
7716 | *-mingw*) | |
7717 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7718 | 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' | |
7719 | ;; | |
bc668665 | 7720 | esac |
bafecfd6 | 7721 | |
e9ea9dec DD |
7722 | # Allow the user to override the flags for |
7723 | # our build compiler if desired. | |
77961173 NC |
7724 | if test x"${build}" = x"${host}" ; then |
7725 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7726 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7727 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7728 | fi | |
e9ea9dec | 7729 | |
bafecfd6 NN |
7730 | # On Canadian crosses, we'll be searching the right directories for |
7731 | # the previously-installed cross compiler, so don't bother to add | |
7732 | # flags for directories within the install tree of the compiler | |
7733 | # being built; programs in there won't even run. | |
7734 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7735 | # Search for pre-installed headers if nothing else fits. | |
2245eb63 | 7736 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
bafecfd6 NN |
7737 | fi |
7738 | ||
7739 | if test "x${use_gnu_ld}" = x && | |
7740 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7741 | # Arrange for us to find uninstalled linker scripts. | |
7fc2ca22 | 7742 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
bafecfd6 NN |
7743 | fi |
7744 | ||
ad352d9b DD |
7745 | # Search for other target-specific linker scripts and such. |
7746 | case "${target}" in | |
4e16301e DB |
7747 | mep*) |
7748 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7749 | ;; | |
7750 | esac | |
7751 | ||
bafecfd6 | 7752 | # Makefile fragments. |
96979a18 PB |
7753 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7754 | do | |
7755 | eval fragval=\$$frag | |
7756 | if test $fragval != /dev/null; then | |
7757 | eval $frag=${srcdir}/$fragval | |
7758 | fi | |
7759 | done | |
bafecfd6 NN |
7760 | |
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | # Miscellanea: directories, flags, etc. | |
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | ||
8453fdba | 7773 | |
2cb47d68 | 7774 | # Build module lists & subconfigure args. |
bafecfd6 NN |
7775 | |
7776 | ||
7777 | ||
a7dc05b5 PB |
7778 | # Host module lists & subconfigure args. |
7779 | ||
7780 | ||
7781 | ||
e894eef9 | 7782 | |
a7dc05b5 PB |
7783 | # Target module lists & subconfigure args. |
7784 | ||
7785 | ||
7786 | ||
7787 | # Build tools. | |
7788 | ||
7789 | ||
7790 | ||
4413ec01 PB |
7791 | |
7792 | ||
7793 | ||
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
7800 | ||
7801 | ||
7802 | ||
7803 | ||
7804 | ||
a7dc05b5 PB |
7805 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7806 | # on the build machine. These are used if the Makefile can't locate these | |
7807 | # programs in objdir. | |
7808 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7809 | ||
7810 | for ac_prog in 'bison -y' byacc yacc | |
7811 | do | |
b58b6ee1 | 7812 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7813 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7815 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 7816 | if ${ac_cv_prog_YACC+:} false; then : |
efd58f08 | 7817 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
7818 | else |
7819 | if test -n "$YACC"; then | |
7820 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7821 | else | |
b58b6ee1 DJ |
7822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7823 | for as_dir in $PATH | |
7824 | do | |
7825 | IFS=$as_save_IFS | |
7826 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 7827 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 7828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 7829 | ac_cv_prog_YACC="$ac_prog" |
efd58f08 | 7830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7831 | break 2 |
7832 | fi | |
7833 | done | |
efd58f08 RW |
7834 | done |
7835 | IFS=$as_save_IFS | |
b58b6ee1 | 7836 | |
a7dc05b5 PB |
7837 | fi |
7838 | fi | |
b58b6ee1 | 7839 | YACC=$ac_cv_prog_YACC |
a7dc05b5 | 7840 | if test -n "$YACC"; then |
efd58f08 RW |
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7842 | $as_echo "$YACC" >&6; } | |
a7dc05b5 | 7843 | else |
efd58f08 RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7845 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7846 | fi |
7847 | ||
efd58f08 | 7848 | |
b58b6ee1 | 7849 | test -n "$YACC" && break |
a7dc05b5 PB |
7850 | done |
7851 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7852 | ||
7853 | case " $build_configdirs " in | |
7854 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
a7dc05b5 PB |
7855 | esac |
7856 | ||
7857 | for ac_prog in bison | |
7858 | do | |
b58b6ee1 | 7859 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7860 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7862 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 7863 | if ${ac_cv_prog_BISON+:} false; then : |
efd58f08 | 7864 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
7865 | else |
7866 | if test -n "$BISON"; then | |
7867 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7868 | else | |
b58b6ee1 DJ |
7869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7870 | for as_dir in $PATH | |
7871 | do | |
7872 | IFS=$as_save_IFS | |
7873 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 7874 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 7875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 7876 | ac_cv_prog_BISON="$ac_prog" |
efd58f08 | 7877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7878 | break 2 |
7879 | fi | |
7880 | done | |
efd58f08 RW |
7881 | done |
7882 | IFS=$as_save_IFS | |
b58b6ee1 | 7883 | |
a7dc05b5 PB |
7884 | fi |
7885 | fi | |
b58b6ee1 | 7886 | BISON=$ac_cv_prog_BISON |
a7dc05b5 | 7887 | if test -n "$BISON"; then |
efd58f08 RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7889 | $as_echo "$BISON" >&6; } | |
a7dc05b5 | 7890 | else |
efd58f08 RW |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7892 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7893 | fi |
7894 | ||
efd58f08 | 7895 | |
b58b6ee1 | 7896 | test -n "$BISON" && break |
a7dc05b5 PB |
7897 | done |
7898 | test -n "$BISON" || BISON="$MISSING bison" | |
7899 | ||
7900 | case " $build_configdirs " in | |
7901 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7902 | esac | |
7903 | ||
7904 | for ac_prog in gm4 gnum4 m4 | |
7905 | do | |
b58b6ee1 | 7906 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7907 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7909 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 7910 | if ${ac_cv_prog_M4+:} false; then : |
efd58f08 | 7911 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
7912 | else |
7913 | if test -n "$M4"; then | |
7914 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7915 | else | |
b58b6ee1 DJ |
7916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7917 | for as_dir in $PATH | |
7918 | do | |
7919 | IFS=$as_save_IFS | |
7920 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 7921 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 7922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 7923 | ac_cv_prog_M4="$ac_prog" |
efd58f08 | 7924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7925 | break 2 |
7926 | fi | |
7927 | done | |
efd58f08 RW |
7928 | done |
7929 | IFS=$as_save_IFS | |
b58b6ee1 | 7930 | |
a7dc05b5 PB |
7931 | fi |
7932 | fi | |
b58b6ee1 | 7933 | M4=$ac_cv_prog_M4 |
a7dc05b5 | 7934 | if test -n "$M4"; then |
efd58f08 RW |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7936 | $as_echo "$M4" >&6; } | |
a7dc05b5 | 7937 | else |
efd58f08 RW |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7939 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7940 | fi |
7941 | ||
efd58f08 | 7942 | |
b58b6ee1 | 7943 | test -n "$M4" && break |
a7dc05b5 PB |
7944 | done |
7945 | test -n "$M4" || M4="$MISSING m4" | |
7946 | ||
7947 | case " $build_configdirs " in | |
7948 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7949 | esac | |
7950 | ||
7951 | for ac_prog in flex lex | |
7952 | do | |
b58b6ee1 | 7953 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 7954 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7956 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 7957 | if ${ac_cv_prog_LEX+:} false; then : |
efd58f08 | 7958 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
7959 | else |
7960 | if test -n "$LEX"; then | |
7961 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7962 | else | |
b58b6ee1 DJ |
7963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7964 | for as_dir in $PATH | |
7965 | do | |
7966 | IFS=$as_save_IFS | |
7967 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 7968 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 7969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 7970 | ac_cv_prog_LEX="$ac_prog" |
efd58f08 | 7971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
7972 | break 2 |
7973 | fi | |
7974 | done | |
efd58f08 RW |
7975 | done |
7976 | IFS=$as_save_IFS | |
b58b6ee1 | 7977 | |
a7dc05b5 PB |
7978 | fi |
7979 | fi | |
b58b6ee1 | 7980 | LEX=$ac_cv_prog_LEX |
a7dc05b5 | 7981 | if test -n "$LEX"; then |
efd58f08 RW |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7983 | $as_echo "$LEX" >&6; } | |
a7dc05b5 | 7984 | else |
efd58f08 RW |
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7986 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
7987 | fi |
7988 | ||
efd58f08 | 7989 | |
b58b6ee1 | 7990 | test -n "$LEX" && break |
a7dc05b5 PB |
7991 | done |
7992 | test -n "$LEX" || LEX="$MISSING flex" | |
7993 | ||
7994 | case " $build_configdirs " in | |
7995 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7996 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7997 | esac | |
7998 | ||
7999 | for ac_prog in flex | |
8000 | do | |
b58b6ee1 | 8001 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 8002 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8004 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8005 | if ${ac_cv_prog_FLEX+:} false; then : |
efd58f08 | 8006 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
8007 | else |
8008 | if test -n "$FLEX"; then | |
8009 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
8010 | else | |
b58b6ee1 DJ |
8011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8012 | for as_dir in $PATH | |
8013 | do | |
8014 | IFS=$as_save_IFS | |
8015 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8016 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8018 | ac_cv_prog_FLEX="$ac_prog" |
efd58f08 | 8019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8020 | break 2 |
8021 | fi | |
8022 | done | |
efd58f08 RW |
8023 | done |
8024 | IFS=$as_save_IFS | |
b58b6ee1 | 8025 | |
a7dc05b5 PB |
8026 | fi |
8027 | fi | |
b58b6ee1 | 8028 | FLEX=$ac_cv_prog_FLEX |
a7dc05b5 | 8029 | if test -n "$FLEX"; then |
efd58f08 RW |
8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8031 | $as_echo "$FLEX" >&6; } | |
a7dc05b5 | 8032 | else |
efd58f08 RW |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8034 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
8035 | fi |
8036 | ||
efd58f08 | 8037 | |
b58b6ee1 | 8038 | test -n "$FLEX" && break |
a7dc05b5 PB |
8039 | done |
8040 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8041 | ||
8042 | case " $build_configdirs " in | |
8043 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8044 | esac | |
8045 | ||
8046 | for ac_prog in makeinfo | |
8047 | do | |
b58b6ee1 | 8048 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 8049 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8051 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8052 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
efd58f08 | 8053 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
8054 | else |
8055 | if test -n "$MAKEINFO"; then | |
8056 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8057 | else | |
b58b6ee1 DJ |
8058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8059 | for as_dir in $PATH | |
8060 | do | |
8061 | IFS=$as_save_IFS | |
8062 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8063 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8065 | ac_cv_prog_MAKEINFO="$ac_prog" |
efd58f08 | 8066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8067 | break 2 |
8068 | fi | |
8069 | done | |
efd58f08 RW |
8070 | done |
8071 | IFS=$as_save_IFS | |
b58b6ee1 | 8072 | |
a7dc05b5 PB |
8073 | fi |
8074 | fi | |
b58b6ee1 | 8075 | MAKEINFO=$ac_cv_prog_MAKEINFO |
a7dc05b5 | 8076 | if test -n "$MAKEINFO"; then |
efd58f08 RW |
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8078 | $as_echo "$MAKEINFO" >&6; } | |
a7dc05b5 | 8079 | else |
efd58f08 RW |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8081 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
8082 | fi |
8083 | ||
efd58f08 | 8084 | |
b58b6ee1 | 8085 | test -n "$MAKEINFO" && break |
a7dc05b5 PB |
8086 | done |
8087 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8088 | ||
8089 | case " $build_configdirs " in | |
8090 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8091 | *) | |
8092 | ||
3ac4fba1 | 8093 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
a7dc05b5 PB |
8094 | # higher, else we use the "missing" dummy. |
8095 | if ${MAKEINFO} --version \ | |
3ac4fba1 | 8096 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
a7dc05b5 PB |
8097 | : |
8098 | else | |
8099 | MAKEINFO="$MISSING makeinfo" | |
8100 | fi | |
8101 | ;; | |
8102 | ||
8103 | esac | |
bafecfd6 | 8104 | |
a7dc05b5 | 8105 | # FIXME: expect and dejagnu may become build tools? |
bafecfd6 | 8106 | |
a7dc05b5 PB |
8107 | for ac_prog in expect |
8108 | do | |
b58b6ee1 | 8109 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 8110 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8112 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8113 | if ${ac_cv_prog_EXPECT+:} false; then : |
efd58f08 | 8114 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
8115 | else |
8116 | if test -n "$EXPECT"; then | |
8117 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8118 | else | |
b58b6ee1 DJ |
8119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8120 | for as_dir in $PATH | |
8121 | do | |
8122 | IFS=$as_save_IFS | |
8123 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8124 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8126 | ac_cv_prog_EXPECT="$ac_prog" |
efd58f08 | 8127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8128 | break 2 |
8129 | fi | |
8130 | done | |
efd58f08 RW |
8131 | done |
8132 | IFS=$as_save_IFS | |
b58b6ee1 | 8133 | |
a7dc05b5 PB |
8134 | fi |
8135 | fi | |
b58b6ee1 | 8136 | EXPECT=$ac_cv_prog_EXPECT |
a7dc05b5 | 8137 | if test -n "$EXPECT"; then |
efd58f08 RW |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8139 | $as_echo "$EXPECT" >&6; } | |
a7dc05b5 | 8140 | else |
efd58f08 RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8142 | $as_echo "no" >&6; } | |
a7dc05b5 | 8143 | fi |
bafecfd6 | 8144 | |
efd58f08 | 8145 | |
b58b6ee1 | 8146 | test -n "$EXPECT" && break |
a7dc05b5 PB |
8147 | done |
8148 | test -n "$EXPECT" || EXPECT="expect" | |
bafecfd6 | 8149 | |
a7dc05b5 PB |
8150 | case " $configdirs " in |
8151 | *" expect "*) | |
8152 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8153 | ;; | |
8154 | esac | |
bafecfd6 | 8155 | |
a7dc05b5 PB |
8156 | for ac_prog in runtest |
8157 | do | |
b58b6ee1 | 8158 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a7dc05b5 | 8159 | set dummy $ac_prog; ac_word=$2 |
efd58f08 RW |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8161 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8162 | if ${ac_cv_prog_RUNTEST+:} false; then : |
efd58f08 | 8163 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
8164 | else |
8165 | if test -n "$RUNTEST"; then | |
8166 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8167 | else | |
b58b6ee1 DJ |
8168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8169 | for as_dir in $PATH | |
8170 | do | |
8171 | IFS=$as_save_IFS | |
8172 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8173 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8175 | ac_cv_prog_RUNTEST="$ac_prog" |
efd58f08 | 8176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8177 | break 2 |
8178 | fi | |
8179 | done | |
efd58f08 RW |
8180 | done |
8181 | IFS=$as_save_IFS | |
b58b6ee1 | 8182 | |
a7dc05b5 PB |
8183 | fi |
8184 | fi | |
b58b6ee1 | 8185 | RUNTEST=$ac_cv_prog_RUNTEST |
a7dc05b5 | 8186 | if test -n "$RUNTEST"; then |
efd58f08 RW |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8188 | $as_echo "$RUNTEST" >&6; } | |
a7dc05b5 | 8189 | else |
efd58f08 RW |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8191 | $as_echo "no" >&6; } | |
a7dc05b5 | 8192 | fi |
bafecfd6 | 8193 | |
efd58f08 | 8194 | |
b58b6ee1 | 8195 | test -n "$RUNTEST" && break |
a7dc05b5 PB |
8196 | done |
8197 | test -n "$RUNTEST" || RUNTEST="runtest" | |
bafecfd6 | 8198 | |
a7dc05b5 PB |
8199 | case " $configdirs " in |
8200 | *" dejagnu "*) | |
adb51f0a | 8201 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
a7dc05b5 PB |
8202 | ;; |
8203 | esac | |
bafecfd6 NN |
8204 | |
8205 | ||
bafecfd6 | 8206 | # Host tools. |
a0c92996 AC |
8207 | ncn_tool_prefix= |
8208 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8209 | ncn_target_tool_prefix= | |
8210 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8211 | ||
82026593 AO |
8212 | |
8213 | ||
8214 | if test -n "$AR"; then | |
8215 | ac_cv_prog_AR=$AR | |
8216 | elif test -n "$ac_cv_prog_AR"; then | |
8217 | AR=$ac_cv_prog_AR | |
8218 | fi | |
8219 | ||
8220 | if test -n "$ac_cv_prog_AR"; then | |
8221 | for ncn_progname in ar; do | |
8222 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8223 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8225 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8226 | if ${ac_cv_prog_AR+:} false; then : |
efd58f08 | 8227 | $as_echo_n "(cached) " >&6 |
82026593 AO |
8228 | else |
8229 | if test -n "$AR"; then | |
8230 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8231 | else | |
8232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8233 | for as_dir in $PATH | |
8234 | do | |
8235 | IFS=$as_save_IFS | |
8236 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8237 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8239 | ac_cv_prog_AR="${ncn_progname}" |
efd58f08 | 8240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8241 | break 2 |
8242 | fi | |
8243 | done | |
efd58f08 RW |
8244 | done |
8245 | IFS=$as_save_IFS | |
82026593 AO |
8246 | |
8247 | fi | |
8248 | fi | |
8249 | AR=$ac_cv_prog_AR | |
8250 | if test -n "$AR"; then | |
efd58f08 RW |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8252 | $as_echo "$AR" >&6; } | |
82026593 | 8253 | else |
efd58f08 RW |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8255 | $as_echo "no" >&6; } | |
82026593 AO |
8256 | fi |
8257 | ||
efd58f08 | 8258 | |
82026593 AO |
8259 | done |
8260 | fi | |
8261 | ||
8262 | for ncn_progname in ar; do | |
60cfca65 PB |
8263 | if test -n "$ncn_tool_prefix"; then |
8264 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8265 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8267 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8268 | if ${ac_cv_prog_AR+:} false; then : |
efd58f08 | 8269 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
8270 | else |
8271 | if test -n "$AR"; then | |
8272 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8273 | else | |
b58b6ee1 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=. | |
efd58f08 | 8279 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8281 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8283 | break 2 |
8284 | fi | |
8285 | done | |
efd58f08 RW |
8286 | done |
8287 | IFS=$as_save_IFS | |
b58b6ee1 | 8288 | |
a0c92996 AC |
8289 | fi |
8290 | fi | |
b58b6ee1 | 8291 | AR=$ac_cv_prog_AR |
a0c92996 | 8292 | if test -n "$AR"; then |
efd58f08 RW |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8294 | $as_echo "$AR" >&6; } | |
a0c92996 | 8295 | else |
efd58f08 RW |
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8297 | $as_echo "no" >&6; } | |
a0c92996 AC |
8298 | fi |
8299 | ||
efd58f08 | 8300 | |
60cfca65 PB |
8301 | fi |
8302 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8303 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8304 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8306 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8307 | if ${ac_cv_prog_AR+:} false; then : |
efd58f08 | 8308 | $as_echo_n "(cached) " >&6 |
a0c92996 | 8309 | else |
60cfca65 PB |
8310 | if test -n "$AR"; then |
8311 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
a0c92996 | 8312 | else |
b58b6ee1 DJ |
8313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8314 | for as_dir in $PATH | |
8315 | do | |
8316 | IFS=$as_save_IFS | |
8317 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8318 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8320 | ac_cv_prog_AR="${ncn_progname}" |
efd58f08 | 8321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8322 | break 2 |
8323 | fi | |
8324 | done | |
efd58f08 RW |
8325 | done |
8326 | IFS=$as_save_IFS | |
b58b6ee1 | 8327 | |
a0c92996 AC |
8328 | fi |
8329 | fi | |
b58b6ee1 | 8330 | AR=$ac_cv_prog_AR |
60cfca65 | 8331 | if test -n "$AR"; then |
efd58f08 RW |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8333 | $as_echo "$AR" >&6; } | |
a0c92996 | 8334 | else |
efd58f08 RW |
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8336 | $as_echo "no" >&6; } | |
a0c92996 | 8337 | fi |
b58b6ee1 | 8338 | |
efd58f08 | 8339 | |
60cfca65 PB |
8340 | fi |
8341 | test -n "$ac_cv_prog_AR" && break | |
8342 | done | |
8343 | ||
8344 | if test -z "$ac_cv_prog_AR" ; then | |
8345 | set dummy ar | |
8346 | if test $build = $host ; then | |
8347 | AR="$2" | |
a0c92996 | 8348 | else |
60cfca65 | 8349 | AR="${ncn_tool_prefix}$2" |
a0c92996 | 8350 | fi |
a0c92996 AC |
8351 | fi |
8352 | ||
82026593 AO |
8353 | |
8354 | ||
8355 | if test -n "$AS"; then | |
8356 | ac_cv_prog_AS=$AS | |
8357 | elif test -n "$ac_cv_prog_AS"; then | |
8358 | AS=$ac_cv_prog_AS | |
8359 | fi | |
8360 | ||
8361 | if test -n "$ac_cv_prog_AS"; then | |
8362 | for ncn_progname in as; do | |
8363 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8364 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8366 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8367 | if ${ac_cv_prog_AS+:} false; then : |
efd58f08 | 8368 | $as_echo_n "(cached) " >&6 |
82026593 AO |
8369 | else |
8370 | if test -n "$AS"; then | |
8371 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8372 | else | |
8373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8374 | for as_dir in $PATH | |
8375 | do | |
8376 | IFS=$as_save_IFS | |
8377 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8378 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8380 | ac_cv_prog_AS="${ncn_progname}" |
efd58f08 | 8381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8382 | break 2 |
8383 | fi | |
8384 | done | |
efd58f08 RW |
8385 | done |
8386 | IFS=$as_save_IFS | |
82026593 AO |
8387 | |
8388 | fi | |
8389 | fi | |
8390 | AS=$ac_cv_prog_AS | |
8391 | if test -n "$AS"; then | |
efd58f08 RW |
8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8393 | $as_echo "$AS" >&6; } | |
82026593 | 8394 | else |
efd58f08 RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8396 | $as_echo "no" >&6; } | |
82026593 AO |
8397 | fi |
8398 | ||
efd58f08 | 8399 | |
82026593 AO |
8400 | done |
8401 | fi | |
8402 | ||
8403 | for ncn_progname in as; do | |
60cfca65 PB |
8404 | if test -n "$ncn_tool_prefix"; then |
8405 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8406 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8408 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8409 | if ${ac_cv_prog_AS+:} false; then : |
efd58f08 | 8410 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
8411 | else |
8412 | if test -n "$AS"; then | |
8413 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
b58b6ee1 DJ |
8414 | else |
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=. | |
efd58f08 | 8420 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8422 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8424 | break 2 |
8425 | fi | |
8426 | done | |
efd58f08 RW |
8427 | done |
8428 | IFS=$as_save_IFS | |
b58b6ee1 | 8429 | |
a0c92996 AC |
8430 | fi |
8431 | fi | |
b58b6ee1 | 8432 | AS=$ac_cv_prog_AS |
a0c92996 | 8433 | if test -n "$AS"; then |
efd58f08 RW |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8435 | $as_echo "$AS" >&6; } | |
a0c92996 | 8436 | else |
efd58f08 RW |
8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8438 | $as_echo "no" >&6; } | |
a0c92996 AC |
8439 | fi |
8440 | ||
efd58f08 | 8441 | |
60cfca65 PB |
8442 | fi |
8443 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8444 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8445 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8447 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8448 | if ${ac_cv_prog_AS+:} false; then : |
efd58f08 | 8449 | $as_echo_n "(cached) " >&6 |
a0c92996 | 8450 | else |
60cfca65 PB |
8451 | if test -n "$AS"; then |
8452 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a0c92996 | 8453 | else |
b58b6ee1 DJ |
8454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8455 | for as_dir in $PATH | |
8456 | do | |
8457 | IFS=$as_save_IFS | |
8458 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8459 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8461 | ac_cv_prog_AS="${ncn_progname}" |
efd58f08 | 8462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8463 | break 2 |
8464 | fi | |
8465 | done | |
efd58f08 RW |
8466 | done |
8467 | IFS=$as_save_IFS | |
b58b6ee1 | 8468 | |
a0c92996 AC |
8469 | fi |
8470 | fi | |
b58b6ee1 | 8471 | AS=$ac_cv_prog_AS |
60cfca65 | 8472 | if test -n "$AS"; then |
efd58f08 RW |
8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8474 | $as_echo "$AS" >&6; } | |
a0c92996 | 8475 | else |
efd58f08 RW |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8477 | $as_echo "no" >&6; } | |
a0c92996 | 8478 | fi |
b58b6ee1 | 8479 | |
efd58f08 | 8480 | |
60cfca65 PB |
8481 | fi |
8482 | test -n "$ac_cv_prog_AS" && break | |
8483 | done | |
8484 | ||
8485 | if test -z "$ac_cv_prog_AS" ; then | |
8486 | set dummy as | |
8487 | if test $build = $host ; then | |
8488 | AS="$2" | |
a0c92996 | 8489 | else |
60cfca65 | 8490 | AS="${ncn_tool_prefix}$2" |
a0c92996 | 8491 | fi |
a0c92996 AC |
8492 | fi |
8493 | ||
82026593 AO |
8494 | |
8495 | ||
8496 | if test -n "$DLLTOOL"; then | |
8497 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8498 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8499 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8500 | fi | |
8501 | ||
8502 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8503 | for ncn_progname in dlltool; do | |
8504 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8505 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8507 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8508 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
efd58f08 | 8509 | $as_echo_n "(cached) " >&6 |
82026593 AO |
8510 | else |
8511 | if test -n "$DLLTOOL"; then | |
8512 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8513 | else | |
8514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8515 | for as_dir in $PATH | |
8516 | do | |
8517 | IFS=$as_save_IFS | |
8518 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8519 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8521 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
efd58f08 | 8522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8523 | break 2 |
8524 | fi | |
8525 | done | |
efd58f08 RW |
8526 | done |
8527 | IFS=$as_save_IFS | |
82026593 AO |
8528 | |
8529 | fi | |
8530 | fi | |
8531 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8532 | if test -n "$DLLTOOL"; then | |
efd58f08 RW |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8534 | $as_echo "$DLLTOOL" >&6; } | |
82026593 | 8535 | else |
efd58f08 RW |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8537 | $as_echo "no" >&6; } | |
82026593 AO |
8538 | fi |
8539 | ||
efd58f08 | 8540 | |
82026593 AO |
8541 | done |
8542 | fi | |
8543 | ||
8544 | for ncn_progname in dlltool; do | |
60cfca65 PB |
8545 | if test -n "$ncn_tool_prefix"; then |
8546 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8547 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8549 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8550 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
efd58f08 | 8551 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
8552 | else |
8553 | if test -n "$DLLTOOL"; then | |
8554 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8555 | else | |
b58b6ee1 DJ |
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=. | |
efd58f08 | 8561 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8563 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8565 | break 2 |
8566 | fi | |
8567 | done | |
efd58f08 RW |
8568 | done |
8569 | IFS=$as_save_IFS | |
b58b6ee1 | 8570 | |
a0c92996 AC |
8571 | fi |
8572 | fi | |
b58b6ee1 | 8573 | DLLTOOL=$ac_cv_prog_DLLTOOL |
a0c92996 | 8574 | if test -n "$DLLTOOL"; then |
efd58f08 RW |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8576 | $as_echo "$DLLTOOL" >&6; } | |
a0c92996 | 8577 | else |
efd58f08 RW |
8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8579 | $as_echo "no" >&6; } | |
a0c92996 AC |
8580 | fi |
8581 | ||
efd58f08 | 8582 | |
60cfca65 PB |
8583 | fi |
8584 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8585 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8586 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8588 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8589 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
efd58f08 | 8590 | $as_echo_n "(cached) " >&6 |
a0c92996 | 8591 | else |
60cfca65 PB |
8592 | if test -n "$DLLTOOL"; then |
8593 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
a0c92996 | 8594 | else |
b58b6ee1 DJ |
8595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8596 | for as_dir in $PATH | |
8597 | do | |
8598 | IFS=$as_save_IFS | |
8599 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8600 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8602 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
efd58f08 | 8603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8604 | break 2 |
8605 | fi | |
8606 | done | |
efd58f08 RW |
8607 | done |
8608 | IFS=$as_save_IFS | |
b58b6ee1 | 8609 | |
a0c92996 AC |
8610 | fi |
8611 | fi | |
b58b6ee1 | 8612 | DLLTOOL=$ac_cv_prog_DLLTOOL |
60cfca65 | 8613 | if test -n "$DLLTOOL"; then |
efd58f08 RW |
8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8615 | $as_echo "$DLLTOOL" >&6; } | |
a0c92996 | 8616 | else |
efd58f08 RW |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8618 | $as_echo "no" >&6; } | |
a0c92996 | 8619 | fi |
b58b6ee1 | 8620 | |
efd58f08 | 8621 | |
60cfca65 PB |
8622 | fi |
8623 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8624 | done | |
8625 | ||
8626 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8627 | set dummy dlltool | |
8628 | if test $build = $host ; then | |
8629 | DLLTOOL="$2" | |
a0c92996 | 8630 | else |
60cfca65 | 8631 | DLLTOOL="${ncn_tool_prefix}$2" |
a0c92996 | 8632 | fi |
a0c92996 AC |
8633 | fi |
8634 | ||
82026593 AO |
8635 | |
8636 | ||
8637 | if test -n "$LD"; then | |
8638 | ac_cv_prog_LD=$LD | |
8639 | elif test -n "$ac_cv_prog_LD"; then | |
8640 | LD=$ac_cv_prog_LD | |
8641 | fi | |
8642 | ||
8643 | if test -n "$ac_cv_prog_LD"; then | |
8644 | for ncn_progname in ld; do | |
8645 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8646 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8648 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8649 | if ${ac_cv_prog_LD+:} false; then : |
efd58f08 | 8650 | $as_echo_n "(cached) " >&6 |
82026593 AO |
8651 | else |
8652 | if test -n "$LD"; then | |
8653 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8654 | else | |
8655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8656 | for as_dir in $PATH | |
8657 | do | |
8658 | IFS=$as_save_IFS | |
8659 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8660 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8662 | ac_cv_prog_LD="${ncn_progname}" |
efd58f08 | 8663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8664 | break 2 |
8665 | fi | |
8666 | done | |
efd58f08 RW |
8667 | done |
8668 | IFS=$as_save_IFS | |
82026593 AO |
8669 | |
8670 | fi | |
8671 | fi | |
8672 | LD=$ac_cv_prog_LD | |
8673 | if test -n "$LD"; then | |
efd58f08 RW |
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8675 | $as_echo "$LD" >&6; } | |
82026593 | 8676 | else |
efd58f08 RW |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8678 | $as_echo "no" >&6; } | |
82026593 AO |
8679 | fi |
8680 | ||
efd58f08 | 8681 | |
82026593 AO |
8682 | done |
8683 | fi | |
8684 | ||
8685 | for ncn_progname in ld; do | |
60cfca65 PB |
8686 | if test -n "$ncn_tool_prefix"; then |
8687 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8688 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8690 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8691 | if ${ac_cv_prog_LD+:} false; then : |
efd58f08 | 8692 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
8693 | else |
8694 | if test -n "$LD"; then | |
8695 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8696 | else | |
b58b6ee1 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=. | |
efd58f08 | 8702 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8704 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8706 | break 2 |
8707 | fi | |
8708 | done | |
efd58f08 RW |
8709 | done |
8710 | IFS=$as_save_IFS | |
b58b6ee1 | 8711 | |
a0c92996 AC |
8712 | fi |
8713 | fi | |
b58b6ee1 | 8714 | LD=$ac_cv_prog_LD |
a0c92996 | 8715 | if test -n "$LD"; then |
efd58f08 RW |
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8717 | $as_echo "$LD" >&6; } | |
a0c92996 | 8718 | else |
efd58f08 RW |
8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8720 | $as_echo "no" >&6; } | |
a0c92996 AC |
8721 | fi |
8722 | ||
efd58f08 | 8723 | |
60cfca65 PB |
8724 | fi |
8725 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8726 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8727 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8729 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8730 | if ${ac_cv_prog_LD+:} false; then : |
efd58f08 | 8731 | $as_echo_n "(cached) " >&6 |
a0c92996 | 8732 | else |
60cfca65 PB |
8733 | if test -n "$LD"; then |
8734 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
76402c80 | 8735 | else |
b58b6ee1 DJ |
8736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8737 | for as_dir in $PATH | |
8738 | do | |
8739 | IFS=$as_save_IFS | |
8740 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8741 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8743 | ac_cv_prog_LD="${ncn_progname}" |
efd58f08 | 8744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8745 | break 2 |
8746 | fi | |
8747 | done | |
efd58f08 RW |
8748 | done |
8749 | IFS=$as_save_IFS | |
b58b6ee1 | 8750 | |
a0c92996 AC |
8751 | fi |
8752 | fi | |
b58b6ee1 | 8753 | LD=$ac_cv_prog_LD |
60cfca65 | 8754 | if test -n "$LD"; then |
efd58f08 RW |
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8756 | $as_echo "$LD" >&6; } | |
a0c92996 | 8757 | else |
efd58f08 RW |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8759 | $as_echo "no" >&6; } | |
a0c92996 | 8760 | fi |
b58b6ee1 | 8761 | |
efd58f08 | 8762 | |
60cfca65 PB |
8763 | fi |
8764 | test -n "$ac_cv_prog_LD" && break | |
8765 | done | |
8766 | ||
8767 | if test -z "$ac_cv_prog_LD" ; then | |
8768 | set dummy ld | |
8769 | if test $build = $host ; then | |
8770 | LD="$2" | |
a0c92996 | 8771 | else |
60cfca65 | 8772 | LD="${ncn_tool_prefix}$2" |
a0c92996 | 8773 | fi |
a0c92996 AC |
8774 | fi |
8775 | ||
82026593 AO |
8776 | |
8777 | ||
8778 | if test -n "$LIPO"; then | |
8779 | ac_cv_prog_LIPO=$LIPO | |
8780 | elif test -n "$ac_cv_prog_LIPO"; then | |
8781 | LIPO=$ac_cv_prog_LIPO | |
8782 | fi | |
8783 | ||
8784 | if test -n "$ac_cv_prog_LIPO"; then | |
8785 | for ncn_progname in lipo; do | |
8786 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8787 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8789 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8790 | if ${ac_cv_prog_LIPO+:} false; then : |
efd58f08 | 8791 | $as_echo_n "(cached) " >&6 |
82026593 AO |
8792 | else |
8793 | if test -n "$LIPO"; then | |
8794 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8795 | else | |
8796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8797 | for as_dir in $PATH | |
8798 | do | |
8799 | IFS=$as_save_IFS | |
8800 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8801 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8803 | ac_cv_prog_LIPO="${ncn_progname}" |
efd58f08 | 8804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
8805 | break 2 |
8806 | fi | |
8807 | done | |
efd58f08 RW |
8808 | done |
8809 | IFS=$as_save_IFS | |
82026593 AO |
8810 | |
8811 | fi | |
8812 | fi | |
8813 | LIPO=$ac_cv_prog_LIPO | |
8814 | if test -n "$LIPO"; then | |
efd58f08 RW |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8816 | $as_echo "$LIPO" >&6; } | |
82026593 | 8817 | else |
efd58f08 RW |
8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8819 | $as_echo "no" >&6; } | |
82026593 AO |
8820 | fi |
8821 | ||
efd58f08 | 8822 | |
82026593 AO |
8823 | done |
8824 | fi | |
8825 | ||
8826 | for ncn_progname in lipo; do | |
a7dc05b5 PB |
8827 | if test -n "$ncn_tool_prefix"; then |
8828 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8829 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8831 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8832 | if ${ac_cv_prog_LIPO+:} false; then : |
efd58f08 | 8833 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
8834 | else |
8835 | if test -n "$LIPO"; then | |
8836 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8837 | else | |
b58b6ee1 DJ |
8838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8839 | for as_dir in $PATH | |
8840 | do | |
8841 | IFS=$as_save_IFS | |
8842 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8843 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8845 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8847 | break 2 |
8848 | fi | |
8849 | done | |
efd58f08 RW |
8850 | done |
8851 | IFS=$as_save_IFS | |
b58b6ee1 | 8852 | |
a7dc05b5 PB |
8853 | fi |
8854 | fi | |
b58b6ee1 | 8855 | LIPO=$ac_cv_prog_LIPO |
a7dc05b5 | 8856 | if test -n "$LIPO"; then |
efd58f08 RW |
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8858 | $as_echo "$LIPO" >&6; } | |
a7dc05b5 | 8859 | else |
efd58f08 RW |
8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8861 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
8862 | fi |
8863 | ||
efd58f08 | 8864 | |
a7dc05b5 PB |
8865 | fi |
8866 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8867 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8868 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8870 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8871 | if ${ac_cv_prog_LIPO+:} false; then : |
efd58f08 | 8872 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
8873 | else |
8874 | if test -n "$LIPO"; then | |
8875 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8876 | else | |
b58b6ee1 DJ |
8877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8878 | for as_dir in $PATH | |
8879 | do | |
8880 | IFS=$as_save_IFS | |
8881 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8882 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 8884 | ac_cv_prog_LIPO="${ncn_progname}" |
efd58f08 | 8885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8886 | break 2 |
8887 | fi | |
8888 | done | |
efd58f08 RW |
8889 | done |
8890 | IFS=$as_save_IFS | |
b58b6ee1 | 8891 | |
a7dc05b5 PB |
8892 | fi |
8893 | fi | |
b58b6ee1 | 8894 | LIPO=$ac_cv_prog_LIPO |
a7dc05b5 | 8895 | if test -n "$LIPO"; then |
efd58f08 RW |
8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8897 | $as_echo "$LIPO" >&6; } | |
a7dc05b5 | 8898 | else |
efd58f08 RW |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8900 | $as_echo "no" >&6; } | |
a7dc05b5 | 8901 | fi |
b58b6ee1 | 8902 | |
efd58f08 | 8903 | |
a7dc05b5 PB |
8904 | fi |
8905 | test -n "$ac_cv_prog_LIPO" && break | |
8906 | done | |
8907 | ||
8908 | if test -z "$ac_cv_prog_LIPO" ; then | |
8909 | set dummy lipo | |
8910 | if test $build = $host ; then | |
8911 | LIPO="$2" | |
8912 | else | |
8913 | LIPO="${ncn_tool_prefix}$2" | |
8914 | fi | |
8915 | fi | |
8916 | ||
82026593 AO |
8917 | |
8918 | ||
8919 | if test -n "$NM"; then | |
8920 | ac_cv_prog_NM=$NM | |
8921 | elif test -n "$ac_cv_prog_NM"; then | |
8922 | NM=$ac_cv_prog_NM | |
8923 | fi | |
8924 | ||
8925 | if test -n "$ac_cv_prog_NM"; then | |
8926 | for ncn_progname in nm; do | |
8927 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8928 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8930 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8931 | if ${ac_cv_prog_NM+:} false; then : |
efd58f08 | 8932 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
8933 | else |
8934 | if test -n "$NM"; then | |
8935 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8936 | else | |
b58b6ee1 DJ |
8937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8938 | for as_dir in $PATH | |
8939 | do | |
8940 | IFS=$as_save_IFS | |
8941 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8942 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8944 | ac_cv_prog_NM="${ncn_progname}" |
efd58f08 | 8945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8946 | break 2 |
8947 | fi | |
8948 | done | |
efd58f08 RW |
8949 | done |
8950 | IFS=$as_save_IFS | |
b58b6ee1 | 8951 | |
a0c92996 AC |
8952 | fi |
8953 | fi | |
b58b6ee1 | 8954 | NM=$ac_cv_prog_NM |
a0c92996 | 8955 | if test -n "$NM"; then |
efd58f08 RW |
8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8957 | $as_echo "$NM" >&6; } | |
a0c92996 | 8958 | else |
efd58f08 RW |
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8960 | $as_echo "no" >&6; } | |
a0c92996 AC |
8961 | fi |
8962 | ||
efd58f08 | 8963 | |
82026593 AO |
8964 | done |
8965 | fi | |
8966 | ||
8967 | for ncn_progname in nm; do | |
8968 | if test -n "$ncn_tool_prefix"; then | |
8969 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8970 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8972 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 8973 | if ${ac_cv_prog_NM+:} false; then : |
efd58f08 | 8974 | $as_echo_n "(cached) " >&6 |
a0c92996 | 8975 | else |
60cfca65 PB |
8976 | if test -n "$NM"; then |
8977 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
a0c92996 | 8978 | else |
b58b6ee1 DJ |
8979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8980 | for as_dir in $PATH | |
8981 | do | |
8982 | IFS=$as_save_IFS | |
8983 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 8984 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 8985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 8986 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 8987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
8988 | break 2 |
8989 | fi | |
8990 | done | |
efd58f08 RW |
8991 | done |
8992 | IFS=$as_save_IFS | |
b58b6ee1 | 8993 | |
a0c92996 AC |
8994 | fi |
8995 | fi | |
b58b6ee1 | 8996 | NM=$ac_cv_prog_NM |
60cfca65 | 8997 | if test -n "$NM"; then |
efd58f08 RW |
8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8999 | $as_echo "$NM" >&6; } | |
a0c92996 | 9000 | else |
efd58f08 RW |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9002 | $as_echo "no" >&6; } | |
a0c92996 | 9003 | fi |
b58b6ee1 | 9004 | |
efd58f08 | 9005 | |
60cfca65 | 9006 | fi |
82026593 AO |
9007 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
9008 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9009 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9011 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9012 | if ${ac_cv_prog_NM+:} false; then : |
efd58f08 | 9013 | $as_echo_n "(cached) " >&6 |
82026593 AO |
9014 | else |
9015 | if test -n "$NM"; then | |
9016 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9017 | else | |
9018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9019 | for as_dir in $PATH | |
9020 | do | |
9021 | IFS=$as_save_IFS | |
9022 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9023 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 9025 | ac_cv_prog_NM="${ncn_progname}" |
efd58f08 | 9026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9027 | break 2 |
9028 | fi | |
9029 | done | |
efd58f08 RW |
9030 | done |
9031 | IFS=$as_save_IFS | |
82026593 AO |
9032 | |
9033 | fi | |
9034 | fi | |
9035 | NM=$ac_cv_prog_NM | |
9036 | if test -n "$NM"; then | |
efd58f08 RW |
9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9038 | $as_echo "$NM" >&6; } | |
82026593 | 9039 | else |
efd58f08 RW |
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9041 | $as_echo "no" >&6; } | |
82026593 AO |
9042 | fi |
9043 | ||
efd58f08 | 9044 | |
82026593 AO |
9045 | fi |
9046 | test -n "$ac_cv_prog_NM" && break | |
9047 | done | |
9048 | ||
9049 | if test -z "$ac_cv_prog_NM" ; then | |
9050 | set dummy nm | |
9051 | if test $build = $host ; then | |
9052 | NM="$2" | |
9053 | else | |
9054 | NM="${ncn_tool_prefix}$2" | |
9055 | fi | |
9056 | fi | |
9057 | ||
9058 | ||
9059 | ||
9060 | if test -n "$RANLIB"; then | |
9061 | ac_cv_prog_RANLIB=$RANLIB | |
9062 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9063 | RANLIB=$ac_cv_prog_RANLIB | |
9064 | fi | |
9065 | ||
9066 | if test -n "$ac_cv_prog_RANLIB"; then | |
9067 | for ncn_progname in ranlib; do | |
9068 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9069 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9071 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9072 | if ${ac_cv_prog_RANLIB+:} false; then : |
efd58f08 | 9073 | $as_echo_n "(cached) " >&6 |
82026593 AO |
9074 | else |
9075 | if test -n "$RANLIB"; then | |
9076 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9077 | else | |
9078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9079 | for as_dir in $PATH | |
9080 | do | |
9081 | IFS=$as_save_IFS | |
9082 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9083 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 9085 | ac_cv_prog_RANLIB="${ncn_progname}" |
efd58f08 | 9086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9087 | break 2 |
9088 | fi | |
9089 | done | |
efd58f08 RW |
9090 | done |
9091 | IFS=$as_save_IFS | |
82026593 AO |
9092 | |
9093 | fi | |
9094 | fi | |
9095 | RANLIB=$ac_cv_prog_RANLIB | |
9096 | if test -n "$RANLIB"; then | |
efd58f08 RW |
9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9098 | $as_echo "$RANLIB" >&6; } | |
82026593 | 9099 | else |
efd58f08 RW |
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9101 | $as_echo "no" >&6; } | |
82026593 AO |
9102 | fi |
9103 | ||
efd58f08 | 9104 | |
82026593 AO |
9105 | done |
9106 | fi | |
a0c92996 | 9107 | |
82026593 | 9108 | for ncn_progname in ranlib; do |
60cfca65 PB |
9109 | if test -n "$ncn_tool_prefix"; then |
9110 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9111 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9113 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9114 | if ${ac_cv_prog_RANLIB+:} false; then : |
efd58f08 | 9115 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
9116 | else |
9117 | if test -n "$RANLIB"; then | |
9118 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9119 | else | |
b58b6ee1 DJ |
9120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9121 | for as_dir in $PATH | |
9122 | do | |
9123 | IFS=$as_save_IFS | |
9124 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9125 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9127 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9129 | break 2 |
9130 | fi | |
9131 | done | |
efd58f08 RW |
9132 | done |
9133 | IFS=$as_save_IFS | |
b58b6ee1 | 9134 | |
a0c92996 AC |
9135 | fi |
9136 | fi | |
b58b6ee1 | 9137 | RANLIB=$ac_cv_prog_RANLIB |
a0c92996 | 9138 | if test -n "$RANLIB"; then |
efd58f08 RW |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9140 | $as_echo "$RANLIB" >&6; } | |
a0c92996 | 9141 | else |
efd58f08 RW |
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9143 | $as_echo "no" >&6; } | |
a0c92996 AC |
9144 | fi |
9145 | ||
efd58f08 | 9146 | |
60cfca65 PB |
9147 | fi |
9148 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9149 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9150 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9152 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9153 | if ${ac_cv_prog_RANLIB+:} false; then : |
efd58f08 | 9154 | $as_echo_n "(cached) " >&6 |
a0c92996 | 9155 | else |
60cfca65 PB |
9156 | if test -n "$RANLIB"; then |
9157 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
a0c92996 | 9158 | else |
b58b6ee1 DJ |
9159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9160 | for as_dir in $PATH | |
9161 | do | |
9162 | IFS=$as_save_IFS | |
9163 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9164 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9166 | ac_cv_prog_RANLIB="${ncn_progname}" |
efd58f08 | 9167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9168 | break 2 |
9169 | fi | |
9170 | done | |
efd58f08 RW |
9171 | done |
9172 | IFS=$as_save_IFS | |
b58b6ee1 | 9173 | |
a0c92996 AC |
9174 | fi |
9175 | fi | |
b58b6ee1 | 9176 | RANLIB=$ac_cv_prog_RANLIB |
60cfca65 | 9177 | if test -n "$RANLIB"; then |
efd58f08 RW |
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9179 | $as_echo "$RANLIB" >&6; } | |
a0c92996 | 9180 | else |
efd58f08 RW |
9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9182 | $as_echo "no" >&6; } | |
a0c92996 | 9183 | fi |
b58b6ee1 | 9184 | |
efd58f08 | 9185 | |
a0c92996 | 9186 | fi |
60cfca65 PB |
9187 | test -n "$ac_cv_prog_RANLIB" && break |
9188 | done | |
9189 | ||
9190 | if test -z "$ac_cv_prog_RANLIB" ; then | |
56fbdfab | 9191 | RANLIB="true" |
a0c92996 AC |
9192 | fi |
9193 | ||
82026593 AO |
9194 | |
9195 | ||
9196 | if test -n "$STRIP"; then | |
9197 | ac_cv_prog_STRIP=$STRIP | |
9198 | elif test -n "$ac_cv_prog_STRIP"; then | |
9199 | STRIP=$ac_cv_prog_STRIP | |
9200 | fi | |
9201 | ||
9202 | if test -n "$ac_cv_prog_STRIP"; then | |
9203 | for ncn_progname in strip; do | |
9204 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9205 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9207 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9208 | if ${ac_cv_prog_STRIP+:} false; then : |
efd58f08 | 9209 | $as_echo_n "(cached) " >&6 |
82026593 AO |
9210 | else |
9211 | if test -n "$STRIP"; then | |
9212 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9213 | else | |
9214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9215 | for as_dir in $PATH | |
9216 | do | |
9217 | IFS=$as_save_IFS | |
9218 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9219 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 9221 | ac_cv_prog_STRIP="${ncn_progname}" |
efd58f08 | 9222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9223 | break 2 |
9224 | fi | |
9225 | done | |
efd58f08 RW |
9226 | done |
9227 | IFS=$as_save_IFS | |
82026593 AO |
9228 | |
9229 | fi | |
9230 | fi | |
9231 | STRIP=$ac_cv_prog_STRIP | |
9232 | if test -n "$STRIP"; then | |
efd58f08 RW |
9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9234 | $as_echo "$STRIP" >&6; } | |
82026593 | 9235 | else |
efd58f08 RW |
9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9237 | $as_echo "no" >&6; } | |
82026593 AO |
9238 | fi |
9239 | ||
efd58f08 | 9240 | |
82026593 AO |
9241 | done |
9242 | fi | |
9243 | ||
9244 | for ncn_progname in strip; do | |
a7dc05b5 PB |
9245 | if test -n "$ncn_tool_prefix"; then |
9246 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9247 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9249 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9250 | if ${ac_cv_prog_STRIP+:} false; then : |
efd58f08 | 9251 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
9252 | else |
9253 | if test -n "$STRIP"; then | |
9254 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9255 | else | |
b58b6ee1 DJ |
9256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9257 | for as_dir in $PATH | |
9258 | do | |
9259 | IFS=$as_save_IFS | |
9260 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9261 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9263 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9265 | break 2 |
9266 | fi | |
9267 | done | |
efd58f08 RW |
9268 | done |
9269 | IFS=$as_save_IFS | |
b58b6ee1 | 9270 | |
a7dc05b5 PB |
9271 | fi |
9272 | fi | |
b58b6ee1 | 9273 | STRIP=$ac_cv_prog_STRIP |
a7dc05b5 | 9274 | if test -n "$STRIP"; then |
efd58f08 RW |
9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9276 | $as_echo "$STRIP" >&6; } | |
a7dc05b5 | 9277 | else |
efd58f08 RW |
9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9279 | $as_echo "no" >&6; } | |
a7dc05b5 PB |
9280 | fi |
9281 | ||
efd58f08 | 9282 | |
a7dc05b5 PB |
9283 | fi |
9284 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9286 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9288 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9289 | if ${ac_cv_prog_STRIP+:} false; then : |
efd58f08 | 9290 | $as_echo_n "(cached) " >&6 |
a7dc05b5 PB |
9291 | else |
9292 | if test -n "$STRIP"; then | |
9293 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9294 | else | |
b58b6ee1 DJ |
9295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9296 | for as_dir in $PATH | |
9297 | do | |
9298 | IFS=$as_save_IFS | |
9299 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9300 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9302 | ac_cv_prog_STRIP="${ncn_progname}" |
efd58f08 | 9303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9304 | break 2 |
9305 | fi | |
9306 | done | |
efd58f08 RW |
9307 | done |
9308 | IFS=$as_save_IFS | |
b58b6ee1 | 9309 | |
a7dc05b5 PB |
9310 | fi |
9311 | fi | |
b58b6ee1 | 9312 | STRIP=$ac_cv_prog_STRIP |
a7dc05b5 | 9313 | if test -n "$STRIP"; then |
efd58f08 RW |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9315 | $as_echo "$STRIP" >&6; } | |
a7dc05b5 | 9316 | else |
efd58f08 RW |
9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9318 | $as_echo "no" >&6; } | |
a7dc05b5 | 9319 | fi |
b58b6ee1 | 9320 | |
efd58f08 | 9321 | |
a7dc05b5 PB |
9322 | fi |
9323 | test -n "$ac_cv_prog_STRIP" && break | |
9324 | done | |
9325 | ||
9326 | if test -z "$ac_cv_prog_STRIP" ; then | |
56fbdfab | 9327 | STRIP="true" |
a7dc05b5 PB |
9328 | fi |
9329 | ||
82026593 AO |
9330 | |
9331 | ||
9332 | if test -n "$WINDRES"; then | |
9333 | ac_cv_prog_WINDRES=$WINDRES | |
9334 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9335 | WINDRES=$ac_cv_prog_WINDRES | |
9336 | fi | |
9337 | ||
9338 | if test -n "$ac_cv_prog_WINDRES"; then | |
9339 | for ncn_progname in windres; do | |
9340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9341 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9343 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9344 | if ${ac_cv_prog_WINDRES+:} false; then : |
efd58f08 | 9345 | $as_echo_n "(cached) " >&6 |
82026593 AO |
9346 | else |
9347 | if test -n "$WINDRES"; then | |
9348 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9349 | else | |
9350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9351 | for as_dir in $PATH | |
9352 | do | |
9353 | IFS=$as_save_IFS | |
9354 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9355 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 9357 | ac_cv_prog_WINDRES="${ncn_progname}" |
efd58f08 | 9358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9359 | break 2 |
9360 | fi | |
9361 | done | |
efd58f08 RW |
9362 | done |
9363 | IFS=$as_save_IFS | |
82026593 AO |
9364 | |
9365 | fi | |
9366 | fi | |
9367 | WINDRES=$ac_cv_prog_WINDRES | |
9368 | if test -n "$WINDRES"; then | |
efd58f08 RW |
9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9370 | $as_echo "$WINDRES" >&6; } | |
82026593 | 9371 | else |
efd58f08 RW |
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9373 | $as_echo "no" >&6; } | |
82026593 AO |
9374 | fi |
9375 | ||
efd58f08 | 9376 | |
82026593 AO |
9377 | done |
9378 | fi | |
9379 | ||
9380 | for ncn_progname in windres; do | |
60cfca65 PB |
9381 | if test -n "$ncn_tool_prefix"; then |
9382 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9383 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9385 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9386 | if ${ac_cv_prog_WINDRES+:} false; then : |
efd58f08 | 9387 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
9388 | else |
9389 | if test -n "$WINDRES"; then | |
9390 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9391 | else | |
b58b6ee1 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=. | |
efd58f08 | 9397 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9399 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9401 | break 2 |
9402 | fi | |
9403 | done | |
efd58f08 RW |
9404 | done |
9405 | IFS=$as_save_IFS | |
b58b6ee1 | 9406 | |
a0c92996 AC |
9407 | fi |
9408 | fi | |
b58b6ee1 | 9409 | WINDRES=$ac_cv_prog_WINDRES |
a0c92996 | 9410 | if test -n "$WINDRES"; then |
efd58f08 RW |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9412 | $as_echo "$WINDRES" >&6; } | |
a0c92996 | 9413 | else |
efd58f08 RW |
9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9415 | $as_echo "no" >&6; } | |
a0c92996 AC |
9416 | fi |
9417 | ||
efd58f08 | 9418 | |
60cfca65 PB |
9419 | fi |
9420 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9422 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9424 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9425 | if ${ac_cv_prog_WINDRES+:} false; then : |
efd58f08 | 9426 | $as_echo_n "(cached) " >&6 |
a0c92996 | 9427 | else |
60cfca65 PB |
9428 | if test -n "$WINDRES"; then |
9429 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
a0c92996 | 9430 | else |
b58b6ee1 DJ |
9431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9432 | for as_dir in $PATH | |
9433 | do | |
9434 | IFS=$as_save_IFS | |
9435 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9436 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9438 | ac_cv_prog_WINDRES="${ncn_progname}" |
efd58f08 | 9439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9440 | break 2 |
9441 | fi | |
9442 | done | |
efd58f08 RW |
9443 | done |
9444 | IFS=$as_save_IFS | |
b58b6ee1 | 9445 | |
a0c92996 AC |
9446 | fi |
9447 | fi | |
b58b6ee1 | 9448 | WINDRES=$ac_cv_prog_WINDRES |
60cfca65 | 9449 | if test -n "$WINDRES"; then |
efd58f08 RW |
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9451 | $as_echo "$WINDRES" >&6; } | |
a0c92996 | 9452 | else |
efd58f08 RW |
9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9454 | $as_echo "no" >&6; } | |
a0c92996 | 9455 | fi |
b58b6ee1 | 9456 | |
efd58f08 | 9457 | |
60cfca65 PB |
9458 | fi |
9459 | test -n "$ac_cv_prog_WINDRES" && break | |
9460 | done | |
9461 | ||
9462 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9463 | set dummy windres | |
9464 | if test $build = $host ; then | |
9465 | WINDRES="$2" | |
a0c92996 | 9466 | else |
60cfca65 | 9467 | WINDRES="${ncn_tool_prefix}$2" |
a0c92996 | 9468 | fi |
a0c92996 AC |
9469 | fi |
9470 | ||
82026593 AO |
9471 | |
9472 | ||
bffcbe34 NC |
9473 | if test -n "$WINDMC"; then |
9474 | ac_cv_prog_WINDMC=$WINDMC | |
9475 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9476 | WINDMC=$ac_cv_prog_WINDMC | |
9477 | fi | |
9478 | ||
9479 | if test -n "$ac_cv_prog_WINDMC"; then | |
9480 | for ncn_progname in windmc; do | |
9481 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9482 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9484 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9485 | if ${ac_cv_prog_WINDMC+:} false; then : |
efd58f08 | 9486 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
9487 | else |
9488 | if test -n "$WINDMC"; then | |
9489 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9490 | else | |
9491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9492 | for as_dir in $PATH | |
9493 | do | |
9494 | IFS=$as_save_IFS | |
9495 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9496 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 9498 | ac_cv_prog_WINDMC="${ncn_progname}" |
efd58f08 | 9499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9500 | break 2 |
9501 | fi | |
9502 | done | |
efd58f08 RW |
9503 | done |
9504 | IFS=$as_save_IFS | |
bffcbe34 NC |
9505 | |
9506 | fi | |
9507 | fi | |
9508 | WINDMC=$ac_cv_prog_WINDMC | |
9509 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9511 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9512 | else |
efd58f08 RW |
9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9514 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9515 | fi |
9516 | ||
efd58f08 | 9517 | |
bffcbe34 NC |
9518 | done |
9519 | fi | |
9520 | ||
9521 | for ncn_progname in windmc; do | |
9522 | if test -n "$ncn_tool_prefix"; then | |
9523 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9524 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9526 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9527 | if ${ac_cv_prog_WINDMC+:} false; then : |
efd58f08 | 9528 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
9529 | else |
9530 | if test -n "$WINDMC"; then | |
9531 | ac_cv_prog_WINDMC="$WINDMC" # 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=. | |
efd58f08 | 9538 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 9540 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9542 | break 2 |
9543 | fi | |
9544 | done | |
efd58f08 RW |
9545 | done |
9546 | IFS=$as_save_IFS | |
bffcbe34 NC |
9547 | |
9548 | fi | |
9549 | fi | |
9550 | WINDMC=$ac_cv_prog_WINDMC | |
9551 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9553 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9554 | else |
efd58f08 RW |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9556 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9557 | fi |
9558 | ||
efd58f08 | 9559 | |
bffcbe34 NC |
9560 | fi |
9561 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9562 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9563 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9565 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9566 | if ${ac_cv_prog_WINDMC+:} false; then : |
efd58f08 | 9567 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
9568 | else |
9569 | if test -n "$WINDMC"; then | |
9570 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9571 | else | |
9572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9573 | for as_dir in $PATH | |
9574 | do | |
9575 | IFS=$as_save_IFS | |
9576 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9577 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 9579 | ac_cv_prog_WINDMC="${ncn_progname}" |
efd58f08 | 9580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
9581 | break 2 |
9582 | fi | |
9583 | done | |
efd58f08 RW |
9584 | done |
9585 | IFS=$as_save_IFS | |
bffcbe34 NC |
9586 | |
9587 | fi | |
9588 | fi | |
9589 | WINDMC=$ac_cv_prog_WINDMC | |
9590 | if test -n "$WINDMC"; then | |
efd58f08 RW |
9591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9592 | $as_echo "$WINDMC" >&6; } | |
bffcbe34 | 9593 | else |
efd58f08 RW |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9595 | $as_echo "no" >&6; } | |
bffcbe34 NC |
9596 | fi |
9597 | ||
efd58f08 | 9598 | |
bffcbe34 NC |
9599 | fi |
9600 | test -n "$ac_cv_prog_WINDMC" && break | |
9601 | done | |
9602 | ||
9603 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9604 | set dummy windmc | |
9605 | if test $build = $host ; then | |
9606 | WINDMC="$2" | |
9607 | else | |
9608 | WINDMC="${ncn_tool_prefix}$2" | |
9609 | fi | |
9610 | fi | |
9611 | ||
9612 | ||
9613 | ||
82026593 AO |
9614 | if test -n "$OBJCOPY"; then |
9615 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9616 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9617 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9618 | fi | |
9619 | ||
9620 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9621 | for ncn_progname in objcopy; do | |
9622 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9623 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9625 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9626 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
efd58f08 | 9627 | $as_echo_n "(cached) " >&6 |
82026593 AO |
9628 | else |
9629 | if test -n "$OBJCOPY"; then | |
9630 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9631 | else | |
9632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9633 | for as_dir in $PATH | |
9634 | do | |
9635 | IFS=$as_save_IFS | |
9636 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9637 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 9639 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
efd58f08 | 9640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9641 | break 2 |
9642 | fi | |
9643 | done | |
efd58f08 RW |
9644 | done |
9645 | IFS=$as_save_IFS | |
82026593 AO |
9646 | |
9647 | fi | |
9648 | fi | |
9649 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9650 | if test -n "$OBJCOPY"; then | |
efd58f08 RW |
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9652 | $as_echo "$OBJCOPY" >&6; } | |
82026593 | 9653 | else |
efd58f08 RW |
9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9655 | $as_echo "no" >&6; } | |
82026593 AO |
9656 | fi |
9657 | ||
efd58f08 | 9658 | |
82026593 AO |
9659 | done |
9660 | fi | |
9661 | ||
9662 | for ncn_progname in objcopy; do | |
60cfca65 PB |
9663 | if test -n "$ncn_tool_prefix"; then |
9664 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9665 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9667 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9668 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
efd58f08 | 9669 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
9670 | else |
9671 | if test -n "$OBJCOPY"; then | |
9672 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9673 | else | |
b58b6ee1 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=. | |
efd58f08 | 9679 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9681 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9683 | break 2 |
9684 | fi | |
9685 | done | |
efd58f08 RW |
9686 | done |
9687 | IFS=$as_save_IFS | |
b58b6ee1 | 9688 | |
a0c92996 AC |
9689 | fi |
9690 | fi | |
b58b6ee1 | 9691 | OBJCOPY=$ac_cv_prog_OBJCOPY |
a0c92996 | 9692 | if test -n "$OBJCOPY"; then |
efd58f08 RW |
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9694 | $as_echo "$OBJCOPY" >&6; } | |
a0c92996 | 9695 | else |
efd58f08 RW |
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9697 | $as_echo "no" >&6; } | |
a0c92996 AC |
9698 | fi |
9699 | ||
efd58f08 | 9700 | |
60cfca65 PB |
9701 | fi |
9702 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9704 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9706 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9707 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
efd58f08 | 9708 | $as_echo_n "(cached) " >&6 |
a0c92996 | 9709 | else |
60cfca65 PB |
9710 | if test -n "$OBJCOPY"; then |
9711 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
a0c92996 | 9712 | else |
b58b6ee1 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=. | |
efd58f08 | 9718 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9720 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
efd58f08 | 9721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9722 | break 2 |
9723 | fi | |
9724 | done | |
efd58f08 RW |
9725 | done |
9726 | IFS=$as_save_IFS | |
b58b6ee1 | 9727 | |
a0c92996 AC |
9728 | fi |
9729 | fi | |
b58b6ee1 | 9730 | OBJCOPY=$ac_cv_prog_OBJCOPY |
60cfca65 | 9731 | if test -n "$OBJCOPY"; then |
efd58f08 RW |
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9733 | $as_echo "$OBJCOPY" >&6; } | |
a0c92996 | 9734 | else |
efd58f08 RW |
9735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9736 | $as_echo "no" >&6; } | |
a0c92996 | 9737 | fi |
b58b6ee1 | 9738 | |
efd58f08 | 9739 | |
60cfca65 PB |
9740 | fi |
9741 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9742 | done | |
9743 | ||
9744 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9745 | set dummy objcopy | |
9746 | if test $build = $host ; then | |
9747 | OBJCOPY="$2" | |
a0c92996 | 9748 | else |
60cfca65 | 9749 | OBJCOPY="${ncn_tool_prefix}$2" |
a0c92996 | 9750 | fi |
a0c92996 AC |
9751 | fi |
9752 | ||
82026593 AO |
9753 | |
9754 | ||
9755 | if test -n "$OBJDUMP"; then | |
9756 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9757 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9758 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9759 | fi | |
9760 | ||
9761 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9762 | for ncn_progname in objdump; do | |
9763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9764 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9766 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9767 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
efd58f08 | 9768 | $as_echo_n "(cached) " >&6 |
82026593 AO |
9769 | else |
9770 | if test -n "$OBJDUMP"; then | |
9771 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9772 | else | |
9773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9774 | for as_dir in $PATH | |
9775 | do | |
9776 | IFS=$as_save_IFS | |
9777 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9778 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 9780 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
efd58f08 | 9781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
9782 | break 2 |
9783 | fi | |
9784 | done | |
efd58f08 RW |
9785 | done |
9786 | IFS=$as_save_IFS | |
82026593 AO |
9787 | |
9788 | fi | |
9789 | fi | |
9790 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9791 | if test -n "$OBJDUMP"; then | |
efd58f08 RW |
9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9793 | $as_echo "$OBJDUMP" >&6; } | |
82026593 | 9794 | else |
efd58f08 RW |
9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9796 | $as_echo "no" >&6; } | |
82026593 AO |
9797 | fi |
9798 | ||
efd58f08 | 9799 | |
82026593 AO |
9800 | done |
9801 | fi | |
9802 | ||
9803 | for ncn_progname in objdump; do | |
60cfca65 PB |
9804 | if test -n "$ncn_tool_prefix"; then |
9805 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9806 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9808 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9809 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
efd58f08 | 9810 | $as_echo_n "(cached) " >&6 |
a0c92996 AC |
9811 | else |
9812 | if test -n "$OBJDUMP"; then | |
9813 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9814 | else | |
b58b6ee1 DJ |
9815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9816 | for as_dir in $PATH | |
9817 | do | |
9818 | IFS=$as_save_IFS | |
9819 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9820 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9822 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
efd58f08 | 9823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9824 | break 2 |
9825 | fi | |
9826 | done | |
efd58f08 RW |
9827 | done |
9828 | IFS=$as_save_IFS | |
b58b6ee1 | 9829 | |
a0c92996 AC |
9830 | fi |
9831 | fi | |
b58b6ee1 | 9832 | OBJDUMP=$ac_cv_prog_OBJDUMP |
a0c92996 | 9833 | if test -n "$OBJDUMP"; then |
efd58f08 RW |
9834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9835 | $as_echo "$OBJDUMP" >&6; } | |
a0c92996 | 9836 | else |
efd58f08 RW |
9837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9838 | $as_echo "no" >&6; } | |
a0c92996 AC |
9839 | fi |
9840 | ||
efd58f08 | 9841 | |
60cfca65 PB |
9842 | fi |
9843 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9844 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9845 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
9846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9847 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9848 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
efd58f08 | 9849 | $as_echo_n "(cached) " >&6 |
a0c92996 | 9850 | else |
60cfca65 PB |
9851 | if test -n "$OBJDUMP"; then |
9852 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
a0c92996 | 9853 | else |
b58b6ee1 DJ |
9854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9855 | for as_dir in $PATH | |
9856 | do | |
9857 | IFS=$as_save_IFS | |
9858 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 9859 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 9860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 9861 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
efd58f08 | 9862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
9863 | break 2 |
9864 | fi | |
9865 | done | |
efd58f08 RW |
9866 | done |
9867 | IFS=$as_save_IFS | |
b58b6ee1 | 9868 | |
a0c92996 AC |
9869 | fi |
9870 | fi | |
b58b6ee1 | 9871 | OBJDUMP=$ac_cv_prog_OBJDUMP |
60cfca65 | 9872 | if test -n "$OBJDUMP"; then |
efd58f08 RW |
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9874 | $as_echo "$OBJDUMP" >&6; } | |
a0c92996 | 9875 | else |
efd58f08 RW |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9877 | $as_echo "no" >&6; } | |
a0c92996 | 9878 | fi |
b58b6ee1 | 9879 | |
efd58f08 | 9880 | |
60cfca65 PB |
9881 | fi |
9882 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9883 | done | |
9884 | ||
9885 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9886 | set dummy objdump | |
9887 | if test $build = $host ; then | |
9888 | OBJDUMP="$2" | |
a0c92996 | 9889 | else |
60cfca65 | 9890 | OBJDUMP="${ncn_tool_prefix}$2" |
a0c92996 | 9891 | fi |
a0c92996 AC |
9892 | fi |
9893 | ||
bafecfd6 NN |
9894 | |
9895 | ||
46e7439b DD |
9896 | if test -n "$READELF"; then |
9897 | ac_cv_prog_READELF=$READELF | |
9898 | elif test -n "$ac_cv_prog_READELF"; then | |
9899 | READELF=$ac_cv_prog_READELF | |
9900 | fi | |
9901 | ||
9902 | if test -n "$ac_cv_prog_READELF"; then | |
9903 | for ncn_progname in readelf; do | |
9904 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9905 | set dummy ${ncn_progname}; ac_word=$2 | |
9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9907 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9908 | if ${ac_cv_prog_READELF+:} false; then : |
46e7439b DD |
9909 | $as_echo_n "(cached) " >&6 |
9910 | else | |
9911 | if test -n "$READELF"; then | |
9912 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9913 | else | |
9914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9915 | for as_dir in $PATH | |
9916 | do | |
9917 | IFS=$as_save_IFS | |
9918 | test -z "$as_dir" && as_dir=. | |
9919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 9920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
9921 | ac_cv_prog_READELF="${ncn_progname}" |
9922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9923 | break 2 | |
9924 | fi | |
9925 | done | |
9926 | done | |
9927 | IFS=$as_save_IFS | |
9928 | ||
9929 | fi | |
9930 | fi | |
9931 | READELF=$ac_cv_prog_READELF | |
9932 | if test -n "$READELF"; then | |
9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9934 | $as_echo "$READELF" >&6; } | |
9935 | else | |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9937 | $as_echo "no" >&6; } | |
9938 | fi | |
9939 | ||
9940 | ||
9941 | done | |
9942 | fi | |
9943 | ||
9944 | for ncn_progname in readelf; do | |
9945 | if test -n "$ncn_tool_prefix"; then | |
9946 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9947 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9949 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9950 | if ${ac_cv_prog_READELF+:} false; then : |
46e7439b DD |
9951 | $as_echo_n "(cached) " >&6 |
9952 | else | |
9953 | if test -n "$READELF"; then | |
9954 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9955 | else | |
9956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9957 | for as_dir in $PATH | |
9958 | do | |
9959 | IFS=$as_save_IFS | |
9960 | test -z "$as_dir" && as_dir=. | |
9961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 9962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
9963 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
9964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9965 | break 2 | |
9966 | fi | |
9967 | done | |
9968 | done | |
9969 | IFS=$as_save_IFS | |
9970 | ||
9971 | fi | |
9972 | fi | |
9973 | READELF=$ac_cv_prog_READELF | |
9974 | if test -n "$READELF"; then | |
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9976 | $as_echo "$READELF" >&6; } | |
9977 | else | |
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9979 | $as_echo "no" >&6; } | |
9980 | fi | |
9981 | ||
9982 | ||
9983 | fi | |
9984 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9986 | set dummy ${ncn_progname}; ac_word=$2 | |
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9988 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 9989 | if ${ac_cv_prog_READELF+:} false; then : |
46e7439b DD |
9990 | $as_echo_n "(cached) " >&6 |
9991 | else | |
9992 | if test -n "$READELF"; then | |
9993 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9994 | else | |
9995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9996 | for as_dir in $PATH | |
9997 | do | |
9998 | IFS=$as_save_IFS | |
9999 | test -z "$as_dir" && as_dir=. | |
10000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 10001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
10002 | ac_cv_prog_READELF="${ncn_progname}" |
10003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10004 | break 2 | |
10005 | fi | |
10006 | done | |
10007 | done | |
10008 | IFS=$as_save_IFS | |
10009 | ||
10010 | fi | |
10011 | fi | |
10012 | READELF=$ac_cv_prog_READELF | |
10013 | if test -n "$READELF"; then | |
10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10015 | $as_echo "$READELF" >&6; } | |
10016 | else | |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10018 | $as_echo "no" >&6; } | |
10019 | fi | |
10020 | ||
10021 | ||
10022 | fi | |
10023 | test -n "$ac_cv_prog_READELF" && break | |
10024 | done | |
10025 | ||
10026 | if test -z "$ac_cv_prog_READELF" ; then | |
10027 | set dummy readelf | |
10028 | if test $build = $host ; then | |
10029 | READELF="$2" | |
10030 | else | |
10031 | READELF="${ncn_tool_prefix}$2" | |
10032 | fi | |
10033 | fi | |
10034 | ||
10035 | ||
10036 | ||
bafecfd6 NN |
10037 | |
10038 | ||
10039 | ||
d8d5dac0 L |
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
10041 | $as_echo_n "checking for -plugin option... " >&6; } | |
10042 | ||
10043 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
10044 | plugin_option= | |
10045 | for plugin in $plugin_names; do | |
10046 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
10047 | if test x$plugin_so = x$plugin; then | |
10048 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
10049 | fi | |
10050 | if test x$plugin_so != x$plugin; then | |
10051 | plugin_option="--plugin $plugin_so" | |
10052 | break | |
10053 | fi | |
10054 | done | |
88d86e59 L |
10055 | if test -n "$ac_tool_prefix"; then |
10056 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
10057 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10059 | $as_echo_n "checking for $ac_word... " >&6; } | |
10060 | if ${ac_cv_prog_AR+:} false; then : | |
10061 | $as_echo_n "(cached) " >&6 | |
10062 | else | |
10063 | if test -n "$AR"; then | |
10064 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10065 | else | |
10066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10067 | for as_dir in $PATH | |
10068 | do | |
10069 | IFS=$as_save_IFS | |
10070 | test -z "$as_dir" && as_dir=. | |
10071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10073 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
10074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10075 | break 2 | |
10076 | fi | |
10077 | done | |
10078 | done | |
10079 | IFS=$as_save_IFS | |
10080 | ||
10081 | fi | |
10082 | fi | |
10083 | AR=$ac_cv_prog_AR | |
10084 | if test -n "$AR"; then | |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
10086 | $as_echo "$AR" >&6; } | |
10087 | else | |
10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10089 | $as_echo "no" >&6; } | |
10090 | fi | |
10091 | ||
10092 | ||
10093 | fi | |
10094 | if test -z "$ac_cv_prog_AR"; then | |
10095 | ac_ct_AR=$AR | |
10096 | # Extract the first word of "ar", so it can be a program name with args. | |
10097 | set dummy ar; ac_word=$2 | |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10099 | $as_echo_n "checking for $ac_word... " >&6; } | |
10100 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
10101 | $as_echo_n "(cached) " >&6 | |
10102 | else | |
10103 | if test -n "$ac_ct_AR"; then | |
10104 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
10105 | else | |
10106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10107 | for as_dir in $PATH | |
10108 | do | |
10109 | IFS=$as_save_IFS | |
10110 | test -z "$as_dir" && as_dir=. | |
10111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10113 | ac_cv_prog_ac_ct_AR="ar" | |
10114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10115 | break 2 | |
10116 | fi | |
10117 | done | |
10118 | done | |
10119 | IFS=$as_save_IFS | |
10120 | ||
10121 | fi | |
10122 | fi | |
10123 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
10124 | if test -n "$ac_ct_AR"; then | |
10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
10126 | $as_echo "$ac_ct_AR" >&6; } | |
10127 | else | |
10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10129 | $as_echo "no" >&6; } | |
10130 | fi | |
10131 | ||
10132 | if test "x$ac_ct_AR" = x; then | |
10133 | AR="" | |
10134 | else | |
10135 | case $cross_compiling:$ac_tool_warned in | |
10136 | yes:) | |
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10138 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10139 | ac_tool_warned=yes ;; | |
10140 | esac | |
10141 | AR=$ac_ct_AR | |
10142 | fi | |
10143 | else | |
10144 | AR="$ac_cv_prog_AR" | |
10145 | fi | |
10146 | ||
10147 | if test "${AR}" = "" ; then | |
10148 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
10149 | fi | |
10150 | touch conftest.c | |
10151 | ${AR} $plugin_option rc conftest.a conftest.c | |
10152 | if test "$?" != 0; then | |
10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
10154 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
10155 | plugin_option= | |
10156 | fi | |
10157 | rm -f conftest.* | |
d8d5dac0 L |
10158 | if test -n "$plugin_option"; then |
10159 | PLUGIN_OPTION="$plugin_option" | |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
10161 | $as_echo "$plugin_option" >&6; } | |
10162 | else | |
10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10164 | $as_echo "no" >&6; } | |
10165 | fi | |
10166 | ||
10167 | AR_PLUGIN_OPTION= | |
10168 | RANLIB_PLUGIN_OPTION= | |
10169 | if test -n "$PLUGIN_OPTION"; then | |
10170 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
10171 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
10172 | fi | |
10173 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
10174 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
10175 | fi | |
10176 | fi | |
10177 | ||
10178 | ||
10179 | ||
a7dc05b5 | 10180 | # Target tools. |
b58b6ee1 | 10181 | |
efd58f08 RW |
10182 | # Check whether --with-build-time-tools was given. |
10183 | if test "${with_build_time_tools+set}" = set; then : | |
10184 | withval=$with_build_time_tools; case x"$withval" in | |
fef3f213 PB |
10185 | x/*) ;; |
10186 | *) | |
10187 | with_build_time_tools= | |
efd58f08 RW |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10189 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
fef3f213 PB |
10190 | ;; |
10191 | esac | |
a0c92996 | 10192 | else |
fef3f213 | 10193 | with_build_time_tools= |
efd58f08 RW |
10194 | fi |
10195 | ||
a0c92996 | 10196 | |
82026593 AO |
10197 | |
10198 | ||
10199 | if test -n "$CC_FOR_TARGET"; then | |
10200 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10201 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10202 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10203 | fi | |
10204 | ||
10205 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10206 | for ncn_progname in cc gcc; do | |
10207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10208 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10210 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10211 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
efd58f08 | 10212 | $as_echo_n "(cached) " >&6 |
82026593 AO |
10213 | else |
10214 | if test -n "$CC_FOR_TARGET"; then | |
10215 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10216 | else | |
10217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10218 | for as_dir in $PATH | |
10219 | do | |
10220 | IFS=$as_save_IFS | |
10221 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10222 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 10224 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10226 | break 2 |
10227 | fi | |
10228 | done | |
efd58f08 RW |
10229 | done |
10230 | IFS=$as_save_IFS | |
82026593 AO |
10231 | |
10232 | fi | |
10233 | fi | |
10234 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10235 | if test -n "$CC_FOR_TARGET"; then | |
efd58f08 RW |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10237 | $as_echo "$CC_FOR_TARGET" >&6; } | |
82026593 | 10238 | else |
efd58f08 RW |
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10240 | $as_echo "no" >&6; } | |
82026593 AO |
10241 | fi |
10242 | ||
efd58f08 | 10243 | |
82026593 AO |
10244 | done |
10245 | fi | |
10246 | ||
10247 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10248 | for ncn_progname in cc gcc; do |
efd58f08 RW |
10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10250 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10251 | if test -x $with_build_time_tools/${ncn_progname}; then |
10252 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10254 | $as_echo "yes" >&6; } | |
f69e2532 | 10255 | break |
fef3f213 | 10256 | else |
efd58f08 RW |
10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10258 | $as_echo "no" >&6; } | |
f69e2532 CM |
10259 | fi |
10260 | done | |
5fb28bcc PB |
10261 | fi |
10262 | ||
fef3f213 PB |
10263 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10264 | for ncn_progname in cc gcc; do | |
10265 | if test -n "$ncn_target_tool_prefix"; then | |
10266 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10267 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10269 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10270 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
efd58f08 | 10271 | $as_echo_n "(cached) " >&6 |
5fb28bcc PB |
10272 | else |
10273 | if test -n "$CC_FOR_TARGET"; then | |
10274 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10275 | else | |
b58b6ee1 DJ |
10276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10277 | for as_dir in $PATH | |
10278 | do | |
10279 | IFS=$as_save_IFS | |
10280 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10281 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10283 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10285 | break 2 |
10286 | fi | |
10287 | done | |
efd58f08 RW |
10288 | done |
10289 | IFS=$as_save_IFS | |
b58b6ee1 | 10290 | |
5fb28bcc PB |
10291 | fi |
10292 | fi | |
b58b6ee1 | 10293 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
5fb28bcc | 10294 | if test -n "$CC_FOR_TARGET"; then |
efd58f08 RW |
10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10296 | $as_echo "$CC_FOR_TARGET" >&6; } | |
5fb28bcc | 10297 | else |
efd58f08 RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10299 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10300 | fi |
10301 | ||
efd58f08 | 10302 | |
fef3f213 PB |
10303 | fi |
10304 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10305 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10306 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10308 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10309 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
efd58f08 | 10310 | $as_echo_n "(cached) " >&6 |
5fb28bcc | 10311 | else |
60cfca65 PB |
10312 | if test -n "$CC_FOR_TARGET"; then |
10313 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10314 | else |
b58b6ee1 DJ |
10315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10316 | for as_dir in $PATH | |
10317 | do | |
10318 | IFS=$as_save_IFS | |
10319 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10320 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10322 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10324 | break 2 |
10325 | fi | |
10326 | done | |
efd58f08 RW |
10327 | done |
10328 | IFS=$as_save_IFS | |
b58b6ee1 | 10329 | |
5fb28bcc PB |
10330 | fi |
10331 | fi | |
b58b6ee1 | 10332 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
60cfca65 | 10333 | if test -n "$CC_FOR_TARGET"; then |
efd58f08 RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10335 | $as_echo "$CC_FOR_TARGET" >&6; } | |
5fb28bcc | 10336 | else |
efd58f08 RW |
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10338 | $as_echo "no" >&6; } | |
5fb28bcc | 10339 | fi |
b58b6ee1 | 10340 | |
efd58f08 | 10341 | |
fef3f213 PB |
10342 | fi |
10343 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10344 | done | |
10345 | fi | |
b58b6ee1 | 10346 | |
60cfca65 PB |
10347 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10348 | set dummy cc gcc | |
10349 | if test $build = $target ; then | |
10350 | CC_FOR_TARGET="$2" | |
5fb28bcc | 10351 | else |
60cfca65 | 10352 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10353 | fi |
d058b81b MS |
10354 | else |
10355 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
5fb28bcc PB |
10356 | fi |
10357 | ||
82026593 AO |
10358 | |
10359 | ||
10360 | if test -n "$CXX_FOR_TARGET"; then | |
10361 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10362 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10363 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10364 | fi | |
10365 | ||
10366 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10367 | for ncn_progname in c++ g++ cxx gxx; do | |
10368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10369 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10371 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10372 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
efd58f08 | 10373 | $as_echo_n "(cached) " >&6 |
82026593 AO |
10374 | else |
10375 | if test -n "$CXX_FOR_TARGET"; then | |
10376 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10377 | else | |
10378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10379 | for as_dir in $PATH | |
10380 | do | |
10381 | IFS=$as_save_IFS | |
10382 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10383 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 10385 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10387 | break 2 |
10388 | fi | |
10389 | done | |
efd58f08 RW |
10390 | done |
10391 | IFS=$as_save_IFS | |
82026593 AO |
10392 | |
10393 | fi | |
10394 | fi | |
10395 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10396 | if test -n "$CXX_FOR_TARGET"; then | |
efd58f08 RW |
10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10398 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
82026593 | 10399 | else |
efd58f08 RW |
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10401 | $as_echo "no" >&6; } | |
82026593 AO |
10402 | fi |
10403 | ||
efd58f08 | 10404 | |
82026593 AO |
10405 | done |
10406 | fi | |
10407 | ||
10408 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10409 | for ncn_progname in c++ g++ cxx gxx; do |
efd58f08 RW |
10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10411 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10412 | if test -x $with_build_time_tools/${ncn_progname}; then |
10413 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10415 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10416 | break |
10417 | else | |
efd58f08 RW |
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10419 | $as_echo "no" >&6; } | |
fef3f213 PB |
10420 | fi |
10421 | done | |
10422 | fi | |
10423 | ||
10424 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10425 | for ncn_progname in c++ g++ cxx gxx; do | |
10426 | if test -n "$ncn_target_tool_prefix"; then | |
10427 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10428 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10430 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10431 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
efd58f08 | 10432 | $as_echo_n "(cached) " >&6 |
5fb28bcc PB |
10433 | else |
10434 | if test -n "$CXX_FOR_TARGET"; then | |
10435 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10436 | else | |
b58b6ee1 DJ |
10437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10438 | for as_dir in $PATH | |
10439 | do | |
10440 | IFS=$as_save_IFS | |
10441 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10442 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10444 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10446 | break 2 |
10447 | fi | |
10448 | done | |
efd58f08 RW |
10449 | done |
10450 | IFS=$as_save_IFS | |
b58b6ee1 | 10451 | |
5fb28bcc PB |
10452 | fi |
10453 | fi | |
b58b6ee1 | 10454 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
5fb28bcc | 10455 | if test -n "$CXX_FOR_TARGET"; then |
efd58f08 RW |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10457 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
5fb28bcc | 10458 | else |
efd58f08 RW |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10460 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10461 | fi |
10462 | ||
efd58f08 | 10463 | |
fef3f213 PB |
10464 | fi |
10465 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10466 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10467 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10469 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10470 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
efd58f08 | 10471 | $as_echo_n "(cached) " >&6 |
5fb28bcc | 10472 | else |
60cfca65 PB |
10473 | if test -n "$CXX_FOR_TARGET"; then |
10474 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10475 | else |
b58b6ee1 DJ |
10476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10477 | for as_dir in $PATH | |
10478 | do | |
10479 | IFS=$as_save_IFS | |
10480 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10481 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10483 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10485 | break 2 |
10486 | fi | |
10487 | done | |
efd58f08 RW |
10488 | done |
10489 | IFS=$as_save_IFS | |
b58b6ee1 | 10490 | |
5fb28bcc PB |
10491 | fi |
10492 | fi | |
b58b6ee1 | 10493 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
60cfca65 | 10494 | if test -n "$CXX_FOR_TARGET"; then |
efd58f08 RW |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10496 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
5fb28bcc | 10497 | else |
efd58f08 RW |
10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10499 | $as_echo "no" >&6; } | |
5fb28bcc | 10500 | fi |
b58b6ee1 | 10501 | |
efd58f08 | 10502 | |
fef3f213 PB |
10503 | fi |
10504 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10505 | done | |
10506 | fi | |
b58b6ee1 | 10507 | |
60cfca65 PB |
10508 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10509 | set dummy c++ g++ cxx gxx | |
10510 | if test $build = $target ; then | |
10511 | CXX_FOR_TARGET="$2" | |
5fb28bcc | 10512 | else |
60cfca65 | 10513 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10514 | fi |
d058b81b MS |
10515 | else |
10516 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
a0c92996 AC |
10517 | fi |
10518 | ||
82026593 AO |
10519 | |
10520 | ||
10521 | if test -n "$GCC_FOR_TARGET"; then | |
10522 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10523 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10524 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10525 | fi | |
10526 | ||
10527 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10528 | for ncn_progname in gcc; do | |
10529 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10530 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10532 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10533 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
efd58f08 | 10534 | $as_echo_n "(cached) " >&6 |
82026593 AO |
10535 | else |
10536 | if test -n "$GCC_FOR_TARGET"; then | |
10537 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10538 | else | |
10539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10540 | for as_dir in $PATH | |
10541 | do | |
10542 | IFS=$as_save_IFS | |
10543 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10544 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10545 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 10546 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10548 | break 2 |
10549 | fi | |
10550 | done | |
efd58f08 RW |
10551 | done |
10552 | IFS=$as_save_IFS | |
82026593 AO |
10553 | |
10554 | fi | |
10555 | fi | |
10556 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10557 | if test -n "$GCC_FOR_TARGET"; then | |
efd58f08 RW |
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10559 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
82026593 | 10560 | else |
efd58f08 RW |
10561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10562 | $as_echo "no" >&6; } | |
82026593 AO |
10563 | fi |
10564 | ||
efd58f08 | 10565 | |
82026593 AO |
10566 | done |
10567 | fi | |
10568 | ||
10569 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10570 | for ncn_progname in gcc; do |
efd58f08 RW |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10572 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10573 | if test -x $with_build_time_tools/${ncn_progname}; then |
10574 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10576 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10577 | break |
10578 | else | |
efd58f08 RW |
10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10580 | $as_echo "no" >&6; } | |
fef3f213 PB |
10581 | fi |
10582 | done | |
10583 | fi | |
10584 | ||
10585 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10586 | for ncn_progname in gcc; do | |
10587 | if test -n "$ncn_target_tool_prefix"; then | |
10588 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10589 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10591 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10592 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
efd58f08 | 10593 | $as_echo_n "(cached) " >&6 |
a0c92996 | 10594 | else |
fef3f213 PB |
10595 | if test -n "$GCC_FOR_TARGET"; then |
10596 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10597 | else |
b58b6ee1 DJ |
10598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10599 | for as_dir in $PATH | |
10600 | do | |
10601 | IFS=$as_save_IFS | |
10602 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10603 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10605 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10607 | break 2 |
10608 | fi | |
10609 | done | |
efd58f08 RW |
10610 | done |
10611 | IFS=$as_save_IFS | |
b58b6ee1 | 10612 | |
5fb28bcc PB |
10613 | fi |
10614 | fi | |
b58b6ee1 | 10615 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
5fb28bcc | 10616 | if test -n "$GCC_FOR_TARGET"; then |
efd58f08 RW |
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10618 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
5fb28bcc | 10619 | else |
efd58f08 RW |
10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10621 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10622 | fi |
10623 | ||
efd58f08 | 10624 | |
fef3f213 PB |
10625 | fi |
10626 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10627 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10628 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10630 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10631 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
efd58f08 | 10632 | $as_echo_n "(cached) " >&6 |
5fb28bcc | 10633 | else |
60cfca65 PB |
10634 | if test -n "$GCC_FOR_TARGET"; then |
10635 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10636 | else |
b58b6ee1 DJ |
10637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10638 | for as_dir in $PATH | |
10639 | do | |
10640 | IFS=$as_save_IFS | |
10641 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10642 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10644 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10646 | break 2 |
10647 | fi | |
10648 | done | |
efd58f08 RW |
10649 | done |
10650 | IFS=$as_save_IFS | |
b58b6ee1 | 10651 | |
5fb28bcc PB |
10652 | fi |
10653 | fi | |
b58b6ee1 | 10654 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
60cfca65 | 10655 | if test -n "$GCC_FOR_TARGET"; then |
efd58f08 RW |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10657 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
5fb28bcc | 10658 | else |
efd58f08 RW |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10660 | $as_echo "no" >&6; } | |
5fb28bcc | 10661 | fi |
b58b6ee1 | 10662 | |
efd58f08 | 10663 | |
fef3f213 PB |
10664 | fi |
10665 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10666 | done | |
10667 | fi | |
b58b6ee1 | 10668 | |
60cfca65 PB |
10669 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10670 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d058b81b MS |
10671 | else |
10672 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
5fb28bcc PB |
10673 | fi |
10674 | ||
82026593 AO |
10675 | |
10676 | ||
10677 | if test -n "$GCJ_FOR_TARGET"; then | |
10678 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10679 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10680 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10681 | fi | |
10682 | ||
10683 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10684 | for ncn_progname in gcj; do | |
10685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10686 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10688 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10689 | if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then : |
efd58f08 | 10690 | $as_echo_n "(cached) " >&6 |
82026593 AO |
10691 | else |
10692 | if test -n "$GCJ_FOR_TARGET"; then | |
10693 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10694 | else | |
10695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10696 | for as_dir in $PATH | |
10697 | do | |
10698 | IFS=$as_save_IFS | |
10699 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10700 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 10702 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10704 | break 2 |
10705 | fi | |
10706 | done | |
efd58f08 RW |
10707 | done |
10708 | IFS=$as_save_IFS | |
82026593 AO |
10709 | |
10710 | fi | |
10711 | fi | |
10712 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10713 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10715 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10716 | else |
efd58f08 RW |
10717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10718 | $as_echo "no" >&6; } | |
82026593 AO |
10719 | fi |
10720 | ||
efd58f08 | 10721 | |
82026593 AO |
10722 | done |
10723 | fi | |
10724 | ||
10725 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 10726 | for ncn_progname in gcj; do |
efd58f08 RW |
10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10728 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10729 | if test -x $with_build_time_tools/${ncn_progname}; then |
10730 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10732 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10733 | break |
10734 | else | |
efd58f08 RW |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10736 | $as_echo "no" >&6; } | |
fef3f213 PB |
10737 | fi |
10738 | done | |
10739 | fi | |
10740 | ||
10741 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10742 | for ncn_progname in gcj; do | |
10743 | if test -n "$ncn_target_tool_prefix"; then | |
10744 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10745 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10747 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10748 | if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then : |
efd58f08 | 10749 | $as_echo_n "(cached) " >&6 |
5fb28bcc PB |
10750 | else |
10751 | if test -n "$GCJ_FOR_TARGET"; then | |
10752 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10753 | else | |
b58b6ee1 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=. | |
efd58f08 | 10759 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10761 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10763 | break 2 |
10764 | fi | |
10765 | done | |
efd58f08 RW |
10766 | done |
10767 | IFS=$as_save_IFS | |
b58b6ee1 | 10768 | |
5fb28bcc PB |
10769 | fi |
10770 | fi | |
82026593 AO |
10771 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10772 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10774 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10775 | else |
efd58f08 RW |
10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10777 | $as_echo "no" >&6; } | |
82026593 AO |
10778 | fi |
10779 | ||
efd58f08 | 10780 | |
82026593 AO |
10781 | fi |
10782 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10784 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10786 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10787 | if ${ac_cv_prog_GCJ_FOR_TARGET+:} false; then : |
efd58f08 | 10788 | $as_echo_n "(cached) " >&6 |
82026593 AO |
10789 | else |
10790 | if test -n "$GCJ_FOR_TARGET"; then | |
10791 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10792 | else | |
10793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10794 | for as_dir in $PATH | |
10795 | do | |
10796 | IFS=$as_save_IFS | |
10797 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10798 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 10800 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
10802 | break 2 |
10803 | fi | |
10804 | done | |
efd58f08 RW |
10805 | done |
10806 | IFS=$as_save_IFS | |
82026593 AO |
10807 | |
10808 | fi | |
10809 | fi | |
10810 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10811 | if test -n "$GCJ_FOR_TARGET"; then | |
efd58f08 RW |
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10813 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
82026593 | 10814 | else |
efd58f08 RW |
10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10816 | $as_echo "no" >&6; } | |
82026593 AO |
10817 | fi |
10818 | ||
efd58f08 | 10819 | |
82026593 AO |
10820 | fi |
10821 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10822 | done | |
10823 | fi | |
10824 | ||
10825 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10826 | set dummy gcj | |
10827 | if test $build = $target ; then | |
10828 | GCJ_FOR_TARGET="$2" | |
10829 | else | |
10830 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10831 | fi | |
d058b81b MS |
10832 | else |
10833 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
82026593 AO |
10834 | fi |
10835 | ||
10836 | ||
10837 | ||
10838 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10839 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10840 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10841 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
5fb28bcc PB |
10842 | fi |
10843 | ||
82026593 AO |
10844 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10845 | for ncn_progname in gfortran; do | |
10846 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10847 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10849 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10850 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
efd58f08 | 10851 | $as_echo_n "(cached) " >&6 |
5fb28bcc | 10852 | else |
82026593 AO |
10853 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10854 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
5fb28bcc | 10855 | else |
b58b6ee1 DJ |
10856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10857 | for as_dir in $PATH | |
10858 | do | |
10859 | IFS=$as_save_IFS | |
10860 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10861 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 10863 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10865 | break 2 |
10866 | fi | |
10867 | done | |
efd58f08 RW |
10868 | done |
10869 | IFS=$as_save_IFS | |
b58b6ee1 | 10870 | |
5fb28bcc PB |
10871 | fi |
10872 | fi | |
82026593 AO |
10873 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10874 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
efd58f08 RW |
10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10876 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10877 | else |
efd58f08 RW |
10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10879 | $as_echo "no" >&6; } | |
5fb28bcc | 10880 | fi |
b58b6ee1 | 10881 | |
efd58f08 | 10882 | |
fef3f213 PB |
10883 | done |
10884 | fi | |
b58b6ee1 | 10885 | |
82026593 | 10886 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
fef3f213 | 10887 | for ncn_progname in gfortran; do |
efd58f08 RW |
10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10889 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
10890 | if test -x $with_build_time_tools/${ncn_progname}; then |
10891 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10893 | $as_echo "yes" >&6; } | |
fef3f213 PB |
10894 | break |
10895 | else | |
efd58f08 RW |
10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10897 | $as_echo "no" >&6; } | |
fef3f213 PB |
10898 | fi |
10899 | done | |
10900 | fi | |
10901 | ||
10902 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10903 | for ncn_progname in gfortran; do | |
10904 | if test -n "$ncn_target_tool_prefix"; then | |
10905 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10906 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10908 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10909 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
efd58f08 | 10910 | $as_echo_n "(cached) " >&6 |
5fb28bcc PB |
10911 | else |
10912 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10913 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10914 | else | |
b58b6ee1 DJ |
10915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10916 | for as_dir in $PATH | |
10917 | do | |
10918 | IFS=$as_save_IFS | |
10919 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10920 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10922 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 10923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10924 | break 2 |
10925 | fi | |
10926 | done | |
efd58f08 RW |
10927 | done |
10928 | IFS=$as_save_IFS | |
b58b6ee1 | 10929 | |
5fb28bcc PB |
10930 | fi |
10931 | fi | |
b58b6ee1 | 10932 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
5fb28bcc | 10933 | if test -n "$GFORTRAN_FOR_TARGET"; then |
efd58f08 RW |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10935 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10936 | else |
efd58f08 RW |
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10938 | $as_echo "no" >&6; } | |
5fb28bcc PB |
10939 | fi |
10940 | ||
efd58f08 | 10941 | |
fef3f213 PB |
10942 | fi |
10943 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10944 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 10945 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10947 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 10948 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
efd58f08 | 10949 | $as_echo_n "(cached) " >&6 |
5fb28bcc | 10950 | else |
60cfca65 | 10951 | if test -n "$GFORTRAN_FOR_TARGET"; then |
b58b6ee1 DJ |
10952 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10953 | else | |
10954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10955 | for as_dir in $PATH | |
10956 | do | |
10957 | IFS=$as_save_IFS | |
10958 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 10959 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 10960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 10961 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
efd58f08 | 10962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
10963 | break 2 |
10964 | fi | |
10965 | done | |
efd58f08 RW |
10966 | done |
10967 | IFS=$as_save_IFS | |
b58b6ee1 | 10968 | |
5fb28bcc PB |
10969 | fi |
10970 | fi | |
b58b6ee1 | 10971 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
60cfca65 | 10972 | if test -n "$GFORTRAN_FOR_TARGET"; then |
efd58f08 RW |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10974 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
5fb28bcc | 10975 | else |
efd58f08 RW |
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10977 | $as_echo "no" >&6; } | |
5fb28bcc | 10978 | fi |
b58b6ee1 | 10979 | |
efd58f08 | 10980 | |
fef3f213 PB |
10981 | fi |
10982 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10983 | done | |
10984 | fi | |
b58b6ee1 | 10985 | |
60cfca65 PB |
10986 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10987 | set dummy gfortran | |
10988 | if test $build = $target ; then | |
10989 | GFORTRAN_FOR_TARGET="$2" | |
5fb28bcc | 10990 | else |
60cfca65 | 10991 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
5fb28bcc | 10992 | fi |
d058b81b MS |
10993 | else |
10994 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
a0c92996 AC |
10995 | fi |
10996 | ||
fef3f213 PB |
10997 | |
10998 | ||
d5b7129a ILT |
10999 | if test -n "$GOC_FOR_TARGET"; then |
11000 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
11001 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11002 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11003 | fi | |
11004 | ||
11005 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11006 | for ncn_progname in gccgo; do | |
11007 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11008 | set dummy ${ncn_progname}; ac_word=$2 | |
11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11010 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11011 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
d5b7129a ILT |
11012 | $as_echo_n "(cached) " >&6 |
11013 | else | |
11014 | if test -n "$GOC_FOR_TARGET"; then | |
11015 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11016 | else | |
11017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11018 | for as_dir in $PATH | |
11019 | do | |
11020 | IFS=$as_save_IFS | |
11021 | test -z "$as_dir" && as_dir=. | |
11022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 11023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5b7129a ILT |
11024 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11026 | break 2 | |
11027 | fi | |
11028 | done | |
11029 | done | |
11030 | IFS=$as_save_IFS | |
11031 | ||
11032 | fi | |
11033 | fi | |
11034 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11035 | if test -n "$GOC_FOR_TARGET"; then | |
11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11037 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11038 | else | |
11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11040 | $as_echo "no" >&6; } | |
11041 | fi | |
11042 | ||
11043 | ||
11044 | done | |
11045 | fi | |
11046 | ||
11047 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11048 | for ncn_progname in gccgo; do | |
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11050 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11051 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11052 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11054 | $as_echo "yes" >&6; } | |
11055 | break | |
11056 | else | |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11058 | $as_echo "no" >&6; } | |
11059 | fi | |
11060 | done | |
11061 | fi | |
11062 | ||
11063 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11064 | for ncn_progname in gccgo; do | |
11065 | if test -n "$ncn_target_tool_prefix"; then | |
11066 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11067 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11069 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11070 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
d5b7129a ILT |
11071 | $as_echo_n "(cached) " >&6 |
11072 | else | |
11073 | if test -n "$GOC_FOR_TARGET"; then | |
11074 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11075 | else | |
11076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11077 | for as_dir in $PATH | |
11078 | do | |
11079 | IFS=$as_save_IFS | |
11080 | test -z "$as_dir" && as_dir=. | |
11081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 11082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5b7129a ILT |
11083 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11085 | break 2 | |
11086 | fi | |
11087 | done | |
11088 | done | |
11089 | IFS=$as_save_IFS | |
11090 | ||
11091 | fi | |
11092 | fi | |
11093 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11094 | if test -n "$GOC_FOR_TARGET"; then | |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11096 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11097 | else | |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11099 | $as_echo "no" >&6; } | |
11100 | fi | |
11101 | ||
11102 | ||
11103 | fi | |
11104 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
11105 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11106 | set dummy ${ncn_progname}; ac_word=$2 | |
11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11108 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11109 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
d5b7129a ILT |
11110 | $as_echo_n "(cached) " >&6 |
11111 | else | |
11112 | if test -n "$GOC_FOR_TARGET"; then | |
11113 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11114 | else | |
11115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11116 | for as_dir in $PATH | |
11117 | do | |
11118 | IFS=$as_save_IFS | |
11119 | test -z "$as_dir" && as_dir=. | |
11120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 11121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5b7129a ILT |
11122 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11124 | break 2 | |
11125 | fi | |
11126 | done | |
11127 | done | |
11128 | IFS=$as_save_IFS | |
11129 | ||
11130 | fi | |
11131 | fi | |
11132 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11133 | if test -n "$GOC_FOR_TARGET"; then | |
11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11135 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11136 | else | |
11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11138 | $as_echo "no" >&6; } | |
11139 | fi | |
11140 | ||
11141 | ||
11142 | fi | |
11143 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
11144 | done | |
11145 | fi | |
11146 | ||
11147 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
11148 | set dummy gccgo | |
11149 | if test $build = $target ; then | |
11150 | GOC_FOR_TARGET="$2" | |
11151 | else | |
11152 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11153 | fi | |
11154 | else | |
11155 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
11156 | fi | |
11157 | ||
11158 | ||
11159 | ||
fef3f213 PB |
11160 | cat > conftest.c << \EOF |
11161 | #ifdef __GNUC__ | |
11162 | gcc_yay; | |
11163 | #endif | |
11164 | EOF | |
11165 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11166 | have_gcc_for_target=yes | |
a0c92996 | 11167 | else |
fef3f213 PB |
11168 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
11169 | have_gcc_for_target=no | |
a0c92996 | 11170 | fi |
fef3f213 PB |
11171 | rm conftest.c |
11172 | ||
11173 | ||
11174 | ||
a0c92996 | 11175 | |
fef3f213 PB |
11176 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
11177 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11179 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11180 | if test -x $with_build_time_tools/ar; then |
11181 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11182 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
efd58f08 RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11184 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
207258c8 | 11185 | else |
efd58f08 RW |
11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11187 | $as_echo "no" >&6; } | |
207258c8 | 11188 | fi |
fef3f213 PB |
11189 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11190 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d058b81b MS |
11191 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11192 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
60cfca65 | 11193 | fi |
fef3f213 | 11194 | fi |
b58b6ee1 | 11195 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11196 | # Extract the first word of "ar", so it can be a program name with args. |
11197 | set dummy ar; ac_word=$2 | |
efd58f08 RW |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11199 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11200 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
efd58f08 | 11201 | $as_echo_n "(cached) " >&6 |
a0c92996 | 11202 | else |
b58b6ee1 DJ |
11203 | case $AR_FOR_TARGET in |
11204 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11205 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11206 | ;; | |
fef3f213 | 11207 | *) |
b58b6ee1 DJ |
11208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11209 | for as_dir in $gcc_cv_tool_dirs | |
11210 | do | |
11211 | IFS=$as_save_IFS | |
11212 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11213 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11215 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11217 | break 2 |
11218 | fi | |
11219 | done | |
efd58f08 RW |
11220 | done |
11221 | IFS=$as_save_IFS | |
b58b6ee1 | 11222 | |
fef3f213 PB |
11223 | ;; |
11224 | esac | |
a0c92996 | 11225 | fi |
b58b6ee1 | 11226 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
fef3f213 | 11227 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11229 | $as_echo "$AR_FOR_TARGET" >&6; } | |
a0c92996 | 11230 | else |
efd58f08 RW |
11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11232 | $as_echo "no" >&6; } | |
a0c92996 | 11233 | fi |
60cfca65 | 11234 | |
efd58f08 | 11235 | |
fef3f213 PB |
11236 | fi |
11237 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
82026593 AO |
11238 | |
11239 | ||
11240 | if test -n "$AR_FOR_TARGET"; then | |
11241 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11242 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11243 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11244 | fi | |
11245 | ||
11246 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11247 | for ncn_progname in ar; do | |
11248 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11249 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11251 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11252 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
efd58f08 | 11253 | $as_echo_n "(cached) " >&6 |
82026593 AO |
11254 | else |
11255 | if test -n "$AR_FOR_TARGET"; then | |
11256 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11257 | else | |
11258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11259 | for as_dir in $PATH | |
11260 | do | |
11261 | IFS=$as_save_IFS | |
11262 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11263 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11264 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 11265 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11267 | break 2 |
11268 | fi | |
11269 | done | |
efd58f08 RW |
11270 | done |
11271 | IFS=$as_save_IFS | |
82026593 AO |
11272 | |
11273 | fi | |
11274 | fi | |
11275 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11276 | if test -n "$AR_FOR_TARGET"; then | |
efd58f08 RW |
11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11278 | $as_echo "$AR_FOR_TARGET" >&6; } | |
82026593 | 11279 | else |
efd58f08 RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11281 | $as_echo "no" >&6; } | |
82026593 AO |
11282 | fi |
11283 | ||
efd58f08 | 11284 | |
82026593 AO |
11285 | done |
11286 | fi | |
11287 | ||
11288 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11289 | for ncn_progname in ar; do |
efd58f08 RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11291 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11292 | if test -x $with_build_time_tools/${ncn_progname}; then |
11293 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11295 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11296 | break |
11297 | else | |
efd58f08 RW |
11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11299 | $as_echo "no" >&6; } | |
fef3f213 PB |
11300 | fi |
11301 | done | |
a0c92996 AC |
11302 | fi |
11303 | ||
fef3f213 PB |
11304 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11305 | for ncn_progname in ar; do | |
11306 | if test -n "$ncn_target_tool_prefix"; then | |
11307 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 11308 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11310 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11311 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
efd58f08 | 11312 | $as_echo_n "(cached) " >&6 |
6a33f745 | 11313 | else |
fef3f213 PB |
11314 | if test -n "$AR_FOR_TARGET"; then |
11315 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
6a33f745 | 11316 | else |
b58b6ee1 DJ |
11317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11318 | for as_dir in $PATH | |
11319 | do | |
11320 | IFS=$as_save_IFS | |
11321 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11322 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11324 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11326 | break 2 |
11327 | fi | |
11328 | done | |
efd58f08 RW |
11329 | done |
11330 | IFS=$as_save_IFS | |
b58b6ee1 | 11331 | |
6a33f745 GK |
11332 | fi |
11333 | fi | |
b58b6ee1 | 11334 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
fef3f213 | 11335 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11337 | $as_echo "$AR_FOR_TARGET" >&6; } | |
6a33f745 | 11338 | else |
efd58f08 RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11340 | $as_echo "no" >&6; } | |
6a33f745 GK |
11341 | fi |
11342 | ||
efd58f08 | 11343 | |
fef3f213 PB |
11344 | fi |
11345 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11346 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 11347 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11349 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11350 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
efd58f08 | 11351 | $as_echo_n "(cached) " >&6 |
6a33f745 | 11352 | else |
fef3f213 PB |
11353 | if test -n "$AR_FOR_TARGET"; then |
11354 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
f69e2532 | 11355 | else |
b58b6ee1 DJ |
11356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11357 | for as_dir in $PATH | |
11358 | do | |
11359 | IFS=$as_save_IFS | |
11360 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11361 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11363 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11365 | break 2 |
11366 | fi | |
11367 | done | |
efd58f08 RW |
11368 | done |
11369 | IFS=$as_save_IFS | |
b58b6ee1 | 11370 | |
6a33f745 GK |
11371 | fi |
11372 | fi | |
b58b6ee1 | 11373 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
fef3f213 | 11374 | if test -n "$AR_FOR_TARGET"; then |
efd58f08 RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11376 | $as_echo "$AR_FOR_TARGET" >&6; } | |
6a33f745 | 11377 | else |
efd58f08 RW |
11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11379 | $as_echo "no" >&6; } | |
6a33f745 | 11380 | fi |
b58b6ee1 | 11381 | |
efd58f08 | 11382 | |
fef3f213 PB |
11383 | fi |
11384 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11385 | done | |
11386 | fi | |
b58b6ee1 | 11387 | |
fef3f213 PB |
11388 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11389 | set dummy ar | |
6a33f745 | 11390 | if test $build = $target ; then |
fef3f213 | 11391 | AR_FOR_TARGET="$2" |
6a33f745 | 11392 | else |
fef3f213 | 11393 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
6a33f745 | 11394 | fi |
d058b81b MS |
11395 | else |
11396 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
6a33f745 GK |
11397 | fi |
11398 | ||
207258c8 PB |
11399 | else |
11400 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
fef3f213 PB |
11401 | fi |
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11407 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11409 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11410 | if test -x $with_build_time_tools/as; then |
11411 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11412 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
efd58f08 RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11414 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
207258c8 | 11415 | else |
efd58f08 RW |
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11417 | $as_echo "no" >&6; } | |
207258c8 | 11418 | fi |
fef3f213 PB |
11419 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11420 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d058b81b MS |
11421 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11422 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
fef3f213 PB |
11423 | fi |
11424 | fi | |
b58b6ee1 | 11425 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11426 | # Extract the first word of "as", so it can be a program name with args. |
11427 | set dummy as; ac_word=$2 | |
efd58f08 RW |
11428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11429 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11430 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
efd58f08 | 11431 | $as_echo_n "(cached) " >&6 |
fef3f213 | 11432 | else |
b58b6ee1 DJ |
11433 | case $AS_FOR_TARGET in |
11434 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11435 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11436 | ;; | |
fef3f213 | 11437 | *) |
b58b6ee1 DJ |
11438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11439 | for as_dir in $gcc_cv_tool_dirs | |
11440 | do | |
11441 | IFS=$as_save_IFS | |
11442 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11443 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11445 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11447 | break 2 |
11448 | fi | |
11449 | done | |
efd58f08 RW |
11450 | done |
11451 | IFS=$as_save_IFS | |
b58b6ee1 | 11452 | |
fef3f213 PB |
11453 | ;; |
11454 | esac | |
11455 | fi | |
b58b6ee1 | 11456 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
fef3f213 | 11457 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11459 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 11460 | else |
efd58f08 RW |
11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11462 | $as_echo "no" >&6; } | |
fef3f213 PB |
11463 | fi |
11464 | ||
efd58f08 | 11465 | |
fef3f213 PB |
11466 | fi |
11467 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
82026593 AO |
11468 | |
11469 | ||
11470 | if test -n "$AS_FOR_TARGET"; then | |
11471 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11472 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11473 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11474 | fi | |
11475 | ||
11476 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11477 | for ncn_progname in as; do | |
11478 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11479 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11481 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11482 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
efd58f08 | 11483 | $as_echo_n "(cached) " >&6 |
82026593 AO |
11484 | else |
11485 | if test -n "$AS_FOR_TARGET"; then | |
11486 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11487 | else | |
11488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11489 | for as_dir in $PATH | |
11490 | do | |
11491 | IFS=$as_save_IFS | |
11492 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11493 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 11495 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11497 | break 2 |
11498 | fi | |
11499 | done | |
efd58f08 RW |
11500 | done |
11501 | IFS=$as_save_IFS | |
82026593 AO |
11502 | |
11503 | fi | |
11504 | fi | |
11505 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11506 | if test -n "$AS_FOR_TARGET"; then | |
efd58f08 RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11508 | $as_echo "$AS_FOR_TARGET" >&6; } | |
82026593 | 11509 | else |
efd58f08 RW |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11511 | $as_echo "no" >&6; } | |
82026593 AO |
11512 | fi |
11513 | ||
efd58f08 | 11514 | |
82026593 AO |
11515 | done |
11516 | fi | |
11517 | ||
11518 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11519 | for ncn_progname in as; do |
efd58f08 RW |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11521 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11522 | if test -x $with_build_time_tools/${ncn_progname}; then |
11523 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11525 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11526 | break |
11527 | else | |
efd58f08 RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11529 | $as_echo "no" >&6; } | |
fef3f213 PB |
11530 | fi |
11531 | done | |
11532 | fi | |
11533 | ||
11534 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11535 | for ncn_progname in as; do | |
11536 | if test -n "$ncn_target_tool_prefix"; then | |
11537 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11538 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11540 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11541 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
efd58f08 | 11542 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
11543 | else |
11544 | if test -n "$AS_FOR_TARGET"; then | |
11545 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11546 | else | |
b58b6ee1 DJ |
11547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11548 | for as_dir in $PATH | |
11549 | do | |
11550 | IFS=$as_save_IFS | |
11551 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11552 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11554 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11556 | break 2 |
11557 | fi | |
11558 | done | |
efd58f08 RW |
11559 | done |
11560 | IFS=$as_save_IFS | |
b58b6ee1 | 11561 | |
fef3f213 PB |
11562 | fi |
11563 | fi | |
b58b6ee1 | 11564 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
fef3f213 | 11565 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11567 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 11568 | else |
efd58f08 RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
fef3f213 PB |
11571 | fi |
11572 | ||
efd58f08 | 11573 | |
fef3f213 PB |
11574 | fi |
11575 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11576 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11577 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11579 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11580 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
efd58f08 | 11581 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
11582 | else |
11583 | if test -n "$AS_FOR_TARGET"; then | |
11584 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11585 | else | |
b58b6ee1 DJ |
11586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11587 | for as_dir in $PATH | |
11588 | do | |
11589 | IFS=$as_save_IFS | |
11590 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11591 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11593 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11595 | break 2 |
11596 | fi | |
11597 | done | |
efd58f08 RW |
11598 | done |
11599 | IFS=$as_save_IFS | |
b58b6ee1 | 11600 | |
fef3f213 PB |
11601 | fi |
11602 | fi | |
b58b6ee1 | 11603 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
fef3f213 | 11604 | if test -n "$AS_FOR_TARGET"; then |
efd58f08 RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11606 | $as_echo "$AS_FOR_TARGET" >&6; } | |
fef3f213 | 11607 | else |
efd58f08 RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11609 | $as_echo "no" >&6; } | |
fef3f213 | 11610 | fi |
b58b6ee1 | 11611 | |
efd58f08 | 11612 | |
fef3f213 PB |
11613 | fi |
11614 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11615 | done | |
11616 | fi | |
b58b6ee1 | 11617 | |
fef3f213 PB |
11618 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11619 | set dummy as | |
11620 | if test $build = $target ; then | |
11621 | AS_FOR_TARGET="$2" | |
11622 | else | |
11623 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11624 | fi | |
d058b81b MS |
11625 | else |
11626 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
fef3f213 PB |
11627 | fi |
11628 | ||
207258c8 PB |
11629 | else |
11630 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
fef3f213 PB |
11631 | fi |
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11637 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11639 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11640 | if test -x $with_build_time_tools/dlltool; then |
11641 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11642 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
efd58f08 RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11644 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
207258c8 | 11645 | else |
efd58f08 RW |
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11647 | $as_echo "no" >&6; } | |
207258c8 | 11648 | fi |
fef3f213 PB |
11649 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11650 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d058b81b MS |
11651 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11652 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
fef3f213 PB |
11653 | fi |
11654 | fi | |
b58b6ee1 | 11655 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11656 | # Extract the first word of "dlltool", so it can be a program name with args. |
11657 | set dummy dlltool; ac_word=$2 | |
efd58f08 RW |
11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11659 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11660 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
efd58f08 | 11661 | $as_echo_n "(cached) " >&6 |
fef3f213 | 11662 | else |
b58b6ee1 DJ |
11663 | case $DLLTOOL_FOR_TARGET in |
11664 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11665 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11666 | ;; | |
fef3f213 | 11667 | *) |
b58b6ee1 DJ |
11668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11669 | for as_dir in $gcc_cv_tool_dirs | |
11670 | do | |
11671 | IFS=$as_save_IFS | |
11672 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11673 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11674 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11675 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11677 | break 2 |
11678 | fi | |
11679 | done | |
efd58f08 RW |
11680 | done |
11681 | IFS=$as_save_IFS | |
b58b6ee1 | 11682 | |
fef3f213 PB |
11683 | ;; |
11684 | esac | |
11685 | fi | |
b58b6ee1 | 11686 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
fef3f213 | 11687 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11689 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11690 | else |
efd58f08 RW |
11691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11692 | $as_echo "no" >&6; } | |
fef3f213 PB |
11693 | fi |
11694 | ||
efd58f08 | 11695 | |
fef3f213 PB |
11696 | fi |
11697 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
82026593 AO |
11698 | |
11699 | ||
11700 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11701 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11702 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11703 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11704 | fi | |
11705 | ||
11706 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11707 | for ncn_progname in dlltool; do | |
11708 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11709 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11711 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11712 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
efd58f08 | 11713 | $as_echo_n "(cached) " >&6 |
82026593 AO |
11714 | else |
11715 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11716 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11717 | else | |
11718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11719 | for as_dir in $PATH | |
11720 | do | |
11721 | IFS=$as_save_IFS | |
11722 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11723 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 11725 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11727 | break 2 |
11728 | fi | |
11729 | done | |
efd58f08 RW |
11730 | done |
11731 | IFS=$as_save_IFS | |
82026593 AO |
11732 | |
11733 | fi | |
11734 | fi | |
11735 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11736 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
efd58f08 RW |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11738 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
82026593 | 11739 | else |
efd58f08 RW |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11741 | $as_echo "no" >&6; } | |
82026593 AO |
11742 | fi |
11743 | ||
efd58f08 | 11744 | |
82026593 AO |
11745 | done |
11746 | fi | |
11747 | ||
11748 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11749 | for ncn_progname in dlltool; do |
efd58f08 RW |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11751 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11752 | if test -x $with_build_time_tools/${ncn_progname}; then |
11753 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11755 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11756 | break |
11757 | else | |
efd58f08 RW |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11759 | $as_echo "no" >&6; } | |
fef3f213 PB |
11760 | fi |
11761 | done | |
11762 | fi | |
11763 | ||
11764 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11765 | for ncn_progname in dlltool; do | |
11766 | if test -n "$ncn_target_tool_prefix"; then | |
11767 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11768 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11770 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11771 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
efd58f08 | 11772 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
11773 | else |
11774 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11775 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11776 | else | |
b58b6ee1 DJ |
11777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11778 | for as_dir in $PATH | |
11779 | do | |
11780 | IFS=$as_save_IFS | |
11781 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11782 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11784 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 11785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11786 | break 2 |
11787 | fi | |
11788 | done | |
efd58f08 RW |
11789 | done |
11790 | IFS=$as_save_IFS | |
b58b6ee1 | 11791 | |
fef3f213 PB |
11792 | fi |
11793 | fi | |
b58b6ee1 | 11794 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
fef3f213 | 11795 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11797 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11798 | else |
efd58f08 RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
fef3f213 PB |
11801 | fi |
11802 | ||
efd58f08 | 11803 | |
fef3f213 PB |
11804 | fi |
11805 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11806 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11807 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11809 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11810 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
efd58f08 | 11811 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
11812 | else |
11813 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11814 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11815 | else | |
b58b6ee1 DJ |
11816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11817 | for as_dir in $PATH | |
11818 | do | |
11819 | IFS=$as_save_IFS | |
11820 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11821 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11823 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11825 | break 2 |
11826 | fi | |
11827 | done | |
efd58f08 RW |
11828 | done |
11829 | IFS=$as_save_IFS | |
b58b6ee1 | 11830 | |
fef3f213 PB |
11831 | fi |
11832 | fi | |
b58b6ee1 | 11833 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
fef3f213 | 11834 | if test -n "$DLLTOOL_FOR_TARGET"; then |
efd58f08 RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11836 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
fef3f213 | 11837 | else |
efd58f08 RW |
11838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11839 | $as_echo "no" >&6; } | |
fef3f213 | 11840 | fi |
b58b6ee1 | 11841 | |
efd58f08 | 11842 | |
fef3f213 PB |
11843 | fi |
11844 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11845 | done | |
11846 | fi | |
b58b6ee1 | 11847 | |
fef3f213 PB |
11848 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11849 | set dummy dlltool | |
11850 | if test $build = $target ; then | |
11851 | DLLTOOL_FOR_TARGET="$2" | |
11852 | else | |
11853 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11854 | fi | |
d058b81b MS |
11855 | else |
11856 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
fef3f213 PB |
11857 | fi |
11858 | ||
207258c8 PB |
11859 | else |
11860 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
fef3f213 PB |
11861 | fi |
11862 | ||
11863 | ||
11864 | ||
11865 | ||
11866 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11867 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
11868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11869 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11870 | if test -x $with_build_time_tools/ld; then |
11871 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11872 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
efd58f08 RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11874 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
207258c8 | 11875 | else |
efd58f08 RW |
11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11877 | $as_echo "no" >&6; } | |
207258c8 | 11878 | fi |
fef3f213 PB |
11879 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11880 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d058b81b MS |
11881 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11882 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
fef3f213 PB |
11883 | fi |
11884 | fi | |
b58b6ee1 | 11885 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
11886 | # Extract the first word of "ld", so it can be a program name with args. |
11887 | set dummy ld; ac_word=$2 | |
efd58f08 RW |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11889 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11890 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
efd58f08 | 11891 | $as_echo_n "(cached) " >&6 |
fef3f213 | 11892 | else |
b58b6ee1 DJ |
11893 | case $LD_FOR_TARGET in |
11894 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
11895 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11896 | ;; | |
fef3f213 | 11897 | *) |
b58b6ee1 DJ |
11898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11899 | for as_dir in $gcc_cv_tool_dirs | |
11900 | do | |
11901 | IFS=$as_save_IFS | |
11902 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11903 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 11905 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 11906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
11907 | break 2 |
11908 | fi | |
11909 | done | |
efd58f08 RW |
11910 | done |
11911 | IFS=$as_save_IFS | |
b58b6ee1 | 11912 | |
fef3f213 PB |
11913 | ;; |
11914 | esac | |
11915 | fi | |
b58b6ee1 | 11916 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
fef3f213 | 11917 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11919 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 11920 | else |
efd58f08 RW |
11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11922 | $as_echo "no" >&6; } | |
fef3f213 PB |
11923 | fi |
11924 | ||
efd58f08 | 11925 | |
fef3f213 PB |
11926 | fi |
11927 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
82026593 AO |
11928 | |
11929 | ||
11930 | if test -n "$LD_FOR_TARGET"; then | |
11931 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11932 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11933 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11934 | fi | |
11935 | ||
11936 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11937 | for ncn_progname in ld; do | |
11938 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11939 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11941 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 11942 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
efd58f08 | 11943 | $as_echo_n "(cached) " >&6 |
82026593 AO |
11944 | else |
11945 | if test -n "$LD_FOR_TARGET"; then | |
11946 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11947 | else | |
11948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11949 | for as_dir in $PATH | |
11950 | do | |
11951 | IFS=$as_save_IFS | |
11952 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 11953 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 11954 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 11955 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
efd58f08 | 11956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
11957 | break 2 |
11958 | fi | |
11959 | done | |
efd58f08 RW |
11960 | done |
11961 | IFS=$as_save_IFS | |
82026593 AO |
11962 | |
11963 | fi | |
11964 | fi | |
11965 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11966 | if test -n "$LD_FOR_TARGET"; then | |
efd58f08 RW |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11968 | $as_echo "$LD_FOR_TARGET" >&6; } | |
82026593 | 11969 | else |
efd58f08 RW |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11971 | $as_echo "no" >&6; } | |
82026593 AO |
11972 | fi |
11973 | ||
efd58f08 | 11974 | |
82026593 AO |
11975 | done |
11976 | fi | |
11977 | ||
11978 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 11979 | for ncn_progname in ld; do |
efd58f08 RW |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11981 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
11982 | if test -x $with_build_time_tools/${ncn_progname}; then |
11983 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11985 | $as_echo "yes" >&6; } | |
fef3f213 PB |
11986 | break |
11987 | else | |
efd58f08 RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11989 | $as_echo "no" >&6; } | |
fef3f213 PB |
11990 | fi |
11991 | done | |
11992 | fi | |
11993 | ||
11994 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11995 | for ncn_progname in ld; do | |
11996 | if test -n "$ncn_target_tool_prefix"; then | |
11997 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11998 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12000 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12001 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
efd58f08 | 12002 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
12003 | else |
12004 | if test -n "$LD_FOR_TARGET"; then | |
12005 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12006 | else | |
b58b6ee1 DJ |
12007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12008 | for as_dir in $PATH | |
12009 | do | |
12010 | IFS=$as_save_IFS | |
12011 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12012 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12014 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12016 | break 2 |
12017 | fi | |
12018 | done | |
efd58f08 RW |
12019 | done |
12020 | IFS=$as_save_IFS | |
b58b6ee1 | 12021 | |
fef3f213 PB |
12022 | fi |
12023 | fi | |
b58b6ee1 | 12024 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
fef3f213 | 12025 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12027 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 12028 | else |
efd58f08 RW |
12029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12030 | $as_echo "no" >&6; } | |
fef3f213 PB |
12031 | fi |
12032 | ||
efd58f08 | 12033 | |
fef3f213 PB |
12034 | fi |
12035 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
12036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12037 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12039 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12040 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
efd58f08 | 12041 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
12042 | else |
12043 | if test -n "$LD_FOR_TARGET"; then | |
12044 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12045 | else | |
b58b6ee1 DJ |
12046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12047 | for as_dir in $PATH | |
12048 | do | |
12049 | IFS=$as_save_IFS | |
12050 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12051 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12053 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12055 | break 2 |
12056 | fi | |
12057 | done | |
efd58f08 RW |
12058 | done |
12059 | IFS=$as_save_IFS | |
b58b6ee1 | 12060 | |
fef3f213 PB |
12061 | fi |
12062 | fi | |
b58b6ee1 | 12063 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
fef3f213 | 12064 | if test -n "$LD_FOR_TARGET"; then |
efd58f08 RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12066 | $as_echo "$LD_FOR_TARGET" >&6; } | |
fef3f213 | 12067 | else |
efd58f08 RW |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12069 | $as_echo "no" >&6; } | |
fef3f213 | 12070 | fi |
b58b6ee1 | 12071 | |
efd58f08 | 12072 | |
fef3f213 PB |
12073 | fi |
12074 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12075 | done | |
12076 | fi | |
b58b6ee1 | 12077 | |
fef3f213 PB |
12078 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12079 | set dummy ld | |
12080 | if test $build = $target ; then | |
12081 | LD_FOR_TARGET="$2" | |
12082 | else | |
12083 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12084 | fi | |
d058b81b MS |
12085 | else |
12086 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
fef3f213 PB |
12087 | fi |
12088 | ||
207258c8 PB |
12089 | else |
12090 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
fef3f213 PB |
12091 | fi |
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12097 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12099 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12100 | if test -x $with_build_time_tools/lipo; then |
12101 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12102 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
efd58f08 RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12104 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
207258c8 | 12105 | else |
efd58f08 RW |
12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12107 | $as_echo "no" >&6; } | |
207258c8 | 12108 | fi |
fef3f213 PB |
12109 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12110 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d058b81b MS |
12111 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12112 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
fef3f213 PB |
12113 | fi |
12114 | fi | |
82026593 AO |
12115 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12116 | # Extract the first word of "lipo", so it can be a program name with args. | |
12117 | set dummy lipo; ac_word=$2 | |
efd58f08 RW |
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12119 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12120 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
efd58f08 | 12121 | $as_echo_n "(cached) " >&6 |
82026593 AO |
12122 | else |
12123 | case $LIPO_FOR_TARGET in | |
12124 | [\\/]* | ?:[\\/]*) | |
12125 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12126 | ;; | |
12127 | *) | |
12128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12129 | for as_dir in $gcc_cv_tool_dirs | |
12130 | do | |
12131 | IFS=$as_save_IFS | |
12132 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12133 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 12135 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12137 | break 2 |
12138 | fi | |
12139 | done | |
efd58f08 RW |
12140 | done |
12141 | IFS=$as_save_IFS | |
82026593 AO |
12142 | |
12143 | ;; | |
12144 | esac | |
12145 | fi | |
12146 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
82026593 | 12147 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12149 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
82026593 | 12150 | else |
efd58f08 RW |
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12152 | $as_echo "no" >&6; } | |
82026593 AO |
12153 | fi |
12154 | ||
efd58f08 | 12155 | |
82026593 AO |
12156 | fi |
12157 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12158 | ||
12159 | ||
12160 | if test -n "$LIPO_FOR_TARGET"; then | |
12161 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12162 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12163 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12164 | fi | |
12165 | ||
12166 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12167 | for ncn_progname in lipo; do | |
12168 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12169 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12171 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12172 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
efd58f08 | 12173 | $as_echo_n "(cached) " >&6 |
fef3f213 | 12174 | else |
82026593 AO |
12175 | if test -n "$LIPO_FOR_TARGET"; then |
12176 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12177 | else | |
12178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12179 | for as_dir in $PATH | |
b58b6ee1 DJ |
12180 | do |
12181 | IFS=$as_save_IFS | |
12182 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12183 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 12185 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12187 | break 2 |
12188 | fi | |
12189 | done | |
efd58f08 RW |
12190 | done |
12191 | IFS=$as_save_IFS | |
b58b6ee1 | 12192 | |
fef3f213 | 12193 | fi |
82026593 AO |
12194 | fi |
12195 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
fef3f213 | 12196 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12198 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 12199 | else |
efd58f08 RW |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12201 | $as_echo "no" >&6; } | |
fef3f213 PB |
12202 | fi |
12203 | ||
efd58f08 | 12204 | |
82026593 | 12205 | done |
fef3f213 | 12206 | fi |
82026593 AO |
12207 | |
12208 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12209 | for ncn_progname in lipo; do |
efd58f08 RW |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12211 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12212 | if test -x $with_build_time_tools/${ncn_progname}; then |
12213 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12215 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12216 | break |
12217 | else | |
efd58f08 RW |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12219 | $as_echo "no" >&6; } | |
fef3f213 PB |
12220 | fi |
12221 | done | |
12222 | fi | |
12223 | ||
12224 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12225 | for ncn_progname in lipo; do | |
12226 | if test -n "$ncn_target_tool_prefix"; then | |
12227 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12228 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12230 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12231 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
efd58f08 | 12232 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
12233 | else |
12234 | if test -n "$LIPO_FOR_TARGET"; then | |
12235 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12236 | else | |
b58b6ee1 DJ |
12237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12238 | for as_dir in $PATH | |
12239 | do | |
12240 | IFS=$as_save_IFS | |
12241 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12242 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12244 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12246 | break 2 |
12247 | fi | |
12248 | done | |
efd58f08 RW |
12249 | done |
12250 | IFS=$as_save_IFS | |
b58b6ee1 | 12251 | |
fef3f213 PB |
12252 | fi |
12253 | fi | |
b58b6ee1 | 12254 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
fef3f213 | 12255 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12257 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 12258 | else |
efd58f08 RW |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12260 | $as_echo "no" >&6; } | |
fef3f213 PB |
12261 | fi |
12262 | ||
efd58f08 | 12263 | |
fef3f213 PB |
12264 | fi |
12265 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12266 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12267 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12269 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12270 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
efd58f08 | 12271 | $as_echo_n "(cached) " >&6 |
fef3f213 PB |
12272 | else |
12273 | if test -n "$LIPO_FOR_TARGET"; then | |
12274 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12275 | else | |
b58b6ee1 DJ |
12276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12277 | for as_dir in $PATH | |
12278 | do | |
12279 | IFS=$as_save_IFS | |
12280 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12281 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12283 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12285 | break 2 |
12286 | fi | |
12287 | done | |
efd58f08 RW |
12288 | done |
12289 | IFS=$as_save_IFS | |
b58b6ee1 | 12290 | |
fef3f213 PB |
12291 | fi |
12292 | fi | |
b58b6ee1 | 12293 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
fef3f213 | 12294 | if test -n "$LIPO_FOR_TARGET"; then |
efd58f08 RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12296 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
fef3f213 | 12297 | else |
efd58f08 RW |
12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12299 | $as_echo "no" >&6; } | |
fef3f213 | 12300 | fi |
b58b6ee1 | 12301 | |
efd58f08 | 12302 | |
fef3f213 PB |
12303 | fi |
12304 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12305 | done | |
12306 | fi | |
b58b6ee1 | 12307 | |
fef3f213 PB |
12308 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12309 | set dummy lipo | |
12310 | if test $build = $target ; then | |
12311 | LIPO_FOR_TARGET="$2" | |
12312 | else | |
12313 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12314 | fi | |
d058b81b MS |
12315 | else |
12316 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
fef3f213 PB |
12317 | fi |
12318 | ||
207258c8 PB |
12319 | else |
12320 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
fef3f213 PB |
12321 | fi |
12322 | ||
12323 | ||
12324 | ||
12325 | ||
12326 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12327 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12329 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12330 | if test -x $with_build_time_tools/nm; then |
12331 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12332 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
efd58f08 RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12334 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
207258c8 | 12335 | else |
efd58f08 RW |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12337 | $as_echo "no" >&6; } | |
207258c8 | 12338 | fi |
fef3f213 PB |
12339 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12340 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d058b81b MS |
12341 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12342 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
fef3f213 PB |
12343 | fi |
12344 | fi | |
b58b6ee1 | 12345 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12346 | # Extract the first word of "nm", so it can be a program name with args. |
12347 | set dummy nm; ac_word=$2 | |
efd58f08 RW |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12349 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12350 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
efd58f08 | 12351 | $as_echo_n "(cached) " >&6 |
fef3f213 | 12352 | else |
b58b6ee1 DJ |
12353 | case $NM_FOR_TARGET in |
12354 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12355 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12356 | ;; | |
fef3f213 | 12357 | *) |
b58b6ee1 DJ |
12358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12359 | for as_dir in $gcc_cv_tool_dirs | |
12360 | do | |
12361 | IFS=$as_save_IFS | |
12362 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12363 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12365 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12367 | break 2 |
12368 | fi | |
12369 | done | |
efd58f08 RW |
12370 | done |
12371 | IFS=$as_save_IFS | |
b58b6ee1 | 12372 | |
fef3f213 PB |
12373 | ;; |
12374 | esac | |
12375 | fi | |
b58b6ee1 | 12376 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
fef3f213 | 12377 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12379 | $as_echo "$NM_FOR_TARGET" >&6; } | |
fef3f213 | 12380 | else |
efd58f08 RW |
12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12382 | $as_echo "no" >&6; } | |
fef3f213 PB |
12383 | fi |
12384 | ||
efd58f08 | 12385 | |
fef3f213 PB |
12386 | fi |
12387 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
82026593 AO |
12388 | |
12389 | ||
12390 | if test -n "$NM_FOR_TARGET"; then | |
12391 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12392 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12393 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12394 | fi | |
12395 | ||
12396 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12397 | for ncn_progname in nm; do | |
12398 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12399 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12401 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12402 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
efd58f08 | 12403 | $as_echo_n "(cached) " >&6 |
82026593 AO |
12404 | else |
12405 | if test -n "$NM_FOR_TARGET"; then | |
12406 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12407 | else | |
12408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12409 | for as_dir in $PATH | |
12410 | do | |
12411 | IFS=$as_save_IFS | |
12412 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12413 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 12415 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12417 | break 2 |
12418 | fi | |
12419 | done | |
efd58f08 RW |
12420 | done |
12421 | IFS=$as_save_IFS | |
82026593 AO |
12422 | |
12423 | fi | |
12424 | fi | |
12425 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12426 | if test -n "$NM_FOR_TARGET"; then | |
efd58f08 RW |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12428 | $as_echo "$NM_FOR_TARGET" >&6; } | |
82026593 | 12429 | else |
efd58f08 RW |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12431 | $as_echo "no" >&6; } | |
82026593 AO |
12432 | fi |
12433 | ||
efd58f08 | 12434 | |
82026593 AO |
12435 | done |
12436 | fi | |
12437 | ||
12438 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12439 | for ncn_progname in nm; do |
efd58f08 RW |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12441 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12442 | if test -x $with_build_time_tools/${ncn_progname}; then |
12443 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12445 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12446 | break |
12447 | else | |
efd58f08 RW |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12449 | $as_echo "no" >&6; } | |
fef3f213 PB |
12450 | fi |
12451 | done | |
12452 | fi | |
12453 | ||
12454 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12455 | for ncn_progname in nm; do | |
12456 | if test -n "$ncn_target_tool_prefix"; then | |
12457 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 12458 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12460 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12461 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
efd58f08 | 12462 | $as_echo_n "(cached) " >&6 |
a0c92996 | 12463 | else |
5fb28bcc PB |
12464 | if test -n "$NM_FOR_TARGET"; then |
12465 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12466 | else |
b58b6ee1 DJ |
12467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12468 | for as_dir in $PATH | |
12469 | do | |
12470 | IFS=$as_save_IFS | |
12471 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12472 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12474 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12476 | break 2 |
12477 | fi | |
12478 | done | |
efd58f08 RW |
12479 | done |
12480 | IFS=$as_save_IFS | |
b58b6ee1 | 12481 | |
a0c92996 AC |
12482 | fi |
12483 | fi | |
b58b6ee1 | 12484 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
5fb28bcc | 12485 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12487 | $as_echo "$NM_FOR_TARGET" >&6; } | |
a0c92996 | 12488 | else |
efd58f08 RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12490 | $as_echo "no" >&6; } | |
a0c92996 AC |
12491 | fi |
12492 | ||
efd58f08 | 12493 | |
fef3f213 PB |
12494 | fi |
12495 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12496 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12497 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12499 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12500 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
efd58f08 | 12501 | $as_echo_n "(cached) " >&6 |
a0c92996 | 12502 | else |
60cfca65 PB |
12503 | if test -n "$NM_FOR_TARGET"; then |
12504 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 12505 | else |
b58b6ee1 DJ |
12506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12507 | for as_dir in $PATH | |
12508 | do | |
12509 | IFS=$as_save_IFS | |
12510 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12511 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12513 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12515 | break 2 |
12516 | fi | |
12517 | done | |
efd58f08 RW |
12518 | done |
12519 | IFS=$as_save_IFS | |
b58b6ee1 | 12520 | |
a0c92996 AC |
12521 | fi |
12522 | fi | |
b58b6ee1 | 12523 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
60cfca65 | 12524 | if test -n "$NM_FOR_TARGET"; then |
efd58f08 RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12526 | $as_echo "$NM_FOR_TARGET" >&6; } | |
a0c92996 | 12527 | else |
efd58f08 RW |
12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12529 | $as_echo "no" >&6; } | |
a0c92996 | 12530 | fi |
b58b6ee1 | 12531 | |
efd58f08 | 12532 | |
fef3f213 PB |
12533 | fi |
12534 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12535 | done | |
12536 | fi | |
b58b6ee1 | 12537 | |
60cfca65 PB |
12538 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12539 | set dummy nm | |
12540 | if test $build = $target ; then | |
12541 | NM_FOR_TARGET="$2" | |
a0c92996 | 12542 | else |
60cfca65 | 12543 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
a0c92996 | 12544 | fi |
d058b81b MS |
12545 | else |
12546 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
a0c92996 AC |
12547 | fi |
12548 | ||
207258c8 PB |
12549 | else |
12550 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
fef3f213 PB |
12551 | fi |
12552 | ||
12553 | ||
12554 | ||
12555 | ||
fe508576 CV |
12556 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12557 | if test -n "$with_build_time_tools"; then | |
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12559 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12560 | if test -x $with_build_time_tools/objcopy; then | |
12561 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12562 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12564 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12565 | else | |
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12567 | $as_echo "no" >&6; } | |
12568 | fi | |
12569 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12570 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12571 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12572 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12573 | fi | |
12574 | fi | |
12575 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12576 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12577 | set dummy objcopy; ac_word=$2 | |
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12579 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12580 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
fe508576 CV |
12581 | $as_echo_n "(cached) " >&6 |
12582 | else | |
12583 | case $OBJCOPY_FOR_TARGET in | |
12584 | [\\/]* | ?:[\\/]*) | |
12585 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12586 | ;; | |
12587 | *) | |
12588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12589 | for as_dir in $gcc_cv_tool_dirs | |
12590 | do | |
12591 | IFS=$as_save_IFS | |
12592 | test -z "$as_dir" && as_dir=. | |
12593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 12594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fe508576 CV |
12595 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12597 | break 2 | |
12598 | fi | |
12599 | done | |
12600 | done | |
12601 | IFS=$as_save_IFS | |
12602 | ||
12603 | ;; | |
12604 | esac | |
12605 | fi | |
12606 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12607 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12609 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12610 | else | |
12611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12612 | $as_echo "no" >&6; } | |
12613 | fi | |
12614 | ||
12615 | ||
12616 | fi | |
12617 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12618 | ||
12619 | ||
12620 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12621 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12622 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12623 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12624 | fi | |
12625 | ||
12626 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12627 | for ncn_progname in objcopy; do | |
12628 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12629 | set dummy ${ncn_progname}; ac_word=$2 | |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12631 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12632 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fe508576 CV |
12633 | $as_echo_n "(cached) " >&6 |
12634 | else | |
12635 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12636 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12637 | else | |
12638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12639 | for as_dir in $PATH | |
12640 | do | |
12641 | IFS=$as_save_IFS | |
12642 | test -z "$as_dir" && as_dir=. | |
12643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 12644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fe508576 CV |
12645 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12647 | break 2 | |
12648 | fi | |
12649 | done | |
12650 | done | |
12651 | IFS=$as_save_IFS | |
12652 | ||
12653 | fi | |
12654 | fi | |
12655 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12656 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12658 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12659 | else | |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12661 | $as_echo "no" >&6; } | |
12662 | fi | |
12663 | ||
12664 | ||
12665 | done | |
12666 | fi | |
12667 | ||
12668 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12669 | for ncn_progname in objcopy; do | |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12671 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12672 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12673 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12675 | $as_echo "yes" >&6; } | |
12676 | break | |
12677 | else | |
12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12679 | $as_echo "no" >&6; } | |
12680 | fi | |
12681 | done | |
12682 | fi | |
12683 | ||
12684 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12685 | for ncn_progname in objcopy; do | |
12686 | if test -n "$ncn_target_tool_prefix"; then | |
12687 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12688 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12690 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12691 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fe508576 CV |
12692 | $as_echo_n "(cached) " >&6 |
12693 | else | |
12694 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12695 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12696 | else | |
12697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12698 | for as_dir in $PATH | |
12699 | do | |
12700 | IFS=$as_save_IFS | |
12701 | test -z "$as_dir" && as_dir=. | |
12702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 12703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fe508576 CV |
12704 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12706 | break 2 | |
12707 | fi | |
12708 | done | |
12709 | done | |
12710 | IFS=$as_save_IFS | |
12711 | ||
12712 | fi | |
12713 | fi | |
12714 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12715 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12717 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12718 | else | |
12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12720 | $as_echo "no" >&6; } | |
12721 | fi | |
12722 | ||
12723 | ||
12724 | fi | |
12725 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12726 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12727 | set dummy ${ncn_progname}; ac_word=$2 | |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12729 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12730 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fe508576 CV |
12731 | $as_echo_n "(cached) " >&6 |
12732 | else | |
12733 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12734 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12735 | else | |
12736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12737 | for as_dir in $PATH | |
12738 | do | |
12739 | IFS=$as_save_IFS | |
12740 | test -z "$as_dir" && as_dir=. | |
12741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 12742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fe508576 CV |
12743 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12745 | break 2 | |
12746 | fi | |
12747 | done | |
12748 | done | |
12749 | IFS=$as_save_IFS | |
12750 | ||
12751 | fi | |
12752 | fi | |
12753 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12754 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12756 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12757 | else | |
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12759 | $as_echo "no" >&6; } | |
12760 | fi | |
12761 | ||
12762 | ||
12763 | fi | |
12764 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12765 | done | |
12766 | fi | |
12767 | ||
12768 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12769 | set dummy objcopy | |
12770 | if test $build = $target ; then | |
12771 | OBJCOPY_FOR_TARGET="$2" | |
12772 | else | |
12773 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12774 | fi | |
12775 | else | |
12776 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12777 | fi | |
12778 | ||
12779 | else | |
12780 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12781 | fi | |
12782 | ||
12783 | ||
12784 | ||
12785 | ||
fef3f213 PB |
12786 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12787 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
12788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12789 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12790 | if test -x $with_build_time_tools/objdump; then |
12791 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12792 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
efd58f08 RW |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12794 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
207258c8 | 12795 | else |
efd58f08 RW |
12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12797 | $as_echo "no" >&6; } | |
207258c8 | 12798 | fi |
fef3f213 PB |
12799 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12800 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d058b81b MS |
12801 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12802 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
fef3f213 PB |
12803 | fi |
12804 | fi | |
b58b6ee1 | 12805 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
12806 | # Extract the first word of "objdump", so it can be a program name with args. |
12807 | set dummy objdump; ac_word=$2 | |
efd58f08 RW |
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12809 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12810 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
efd58f08 | 12811 | $as_echo_n "(cached) " >&6 |
fef3f213 | 12812 | else |
b58b6ee1 DJ |
12813 | case $OBJDUMP_FOR_TARGET in |
12814 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
12815 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12816 | ;; | |
fef3f213 | 12817 | *) |
b58b6ee1 DJ |
12818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12819 | for as_dir in $gcc_cv_tool_dirs | |
12820 | do | |
12821 | IFS=$as_save_IFS | |
12822 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12823 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12825 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 12826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12827 | break 2 |
12828 | fi | |
12829 | done | |
efd58f08 RW |
12830 | done |
12831 | IFS=$as_save_IFS | |
b58b6ee1 | 12832 | |
fef3f213 PB |
12833 | ;; |
12834 | esac | |
12835 | fi | |
b58b6ee1 | 12836 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
fef3f213 | 12837 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12839 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
fef3f213 | 12840 | else |
efd58f08 RW |
12841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12842 | $as_echo "no" >&6; } | |
fef3f213 PB |
12843 | fi |
12844 | ||
efd58f08 | 12845 | |
fef3f213 PB |
12846 | fi |
12847 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
82026593 AO |
12848 | |
12849 | ||
12850 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12851 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12852 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12853 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12854 | fi | |
12855 | ||
12856 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12857 | for ncn_progname in objdump; do | |
12858 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12859 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12861 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12862 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
efd58f08 | 12863 | $as_echo_n "(cached) " >&6 |
82026593 AO |
12864 | else |
12865 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12866 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12867 | else | |
12868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12869 | for as_dir in $PATH | |
12870 | do | |
12871 | IFS=$as_save_IFS | |
12872 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12873 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 12875 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
12877 | break 2 |
12878 | fi | |
12879 | done | |
efd58f08 RW |
12880 | done |
12881 | IFS=$as_save_IFS | |
82026593 AO |
12882 | |
12883 | fi | |
12884 | fi | |
12885 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12886 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
efd58f08 RW |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12888 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
82026593 | 12889 | else |
efd58f08 RW |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12891 | $as_echo "no" >&6; } | |
82026593 AO |
12892 | fi |
12893 | ||
efd58f08 | 12894 | |
82026593 AO |
12895 | done |
12896 | fi | |
12897 | ||
12898 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 12899 | for ncn_progname in objdump; do |
efd58f08 RW |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12901 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
12902 | if test -x $with_build_time_tools/${ncn_progname}; then |
12903 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12905 | $as_echo "yes" >&6; } | |
fef3f213 PB |
12906 | break |
12907 | else | |
efd58f08 RW |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12909 | $as_echo "no" >&6; } | |
fef3f213 PB |
12910 | fi |
12911 | done | |
12912 | fi | |
12913 | ||
12914 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12915 | for ncn_progname in objdump; do | |
12916 | if test -n "$ncn_target_tool_prefix"; then | |
12917 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 12918 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12920 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12921 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
efd58f08 | 12922 | $as_echo_n "(cached) " >&6 |
51c8a213 DJ |
12923 | else |
12924 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12925 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12926 | else | |
b58b6ee1 DJ |
12927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12928 | for as_dir in $PATH | |
12929 | do | |
12930 | IFS=$as_save_IFS | |
12931 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12932 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12934 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 12935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12936 | break 2 |
12937 | fi | |
12938 | done | |
efd58f08 RW |
12939 | done |
12940 | IFS=$as_save_IFS | |
b58b6ee1 | 12941 | |
51c8a213 DJ |
12942 | fi |
12943 | fi | |
b58b6ee1 | 12944 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
51c8a213 | 12945 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12947 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
51c8a213 | 12948 | else |
efd58f08 RW |
12949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12950 | $as_echo "no" >&6; } | |
51c8a213 DJ |
12951 | fi |
12952 | ||
efd58f08 | 12953 | |
fef3f213 PB |
12954 | fi |
12955 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12956 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
51c8a213 | 12957 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12959 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 12960 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
efd58f08 | 12961 | $as_echo_n "(cached) " >&6 |
51c8a213 DJ |
12962 | else |
12963 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12964 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12965 | else | |
b58b6ee1 DJ |
12966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12967 | for as_dir in $PATH | |
12968 | do | |
12969 | IFS=$as_save_IFS | |
12970 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 12971 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 12972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 12973 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 12974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
12975 | break 2 |
12976 | fi | |
12977 | done | |
efd58f08 RW |
12978 | done |
12979 | IFS=$as_save_IFS | |
b58b6ee1 | 12980 | |
51c8a213 DJ |
12981 | fi |
12982 | fi | |
b58b6ee1 | 12983 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
51c8a213 | 12984 | if test -n "$OBJDUMP_FOR_TARGET"; then |
efd58f08 RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12986 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
51c8a213 | 12987 | else |
efd58f08 RW |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12989 | $as_echo "no" >&6; } | |
51c8a213 | 12990 | fi |
b58b6ee1 | 12991 | |
efd58f08 | 12992 | |
fef3f213 PB |
12993 | fi |
12994 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12995 | done | |
12996 | fi | |
b58b6ee1 | 12997 | |
51c8a213 DJ |
12998 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12999 | set dummy objdump | |
13000 | if test $build = $target ; then | |
13001 | OBJDUMP_FOR_TARGET="$2" | |
13002 | else | |
13003 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13004 | fi | |
d058b81b MS |
13005 | else |
13006 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
51c8a213 DJ |
13007 | fi |
13008 | ||
207258c8 PB |
13009 | else |
13010 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
fef3f213 PB |
13011 | fi |
13012 | ||
13013 | ||
13014 | ||
13015 | ||
13016 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
13017 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13019 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13020 | if test -x $with_build_time_tools/ranlib; then |
13021 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13022 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
efd58f08 RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13024 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
207258c8 | 13025 | else |
efd58f08 RW |
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13027 | $as_echo "no" >&6; } | |
207258c8 | 13028 | fi |
fef3f213 PB |
13029 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13030 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d058b81b MS |
13031 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13032 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
fef3f213 PB |
13033 | fi |
13034 | fi | |
b58b6ee1 | 13035 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
13036 | # Extract the first word of "ranlib", so it can be a program name with args. |
13037 | set dummy ranlib; ac_word=$2 | |
efd58f08 RW |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13039 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13040 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
efd58f08 | 13041 | $as_echo_n "(cached) " >&6 |
fef3f213 | 13042 | else |
b58b6ee1 DJ |
13043 | case $RANLIB_FOR_TARGET in |
13044 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
13045 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13046 | ;; | |
fef3f213 | 13047 | *) |
b58b6ee1 DJ |
13048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13049 | for as_dir in $gcc_cv_tool_dirs | |
13050 | do | |
13051 | IFS=$as_save_IFS | |
13052 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13053 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13055 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13057 | break 2 |
13058 | fi | |
13059 | done | |
efd58f08 RW |
13060 | done |
13061 | IFS=$as_save_IFS | |
b58b6ee1 | 13062 | |
fef3f213 PB |
13063 | ;; |
13064 | esac | |
13065 | fi | |
b58b6ee1 | 13066 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
fef3f213 | 13067 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13069 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
fef3f213 | 13070 | else |
efd58f08 RW |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13072 | $as_echo "no" >&6; } | |
fef3f213 PB |
13073 | fi |
13074 | ||
efd58f08 | 13075 | |
fef3f213 PB |
13076 | fi |
13077 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
82026593 AO |
13078 | |
13079 | ||
13080 | if test -n "$RANLIB_FOR_TARGET"; then | |
13081 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13082 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13083 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13084 | fi | |
13085 | ||
13086 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13087 | for ncn_progname in ranlib; do | |
13088 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13089 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13091 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13092 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
efd58f08 | 13093 | $as_echo_n "(cached) " >&6 |
82026593 AO |
13094 | else |
13095 | if test -n "$RANLIB_FOR_TARGET"; then | |
13096 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13097 | else | |
13098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13099 | for as_dir in $PATH | |
13100 | do | |
13101 | IFS=$as_save_IFS | |
13102 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13103 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 13105 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
13107 | break 2 |
13108 | fi | |
13109 | done | |
efd58f08 RW |
13110 | done |
13111 | IFS=$as_save_IFS | |
82026593 AO |
13112 | |
13113 | fi | |
13114 | fi | |
13115 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13116 | if test -n "$RANLIB_FOR_TARGET"; then | |
efd58f08 RW |
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13118 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
82026593 | 13119 | else |
efd58f08 RW |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13121 | $as_echo "no" >&6; } | |
82026593 AO |
13122 | fi |
13123 | ||
efd58f08 | 13124 | |
82026593 AO |
13125 | done |
13126 | fi | |
13127 | ||
13128 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 13129 | for ncn_progname in ranlib; do |
efd58f08 RW |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13131 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13132 | if test -x $with_build_time_tools/${ncn_progname}; then |
13133 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13135 | $as_echo "yes" >&6; } | |
fef3f213 PB |
13136 | break |
13137 | else | |
efd58f08 RW |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13139 | $as_echo "no" >&6; } | |
fef3f213 PB |
13140 | fi |
13141 | done | |
13142 | fi | |
13143 | ||
13144 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13145 | for ncn_progname in ranlib; do | |
13146 | if test -n "$ncn_target_tool_prefix"; then | |
13147 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
51c8a213 | 13148 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13150 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13151 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
efd58f08 | 13152 | $as_echo_n "(cached) " >&6 |
a0c92996 | 13153 | else |
5fb28bcc PB |
13154 | if test -n "$RANLIB_FOR_TARGET"; then |
13155 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13156 | else |
b58b6ee1 DJ |
13157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13158 | for as_dir in $PATH | |
13159 | do | |
13160 | IFS=$as_save_IFS | |
13161 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13162 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13164 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13166 | break 2 |
13167 | fi | |
13168 | done | |
efd58f08 RW |
13169 | done |
13170 | IFS=$as_save_IFS | |
b58b6ee1 | 13171 | |
a0c92996 AC |
13172 | fi |
13173 | fi | |
b58b6ee1 | 13174 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
5fb28bcc | 13175 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13177 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
a0c92996 | 13178 | else |
efd58f08 RW |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13180 | $as_echo "no" >&6; } | |
a0c92996 AC |
13181 | fi |
13182 | ||
efd58f08 | 13183 | |
fef3f213 PB |
13184 | fi |
13185 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13186 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 13187 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13189 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13190 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
efd58f08 | 13191 | $as_echo_n "(cached) " >&6 |
a0c92996 | 13192 | else |
60cfca65 PB |
13193 | if test -n "$RANLIB_FOR_TARGET"; then |
13194 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13195 | else |
b58b6ee1 DJ |
13196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13197 | for as_dir in $PATH | |
13198 | do | |
13199 | IFS=$as_save_IFS | |
13200 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13201 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13203 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13205 | break 2 |
13206 | fi | |
13207 | done | |
efd58f08 RW |
13208 | done |
13209 | IFS=$as_save_IFS | |
b58b6ee1 | 13210 | |
a0c92996 AC |
13211 | fi |
13212 | fi | |
b58b6ee1 | 13213 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
60cfca65 | 13214 | if test -n "$RANLIB_FOR_TARGET"; then |
efd58f08 RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13216 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
a0c92996 | 13217 | else |
efd58f08 RW |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13219 | $as_echo "no" >&6; } | |
a0c92996 | 13220 | fi |
b58b6ee1 | 13221 | |
efd58f08 | 13222 | |
fef3f213 PB |
13223 | fi |
13224 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13225 | done | |
13226 | fi | |
b58b6ee1 | 13227 | |
fef3f213 PB |
13228 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13229 | set dummy ranlib | |
13230 | if test $build = $target ; then | |
13231 | RANLIB_FOR_TARGET="$2" | |
13232 | else | |
13233 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
a0c92996 | 13234 | fi |
d058b81b MS |
13235 | else |
13236 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
fef3f213 | 13237 | fi |
60cfca65 | 13238 | |
207258c8 PB |
13239 | else |
13240 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
a0c92996 AC |
13241 | fi |
13242 | ||
fef3f213 PB |
13243 | |
13244 | ||
13245 | ||
46e7439b DD |
13246 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13247 | if test -n "$with_build_time_tools"; then | |
13248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13249 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13250 | if test -x $with_build_time_tools/readelf; then | |
13251 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13252 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13254 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13255 | else | |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13257 | $as_echo "no" >&6; } | |
13258 | fi | |
13259 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13260 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13261 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13262 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13263 | fi | |
13264 | fi | |
13265 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13266 | # Extract the first word of "readelf", so it can be a program name with args. | |
13267 | set dummy readelf; ac_word=$2 | |
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13269 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13270 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
46e7439b DD |
13271 | $as_echo_n "(cached) " >&6 |
13272 | else | |
13273 | case $READELF_FOR_TARGET in | |
13274 | [\\/]* | ?:[\\/]*) | |
13275 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13276 | ;; | |
13277 | *) | |
13278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13279 | for as_dir in $gcc_cv_tool_dirs | |
13280 | do | |
13281 | IFS=$as_save_IFS | |
13282 | test -z "$as_dir" && as_dir=. | |
13283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 13284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
13285 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13287 | break 2 | |
13288 | fi | |
13289 | done | |
13290 | done | |
13291 | IFS=$as_save_IFS | |
13292 | ||
13293 | ;; | |
13294 | esac | |
13295 | fi | |
13296 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13297 | if test -n "$READELF_FOR_TARGET"; then | |
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13299 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13300 | else | |
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13302 | $as_echo "no" >&6; } | |
13303 | fi | |
13304 | ||
13305 | ||
13306 | fi | |
13307 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13308 | ||
13309 | ||
13310 | if test -n "$READELF_FOR_TARGET"; then | |
13311 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13312 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13313 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13314 | fi | |
13315 | ||
13316 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13317 | for ncn_progname in readelf; do | |
13318 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13319 | set dummy ${ncn_progname}; ac_word=$2 | |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13321 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13322 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
46e7439b DD |
13323 | $as_echo_n "(cached) " >&6 |
13324 | else | |
13325 | if test -n "$READELF_FOR_TARGET"; then | |
13326 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13327 | else | |
13328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13329 | for as_dir in $PATH | |
13330 | do | |
13331 | IFS=$as_save_IFS | |
13332 | test -z "$as_dir" && as_dir=. | |
13333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 13334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
13335 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13337 | break 2 | |
13338 | fi | |
13339 | done | |
13340 | done | |
13341 | IFS=$as_save_IFS | |
13342 | ||
13343 | fi | |
13344 | fi | |
13345 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13346 | if test -n "$READELF_FOR_TARGET"; then | |
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13348 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13349 | else | |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13351 | $as_echo "no" >&6; } | |
13352 | fi | |
13353 | ||
13354 | ||
13355 | done | |
13356 | fi | |
13357 | ||
13358 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13359 | for ncn_progname in readelf; do | |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13361 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13362 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13363 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13365 | $as_echo "yes" >&6; } | |
13366 | break | |
13367 | else | |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13369 | $as_echo "no" >&6; } | |
13370 | fi | |
13371 | done | |
13372 | fi | |
13373 | ||
13374 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13375 | for ncn_progname in readelf; do | |
13376 | if test -n "$ncn_target_tool_prefix"; then | |
13377 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13378 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13380 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13381 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
46e7439b DD |
13382 | $as_echo_n "(cached) " >&6 |
13383 | else | |
13384 | if test -n "$READELF_FOR_TARGET"; then | |
13385 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13386 | else | |
13387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13388 | for as_dir in $PATH | |
13389 | do | |
13390 | IFS=$as_save_IFS | |
13391 | test -z "$as_dir" && as_dir=. | |
13392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 13393 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
13394 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13396 | break 2 | |
13397 | fi | |
13398 | done | |
13399 | done | |
13400 | IFS=$as_save_IFS | |
13401 | ||
13402 | fi | |
13403 | fi | |
13404 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13405 | if test -n "$READELF_FOR_TARGET"; then | |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13407 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13408 | else | |
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13410 | $as_echo "no" >&6; } | |
13411 | fi | |
13412 | ||
13413 | ||
13414 | fi | |
13415 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13416 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13417 | set dummy ${ncn_progname}; ac_word=$2 | |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13419 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13420 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
46e7439b DD |
13421 | $as_echo_n "(cached) " >&6 |
13422 | else | |
13423 | if test -n "$READELF_FOR_TARGET"; then | |
13424 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13425 | else | |
13426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13427 | for as_dir in $PATH | |
13428 | do | |
13429 | IFS=$as_save_IFS | |
13430 | test -z "$as_dir" && as_dir=. | |
13431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6d3ddf51 | 13432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
46e7439b DD |
13433 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13435 | break 2 | |
13436 | fi | |
13437 | done | |
13438 | done | |
13439 | IFS=$as_save_IFS | |
13440 | ||
13441 | fi | |
13442 | fi | |
13443 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13444 | if test -n "$READELF_FOR_TARGET"; then | |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13446 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13447 | else | |
13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13449 | $as_echo "no" >&6; } | |
13450 | fi | |
13451 | ||
13452 | ||
13453 | fi | |
13454 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13455 | done | |
13456 | fi | |
13457 | ||
13458 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13459 | set dummy readelf | |
13460 | if test $build = $target ; then | |
13461 | READELF_FOR_TARGET="$2" | |
13462 | else | |
13463 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13464 | fi | |
13465 | else | |
13466 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13467 | fi | |
13468 | ||
13469 | else | |
13470 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13471 | fi | |
13472 | ||
13473 | ||
13474 | ||
13475 | ||
fef3f213 PB |
13476 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13477 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13479 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13480 | if test -x $with_build_time_tools/strip; then |
13481 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13482 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
efd58f08 RW |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13484 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
207258c8 | 13485 | else |
efd58f08 RW |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13487 | $as_echo "no" >&6; } | |
207258c8 | 13488 | fi |
fef3f213 PB |
13489 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13490 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d058b81b MS |
13491 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13492 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
fef3f213 PB |
13493 | fi |
13494 | fi | |
b58b6ee1 | 13495 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
13496 | # Extract the first word of "strip", so it can be a program name with args. |
13497 | set dummy strip; ac_word=$2 | |
efd58f08 RW |
13498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13499 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13500 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
efd58f08 | 13501 | $as_echo_n "(cached) " >&6 |
fef3f213 | 13502 | else |
b58b6ee1 DJ |
13503 | case $STRIP_FOR_TARGET in |
13504 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
13505 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13506 | ;; | |
fef3f213 | 13507 | *) |
b58b6ee1 DJ |
13508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13509 | for as_dir in $gcc_cv_tool_dirs | |
13510 | do | |
13511 | IFS=$as_save_IFS | |
13512 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13513 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13515 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13517 | break 2 |
13518 | fi | |
13519 | done | |
efd58f08 RW |
13520 | done |
13521 | IFS=$as_save_IFS | |
b58b6ee1 | 13522 | |
fef3f213 PB |
13523 | ;; |
13524 | esac | |
13525 | fi | |
b58b6ee1 | 13526 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
fef3f213 | 13527 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13529 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
fef3f213 | 13530 | else |
efd58f08 RW |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13532 | $as_echo "no" >&6; } | |
fef3f213 PB |
13533 | fi |
13534 | ||
efd58f08 | 13535 | |
fef3f213 PB |
13536 | fi |
13537 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
82026593 AO |
13538 | |
13539 | ||
13540 | if test -n "$STRIP_FOR_TARGET"; then | |
13541 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13542 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13543 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13544 | fi | |
13545 | ||
13546 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13547 | for ncn_progname in strip; do | |
13548 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13549 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13551 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13552 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
efd58f08 | 13553 | $as_echo_n "(cached) " >&6 |
82026593 AO |
13554 | else |
13555 | if test -n "$STRIP_FOR_TARGET"; then | |
13556 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13557 | else | |
13558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13559 | for as_dir in $PATH | |
13560 | do | |
13561 | IFS=$as_save_IFS | |
13562 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13563 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13564 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 13565 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
13567 | break 2 |
13568 | fi | |
13569 | done | |
efd58f08 RW |
13570 | done |
13571 | IFS=$as_save_IFS | |
82026593 AO |
13572 | |
13573 | fi | |
13574 | fi | |
13575 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13576 | if test -n "$STRIP_FOR_TARGET"; then | |
efd58f08 RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13578 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
82026593 | 13579 | else |
efd58f08 RW |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13581 | $as_echo "no" >&6; } | |
82026593 AO |
13582 | fi |
13583 | ||
efd58f08 | 13584 | |
82026593 AO |
13585 | done |
13586 | fi | |
13587 | ||
13588 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 13589 | for ncn_progname in strip; do |
efd58f08 RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13591 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13592 | if test -x $with_build_time_tools/${ncn_progname}; then |
13593 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13595 | $as_echo "yes" >&6; } | |
fef3f213 PB |
13596 | break |
13597 | else | |
efd58f08 RW |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13599 | $as_echo "no" >&6; } | |
fef3f213 PB |
13600 | fi |
13601 | done | |
13602 | fi | |
13603 | ||
13604 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13605 | for ncn_progname in strip; do | |
13606 | if test -n "$ncn_target_tool_prefix"; then | |
13607 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 13608 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13610 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13611 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
efd58f08 | 13612 | $as_echo_n "(cached) " >&6 |
6a33f745 GK |
13613 | else |
13614 | if test -n "$STRIP_FOR_TARGET"; then | |
13615 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
b58b6ee1 DJ |
13616 | else |
13617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13618 | for as_dir in $PATH | |
13619 | do | |
13620 | IFS=$as_save_IFS | |
13621 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13622 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13623 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13624 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13626 | break 2 |
13627 | fi | |
13628 | done | |
efd58f08 RW |
13629 | done |
13630 | IFS=$as_save_IFS | |
b58b6ee1 | 13631 | |
6a33f745 GK |
13632 | fi |
13633 | fi | |
b58b6ee1 | 13634 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
6a33f745 | 13635 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13637 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
6a33f745 | 13638 | else |
efd58f08 RW |
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13640 | $as_echo "no" >&6; } | |
6a33f745 GK |
13641 | fi |
13642 | ||
efd58f08 | 13643 | |
fef3f213 PB |
13644 | fi |
13645 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13646 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
6a33f745 | 13647 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13649 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13650 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
efd58f08 | 13651 | $as_echo_n "(cached) " >&6 |
6a33f745 GK |
13652 | else |
13653 | if test -n "$STRIP_FOR_TARGET"; then | |
13654 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13655 | else | |
b58b6ee1 DJ |
13656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13657 | for as_dir in $PATH | |
13658 | do | |
13659 | IFS=$as_save_IFS | |
13660 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13661 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13663 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13665 | break 2 |
13666 | fi | |
13667 | done | |
efd58f08 RW |
13668 | done |
13669 | IFS=$as_save_IFS | |
b58b6ee1 | 13670 | |
6a33f745 GK |
13671 | fi |
13672 | fi | |
b58b6ee1 | 13673 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
6a33f745 | 13674 | if test -n "$STRIP_FOR_TARGET"; then |
efd58f08 RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13676 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
6a33f745 | 13677 | else |
efd58f08 RW |
13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13679 | $as_echo "no" >&6; } | |
6a33f745 | 13680 | fi |
b58b6ee1 | 13681 | |
efd58f08 | 13682 | |
fef3f213 PB |
13683 | fi |
13684 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13685 | done | |
13686 | fi | |
b58b6ee1 | 13687 | |
6a33f745 GK |
13688 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13689 | set dummy strip | |
13690 | if test $build = $target ; then | |
13691 | STRIP_FOR_TARGET="$2" | |
13692 | else | |
13693 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13694 | fi | |
d058b81b MS |
13695 | else |
13696 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
6a33f745 GK |
13697 | fi |
13698 | ||
207258c8 PB |
13699 | else |
13700 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
fef3f213 PB |
13701 | fi |
13702 | ||
13703 | ||
13704 | ||
13705 | ||
13706 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13707 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13709 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13710 | if test -x $with_build_time_tools/windres; then |
13711 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13712 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
efd58f08 RW |
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13714 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
207258c8 | 13715 | else |
efd58f08 RW |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13717 | $as_echo "no" >&6; } | |
207258c8 | 13718 | fi |
fef3f213 PB |
13719 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13720 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d058b81b MS |
13721 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13722 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
fef3f213 PB |
13723 | fi |
13724 | fi | |
b58b6ee1 | 13725 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
fef3f213 PB |
13726 | # Extract the first word of "windres", so it can be a program name with args. |
13727 | set dummy windres; ac_word=$2 | |
efd58f08 RW |
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13729 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13730 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
efd58f08 | 13731 | $as_echo_n "(cached) " >&6 |
fef3f213 | 13732 | else |
b58b6ee1 DJ |
13733 | case $WINDRES_FOR_TARGET in |
13734 | [\\/]* | ?:[\\/]*) | |
fef3f213 PB |
13735 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13736 | ;; | |
fef3f213 | 13737 | *) |
b58b6ee1 DJ |
13738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13739 | for as_dir in $gcc_cv_tool_dirs | |
13740 | do | |
13741 | IFS=$as_save_IFS | |
13742 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13743 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13745 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13747 | break 2 |
13748 | fi | |
13749 | done | |
efd58f08 RW |
13750 | done |
13751 | IFS=$as_save_IFS | |
b58b6ee1 | 13752 | |
fef3f213 PB |
13753 | ;; |
13754 | esac | |
13755 | fi | |
b58b6ee1 | 13756 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
fef3f213 | 13757 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13759 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
fef3f213 | 13760 | else |
efd58f08 RW |
13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13762 | $as_echo "no" >&6; } | |
fef3f213 PB |
13763 | fi |
13764 | ||
efd58f08 | 13765 | |
fef3f213 PB |
13766 | fi |
13767 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
82026593 AO |
13768 | |
13769 | ||
13770 | if test -n "$WINDRES_FOR_TARGET"; then | |
13771 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13772 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13773 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13774 | fi | |
13775 | ||
13776 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13777 | for ncn_progname in windres; do | |
13778 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13779 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13781 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13782 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
efd58f08 | 13783 | $as_echo_n "(cached) " >&6 |
82026593 AO |
13784 | else |
13785 | if test -n "$WINDRES_FOR_TARGET"; then | |
13786 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13787 | else | |
13788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13789 | for as_dir in $PATH | |
13790 | do | |
13791 | IFS=$as_save_IFS | |
13792 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13793 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13794 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
82026593 | 13795 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
82026593 AO |
13797 | break 2 |
13798 | fi | |
13799 | done | |
efd58f08 RW |
13800 | done |
13801 | IFS=$as_save_IFS | |
82026593 AO |
13802 | |
13803 | fi | |
13804 | fi | |
13805 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13806 | if test -n "$WINDRES_FOR_TARGET"; then | |
efd58f08 RW |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13808 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
82026593 | 13809 | else |
efd58f08 RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13811 | $as_echo "no" >&6; } | |
82026593 AO |
13812 | fi |
13813 | ||
efd58f08 | 13814 | |
82026593 AO |
13815 | done |
13816 | fi | |
13817 | ||
13818 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
fef3f213 | 13819 | for ncn_progname in windres; do |
efd58f08 RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13821 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
207258c8 PB |
13822 | if test -x $with_build_time_tools/${ncn_progname}; then |
13823 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13825 | $as_echo "yes" >&6; } | |
fef3f213 PB |
13826 | break |
13827 | else | |
efd58f08 RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13829 | $as_echo "no" >&6; } | |
fef3f213 PB |
13830 | fi |
13831 | done | |
13832 | fi | |
13833 | ||
13834 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13835 | for ncn_progname in windres; do | |
13836 | if test -n "$ncn_target_tool_prefix"; then | |
13837 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 13838 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13840 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13841 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
efd58f08 | 13842 | $as_echo_n "(cached) " >&6 |
a0c92996 | 13843 | else |
5fb28bcc PB |
13844 | if test -n "$WINDRES_FOR_TARGET"; then |
13845 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13846 | else |
b58b6ee1 DJ |
13847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13848 | for as_dir in $PATH | |
13849 | do | |
13850 | IFS=$as_save_IFS | |
13851 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13852 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13854 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 13855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13856 | break 2 |
13857 | fi | |
13858 | done | |
efd58f08 RW |
13859 | done |
13860 | IFS=$as_save_IFS | |
b58b6ee1 | 13861 | |
a0c92996 AC |
13862 | fi |
13863 | fi | |
b58b6ee1 | 13864 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
5fb28bcc | 13865 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13867 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
a0c92996 | 13868 | else |
efd58f08 RW |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13870 | $as_echo "no" >&6; } | |
a0c92996 AC |
13871 | fi |
13872 | ||
efd58f08 | 13873 | |
fef3f213 PB |
13874 | fi |
13875 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13876 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
60cfca65 | 13877 | set dummy ${ncn_progname}; ac_word=$2 |
efd58f08 RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13879 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13880 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
efd58f08 | 13881 | $as_echo_n "(cached) " >&6 |
a0c92996 | 13882 | else |
60cfca65 PB |
13883 | if test -n "$WINDRES_FOR_TARGET"; then |
13884 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 | 13885 | else |
b58b6ee1 DJ |
13886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13887 | for as_dir in $PATH | |
13888 | do | |
13889 | IFS=$as_save_IFS | |
13890 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13891 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b58b6ee1 | 13893 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
efd58f08 | 13894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b58b6ee1 DJ |
13895 | break 2 |
13896 | fi | |
13897 | done | |
efd58f08 RW |
13898 | done |
13899 | IFS=$as_save_IFS | |
b58b6ee1 | 13900 | |
a0c92996 AC |
13901 | fi |
13902 | fi | |
b58b6ee1 | 13903 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
60cfca65 | 13904 | if test -n "$WINDRES_FOR_TARGET"; then |
efd58f08 RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13906 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
a0c92996 | 13907 | else |
efd58f08 RW |
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13909 | $as_echo "no" >&6; } | |
a0c92996 | 13910 | fi |
b58b6ee1 | 13911 | |
efd58f08 | 13912 | |
fef3f213 PB |
13913 | fi |
13914 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13915 | done | |
13916 | fi | |
b58b6ee1 | 13917 | |
60cfca65 PB |
13918 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13919 | set dummy windres | |
13920 | if test $build = $target ; then | |
13921 | WINDRES_FOR_TARGET="$2" | |
a0c92996 | 13922 | else |
60cfca65 | 13923 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
a0c92996 | 13924 | fi |
d058b81b MS |
13925 | else |
13926 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
a0c92996 AC |
13927 | fi |
13928 | ||
207258c8 PB |
13929 | else |
13930 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
fef3f213 PB |
13931 | fi |
13932 | ||
712e2a32 | 13933 | |
bffcbe34 NC |
13934 | |
13935 | ||
13936 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13937 | if test -n "$with_build_time_tools"; then | |
efd58f08 RW |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13939 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
bffcbe34 NC |
13940 | if test -x $with_build_time_tools/windmc; then |
13941 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13942 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
efd58f08 RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13944 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13945 | else |
efd58f08 RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13947 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13948 | fi |
13949 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13950 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13951 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13952 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13953 | fi | |
13954 | fi | |
13955 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13956 | # Extract the first word of "windmc", so it can be a program name with args. | |
13957 | set dummy windmc; ac_word=$2 | |
efd58f08 RW |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13959 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 13960 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
efd58f08 | 13961 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
13962 | else |
13963 | case $WINDMC_FOR_TARGET in | |
13964 | [\\/]* | ?:[\\/]*) | |
13965 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13966 | ;; | |
13967 | *) | |
13968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13969 | for as_dir in $gcc_cv_tool_dirs | |
13970 | do | |
13971 | IFS=$as_save_IFS | |
13972 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 13973 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 13974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 13975 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
efd58f08 | 13976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
13977 | break 2 |
13978 | fi | |
13979 | done | |
efd58f08 RW |
13980 | done |
13981 | IFS=$as_save_IFS | |
bffcbe34 NC |
13982 | |
13983 | ;; | |
13984 | esac | |
13985 | fi | |
13986 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
bffcbe34 | 13987 | if test -n "$WINDMC_FOR_TARGET"; then |
efd58f08 RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13989 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 13990 | else |
efd58f08 RW |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13992 | $as_echo "no" >&6; } | |
bffcbe34 NC |
13993 | fi |
13994 | ||
efd58f08 | 13995 | |
bffcbe34 NC |
13996 | fi |
13997 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13998 | ||
13999 | ||
14000 | if test -n "$WINDMC_FOR_TARGET"; then | |
14001 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14002 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14003 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14004 | fi | |
14005 | ||
14006 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14007 | for ncn_progname in windmc; do | |
14008 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14009 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14011 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 14012 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
efd58f08 | 14013 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
14014 | else |
14015 | if test -n "$WINDMC_FOR_TARGET"; then | |
14016 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14017 | else | |
14018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14019 | for as_dir in $PATH | |
14020 | do | |
14021 | IFS=$as_save_IFS | |
14022 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 14023 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 14024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 14025 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 14026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
14027 | break 2 |
14028 | fi | |
14029 | done | |
efd58f08 RW |
14030 | done |
14031 | IFS=$as_save_IFS | |
bffcbe34 NC |
14032 | |
14033 | fi | |
14034 | fi | |
14035 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14036 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14038 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 14039 | else |
efd58f08 RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14041 | $as_echo "no" >&6; } | |
bffcbe34 NC |
14042 | fi |
14043 | ||
efd58f08 | 14044 | |
bffcbe34 NC |
14045 | done |
14046 | fi | |
14047 | ||
14048 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14049 | for ncn_progname in windmc; do | |
efd58f08 RW |
14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14051 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
bffcbe34 NC |
14052 | if test -x $with_build_time_tools/${ncn_progname}; then |
14053 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
efd58f08 RW |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14055 | $as_echo "yes" >&6; } | |
bffcbe34 NC |
14056 | break |
14057 | else | |
efd58f08 RW |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14059 | $as_echo "no" >&6; } | |
bffcbe34 NC |
14060 | fi |
14061 | done | |
14062 | fi | |
14063 | ||
14064 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14065 | for ncn_progname in windmc; do | |
14066 | if test -n "$ncn_target_tool_prefix"; then | |
14067 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14068 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14070 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 14071 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
efd58f08 | 14072 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
14073 | else |
14074 | if test -n "$WINDMC_FOR_TARGET"; then | |
14075 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14076 | else | |
14077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14078 | for as_dir in $PATH | |
14079 | do | |
14080 | IFS=$as_save_IFS | |
14081 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 14082 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 14083 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 14084 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
efd58f08 | 14085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
14086 | break 2 |
14087 | fi | |
14088 | done | |
efd58f08 RW |
14089 | done |
14090 | IFS=$as_save_IFS | |
bffcbe34 NC |
14091 | |
14092 | fi | |
14093 | fi | |
14094 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14095 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14097 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 14098 | else |
efd58f08 RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14100 | $as_echo "no" >&6; } | |
bffcbe34 NC |
14101 | fi |
14102 | ||
efd58f08 | 14103 | |
bffcbe34 NC |
14104 | fi |
14105 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14106 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14107 | set dummy ${ncn_progname}; ac_word=$2 | |
efd58f08 RW |
14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14109 | $as_echo_n "checking for $ac_word... " >&6; } | |
6d3ddf51 | 14110 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
efd58f08 | 14111 | $as_echo_n "(cached) " >&6 |
bffcbe34 NC |
14112 | else |
14113 | if test -n "$WINDMC_FOR_TARGET"; then | |
14114 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14115 | else | |
14116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14117 | for as_dir in $PATH | |
14118 | do | |
14119 | IFS=$as_save_IFS | |
14120 | test -z "$as_dir" && as_dir=. | |
efd58f08 | 14121 | for ac_exec_ext in '' $ac_executable_extensions; do |
6d3ddf51 | 14122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bffcbe34 | 14123 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
efd58f08 | 14124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bffcbe34 NC |
14125 | break 2 |
14126 | fi | |
14127 | done | |
efd58f08 RW |
14128 | done |
14129 | IFS=$as_save_IFS | |
bffcbe34 NC |
14130 | |
14131 | fi | |
14132 | fi | |
14133 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14134 | if test -n "$WINDMC_FOR_TARGET"; then | |
efd58f08 RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14136 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
bffcbe34 | 14137 | else |
efd58f08 RW |
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14139 | $as_echo "no" >&6; } | |
bffcbe34 NC |
14140 | fi |
14141 | ||
efd58f08 | 14142 | |
bffcbe34 NC |
14143 | fi |
14144 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14145 | done | |
14146 | fi | |
14147 | ||
14148 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14149 | set dummy windmc | |
14150 | if test $build = $target ; then | |
14151 | WINDMC_FOR_TARGET="$2" | |
14152 | else | |
14153 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14154 | fi | |
14155 | else | |
14156 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
14157 | fi | |
14158 | ||
14159 | else | |
14160 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14161 | fi | |
14162 | ||
14163 | ||
a7dc05b5 PB |
14164 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14165 | ||
efd58f08 RW |
14166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14167 | $as_echo_n "checking where to find the target ar... " >&6; } | |
a7dc05b5 | 14168 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14169 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14170 | # We already found the complete path | |
7a81a717 | 14171 | ac_dir=`dirname $AR_FOR_TARGET` |
efd58f08 RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14173 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14174 | else |
14175 | # Canadian cross, just use what we found | |
efd58f08 RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14177 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14178 | fi |
a7dc05b5 PB |
14179 | else |
14180 | ok=yes | |
14181 | case " ${configdirs} " in | |
14182 | *" binutils "*) ;; | |
14183 | *) ok=no ;; | |
14184 | esac | |
b58b6ee1 | 14185 | |
a7dc05b5 PB |
14186 | if test $ok = yes; then |
14187 | # An in-tree tool is available and we can use it | |
14188 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
efd58f08 RW |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14190 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14191 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14192 | # We already found the complete path | |
7a81a717 | 14193 | ac_dir=`dirname $AR_FOR_TARGET` |
efd58f08 RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14195 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14196 | elif test "x$target" = "x$host"; then |
14197 | # We can use an host tool | |
14198 | AR_FOR_TARGET='$(AR)' | |
efd58f08 RW |
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14200 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14201 | else |
14202 | # We need a cross tool | |
efd58f08 RW |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14204 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14205 | fi |
14206 | fi | |
42f55f77 | 14207 | |
efd58f08 RW |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14209 | $as_echo_n "checking where to find the target as... " >&6; } | |
a7dc05b5 | 14210 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14211 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14212 | # We already found the complete path | |
7a81a717 | 14213 | ac_dir=`dirname $AS_FOR_TARGET` |
efd58f08 RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14215 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14216 | else |
14217 | # Canadian cross, just use what we found | |
efd58f08 RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14219 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14220 | fi |
a7dc05b5 PB |
14221 | else |
14222 | ok=yes | |
14223 | case " ${configdirs} " in | |
14224 | *" gas "*) ;; | |
14225 | *) ok=no ;; | |
14226 | esac | |
b58b6ee1 | 14227 | |
a7dc05b5 PB |
14228 | if test $ok = yes; then |
14229 | # An in-tree tool is available and we can use it | |
14230 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
efd58f08 RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14232 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14233 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14234 | # We already found the complete path | |
7a81a717 | 14235 | ac_dir=`dirname $AS_FOR_TARGET` |
efd58f08 RW |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14237 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14238 | elif test "x$target" = "x$host"; then |
14239 | # We can use an host tool | |
14240 | AS_FOR_TARGET='$(AS)' | |
efd58f08 RW |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14242 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14243 | else |
14244 | # We need a cross tool | |
efd58f08 RW |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14246 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14247 | fi |
14248 | fi | |
42f55f77 | 14249 | |
efd58f08 RW |
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14251 | $as_echo_n "checking where to find the target cc... " >&6; } | |
a7dc05b5 | 14252 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14253 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14254 | # We already found the complete path | |
7a81a717 | 14255 | ac_dir=`dirname $CC_FOR_TARGET` |
efd58f08 RW |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14257 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14258 | else |
14259 | # Canadian cross, just use what we found | |
efd58f08 RW |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14261 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14262 | fi |
a7dc05b5 PB |
14263 | else |
14264 | ok=yes | |
14265 | case " ${configdirs} " in | |
14266 | *" gcc "*) ;; | |
14267 | *) ok=no ;; | |
14268 | esac | |
b58b6ee1 | 14269 | |
a7dc05b5 PB |
14270 | if test $ok = yes; then |
14271 | # An in-tree tool is available and we can use it | |
14272 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14274 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14275 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14276 | # We already found the complete path | |
7a81a717 | 14277 | ac_dir=`dirname $CC_FOR_TARGET` |
efd58f08 RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14279 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14280 | elif test "x$target" = "x$host"; then |
14281 | # We can use an host tool | |
14282 | CC_FOR_TARGET='$(CC)' | |
efd58f08 RW |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14284 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14285 | else |
14286 | # We need a cross tool | |
efd58f08 RW |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14288 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14289 | fi |
14290 | fi | |
42f55f77 | 14291 | |
efd58f08 RW |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14293 | $as_echo_n "checking where to find the target c++... " >&6; } | |
a7dc05b5 | 14294 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14295 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14296 | # We already found the complete path | |
7a81a717 | 14297 | ac_dir=`dirname $CXX_FOR_TARGET` |
efd58f08 RW |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14299 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14300 | else |
14301 | # Canadian cross, just use what we found | |
efd58f08 RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14303 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14304 | fi |
a7dc05b5 PB |
14305 | else |
14306 | ok=yes | |
14307 | case " ${configdirs} " in | |
14308 | *" gcc "*) ;; | |
14309 | *) ok=no ;; | |
14310 | esac | |
14311 | case ,${enable_languages}, in | |
14312 | *,c++,*) ;; | |
14313 | *) ok=no ;; | |
14314 | esac | |
14315 | if test $ok = yes; then | |
14316 | # An in-tree tool is available and we can use it | |
111ced6d | 14317 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
efd58f08 RW |
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14319 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14320 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14321 | # We already found the complete path | |
7a81a717 | 14322 | ac_dir=`dirname $CXX_FOR_TARGET` |
efd58f08 RW |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14324 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14325 | elif test "x$target" = "x$host"; then |
14326 | # We can use an host tool | |
14327 | CXX_FOR_TARGET='$(CXX)' | |
efd58f08 RW |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14329 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14330 | else |
14331 | # We need a cross tool | |
efd58f08 RW |
14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14333 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14334 | fi |
14335 | fi | |
42f55f77 | 14336 | |
efd58f08 RW |
14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14338 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
a7dc05b5 | 14339 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14340 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14341 | # We already found the complete path | |
7a81a717 | 14342 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
efd58f08 RW |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14344 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14345 | else |
14346 | # Canadian cross, just use what we found | |
efd58f08 RW |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14348 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14349 | fi |
a7dc05b5 PB |
14350 | else |
14351 | ok=yes | |
14352 | case " ${configdirs} " in | |
14353 | *" gcc "*) ;; | |
14354 | *) ok=no ;; | |
14355 | esac | |
14356 | case ,${enable_languages}, in | |
14357 | *,c++,*) ;; | |
14358 | *) ok=no ;; | |
14359 | esac | |
14360 | if test $ok = yes; then | |
14361 | # An in-tree tool is available and we can use it | |
111ced6d | 14362 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
efd58f08 RW |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14364 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14365 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14366 | # We already found the complete path | |
7a81a717 | 14367 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
efd58f08 RW |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14369 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14370 | elif test "x$target" = "x$host"; then |
14371 | # We can use an host tool | |
14372 | RAW_CXX_FOR_TARGET='$(CXX)' | |
efd58f08 RW |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14374 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14375 | else |
14376 | # We need a cross tool | |
efd58f08 RW |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14378 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14379 | fi |
14380 | fi | |
42f55f77 | 14381 | |
efd58f08 RW |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14383 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
a7dc05b5 | 14384 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14385 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14386 | # We already found the complete path | |
7a81a717 | 14387 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
efd58f08 RW |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14389 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14390 | else |
14391 | # Canadian cross, just use what we found | |
efd58f08 RW |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14393 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14394 | fi |
a7dc05b5 PB |
14395 | else |
14396 | ok=yes | |
14397 | case " ${configdirs} " in | |
14398 | *" binutils "*) ;; | |
14399 | *) ok=no ;; | |
14400 | esac | |
b58b6ee1 | 14401 | |
a7dc05b5 PB |
14402 | if test $ok = yes; then |
14403 | # An in-tree tool is available and we can use it | |
14404 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
efd58f08 RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14406 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14407 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14408 | # We already found the complete path | |
7a81a717 | 14409 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
efd58f08 RW |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14411 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14412 | elif test "x$target" = "x$host"; then |
14413 | # We can use an host tool | |
14414 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
efd58f08 RW |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14416 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14417 | else |
14418 | # We need a cross tool | |
efd58f08 RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14420 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14421 | fi |
14422 | fi | |
42f55f77 | 14423 | |
efd58f08 RW |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14425 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
a7dc05b5 | 14426 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14427 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14428 | # We already found the complete path | |
7a81a717 | 14429 | ac_dir=`dirname $GCC_FOR_TARGET` |
efd58f08 RW |
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14431 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14432 | else |
14433 | # Canadian cross, just use what we found | |
efd58f08 RW |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14435 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14436 | fi |
a7dc05b5 PB |
14437 | else |
14438 | ok=yes | |
14439 | case " ${configdirs} " in | |
14440 | *" gcc "*) ;; | |
14441 | *) ok=no ;; | |
14442 | esac | |
b58b6ee1 | 14443 | |
a7dc05b5 PB |
14444 | if test $ok = yes; then |
14445 | # An in-tree tool is available and we can use it | |
14446 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14448 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14449 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14450 | # We already found the complete path | |
7a81a717 | 14451 | ac_dir=`dirname $GCC_FOR_TARGET` |
efd58f08 RW |
14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14453 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14454 | elif test "x$target" = "x$host"; then |
14455 | # We can use an host tool | |
14456 | GCC_FOR_TARGET='$()' | |
efd58f08 RW |
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14458 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14459 | else |
14460 | # We need a cross tool | |
efd58f08 RW |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14462 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14463 | fi |
14464 | fi | |
42f55f77 | 14465 | |
efd58f08 RW |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14467 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
a7dc05b5 | 14468 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14469 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14470 | # We already found the complete path | |
7a81a717 | 14471 | ac_dir=`dirname $GCJ_FOR_TARGET` |
efd58f08 RW |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14473 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14474 | else |
14475 | # Canadian cross, just use what we found | |
efd58f08 RW |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14477 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14478 | fi |
a7dc05b5 PB |
14479 | else |
14480 | ok=yes | |
14481 | case " ${configdirs} " in | |
14482 | *" gcc "*) ;; | |
14483 | *) ok=no ;; | |
14484 | esac | |
14485 | case ,${enable_languages}, in | |
14486 | *,java,*) ;; | |
14487 | *) ok=no ;; | |
14488 | esac | |
14489 | if test $ok = yes; then | |
14490 | # An in-tree tool is available and we can use it | |
14491 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14493 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14494 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14495 | # We already found the complete path | |
7a81a717 | 14496 | ac_dir=`dirname $GCJ_FOR_TARGET` |
efd58f08 RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14498 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14499 | elif test "x$target" = "x$host"; then |
14500 | # We can use an host tool | |
14501 | GCJ_FOR_TARGET='$(GCJ)' | |
efd58f08 RW |
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14503 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14504 | else |
14505 | # We need a cross tool | |
efd58f08 RW |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14507 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14508 | fi |
14509 | fi | |
42f55f77 | 14510 | |
efd58f08 RW |
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14512 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
a7dc05b5 | 14513 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14514 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14515 | # We already found the complete path | |
7a81a717 | 14516 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
efd58f08 RW |
14517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14518 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14519 | else |
14520 | # Canadian cross, just use what we found | |
efd58f08 RW |
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14522 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14523 | fi |
a7dc05b5 PB |
14524 | else |
14525 | ok=yes | |
14526 | case " ${configdirs} " in | |
14527 | *" gcc "*) ;; | |
14528 | *) ok=no ;; | |
14529 | esac | |
14530 | case ,${enable_languages}, in | |
14531 | *,fortran,*) ;; | |
14532 | *) ok=no ;; | |
14533 | esac | |
14534 | if test $ok = yes; then | |
14535 | # An in-tree tool is available and we can use it | |
14536 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
efd58f08 RW |
14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14538 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14539 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14540 | # We already found the complete path | |
7a81a717 | 14541 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
efd58f08 RW |
14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14543 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14544 | elif test "x$target" = "x$host"; then |
14545 | # We can use an host tool | |
14546 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
efd58f08 RW |
14547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14548 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14549 | else |
14550 | # We need a cross tool | |
efd58f08 RW |
14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14552 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14553 | fi |
14554 | fi | |
42f55f77 | 14555 | |
d5b7129a ILT |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14557 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14558 | if test "x${build}" != "x${host}" ; then | |
14559 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14560 | # We already found the complete path | |
14561 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14563 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14564 | else | |
14565 | # Canadian cross, just use what we found | |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14567 | $as_echo "pre-installed" >&6; } | |
14568 | fi | |
14569 | else | |
14570 | ok=yes | |
14571 | case " ${configdirs} " in | |
14572 | *" gcc "*) ;; | |
14573 | *) ok=no ;; | |
14574 | esac | |
14575 | case ,${enable_languages}, in | |
14576 | *,go,*) ;; | |
14577 | *) ok=no ;; | |
14578 | esac | |
14579 | if test $ok = yes; then | |
14580 | # An in-tree tool is available and we can use it | |
14581 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14583 | $as_echo "just compiled" >&6; } | |
14584 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14585 | # We already found the complete path | |
14586 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14588 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14589 | elif test "x$target" = "x$host"; then | |
14590 | # We can use an host tool | |
14591 | GOC_FOR_TARGET='$(GOC)' | |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14593 | $as_echo "host tool" >&6; } | |
14594 | else | |
14595 | # We need a cross tool | |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14597 | $as_echo "pre-installed" >&6; } | |
14598 | fi | |
14599 | fi | |
14600 | ||
efd58f08 RW |
14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14602 | $as_echo_n "checking where to find the target ld... " >&6; } | |
a7dc05b5 | 14603 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14604 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14605 | # We already found the complete path | |
7a81a717 | 14606 | ac_dir=`dirname $LD_FOR_TARGET` |
efd58f08 RW |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14608 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14609 | else |
14610 | # Canadian cross, just use what we found | |
efd58f08 RW |
14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14612 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14613 | fi |
a7dc05b5 PB |
14614 | else |
14615 | ok=yes | |
14616 | case " ${configdirs} " in | |
14617 | *" ld "*) ;; | |
14618 | *) ok=no ;; | |
14619 | esac | |
b58b6ee1 | 14620 | |
a7dc05b5 PB |
14621 | if test $ok = yes; then |
14622 | # An in-tree tool is available and we can use it | |
14623 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
efd58f08 RW |
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14625 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14626 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14627 | # We already found the complete path | |
7a81a717 | 14628 | ac_dir=`dirname $LD_FOR_TARGET` |
efd58f08 RW |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14630 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14631 | elif test "x$target" = "x$host"; then |
14632 | # We can use an host tool | |
14633 | LD_FOR_TARGET='$(LD)' | |
efd58f08 RW |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14635 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14636 | else |
14637 | # We need a cross tool | |
efd58f08 RW |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14639 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14640 | fi |
14641 | fi | |
42f55f77 | 14642 | |
efd58f08 RW |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14644 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
a7dc05b5 | 14645 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14646 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14647 | # We already found the complete path | |
7a81a717 | 14648 | ac_dir=`dirname $LIPO_FOR_TARGET` |
efd58f08 RW |
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14650 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14651 | else |
14652 | # Canadian cross, just use what we found | |
efd58f08 RW |
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14654 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14655 | fi |
a7dc05b5 | 14656 | else |
fef3f213 PB |
14657 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14658 | # We already found the complete path | |
7a81a717 | 14659 | ac_dir=`dirname $LIPO_FOR_TARGET` |
efd58f08 RW |
14660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14661 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 | 14662 | elif test "x$target" = "x$host"; then |
a7dc05b5 PB |
14663 | # We can use an host tool |
14664 | LIPO_FOR_TARGET='$(LIPO)' | |
efd58f08 RW |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14666 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14667 | else |
14668 | # We need a cross tool | |
efd58f08 RW |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14670 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14671 | fi |
14672 | fi | |
42f55f77 | 14673 | |
efd58f08 RW |
14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14675 | $as_echo_n "checking where to find the target nm... " >&6; } | |
a7dc05b5 | 14676 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14677 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14678 | # We already found the complete path | |
7a81a717 | 14679 | ac_dir=`dirname $NM_FOR_TARGET` |
efd58f08 RW |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14681 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14682 | else |
14683 | # Canadian cross, just use what we found | |
efd58f08 RW |
14684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14685 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14686 | fi |
a7dc05b5 PB |
14687 | else |
14688 | ok=yes | |
14689 | case " ${configdirs} " in | |
14690 | *" binutils "*) ;; | |
14691 | *) ok=no ;; | |
14692 | esac | |
b58b6ee1 | 14693 | |
a7dc05b5 PB |
14694 | if test $ok = yes; then |
14695 | # An in-tree tool is available and we can use it | |
14696 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
efd58f08 RW |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14698 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14699 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14700 | # We already found the complete path | |
7a81a717 | 14701 | ac_dir=`dirname $NM_FOR_TARGET` |
efd58f08 RW |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14703 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14704 | elif test "x$target" = "x$host"; then |
14705 | # We can use an host tool | |
14706 | NM_FOR_TARGET='$(NM)' | |
efd58f08 RW |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14708 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14709 | else |
14710 | # We need a cross tool | |
efd58f08 RW |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14712 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14713 | fi |
14714 | fi | |
42f55f77 | 14715 | |
fe508576 CV |
14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14717 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14718 | if test "x${build}" != "x${host}" ; then | |
14719 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14720 | # We already found the complete path | |
14721 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14723 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14724 | else | |
14725 | # Canadian cross, just use what we found | |
14726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14727 | $as_echo "pre-installed" >&6; } | |
14728 | fi | |
14729 | else | |
14730 | ok=yes | |
14731 | case " ${configdirs} " in | |
14732 | *" binutils "*) ;; | |
14733 | *) ok=no ;; | |
14734 | esac | |
14735 | ||
14736 | if test $ok = yes; then | |
14737 | # An in-tree tool is available and we can use it | |
14738 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14740 | $as_echo "just compiled" >&6; } | |
14741 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14742 | # We already found the complete path | |
14743 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14745 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14746 | elif test "x$target" = "x$host"; then | |
14747 | # We can use an host tool | |
14748 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' | |
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14750 | $as_echo "host tool" >&6; } | |
14751 | else | |
14752 | # We need a cross tool | |
14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14754 | $as_echo "pre-installed" >&6; } | |
14755 | fi | |
14756 | fi | |
14757 | ||
efd58f08 RW |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14759 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
a7dc05b5 | 14760 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14761 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14762 | # We already found the complete path | |
7a81a717 | 14763 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
efd58f08 RW |
14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14765 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14766 | else |
14767 | # Canadian cross, just use what we found | |
efd58f08 RW |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14769 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14770 | fi |
a7dc05b5 PB |
14771 | else |
14772 | ok=yes | |
14773 | case " ${configdirs} " in | |
14774 | *" binutils "*) ;; | |
14775 | *) ok=no ;; | |
14776 | esac | |
b58b6ee1 | 14777 | |
a7dc05b5 PB |
14778 | if test $ok = yes; then |
14779 | # An in-tree tool is available and we can use it | |
14780 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
efd58f08 RW |
14781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14782 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14783 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14784 | # We already found the complete path | |
7a81a717 | 14785 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
efd58f08 RW |
14786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14787 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14788 | elif test "x$target" = "x$host"; then |
14789 | # We can use an host tool | |
14790 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
efd58f08 RW |
14791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14792 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14793 | else |
14794 | # We need a cross tool | |
efd58f08 RW |
14795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14796 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14797 | fi |
14798 | fi | |
42f55f77 | 14799 | |
efd58f08 RW |
14800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14801 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
a7dc05b5 | 14802 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14803 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14804 | # We already found the complete path | |
7a81a717 | 14805 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
efd58f08 RW |
14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14807 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14808 | else |
14809 | # Canadian cross, just use what we found | |
efd58f08 RW |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14811 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14812 | fi |
a7dc05b5 PB |
14813 | else |
14814 | ok=yes | |
14815 | case " ${configdirs} " in | |
14816 | *" binutils "*) ;; | |
14817 | *) ok=no ;; | |
14818 | esac | |
b58b6ee1 | 14819 | |
a7dc05b5 PB |
14820 | if test $ok = yes; then |
14821 | # An in-tree tool is available and we can use it | |
14822 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
efd58f08 RW |
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14824 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14825 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14826 | # We already found the complete path | |
7a81a717 | 14827 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
efd58f08 RW |
14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14829 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14830 | elif test "x$target" = "x$host"; then |
14831 | # We can use an host tool | |
14832 | RANLIB_FOR_TARGET='$(RANLIB)' | |
efd58f08 RW |
14833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14834 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14835 | else |
14836 | # We need a cross tool | |
efd58f08 RW |
14837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14838 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14839 | fi |
14840 | fi | |
42f55f77 | 14841 | |
46e7439b DD |
14842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14843 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14844 | if test "x${build}" != "x${host}" ; then | |
14845 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14846 | # We already found the complete path | |
14847 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14849 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14850 | else | |
14851 | # Canadian cross, just use what we found | |
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14853 | $as_echo "pre-installed" >&6; } | |
14854 | fi | |
14855 | else | |
14856 | ok=yes | |
14857 | case " ${configdirs} " in | |
14858 | *" binutils "*) ;; | |
14859 | *) ok=no ;; | |
14860 | esac | |
14861 | ||
14862 | if test $ok = yes; then | |
14863 | # An in-tree tool is available and we can use it | |
14864 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14866 | $as_echo "just compiled" >&6; } | |
14867 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14868 | # We already found the complete path | |
14869 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14871 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14872 | elif test "x$target" = "x$host"; then | |
14873 | # We can use an host tool | |
14874 | READELF_FOR_TARGET='$(READELF)' | |
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14876 | $as_echo "host tool" >&6; } | |
14877 | else | |
14878 | # We need a cross tool | |
14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14880 | $as_echo "pre-installed" >&6; } | |
14881 | fi | |
14882 | fi | |
14883 | ||
efd58f08 RW |
14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14885 | $as_echo_n "checking where to find the target strip... " >&6; } | |
a7dc05b5 | 14886 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14887 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14888 | # We already found the complete path | |
7a81a717 | 14889 | ac_dir=`dirname $STRIP_FOR_TARGET` |
efd58f08 RW |
14890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14891 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14892 | else |
14893 | # Canadian cross, just use what we found | |
efd58f08 RW |
14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14895 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14896 | fi |
a7dc05b5 PB |
14897 | else |
14898 | ok=yes | |
14899 | case " ${configdirs} " in | |
14900 | *" binutils "*) ;; | |
14901 | *) ok=no ;; | |
14902 | esac | |
b58b6ee1 | 14903 | |
a7dc05b5 PB |
14904 | if test $ok = yes; then |
14905 | # An in-tree tool is available and we can use it | |
6f396dc7 | 14906 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
efd58f08 RW |
14907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14908 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14909 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14910 | # We already found the complete path | |
7a81a717 | 14911 | ac_dir=`dirname $STRIP_FOR_TARGET` |
efd58f08 RW |
14912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14913 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14914 | elif test "x$target" = "x$host"; then |
14915 | # We can use an host tool | |
14916 | STRIP_FOR_TARGET='$(STRIP)' | |
efd58f08 RW |
14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14918 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14919 | else |
14920 | # We need a cross tool | |
efd58f08 RW |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14922 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 PB |
14923 | fi |
14924 | fi | |
42f55f77 | 14925 | |
efd58f08 RW |
14926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14927 | $as_echo_n "checking where to find the target windres... " >&6; } | |
a7dc05b5 | 14928 | if test "x${build}" != "x${host}" ; then |
fef3f213 PB |
14929 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14930 | # We already found the complete path | |
7a81a717 | 14931 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
efd58f08 RW |
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14933 | $as_echo "pre-installed in $ac_dir" >&6; } | |
fef3f213 PB |
14934 | else |
14935 | # Canadian cross, just use what we found | |
efd58f08 RW |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14937 | $as_echo "pre-installed" >&6; } | |
fef3f213 | 14938 | fi |
a7dc05b5 PB |
14939 | else |
14940 | ok=yes | |
14941 | case " ${configdirs} " in | |
14942 | *" binutils "*) ;; | |
14943 | *) ok=no ;; | |
14944 | esac | |
b58b6ee1 | 14945 | |
a7dc05b5 PB |
14946 | if test $ok = yes; then |
14947 | # An in-tree tool is available and we can use it | |
14948 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
efd58f08 RW |
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14950 | $as_echo "just compiled" >&6; } | |
fef3f213 PB |
14951 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14952 | # We already found the complete path | |
7a81a717 | 14953 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
efd58f08 RW |
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14955 | $as_echo "pre-installed in $ac_dir" >&6; } | |
a7dc05b5 PB |
14956 | elif test "x$target" = "x$host"; then |
14957 | # We can use an host tool | |
14958 | WINDRES_FOR_TARGET='$(WINDRES)' | |
efd58f08 RW |
14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14960 | $as_echo "host tool" >&6; } | |
a7dc05b5 PB |
14961 | else |
14962 | # We need a cross tool | |
efd58f08 RW |
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14964 | $as_echo "pre-installed" >&6; } | |
a7dc05b5 | 14965 | fi |
bafecfd6 | 14966 | fi |
ef76efc6 | 14967 | |
efd58f08 RW |
14968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14969 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
bffcbe34 NC |
14970 | if test "x${build}" != "x${host}" ; then |
14971 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14972 | # We already found the complete path | |
14973 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
efd58f08 RW |
14974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14975 | $as_echo "pre-installed in $ac_dir" >&6; } | |
bffcbe34 NC |
14976 | else |
14977 | # Canadian cross, just use what we found | |
efd58f08 RW |
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14979 | $as_echo "pre-installed" >&6; } | |
bffcbe34 NC |
14980 | fi |
14981 | else | |
14982 | ok=yes | |
14983 | case " ${configdirs} " in | |
14984 | *" binutils "*) ;; | |
14985 | *) ok=no ;; | |
14986 | esac | |
14987 | ||
14988 | if test $ok = yes; then | |
14989 | # An in-tree tool is available and we can use it | |
14990 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
efd58f08 RW |
14991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14992 | $as_echo "just compiled" >&6; } | |
bffcbe34 NC |
14993 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14994 | # We already found the complete path | |
14995 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
efd58f08 RW |
14996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14997 | $as_echo "pre-installed in $ac_dir" >&6; } | |
bffcbe34 NC |
14998 | elif test "x$target" = "x$host"; then |
14999 | # We can use an host tool | |
15000 | WINDMC_FOR_TARGET='$(WINDMC)' | |
efd58f08 RW |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15002 | $as_echo "host tool" >&6; } | |
bffcbe34 NC |
15003 | else |
15004 | # We need a cross tool | |
efd58f08 RW |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15006 | $as_echo "pre-installed" >&6; } | |
bffcbe34 NC |
15007 | fi |
15008 | fi | |
15009 | ||
ef76efc6 NN |
15010 | |
15011 | ||
a7dc05b5 | 15012 | |
42f55f77 | 15013 | |
bafecfd6 NN |
15014 | # Certain tools may need extra flags. |
15015 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15016 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15017 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15018 | ||
a7dc05b5 PB |
15019 | # When building target libraries, except in a Canadian cross, we use |
15020 | # the same toolchain as the compiler we just built. | |
15021 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15022 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15023 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15024 | if test $host = $build; then | |
15025 | case " $configdirs " in | |
15026 | *" gcc "*) | |
15027 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15028 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15029 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15030 | ;; | |
15031 | esac | |
15032 | fi | |
15033 | ||
15034 | ||
15035 | ||
15036 | ||
15037 | ||
efd58f08 RW |
15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15039 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15040 | # Check whether --enable-maintainer-mode was given. | |
15041 | if test "${enable_maintainer_mode+set}" = set; then : | |
15042 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
51dcf285 AO |
15043 | else |
15044 | USE_MAINTAINER_MODE=no | |
efd58f08 RW |
15045 | fi |
15046 | ||
15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15048 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
51dcf285 AO |
15049 | |
15050 | ||
15051 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15052 | MAINTAINER_MODE_TRUE= | |
15053 | MAINTAINER_MODE_FALSE='#' | |
15054 | else | |
15055 | MAINTAINER_MODE_TRUE='#' | |
15056 | MAINTAINER_MODE_FALSE= | |
b58b6ee1 | 15057 | fi |
51dcf285 AO |
15058 | MAINT=$MAINTAINER_MODE_TRUE |
15059 | ||
457eaf16 NN |
15060 | # --------------------- |
15061 | # GCC bootstrap support | |
15062 | # --------------------- | |
15063 | ||
15064 | # Stage specific cflags for build. | |
15065 | stage1_cflags="-g" | |
15066 | case $build in | |
15067 | vax-*-*) | |
15068 | case ${GCC} in | |
15069 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15070 | *) stage1_cflags="-g -J" ;; | |
15071 | esac ;; | |
457eaf16 NN |
15072 | esac |
15073 | ||
c684482d | 15074 | |
457eaf16 | 15075 | |
14a1406e | 15076 | # Enable --enable-checking in stage1 of the compiler. |
efd58f08 RW |
15077 | # Check whether --enable-stage1-checking was given. |
15078 | if test "${enable_stage1_checking+set}" = set; then : | |
15079 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
14a1406e | 15080 | else |
1b410bcf | 15081 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
fe508576 CV |
15082 | # For --disable-checking or implicit --enable-checking=release, avoid |
15083 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15084 | # bootstraps. See PR62077. | |
fe508576 CV |
15085 | case $BUILD_CONFIG in |
15086 | *lto*) | |
d5632bcf AK |
15087 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15088 | *) | |
15089 | stage1_checking=--enable-checking=yes,types;; | |
fe508576 | 15090 | esac |
d5632bcf AK |
15091 | if test "x$enable_checking" = x && \ |
15092 | test -d ${srcdir}/gcc && \ | |
15093 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
15094 | stage1_checking=--enable-checking=yes,types,extra | |
15095 | fi | |
14a1406e | 15096 | else |
1b410bcf | 15097 | stage1_checking=--enable-checking=$enable_checking,types |
14a1406e | 15098 | fi |
efd58f08 | 15099 | fi |
14a1406e PB |
15100 | |
15101 | ||
b58b6ee1 | 15102 | |
efd58f08 RW |
15103 | # Enable -Werror in bootstrap stage2 and later. |
15104 | # Check whether --enable-werror was given. | |
15105 | if test "${enable_werror+set}" = set; then : | |
15106 | enableval=$enable_werror; | |
457eaf16 | 15107 | else |
e6659c00 | 15108 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
457eaf16 | 15109 | enable_werror=yes |
48edcc3f PB |
15110 | else |
15111 | enable_werror=no | |
15112 | fi | |
efd58f08 RW |
15113 | fi |
15114 | ||
f06f3d7c NN |
15115 | case ${enable_werror} in |
15116 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15117 | *) stage2_werror_flag="" ;; | |
457eaf16 NN |
15118 | esac |
15119 | ||
15120 | ||
afa221db JBG |
15121 | # Enable --enable-host-shared. |
15122 | # Check whether --enable-host-shared was given. | |
15123 | if test "${enable_host_shared+set}" = set; then : | |
15124 | enableval=$enable_host_shared; host_shared=$enableval | |
15125 | else | |
15126 | host_shared=no | |
15127 | fi | |
15128 | ||
15129 | ||
15130 | ||
fe508576 CV |
15131 | # PR jit/64780: Require the user to explicitly specify |
15132 | # --enable-host-shared if the jit is enabled, hinting | |
15133 | # that they might want to do a separate configure/build of | |
15134 | # the jit, to avoid users from slowing down the rest of the | |
15135 | # compiler by enabling the jit. | |
15136 | if test ${host_shared} = "no" ; then | |
15137 | case "${enable_languages}" in | |
15138 | *jit*) | |
6d3ddf51 | 15139 | as_fn_error $? " |
fe508576 CV |
15140 | Enabling language \"jit\" requires --enable-host-shared. |
15141 | ||
15142 | --enable-host-shared typically slows the rest of the compiler down by | |
15143 | a few %, so you must explicitly enable it. | |
15144 | ||
15145 | If you want to build both the jit and the regular compiler, it is often | |
15146 | best to do this via two separate configure/builds, in separate | |
15147 | directories, to avoid imposing the performance cost of | |
15148 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
15149 | ;; | |
15150 | *) | |
15151 | ;; | |
15152 | esac | |
15153 | fi | |
15154 | ||
121f0eb2 RW |
15155 | # Specify what files to not compare during bootstrap. |
15156 | ||
15157 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15158 | case "$target" in | |
15159 | hppa*64*-*-hpux*) ;; | |
15160 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
ddb7b65a | 15161 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
121f0eb2 RW |
15162 | esac |
15163 | ||
15164 | ||
efd58f08 RW |
15165 | ac_config_files="$ac_config_files Makefile" |
15166 | ||
b58b6ee1 | 15167 | cat >confcache <<\_ACEOF |
bafecfd6 NN |
15168 | # This file is a shell script that caches the results of configure |
15169 | # tests run on this system so they can be shared between configure | |
b58b6ee1 DJ |
15170 | # scripts and configure runs, see configure's option --config-cache. |
15171 | # It is not useful on other systems. If it contains results you don't | |
15172 | # want to keep, you may remove or edit it. | |
bafecfd6 | 15173 | # |
b58b6ee1 DJ |
15174 | # config.status only pays attention to the cache file if you give it |
15175 | # the --recheck option to rerun configure. | |
bafecfd6 | 15176 | # |
b58b6ee1 DJ |
15177 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15178 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15179 | # following values. | |
15180 | ||
15181 | _ACEOF | |
15182 | ||
bafecfd6 NN |
15183 | # The following way of writing the cache mishandles newlines in values, |
15184 | # but we know of no workaround that is simple, portable, and efficient. | |
efd58f08 | 15185 | # So, we kill variables containing newlines. |
bafecfd6 NN |
15186 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15187 | # and sets the high bit in the cache file unless we assign to the vars. | |
efd58f08 RW |
15188 | ( |
15189 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15190 | eval ac_val=\$$ac_var | |
15191 | case $ac_val in #( | |
15192 | *${as_nl}*) | |
15193 | case $ac_var in #( | |
15194 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15195 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15196 | esac | |
15197 | case $ac_var in #( | |
15198 | _ | IFS | as_nl) ;; #( | |
15199 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15200 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15201 | esac ;; | |
15202 | esac | |
15203 | done | |
15204 | ||
b58b6ee1 | 15205 | (set) 2>&1 | |
efd58f08 RW |
15206 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15207 | *${as_nl}ac_space=\ *) | |
15208 | # `set' does not quote correctly, so add quotes: double-quote | |
15209 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b58b6ee1 DJ |
15210 | sed -n \ |
15211 | "s/'/'\\\\''/g; | |
15212 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
efd58f08 | 15213 | ;; #( |
b58b6ee1 DJ |
15214 | *) |
15215 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
efd58f08 | 15216 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b58b6ee1 | 15217 | ;; |
efd58f08 RW |
15218 | esac | |
15219 | sort | |
15220 | ) | | |
b58b6ee1 | 15221 | sed ' |
efd58f08 | 15222 | /^ac_cv_env_/b end |
b58b6ee1 | 15223 | t clear |
efd58f08 | 15224 | :clear |
b58b6ee1 DJ |
15225 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15226 | t end | |
efd58f08 RW |
15227 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15228 | :end' >>confcache | |
15229 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15230 | if test -w "$cache_file"; then | |
6d3ddf51 | 15231 | if test "x$cache_file" != "x/dev/null"; then |
efd58f08 RW |
15232 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15233 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
6d3ddf51 SM |
15234 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15235 | cat confcache >"$cache_file" | |
15236 | else | |
15237 | case $cache_file in #( | |
15238 | */* | ?:*) | |
15239 | mv -f confcache "$cache_file"$$ && | |
15240 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15241 | *) | |
15242 | mv -f confcache "$cache_file" ;; | |
15243 | esac | |
15244 | fi | |
15245 | fi | |
bafecfd6 | 15246 | else |
efd58f08 RW |
15247 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15248 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bafecfd6 | 15249 | fi |
712e2a32 | 15250 | fi |
bafecfd6 | 15251 | rm -f confcache |
712e2a32 | 15252 | |
bafecfd6 NN |
15253 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15254 | # Let make expand exec_prefix. | |
15255 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
712e2a32 | 15256 | |
bafecfd6 NN |
15257 | # Transform confdefs.h into DEFS. |
15258 | # Protect against shell expansion while executing Makefile rules. | |
15259 | # Protect against Makefile macro expansion. | |
b58b6ee1 DJ |
15260 | # |
15261 | # If the first sed substitution is executed (which looks for macros that | |
efd58f08 | 15262 | # take arguments), then branch to the quote section. Otherwise, |
b58b6ee1 | 15263 | # look for a macro that doesn't take arguments. |
efd58f08 RW |
15264 | ac_script=' |
15265 | :mline | |
15266 | /\\$/{ | |
15267 | N | |
15268 | s,\\\n,, | |
15269 | b mline | |
15270 | } | |
b58b6ee1 | 15271 | t clear |
efd58f08 RW |
15272 | :clear |
15273 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b58b6ee1 | 15274 | t quote |
efd58f08 | 15275 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b58b6ee1 | 15276 | t quote |
efd58f08 RW |
15277 | b any |
15278 | :quote | |
15279 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15280 | s/\[/\\&/g | |
15281 | s/\]/\\&/g | |
15282 | s/\$/$$/g | |
15283 | H | |
15284 | :any | |
15285 | ${ | |
15286 | g | |
15287 | s/^\n// | |
15288 | s/\n/ /g | |
15289 | p | |
15290 | } | |
15291 | ' | |
15292 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b58b6ee1 DJ |
15293 | |
15294 | ||
15295 | ac_libobjs= | |
15296 | ac_ltlibobjs= | |
6d3ddf51 | 15297 | U= |
b58b6ee1 DJ |
15298 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15299 | # 1. Remove the extension, and $U if already installed. | |
efd58f08 RW |
15300 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15301 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15302 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15303 | # will be set to the directory where LIBOBJS objects are built. | |
15304 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15305 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b58b6ee1 DJ |
15306 | done |
15307 | LIBOBJS=$ac_libobjs | |
712e2a32 | 15308 | |
b58b6ee1 | 15309 | LTLIBOBJS=$ac_ltlibobjs |
76402c80 | 15310 | |
f69e2532 | 15311 | |
b58b6ee1 | 15312 | |
6d3ddf51 | 15313 | : "${CONFIG_STATUS=./config.status}" |
efd58f08 | 15314 | ac_write_fail=0 |
b58b6ee1 DJ |
15315 | ac_clean_files_save=$ac_clean_files |
15316 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
efd58f08 RW |
15317 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15318 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15319 | as_write_fail=0 | |
15320 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b58b6ee1 DJ |
15321 | #! $SHELL |
15322 | # Generated by $as_me. | |
bafecfd6 | 15323 | # Run this file to recreate the current configuration. |
bafecfd6 | 15324 | # Compiler output produced by configure, useful for debugging |
b58b6ee1 | 15325 | # configure, is in config.log if it exists. |
76402c80 | 15326 | |
b58b6ee1 DJ |
15327 | debug=false |
15328 | ac_cs_recheck=false | |
15329 | ac_cs_silent=false | |
b58b6ee1 | 15330 | |
efd58f08 RW |
15331 | SHELL=\${CONFIG_SHELL-$SHELL} |
15332 | export SHELL | |
15333 | _ASEOF | |
15334 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15335 | ## -------------------- ## | |
15336 | ## M4sh Initialization. ## | |
15337 | ## -------------------- ## | |
15338 | ||
15339 | # Be more Bourne compatible | |
15340 | DUALCASE=1; export DUALCASE # for MKS sh | |
15341 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b58b6ee1 DJ |
15342 | emulate sh |
15343 | NULLCMD=: | |
efd58f08 | 15344 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b58b6ee1 DJ |
15345 | # is contrary to our usage. Disable this feature. |
15346 | alias -g '${1+"$@"}'='"$@"' | |
efd58f08 RW |
15347 | setopt NO_GLOB_SUBST |
15348 | else | |
15349 | case `(set -o) 2>/dev/null` in #( | |
15350 | *posix*) : | |
15351 | set -o posix ;; #( | |
15352 | *) : | |
15353 | ;; | |
15354 | esac | |
b58b6ee1 | 15355 | fi |
b58b6ee1 | 15356 | |
efd58f08 RW |
15357 | |
15358 | as_nl=' | |
15359 | ' | |
15360 | export as_nl | |
15361 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15362 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15363 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15364 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15365 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15366 | # but without wasting forks for bash or zsh. | |
15367 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15368 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15369 | as_echo='print -r --' | |
15370 | as_echo_n='print -rn --' | |
15371 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15372 | as_echo='printf %s\n' | |
15373 | as_echo_n='printf %s' | |
15374 | else | |
15375 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15376 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15377 | as_echo_n='/usr/ucb/echo -n' | |
15378 | else | |
15379 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15380 | as_echo_n_body='eval | |
15381 | arg=$1; | |
15382 | case $arg in #( | |
15383 | *"$as_nl"*) | |
15384 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15385 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15386 | esac; | |
15387 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15388 | ' | |
15389 | export as_echo_n_body | |
15390 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15391 | fi | |
15392 | export as_echo_body | |
15393 | as_echo='sh -c $as_echo_body as_echo' | |
b58b6ee1 DJ |
15394 | fi |
15395 | ||
efd58f08 RW |
15396 | # The user is always right. |
15397 | if test "${PATH_SEPARATOR+set}" != set; then | |
15398 | PATH_SEPARATOR=: | |
15399 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15400 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15401 | PATH_SEPARATOR=';' | |
15402 | } | |
15403 | fi | |
15404 | ||
15405 | ||
15406 | # IFS | |
15407 | # We need space, tab and new line, in precisely that order. Quoting is | |
15408 | # there to prevent editors from complaining about space-tab. | |
15409 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15410 | # splitting by setting IFS to empty value.) | |
15411 | IFS=" "" $as_nl" | |
15412 | ||
15413 | # Find who we are. Look in the path if we contain no directory separator. | |
6d3ddf51 | 15414 | as_myself= |
efd58f08 RW |
15415 | case $0 in #(( |
15416 | *[\\/]* ) as_myself=$0 ;; | |
15417 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15418 | for as_dir in $PATH | |
15419 | do | |
15420 | IFS=$as_save_IFS | |
15421 | test -z "$as_dir" && as_dir=. | |
15422 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15423 | done | |
15424 | IFS=$as_save_IFS | |
15425 | ||
15426 | ;; | |
15427 | esac | |
15428 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15429 | # in which case we are not to be found in the path. | |
15430 | if test "x$as_myself" = x; then | |
15431 | as_myself=$0 | |
15432 | fi | |
15433 | if test ! -f "$as_myself"; then | |
15434 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15435 | exit 1 | |
15436 | fi | |
b58b6ee1 | 15437 | |
efd58f08 RW |
15438 | # Unset variables that we do not need and which cause bugs (e.g. in |
15439 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15440 | # suppresses any "Segmentation fault" message there. '((' could | |
15441 | # trigger a bug in pdksh 5.2.14. | |
15442 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15443 | do eval test x\${$as_var+set} = xset \ | |
15444 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15445 | done | |
b58b6ee1 DJ |
15446 | PS1='$ ' |
15447 | PS2='> ' | |
15448 | PS4='+ ' | |
15449 | ||
15450 | # NLS nuisances. | |
efd58f08 RW |
15451 | LC_ALL=C |
15452 | export LC_ALL | |
15453 | LANGUAGE=C | |
15454 | export LANGUAGE | |
15455 | ||
15456 | # CDPATH. | |
15457 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15458 | ||
15459 | ||
6d3ddf51 SM |
15460 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15461 | # ---------------------------------------- | |
efd58f08 RW |
15462 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15463 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6d3ddf51 | 15464 | # script with STATUS, using 1 if that was 0. |
efd58f08 RW |
15465 | as_fn_error () |
15466 | { | |
6d3ddf51 SM |
15467 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15468 | if test "$4"; then | |
15469 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15470 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b58b6ee1 | 15471 | fi |
6d3ddf51 | 15472 | $as_echo "$as_me: error: $2" >&2 |
efd58f08 RW |
15473 | as_fn_exit $as_status |
15474 | } # as_fn_error | |
15475 | ||
15476 | ||
15477 | # as_fn_set_status STATUS | |
15478 | # ----------------------- | |
15479 | # Set $? to STATUS, without forking. | |
15480 | as_fn_set_status () | |
15481 | { | |
15482 | return $1 | |
15483 | } # as_fn_set_status | |
15484 | ||
15485 | # as_fn_exit STATUS | |
15486 | # ----------------- | |
15487 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15488 | as_fn_exit () | |
15489 | { | |
15490 | set +e | |
15491 | as_fn_set_status $1 | |
15492 | exit $1 | |
15493 | } # as_fn_exit | |
15494 | ||
15495 | # as_fn_unset VAR | |
15496 | # --------------- | |
15497 | # Portably unset VAR. | |
15498 | as_fn_unset () | |
15499 | { | |
15500 | { eval $1=; unset $1;} | |
15501 | } | |
15502 | as_unset=as_fn_unset | |
15503 | # as_fn_append VAR VALUE | |
15504 | # ---------------------- | |
15505 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15506 | # advantage of any shell optimizations that allow amortized linear growth over | |
15507 | # repeated appends, instead of the typical quadratic growth present in naive | |
15508 | # implementations. | |
15509 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15510 | eval 'as_fn_append () | |
15511 | { | |
15512 | eval $1+=\$2 | |
15513 | }' | |
15514 | else | |
15515 | as_fn_append () | |
15516 | { | |
15517 | eval $1=\$$1\$2 | |
15518 | } | |
15519 | fi # as_fn_append | |
15520 | ||
15521 | # as_fn_arith ARG... | |
15522 | # ------------------ | |
15523 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15524 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15525 | # must be portable across $(()) and expr. | |
15526 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15527 | eval 'as_fn_arith () | |
15528 | { | |
15529 | as_val=$(( $* )) | |
15530 | }' | |
15531 | else | |
15532 | as_fn_arith () | |
15533 | { | |
15534 | as_val=`expr "$@" || test $? -eq 1` | |
15535 | } | |
15536 | fi # as_fn_arith | |
15537 | ||
b58b6ee1 | 15538 | |
efd58f08 RW |
15539 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15540 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b58b6ee1 DJ |
15541 | as_expr=expr |
15542 | else | |
15543 | as_expr=false | |
15544 | fi | |
15545 | ||
efd58f08 | 15546 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b58b6ee1 DJ |
15547 | as_basename=basename |
15548 | else | |
15549 | as_basename=false | |
15550 | fi | |
15551 | ||
efd58f08 RW |
15552 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15553 | as_dirname=dirname | |
15554 | else | |
15555 | as_dirname=false | |
15556 | fi | |
b58b6ee1 | 15557 | |
efd58f08 | 15558 | as_me=`$as_basename -- "$0" || |
b58b6ee1 DJ |
15559 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15560 | X"$0" : 'X\(//\)$' \| \ | |
efd58f08 RW |
15561 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15562 | $as_echo X/"$0" | | |
15563 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15564 | s//\1/ | |
15565 | q | |
15566 | } | |
15567 | /^X\/\(\/\/\)$/{ | |
15568 | s//\1/ | |
15569 | q | |
15570 | } | |
15571 | /^X\/\(\/\).*/{ | |
15572 | s//\1/ | |
15573 | q | |
15574 | } | |
15575 | s/.*/./; q'` | |
b58b6ee1 | 15576 | |
b58b6ee1 DJ |
15577 | # Avoid depending upon Character Ranges. |
15578 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15579 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15580 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15581 | as_cr_digits='0123456789' | |
15582 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15583 | ||
efd58f08 RW |
15584 | ECHO_C= ECHO_N= ECHO_T= |
15585 | case `echo -n x` in #((((( | |
15586 | -n*) | |
15587 | case `echo 'xy\c'` in | |
15588 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15589 | xy) ECHO_C='\c';; | |
15590 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15591 | ECHO_T=' ';; | |
15592 | esac;; | |
15593 | *) | |
15594 | ECHO_N='-n';; | |
b58b6ee1 DJ |
15595 | esac |
15596 | ||
efd58f08 RW |
15597 | rm -f conf$$ conf$$.exe conf$$.file |
15598 | if test -d conf$$.dir; then | |
15599 | rm -f conf$$.dir/conf$$.file | |
b58b6ee1 | 15600 | else |
efd58f08 RW |
15601 | rm -f conf$$.dir |
15602 | mkdir conf$$.dir 2>/dev/null | |
b58b6ee1 | 15603 | fi |
efd58f08 RW |
15604 | if (echo >conf$$.file) 2>/dev/null; then |
15605 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b58b6ee1 | 15606 | as_ln_s='ln -s' |
efd58f08 RW |
15607 | # ... but there are two gotchas: |
15608 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15609 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6d3ddf51 | 15610 | # In both cases, we have to default to `cp -pR'. |
efd58f08 | 15611 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
6d3ddf51 | 15612 | as_ln_s='cp -pR' |
efd58f08 RW |
15613 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15614 | as_ln_s=ln | |
15615 | else | |
6d3ddf51 | 15616 | as_ln_s='cp -pR' |
b58b6ee1 | 15617 | fi |
b58b6ee1 | 15618 | else |
6d3ddf51 | 15619 | as_ln_s='cp -pR' |
b58b6ee1 | 15620 | fi |
efd58f08 RW |
15621 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15622 | rmdir conf$$.dir 2>/dev/null | |
15623 | ||
15624 | ||
15625 | # as_fn_mkdir_p | |
15626 | # ------------- | |
15627 | # Create "$as_dir" as a directory, including parents if necessary. | |
15628 | as_fn_mkdir_p () | |
15629 | { | |
15630 | ||
15631 | case $as_dir in #( | |
15632 | -*) as_dir=./$as_dir;; | |
15633 | esac | |
15634 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15635 | as_dirs= | |
15636 | while :; do | |
15637 | case $as_dir in #( | |
15638 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15639 | *) as_qdir=$as_dir;; | |
15640 | esac | |
15641 | as_dirs="'$as_qdir' $as_dirs" | |
15642 | as_dir=`$as_dirname -- "$as_dir" || | |
15643 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15644 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15645 | X"$as_dir" : 'X\(//\)$' \| \ | |
15646 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15647 | $as_echo X"$as_dir" | | |
15648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15649 | s//\1/ | |
15650 | q | |
15651 | } | |
15652 | /^X\(\/\/\)[^/].*/{ | |
15653 | s//\1/ | |
15654 | q | |
15655 | } | |
15656 | /^X\(\/\/\)$/{ | |
15657 | s//\1/ | |
15658 | q | |
15659 | } | |
15660 | /^X\(\/\).*/{ | |
15661 | s//\1/ | |
15662 | q | |
15663 | } | |
15664 | s/.*/./; q'` | |
15665 | test -d "$as_dir" && break | |
15666 | done | |
15667 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6d3ddf51 | 15668 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
efd58f08 | 15669 | |
b58b6ee1 | 15670 | |
efd58f08 | 15671 | } # as_fn_mkdir_p |
b58b6ee1 | 15672 | if mkdir -p . 2>/dev/null; then |
efd58f08 | 15673 | as_mkdir_p='mkdir -p "$as_dir"' |
b58b6ee1 DJ |
15674 | else |
15675 | test -d ./-p && rmdir ./-p | |
15676 | as_mkdir_p=false | |
15677 | fi | |
15678 | ||
6d3ddf51 SM |
15679 | |
15680 | # as_fn_executable_p FILE | |
15681 | # ----------------------- | |
15682 | # Test if FILE is an executable regular file. | |
15683 | as_fn_executable_p () | |
15684 | { | |
15685 | test -f "$1" && test -x "$1" | |
15686 | } # as_fn_executable_p | |
15687 | as_test_x='test -x' | |
15688 | as_executable_p=as_fn_executable_p | |
b58b6ee1 DJ |
15689 | |
15690 | # Sed expression to map a string onto a valid CPP name. | |
15691 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15692 | ||
15693 | # Sed expression to map a string onto a valid variable name. | |
15694 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15695 | ||
15696 | ||
b58b6ee1 | 15697 | exec 6>&1 |
efd58f08 RW |
15698 | ## ----------------------------------- ## |
15699 | ## Main body of $CONFIG_STATUS script. ## | |
15700 | ## ----------------------------------- ## | |
15701 | _ASEOF | |
15702 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15703 | ||
15704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15705 | # Save the log message, to keep $0 and so on meaningful, and to | |
b58b6ee1 | 15706 | # report actual input values of CONFIG_FILES etc. instead of their |
efd58f08 RW |
15707 | # values after options handling. |
15708 | ac_log=" | |
b58b6ee1 | 15709 | This file was extended by $as_me, which was |
6d3ddf51 | 15710 | generated by GNU Autoconf 2.69. Invocation command line was |
b58b6ee1 DJ |
15711 | |
15712 | CONFIG_FILES = $CONFIG_FILES | |
15713 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15714 | CONFIG_LINKS = $CONFIG_LINKS | |
15715 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15716 | $ $0 $@ | |
15717 | ||
efd58f08 RW |
15718 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15719 | " | |
15720 | ||
b58b6ee1 DJ |
15721 | _ACEOF |
15722 | ||
efd58f08 RW |
15723 | case $ac_config_files in *" |
15724 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15725 | esac | |
b58b6ee1 | 15726 | |
b58b6ee1 | 15727 | |
b58b6ee1 | 15728 | |
efd58f08 RW |
15729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15730 | # Files that config.status was made for. | |
15731 | config_files="$ac_config_files" | |
b58b6ee1 | 15732 | |
efd58f08 | 15733 | _ACEOF |
b58b6ee1 | 15734 | |
efd58f08 | 15735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 | 15736 | ac_cs_usage="\ |
efd58f08 RW |
15737 | \`$as_me' instantiates files and other configuration actions |
15738 | from templates according to the current configuration. Unless the files | |
15739 | and actions are specified as TAGs, all are instantiated by default. | |
b58b6ee1 | 15740 | |
efd58f08 | 15741 | Usage: $0 [OPTION]... [TAG]... |
b58b6ee1 DJ |
15742 | |
15743 | -h, --help print this help, then exit | |
efd58f08 | 15744 | -V, --version print version number and configuration settings, then exit |
6d3ddf51 | 15745 | --config print configuration, then exit |
efd58f08 RW |
15746 | -q, --quiet, --silent |
15747 | do not print progress messages | |
b58b6ee1 DJ |
15748 | -d, --debug don't remove temporary files |
15749 | --recheck update $as_me by reconfiguring in the same conditions | |
efd58f08 RW |
15750 | --file=FILE[:TEMPLATE] |
15751 | instantiate the configuration file FILE | |
b58b6ee1 DJ |
15752 | |
15753 | Configuration files: | |
15754 | $config_files | |
15755 | ||
efd58f08 | 15756 | Report bugs to the package provider." |
b58b6ee1 | 15757 | |
efd58f08 RW |
15758 | _ACEOF |
15759 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6d3ddf51 | 15760 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b58b6ee1 DJ |
15761 | ac_cs_version="\\ |
15762 | config.status | |
6d3ddf51 SM |
15763 | configured by $0, generated by GNU Autoconf 2.69, |
15764 | with options \\"\$ac_cs_config\\" | |
b58b6ee1 | 15765 | |
6d3ddf51 | 15766 | Copyright (C) 2012 Free Software Foundation, Inc. |
b58b6ee1 DJ |
15767 | This config.status script is free software; the Free Software Foundation |
15768 | gives unlimited permission to copy, distribute and modify it." | |
efd58f08 RW |
15769 | |
15770 | ac_pwd='$ac_pwd' | |
15771 | srcdir='$srcdir' | |
15772 | INSTALL='$INSTALL' | |
a8a01987 | 15773 | AWK='$AWK' |
efd58f08 | 15774 | test -n "\$AWK" || AWK=awk |
b58b6ee1 DJ |
15775 | _ACEOF |
15776 | ||
efd58f08 RW |
15777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15778 | # The default lists apply if the user does not specify any file. | |
b58b6ee1 DJ |
15779 | ac_need_defaults=: |
15780 | while test $# != 0 | |
bafecfd6 | 15781 | do |
b58b6ee1 | 15782 | case $1 in |
6d3ddf51 | 15783 | --*=?*) |
efd58f08 RW |
15784 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15785 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b58b6ee1 DJ |
15786 | ac_shift=: |
15787 | ;; | |
6d3ddf51 SM |
15788 | --*=) |
15789 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15790 | ac_optarg= | |
15791 | ac_shift=: | |
15792 | ;; | |
efd58f08 | 15793 | *) |
b58b6ee1 DJ |
15794 | ac_option=$1 |
15795 | ac_optarg=$2 | |
15796 | ac_shift=shift | |
15797 | ;; | |
b58b6ee1 DJ |
15798 | esac |
15799 | ||
15800 | case $ac_option in | |
15801 | # Handling of the options. | |
bafecfd6 | 15802 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b58b6ee1 | 15803 | ac_cs_recheck=: ;; |
efd58f08 RW |
15804 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15805 | $as_echo "$ac_cs_version"; exit ;; | |
6d3ddf51 SM |
15806 | --config | --confi | --conf | --con | --co | --c ) |
15807 | $as_echo "$ac_cs_config"; exit ;; | |
efd58f08 | 15808 | --debug | --debu | --deb | --de | --d | -d ) |
b58b6ee1 DJ |
15809 | debug=: ;; |
15810 | --file | --fil | --fi | --f ) | |
15811 | $ac_shift | |
efd58f08 RW |
15812 | case $ac_optarg in |
15813 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6d3ddf51 | 15814 | '') as_fn_error $? "missing file argument" ;; |
efd58f08 RW |
15815 | esac |
15816 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b58b6ee1 | 15817 | ac_need_defaults=false;; |
efd58f08 RW |
15818 | --he | --h | --help | --hel | -h ) |
15819 | $as_echo "$ac_cs_usage"; exit ;; | |
b58b6ee1 DJ |
15820 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15821 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15822 | ac_cs_silent=: ;; | |
15823 | ||
15824 | # This is an error. | |
6d3ddf51 | 15825 | -*) as_fn_error $? "unrecognized option: \`$1' |
efd58f08 | 15826 | Try \`$0 --help' for more information." ;; |
b58b6ee1 | 15827 | |
efd58f08 RW |
15828 | *) as_fn_append ac_config_targets " $1" |
15829 | ac_need_defaults=false ;; | |
b58b6ee1 | 15830 | |
76402c80 | 15831 | esac |
b58b6ee1 | 15832 | shift |
76402c80 CM |
15833 | done |
15834 | ||
b58b6ee1 | 15835 | ac_configure_extra_args= |
76402c80 | 15836 | |
b58b6ee1 DJ |
15837 | if $ac_cs_silent; then |
15838 | exec 6>/dev/null | |
15839 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15840 | fi | |
76402c80 | 15841 | |
b58b6ee1 | 15842 | _ACEOF |
efd58f08 | 15843 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b58b6ee1 | 15844 | if \$ac_cs_recheck; then |
6d3ddf51 | 15845 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
efd58f08 RW |
15846 | shift |
15847 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15848 | CONFIG_SHELL='$SHELL' | |
15849 | export CONFIG_SHELL | |
15850 | exec "\$@" | |
b58b6ee1 DJ |
15851 | fi |
15852 | ||
15853 | _ACEOF | |
efd58f08 RW |
15854 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15855 | exec 5>>config.log | |
15856 | { | |
15857 | echo | |
15858 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15859 | ## Running $as_me. ## | |
15860 | _ASBOX | |
15861 | $as_echo "$ac_log" | |
15862 | } >&5 | |
b58b6ee1 | 15863 | |
efd58f08 RW |
15864 | _ACEOF |
15865 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
94f4a7b9 RW |
15866 | # |
15867 | # INIT-COMMANDS | |
15868 | # | |
15869 | extrasub_build="$extrasub_build" | |
15870 | extrasub_host="$extrasub_host" | |
15871 | extrasub_target="$extrasub_target" | |
15872 | ||
efd58f08 | 15873 | _ACEOF |
b58b6ee1 | 15874 | |
efd58f08 | 15875 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 | 15876 | |
efd58f08 | 15877 | # Handling of arguments. |
b58b6ee1 DJ |
15878 | for ac_config_target in $ac_config_targets |
15879 | do | |
efd58f08 RW |
15880 | case $ac_config_target in |
15881 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15882 | ||
6d3ddf51 | 15883 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b58b6ee1 DJ |
15884 | esac |
15885 | done | |
15886 | ||
efd58f08 | 15887 | |
b58b6ee1 DJ |
15888 | # If the user did not use the arguments to specify the items to instantiate, |
15889 | # then the envvar interface is used. Set only those that are not. | |
15890 | # We use the long form for the default assignment because of an extremely | |
15891 | # bizarre bug on SunOS 4.1.3. | |
15892 | if $ac_need_defaults; then | |
15893 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15894 | fi | |
15895 | ||
15896 | # Have a temporary directory for convenience. Make it in the build tree | |
efd58f08 | 15897 | # simply because there is no reason against having it here, and in addition, |
b58b6ee1 | 15898 | # creating and moving files from /tmp can sometimes cause problems. |
efd58f08 RW |
15899 | # Hook for its removal unless debugging. |
15900 | # Note that there is a small window in which the directory will not be cleaned: | |
15901 | # after its creation but before its name has been assigned to `$tmp'. | |
b58b6ee1 DJ |
15902 | $debug || |
15903 | { | |
6d3ddf51 | 15904 | tmp= ac_tmp= |
efd58f08 | 15905 | trap 'exit_status=$? |
6d3ddf51 SM |
15906 | : "${ac_tmp:=$tmp}" |
15907 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
efd58f08 RW |
15908 | ' 0 |
15909 | trap 'as_fn_exit 1' 1 2 13 15 | |
b58b6ee1 | 15910 | } |
b58b6ee1 DJ |
15911 | # Create a (secure) tmp directory for tmp files. |
15912 | ||
15913 | { | |
efd58f08 | 15914 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
6d3ddf51 | 15915 | test -d "$tmp" |
b58b6ee1 DJ |
15916 | } || |
15917 | { | |
efd58f08 RW |
15918 | tmp=./conf$$-$RANDOM |
15919 | (umask 077 && mkdir "$tmp") | |
6d3ddf51 SM |
15920 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15921 | ac_tmp=$tmp | |
efd58f08 RW |
15922 | |
15923 | # Set up the scripts for CONFIG_FILES section. | |
15924 | # No need to generate them if there are no CONFIG_FILES. | |
15925 | # This happens for instance with `./config.status config.h'. | |
15926 | if test -n "$CONFIG_FILES"; then | |
15927 | ||
15928 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15929 | ac_cs_awk_getline=: | |
15930 | ac_cs_awk_pipe_init= | |
15931 | ac_cs_awk_read_file=' | |
15932 | while ((getline aline < (F[key])) > 0) | |
15933 | print(aline) | |
15934 | close(F[key])' | |
15935 | ac_cs_awk_pipe_fini= | |
15936 | else | |
15937 | ac_cs_awk_getline=false | |
15938 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15939 | ac_cs_awk_read_file=' | |
15940 | print "|#_!!_#|" | |
15941 | print "cat " F[key] " &&" | |
15942 | '$ac_cs_awk_pipe_init | |
15943 | # The final `:' finishes the AND list. | |
15944 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15945 | fi | |
15946 | ac_cr=`echo X | tr X '\015'` | |
15947 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15948 | # But we know of no other shell where ac_cr would be empty at this | |
15949 | # point, so we can use a bashism as a fallback. | |
15950 | if test "x$ac_cr" = x; then | |
15951 | eval ac_cr=\$\'\\r\' | |
15952 | fi | |
15953 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15954 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
6d3ddf51 | 15955 | ac_cs_awk_cr='\\r' |
efd58f08 RW |
15956 | else |
15957 | ac_cs_awk_cr=$ac_cr | |
15958 | fi | |
15959 | ||
6d3ddf51 | 15960 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
efd58f08 RW |
15961 | _ACEOF |
15962 | ||
15963 | # Create commands to substitute file output variables. | |
b58b6ee1 | 15964 | { |
efd58f08 | 15965 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
6d3ddf51 | 15966 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
efd58f08 RW |
15967 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15968 | echo "_ACAWK" && | |
15969 | echo "_ACEOF" | |
15970 | } >conf$$files.sh && | |
15971 | . ./conf$$files.sh || | |
6d3ddf51 | 15972 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
efd58f08 | 15973 | rm -f conf$$files.sh |
b58b6ee1 | 15974 | |
efd58f08 RW |
15975 | { |
15976 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15977 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15978 | echo "_ACEOF" | |
15979 | } >conf$$subs.sh || | |
6d3ddf51 SM |
15980 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15981 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
efd58f08 RW |
15982 | ac_delim='%!_!# ' |
15983 | for ac_last_try in false false false false false :; do | |
15984 | . ./conf$$subs.sh || | |
6d3ddf51 | 15985 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
efd58f08 RW |
15986 | |
15987 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15988 | if test $ac_delim_n = $ac_delim_num; then | |
15989 | break | |
15990 | elif $ac_last_try; then | |
6d3ddf51 | 15991 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
efd58f08 RW |
15992 | else |
15993 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15994 | fi | |
15995 | done | |
15996 | rm -f conf$$subs.sh | |
15997 | ||
15998 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6d3ddf51 | 15999 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
b58b6ee1 | 16000 | _ACEOF |
efd58f08 RW |
16001 | sed -n ' |
16002 | h | |
16003 | s/^/S["/; s/!.*/"]=/ | |
16004 | p | |
16005 | g | |
16006 | s/^[^!]*!// | |
16007 | :repl | |
16008 | t repl | |
16009 | s/'"$ac_delim"'$// | |
16010 | t delim | |
16011 | :nl | |
16012 | h | |
6d3ddf51 | 16013 | s/\(.\{148\}\)..*/\1/ |
efd58f08 RW |
16014 | t more1 |
16015 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16016 | p | |
16017 | n | |
16018 | b repl | |
16019 | :more1 | |
16020 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16021 | p | |
16022 | g | |
16023 | s/.\{148\}// | |
16024 | t nl | |
16025 | :delim | |
16026 | h | |
6d3ddf51 | 16027 | s/\(.\{148\}\)..*/\1/ |
efd58f08 RW |
16028 | t more2 |
16029 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16030 | p | |
16031 | b | |
16032 | :more2 | |
16033 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16034 | p | |
16035 | g | |
16036 | s/.\{148\}// | |
16037 | t delim | |
16038 | ' <conf$$subs.awk | sed ' | |
16039 | /^[^""]/{ | |
16040 | N | |
16041 | s/\n// | |
16042 | } | |
16043 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16044 | rm -f conf$$subs.awk | |
16045 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16046 | _ACAWK | |
6d3ddf51 | 16047 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
efd58f08 RW |
16048 | for (key in S) S_is_set[key] = 1 |
16049 | FS = "\a" | |
16050 | \$ac_cs_awk_pipe_init | |
16051 | } | |
16052 | { | |
16053 | line = $ 0 | |
16054 | nfields = split(line, field, "@") | |
16055 | substed = 0 | |
16056 | len = length(field[1]) | |
16057 | for (i = 2; i < nfields; i++) { | |
16058 | key = field[i] | |
16059 | keylen = length(key) | |
16060 | if (S_is_set[key]) { | |
16061 | value = S[key] | |
16062 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16063 | len += length(value) + length(field[++i]) | |
16064 | substed = 1 | |
16065 | } else | |
16066 | len += 1 + keylen | |
16067 | } | |
16068 | if (nfields == 3 && !substed) { | |
16069 | key = field[2] | |
16070 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16071 | \$ac_cs_awk_read_file | |
16072 | next | |
16073 | } | |
16074 | } | |
16075 | print line | |
16076 | } | |
16077 | \$ac_cs_awk_pipe_fini | |
16078 | _ACAWK | |
16079 | _ACEOF | |
16080 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16081 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16082 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16083 | else | |
16084 | cat | |
6d3ddf51 SM |
16085 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16086 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
efd58f08 RW |
16087 | _ACEOF |
16088 | ||
6d3ddf51 SM |
16089 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16090 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
efd58f08 RW |
16091 | # trailing colons and then remove the whole line if VPATH becomes empty |
16092 | # (actually we leave an empty line to preserve line numbers). | |
16093 | if test "x$srcdir" = x.; then | |
6d3ddf51 SM |
16094 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16095 | h | |
16096 | s/// | |
16097 | s/^/:/ | |
16098 | s/[ ]*$/:/ | |
16099 | s/:\$(srcdir):/:/g | |
16100 | s/:\${srcdir}:/:/g | |
16101 | s/:@srcdir@:/:/g | |
16102 | s/^:*// | |
efd58f08 | 16103 | s/:*$// |
6d3ddf51 SM |
16104 | x |
16105 | s/\(=[ ]*\).*/\1/ | |
16106 | G | |
16107 | s/\n// | |
efd58f08 RW |
16108 | s/^[^=]*=[ ]*$// |
16109 | }' | |
16110 | fi | |
b58b6ee1 | 16111 | |
efd58f08 RW |
16112 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16113 | fi # test -n "$CONFIG_FILES" | |
b58b6ee1 | 16114 | |
b58b6ee1 | 16115 | |
efd58f08 RW |
16116 | eval set X " :F $CONFIG_FILES " |
16117 | shift | |
16118 | for ac_tag | |
16119 | do | |
16120 | case $ac_tag in | |
16121 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16122 | esac | |
16123 | case $ac_mode$ac_tag in | |
16124 | :[FHL]*:*);; | |
6d3ddf51 | 16125 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
efd58f08 RW |
16126 | :[FH]-) ac_tag=-:-;; |
16127 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16128 | esac | |
16129 | ac_save_IFS=$IFS | |
16130 | IFS=: | |
16131 | set x $ac_tag | |
16132 | IFS=$ac_save_IFS | |
16133 | shift | |
16134 | ac_file=$1 | |
16135 | shift | |
a3acbf46 | 16136 | |
efd58f08 RW |
16137 | case $ac_mode in |
16138 | :L) ac_source=$1;; | |
16139 | :[FH]) | |
16140 | ac_file_inputs= | |
16141 | for ac_f | |
16142 | do | |
16143 | case $ac_f in | |
6d3ddf51 | 16144 | -) ac_f="$ac_tmp/stdin";; |
efd58f08 RW |
16145 | *) # Look for the file first in the build tree, then in the source tree |
16146 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16147 | # because $ac_f cannot contain `:'. | |
16148 | test -f "$ac_f" || | |
16149 | case $ac_f in | |
16150 | [\\/$]*) false;; | |
16151 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16152 | esac || | |
6d3ddf51 | 16153 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
efd58f08 RW |
16154 | esac |
16155 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16156 | as_fn_append ac_file_inputs " '$ac_f'" | |
16157 | done | |
b58b6ee1 | 16158 | |
efd58f08 RW |
16159 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16160 | # use $as_me), people would be surprised to read: | |
16161 | # /* config.h. Generated by config.status. */ | |
16162 | configure_input='Generated from '` | |
16163 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16164 | `' by configure.' | |
16165 | if test x"$ac_file" != x-; then | |
16166 | configure_input="$ac_file. $configure_input" | |
16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16168 | $as_echo "$as_me: creating $ac_file" >&6;} | |
bafecfd6 | 16169 | fi |
efd58f08 RW |
16170 | # Neutralize special characters interpreted by sed in replacement strings. |
16171 | case $configure_input in #( | |
16172 | *\&* | *\|* | *\\* ) | |
16173 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16174 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16175 | *) ac_sed_conf_input=$configure_input;; | |
16176 | esac | |
f69e2532 | 16177 | |
efd58f08 | 16178 | case $ac_tag in |
6d3ddf51 SM |
16179 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16180 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
efd58f08 RW |
16181 | esac |
16182 | ;; | |
bafecfd6 | 16183 | esac |
a3acbf46 | 16184 | |
efd58f08 | 16185 | ac_dir=`$as_dirname -- "$ac_file" || |
b58b6ee1 DJ |
16186 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16187 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16188 | X"$ac_file" : 'X\(//\)$' \| \ | |
efd58f08 RW |
16189 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16190 | $as_echo X"$ac_file" | | |
16191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16192 | s//\1/ | |
16193 | q | |
16194 | } | |
16195 | /^X\(\/\/\)[^/].*/{ | |
16196 | s//\1/ | |
16197 | q | |
16198 | } | |
16199 | /^X\(\/\/\)$/{ | |
16200 | s//\1/ | |
16201 | q | |
16202 | } | |
16203 | /^X\(\/\).*/{ | |
16204 | s//\1/ | |
16205 | q | |
16206 | } | |
16207 | s/.*/./; q'` | |
16208 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b58b6ee1 | 16209 | ac_builddir=. |
a3acbf46 | 16210 | |
efd58f08 RW |
16211 | case "$ac_dir" in |
16212 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16213 | *) | |
16214 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16215 | # A ".." for each directory in $ac_dir_suffix. | |
16216 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16217 | case $ac_top_builddir_sub in | |
16218 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16219 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16220 | esac ;; | |
16221 | esac | |
16222 | ac_abs_top_builddir=$ac_pwd | |
16223 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16224 | # for backward compatibility: | |
16225 | ac_top_builddir=$ac_top_build_prefix | |
b58b6ee1 DJ |
16226 | |
16227 | case $srcdir in | |
efd58f08 | 16228 | .) # We are building in place. |
b58b6ee1 | 16229 | ac_srcdir=. |
efd58f08 RW |
16230 | ac_top_srcdir=$ac_top_builddir_sub |
16231 | ac_abs_top_srcdir=$ac_pwd ;; | |
16232 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b58b6ee1 | 16233 | ac_srcdir=$srcdir$ac_dir_suffix; |
efd58f08 RW |
16234 | ac_top_srcdir=$srcdir |
16235 | ac_abs_top_srcdir=$srcdir ;; | |
16236 | *) # Relative name. | |
16237 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16238 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16239 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b58b6ee1 | 16240 | esac |
efd58f08 | 16241 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a3acbf46 | 16242 | |
a3acbf46 | 16243 | |
efd58f08 RW |
16244 | case $ac_mode in |
16245 | :F) | |
16246 | # | |
16247 | # CONFIG_FILE | |
16248 | # | |
b58b6ee1 DJ |
16249 | |
16250 | case $INSTALL in | |
16251 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
efd58f08 | 16252 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bafecfd6 | 16253 | esac |
efd58f08 | 16254 | _ACEOF |
a3acbf46 | 16255 | |
efd58f08 RW |
16256 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16257 | # If the template does not know about datarootdir, expand it. | |
16258 | # FIXME: This hack should be removed a few years after 2.60. | |
16259 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16260 | ac_sed_dataroot=' | |
16261 | /datarootdir/ { | |
16262 | p | |
16263 | q | |
16264 | } | |
16265 | /@datadir@/p | |
16266 | /@docdir@/p | |
16267 | /@infodir@/p | |
16268 | /@localedir@/p | |
16269 | /@mandir@/p' | |
16270 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16271 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16272 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16274 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b58b6ee1 | 16275 | _ACEOF |
efd58f08 RW |
16276 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16277 | ac_datarootdir_hack=' | |
16278 | s&@datadir@&$datadir&g | |
16279 | s&@docdir@&$docdir&g | |
16280 | s&@infodir@&$infodir&g | |
16281 | s&@localedir@&$localedir&g | |
16282 | s&@mandir@&$mandir&g | |
16283 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16284 | esac | |
16285 | _ACEOF | |
16286 | ||
16287 | # Neutralize VPATH when `$srcdir' = `.'. | |
16288 | # Shell code in configure.ac might set extrasub. | |
16289 | # FIXME: do we really want to maintain this feature? | |
16290 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16291 | ac_sed_extra="$ac_vpsub | |
b58b6ee1 DJ |
16292 | $extrasub |
16293 | _ACEOF | |
efd58f08 | 16294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b58b6ee1 DJ |
16295 | :t |
16296 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
efd58f08 RW |
16297 | s|@configure_input@|$ac_sed_conf_input|;t t |
16298 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16299 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16300 | s&@srcdir@&$ac_srcdir&;t t | |
16301 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16302 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16303 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16304 | s&@builddir@&$ac_builddir&;t t | |
16305 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16306 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16307 | s&@INSTALL@&$ac_INSTALL&;t t | |
16308 | $ac_datarootdir_hack | |
16309 | " | |
16310 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16311 | if $ac_cs_awk_getline; then | |
6d3ddf51 | 16312 | $AWK -f "$ac_tmp/subs.awk" |
efd58f08 | 16313 | else |
6d3ddf51 SM |
16314 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16315 | fi \ | |
16316 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
efd58f08 RW |
16317 | |
16318 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
6d3ddf51 SM |
16319 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16320 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16321 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
efd58f08 | 16322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
6d3ddf51 | 16323 | which seems to be undefined. Please make sure it is defined" >&5 |
efd58f08 | 16324 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
6d3ddf51 | 16325 | which seems to be undefined. Please make sure it is defined" >&2;} |
efd58f08 | 16326 | |
6d3ddf51 | 16327 | rm -f "$ac_tmp/stdin" |
efd58f08 | 16328 | case $ac_file in |
6d3ddf51 SM |
16329 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16330 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
efd58f08 | 16331 | esac \ |
6d3ddf51 | 16332 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
efd58f08 | 16333 | ;; |
9f35b464 | 16334 | |
9f35b464 | 16335 | |
9f35b464 | 16336 | |
efd58f08 RW |
16337 | esac |
16338 | ||
94f4a7b9 RW |
16339 | |
16340 | case $ac_file$ac_mode in | |
16341 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16342 | sed "$extrasub_host" | | |
16343 | sed "$extrasub_target" > mf$$ | |
16344 | mv -f mf$$ Makefile ;; | |
16345 | ||
16346 | esac | |
efd58f08 RW |
16347 | done # for ac_tag |
16348 | ||
16349 | ||
16350 | as_fn_exit 0 | |
b58b6ee1 | 16351 | _ACEOF |
b58b6ee1 DJ |
16352 | ac_clean_files=$ac_clean_files_save |
16353 | ||
efd58f08 | 16354 | test $ac_write_fail = 0 || |
6d3ddf51 | 16355 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
efd58f08 | 16356 | |
b58b6ee1 DJ |
16357 | |
16358 | # configure is writing to config.log, and then calls config.status. | |
16359 | # config.status does its own redirection, appending to config.log. | |
16360 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16361 | # by configure, so config.status won't be able to write to it; its | |
16362 | # output is simply discarded. So we exec the FD to /dev/null, | |
16363 | # effectively closing config.log, so it can be properly (re)opened and | |
16364 | # appended to by config.status. When coming back to configure, we | |
16365 | # need to make the FD available again. | |
16366 | if test "$no_create" != yes; then | |
16367 | ac_cs_success=: | |
16368 | ac_config_status_args= | |
16369 | test "$silent" = yes && | |
16370 | ac_config_status_args="$ac_config_status_args --quiet" | |
16371 | exec 5>/dev/null | |
16372 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16373 | exec 5>>config.log | |
16374 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16375 | # would make configure fail if this is the last instruction. | |
6d3ddf51 | 16376 | $ac_cs_success || as_fn_exit 1 |
efd58f08 RW |
16377 | fi |
16378 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16380 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b58b6ee1 | 16381 | fi |
9f35b464 | 16382 |