Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb 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 | |
c6b750e1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb 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 | ||
d0ac1c44 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;} | |
81ecdfbb 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 | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb 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'\" && | |
8e957354 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" | |
81ecdfbb 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 | |
c6b750e1 | 211 | do |
81ecdfbb 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 : | |
d0ac1c44 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 | |
81ecdfbb 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." | |
c6b750e1 | 266 | else |
81ecdfbb 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." | |
c6b750e1 | 271 | fi |
81ecdfbb 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 | |
c6b750e1 | 301 | |
81ecdfbb 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" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 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 | |
81ecdfbb 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 | ||
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb 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 | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 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 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb 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 | |
c6b750e1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
81ecdfbb 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 | |
c6b750e1 | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb 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'` | |
c6b750e1 | 456 | |
c6b750e1 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 | ||
c6b750e1 | 464 | |
81ecdfbb 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 | | |
c6b750e1 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
c6b750e1 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
c6b750e1 | 484 | ' >$as_me.lineno && |
81ecdfbb 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; } | |
c6b750e1 | 487 | |
d0ac1c44 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 | |
c6b750e1 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 | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
c6b750e1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
81ecdfbb 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';; | |
c6b750e1 DJ |
511 | esac |
512 | ||
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 522 | as_ln_s='ln -s' |
81ecdfbb 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. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
c6b750e1 | 533 | fi |
c6b750e1 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
c6b750e1 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c6b750e1 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 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
a0da8069 | 559 | |
c6b750e1 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c6b750e1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
c6b750e1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
a0da8069 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
c6b750e1 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
c6b750e1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
c6b750e1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
c6b750e1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
b121d7d4 | 604 | READELF_FOR_TARGET |
81ecdfbb RW |
605 | RANLIB_FOR_TARGET |
606 | OBJDUMP_FOR_TARGET | |
6b91c541 | 607 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
608 | NM_FOR_TARGET |
609 | LIPO_FOR_TARGET | |
610 | LD_FOR_TARGET | |
611 | DLLTOOL_FOR_TARGET | |
612 | AS_FOR_TARGET | |
613 | AR_FOR_TARGET | |
e552509b | 614 | GOC_FOR_TARGET |
81ecdfbb | 615 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
616 | GCC_FOR_TARGET |
617 | CXX_FOR_TARGET | |
618 | CC_FOR_TARGET | |
b121d7d4 | 619 | READELF |
81ecdfbb RW |
620 | OBJDUMP |
621 | OBJCOPY | |
622 | WINDMC | |
623 | WINDRES | |
624 | STRIP | |
625 | RANLIB | |
626 | NM | |
627 | LIPO | |
628 | LD | |
629 | DLLTOOL | |
630 | AS | |
631 | AR | |
632 | RUNTEST | |
633 | EXPECT | |
634 | MAKEINFO | |
635 | FLEX | |
636 | LEX | |
637 | M4 | |
638 | BISON | |
639 | YACC | |
81ecdfbb RW |
640 | WINDRES_FOR_BUILD |
641 | WINDMC_FOR_BUILD | |
642 | RANLIB_FOR_BUILD | |
643 | NM_FOR_BUILD | |
644 | LD_FOR_BUILD | |
645 | LDFLAGS_FOR_BUILD | |
e552509b | 646 | GOC_FOR_BUILD |
81ecdfbb | 647 | GFORTRAN_FOR_BUILD |
81ecdfbb RW |
648 | DLLTOOL_FOR_BUILD |
649 | CXX_FOR_BUILD | |
650 | CXXFLAGS_FOR_BUILD | |
651 | CFLAGS_FOR_BUILD | |
652 | CC_FOR_BUILD | |
653 | AS_FOR_BUILD | |
654 | AR_FOR_BUILD | |
911e63d0 | 655 | target_configdirs |
81ecdfbb | 656 | configdirs |
81ecdfbb | 657 | build_configdirs |
81ecdfbb RW |
658 | INSTALL_GDB_TK |
659 | GDB_TK | |
660 | CONFIGURE_GDB_TK | |
661 | build_tooldir | |
662 | tooldir | |
663 | GCC_SHLIB_SUBDIR | |
664 | RPATH_ENVVAR | |
4074d5f2 RW |
665 | target_configargs |
666 | host_configargs | |
667 | build_configargs | |
96655cc4 | 668 | BUILD_CONFIG |
91c1f14c | 669 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
670 | CXXFLAGS_FOR_TARGET |
671 | CFLAGS_FOR_TARGET | |
672 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
673 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 674 | get_gcc_base_ver |
e81d5d05 | 675 | extra_host_zlib_configure_flags |
700d40ca | 676 | extra_host_libiberty_configure_flags |
1b6c0831 | 677 | stage1_languages |
bf41f30d | 678 | host_shared |
1b6c0831 L |
679 | extra_linker_plugin_flags |
680 | extra_linker_plugin_configure_flags | |
7ec59b9e | 681 | islinc |
1b6c0831 | 682 | isllibs |
81ecdfbb | 683 | poststage1_ldflags |
143754cd | 684 | poststage1_libs |
81ecdfbb | 685 | stage1_ldflags |
b3676d82 | 686 | stage1_libs |
7ec59b9e | 687 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
688 | extra_mpc_mpfr_configure_flags |
689 | extra_mpc_gmp_configure_flags | |
690 | extra_mpfr_configure_flags | |
691 | gmpinc | |
692 | gmplibs | |
693 | do_compare | |
694 | GNATMAKE | |
695 | GNATBIND | |
696 | ac_ct_CXX | |
697 | CXXFLAGS | |
698 | CXX | |
699 | OBJEXT | |
700 | EXEEXT | |
701 | ac_ct_CC | |
702 | CPPFLAGS | |
703 | LDFLAGS | |
704 | CFLAGS | |
705 | CC | |
1b6c0831 | 706 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
707 | target_subdir |
708 | host_subdir | |
709 | build_subdir | |
710 | build_libsubdir | |
8e957354 PB |
711 | AWK |
712 | SED | |
81ecdfbb RW |
713 | LN_S |
714 | LN | |
715 | INSTALL_DATA | |
716 | INSTALL_SCRIPT | |
717 | INSTALL_PROGRAM | |
718 | target_os | |
719 | target_vendor | |
720 | target_cpu | |
721 | target | |
722 | host_os | |
723 | host_vendor | |
724 | host_cpu | |
725 | host | |
726 | target_noncanonical | |
727 | host_noncanonical | |
728 | build_noncanonical | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
733 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
734 | target_alias | |
735 | host_alias | |
736 | build_alias | |
737 | LIBS | |
738 | ECHO_T | |
739 | ECHO_N | |
740 | ECHO_C | |
741 | DEFS | |
742 | mandir | |
743 | localedir | |
744 | libdir | |
745 | psdir | |
746 | pdfdir | |
747 | dvidir | |
748 | htmldir | |
749 | infodir | |
750 | docdir | |
751 | oldincludedir | |
752 | includedir | |
753 | localstatedir | |
754 | sharedstatedir | |
755 | sysconfdir | |
756 | datadir | |
757 | datarootdir | |
758 | libexecdir | |
759 | sbindir | |
760 | bindir | |
761 | program_transform_name | |
762 | prefix | |
763 | exec_prefix | |
764 | PACKAGE_URL | |
765 | PACKAGE_BUGREPORT | |
766 | PACKAGE_STRING | |
767 | PACKAGE_VERSION | |
768 | PACKAGE_TARNAME | |
769 | PACKAGE_NAME | |
770 | PATH_SEPARATOR | |
771 | SHELL' | |
772 | ac_subst_files='serialization_dependencies | |
773 | host_makefile_frag | |
774 | target_makefile_frag | |
775 | alphaieee_frag | |
776 | ospace_frag' | |
777 | ac_user_opts=' | |
778 | enable_option_checking | |
779 | with_build_libsubdir | |
cf39cfc5 | 780 | with_system_zlib |
1b6c0831 L |
781 | enable_as_accelerator_for |
782 | enable_offload_targets | |
81ecdfbb | 783 | enable_gold |
c7791212 | 784 | enable_ld |
edeefb67 | 785 | enable_compressed_debug_sections |
89a1e9c3 PB |
786 | enable_libquadmath |
787 | enable_libquadmath_support | |
81ecdfbb RW |
788 | enable_libada |
789 | enable_libssp | |
f66a9a70 | 790 | enable_libstdcxx |
1b6c0831 | 791 | enable_liboffloadmic |
ffdd6afc | 792 | enable_bootstrap |
81ecdfbb RW |
793 | with_mpc |
794 | with_mpc_include | |
795 | with_mpc_lib | |
796 | with_mpfr_dir | |
797 | with_mpfr | |
798 | with_mpfr_include | |
799 | with_mpfr_lib | |
800 | with_gmp_dir | |
801 | with_gmp | |
802 | with_gmp_include | |
803 | with_gmp_lib | |
81ecdfbb | 804 | with_stage1_libs |
b3676d82 | 805 | with_stage1_ldflags |
81ecdfbb | 806 | with_boot_libs |
143754cd | 807 | with_boot_ldflags |
7ec59b9e L |
808 | with_isl |
809 | with_isl_include | |
810 | with_isl_lib | |
811 | enable_isl_version_check | |
700d40ca | 812 | enable_lto |
1b6c0831 L |
813 | enable_linker_plugin_configure_flags |
814 | enable_linker_plugin_flags | |
bf41f30d | 815 | enable_host_shared |
81ecdfbb RW |
816 | enable_stage1_languages |
817 | enable_objc_gc | |
05a13254 NC |
818 | with_target_bdw_gc |
819 | with_target_bdw_gc_include | |
820 | with_target_bdw_gc_lib | |
bf41f30d | 821 | with_gcc_major_version_only |
81ecdfbb RW |
822 | with_build_sysroot |
823 | with_debug_prefix_map | |
96655cc4 | 824 | with_build_config |
730af8ee | 825 | enable_vtable_verify |
81ecdfbb RW |
826 | enable_serial_configure |
827 | with_build_time_tools | |
828 | enable_maintainer_mode | |
829 | enable_stage1_checking | |
830 | enable_werror | |
81ecdfbb RW |
831 | ' |
832 | ac_precious_vars='build_alias | |
833 | host_alias | |
834 | target_alias | |
835 | CC | |
836 | CFLAGS | |
837 | LDFLAGS | |
838 | LIBS | |
839 | CPPFLAGS | |
840 | CXX | |
841 | CXXFLAGS | |
842 | CCC | |
4074d5f2 RW |
843 | build_configargs |
844 | host_configargs | |
845 | target_configargs | |
81ecdfbb RW |
846 | AR |
847 | AS | |
848 | DLLTOOL | |
849 | LD | |
850 | LIPO | |
851 | NM | |
852 | RANLIB | |
853 | STRIP | |
854 | WINDRES | |
855 | WINDMC | |
856 | OBJCOPY | |
857 | OBJDUMP | |
b121d7d4 | 858 | READELF |
81ecdfbb RW |
859 | CC_FOR_TARGET |
860 | CXX_FOR_TARGET | |
861 | GCC_FOR_TARGET | |
81ecdfbb | 862 | GFORTRAN_FOR_TARGET |
e552509b | 863 | GOC_FOR_TARGET |
81ecdfbb RW |
864 | AR_FOR_TARGET |
865 | AS_FOR_TARGET | |
866 | DLLTOOL_FOR_TARGET | |
867 | LD_FOR_TARGET | |
868 | LIPO_FOR_TARGET | |
869 | NM_FOR_TARGET | |
6b91c541 | 870 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
871 | OBJDUMP_FOR_TARGET |
872 | RANLIB_FOR_TARGET | |
b121d7d4 | 873 | READELF_FOR_TARGET |
81ecdfbb RW |
874 | STRIP_FOR_TARGET |
875 | WINDRES_FOR_TARGET | |
876 | WINDMC_FOR_TARGET' | |
877 | ||
a0da8069 NN |
878 | |
879 | # Initialize some variables set by options. | |
c6b750e1 DJ |
880 | ac_init_help= |
881 | ac_init_version=false | |
81ecdfbb RW |
882 | ac_unrecognized_opts= |
883 | ac_unrecognized_sep= | |
a0da8069 NN |
884 | # The variables have the same names as the options, with |
885 | # dashes changed to underlines. | |
c6b750e1 | 886 | cache_file=/dev/null |
a0da8069 | 887 | exec_prefix=NONE |
a0da8069 | 888 | no_create= |
a0da8069 NN |
889 | no_recursion= |
890 | prefix=NONE | |
891 | program_prefix=NONE | |
892 | program_suffix=NONE | |
893 | program_transform_name=s,x,x, | |
894 | silent= | |
895 | site= | |
896 | srcdir= | |
a0da8069 NN |
897 | verbose= |
898 | x_includes=NONE | |
899 | x_libraries=NONE | |
c6b750e1 DJ |
900 | |
901 | # Installation directory options. | |
902 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
903 | # and all the variables that are supposed to be based on exec_prefix | |
904 | # by default will actually change. | |
905 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 906 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
907 | bindir='${exec_prefix}/bin' |
908 | sbindir='${exec_prefix}/sbin' | |
909 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
910 | datarootdir='${prefix}/share' |
911 | datadir='${datarootdir}' | |
a0da8069 NN |
912 | sysconfdir='${prefix}/etc' |
913 | sharedstatedir='${prefix}/com' | |
914 | localstatedir='${prefix}/var' | |
a0da8069 NN |
915 | includedir='${prefix}/include' |
916 | oldincludedir='/usr/include' | |
81ecdfbb RW |
917 | docdir='${datarootdir}/doc/${PACKAGE}' |
918 | infodir='${datarootdir}/info' | |
919 | htmldir='${docdir}' | |
920 | dvidir='${docdir}' | |
921 | pdfdir='${docdir}' | |
922 | psdir='${docdir}' | |
923 | libdir='${exec_prefix}/lib' | |
924 | localedir='${datarootdir}/locale' | |
925 | mandir='${datarootdir}/man' | |
252b5132 | 926 | |
a0da8069 | 927 | ac_prev= |
81ecdfbb | 928 | ac_dashdash= |
a0da8069 NN |
929 | for ac_option |
930 | do | |
a0da8069 NN |
931 | # If the previous option needs an argument, assign it. |
932 | if test -n "$ac_prev"; then | |
81ecdfbb | 933 | eval $ac_prev=\$ac_option |
a0da8069 NN |
934 | ac_prev= |
935 | continue | |
936 | fi | |
252b5132 | 937 | |
81ecdfbb | 938 | case $ac_option in |
d0ac1c44 SM |
939 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
940 | *=) ac_optarg= ;; | |
941 | *) ac_optarg=yes ;; | |
81ecdfbb | 942 | esac |
a0da8069 NN |
943 | |
944 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
945 | ||
81ecdfbb RW |
946 | case $ac_dashdash$ac_option in |
947 | --) | |
948 | ac_dashdash=yes ;; | |
a0da8069 NN |
949 | |
950 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
951 | ac_prev=bindir ;; | |
952 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 953 | bindir=$ac_optarg ;; |
a0da8069 NN |
954 | |
955 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 956 | ac_prev=build_alias ;; |
a0da8069 | 957 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 958 | build_alias=$ac_optarg ;; |
a0da8069 NN |
959 | |
960 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
961 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
962 | ac_prev=cache_file ;; | |
963 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
964 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
965 | cache_file=$ac_optarg ;; |
966 | ||
967 | --config-cache | -C) | |
968 | cache_file=config.cache ;; | |
a0da8069 | 969 | |
81ecdfbb | 970 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 971 | ac_prev=datadir ;; |
81ecdfbb | 972 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 973 | datadir=$ac_optarg ;; |
a0da8069 | 974 | |
81ecdfbb RW |
975 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
976 | | --dataroo | --dataro | --datar) | |
977 | ac_prev=datarootdir ;; | |
978 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
979 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
980 | datarootdir=$ac_optarg ;; | |
981 | ||
a0da8069 | 982 | -disable-* | --disable-*) |
81ecdfbb | 983 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 984 | # Reject names that are not valid shell variable names. |
81ecdfbb | 985 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 986 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
987 | ac_useropt_orig=$ac_useropt |
988 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
989 | case $ac_user_opts in | |
990 | *" | |
991 | "enable_$ac_useropt" | |
992 | "*) ;; | |
993 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
994 | ac_unrecognized_sep=', ';; | |
995 | esac | |
996 | eval enable_$ac_useropt=no ;; | |
997 | ||
998 | -docdir | --docdir | --docdi | --doc | --do) | |
999 | ac_prev=docdir ;; | |
1000 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1001 | docdir=$ac_optarg ;; | |
1002 | ||
1003 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1004 | ac_prev=dvidir ;; | |
1005 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1006 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1007 | |
1008 | -enable-* | --enable-*) | |
81ecdfbb | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1010 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1012 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1013 | ac_useropt_orig=$ac_useropt |
1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1015 | case $ac_user_opts in | |
1016 | *" | |
1017 | "enable_$ac_useropt" | |
1018 | "*) ;; | |
1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1020 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1021 | esac |
81ecdfbb | 1022 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1026 | | --exec | --exe | --ex) | |
1027 | ac_prev=exec_prefix ;; | |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1030 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1031 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1032 | |
1033 | -gas | --gas | --ga | --g) | |
1034 | # Obsolete; use --with-gas. | |
1035 | with_gas=yes ;; | |
1036 | ||
c6b750e1 DJ |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; | |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1040 | ac_init_help=recursive ;; | |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1042 | ac_init_help=short ;; | |
a0da8069 NN |
1043 | |
1044 | -host | --host | --hos | --ho) | |
c6b750e1 | 1045 | ac_prev=host_alias ;; |
a0da8069 | 1046 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1047 | host_alias=$ac_optarg ;; |
a0da8069 | 1048 | |
81ecdfbb RW |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; | |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1052 | | --ht=*) | |
1053 | htmldir=$ac_optarg ;; | |
1054 | ||
a0da8069 NN |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) | |
1057 | ac_prev=includedir ;; | |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1060 | includedir=$ac_optarg ;; |
a0da8069 NN |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1063 | ac_prev=infodir ;; | |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1065 | infodir=$ac_optarg ;; |
a0da8069 NN |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) | |
1068 | ac_prev=libdir ;; | |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1070 | libdir=$ac_optarg ;; |
a0da8069 NN |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1073 | | --libexe | --libex | --libe) | |
1074 | ac_prev=libexecdir ;; | |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1076 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1077 | libexecdir=$ac_optarg ;; |
a0da8069 | 1078 | |
81ecdfbb RW |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; | |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1082 | localedir=$ac_optarg ;; | |
1083 | ||
a0da8069 | 1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1089 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1092 | ac_prev=mandir ;; | |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1094 | mandir=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -nfp | --nfp | --nf) | |
1097 | # Obsolete; use --without-fp. | |
1098 | with_fp=no ;; | |
1099 | ||
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1101 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1102 | no_create=yes ;; |
1103 | ||
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1106 | no_recursion=yes ;; | |
1107 | ||
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1110 | | --oldin | --oldi | --old | --ol | --o) | |
1111 | ac_prev=oldincludedir ;; | |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1115 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1118 | ac_prev=prefix ;; | |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1120 | prefix=$ac_optarg ;; |
a0da8069 NN |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1123 | | --program-pre | --program-pr | --program-p) | |
1124 | ac_prev=program_prefix ;; | |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1127 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1130 | | --program-suf | --program-su | --program-s) | |
1131 | ac_prev=program_suffix ;; | |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1134 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1135 | |
1136 | -program-transform-name | --program-transform-name \ | |
1137 | | --program-transform-nam | --program-transform-na \ | |
1138 | | --program-transform-n | --program-transform- \ | |
1139 | | --program-transform | --program-transfor \ | |
1140 | | --program-transfo | --program-transf \ | |
1141 | | --program-trans | --program-tran \ | |
1142 | | --progr-tra | --program-tr | --program-t) | |
1143 | ac_prev=program_transform_name ;; | |
1144 | -program-transform-name=* | --program-transform-name=* \ | |
1145 | | --program-transform-nam=* | --program-transform-na=* \ | |
1146 | | --program-transform-n=* | --program-transform-=* \ | |
1147 | | --program-transform=* | --program-transfor=* \ | |
1148 | | --program-transfo=* | --program-transf=* \ | |
1149 | | --program-trans=* | --program-tran=* \ | |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1151 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1152 | |
81ecdfbb RW |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; | |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1156 | pdfdir=$ac_optarg ;; | |
1157 | ||
1158 | -psdir | --psdir | --psdi | --psd | --ps) | |
1159 | ac_prev=psdir ;; | |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1161 | psdir=$ac_optarg ;; | |
1162 | ||
a0da8069 NN |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) | |
1165 | silent=yes ;; | |
1166 | ||
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1168 | ac_prev=sbindir ;; | |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1170 | | --sbi=* | --sb=*) | |
c6b750e1 | 1171 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1176 | | --sha | --sh) | |
1177 | ac_prev=sharedstatedir ;; | |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1181 | | --sha=* | --sh=*) | |
c6b750e1 | 1182 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1183 | |
1184 | -site | --site | --sit) | |
1185 | ac_prev=site ;; | |
1186 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1187 | site=$ac_optarg ;; |
a0da8069 NN |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1190 | ac_prev=srcdir ;; | |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1192 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1196 | ac_prev=sysconfdir ;; | |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1199 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1202 | ac_prev=target_alias ;; |
a0da8069 | 1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1204 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1207 | verbose=yes ;; | |
1208 | ||
c6b750e1 DJ |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; | |
a0da8069 NN |
1211 | |
1212 | -with-* | --with-*) | |
81ecdfbb | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1214 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1216 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1217 | ac_useropt_orig=$ac_useropt |
1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1219 | case $ac_user_opts in | |
1220 | *" | |
1221 | "with_$ac_useropt" | |
1222 | "*) ;; | |
1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1224 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1225 | esac |
81ecdfbb | 1226 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1227 | |
1228 | -without-* | --without-*) | |
81ecdfbb | 1229 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1230 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1231 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1232 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1233 | ac_useropt_orig=$ac_useropt |
1234 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1235 | case $ac_user_opts in | |
1236 | *" | |
1237 | "with_$ac_useropt" | |
1238 | "*) ;; | |
1239 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1240 | ac_unrecognized_sep=', ';; | |
1241 | esac | |
1242 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1243 | |
1244 | --x) | |
1245 | # Obsolete; use --with-x. | |
1246 | with_x=yes ;; | |
1247 | ||
1248 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1249 | | --x-incl | --x-inc | --x-in | --x-i) | |
1250 | ac_prev=x_includes ;; | |
1251 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1252 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1253 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1254 | |
1255 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1256 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1257 | ac_prev=x_libraries ;; | |
1258 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1259 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1260 | x_libraries=$ac_optarg ;; |
a0da8069 | 1261 | |
d0ac1c44 SM |
1262 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1263 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1264 | ;; |
1265 | ||
c6b750e1 DJ |
1266 | *=*) |
1267 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1268 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1269 | case $ac_envvar in #( |
1270 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1271 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1272 | esac |
1273 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1274 | export $ac_envvar ;; |
1275 | ||
a0da8069 | 1276 | *) |
c6b750e1 | 1277 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1278 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1279 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1280 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1281 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1282 | ;; |
1283 | ||
1284 | esac | |
1285 | done | |
1286 | ||
1287 | if test -n "$ac_prev"; then | |
c6b750e1 | 1288 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1289 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1290 | fi |
a0da8069 | 1291 | |
81ecdfbb RW |
1292 | if test -n "$ac_unrecognized_opts"; then |
1293 | case $enable_option_checking in | |
1294 | no) ;; | |
d0ac1c44 | 1295 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1296 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1297 | esac |
81ecdfbb | 1298 | fi |
a0da8069 | 1299 | |
81ecdfbb RW |
1300 | # Check all directory arguments for consistency. |
1301 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1302 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1303 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1304 | libdir localedir mandir | |
a0da8069 | 1305 | do |
81ecdfbb RW |
1306 | eval ac_val=\$$ac_var |
1307 | # Remove trailing slashes. | |
1308 | case $ac_val in | |
1309 | */ ) | |
1310 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1311 | eval $ac_var=\$ac_val;; | |
1312 | esac | |
1313 | # Be sure to have absolute directory names. | |
c6b750e1 | 1314 | case $ac_val in |
81ecdfbb RW |
1315 | [\\/$]* | ?:[\\/]* ) continue;; |
1316 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1317 | esac |
d0ac1c44 | 1318 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1319 | done |
1320 | ||
c6b750e1 DJ |
1321 | # There might be people who depend on the old broken behavior: `$host' |
1322 | # used to hold the argument of --host etc. | |
1323 | # FIXME: To remove some day. | |
1324 | build=$build_alias | |
1325 | host=$host_alias | |
1326 | target=$target_alias | |
376a0e54 | 1327 | |
c6b750e1 DJ |
1328 | # FIXME: To remove some day. |
1329 | if test "x$host_alias" != x; then | |
1330 | if test "x$build_alias" = x; then | |
1331 | cross_compiling=maybe | |
c6b750e1 DJ |
1332 | elif test "x$build_alias" != "x$host_alias"; then |
1333 | cross_compiling=yes | |
1334 | fi | |
1335 | fi | |
1336 | ||
1337 | ac_tool_prefix= | |
1338 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1339 | ||
1340 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1341 | |
a0da8069 | 1342 | |
81ecdfbb RW |
1343 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1344 | ac_ls_di=`ls -di .` && | |
1345 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1346 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1347 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1348 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1349 | |
1350 | ||
a0da8069 NN |
1351 | # Find the source files, if location was not specified. |
1352 | if test -z "$srcdir"; then | |
1353 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1354 | # Try the directory containing this script, then the parent directory. |
1355 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1356 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1357 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1358 | X"$as_myself" : 'X\(//\)$' \| \ | |
1359 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1360 | $as_echo X"$as_myself" | | |
1361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1362 | s//\1/ | |
1363 | q | |
1364 | } | |
1365 | /^X\(\/\/\)[^/].*/{ | |
1366 | s//\1/ | |
1367 | q | |
1368 | } | |
1369 | /^X\(\/\/\)$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\).*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | s/.*/./; q'` | |
a0da8069 | 1378 | srcdir=$ac_confdir |
81ecdfbb | 1379 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1380 | srcdir=.. |
1381 | fi | |
1382 | else | |
1383 | ac_srcdir_defaulted=no | |
1384 | fi | |
81ecdfbb RW |
1385 | if test ! -r "$srcdir/$ac_unique_file"; then |
1386 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1387 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1388 | fi |
1389 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1390 | ac_abs_confdir=`( | |
d0ac1c44 | 1391 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1392 | pwd)` |
1393 | # When building in place, set srcdir=. | |
1394 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1395 | srcdir=. | |
1396 | fi | |
1397 | # Remove unnecessary trailing slashes from srcdir. | |
1398 | # Double slashes in file names in object file debugging info | |
1399 | # mess up M-x gdb in Emacs. | |
1400 | case $srcdir in | |
1401 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1402 | esac | |
6d0cd39e AM |
1403 | case $srcdir in |
1404 | *" "*) | |
d0ac1c44 | 1405 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1406 | ;; |
1407 | esac | |
9cc8ae67 PB |
1408 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1409 | ||
81ecdfbb RW |
1410 | for ac_var in $ac_precious_vars; do |
1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1412 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1415 | done | |
c6b750e1 DJ |
1416 | |
1417 | # | |
1418 | # Report the --help message. | |
1419 | # | |
1420 | if test "$ac_init_help" = "long"; then | |
1421 | # Omit some internal or obsolete options to make the list less imposing. | |
1422 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1423 | cat <<_ACEOF | |
1424 | \`configure' configures this package to adapt to many kinds of systems. | |
1425 | ||
1426 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1427 | ||
1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1429 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1430 | ||
1431 | Defaults for the options are specified in brackets. | |
1432 | ||
1433 | Configuration: | |
1434 | -h, --help display this help and exit | |
1435 | --help=short display options specific to this package | |
1436 | --help=recursive display the short help of all the included packages | |
1437 | -V, --version display version information and exit | |
d0ac1c44 | 1438 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1439 | --cache-file=FILE cache test results in FILE [disabled] |
1440 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1441 | -n, --no-create do not create output files | |
1442 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1443 | ||
c6b750e1 DJ |
1444 | Installation directories: |
1445 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1446 | [$ac_default_prefix] |
c6b750e1 | 1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1448 | [PREFIX] |
c6b750e1 DJ |
1449 | |
1450 | By default, \`make install' will install all the files in | |
1451 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1452 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1453 | for instance \`--prefix=\$HOME'. | |
1454 | ||
1455 | For better control, use the options below. | |
1456 | ||
1457 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1458 | --bindir=DIR user executables [EPREFIX/bin] |
1459 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1460 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1464 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1465 | --includedir=DIR C header files [PREFIX/include] | |
1466 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1467 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1468 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1469 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1470 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1471 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1472 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1473 | --htmldir=DIR html documentation [DOCDIR] | |
1474 | --dvidir=DIR dvi documentation [DOCDIR] | |
1475 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1476 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1477 | _ACEOF |
1478 | ||
1479 | cat <<\_ACEOF | |
1480 | ||
1481 | Program names: | |
1482 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1483 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1484 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1485 | ||
1486 | System types: | |
1487 | --build=BUILD configure for building on BUILD [guessed] | |
1488 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1489 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1490 | _ACEOF | |
a0da8069 | 1491 | fi |
a0da8069 | 1492 | |
c6b750e1 DJ |
1493 | if test -n "$ac_init_help"; then |
1494 | ||
1495 | cat <<\_ACEOF | |
1496 | ||
1497 | Optional Features: | |
81ecdfbb | 1498 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1499 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1500 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1501 | --enable-as-accelerator-for=ARG |
1502 | build as offload target compiler. Specify offload | |
1503 | host triple by ARG | |
1504 | --enable-offload-targets=LIST | |
1505 | enable offloading to devices from comma-separated | |
1506 | LIST of TARGET[=DIR]. Use optional path to find | |
1507 | offload target compiler during the build | |
c7791212 | 1508 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1509 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1510 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1511 | Enable compressed debug sections for gas, gold or ld |
1512 | by default | |
89a1e9c3 PB |
1513 | --disable-libquadmath do not build libquadmath directory |
1514 | --disable-libquadmath-support | |
1515 | disable libquadmath support for Fortran | |
521ec477 DD |
1516 | --enable-libada build libada directory |
1517 | --enable-libssp build libssp directory | |
f66a9a70 | 1518 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1519 | --enable-liboffloadmic=ARG |
1520 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1521 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ec59b9e | 1522 | --disable-isl-version-check |
4849dfd8 | 1523 | disable check for isl version |
700d40ca | 1524 | --enable-lto enable link time optimization support |
1b6c0831 L |
1525 | --enable-linker-plugin-configure-flags=FLAGS |
1526 | additional flags for configuring linker plugins | |
1527 | [none] | |
1528 | --enable-linker-plugin-flags=FLAGS | |
1529 | additional flags for configuring and building linker | |
1530 | plugins [none] | |
bf41f30d | 1531 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1532 | --enable-stage1-languages[=all] |
1533 | choose additional languages to build during stage1. | |
1534 | Mostly useful for compiler development | |
1535 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1536 | Objective-C runtime | |
ce6c656d | 1537 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1538 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1539 | force sequential configuration of sub-packages for |
1540 | the host, target or build machine, or all | |
1541 | sub-packages | |
1542 | --enable-maintainer-mode | |
1543 | enable make rules and dependencies not useful (and | |
1544 | sometimes confusing) to the casual installer | |
1545 | --enable-stage1-checking[=all] | |
1546 | choose additional checking for stage1 of the | |
1547 | compiler | |
c6b750e1 DJ |
1548 | --enable-werror enable -Werror in bootstrap stage2 and later |
1549 | ||
1550 | Optional Packages: | |
1551 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1552 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1553 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1554 | --with-system-zlib use installed libz |
7837304f AS |
1555 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1556 | Equivalent to --with-mpc-include=PATH/include plus | |
1557 | --with-mpc-lib=PATH/lib | |
1558 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1559 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1560 | --with-mpfr-dir=PATH this option has been REMOVED |
1561 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1562 | Equivalent to --with-mpfr-include=PATH/include plus |
1563 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1564 | --with-mpfr-include=PATH |
521ec477 DD |
1565 | specify directory for installed MPFR include files |
1566 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1567 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1568 | --with-gmp=PATH specify prefix directory for the installed GMP |
1569 | package. Equivalent to | |
1570 | --with-gmp-include=PATH/include plus | |
1571 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1572 | --with-gmp-include=PATH specify directory for installed GMP include files |
1573 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1574 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1575 | --with-stage1-ldflags=FLAGS |
1576 | linker flags for stage1 | |
7837304f AS |
1577 | --with-boot-libs=LIBS libraries for stage2 and later |
1578 | --with-boot-ldflags=FLAGS | |
1579 | linker flags for stage2 and later | |
4849dfd8 | 1580 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1581 | package. Equivalent to |
7ec59b9e L |
1582 | --with-isl-include=PATH/include plus |
1583 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1584 | --with-isl-include=PATH Specify directory for installed isl include files |
1585 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1586 | --with-target-bdw-gc=PATHLIST |
1587 | specify prefix directory for installed bdw-gc | |
1588 | package. Equivalent to | |
1589 | --with-target-bdw-gc-include=PATH/include plus | |
1590 | --with-target-bdw-gc-lib=PATH/lib | |
1591 | --with-target-bdw-gc-include=PATHLIST | |
1592 | specify directories for installed bdw-gc include | |
1593 | files | |
1594 | --with-target-bdw-gc-lib=PATHLIST | |
1595 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1596 | --with-gcc-major-version-only |
1597 | use only GCC major number in filesystem paths | |
521ec477 | 1598 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1599 | use sysroot as the system root during the build |
8a6ee3ab | 1600 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1601 | map A to B, C to D ... in debug information |
1602 | --with-build-config='NAME NAME2...' | |
1603 | use config/NAME.mk build configuration | |
521ec477 | 1604 | --with-build-time-tools=PATH |
c6b750e1 | 1605 | use given path to find target tools during the build |
c6b750e1 DJ |
1606 | |
1607 | Some influential environment variables: | |
1608 | CC C compiler command | |
1609 | CFLAGS C compiler flags | |
1610 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1611 | nonstandard directory <lib dir> | |
81ecdfbb | 1612 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1613 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1614 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1615 | CXX C++ compiler command |
1616 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1617 | build_configargs |
1618 | additional configure arguments for build directories | |
1619 | host_configargs | |
1620 | additional configure arguments for host directories | |
1621 | target_configargs | |
1622 | additional configure arguments for target directories | |
9a819804 AO |
1623 | AR AR for the host |
1624 | AS AS for the host | |
1625 | DLLTOOL DLLTOOL for the host | |
1626 | LD LD for the host | |
1627 | LIPO LIPO for the host | |
1628 | NM NM for the host | |
1629 | RANLIB RANLIB for the host | |
1630 | STRIP STRIP for the host | |
1631 | WINDRES WINDRES for the host | |
0c24b341 | 1632 | WINDMC WINDMC for the host |
9a819804 AO |
1633 | OBJCOPY OBJCOPY for the host |
1634 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1635 | READELF READELF for the host |
9a819804 AO |
1636 | CC_FOR_TARGET |
1637 | CC for the target | |
1638 | CXX_FOR_TARGET | |
1639 | CXX for the target | |
1640 | GCC_FOR_TARGET | |
1641 | GCC for the target | |
9a819804 AO |
1642 | GFORTRAN_FOR_TARGET |
1643 | GFORTRAN for the target | |
e552509b ILT |
1644 | GOC_FOR_TARGET |
1645 | GOC for the target | |
9a819804 AO |
1646 | AR_FOR_TARGET |
1647 | AR for the target | |
1648 | AS_FOR_TARGET | |
1649 | AS for the target | |
1650 | DLLTOOL_FOR_TARGET | |
1651 | DLLTOOL for the target | |
1652 | LD_FOR_TARGET | |
1653 | LD for the target | |
1654 | LIPO_FOR_TARGET | |
1655 | LIPO for the target | |
1656 | NM_FOR_TARGET | |
1657 | NM for the target | |
6b91c541 AP |
1658 | OBJCOPY_FOR_TARGET |
1659 | OBJCOPY for the target | |
9a819804 AO |
1660 | OBJDUMP_FOR_TARGET |
1661 | OBJDUMP for the target | |
1662 | RANLIB_FOR_TARGET | |
1663 | RANLIB for the target | |
b121d7d4 DD |
1664 | READELF_FOR_TARGET |
1665 | READELF for the target | |
9a819804 AO |
1666 | STRIP_FOR_TARGET |
1667 | STRIP for the target | |
1668 | WINDRES_FOR_TARGET | |
1669 | WINDRES for the target | |
0c24b341 NC |
1670 | WINDMC_FOR_TARGET |
1671 | WINDMC for the target | |
c6b750e1 DJ |
1672 | |
1673 | Use these variables to override the choices made by `configure' or to help | |
1674 | it to find libraries and programs with nonstandard names/locations. | |
1675 | ||
81ecdfbb | 1676 | Report bugs to the package provider. |
c6b750e1 | 1677 | _ACEOF |
81ecdfbb | 1678 | ac_status=$? |
c6b750e1 DJ |
1679 | fi |
1680 | ||
1681 | if test "$ac_init_help" = "recursive"; then | |
1682 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1683 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1684 | test -d "$ac_dir" || |
1685 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1686 | continue | |
c6b750e1 DJ |
1687 | ac_builddir=. |
1688 | ||
81ecdfbb RW |
1689 | case "$ac_dir" in |
1690 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1691 | *) | |
1692 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1693 | # A ".." for each directory in $ac_dir_suffix. | |
1694 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1695 | case $ac_top_builddir_sub in | |
1696 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1697 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1698 | esac ;; | |
1699 | esac | |
1700 | ac_abs_top_builddir=$ac_pwd | |
1701 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1702 | # for backward compatibility: | |
1703 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1704 | |
1705 | case $srcdir in | |
81ecdfbb | 1706 | .) # We are building in place. |
c6b750e1 | 1707 | ac_srcdir=. |
81ecdfbb RW |
1708 | ac_top_srcdir=$ac_top_builddir_sub |
1709 | ac_abs_top_srcdir=$ac_pwd ;; | |
1710 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1711 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1712 | ac_top_srcdir=$srcdir |
1713 | ac_abs_top_srcdir=$srcdir ;; | |
1714 | *) # Relative name. | |
1715 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1716 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1717 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1718 | esac |
81ecdfbb RW |
1719 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1720 | ||
1721 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1722 | # Check for guested configure. | |
1723 | if test -f "$ac_srcdir/configure.gnu"; then | |
1724 | echo && | |
1725 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1726 | elif test -f "$ac_srcdir/configure"; then | |
1727 | echo && | |
1728 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1729 | else |
81ecdfbb RW |
1730 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1731 | fi || ac_status=$? | |
1732 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1733 | done |
1734 | fi | |
1735 | ||
81ecdfbb | 1736 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1737 | if $ac_init_version; then |
1738 | cat <<\_ACEOF | |
81ecdfbb | 1739 | configure |
d0ac1c44 | 1740 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1741 | |
d0ac1c44 | 1742 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1743 | This configure script is free software; the Free Software Foundation |
1744 | gives unlimited permission to copy, distribute and modify it. | |
1745 | _ACEOF | |
81ecdfbb | 1746 | exit |
c6b750e1 | 1747 | fi |
81ecdfbb RW |
1748 | |
1749 | ## ------------------------ ## | |
1750 | ## Autoconf initialization. ## | |
1751 | ## ------------------------ ## | |
1752 | ||
1753 | # ac_fn_c_try_compile LINENO | |
1754 | # -------------------------- | |
1755 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1756 | ac_fn_c_try_compile () | |
1757 | { | |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 | rm -f conftest.$ac_objext | |
1760 | if { { ac_try="$ac_compile" | |
1761 | case "(($ac_try" in | |
1762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1763 | *) ac_try_echo=$ac_try;; | |
1764 | esac | |
1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1766 | $as_echo "$ac_try_echo"; } >&5 | |
1767 | (eval "$ac_compile") 2>conftest.err | |
1768 | ac_status=$? | |
1769 | if test -s conftest.err; then | |
1770 | grep -v '^ *+' conftest.err >conftest.er1 | |
1771 | cat conftest.er1 >&5 | |
1772 | mv -f conftest.er1 conftest.err | |
1773 | fi | |
1774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1775 | test $ac_status = 0; } && { | |
1776 | test -z "$ac_c_werror_flag" || | |
1777 | test ! -s conftest.err | |
1778 | } && test -s conftest.$ac_objext; then : | |
1779 | ac_retval=0 | |
1780 | else | |
1781 | $as_echo "$as_me: failed program was:" >&5 | |
1782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1783 | ||
1784 | ac_retval=1 | |
1785 | fi | |
d0ac1c44 SM |
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1787 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1788 | |
1789 | } # ac_fn_c_try_compile | |
1790 | ||
1791 | # ac_fn_cxx_try_compile LINENO | |
1792 | # ---------------------------- | |
1793 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1794 | ac_fn_cxx_try_compile () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | rm -f conftest.$ac_objext | |
1798 | if { { ac_try="$ac_compile" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | $as_echo "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_compile") 2>conftest.err | |
1806 | ac_status=$? | |
1807 | if test -s conftest.err; then | |
1808 | grep -v '^ *+' conftest.err >conftest.er1 | |
1809 | cat conftest.er1 >&5 | |
1810 | mv -f conftest.er1 conftest.err | |
1811 | fi | |
1812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1813 | test $ac_status = 0; } && { | |
1814 | test -z "$ac_cxx_werror_flag" || | |
1815 | test ! -s conftest.err | |
1816 | } && test -s conftest.$ac_objext; then : | |
1817 | ac_retval=0 | |
1818 | else | |
1819 | $as_echo "$as_me: failed program was:" >&5 | |
1820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1821 | ||
1822 | ac_retval=1 | |
1823 | fi | |
d0ac1c44 SM |
1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1825 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1826 | |
1827 | } # ac_fn_cxx_try_compile | |
1828 | ||
b3676d82 EB |
1829 | # ac_fn_cxx_try_link LINENO |
1830 | # ------------------------- | |
1831 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1832 | ac_fn_cxx_try_link () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1836 | if { { ac_try="$ac_link" | |
1837 | case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_link") 2>conftest.err | |
1844 | ac_status=$? | |
1845 | if test -s conftest.err; then | |
1846 | grep -v '^ *+' conftest.err >conftest.er1 | |
1847 | cat conftest.er1 >&5 | |
1848 | mv -f conftest.er1 conftest.err | |
1849 | fi | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; } && { | |
1852 | test -z "$ac_cxx_werror_flag" || | |
1853 | test ! -s conftest.err | |
1854 | } && test -s conftest$ac_exeext && { | |
1855 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1856 | test -x conftest$ac_exeext |
b3676d82 EB |
1857 | }; then : |
1858 | ac_retval=0 | |
1859 | else | |
1860 | $as_echo "$as_me: failed program was:" >&5 | |
1861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1862 | ||
1863 | ac_retval=1 | |
1864 | fi | |
1865 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1866 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1867 | # interfere with the next link command; also delete a directory that is | |
1868 | # left behind by Apple's compiler. We do this before executing the actions. | |
1869 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1870 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1871 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1872 | |
1873 | } # ac_fn_cxx_try_link | |
1874 | ||
81ecdfbb RW |
1875 | # ac_fn_c_try_link LINENO |
1876 | # ----------------------- | |
1877 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1878 | ac_fn_c_try_link () | |
1879 | { | |
1880 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1882 | if { { ac_try="$ac_link" | |
1883 | case "(($ac_try" in | |
1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1885 | *) ac_try_echo=$ac_try;; | |
1886 | esac | |
1887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1888 | $as_echo "$ac_try_echo"; } >&5 | |
1889 | (eval "$ac_link") 2>conftest.err | |
1890 | ac_status=$? | |
1891 | if test -s conftest.err; then | |
1892 | grep -v '^ *+' conftest.err >conftest.er1 | |
1893 | cat conftest.er1 >&5 | |
1894 | mv -f conftest.er1 conftest.err | |
1895 | fi | |
1896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1897 | test $ac_status = 0; } && { | |
1898 | test -z "$ac_c_werror_flag" || | |
1899 | test ! -s conftest.err | |
1900 | } && test -s conftest$ac_exeext && { | |
1901 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1902 | test -x conftest$ac_exeext |
81ecdfbb RW |
1903 | }; then : |
1904 | ac_retval=0 | |
1905 | else | |
1906 | $as_echo "$as_me: failed program was:" >&5 | |
1907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1908 | ||
1909 | ac_retval=1 | |
1910 | fi | |
1911 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1912 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1913 | # interfere with the next link command; also delete a directory that is | |
1914 | # left behind by Apple's compiler. We do this before executing the actions. | |
1915 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1916 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1917 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1918 | |
1919 | } # ac_fn_c_try_link | |
1920 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1921 | This file contains any messages produced by compilers while |
1922 | running configure, to aid debugging if configure makes a mistake. | |
1923 | ||
1924 | It was created by $as_me, which was | |
d0ac1c44 | 1925 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1926 | |
1927 | $ $0 $@ | |
1928 | ||
1929 | _ACEOF | |
81ecdfbb | 1930 | exec 5>>config.log |
c6b750e1 DJ |
1931 | { |
1932 | cat <<_ASUNAME | |
1933 | ## --------- ## | |
1934 | ## Platform. ## | |
1935 | ## --------- ## | |
1936 | ||
1937 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1938 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1939 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1940 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1941 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1942 | ||
1943 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1944 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1945 | ||
1946 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1947 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1948 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1949 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1950 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1951 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1952 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1953 | ||
1954 | _ASUNAME | |
1955 | ||
1956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1957 | for as_dir in $PATH | |
1958 | do | |
1959 | IFS=$as_save_IFS | |
1960 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1961 | $as_echo "PATH: $as_dir" |
1962 | done | |
1963 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1964 | |
1965 | } >&5 | |
1966 | ||
1967 | cat >&5 <<_ACEOF | |
1968 | ||
1969 | ||
1970 | ## ----------- ## | |
1971 | ## Core tests. ## | |
1972 | ## ----------- ## | |
1973 | ||
1974 | _ACEOF | |
1975 | ||
1976 | ||
1977 | # Keep a trace of the command line. | |
1978 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1979 | # Strip out --silent because we don't want to record it for future runs. | |
1980 | # Also quote any args containing shell meta-characters. | |
1981 | # Make two passes to allow for proper duplicate-argument suppression. | |
1982 | ac_configure_args= | |
1983 | ac_configure_args0= | |
1984 | ac_configure_args1= | |
c6b750e1 DJ |
1985 | ac_must_keep_next=false |
1986 | for ac_pass in 1 2 | |
1987 | do | |
1988 | for ac_arg | |
1989 | do | |
1990 | case $ac_arg in | |
1991 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1993 | | -silent | --silent | --silen | --sile | --sil) | |
1994 | continue ;; | |
81ecdfbb RW |
1995 | *\'*) |
1996 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1997 | esac |
1998 | case $ac_pass in | |
81ecdfbb | 1999 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2000 | 2) |
81ecdfbb | 2001 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2002 | if test $ac_must_keep_next = true; then |
2003 | ac_must_keep_next=false # Got value, back to normal. | |
2004 | else | |
2005 | case $ac_arg in | |
2006 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2007 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2008 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2009 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2010 | case "$ac_configure_args0 " in | |
2011 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2012 | esac | |
2013 | ;; | |
2014 | -* ) ac_must_keep_next=true ;; | |
2015 | esac | |
2016 | fi | |
81ecdfbb | 2017 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2018 | ;; |
2019 | esac | |
2020 | done | |
2021 | done | |
81ecdfbb RW |
2022 | { ac_configure_args0=; unset ac_configure_args0;} |
2023 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2024 | |
2025 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2026 | # config.log. We remove comments because anyway the quotes in there | |
2027 | # would cause problems or look ugly. | |
81ecdfbb RW |
2028 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2029 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2030 | trap 'exit_status=$? |
2031 | # Save into config.log some information that might help in debugging. | |
2032 | { | |
2033 | echo | |
2034 | ||
d0ac1c44 | 2035 | $as_echo "## ---------------- ## |
c6b750e1 | 2036 | ## Cache variables. ## |
d0ac1c44 | 2037 | ## ---------------- ##" |
c6b750e1 DJ |
2038 | echo |
2039 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2040 | ( |
2041 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2042 | eval ac_val=\$$ac_var | |
2043 | case $ac_val in #( | |
2044 | *${as_nl}*) | |
2045 | case $ac_var in #( | |
2046 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2047 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2048 | esac | |
2049 | case $ac_var in #( | |
2050 | _ | IFS | as_nl) ;; #( | |
2051 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2052 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2053 | esac ;; | |
2054 | esac | |
2055 | done | |
c6b750e1 | 2056 | (set) 2>&1 | |
81ecdfbb RW |
2057 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2058 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2059 | sed -n \ |
81ecdfbb RW |
2060 | "s/'\''/'\''\\\\'\'''\''/g; |
2061 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2062 | ;; #( | |
c6b750e1 | 2063 | *) |
81ecdfbb | 2064 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2065 | ;; |
81ecdfbb RW |
2066 | esac | |
2067 | sort | |
2068 | ) | |
c6b750e1 DJ |
2069 | echo |
2070 | ||
d0ac1c44 | 2071 | $as_echo "## ----------------- ## |
c6b750e1 | 2072 | ## Output variables. ## |
d0ac1c44 | 2073 | ## ----------------- ##" |
c6b750e1 DJ |
2074 | echo |
2075 | for ac_var in $ac_subst_vars | |
2076 | do | |
81ecdfbb RW |
2077 | eval ac_val=\$$ac_var |
2078 | case $ac_val in | |
2079 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2080 | esac | |
2081 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2082 | done | sort |
2083 | echo | |
2084 | ||
2085 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2086 | $as_echo "## ------------------- ## |
81ecdfbb | 2087 | ## File substitutions. ## |
d0ac1c44 | 2088 | ## ------------------- ##" |
c6b750e1 DJ |
2089 | echo |
2090 | for ac_var in $ac_subst_files | |
2091 | do | |
81ecdfbb RW |
2092 | eval ac_val=\$$ac_var |
2093 | case $ac_val in | |
2094 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2095 | esac | |
2096 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2097 | done | sort |
2098 | echo | |
2099 | fi | |
2100 | ||
2101 | if test -s confdefs.h; then | |
d0ac1c44 | 2102 | $as_echo "## ----------- ## |
c6b750e1 | 2103 | ## confdefs.h. ## |
d0ac1c44 | 2104 | ## ----------- ##" |
c6b750e1 | 2105 | echo |
81ecdfbb | 2106 | cat confdefs.h |
c6b750e1 DJ |
2107 | echo |
2108 | fi | |
2109 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2110 | $as_echo "$as_me: caught signal $ac_signal" |
2111 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2112 | } >&5 |
81ecdfbb RW |
2113 | rm -f core *.core core.conftest.* && |
2114 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2115 | exit $exit_status |
81ecdfbb | 2116 | ' 0 |
c6b750e1 | 2117 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2118 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2119 | done |
2120 | ac_signal=0 | |
2121 | ||
2122 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2123 | rm -f -r conftest* confdefs.h |
2124 | ||
2125 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2126 | |
2127 | # Predefined preprocessor variables. | |
2128 | ||
2129 | cat >>confdefs.h <<_ACEOF | |
2130 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2131 | _ACEOF | |
2132 | ||
c6b750e1 DJ |
2133 | cat >>confdefs.h <<_ACEOF |
2134 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2135 | _ACEOF | |
2136 | ||
c6b750e1 DJ |
2137 | cat >>confdefs.h <<_ACEOF |
2138 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2139 | _ACEOF | |
2140 | ||
c6b750e1 DJ |
2141 | cat >>confdefs.h <<_ACEOF |
2142 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2143 | _ACEOF | |
2144 | ||
c6b750e1 DJ |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2147 | _ACEOF | |
2148 | ||
81ecdfbb RW |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_URL "$PACKAGE_URL" | |
2151 | _ACEOF | |
2152 | ||
c6b750e1 DJ |
2153 | |
2154 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2155 | # Prefer an explicitly selected file to automatically selected ones. |
2156 | ac_site_file1=NONE | |
2157 | ac_site_file2=NONE | |
2158 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2159 | # We do not want a PATH search for config.site. |
2160 | case $CONFIG_SITE in #(( | |
2161 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2162 | */*) ac_site_file1=$CONFIG_SITE;; | |
2163 | *) ac_site_file1=./$CONFIG_SITE;; | |
2164 | esac | |
81ecdfbb RW |
2165 | elif test "x$prefix" != xNONE; then |
2166 | ac_site_file1=$prefix/share/config.site | |
2167 | ac_site_file2=$prefix/etc/config.site | |
2168 | else | |
2169 | ac_site_file1=$ac_default_prefix/share/config.site | |
2170 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2171 | fi |
81ecdfbb RW |
2172 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2173 | do | |
2174 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2175 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2177 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2178 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2179 | . "$ac_site_file" \ |
2180 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2182 | as_fn_error $? "failed to load site script $ac_site_file | |
2183 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2184 | fi |
2185 | done | |
2186 | ||
2187 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2188 | # Some versions of bash will fail to source /dev/null (special files |
2189 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2190 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2192 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2193 | case $cache_file in |
81ecdfbb RW |
2194 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2195 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2196 | esac |
2197 | fi | |
a0da8069 | 2198 | else |
81ecdfbb RW |
2199 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2200 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2201 | >$cache_file |
2202 | fi | |
2203 | ||
2204 | # Check that the precious variables saved in the cache have kept the same | |
2205 | # value. | |
2206 | ac_cache_corrupted=false | |
81ecdfbb | 2207 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2208 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2209 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2210 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2211 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2212 | case $ac_old_set,$ac_new_set in |
2213 | set,) | |
81ecdfbb RW |
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2215 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2216 | ac_cache_corrupted=: ;; |
2217 | ,set) | |
81ecdfbb RW |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2219 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2220 | ac_cache_corrupted=: ;; |
2221 | ,);; | |
2222 | *) | |
2223 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2224 | # differences in whitespace do not lead to failure. |
2225 | ac_old_val_w=`echo x $ac_old_val` | |
2226 | ac_new_val_w=`echo x $ac_new_val` | |
2227 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2229 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2230 | ac_cache_corrupted=: | |
2231 | else | |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2233 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2234 | eval $ac_var=\$ac_old_val | |
2235 | fi | |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2237 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2239 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2240 | fi;; |
2241 | esac | |
2242 | # Pass precious variables to config.status. | |
2243 | if test "$ac_new_set" = set; then | |
2244 | case $ac_new_val in | |
81ecdfbb | 2245 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2246 | *) ac_arg=$ac_var=$ac_new_val ;; |
2247 | esac | |
2248 | case " $ac_configure_args " in | |
2249 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2250 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2251 | esac |
2252 | fi | |
2253 | done | |
2254 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2256 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2258 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2259 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2260 | fi |
81ecdfbb RW |
2261 | ## -------------------- ## |
2262 | ## Main body of script. ## | |
2263 | ## -------------------- ## | |
a0da8069 NN |
2264 | |
2265 | ac_ext=c | |
a0da8069 | 2266 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2270 | ||
2271 | ||
2272 | ||
2273 | ||
c6b750e1 DJ |
2274 | |
2275 | ||
34a0f3cf | 2276 | |
c6b750e1 | 2277 | |
5b553f7e RW |
2278 | progname=$0 |
2279 | # if PWD already has a value, it is probably wrong. | |
2280 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2281 | ||
2282 | # Export original configure arguments for use by sub-configures. | |
2283 | # Quote arguments with shell meta charatcers. | |
2284 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2285 | set -- "$progname" "$@" | |
2286 | for ac_arg | |
2287 | do | |
2288 | case "$ac_arg" in | |
2289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2290 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2291 | # if the argument is of the form -foo=baz, quote the baz part only | |
2292 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2293 | *) ;; | |
2294 | esac | |
2295 | # Add the quoted argument to the list. | |
2296 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2297 | done | |
2298 | if test "$silent" = yes; then | |
2299 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2300 | fi | |
2301 | # Remove the initial space we just introduced and, as these will be | |
2302 | # expanded by make, quote '$'. | |
2303 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2304 | ||
c6b750e1 DJ |
2305 | |
2306 | # Find the build, host, and target systems. | |
a0da8069 | 2307 | ac_aux_dir= |
81ecdfbb | 2308 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2309 | if test -f "$ac_dir/install-sh"; then |
2310 | ac_aux_dir=$ac_dir | |
2311 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2312 | break | |
2313 | elif test -f "$ac_dir/install.sh"; then | |
2314 | ac_aux_dir=$ac_dir | |
2315 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2316 | break | |
2317 | elif test -f "$ac_dir/shtool"; then | |
2318 | ac_aux_dir=$ac_dir | |
2319 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2320 | break | |
2321 | fi | |
a0da8069 NN |
2322 | done |
2323 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2324 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2325 | fi |
81ecdfbb RW |
2326 | |
2327 | # These three variables are undocumented and unsupported, | |
2328 | # and are intended to be withdrawn in a future Autoconf release. | |
2329 | # They can cause serious problems if a builder's source tree is in a directory | |
2330 | # whose full name contains unusual characters. | |
2331 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2332 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2333 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2334 | ||
a0da8069 | 2335 | |
c6b750e1 | 2336 | # Make sure we can run config.sub. |
81ecdfbb | 2337 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2338 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2339 | |
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2341 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2342 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2343 | $as_echo_n "(cached) " >&6 |
2344 | else | |
2345 | ac_build_alias=$build_alias | |
2346 | test "x$ac_build_alias" = x && | |
2347 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2348 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2349 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2350 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2351 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2352 | |
2353 | fi | |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2355 | $as_echo "$ac_cv_build" >&6; } | |
2356 | case $ac_cv_build in | |
2357 | *-*-*) ;; | |
d0ac1c44 | 2358 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2359 | esac |
c6b750e1 | 2360 | build=$ac_cv_build |
81ecdfbb RW |
2361 | ac_save_IFS=$IFS; IFS='-' |
2362 | set x $ac_cv_build | |
2363 | shift | |
2364 | build_cpu=$1 | |
2365 | build_vendor=$2 | |
2366 | shift; shift | |
2367 | # Remember, the first character of IFS is used to create $*, | |
2368 | # except with old shells: | |
2369 | build_os=$* | |
2370 | IFS=$ac_save_IFS | |
2371 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2372 | |
a0da8069 | 2373 | |
c6b750e1 DJ |
2374 | case ${build_alias} in |
2375 | "") build_noncanonical=${build} ;; | |
2376 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2377 | esac |
2378 | ||
2379 | ||
cac3d6c4 | 2380 | |
c6b750e1 DJ |
2381 | case ${host_alias} in |
2382 | "") host_noncanonical=${build_noncanonical} ;; | |
2383 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2384 | esac |
2385 | ||
cac3d6c4 | 2386 | |
c6b750e1 DJ |
2387 | |
2388 | case ${target_alias} in | |
2389 | "") target_noncanonical=${host_noncanonical} ;; | |
2390 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2391 | esac |
2392 | ||
cac3d6c4 | 2393 | |
c6b750e1 DJ |
2394 | |
2395 | ||
2396 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2397 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2398 | NONENONEs,x,x, && | |
c6b750e1 | 2399 | program_transform_name=s,y,y, |
cac3d6c4 | 2400 | |
81ecdfbb RW |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2402 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2403 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2404 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2405 | else |
81ecdfbb RW |
2406 | if test "x$host_alias" = x; then |
2407 | ac_cv_host=$ac_cv_build | |
2408 | else | |
2409 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2410 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2411 | fi |
c6b750e1 DJ |
2412 | |
2413 | fi | |
81ecdfbb RW |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2415 | $as_echo "$ac_cv_host" >&6; } | |
2416 | case $ac_cv_host in | |
2417 | *-*-*) ;; | |
d0ac1c44 | 2418 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2419 | esac |
c6b750e1 | 2420 | host=$ac_cv_host |
81ecdfbb RW |
2421 | ac_save_IFS=$IFS; IFS='-' |
2422 | set x $ac_cv_host | |
2423 | shift | |
2424 | host_cpu=$1 | |
2425 | host_vendor=$2 | |
2426 | shift; shift | |
2427 | # Remember, the first character of IFS is used to create $*, | |
2428 | # except with old shells: | |
2429 | host_os=$* | |
2430 | IFS=$ac_save_IFS | |
2431 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2432 | |
2433 | ||
81ecdfbb RW |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2435 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2436 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2437 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2438 | else |
81ecdfbb RW |
2439 | if test "x$target_alias" = x; then |
2440 | ac_cv_target=$ac_cv_host | |
2441 | else | |
2442 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2443 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2444 | fi |
c6b750e1 | 2445 | |
cac3d6c4 | 2446 | fi |
81ecdfbb RW |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2448 | $as_echo "$ac_cv_target" >&6; } | |
2449 | case $ac_cv_target in | |
2450 | *-*-*) ;; | |
d0ac1c44 | 2451 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2452 | esac |
c6b750e1 | 2453 | target=$ac_cv_target |
81ecdfbb RW |
2454 | ac_save_IFS=$IFS; IFS='-' |
2455 | set x $ac_cv_target | |
2456 | shift | |
2457 | target_cpu=$1 | |
2458 | target_vendor=$2 | |
2459 | shift; shift | |
2460 | # Remember, the first character of IFS is used to create $*, | |
2461 | # except with old shells: | |
2462 | target_os=$* | |
2463 | IFS=$ac_save_IFS | |
2464 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2465 | |
2466 | ||
2467 | # The aliases save the names the user supplied, while $host etc. | |
2468 | # will get canonicalized. | |
2469 | test -n "$target_alias" && | |
2470 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2471 | NONENONEs,x,x, && | |
2472 | program_prefix=${target_alias}- | |
81ecdfbb | 2473 | |
a0da8069 | 2474 | test "$program_prefix" != NONE && |
81ecdfbb | 2475 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2476 | # Use a double $ so make ignores it. |
2477 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2478 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2479 | # Double any \ or $. | |
c6b750e1 | 2480 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2481 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2482 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2483 | |
a0da8069 NN |
2484 | |
2485 | ||
e5c3f801 NN |
2486 | # Get 'install' or 'install-sh' and its variants. |
2487 | # Find a good install program. We prefer a C program (faster), | |
2488 | # so one script is as good as another. But avoid the broken or | |
2489 | # incompatible versions: | |
2490 | # SysV /etc/install, /usr/sbin/install | |
2491 | # SunOS /usr/etc/install | |
2492 | # IRIX /sbin/install | |
2493 | # AIX /bin/install | |
c6b750e1 | 2494 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2495 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2496 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2497 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2498 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2499 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2500 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2502 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2503 | if test -z "$INSTALL"; then |
d0ac1c44 | 2504 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2505 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2506 | else |
2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2508 | for as_dir in $PATH | |
2509 | do | |
2510 | IFS=$as_save_IFS | |
2511 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2512 | # Account for people who put trailing slashes in PATH elements. |
2513 | case $as_dir/ in #(( | |
2514 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2515 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2516 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2517 | /usr/ucb/* ) ;; |
2518 | *) | |
2519 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2520 | # Don't use installbsd from OSF since it installs stuff as root | |
2521 | # by default. | |
2522 | for ac_prog in ginstall scoinst install; do | |
2523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2524 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2525 | if test $ac_prog = install && |
c6b750e1 | 2526 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2527 | # AIX install. It has an incompatible calling convention. |
2528 | : | |
c6b750e1 DJ |
2529 | elif test $ac_prog = install && |
2530 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2531 | # program-specific install script used by HP pwplus--don't use. | |
2532 | : | |
e5c3f801 | 2533 | else |
58c85be7 RW |
2534 | rm -rf conftest.one conftest.two conftest.dir |
2535 | echo one > conftest.one | |
2536 | echo two > conftest.two | |
2537 | mkdir conftest.dir | |
2538 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2539 | test -s conftest.one && test -s conftest.two && | |
2540 | test -s conftest.dir/conftest.one && | |
2541 | test -s conftest.dir/conftest.two | |
2542 | then | |
2543 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2544 | break 3 | |
2545 | fi | |
e5c3f801 NN |
2546 | fi |
2547 | fi | |
2548 | done | |
c6b750e1 DJ |
2549 | done |
2550 | ;; | |
2551 | esac | |
81ecdfbb RW |
2552 | |
2553 | done | |
2554 | IFS=$as_save_IFS | |
c6b750e1 | 2555 | |
58c85be7 | 2556 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2557 | |
2558 | fi | |
2559 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2560 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2561 | else |
58c85be7 RW |
2562 | # As a last resort, use the slow shell script. Don't cache a |
2563 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2564 | # break other packages using the cache if that directory is |
58c85be7 | 2565 | # removed, or if the value is a relative name. |
c6b750e1 | 2566 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2567 | fi |
2568 | fi | |
81ecdfbb RW |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2570 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2571 | |
2572 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2573 | # It thinks the first close brace ends the variable substitution. | |
2574 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2575 | ||
c6b750e1 | 2576 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2577 | |
2578 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2579 | ||
81ecdfbb RW |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2581 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2582 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2583 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2584 | else |
2585 | rm -f conftestdata_t | |
2586 | echo >conftestdata_f | |
2587 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2588 | then | |
2589 | acx_cv_prog_LN=ln | |
2590 | else | |
2591 | acx_cv_prog_LN=no | |
2592 | fi | |
2593 | rm -f conftestdata_f conftestdata_t | |
2594 | ||
2595 | fi | |
2596 | if test $acx_cv_prog_LN = no; then | |
2597 | LN="cp" | |
81ecdfbb RW |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2599 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2600 | else |
2601 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2603 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2604 | fi |
2605 | ||
81ecdfbb RW |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2607 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2608 | LN_S=$as_ln_s |
2609 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2611 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2612 | else |
81ecdfbb RW |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2614 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2615 | fi |
2616 | ||
8e957354 PB |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2618 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2619 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2620 | $as_echo_n "(cached) " >&6 |
2621 | else | |
2622 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2623 | for ac_i in 1 2 3 4 5 6 7; do | |
2624 | ac_script="$ac_script$as_nl$ac_script" | |
2625 | done | |
2626 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2627 | { ac_script=; unset ac_script;} | |
2628 | if test -z "$SED"; then | |
2629 | ac_path_SED_found=false | |
2630 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2632 | for as_dir in $PATH | |
2633 | do | |
2634 | IFS=$as_save_IFS | |
2635 | test -z "$as_dir" && as_dir=. | |
2636 | for ac_prog in sed gsed; do | |
2637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2638 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2639 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2640 | # Check for GNU ac_path_SED and select it if it is found. |
2641 | # Check for GNU $ac_path_SED | |
2642 | case `"$ac_path_SED" --version 2>&1` in | |
2643 | *GNU*) | |
2644 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2645 | *) | |
2646 | ac_count=0 | |
2647 | $as_echo_n 0123456789 >"conftest.in" | |
2648 | while : | |
2649 | do | |
2650 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2651 | mv "conftest.tmp" "conftest.in" | |
2652 | cp "conftest.in" "conftest.nl" | |
2653 | $as_echo '' >> "conftest.nl" | |
2654 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2655 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2656 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2657 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2658 | # Best one so far, save it but keep looking for a better one | |
2659 | ac_cv_path_SED="$ac_path_SED" | |
2660 | ac_path_SED_max=$ac_count | |
2661 | fi | |
2662 | # 10*(2^10) chars as input seems more than enough | |
2663 | test $ac_count -gt 10 && break | |
2664 | done | |
2665 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2666 | esac | |
2667 | ||
2668 | $ac_path_SED_found && break 3 | |
2669 | done | |
2670 | done | |
2671 | done | |
2672 | IFS=$as_save_IFS | |
2673 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2674 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2675 | fi |
2676 | else | |
2677 | ac_cv_path_SED=$SED | |
2678 | fi | |
2679 | ||
2680 | fi | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2682 | $as_echo "$ac_cv_path_SED" >&6; } | |
2683 | SED="$ac_cv_path_SED" | |
2684 | rm -f conftest.sed | |
2685 | ||
2686 | for ac_prog in gawk mawk nawk awk | |
2687 | do | |
2688 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2689 | set dummy $ac_prog; ac_word=$2 | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2691 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2692 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2693 | $as_echo_n "(cached) " >&6 |
2694 | else | |
2695 | if test -n "$AWK"; then | |
2696 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2697 | else | |
2698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2699 | for as_dir in $PATH | |
2700 | do | |
2701 | IFS=$as_save_IFS | |
2702 | test -z "$as_dir" && as_dir=. | |
2703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2705 | ac_cv_prog_AWK="$ac_prog" |
2706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2707 | break 2 | |
2708 | fi | |
2709 | done | |
2710 | done | |
2711 | IFS=$as_save_IFS | |
2712 | ||
2713 | fi | |
2714 | fi | |
2715 | AWK=$ac_cv_prog_AWK | |
2716 | if test -n "$AWK"; then | |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2718 | $as_echo "$AWK" >&6; } | |
2719 | else | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2721 | $as_echo "no" >&6; } | |
2722 | fi | |
2723 | ||
2724 | ||
2725 | test -n "$AWK" && break | |
2726 | done | |
2727 | ||
e5c3f801 | 2728 | |
0fdbe983 DJ |
2729 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2730 | ||
2731 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2732 | # a relative path. | |
2733 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2734 | INSTALL="${srcpwd}/install-sh -c" | |
2735 | fi | |
2736 | ||
a0da8069 NN |
2737 | # Set srcdir to "." if that's what it is. |
2738 | # This is important for multilib support. | |
2739 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2740 | if test "${pwd}" = "${srcpwd}" ; then |
2741 | srcdir=. | |
252b5132 RH |
2742 | fi |
2743 | ||
a0da8069 | 2744 | topsrcdir=$srcpwd |
252b5132 | 2745 | |
a0da8069 | 2746 | extra_host_args= |
afefada0 | 2747 | |
a0da8069 NN |
2748 | ### To add a new directory to the tree, first choose whether it is a target |
2749 | ### or a host dependent tool. Then put it into the appropriate list | |
2750 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2751 | |
c6b750e1 | 2752 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2753 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2754 | |
c6b750e1 DJ |
2755 | # Dependency sorting is only needed when *configuration* must be done in |
2756 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2757 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2758 | |
a0da8069 NN |
2759 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2760 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2761 | |
6a9cf61e PB |
2762 | # these library is used by various programs built for the build |
2763 | # environment | |
2764 | # | |
1b6c0831 | 2765 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2766 | |
2767 | # these tools are built for the build environment | |
a90ef4bf | 2768 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2769 | |
a0da8069 | 2770 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2771 | #f |
0e65dfba | 2772 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
a0da8069 | 2773 | |
a0da8069 NN |
2774 | # these tools are built for the host environment |
2775 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2776 | # know that we are building the simulator. | |
2777 | # binutils, gas and ld appear in that order because it makes sense to run | |
2778 | # "make check" in that particular order. | |
e6de499b | 2779 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2780 | 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" |
a0da8069 | 2781 | |
a0da8069 NN |
2782 | # these libraries are built for the target environment, and are built after |
2783 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2784 | # Note that libiberty is not a target library. |
b1299c4e | 2785 | target_libraries="target-libgcc \ |
2bf680c4 | 2786 | target-libbacktrace \ |
a0da8069 NN |
2787 | target-libgloss \ |
2788 | target-newlib \ | |
cff87f51 | 2789 | target-libgomp \ |
1b6c0831 | 2790 | target-liboffloadmic \ |
bf41f30d | 2791 | target-libhsail-rt \ |
7ec59b9e | 2792 | target-libatomic \ |
d32e2926 | 2793 | target-libitm \ |
b9459e83 | 2794 | target-libstdc++-v3 \ |
5286fdef | 2795 | target-libsanitizer \ |
95e43135 | 2796 | target-libvtv \ |
bb780410 | 2797 | target-libssp \ |
e552509b | 2798 | target-libquadmath \ |
4b1cb4fe | 2799 | target-libgfortran \ |
05a13254 | 2800 | target-libffi \ |
a2592b1b | 2801 | target-libobjc \ |
e552509b | 2802 | target-libada \ |
e3f56a99 | 2803 | target-libgo" |
a0da8069 | 2804 | |
9c14acb8 NN |
2805 | # these tools are built using the target libraries, and are intended to |
2806 | # run only in the target environment | |
a0da8069 | 2807 | # |
9c14acb8 | 2808 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2809 | # list belongs in this list. |
a0da8069 | 2810 | # |
a90ef4bf | 2811 | target_tools="target-rda" |
252b5132 | 2812 | |
a0da8069 | 2813 | ################################################################################ |
252b5132 | 2814 | |
a0da8069 NN |
2815 | ## All tools belong in one of the four categories, and are assigned above |
2816 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2817 | ## is important because configure will choke if they ever get through. | |
2818 | ## ${configdirs} is directories we build using the host tools. | |
2819 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2820 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2821 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2822 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2823 | |
9cc8ae67 PB |
2824 | |
2825 | ||
a0da8069 | 2826 | ################################################################################ |
252b5132 | 2827 | |
a0da8069 | 2828 | srcname="gnu development package" |
252b5132 | 2829 | |
a0da8069 NN |
2830 | # This gets set non-empty for some net releases of packages. |
2831 | appdirs="" | |
252b5132 | 2832 | |
a0da8069 NN |
2833 | # Define is_cross_compiler to save on calls to 'test'. |
2834 | is_cross_compiler= | |
2835 | if test x"${host}" = x"${target}" ; then | |
2836 | is_cross_compiler=no | |
252b5132 | 2837 | else |
a0da8069 | 2838 | is_cross_compiler=yes |
c6b750e1 | 2839 | fi |
252b5132 | 2840 | |
9175bfc0 | 2841 | # Find the build and target subdir names. |
dd12c3a8 | 2842 | |
66a79c16 DJ |
2843 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2844 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2845 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2846 | # However, they still use the build modules, because the corresponding | |
2847 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2848 | # finishes. So: | |
2849 | # - build_subdir is where we find build modules, and never changes. | |
2850 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2851 | ||
2852 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2853 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2854 | |
81ecdfbb RW |
2855 | # Check whether --with-build-libsubdir was given. |
2856 | if test "${with_build_libsubdir+set}" = set; then : | |
2857 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2858 | else |
2859 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2860 | fi |
2861 | ||
b00612cc PB |
2862 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2863 | if ( test $srcdir = . && test -d gcc ) \ | |
2864 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2865 | host_subdir="host-${host_noncanonical}" | |
2866 | else | |
2867 | host_subdir=. | |
2868 | fi | |
dd12c3a8 NN |
2869 | # No prefix. |
2870 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2871 | |
2fd0b40b RW |
2872 | # Be sure to cover against remnants of an in-tree build. |
2873 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2874 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2875 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2876 | fi | |
252b5132 | 2877 | |
a0da8069 NN |
2878 | # Skipdirs are removed silently. |
2879 | skipdirs= | |
2880 | # Noconfigdirs are removed loudly. | |
2881 | noconfigdirs="" | |
252b5132 | 2882 | |
a0da8069 NN |
2883 | use_gnu_ld= |
2884 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2885 | if test x$with_gnu_ld = xno ; then | |
2886 | use_gnu_ld=no | |
93f9b408 | 2887 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2888 | fi |
2889 | ||
a0da8069 NN |
2890 | use_gnu_as= |
2891 | # Make sure we don't let GNU as be added if we didn't want it. | |
2892 | if test x$with_gnu_as = xno ; then | |
2893 | use_gnu_as=no | |
2894 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2895 | fi |
2896 | ||
700d40ca | 2897 | use_included_zlib= |
cf39cfc5 L |
2898 | |
2899 | # Check whether --with-system-zlib was given. | |
2900 | if test "${with_system_zlib+set}" = set; then : | |
2901 | withval=$with_system_zlib; | |
2902 | fi | |
2903 | ||
700d40ca ILT |
2904 | # Make sure we don't let ZLIB be added if we didn't want it. |
2905 | if test x$with_system_zlib = xyes ; then | |
2906 | use_included_zlib=no | |
2907 | noconfigdirs="$noconfigdirs zlib" | |
2908 | fi | |
2909 | ||
69961a84 ДП |
2910 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2911 | # is provided. | |
2912 | if test x$with_system_readline = xyes ; then | |
2913 | noconfigdirs="$noconfigdirs readline" | |
2914 | fi | |
2915 | ||
c6b750e1 | 2916 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2917 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2918 | |
a0da8069 NN |
2919 | case ${with_x} in |
2920 | yes | "") ;; # the default value for this tree is that X11 is available | |
2921 | no) | |
675c6968 | 2922 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2923 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2924 | enable_gdbtk=no |
a0da8069 NN |
2925 | ;; |
2926 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2927 | esac | |
252b5132 | 2928 | |
0377a422 | 2929 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2930 | # Remove these if host=target. |
2931 | cross_only="target-libgloss target-newlib target-opcodes" | |
2932 | ||
2933 | case $is_cross_compiler in | |
2934 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2935 | esac |
252b5132 | 2936 | |
a0da8069 NN |
2937 | # If both --with-headers and --with-libs are specified, default to |
2938 | # --without-newlib. | |
32be62b5 RS |
2939 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2940 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2941 | if test x"${with_newlib}" = x ; then |
2942 | with_newlib=no | |
2943 | fi | |
252b5132 RH |
2944 | fi |
2945 | ||
a0da8069 NN |
2946 | # Recognize --with-newlib/--without-newlib. |
2947 | case ${with_newlib} in | |
2948 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2949 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2950 | esac | |
252b5132 | 2951 | |
1b6c0831 L |
2952 | # Check whether --enable-as-accelerator-for was given. |
2953 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2954 | enableval=$enable_as_accelerator_for; | |
2955 | fi | |
2956 | ||
2957 | ||
2958 | # Check whether --enable-offload-targets was given. | |
2959 | if test "${enable_offload_targets+set}" = set; then : | |
2960 | enableval=$enable_offload_targets; | |
2961 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 2962 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
2963 | fi |
2964 | ||
2965 | else | |
2966 | enable_offload_targets= | |
2967 | fi | |
2968 | ||
2969 | ||
c7791212 NC |
2970 | # Handle --enable-gold, --enable-ld. |
2971 | # --disable-gold [--enable-ld] | |
2972 | # Build only ld. Default option. | |
d3b50760 L |
2973 | # --enable-gold [--enable-ld] |
2974 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2975 | # as "ld.bfd" and "ld". | |
2976 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2977 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2978 | # install ld as "ld.bfd". | |
2979 | # --enable-gold[=default] --disable-ld | |
2980 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2981 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2982 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2983 | # and ld.bfd). | |
c7791212 NC |
2984 | # In other words, ld is default |
2985 | # --enable-gold=default --enable-ld=default | |
2986 | # Error. | |
2987 | ||
2988 | default_ld= | |
81ecdfbb RW |
2989 | # Check whether --enable-gold was given. |
2990 | if test "${enable_gold+set}" = set; then : | |
2991 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2992 | else |
2993 | ENABLE_GOLD=no | |
81ecdfbb RW |
2994 | fi |
2995 | ||
c7791212 NC |
2996 | case "${ENABLE_GOLD}" in |
2997 | yes|default) | |
e6de499b NC |
2998 | # Check for ELF target. |
2999 | is_elf=no | |
3000 | case "${target}" in | |
3001 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3002 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3003 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 3004 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3005 | case "${target}" in |
3006 | *-*-linux*aout* | *-*-linux*oldld*) | |
3007 | ;; | |
3008 | *) | |
3009 | is_elf=yes | |
3010 | ;; | |
3011 | esac | |
3012 | esac | |
3013 | ||
3014 | if test "$is_elf" = "yes"; then | |
3015 | # Check for target supported by gold. | |
93f9b408 | 3016 | case "${target}" in |
6d26190c | 3017 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3018 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3019 | configdirs="$configdirs gold" |
3020 | if test x${ENABLE_GOLD} = xdefault; then | |
3021 | default_ld=gold | |
3022 | fi | |
e6de499b | 3023 | ENABLE_GOLD=yes |
93f9b408 ILT |
3024 | ;; |
3025 | esac | |
e6de499b NC |
3026 | fi |
3027 | ;; | |
3028 | no) | |
3029 | ;; | |
3030 | *) | |
d0ac1c44 | 3031 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3032 | ;; |
c7791212 NC |
3033 | esac |
3034 | ||
3035 | # Check whether --enable-ld was given. | |
3036 | if test "${enable_ld+set}" = set; then : | |
3037 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3038 | else | |
3039 | ENABLE_LD=yes | |
3040 | fi | |
3041 | ||
3042 | ||
3043 | case "${ENABLE_LD}" in | |
3044 | default) | |
d3b50760 | 3045 | if test x${default_ld} != x; then |
d0ac1c44 | 3046 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3047 | fi |
3048 | ;; | |
3049 | yes) | |
3050 | ;; | |
3051 | no) | |
3052 | if test x${ENABLE_GOLD} != xyes; then | |
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3054 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3055 | fi | |
3056 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3057 | ;; | |
3058 | *) | |
d0ac1c44 | 3059 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3060 | ;; |
3061 | esac | |
93f9b408 | 3062 | |
edeefb67 L |
3063 | # PR gas/19109 |
3064 | # Decide the default method for compressing debug sections. | |
3065 | # Provide a configure time option to override our default. | |
3066 | # Check whether --enable-compressed_debug_sections was given. | |
3067 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3068 | enableval=$enable_compressed_debug_sections; | |
3069 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3070 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3071 | fi |
3072 | ||
3073 | else | |
3074 | enable_compressed_debug_sections= | |
3075 | fi | |
3076 | ||
3077 | ||
a0da8069 | 3078 | # Configure extra directories which are host specific |
252b5132 | 3079 | |
a0da8069 NN |
3080 | case "${host}" in |
3081 | *-cygwin*) | |
3082 | configdirs="$configdirs libtermcap" ;; | |
3083 | esac | |
252b5132 | 3084 | |
59f7ec45 HPN |
3085 | # A target can indicate whether a language isn't supported for some reason. |
3086 | # Only spaces may be used in this macro; not newlines or tabs. | |
3087 | unsupported_languages= | |
3088 | ||
c6b750e1 | 3089 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3090 | # target this usually means that a port of the program doesn't |
3091 | # exist yet. | |
252b5132 | 3092 | |
a0da8069 | 3093 | case "${host}" in |
3516a403 | 3094 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3095 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3096 | ;; |
a0da8069 | 3097 | esac |
252b5132 | 3098 | |
4b1cb4fe | 3099 | |
89a1e9c3 PB |
3100 | # Check whether --enable-libquadmath was given. |
3101 | if test "${enable_libquadmath+set}" = set; then : | |
3102 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3103 | else | |
3104 | ENABLE_LIBQUADMATH=yes | |
3105 | fi | |
3106 | ||
3107 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3108 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3109 | fi | |
3110 | ||
3111 | ||
3112 | # Check whether --enable-libquadmath-support was given. | |
3113 | if test "${enable_libquadmath_support+set}" = set; then : | |
3114 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3115 | else | |
3116 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3117 | fi | |
3118 | ||
3119 | enable_libquadmath_support= | |
3120 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3121 | enable_libquadmath_support=no | |
3122 | fi | |
3123 | ||
3124 | ||
81ecdfbb RW |
3125 | # Check whether --enable-libada was given. |
3126 | if test "${enable_libada+set}" = set; then : | |
3127 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3128 | else |
3129 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3130 | fi |
3131 | ||
a2592b1b | 3132 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3133 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3134 | fi |
3135 | ||
81ecdfbb RW |
3136 | # Check whether --enable-libssp was given. |
3137 | if test "${enable_libssp+set}" = set; then : | |
3138 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3139 | else |
3140 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3141 | fi |
3142 | ||
5f128533 | 3143 | |
f66a9a70 L |
3144 | # Check whether --enable-libstdcxx was given. |
3145 | if test "${enable_libstdcxx+set}" = set; then : | |
3146 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3147 | else | |
3148 | ENABLE_LIBSTDCXX=default | |
3149 | fi | |
3150 | ||
3151 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3152 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3153 | fi | |
3154 | ||
3155 | # If this is accelerator compiler and its target is intelmic we enable | |
3156 | # target liboffloadmic by default. If this is compiler with offloading | |
3157 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3158 | # liboffloadmic is disabled by default. | |
3159 | # Check whether --enable-liboffloadmic was given. | |
3160 | if test "${enable_liboffloadmic+set}" = set; then : | |
3161 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3162 | no | host | target) | |
3163 | enable_liboffloadmic=$enableval ;; | |
3164 | *) | |
d0ac1c44 | 3165 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3166 | esac |
3167 | else | |
3168 | if test x"$enable_as_accelerator_for" != x; then | |
3169 | case "${target}" in | |
3170 | *-intelmic-* | *-intelmicemul-*) | |
3171 | enable_liboffloadmic=target | |
3172 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3173 | ;; | |
3174 | *) | |
3175 | enable_liboffloadmic=no | |
3176 | ;; | |
3177 | esac | |
3178 | else | |
3179 | case "${enable_offload_targets}" in | |
3180 | *-intelmic-* | *-intelmicemul-*) | |
3181 | enable_liboffloadmic=host | |
3182 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3183 | ;; | |
3184 | *) | |
3185 | enable_liboffloadmic=no | |
3186 | ;; | |
3187 | esac | |
3188 | fi | |
f66a9a70 L |
3189 | fi |
3190 | ||
1b6c0831 L |
3191 | |
3192 | ||
68996839 | 3193 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3194 | if test x$enable_libgomp = x ; then |
b3ded179 | 3195 | case "${target}" in |
29383458 | 3196 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3197 | ;; |
5b806d27 | 3198 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3199 | ;; |
2479f722 | 3200 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3201 | ;; |
3202 | *-*-darwin* | *-*-aix*) | |
3203 | ;; | |
68996839 NC |
3204 | nvptx*-*-*) |
3205 | ;; | |
b3ded179 PB |
3206 | *) |
3207 | noconfigdirs="$noconfigdirs target-libgomp" | |
3208 | ;; | |
3209 | esac | |
a6df5a19 | 3210 | fi |
b3ded179 | 3211 | |
7ec59b9e L |
3212 | # Disable libatomic on unsupported systems. |
3213 | if test -d ${srcdir}/libatomic; then | |
3214 | if test x$enable_libatomic = x; then | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3216 | $as_echo_n "checking for libatomic support... " >&6; } | |
3217 | if (srcdir=${srcdir}/libatomic; \ | |
3218 | . ${srcdir}/configure.tgt; \ | |
3219 | test -n "$UNSUPPORTED") | |
3220 | then | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3222 | $as_echo "no" >&6; } | |
3223 | noconfigdirs="$noconfigdirs target-libatomic" | |
3224 | else | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3226 | $as_echo "yes" >&6; } | |
3227 | fi | |
3228 | fi | |
3229 | fi | |
3230 | ||
1b6c0831 L |
3231 | # Disable liboffloadmic on unsupported systems. |
3232 | if test -d ${srcdir}/liboffloadmic; then | |
3233 | if test x$enable_liboffloadmic != xno; then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3235 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3236 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3237 | . ${srcdir}/configure.tgt; \ | |
3238 | test -n "$UNSUPPORTED") | |
3239 | then | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3241 | $as_echo "no" >&6; } | |
3242 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3243 | else | |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3245 | $as_echo "yes" >&6; } | |
3246 | fi | |
3247 | fi | |
3248 | fi | |
3249 | ||
d32e2926 RH |
3250 | # Disable libitm on unsupported systems. |
3251 | if test -d ${srcdir}/libitm; then | |
3252 | if test x$enable_libitm = x; then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3254 | $as_echo_n "checking for libitm support... " >&6; } | |
3255 | if (srcdir=${srcdir}/libitm; \ | |
3256 | . ${srcdir}/configure.tgt; \ | |
3257 | test -n "$UNSUPPORTED") | |
3258 | then | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3260 | $as_echo "no" >&6; } | |
3261 | noconfigdirs="$noconfigdirs target-libitm" | |
3262 | else | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3264 | $as_echo "yes" >&6; } | |
3265 | fi | |
3266 | fi | |
3267 | fi | |
3268 | ||
5286fdef L |
3269 | # Disable libsanitizer on unsupported systems. |
3270 | if test -d ${srcdir}/libsanitizer; then | |
3271 | if test x$enable_libsanitizer = x; then | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3273 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3274 | if (srcdir=${srcdir}/libsanitizer; \ | |
3275 | . ${srcdir}/configure.tgt; \ | |
3276 | test -n "$UNSUPPORTED") | |
3277 | then | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3279 | $as_echo "no" >&6; } | |
3280 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3281 | else | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3283 | $as_echo "yes" >&6; } | |
3284 | fi | |
3285 | fi | |
3286 | fi | |
3287 | ||
95e43135 JBG |
3288 | # Disable libvtv on unsupported systems. |
3289 | if test -d ${srcdir}/libvtv; then | |
3290 | if test x$enable_libvtv = x; then | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3292 | $as_echo_n "checking for libvtv support... " >&6; } | |
3293 | if (srcdir=${srcdir}/libvtv; \ | |
3294 | . ${srcdir}/configure.tgt; \ | |
3295 | test "$VTV_SUPPORTED" != "yes") | |
3296 | then | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3298 | $as_echo "no" >&6; } | |
3299 | noconfigdirs="$noconfigdirs target-libvtv" | |
3300 | else | |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3302 | $as_echo "yes" >&6; } | |
3303 | fi | |
3304 | fi | |
3305 | fi | |
3306 | ||
1b6c0831 | 3307 | |
bf41f30d NC |
3308 | # Disable libhsail-rt on unsupported systems. |
3309 | if test -d ${srcdir}/libhsail-rt; then | |
3310 | if test x$enable_libhsail_rt = x; then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3312 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3313 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3314 | . ${srcdir}/configure.tgt; \ | |
3315 | test -n "$UNSUPPORTED") | |
3316 | then | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3318 | $as_echo "no" >&6; } | |
3319 | unsupported_languages="$unsupported_languages brig" | |
3320 | # This implicitly disables also target-libhsail-rt as it won't | |
3321 | # get added to the build without BRIG FE. | |
3322 | else | |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3324 | $as_echo "yes" >&6; } | |
3325 | fi | |
3326 | fi | |
3327 | fi | |
1b6c0831 L |
3328 | |
3329 | ||
1488e230 DE |
3330 | # Disable libquadmath for some systems. |
3331 | case "${target}" in | |
5286fdef L |
3332 | avr-*-*) |
3333 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3334 | ;; | |
1488e230 DE |
3335 | # libquadmath is unused on AIX and libquadmath build process use of |
3336 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3337 | powerpc-*-aix* | rs6000-*-aix*) | |
3338 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3339 | ;; | |
3340 | esac | |
3341 | ||
065a5627 JM |
3342 | # Disable libssp for some systems. |
3343 | case "${target}" in | |
3344 | avr-*-*) | |
c5f5c3c2 | 3345 | # No hosted I/O support. |
065a5627 JM |
3346 | noconfigdirs="$noconfigdirs target-libssp" |
3347 | ;; | |
3348 | powerpc-*-aix* | rs6000-*-aix*) | |
3349 | noconfigdirs="$noconfigdirs target-libssp" | |
3350 | ;; | |
99c513f6 | 3351 | rl78-*-*) |
202e2356 NC |
3352 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3353 | # doesn't fault for those - instead, it gives a build-time error | |
3354 | # for explicit misaligned loads. | |
99c513f6 DD |
3355 | noconfigdirs="$noconfigdirs target-libssp" |
3356 | ;; | |
1b6c0831 L |
3357 | visium-*-*) |
3358 | # No hosted I/O support. | |
3359 | noconfigdirs="$noconfigdirs target-libssp" | |
3360 | ;; | |
065a5627 JM |
3361 | esac |
3362 | ||
065a5627 | 3363 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3364 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3365 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3366 | case "${target}" in | |
3367 | *-*-vxworks*) | |
3368 | # VxWorks uses the Dinkumware C++ library. | |
3369 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3370 | ;; | |
3371 | arm*-wince-pe*) | |
3372 | # the C++ libraries don't build on top of CE's C libraries | |
3373 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3374 | ;; | |
3375 | avr-*-*) | |
3376 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3377 | ;; | |
969b1713 L |
3378 | ft32-*-*) |
3379 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3380 | ;; | |
f66a9a70 L |
3381 | esac |
3382 | fi | |
065a5627 JM |
3383 | |
3384 | # Disable Fortran for some systems. | |
3385 | case "${target}" in | |
3386 | mmix-*-*) | |
3387 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3388 | unsupported_languages="$unsupported_languages fortran" | |
3389 | ;; | |
3390 | esac | |
3391 | ||
05a13254 | 3392 | # Disable libffi for some systems. |
0827f9a6 | 3393 | case "${target}" in |
9863d716 JM |
3394 | powerpc-*-darwin*) |
3395 | ;; | |
3396 | i[3456789]86-*-darwin*) | |
3397 | ;; | |
3398 | x86_64-*-darwin[912]*) | |
3399 | ;; | |
3400 | *-*-darwin*) | |
05a13254 | 3401 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3402 | ;; |
9863d716 | 3403 | *-*-netware*) |
05a13254 NC |
3404 | noconfigdirs="$noconfigdirs target-libffi" |
3405 | ;; | |
3406 | *-*-phoenix*) | |
3407 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3408 | ;; |
3409 | *-*-rtems*) | |
05a13254 | 3410 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3411 | ;; |
3412 | *-*-tpf*) | |
05a13254 | 3413 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3414 | ;; |
3415 | *-*-uclinux*) | |
05a13254 | 3416 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3417 | ;; |
3418 | *-*-vxworks*) | |
05a13254 NC |
3419 | noconfigdirs="$noconfigdirs target-libffi" |
3420 | ;; | |
3421 | aarch64*-*-freebsd*) | |
3422 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3423 | ;; |
9863d716 | 3424 | alpha*-*-*vms*) |
05a13254 | 3425 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3426 | ;; |
1b6c0831 | 3427 | arm*-*-freebsd*) |
05a13254 | 3428 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3429 | ;; |
0827f9a6 | 3430 | arm-wince-pe) |
05a13254 | 3431 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3432 | ;; |
9863d716 | 3433 | arm*-*-symbianelf*) |
05a13254 | 3434 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3435 | ;; |
9863d716 | 3436 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3437 | case "${target}" in |
3438 | *-*-linux*) | |
3439 | ;; | |
3440 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3441 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3442 | esac |
3443 | ;; | |
82ae827f | 3444 | hppa*64*-*-hpux*) |
05a13254 | 3445 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3446 | ;; |
3447 | hppa*-hp-hpux11*) | |
3448 | ;; | |
82ae827f | 3449 | hppa*-*-hpux*) |
05a13254 | 3450 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3451 | ;; |
9863d716 | 3452 | ia64*-*-*vms*) |
05a13254 | 3453 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3454 | ;; |
9863d716 | 3455 | i[3456789]86-w64-mingw*) |
05a13254 | 3456 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3457 | ;; |
3458 | i[3456789]86-*-mingw*) | |
05a13254 | 3459 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3460 | ;; |
3461 | x86_64-*-mingw*) | |
05a13254 | 3462 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3463 | ;; |
9863d716 | 3464 | mmix-*-*) |
05a13254 | 3465 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3466 | ;; |
3467 | powerpc-*-aix*) | |
9863d716 | 3468 | ;; |
9863d716 | 3469 | rs6000-*-aix*) |
9863d716 | 3470 | ;; |
3f8107ab | 3471 | ft32-*-*) |
05a13254 | 3472 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3473 | ;; |
9863d716 | 3474 | *-*-lynxos*) |
05a13254 | 3475 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3476 | ;; |
9863d716 JM |
3477 | esac |
3478 | ||
1b6c0831 L |
3479 | # Disable the go frontend on systems where it is known to not work. Please keep |
3480 | # this in sync with contrib/config-list.mk. | |
3481 | case "${target}" in | |
bf41f30d | 3482 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3483 | unsupported_languages="$unsupported_languages go" |
3484 | ;; | |
3485 | esac | |
3486 | ||
a413f71a ILT |
3487 | # Disable libgo for some systems where it is known to not work. |
3488 | # For testing, you can easily override this with --enable-libgo. | |
3489 | if test x$enable_libgo = x; then | |
3490 | case "${target}" in | |
3491 | *-*-darwin*) | |
3492 | # PR 46986 | |
3493 | noconfigdirs="$noconfigdirs target-libgo" | |
3494 | ;; | |
3495 | *-*-cygwin* | *-*-mingw*) | |
3496 | noconfigdirs="$noconfigdirs target-libgo" | |
3497 | ;; | |
a413f71a ILT |
3498 | esac |
3499 | fi | |
3500 | ||
691bb5a1 DD |
3501 | # Default libgloss CPU subdirectory. |
3502 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3503 | |
ff46fb8f JM |
3504 | case "${target}" in |
3505 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3506 | libgloss_dir=wince | |
3507 | ;; | |
f1dd87fc YZ |
3508 | aarch64*-*-* ) |
3509 | libgloss_dir=aarch64 | |
3510 | ;; | |
ff46fb8f JM |
3511 | arm*-*-*) |
3512 | libgloss_dir=arm | |
3513 | ;; | |
3514 | cris-*-* | crisv32-*-*) | |
3515 | libgloss_dir=cris | |
3516 | ;; | |
3517 | hppa*-*-*) | |
3518 | libgloss_dir=pa | |
3519 | ;; | |
3520 | i[3456789]86-*-*) | |
3521 | libgloss_dir=i386 | |
3522 | ;; | |
3523 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3524 | libgloss_dir=m68hc11 | |
3525 | ;; | |
3526 | m68*-*-* | fido-*-*) | |
3527 | libgloss_dir=m68k | |
3528 | ;; | |
3529 | mips*-*-*) | |
3530 | libgloss_dir=mips | |
3531 | ;; | |
3532 | powerpc*-*-*) | |
3533 | libgloss_dir=rs6000 | |
3534 | ;; | |
3535 | sparc*-*-*) | |
3536 | libgloss_dir=sparc | |
3537 | ;; | |
3538 | esac | |
3539 | ||
c7e4b184 | 3540 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3541 | case "${target}" in |
c7e4b184 JM |
3542 | alpha*-dec-osf*) |
3543 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3544 | ;; | |
3545 | i[3456789]86-*-linux*) | |
3546 | # This section makes it possible to build newlib natively on linux. | |
3547 | # If we are using a cross compiler then don't configure newlib. | |
3548 | if test x${is_cross_compiler} != xno ; then | |
3549 | noconfigdirs="$noconfigdirs target-newlib" | |
3550 | fi | |
3551 | noconfigdirs="$noconfigdirs target-libgloss" | |
3552 | # If we are not using a cross compiler, do configure newlib. | |
3553 | # Note however, that newlib will only be configured in this situation | |
3554 | # if the --with-newlib option has been given, because otherwise | |
3555 | # 'target-newlib' will appear in skipdirs. | |
3556 | ;; | |
3557 | i[3456789]86-*-rdos*) | |
3558 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3559 | ;; | |
3560 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3561 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3562 | ;; | |
3563 | sparc-*-sunos4*) | |
3564 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3565 | ;; | |
3566 | *-*-aix*) | |
3567 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3568 | ;; | |
3569 | *-*-beos*) | |
3570 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3571 | ;; | |
a0da8069 | 3572 | *-*-chorusos) |
b2f14e4a | 3573 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3574 | ;; |
c7e4b184 JM |
3575 | *-*-dragonfly*) |
3576 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3577 | ;; | |
3578 | *-*-freebsd*) | |
3579 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3580 | ;; | |
3581 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3582 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3583 | ;; | |
3584 | *-*-lynxos*) | |
3585 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3586 | ;; | |
3587 | *-*-mingw*) | |
3588 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3589 | ;; | |
3590 | *-*-netbsd*) | |
3591 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3592 | ;; | |
3593 | *-*-netware*) | |
3594 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3595 | ;; | |
3596 | *-*-tpf*) | |
3597 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3598 | ;; | |
3599 | *-*-uclinux*) | |
3600 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3601 | ;; | |
3602 | *-*-vxworks*) | |
3603 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3604 | ;; | |
3605 | esac | |
3606 | ||
3607 | case "${target}" in | |
3608 | *-*-chorusos) | |
3609 | ;; | |
f075eb5e TG |
3610 | aarch64-*-darwin*) |
3611 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3612 | noconfigdirs="$noconfigdirs sim target-rda" | |
3613 | ;; | |
3614 | arm-*-darwin*) | |
3615 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3616 | noconfigdirs="$noconfigdirs sim target-rda" | |
3617 | ;; | |
24741ab2 | 3618 | powerpc-*-darwin*) |
9d39db92 | 3619 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3620 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3621 | ;; |
85bd1942 TG |
3622 | i[3456789]86-*-darwin*) |
3623 | noconfigdirs="$noconfigdirs ld gprof" | |
3624 | noconfigdirs="$noconfigdirs sim target-rda" | |
3625 | ;; | |
e8a5fa9c | 3626 | x86_64-*-darwin[912]*) |
652dec25 TG |
3627 | noconfigdirs="$noconfigdirs ld gas gprof" |
3628 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3629 | ;; |
04d1ab34 | 3630 | *-*-darwin*) |
d320aacb | 3631 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3632 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3633 | ;; |
5b806d27 | 3634 | *-*-dragonfly*) |
5b806d27 | 3635 | ;; |
de0b4a87 | 3636 | *-*-freebsd*) |
4b1cb4fe DD |
3637 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3638 | && test -f /usr/local/include/gmp.h; then | |
3639 | with_gmp=/usr/local | |
3640 | fi | |
4b1cb4fe | 3641 | ;; |
f8a495c8 NC |
3642 | *-*-kaos*) |
3643 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3644 | noconfigdirs="$noconfigdirs target-libgloss" |
3645 | ;; | |
a0da8069 | 3646 | *-*-netbsd*) |
a0da8069 | 3647 | ;; |
2a3124ca | 3648 | *-*-netware*) |
a0da8069 | 3649 | ;; |
05a13254 NC |
3650 | *-*-phoenix*) |
3651 | noconfigdirs="$noconfigdirs target-libgloss" | |
3652 | ;; | |
a0da8069 | 3653 | *-*-rtems*) |
9863d716 | 3654 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3655 | ;; |
1587117a EC |
3656 | # The tpf target doesn't support gdb yet. |
3657 | *-*-tpf*) | |
c7e4b184 | 3658 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3659 | ;; |
c1968181 | 3660 | *-*-uclinux*) |
c7e4b184 | 3661 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3662 | ;; |
a0da8069 | 3663 | *-*-vxworks*) |
a0da8069 NN |
3664 | ;; |
3665 | alpha*-dec-osf*) | |
3666 | # ld works, but does not support shared libraries. | |
a0da8069 | 3667 | # gas doesn't generate exception information. |
c7e4b184 | 3668 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3669 | ;; |
3670 | alpha*-*-*vms*) | |
9863d716 | 3671 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3672 | ;; |
a0da8069 NN |
3673 | alpha*-*-*) |
3674 | # newlib is not 64 bit ready | |
9863d716 | 3675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3676 | ;; |
a0da8069 | 3677 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3678 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3679 | ;; |
05a13254 NC |
3680 | arc*-*-*) |
3681 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3682 | ;; |
a0da8069 | 3683 | arm-*-pe*) |
9863d716 | 3684 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3685 | ;; |
a0da8069 | 3686 | arm-*-riscix*) |
b2f14e4a | 3687 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3688 | ;; |
8e71395b L |
3689 | avr-*-*) |
3690 | if test x${with_avrlibc} != xno; then | |
3691 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3692 | fi | |
3693 | ;; | |
a0da8069 | 3694 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3695 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3696 | ;; |
b2f14e4a JM |
3697 | tic54x-*-*) |
3698 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3699 | ;; |
a0da8069 | 3700 | d10v-*-*) |
b2f14e4a | 3701 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3702 | ;; |
3703 | d30v-*-*) | |
b2f14e4a | 3704 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3705 | ;; |
3706 | fr30-*-elf*) | |
9863d716 | 3707 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3708 | ;; |
3f8107ab AM |
3709 | ft32-*-*) |
3710 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3711 | ;; | |
20135e4c | 3712 | moxie-*-*) |
10b8fe5e | 3713 | noconfigdirs="$noconfigdirs" |
20135e4c | 3714 | ;; |
a0da8069 | 3715 | h8300*-*-*) |
9863d716 | 3716 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3717 | ;; |
3718 | h8500-*-*) | |
b2f14e4a | 3719 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3720 | ;; |
caeba88f | 3721 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3722 | ;; |
5569a85f JDA |
3723 | hppa*64*-*-hpux*) |
3724 | noconfigdirs="$noconfigdirs gdb" | |
3725 | ;; | |
3726 | hppa*-*-hpux11*) | |
3727 | noconfigdirs="$noconfigdirs gdb ld" | |
3728 | ;; | |
93cc359e | 3729 | hppa*64*-*-linux*) |
a0da8069 | 3730 | ;; |
f0ff0f90 | 3731 | hppa*-*-linux*) |
5dcac624 | 3732 | ;; |
a0da8069 | 3733 | hppa*-*-*elf* | \ |
a0da8069 NN |
3734 | hppa*-*-lites* | \ |
3735 | hppa*-*-openbsd* | \ | |
3736 | hppa*64*-*-*) | |
4f0ef2d8 | 3737 | ;; |
691bb5a1 | 3738 | hppa*-*-pro*) |
691bb5a1 | 3739 | ;; |
a0da8069 | 3740 | hppa*-*-*) |
9863d716 | 3741 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3742 | ;; |
b07c2aad | 3743 | i960-*-*) |
b2f14e4a | 3744 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3745 | ;; |
a0da8069 NN |
3746 | ia64*-*-elf*) |
3747 | # No gdb support yet. | |
0377a422 | 3748 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3749 | ;; |
3750 | ia64*-**-hpux*) | |
92c9a463 | 3751 | # No ld support yet. |
5569a85f | 3752 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3753 | ;; |
19e99079 | 3754 | ia64*-*-*vms*) |
7ec59b9e L |
3755 | # No ld support yet. |
3756 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3757 | ;; |
1f53ca9a | 3758 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3759 | ;; |
3760 | i[3456789]86-*-mingw*) | |
45055374 | 3761 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3762 | ;; |
a0da8069 NN |
3763 | *-*-cygwin*) |
3764 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3765 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3766 | # always build newlib if winsup directory is present. |
45055374 | 3767 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3768 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3769 | elif test -d "$srcdir/newlib"; then |
45055374 | 3770 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3771 | fi |
c6b750e1 | 3772 | ;; |
ec11bdc6 | 3773 | i[3456789]86-*-pe) |
782cb41f | 3774 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3775 | ;; |
ec11bdc6 | 3776 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3777 | # The linker does not yet know about weak symbols in COFF, |
3778 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3779 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3780 | ;; |
ec11bdc6 | 3781 | i[3456789]86-*-sco*) |
b2f14e4a | 3782 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3783 | ;; |
cff32a7c | 3784 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3785 | noconfigdirs="$noconfigdirs target-libgloss" |
3786 | ;; | |
ec11bdc6 | 3787 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3788 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3789 | ;; |
ec11bdc6 | 3790 | i[3456789]86-*-beos*) |
c7e4b184 | 3791 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3792 | ;; |
b59bea8a | 3793 | i[3456789]86-*-rdos*) |
c7e4b184 | 3794 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3795 | ;; |
a0da8069 | 3796 | mmix-*-*) |
9863d716 | 3797 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3798 | ;; |
4970f871 | 3799 | mt-*-*) |
cdb9b172 AH |
3800 | noconfigdirs="$noconfigdirs sim" |
3801 | ;; | |
1063beb5 FT |
3802 | nfp-*-*) |
3803 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3804 | noconfigdirs="$noconfigdirs $target_libraries" | |
3805 | ;; | |
a0da8069 NN |
3806 | powerpc-*-aix*) |
3807 | # copied from rs6000-*-* entry | |
c7e4b184 | 3808 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3809 | ;; |
93cc359e | 3810 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3811 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3812 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3813 | # always build newlib. |
3814 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3815 | ;; | |
3816 | # This is temporary until we can link against shared libraries | |
3817 | powerpcle-*-solaris*) | |
b2f14e4a | 3818 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3819 | ;; |
3820 | powerpc-*-beos*) | |
c7e4b184 | 3821 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3822 | ;; |
a0da8069 | 3823 | rs6000-*-lynxos*) |
c7e4b184 | 3824 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3825 | ;; |
3826 | rs6000-*-aix*) | |
c7e4b184 | 3827 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3828 | ;; |
3829 | rs6000-*-*) | |
9863d716 | 3830 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3831 | ;; |
3832 | m68k-apollo-*) | |
b2f14e4a | 3833 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3834 | ;; |
25a07265 | 3835 | microblaze*) |
9863d716 | 3836 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3837 | ;; |
a9d58c06 | 3838 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3839 | if test x$with_newlib = xyes; then |
3840 | noconfigdirs="$noconfigdirs gprof" | |
3841 | fi | |
5bd8be13 | 3842 | ;; |
a0da8069 | 3843 | mips*-*-irix5*) |
b2f14e4a | 3844 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3845 | ;; |
3846 | mips*-*-irix6*) | |
9863d716 | 3847 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3848 | ;; |
a0da8069 | 3849 | mips*-*-bsd*) |
e8044f35 | 3850 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3851 | ;; |
a0da8069 | 3852 | mips*-*-linux*) |
a0da8069 | 3853 | ;; |
e8044f35 RS |
3854 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3855 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3856 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3857 | ;; | |
a0da8069 | 3858 | mips*-*-*) |
9863d716 | 3859 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3860 | ;; |
1b6c0831 | 3861 | nvptx*-*-*) |
1b6c0831 L |
3862 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3863 | ;; | |
05a13254 | 3864 | sh-*-*) |
e8a5fa9c RW |
3865 | case "${target}" in |
3866 | sh*-*-elf) | |
9863d716 | 3867 | ;; |
e8a5fa9c | 3868 | *) |
9863d716 | 3869 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3870 | esac |
a0da8069 | 3871 | ;; |
a0da8069 | 3872 | sparc-*-sunos4*) |
c7e4b184 | 3873 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3874 | use_gnu_ld=no |
3875 | fi | |
3876 | ;; | |
619a3713 | 3877 | tic6x-*-*) |
40ae9136 | 3878 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3879 | ;; |
05a13254 | 3880 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3881 | noconfigdirs="$noconfigdirs sim" |
3882 | ;; | |
a0da8069 | 3883 | v810-*-*) |
b2f14e4a | 3884 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3885 | ;; |
3886 | vax-*-*) | |
9863d716 | 3887 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3888 | ;; |
b29d2641 MR |
3889 | wasm32-*-*) |
3890 | noconfigdirs="$noconfigdirs ld" | |
3891 | ;; | |
a0da8069 | 3892 | esac |
252b5132 | 3893 | |
a0da8069 NN |
3894 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3895 | # depends upon some newlib header files. | |
3896 | case "${noconfigdirs}" in | |
3897 | *target-libgloss*) ;; | |
3898 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3899 | esac | |
3900 | ||
a0da8069 | 3901 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3902 | host_makefile_frag=/dev/null |
3903 | if test -d ${srcdir}/config ; then | |
3904 | case "${host}" in | |
ec11bdc6 | 3905 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3906 | host_makefile_frag="config/mh-djgpp" |
3907 | ;; | |
3908 | *-cygwin*) | |
e33b51a6 | 3909 | |
81ecdfbb RW |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3911 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3912 | echo a >cygwin-cat-check |
1f53ca9a | 3913 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3914 | rm cygwin-cat-check |
81ecdfbb RW |
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3916 | $as_echo "yes" >&6; } | |
e33b51a6 | 3917 | else |
8ade07e9 | 3918 | rm cygwin-cat-check |
81ecdfbb RW |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3920 | $as_echo "no" >&6; } | |
d0ac1c44 | 3921 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3922 | Please either mount the build directory in binary mode or run the following |
3923 | commands before running any configure script: | |
3924 | set -o igncr | |
3925 | export SHELLOPTS | |
81ecdfbb | 3926 | " "$LINENO" 5 |
e33b51a6 | 3927 | fi |
e33b51a6 | 3928 | |
a0da8069 NN |
3929 | host_makefile_frag="config/mh-cygwin" |
3930 | ;; | |
8a1599ab | 3931 | *-mingw*) |
84e7906e | 3932 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3933 | ;; |
ce6c656d L |
3934 | alpha*-linux*) |
3935 | host_makefile_frag="config/mh-alpha-linux" | |
3936 | ;; | |
da888c87 | 3937 | hppa*-hp-hpux10*) |
da888c87 | 3938 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3939 | ;; |
3516a403 | 3940 | hppa*-hp-hpux*) |
da888c87 PB |
3941 | host_makefile_frag="config/mh-pa" |
3942 | ;; | |
3943 | hppa*-*) | |
3944 | host_makefile_frag="config/mh-pa" | |
3945 | ;; | |
e552509b ILT |
3946 | *-*-darwin*) |
3947 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3948 | ;; |
f6d183c0 PB |
3949 | powerpc-*-aix*) |
3950 | host_makefile_frag="config/mh-ppc-aix" | |
3951 | ;; | |
3952 | rs6000-*-aix*) | |
3953 | host_makefile_frag="config/mh-ppc-aix" | |
3954 | ;; | |
a0da8069 NN |
3955 | esac |
3956 | fi | |
3957 | ||
9e07f89d | 3958 | if test "${build}" != "${host}" ; then |
1576798e PB |
3959 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3960 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3961 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 3962 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 3963 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 3964 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3965 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3966 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3967 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3968 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3969 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3970 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3971 | else | |
3972 | AR_FOR_BUILD="\$(AR)" | |
3973 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3974 | CC_FOR_BUILD="\$(CC)" |
1576798e | 3975 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 3976 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 3977 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3978 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3979 | LD_FOR_BUILD="\$(LD)" | |
3980 | NM_FOR_BUILD="\$(NM)" | |
3981 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3982 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3983 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3984 | fi |
3985 | ||
3986 | ac_ext=c | |
c6b750e1 DJ |
3987 | ac_cpp='$CPP $CPPFLAGS' |
3988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3991 | if test -n "$ac_tool_prefix"; then | |
3992 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3993 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3995 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3996 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3997 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
3998 | else |
3999 | if test -n "$CC"; then | |
4000 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4001 | else | |
4002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4003 | for as_dir in $PATH | |
4004 | do | |
4005 | IFS=$as_save_IFS | |
4006 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4007 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4009 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4011 | break 2 |
4012 | fi | |
4013 | done | |
81ecdfbb RW |
4014 | done |
4015 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4016 | |
4017 | fi | |
4018 | fi | |
4019 | CC=$ac_cv_prog_CC | |
4020 | if test -n "$CC"; then | |
81ecdfbb RW |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4022 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4023 | else |
81ecdfbb RW |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4025 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4026 | fi |
4027 | ||
81ecdfbb | 4028 | |
c6b750e1 DJ |
4029 | fi |
4030 | if test -z "$ac_cv_prog_CC"; then | |
4031 | ac_ct_CC=$CC | |
6a9cf61e | 4032 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4033 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4035 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4036 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4037 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4038 | else |
4039 | if test -n "$ac_ct_CC"; then | |
4040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4041 | else | |
4042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4043 | for as_dir in $PATH | |
4044 | do | |
4045 | IFS=$as_save_IFS | |
4046 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4047 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4049 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4051 | break 2 |
4052 | fi | |
4053 | done | |
81ecdfbb RW |
4054 | done |
4055 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4056 | |
4057 | fi | |
4058 | fi | |
4059 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4060 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4062 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4063 | else |
81ecdfbb RW |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4065 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4066 | fi |
4067 | ||
81ecdfbb RW |
4068 | if test "x$ac_ct_CC" = x; then |
4069 | CC="" | |
4070 | else | |
4071 | case $cross_compiling:$ac_tool_warned in | |
4072 | yes:) | |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4074 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4075 | ac_tool_warned=yes ;; | |
4076 | esac | |
4077 | CC=$ac_ct_CC | |
4078 | fi | |
c6b750e1 DJ |
4079 | else |
4080 | CC="$ac_cv_prog_CC" | |
4081 | fi | |
4082 | ||
4083 | if test -z "$CC"; then | |
81ecdfbb RW |
4084 | if test -n "$ac_tool_prefix"; then |
4085 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4086 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4088 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4089 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4090 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4091 | else |
4092 | if test -n "$CC"; then | |
4093 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4094 | else | |
c6b750e1 DJ |
4095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4096 | for as_dir in $PATH | |
4097 | do | |
4098 | IFS=$as_save_IFS | |
4099 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4100 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4102 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4104 | break 2 |
4105 | fi | |
4106 | done | |
81ecdfbb RW |
4107 | done |
4108 | IFS=$as_save_IFS | |
c6b750e1 | 4109 | |
9e07f89d NN |
4110 | fi |
4111 | fi | |
c6b750e1 | 4112 | CC=$ac_cv_prog_CC |
9e07f89d | 4113 | if test -n "$CC"; then |
81ecdfbb RW |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4115 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4116 | else |
81ecdfbb RW |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4118 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4119 | fi |
4120 | ||
c6b750e1 | 4121 | |
81ecdfbb | 4122 | fi |
c6b750e1 | 4123 | fi |
9e07f89d NN |
4124 | if test -z "$CC"; then |
4125 | # Extract the first word of "cc", so it can be a program name with args. | |
4126 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4128 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4129 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4130 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4131 | else |
4132 | if test -n "$CC"; then | |
4133 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4134 | else | |
9e07f89d | 4135 | ac_prog_rejected=no |
c6b750e1 DJ |
4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4137 | for as_dir in $PATH | |
4138 | do | |
4139 | IFS=$as_save_IFS | |
4140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4141 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4143 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4144 | ac_prog_rejected=yes | |
4145 | continue | |
4146 | fi | |
4147 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4149 | break 2 |
4150 | fi | |
4151 | done | |
81ecdfbb RW |
4152 | done |
4153 | IFS=$as_save_IFS | |
c6b750e1 | 4154 | |
9e07f89d NN |
4155 | if test $ac_prog_rejected = yes; then |
4156 | # We found a bogon in the path, so make sure we never use it. | |
4157 | set dummy $ac_cv_prog_CC | |
4158 | shift | |
c6b750e1 | 4159 | if test $# != 0; then |
9e07f89d NN |
4160 | # We chose a different compiler from the bogus one. |
4161 | # However, it has the same basename, so the bogon will be chosen | |
4162 | # first if we set CC to just the basename; use the full file name. | |
4163 | shift | |
c6b750e1 | 4164 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4165 | fi |
4166 | fi | |
4167 | fi | |
4168 | fi | |
c6b750e1 | 4169 | CC=$ac_cv_prog_CC |
9e07f89d | 4170 | if test -n "$CC"; then |
81ecdfbb RW |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4172 | $as_echo "$CC" >&6; } | |
9e07f89d | 4173 | else |
81ecdfbb RW |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4175 | $as_echo "no" >&6; } | |
9e07f89d NN |
4176 | fi |
4177 | ||
81ecdfbb | 4178 | |
c6b750e1 DJ |
4179 | fi |
4180 | if test -z "$CC"; then | |
4181 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4182 | for ac_prog in cl.exe |
c6b750e1 DJ |
4183 | do |
4184 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4185 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4187 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4188 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4189 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4190 | else |
4191 | if test -n "$CC"; then | |
4192 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4193 | else | |
c6b750e1 DJ |
4194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4195 | for as_dir in $PATH | |
4196 | do | |
4197 | IFS=$as_save_IFS | |
4198 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4199 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4200 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4201 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4203 | break 2 |
376a0e54 | 4204 | fi |
c6b750e1 | 4205 | done |
81ecdfbb RW |
4206 | done |
4207 | IFS=$as_save_IFS | |
cac3d6c4 | 4208 | |
c6b750e1 DJ |
4209 | fi |
4210 | fi | |
4211 | CC=$ac_cv_prog_CC | |
4212 | if test -n "$CC"; then | |
81ecdfbb RW |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4214 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4215 | else |
81ecdfbb RW |
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4217 | $as_echo "no" >&6; } | |
9e07f89d | 4218 | fi |
cac3d6c4 | 4219 | |
81ecdfbb | 4220 | |
c6b750e1 DJ |
4221 | test -n "$CC" && break |
4222 | done | |
cac3d6c4 | 4223 | fi |
c6b750e1 DJ |
4224 | if test -z "$CC"; then |
4225 | ac_ct_CC=$CC | |
81ecdfbb | 4226 | for ac_prog in cl.exe |
c6b750e1 DJ |
4227 | do |
4228 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4229 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4231 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4232 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4233 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4234 | else |
c6b750e1 DJ |
4235 | if test -n "$ac_ct_CC"; then |
4236 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4237 | else |
c6b750e1 DJ |
4238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4239 | for as_dir in $PATH | |
4240 | do | |
4241 | IFS=$as_save_IFS | |
4242 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4243 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4244 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4245 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4247 | break 2 |
4248 | fi | |
4249 | done | |
81ecdfbb RW |
4250 | done |
4251 | IFS=$as_save_IFS | |
c6b750e1 | 4252 | |
cac3d6c4 CM |
4253 | fi |
4254 | fi | |
c6b750e1 DJ |
4255 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4256 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4258 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4259 | else |
81ecdfbb RW |
4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4261 | $as_echo "no" >&6; } | |
cac3d6c4 | 4262 | fi |
376a0e54 | 4263 | |
81ecdfbb | 4264 | |
c6b750e1 DJ |
4265 | test -n "$ac_ct_CC" && break |
4266 | done | |
4267 | ||
81ecdfbb RW |
4268 | if test "x$ac_ct_CC" = x; then |
4269 | CC="" | |
4270 | else | |
4271 | case $cross_compiling:$ac_tool_warned in | |
4272 | yes:) | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4274 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4275 | ac_tool_warned=yes ;; | |
4276 | esac | |
4277 | CC=$ac_ct_CC | |
4278 | fi | |
c6b750e1 DJ |
4279 | fi |
4280 | ||
4281 | fi | |
4282 | ||
4283 | ||
81ecdfbb RW |
4284 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4285 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4286 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4287 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4288 | |
4289 | # Provide some information about the compiler. | |
81ecdfbb RW |
4290 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4291 | set X $ac_compile | |
4292 | ac_compiler=$2 | |
4293 | for ac_option in --version -v -V -qversion; do | |
4294 | { { ac_try="$ac_compiler $ac_option >&5" | |
4295 | case "(($ac_try" in | |
4296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4297 | *) ac_try_echo=$ac_try;; | |
4298 | esac | |
4299 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4300 | $as_echo "$ac_try_echo"; } >&5 | |
4301 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4302 | ac_status=$? |
81ecdfbb RW |
4303 | if test -s conftest.err; then |
4304 | sed '10a\ | |
4305 | ... rest of stderr output deleted ... | |
4306 | 10q' conftest.err >conftest.er1 | |
4307 | cat conftest.er1 >&5 | |
81ecdfbb | 4308 | fi |
d0ac1c44 | 4309 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4311 | test $ac_status = 0; } | |
4312 | done | |
c6b750e1 | 4313 | |
81ecdfbb | 4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4315 | /* end confdefs.h. */ |
4316 | ||
4317 | int | |
4318 | main () | |
4319 | { | |
4320 | ||
4321 | ; | |
4322 | return 0; | |
4323 | } | |
4324 | _ACEOF | |
4325 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4326 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4327 | # Try to create an executable without -o first, disregard a.out. |
4328 | # It will help us diagnose broken compilers, and finding out an intuition | |
4329 | # of exeext. | |
d0ac1c44 SM |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4331 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4332 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4333 | ||
4334 | # The possible output files: | |
4335 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4336 | ||
4337 | ac_rmfiles= | |
4338 | for ac_file in $ac_files | |
4339 | do | |
4340 | case $ac_file in | |
4341 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4342 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4343 | esac | |
4344 | done | |
4345 | rm -f $ac_rmfiles | |
4346 | ||
4347 | if { { ac_try="$ac_link_default" | |
4348 | case "(($ac_try" in | |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
4352 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4353 | $as_echo "$ac_try_echo"; } >&5 | |
4354 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4355 | ac_status=$? |
81ecdfbb RW |
4356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4357 | test $ac_status = 0; }; then : | |
4358 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4359 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4360 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4361 | # so that the user can short-circuit this test for compilers unknown to | |
4362 | # Autoconf. | |
4363 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4364 | do |
4365 | test -f "$ac_file" || continue | |
4366 | case $ac_file in | |
81ecdfbb | 4367 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4368 | ;; |
4369 | [ab].out ) | |
4370 | # We found the default executable, but exeext='' is most | |
4371 | # certainly right. | |
4372 | break;; | |
4373 | *.* ) | |
81ecdfbb RW |
4374 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4375 | then :; else | |
4376 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4377 | fi | |
4378 | # We set ac_cv_exeext here because the later test for it is not | |
4379 | # safe: cross compilers may not add the suffix if given an `-o' | |
4380 | # argument, so we may need to know it at that point already. | |
4381 | # Even if this section looks crufty: it has the advantage of | |
4382 | # actually working. | |
c6b750e1 DJ |
4383 | break;; |
4384 | * ) | |
4385 | break;; | |
4386 | esac | |
4387 | done | |
81ecdfbb RW |
4388 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4389 | ||
c6b750e1 | 4390 | else |
81ecdfbb RW |
4391 | ac_file='' |
4392 | fi | |
81ecdfbb | 4393 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4395 | $as_echo "no" >&6; } | |
4396 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4397 | sed 's/^/| /' conftest.$ac_ext >&5 |
4398 | ||
81ecdfbb RW |
4399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4401 | as_fn_error 77 "C compiler cannot create executables |
4402 | See \`config.log' for more details" "$LINENO" 5; } | |
4403 | else | |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4405 | $as_echo "yes" >&6; } | |
c6b750e1 | 4406 | fi |
d0ac1c44 SM |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4408 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4410 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4411 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4412 | |
d0ac1c44 | 4413 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4414 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4416 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4417 | if { { ac_try="$ac_link" | |
4418 | case "(($ac_try" in | |
4419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4420 | *) ac_try_echo=$ac_try;; | |
4421 | esac | |
4422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4423 | $as_echo "$ac_try_echo"; } >&5 | |
4424 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4425 | ac_status=$? |
81ecdfbb RW |
4426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4427 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4428 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4429 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4430 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4431 | # `rm'. | |
4432 | for ac_file in conftest.exe conftest conftest.*; do | |
4433 | test -f "$ac_file" || continue | |
4434 | case $ac_file in | |
81ecdfbb | 4435 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4436 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4437 | break;; |
4438 | * ) break;; | |
4439 | esac | |
4440 | done | |
4441 | else | |
81ecdfbb RW |
4442 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4443 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4444 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4445 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4446 | fi |
d0ac1c44 | 4447 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4449 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4450 | |
4451 | rm -f conftest.$ac_ext | |
4452 | EXEEXT=$ac_cv_exeext | |
4453 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4455 | /* end confdefs.h. */ | |
4456 | #include <stdio.h> | |
4457 | int | |
4458 | main () | |
4459 | { | |
4460 | FILE *f = fopen ("conftest.out", "w"); | |
4461 | return ferror (f) || fclose (f) != 0; | |
4462 | ||
4463 | ; | |
4464 | return 0; | |
4465 | } | |
4466 | _ACEOF | |
4467 | ac_clean_files="$ac_clean_files conftest.out" | |
4468 | # Check that the compiler produces executables we can run. If not, either | |
4469 | # the compiler is broken, or we cross compile. | |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4471 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4472 | if test "$cross_compiling" != yes; then | |
4473 | { { ac_try="$ac_link" | |
4474 | case "(($ac_try" in | |
4475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4476 | *) ac_try_echo=$ac_try;; | |
4477 | esac | |
4478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4479 | $as_echo "$ac_try_echo"; } >&5 | |
4480 | (eval "$ac_link") 2>&5 | |
4481 | ac_status=$? | |
4482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4483 | test $ac_status = 0; } | |
4484 | if { ac_try='./conftest$ac_cv_exeext' | |
4485 | { { case "(($ac_try" in | |
4486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4487 | *) ac_try_echo=$ac_try;; | |
4488 | esac | |
4489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4490 | $as_echo "$ac_try_echo"; } >&5 | |
4491 | (eval "$ac_try") 2>&5 | |
4492 | ac_status=$? | |
4493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4494 | test $ac_status = 0; }; }; then | |
4495 | cross_compiling=no | |
4496 | else | |
4497 | if test "$cross_compiling" = maybe; then | |
4498 | cross_compiling=yes | |
4499 | else | |
4500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4502 | as_fn_error $? "cannot run C compiled programs. | |
4503 | If you meant to cross compile, use \`--host'. | |
4504 | See \`config.log' for more details" "$LINENO" 5; } | |
4505 | fi | |
4506 | fi | |
4507 | fi | |
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4509 | $as_echo "$cross_compiling" >&6; } | |
4510 | ||
4511 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4512 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4514 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4515 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4516 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4517 | else |
81ecdfbb | 4518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4519 | /* end confdefs.h. */ |
4520 | ||
4521 | int | |
4522 | main () | |
4523 | { | |
4524 | ||
4525 | ; | |
4526 | return 0; | |
4527 | } | |
4528 | _ACEOF | |
4529 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4530 | if { { ac_try="$ac_compile" |
4531 | case "(($ac_try" in | |
4532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4533 | *) ac_try_echo=$ac_try;; | |
4534 | esac | |
4535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4536 | $as_echo "$ac_try_echo"; } >&5 | |
4537 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4538 | ac_status=$? |
81ecdfbb RW |
4539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4540 | test $ac_status = 0; }; then : | |
4541 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4542 | test -f "$ac_file" || continue; | |
c6b750e1 | 4543 | case $ac_file in |
81ecdfbb | 4544 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4545 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4546 | break;; | |
4547 | esac | |
4548 | done | |
cac3d6c4 | 4549 | else |
81ecdfbb | 4550 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4551 | sed 's/^/| /' conftest.$ac_ext >&5 |
4552 | ||
81ecdfbb RW |
4553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4555 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4556 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4557 | fi |
c6b750e1 DJ |
4558 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4559 | fi | |
81ecdfbb RW |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4561 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4562 | OBJEXT=$ac_cv_objext |
4563 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4565 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4566 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4567 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4568 | else |
81ecdfbb | 4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4570 | /* end confdefs.h. */ |
4571 | ||
4572 | int | |
4573 | main () | |
4574 | { | |
4575 | #ifndef __GNUC__ | |
4576 | choke me | |
4577 | #endif | |
4578 | ||
4579 | ; | |
4580 | return 0; | |
4581 | } | |
4582 | _ACEOF | |
81ecdfbb | 4583 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4584 | ac_compiler_gnu=yes |
4585 | else | |
81ecdfbb | 4586 | ac_compiler_gnu=no |
c6b750e1 | 4587 | fi |
81ecdfbb | 4588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4589 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4590 | ||
4591 | fi | |
81ecdfbb RW |
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4593 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4594 | if test $ac_compiler_gnu = yes; then | |
4595 | GCC=yes | |
4596 | else | |
4597 | GCC= | |
4598 | fi | |
c6b750e1 DJ |
4599 | ac_test_CFLAGS=${CFLAGS+set} |
4600 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4602 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4603 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4604 | $as_echo_n "(cached) " >&6 |
4605 | else | |
4606 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4607 | ac_c_werror_flag=yes | |
4608 | ac_cv_prog_cc_g=no | |
4609 | CFLAGS="-g" | |
4610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4611 | /* end confdefs.h. */ |
4612 | ||
4613 | int | |
4614 | main () | |
4615 | { | |
4616 | ||
4617 | ; | |
4618 | return 0; | |
4619 | } | |
4620 | _ACEOF | |
81ecdfbb | 4621 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4622 | ac_cv_prog_cc_g=yes |
4623 | else | |
81ecdfbb RW |
4624 | CFLAGS="" |
4625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4626 | /* end confdefs.h. */ | |
4627 | ||
4628 | int | |
4629 | main () | |
4630 | { | |
4631 | ||
4632 | ; | |
4633 | return 0; | |
4634 | } | |
4635 | _ACEOF | |
4636 | if ac_fn_c_try_compile "$LINENO"; then : | |
4637 | ||
4638 | else | |
4639 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4640 | CFLAGS="-g" | |
4641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4642 | /* end confdefs.h. */ | |
cac3d6c4 | 4643 | |
81ecdfbb RW |
4644 | int |
4645 | main () | |
4646 | { | |
4647 | ||
4648 | ; | |
4649 | return 0; | |
4650 | } | |
4651 | _ACEOF | |
4652 | if ac_fn_c_try_compile "$LINENO"; then : | |
4653 | ac_cv_prog_cc_g=yes | |
4654 | fi | |
4655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4656 | fi |
81ecdfbb | 4657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4658 | fi |
81ecdfbb RW |
4659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4660 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4661 | fi | |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4663 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4664 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4665 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4666 | elif test $ac_cv_prog_cc_g = yes; then |
4667 | if test "$GCC" = yes; then | |
4668 | CFLAGS="-g -O2" | |
4669 | else | |
4670 | CFLAGS="-g" | |
4671 | fi | |
4672 | else | |
4673 | if test "$GCC" = yes; then | |
4674 | CFLAGS="-O2" | |
4675 | else | |
4676 | CFLAGS= | |
4677 | fi | |
4678 | fi | |
81ecdfbb RW |
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4680 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4681 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4682 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4683 | else |
81ecdfbb | 4684 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4685 | ac_save_CC=$CC |
81ecdfbb | 4686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4687 | /* end confdefs.h. */ |
4688 | #include <stdarg.h> | |
4689 | #include <stdio.h> | |
d0ac1c44 | 4690 | struct stat; |
c6b750e1 DJ |
4691 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4692 | struct buf { int x; }; | |
4693 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4694 | static char *e (p, i) | |
4695 | char **p; | |
4696 | int i; | |
4697 | { | |
4698 | return p[i]; | |
4699 | } | |
4700 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4701 | { | |
4702 | char *s; | |
4703 | va_list v; | |
4704 | va_start (v,p); | |
4705 | s = g (p, va_arg (v,int)); | |
4706 | va_end (v); | |
4707 | return s; | |
4708 | } | |
4709 | ||
4710 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4711 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4712 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4713 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4714 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4715 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4716 | that's true only with -std. */ |
c6b750e1 DJ |
4717 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4718 | ||
81ecdfbb RW |
4719 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4720 | inside strings and character constants. */ | |
4721 | #define FOO(x) 'x' | |
4722 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4723 | ||
c6b750e1 DJ |
4724 | int test (int i, double x); |
4725 | struct s1 {int (*f) (int a);}; | |
4726 | struct s2 {int (*f) (double a);}; | |
4727 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4728 | int argc; | |
4729 | char **argv; | |
4730 | int | |
4731 | main () | |
4732 | { | |
4733 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4734 | ; | |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
81ecdfbb RW |
4738 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4739 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4740 | do |
4741 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4742 | if ac_fn_c_try_compile "$LINENO"; then : |
4743 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4744 | fi |
81ecdfbb RW |
4745 | rm -f core conftest.err conftest.$ac_objext |
4746 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4747 | done |
81ecdfbb | 4748 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4749 | CC=$ac_save_CC |
4750 | ||
4751 | fi | |
81ecdfbb RW |
4752 | # AC_CACHE_VAL |
4753 | case "x$ac_cv_prog_cc_c89" in | |
4754 | x) | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4756 | $as_echo "none needed" >&6; } ;; | |
4757 | xno) | |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4759 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4760 | *) |
81ecdfbb RW |
4761 | CC="$CC $ac_cv_prog_cc_c89" |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4763 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4764 | esac |
81ecdfbb | 4765 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4766 | |
c6b750e1 DJ |
4767 | fi |
4768 | ||
c6b750e1 DJ |
4769 | ac_ext=c |
4770 | ac_cpp='$CPP $CPPFLAGS' | |
4771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4774 | |
81ecdfbb | 4775 | ac_ext=cpp |
18f6b6ee PB |
4776 | ac_cpp='$CXXCPP $CPPFLAGS' |
4777 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4778 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4779 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4780 | if test -z "$CXX"; then |
4781 | if test -n "$CCC"; then | |
4782 | CXX=$CCC | |
4783 | else | |
4784 | if test -n "$ac_tool_prefix"; then | |
4785 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4786 | do |
4787 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4788 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4790 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4791 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 4792 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4793 | else |
4794 | if test -n "$CXX"; then | |
4795 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4796 | else | |
4797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4798 | for as_dir in $PATH | |
4799 | do | |
4800 | IFS=$as_save_IFS | |
4801 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4802 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4804 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4806 | break 2 |
4807 | fi | |
4808 | done | |
81ecdfbb RW |
4809 | done |
4810 | IFS=$as_save_IFS | |
512b7dfb | 4811 | |
18f6b6ee PB |
4812 | fi |
4813 | fi | |
4814 | CXX=$ac_cv_prog_CXX | |
4815 | if test -n "$CXX"; then | |
81ecdfbb RW |
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4817 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4818 | else |
81ecdfbb RW |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4820 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4821 | fi |
4822 | ||
81ecdfbb | 4823 | |
18f6b6ee PB |
4824 | test -n "$CXX" && break |
4825 | done | |
4826 | fi | |
4827 | if test -z "$CXX"; then | |
4828 | ac_ct_CXX=$CXX | |
81ecdfbb | 4829 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4830 | do |
4831 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4832 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4834 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4835 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4836 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4837 | else |
4838 | if test -n "$ac_ct_CXX"; then | |
4839 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4840 | else | |
4841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4842 | for as_dir in $PATH | |
4843 | do | |
4844 | IFS=$as_save_IFS | |
4845 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4846 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4848 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4850 | break 2 |
512b7dfb | 4851 | fi |
18f6b6ee | 4852 | done |
81ecdfbb RW |
4853 | done |
4854 | IFS=$as_save_IFS | |
512b7dfb | 4855 | |
18f6b6ee PB |
4856 | fi |
4857 | fi | |
4858 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4859 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4861 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4862 | else |
81ecdfbb RW |
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4864 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4865 | fi |
4866 | ||
81ecdfbb | 4867 | |
18f6b6ee PB |
4868 | test -n "$ac_ct_CXX" && break |
4869 | done | |
18f6b6ee | 4870 | |
81ecdfbb RW |
4871 | if test "x$ac_ct_CXX" = x; then |
4872 | CXX="g++" | |
4873 | else | |
4874 | case $cross_compiling:$ac_tool_warned in | |
4875 | yes:) | |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4878 | ac_tool_warned=yes ;; | |
4879 | esac | |
4880 | CXX=$ac_ct_CXX | |
4881 | fi | |
18f6b6ee PB |
4882 | fi |
4883 | ||
81ecdfbb RW |
4884 | fi |
4885 | fi | |
18f6b6ee | 4886 | # Provide some information about the compiler. |
81ecdfbb RW |
4887 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4888 | set X $ac_compile | |
4889 | ac_compiler=$2 | |
4890 | for ac_option in --version -v -V -qversion; do | |
4891 | { { ac_try="$ac_compiler $ac_option >&5" | |
4892 | case "(($ac_try" in | |
4893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4894 | *) ac_try_echo=$ac_try;; | |
4895 | esac | |
4896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4897 | $as_echo "$ac_try_echo"; } >&5 | |
4898 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4899 | ac_status=$? |
81ecdfbb RW |
4900 | if test -s conftest.err; then |
4901 | sed '10a\ | |
4902 | ... rest of stderr output deleted ... | |
4903 | 10q' conftest.err >conftest.er1 | |
4904 | cat conftest.er1 >&5 | |
81ecdfbb | 4905 | fi |
d0ac1c44 | 4906 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4908 | test $ac_status = 0; } | |
4909 | done | |
18f6b6ee | 4910 | |
81ecdfbb RW |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4912 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4913 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4914 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 4915 | else |
81ecdfbb | 4916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4917 | /* end confdefs.h. */ |
4918 | ||
4919 | int | |
4920 | main () | |
4921 | { | |
4922 | #ifndef __GNUC__ | |
4923 | choke me | |
4924 | #endif | |
4925 | ||
4926 | ; | |
4927 | return 0; | |
4928 | } | |
4929 | _ACEOF | |
81ecdfbb | 4930 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4931 | ac_compiler_gnu=yes |
4932 | else | |
81ecdfbb | 4933 | ac_compiler_gnu=no |
18f6b6ee | 4934 | fi |
81ecdfbb | 4935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4936 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4937 | ||
4938 | fi | |
81ecdfbb RW |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4940 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4941 | if test $ac_compiler_gnu = yes; then | |
4942 | GXX=yes | |
4943 | else | |
4944 | GXX= | |
4945 | fi | |
18f6b6ee PB |
4946 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4947 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4949 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 4950 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
4951 | $as_echo_n "(cached) " >&6 |
4952 | else | |
4953 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4954 | ac_cxx_werror_flag=yes | |
4955 | ac_cv_prog_cxx_g=no | |
4956 | CXXFLAGS="-g" | |
4957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4958 | /* end confdefs.h. */ |
4959 | ||
4960 | int | |
4961 | main () | |
4962 | { | |
4963 | ||
4964 | ; | |
4965 | return 0; | |
4966 | } | |
4967 | _ACEOF | |
81ecdfbb | 4968 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4969 | ac_cv_prog_cxx_g=yes |
4970 | else | |
81ecdfbb RW |
4971 | CXXFLAGS="" |
4972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4973 | /* end confdefs.h. */ |
81ecdfbb | 4974 | |
18f6b6ee PB |
4975 | int |
4976 | main () | |
4977 | { | |
81ecdfbb | 4978 | |
18f6b6ee PB |
4979 | ; |
4980 | return 0; | |
4981 | } | |
4982 | _ACEOF | |
81ecdfbb | 4983 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4984 | |
81ecdfbb RW |
4985 | else |
4986 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4987 | CXXFLAGS="-g" | |
4988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4989 | /* end confdefs.h. */ |
81ecdfbb | 4990 | |
18f6b6ee PB |
4991 | int |
4992 | main () | |
4993 | { | |
81ecdfbb | 4994 | |
18f6b6ee PB |
4995 | ; |
4996 | return 0; | |
4997 | } | |
4998 | _ACEOF | |
81ecdfbb RW |
4999 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5000 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5001 | fi |
81ecdfbb RW |
5002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5003 | fi | |
5004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5005 | fi | |
5006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5007 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5008 | fi | |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5010 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5011 | if test "$ac_test_CXXFLAGS" = set; then | |
5012 | CXXFLAGS=$ac_save_CXXFLAGS | |
5013 | elif test $ac_cv_prog_cxx_g = yes; then | |
5014 | if test "$GXX" = yes; then | |
5015 | CXXFLAGS="-g -O2" | |
5016 | else | |
5017 | CXXFLAGS="-g" | |
5018 | fi | |
5019 | else | |
5020 | if test "$GXX" = yes; then | |
5021 | CXXFLAGS="-O2" | |
5022 | else | |
5023 | CXXFLAGS= | |
5024 | fi | |
18f6b6ee | 5025 | fi |
18f6b6ee PB |
5026 | ac_ext=c |
5027 | ac_cpp='$CPP $CPPFLAGS' | |
5028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5031 | ||
5032 | ||
5033 | # We must set the default linker to the linker used by gcc for the correct | |
5034 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5035 | # set the LD default to the ld used by gcc. | |
5036 | if test -z "$LD"; then | |
5037 | if test "$GCC" = yes; then | |
5038 | case $build in | |
5039 | *-*-mingw*) | |
5040 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5041 | *) | |
5042 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5043 | esac | |
5044 | case $gcc_prog_ld in | |
5045 | # Accept absolute paths. | |
5046 | [\\/]* | [A-Za-z]:[\\/]*) | |
5047 | LD="$gcc_prog_ld" ;; | |
5048 | esac | |
5049 | fi | |
512b7dfb PB |
5050 | fi |
5051 | ||
b3676d82 EB |
5052 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5053 | have_static_libs=no | |
5054 | if test "$GCC" = yes; then | |
5055 | saved_LDFLAGS="$LDFLAGS" | |
5056 | ||
5057 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5059 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5060 | ac_ext=cpp | |
5061 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5065 | ||
5066 | ||
5067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5068 | /* end confdefs.h. */ | |
a882be68 EB |
5069 | |
5070 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5071 | #error -static-libstdc++ not implemented | |
5072 | #endif | |
b3676d82 EB |
5073 | int main() {} |
5074 | _ACEOF | |
5075 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5077 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5078 | else | |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5080 | $as_echo "no" >&6; } | |
5081 | fi | |
5082 | rm -f core conftest.err conftest.$ac_objext \ | |
5083 | conftest$ac_exeext conftest.$ac_ext | |
5084 | ac_ext=c | |
5085 | ac_cpp='$CPP $CPPFLAGS' | |
5086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5089 | ||
5090 | ||
5091 | LDFLAGS="$saved_LDFLAGS" | |
5092 | fi | |
5093 | ||
512b7dfb PB |
5094 | |
5095 | ||
5096 | ||
c6b750e1 | 5097 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5098 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5099 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5101 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5102 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5103 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5104 | else |
512b7dfb PB |
5105 | if test -n "$GNATBIND"; then |
5106 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5107 | else |
c6b750e1 DJ |
5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5109 | for as_dir in $PATH | |
5110 | do | |
5111 | IFS=$as_save_IFS | |
5112 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5113 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5115 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5117 | break 2 |
5118 | fi | |
5119 | done | |
81ecdfbb RW |
5120 | done |
5121 | IFS=$as_save_IFS | |
c6b750e1 | 5122 | |
9e07f89d NN |
5123 | fi |
5124 | fi | |
512b7dfb PB |
5125 | GNATBIND=$ac_cv_prog_GNATBIND |
5126 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5128 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5129 | else |
81ecdfbb RW |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5131 | $as_echo "no" >&6; } | |
9e07f89d NN |
5132 | fi |
5133 | ||
81ecdfbb | 5134 | |
c6b750e1 | 5135 | fi |
512b7dfb PB |
5136 | if test -z "$ac_cv_prog_GNATBIND"; then |
5137 | ac_ct_GNATBIND=$GNATBIND | |
5138 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5139 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5141 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5142 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5143 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5144 | else |
512b7dfb PB |
5145 | if test -n "$ac_ct_GNATBIND"; then |
5146 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5147 | else |
c6b750e1 DJ |
5148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5149 | for as_dir in $PATH | |
5150 | do | |
5151 | IFS=$as_save_IFS | |
5152 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5153 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5155 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5157 | break 2 |
5158 | fi | |
5159 | done | |
81ecdfbb RW |
5160 | done |
5161 | IFS=$as_save_IFS | |
c6b750e1 | 5162 | |
9e07f89d NN |
5163 | fi |
5164 | fi | |
512b7dfb PB |
5165 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5166 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5168 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5169 | else |
81ecdfbb RW |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5171 | $as_echo "no" >&6; } | |
9e07f89d NN |
5172 | fi |
5173 | ||
81ecdfbb RW |
5174 | if test "x$ac_ct_GNATBIND" = x; then |
5175 | GNATBIND="no" | |
5176 | else | |
5177 | case $cross_compiling:$ac_tool_warned in | |
5178 | yes:) | |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5180 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5181 | ac_tool_warned=yes ;; | |
5182 | esac | |
5183 | GNATBIND=$ac_ct_GNATBIND | |
5184 | fi | |
24ff9987 | 5185 | else |
512b7dfb | 5186 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5187 | fi |
5188 | ||
7df2cd5d | 5189 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5190 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5191 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5193 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5194 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5195 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5196 | else |
512b7dfb PB |
5197 | if test -n "$GNATMAKE"; then |
5198 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5199 | else |
5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5201 | for as_dir in $PATH | |
5202 | do | |
5203 | IFS=$as_save_IFS | |
5204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5205 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5207 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5209 | break 2 |
5210 | fi | |
5211 | done | |
81ecdfbb RW |
5212 | done |
5213 | IFS=$as_save_IFS | |
7df2cd5d PB |
5214 | |
5215 | fi | |
5216 | fi | |
512b7dfb PB |
5217 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5218 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5220 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5221 | else |
81ecdfbb RW |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5223 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5224 | fi |
5225 | ||
81ecdfbb | 5226 | |
7df2cd5d | 5227 | fi |
512b7dfb PB |
5228 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5229 | ac_ct_GNATMAKE=$GNATMAKE | |
5230 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5231 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5233 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5234 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5235 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5236 | else |
512b7dfb PB |
5237 | if test -n "$ac_ct_GNATMAKE"; then |
5238 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5239 | else |
5240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5241 | for as_dir in $PATH | |
5242 | do | |
5243 | IFS=$as_save_IFS | |
5244 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5245 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5247 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5249 | break 2 |
5250 | fi | |
5251 | done | |
81ecdfbb RW |
5252 | done |
5253 | IFS=$as_save_IFS | |
7df2cd5d | 5254 | |
7df2cd5d PB |
5255 | fi |
5256 | fi | |
512b7dfb PB |
5257 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5258 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5260 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5261 | else |
81ecdfbb RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5263 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5264 | fi |
5265 | ||
81ecdfbb RW |
5266 | if test "x$ac_ct_GNATMAKE" = x; then |
5267 | GNATMAKE="no" | |
5268 | else | |
5269 | case $cross_compiling:$ac_tool_warned in | |
5270 | yes:) | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5273 | ac_tool_warned=yes ;; | |
5274 | esac | |
5275 | GNATMAKE=$ac_ct_GNATMAKE | |
5276 | fi | |
7df2cd5d | 5277 | else |
512b7dfb | 5278 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5279 | fi |
5280 | ||
81ecdfbb RW |
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5282 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5283 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5284 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5285 | else |
5286 | cat >conftest.adb <<EOF | |
5287 | procedure conftest is begin null; end conftest; | |
5288 | EOF | |
5289 | acx_cv_cc_gcc_supports_ada=no | |
5290 | # There is a bug in old released versions of GCC which causes the | |
5291 | # driver to exit successfully when the appropriate language module | |
5292 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5293 | # Therefore we must check for the error message as well as an | |
5294 | # unsuccessful exit. | |
b8908782 DD |
5295 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5296 | # given a .adb file, but produce no object file. So we must check | |
5297 | # if an object file was really produced to guard against this. | |
9e07f89d | 5298 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5299 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5300 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5301 | fi |
5302 | rm -f conftest.* | |
5303 | fi | |
81ecdfbb RW |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5305 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5306 | |
64b986c0 | 5307 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5308 | have_gnat=yes |
5309 | else | |
5310 | have_gnat=no | |
5311 | fi | |
5312 | ||
81ecdfbb RW |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5314 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5315 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5316 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5317 | else |
5318 | echo abfoo >t1 | |
5319 | echo cdfoo >t2 | |
da17fe9d | 5320 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5321 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5322 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5323 | : | |
5324 | else | |
5325 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5326 | fi | |
5327 | fi | |
b8908782 DD |
5328 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5329 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5330 | : |
b8908782 DD |
5331 | else |
5332 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5333 | fi | |
5334 | fi | |
5335 | rm t1 t2 | |
5336 | ||
5337 | fi | |
81ecdfbb RW |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5339 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5340 | do_compare="$gcc_cv_prog_cmp_skip" |
5341 | ||
5342 | ||
9e07f89d | 5343 | |
ffdd6afc ILT |
5344 | # Check whether --enable-bootstrap was given. |
5345 | if test "${enable_bootstrap+set}" = set; then : | |
5346 | enableval=$enable_bootstrap; | |
5347 | else | |
5348 | enable_bootstrap=default | |
5349 | fi | |
5350 | ||
5351 | ||
5352 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5353 | if test -r $srcdir/gcc/configure; then | |
5354 | have_compiler=yes | |
5355 | else | |
5356 | have_compiler=no | |
5357 | fi | |
5358 | ||
5359 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5360 | *:*:*:no) ;; | |
5361 | ||
5362 | # Default behavior. Enable bootstrap if we have a compiler | |
5363 | # and we are in a native configuration. | |
5364 | yes:$build:$build:default) | |
5365 | enable_bootstrap=yes ;; | |
5366 | ||
5367 | *:*:*:default) | |
5368 | enable_bootstrap=no ;; | |
5369 | ||
5370 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5371 | yes:$build:$build:yes) | |
5372 | ;; | |
5373 | ||
5374 | # Other configurations, but we have a compiler. Assume the user knows | |
5375 | # what he's doing. | |
5376 | yes:*:*:yes) | |
5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5378 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5379 | ;; | |
5380 | ||
5381 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5382 | no:*:*:yes) | |
d0ac1c44 | 5383 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5384 | |
5385 | # Fail if wrong command line | |
5386 | *) | |
d0ac1c44 | 5387 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5388 | ;; |
5389 | esac | |
5390 | ||
ce6c656d L |
5391 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5392 | # C++98 compiler can still start the bootstrap. | |
5393 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5394 | CXX="$CXX -std=gnu++98" | |
5395 | fi | |
5396 | ||
d5f2ee2e KG |
5397 | # Used for setting $lt_cv_objdir |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5399 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5400 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5401 | $as_echo_n "(cached) " >&6 |
5402 | else | |
5403 | rm -f .libs 2>/dev/null | |
5404 | mkdir .libs 2>/dev/null | |
5405 | if test -d .libs; then | |
5406 | lt_cv_objdir=.libs | |
5407 | else | |
5408 | # MS-DOS does not allow filenames that begin with a dot. | |
5409 | lt_cv_objdir=_libs | |
5410 | fi | |
5411 | rmdir .libs 2>/dev/null | |
5412 | fi | |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5414 | $as_echo "$lt_cv_objdir" >&6; } | |
5415 | objdir=$lt_cv_objdir | |
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | cat >>confdefs.h <<_ACEOF | |
5422 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5423 | _ACEOF | |
5424 | ||
5425 | ||
5426 | ||
e8a5fa9c | 5427 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5428 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5429 | gmpinc= |
4b900473 | 5430 | have_gmp=no |
e8a5fa9c RW |
5431 | |
5432 | # Specify a location for mpc | |
5433 | # check for this first so it ends up on the link line before mpfr. | |
5434 | ||
81ecdfbb RW |
5435 | # Check whether --with-mpc was given. |
5436 | if test "${with_mpc+set}" = set; then : | |
5437 | withval=$with_mpc; | |
5438 | fi | |
e8a5fa9c | 5439 | |
e8a5fa9c | 5440 | |
e552509b | 5441 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5442 | if test "${with_mpc_include+set}" = set; then : |
5443 | withval=$with_mpc_include; | |
5444 | fi | |
e8a5fa9c | 5445 | |
e8a5fa9c | 5446 | |
e552509b | 5447 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5448 | if test "${with_mpc_lib+set}" = set; then : |
5449 | withval=$with_mpc_lib; | |
5450 | fi | |
e8a5fa9c | 5451 | |
e8a5fa9c RW |
5452 | |
5453 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5454 | gmplibs="-L$with_mpc/lib $gmplibs" |
5455 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5456 | fi |
5457 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5458 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5459 | fi |
5460 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5461 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5462 | fi |
5463 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5464 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5465 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5466 | # Do not test the mpc version. Assume that it is sufficient, since |
5467 | # it is in the source tree, and the library has not been built yet | |
5468 | # but it would be included on the link line in the version check below | |
5469 | # hence making the test fail. | |
d9b76ff9 | 5470 | have_gmp=yes |
e8a5fa9c | 5471 | fi |
4b900473 | 5472 | |
11b04d1f DD |
5473 | # Specify a location for mpfr |
5474 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5475 | |
81ecdfbb RW |
5476 | # Check whether --with-mpfr-dir was given. |
5477 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5478 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5479 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5480 | fi | |
5481 | ||
11b04d1f DD |
5482 | |
5483 | ||
81ecdfbb RW |
5484 | # Check whether --with-mpfr was given. |
5485 | if test "${with_mpfr+set}" = set; then : | |
5486 | withval=$with_mpfr; | |
5487 | fi | |
c6b750e1 | 5488 | |
11b04d1f | 5489 | |
e552509b | 5490 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5491 | if test "${with_mpfr_include+set}" = set; then : |
5492 | withval=$with_mpfr_include; | |
5493 | fi | |
c6b750e1 | 5494 | |
8a0d8a5c | 5495 | |
e552509b | 5496 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5497 | if test "${with_mpfr_lib+set}" = set; then : |
5498 | withval=$with_mpfr_lib; | |
5499 | fi | |
8a0d8a5c | 5500 | |
11b04d1f DD |
5501 | |
5502 | if test "x$with_mpfr" != x; then | |
5503 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5504 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5505 | fi |
8a0d8a5c | 5506 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5507 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5508 | fi |
5509 | if test "x$with_mpfr_lib" != x; then | |
5510 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5511 | fi | |
4b900473 | 5512 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5513 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5514 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5515 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5516 | fi |
05a13254 NC |
5517 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5518 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5519 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5520 | # Do not test the mpfr version. Assume that it is sufficient, since |
5521 | # it is in the source tree, and the library has not been built yet | |
5522 | # but it would be included on the link line in the version check below | |
5523 | # hence making the test fail. | |
5524 | have_gmp=yes | |
5525 | fi | |
11b04d1f | 5526 | |
4b1cb4fe | 5527 | # Specify a location for gmp |
c6b750e1 | 5528 | |
81ecdfbb RW |
5529 | # Check whether --with-gmp-dir was given. |
5530 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5531 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5532 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5533 | fi | |
5534 | ||
4b1cb4fe DD |
5535 | |
5536 | ||
81ecdfbb RW |
5537 | # Check whether --with-gmp was given. |
5538 | if test "${with_gmp+set}" = set; then : | |
5539 | withval=$with_gmp; | |
5540 | fi | |
c6b750e1 | 5541 | |
4b1cb4fe | 5542 | |
e552509b | 5543 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5544 | if test "${with_gmp_include+set}" = set; then : |
5545 | withval=$with_gmp_include; | |
5546 | fi | |
c6b750e1 | 5547 | |
8a0d8a5c | 5548 | |
e552509b | 5549 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5550 | if test "${with_gmp_lib+set}" = set; then : |
5551 | withval=$with_gmp_lib; | |
5552 | fi | |
8a0d8a5c PB |
5553 | |
5554 | ||
4b1cb4fe | 5555 | |
11b04d1f DD |
5556 | if test "x$with_gmp" != x; then |
5557 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5558 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5559 | fi |
8a0d8a5c PB |
5560 | if test "x$with_gmp_include" != x; then |
5561 | gmpinc="-I$with_gmp_include $gmpinc" | |
5562 | fi | |
5563 | if test "x$with_gmp_lib" != x; then | |
5564 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5565 | fi | |
4b900473 | 5566 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5567 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5568 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5569 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5570 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5571 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5572 | # Do not test the gmp version. Assume that it is sufficient, since |
5573 | # it is in the source tree, and the library has not been built yet | |
5574 | # but it would be included on the link line in the version check below | |
5575 | # hence making the test fail. | |
5576 | have_gmp=yes | |
5577 | fi | |
4b1cb4fe | 5578 | |
ceb92e78 | 5579 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5580 | have_gmp=yes |
5581 | saved_CFLAGS="$CFLAGS" | |
5582 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5583 | # Check for the recommended and required versions of GMP. |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5585 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5586 | |
5587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5588 | /* end confdefs.h. */ |
5589 | #include "gmp.h" | |
5590 | int | |
5591 | main () | |
5592 | { | |
5593 | ||
5594 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5595 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5596 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5597 | choke me |
5598 | #endif | |
5599 | ||
5600 | ; | |
5601 | return 0; | |
5602 | } | |
5603 | _ACEOF | |
5604 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5606 | /* end confdefs.h. */ |
a6b5846e | 5607 | #include <gmp.h> |
c6b750e1 DJ |
5608 | int |
5609 | main () | |
5610 | { | |
4b1cb4fe | 5611 | |
a6b5846e KG |
5612 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5613 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5614 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5615 | choke me |
5616 | #endif | |
c6b750e1 DJ |
5617 | |
5618 | ; | |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
81ecdfbb RW |
5622 | if ac_fn_c_try_compile "$LINENO"; then : |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5624 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5625 | else |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5627 | $as_echo "buggy but acceptable" >&6; } | |
5628 | fi | |
5629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5630 | else |
81ecdfbb RW |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5632 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5633 | fi |
81ecdfbb | 5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5635 | |
e8a5fa9c | 5636 | # If we have GMP, check the MPFR version. |
4b900473 | 5637 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5638 | # Check for the recommended and required versions of MPFR. |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5640 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5642 | /* end confdefs.h. */ |
9b134994 | 5643 | #include <gmp.h> |
4b900473 | 5644 | #include <mpfr.h> |
c6b750e1 DJ |
5645 | int |
5646 | main () | |
5647 | { | |
9b134994 | 5648 | |
7ec59b9e | 5649 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5650 | choke me |
5651 | #endif | |
c6b750e1 DJ |
5652 | |
5653 | ; | |
5654 | return 0; | |
5655 | } | |
5656 | _ACEOF | |
81ecdfbb RW |
5657 | if ac_fn_c_try_compile "$LINENO"; then : |
5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5659 | /* end confdefs.h. */ |
4b1cb4fe | 5660 | #include <gmp.h> |
4b900473 | 5661 | #include <mpfr.h> |
c6b750e1 DJ |
5662 | int |
5663 | main () | |
5664 | { | |
9dbaa842 | 5665 | |
a6b5846e | 5666 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5667 | choke me |
5668 | #endif | |
e8a5fa9c RW |
5669 | |
5670 | ; | |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
81ecdfbb RW |
5674 | if ac_fn_c_try_compile "$LINENO"; then : |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5676 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5677 | else |
81ecdfbb RW |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5679 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5680 | fi |
81ecdfbb | 5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5682 | else |
81ecdfbb RW |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5684 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5685 | fi |
81ecdfbb | 5686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5687 | fi |
5688 | ||
5689 | # Check for the MPC header version. | |
d9b76ff9 | 5690 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5691 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5693 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5695 | /* end confdefs.h. */ |
5696 | #include <mpc.h> | |
5697 | int | |
5698 | main () | |
5699 | { | |
5700 | ||
a6b5846e KG |
5701 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5702 | choke me | |
5703 | #endif | |
5704 | ||
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
5709 | if ac_fn_c_try_compile "$LINENO"; then : | |
5710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5711 | /* end confdefs.h. */ | |
5712 | #include <mpc.h> | |
5713 | int | |
5714 | main () | |
5715 | { | |
5716 | ||
5717 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5718 | choke me |
5719 | #endif | |
5720 | ||
5721 | ; | |
5722 | return 0; | |
5723 | } | |
5724 | _ACEOF | |
81ecdfbb RW |
5725 | if ac_fn_c_try_compile "$LINENO"; then : |
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5727 | $as_echo "yes" >&6; } |
a6b5846e KG |
5728 | else |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5730 | $as_echo "buggy but acceptable" >&6; } | |
5731 | fi | |
5732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5733 | else |
81ecdfbb | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5735 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5736 | fi |
81ecdfbb | 5737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5738 | fi |
5739 | ||
5740 | # Now check the MPFR library. | |
5741 | if test x"$have_gmp" = xyes; then | |
5742 | saved_LIBS="$LIBS" | |
5743 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5745 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5747 | /* end confdefs.h. */ |
d9b76ff9 | 5748 | #include <mpc.h> |
e8a5fa9c RW |
5749 | int |
5750 | main () | |
5751 | { | |
5752 | ||
5753 | mpfr_t n; | |
5754 | mpfr_t x; | |
d9b76ff9 | 5755 | mpc_t c; |
e8a5fa9c RW |
5756 | int t; |
5757 | mpfr_init (n); | |
5758 | mpfr_init (x); | |
5759 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5760 | mpfr_erfc (n, x, GMP_RNDN); | |
5761 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5762 | mpfr_clear(n); |
5763 | mpfr_clear(x); | |
5764 | mpc_init2 (c, 53); | |
5765 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5766 | mpc_cosh (c, c, MPC_RNDNN); | |
5767 | mpc_pow (c, c, c, MPC_RNDNN); | |
5768 | mpc_acosh (c, c, MPC_RNDNN); | |
5769 | mpc_clear (c); | |
c6b750e1 DJ |
5770 | |
5771 | ; | |
5772 | return 0; | |
5773 | } | |
5774 | _ACEOF | |
81ecdfbb RW |
5775 | if ac_fn_c_try_link "$LINENO"; then : |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5777 | $as_echo "yes" >&6; } | |
c6b750e1 | 5778 | else |
81ecdfbb RW |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5780 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5781 | fi |
81ecdfbb RW |
5782 | rm -f core conftest.err conftest.$ac_objext \ |
5783 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5784 | LIBS="$saved_LIBS" |
5785 | fi | |
5786 | ||
4b900473 | 5787 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5788 | |
a6b5846e KG |
5789 | # The library versions listed in the error message below should match |
5790 | # the HARD-minimums enforced above. | |
4b900473 | 5791 | if test x$have_gmp != xyes; then |
d0ac1c44 | 5792 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5793 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5794 | their locations. Source code for these libraries can be found at | |
5795 | their respective hosting sites as well as at | |
5796 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5797 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5798 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5799 | make sure that you have installed both the libraries and the header | |
5800 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5801 | fi |
9dbaa842 DD |
5802 | fi |
5803 | ||
e8a5fa9c RW |
5804 | # Flags needed for both GMP, MPFR and/or MPC. |
5805 | ||
5806 | ||
5807 | ||
4b1cb4fe DD |
5808 | |
5809 | ||
5810 | ||
7ec59b9e | 5811 | |
b3676d82 | 5812 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5813 | |
b3676d82 EB |
5814 | # Check whether --with-stage1-libs was given. |
5815 | if test "${with_stage1_libs+set}" = set; then : | |
5816 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5817 | stage1_libs= | |
e8a5fa9c | 5818 | else |
b3676d82 | 5819 | stage1_libs=$withval |
e8a5fa9c RW |
5820 | fi |
5821 | else | |
68996839 | 5822 | stage1_libs= |
81ecdfbb RW |
5823 | fi |
5824 | ||
e8a5fa9c RW |
5825 | |
5826 | ||
b3676d82 | 5827 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5828 | |
b3676d82 EB |
5829 | # Check whether --with-stage1-ldflags was given. |
5830 | if test "${with_stage1_ldflags+set}" = set; then : | |
5831 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5832 | stage1_ldflags= | |
e8a5fa9c | 5833 | else |
b3676d82 | 5834 | stage1_ldflags=$withval |
e8a5fa9c RW |
5835 | fi |
5836 | else | |
b3676d82 EB |
5837 | stage1_ldflags= |
5838 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5839 | # if supported. But if the user explicitly specified the libraries to use, | |
5840 | # trust that they are doing what they want. | |
5841 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5842 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5843 | fi | |
81ecdfbb RW |
5844 | fi |
5845 | ||
e8a5fa9c RW |
5846 | |
5847 | ||
68996839 | 5848 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5849 | |
81ecdfbb RW |
5850 | # Check whether --with-boot-libs was given. |
5851 | if test "${with_boot_libs+set}" = set; then : | |
5852 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5853 | poststage1_libs= |
5854 | else | |
5855 | poststage1_libs=$withval | |
5856 | fi | |
5857 | else | |
68996839 | 5858 | poststage1_libs= |
81ecdfbb RW |
5859 | fi |
5860 | ||
e8a5fa9c RW |
5861 | |
5862 | ||
143754cd NC |
5863 | # Linker flags to use for stage2 and later builds. |
5864 | ||
5865 | # Check whether --with-boot-ldflags was given. | |
5866 | if test "${with_boot_ldflags+set}" = set; then : | |
5867 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5868 | poststage1_ldflags= | |
5869 | else | |
5870 | poststage1_ldflags=$withval | |
5871 | fi | |
5872 | else | |
5873 | poststage1_ldflags= | |
4f11b223 ILT |
5874 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5875 | # statically. But if the user explicitly specified the libraries to | |
5876 | # use, trust that they are doing what they want. | |
5877 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5878 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5879 | fi | |
5880 | fi | |
5881 | ||
5882 | ||
5883 | ||
4849dfd8 | 5884 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5885 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5886 | |
5887 | ||
7ec59b9e L |
5888 | # Check whether --with-isl was given. |
5889 | if test "${with_isl+set}" = set; then : | |
5890 | withval=$with_isl; | |
81ecdfbb | 5891 | fi |
e28c595f | 5892 | |
e28c595f | 5893 | |
1b6c0831 | 5894 | # Treat --without-isl as a request to disable |
8e71395b | 5895 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5896 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5897 | # Check for isl |
8e71395b L |
5898 | |
5899 | ||
7ec59b9e L |
5900 | # Check whether --with-isl-include was given. |
5901 | if test "${with_isl_include+set}" = set; then : | |
5902 | withval=$with_isl_include; | |
81ecdfbb RW |
5903 | fi |
5904 | ||
e28c595f | 5905 | |
7ec59b9e L |
5906 | # Check whether --with-isl-lib was given. |
5907 | if test "${with_isl_lib+set}" = set; then : | |
5908 | withval=$with_isl_lib; | |
81ecdfbb | 5909 | fi |
e28c595f | 5910 | |
e28c595f | 5911 | |
7ec59b9e L |
5912 | # Check whether --enable-isl-version-check was given. |
5913 | if test "${enable_isl_version_check+set}" = set; then : | |
5914 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5915 | else | |
5916 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5917 | fi |
5918 | ||
5919 | ||
7ec59b9e L |
5920 | # Initialize isllibs and islinc. |
5921 | case $with_isl in | |
5922 | no) | |
5923 | isllibs= | |
5924 | islinc= | |
5925 | ;; | |
5926 | "" | yes) | |
5927 | ;; | |
5928 | *) | |
5929 | isllibs="-L$with_isl/lib" | |
5930 | islinc="-I$with_isl/include" | |
5931 | ;; | |
5932 | esac | |
5933 | if test "x${with_isl_include}" != x ; then | |
5934 | islinc="-I$with_isl_include" | |
5935 | fi | |
5936 | if test "x${with_isl_lib}" != x; then | |
5937 | isllibs="-L$with_isl_lib" | |
5938 | fi | |
5939 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5940 | && test -d ${srcdir}/isl; then | |
5941 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5942 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5943 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5945 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 5946 | fi |
b123da99 | 5947 | |
1b6c0831 | 5948 | isllibs="${isllibs} -lisl" |
b123da99 | 5949 | |
e28c595f | 5950 | |
b3fc79f8 JBG |
5951 | |
5952 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5953 | _isl_saved_CFLAGS=$CFLAGS | |
5954 | _isl_saved_LDFLAGS=$LDFLAGS | |
5955 | _isl_saved_LIBS=$LIBS | |
5956 | ||
5957 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
5958 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5959 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 5960 | |
bf41f30d NC |
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
5962 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 5963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 5964 | /* end confdefs.h. */ |
bf41f30d | 5965 | #include <isl/schedule.h> |
b3fc79f8 JBG |
5966 | int |
5967 | main () | |
5968 | { | |
bf41f30d | 5969 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
5970 | ; |
5971 | return 0; | |
5972 | } | |
5973 | _ACEOF | |
1b6c0831 | 5974 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
5975 | gcc_cv_isl=yes |
5976 | else | |
5977 | gcc_cv_isl=no | |
5978 | fi | |
1b6c0831 L |
5979 | rm -f core conftest.err conftest.$ac_objext \ |
5980 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5982 | $as_echo "$gcc_cv_isl" >&6; } | |
5983 | ||
4849dfd8 | 5984 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
5986 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
5987 | fi |
5988 | ||
b3fc79f8 JBG |
5989 | CFLAGS=$_isl_saved_CFLAGS |
5990 | LDFLAGS=$_isl_saved_LDFLAGS | |
5991 | LIBS=$_isl_saved_LIBS | |
5992 | fi | |
5993 | ||
5994 | ||
e28c595f | 5995 | |
e28c595f | 5996 | |
7ec59b9e L |
5997 | |
5998 | ||
7ec59b9e L |
5999 | if test "x${with_isl}" = xno; then |
6000 | graphite_requested=no | |
6001 | elif test "x${with_isl}" != x \ | |
6002 | || test "x${with_isl_include}" != x \ | |
6003 | || test "x${with_isl_lib}" != x ; then | |
6004 | graphite_requested=yes | |
6005 | else | |
6006 | graphite_requested=no | |
b123da99 | 6007 | fi |
e28c595f | 6008 | |
e28c595f JM |
6009 | |
6010 | ||
7ec59b9e L |
6011 | if test "${gcc_cv_isl}" = no ; then |
6012 | isllibs= | |
6013 | islinc= | |
6014 | fi | |
e28c595f | 6015 | |
7ec59b9e L |
6016 | if test "${graphite_requested}" = yes \ |
6017 | && test "x${isllibs}" = x \ | |
6018 | && test "x${islinc}" = x ; then | |
e28c595f | 6019 | |
d0ac1c44 | 6020 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6021 | fi |
e552509b | 6022 | |
e28c595f | 6023 | |
e552509b ILT |
6024 | fi |
6025 | ||
4849dfd8 | 6026 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6027 | if test "x$with_isl" = xno || |
8e71395b | 6028 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6029 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6030 | islinc= |
7ec59b9e L |
6031 | fi |
6032 | ||
8e71395b L |
6033 | |
6034 | ||
6035 | ||
700d40ca ILT |
6036 | # Check for LTO support. |
6037 | # Check whether --enable-lto was given. | |
6038 | if test "${enable_lto+set}" = set; then : | |
6039 | enableval=$enable_lto; enable_lto=$enableval | |
6040 | else | |
6041 | enable_lto=yes; default_enable_lto=yes | |
6042 | fi | |
6043 | ||
6044 | ||
143754cd | 6045 | |
e49e5c92 DK |
6046 | |
6047 | ||
6048 | target_elf=no | |
6049 | case $target in | |
6050 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6051 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6052 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6053 | nvptx-*-none) | |
e49e5c92 DK |
6054 | target_elf=no |
6055 | ;; | |
6056 | *) | |
6057 | target_elf=yes | |
6058 | ;; | |
6059 | esac | |
6060 | ||
6061 | if test $target_elf = yes; then : | |
74cea91b DK |
6062 | # ELF platforms build the lto-plugin always. |
6063 | build_lto_plugin=yes | |
e49e5c92 | 6064 | |
e49e5c92 DK |
6065 | else |
6066 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6067 | case $target in |
bf41f30d | 6068 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6069 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6070 | *) enable_lto=no ;; |
6071 | esac | |
e49e5c92 | 6072 | else |
29821356 RW |
6073 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6074 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6075 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6076 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6077 | # -flto it won't be needed until after installation anyway. | |
6078 | case $target in | |
52cf9762 | 6079 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6080 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6081 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6082 | fi |
6083 | ;; | |
6084 | esac | |
6085 | fi | |
a8eb3f0a | 6086 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6087 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6088 | case $target in |
74cea91b | 6089 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6090 | *) ;; |
6091 | esac | |
74cea91b | 6092 | |
e49e5c92 DK |
6093 | fi |
6094 | ||
700d40ca | 6095 | |
1b6c0831 L |
6096 | # Check whether --enable-linker-plugin-configure-flags was given. |
6097 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6098 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6099 | else | |
6100 | extra_linker_plugin_configure_flags= | |
6101 | fi | |
6102 | ||
6103 | ||
6104 | # Check whether --enable-linker-plugin-flags was given. | |
6105 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6106 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6107 | else | |
6108 | extra_linker_plugin_flags= | |
6109 | fi | |
6110 | ||
6111 | ||
6112 | ||
bf41f30d NC |
6113 | # Enable --enable-host-shared. |
6114 | # Checked early to determine whether jit is an 'all' language | |
6115 | # Check whether --enable-host-shared was given. | |
6116 | if test "${enable_host_shared+set}" = set; then : | |
6117 | enableval=$enable_host_shared; host_shared=$enableval | |
6118 | else | |
6119 | host_shared=no | |
6120 | fi | |
6121 | ||
6122 | ||
e28c595f | 6123 | |
7ec59b9e | 6124 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6125 | stage1_languages=,c, |
1d39f329 | 6126 | |
e8a5fa9c | 6127 | # Target libraries that we bootstrap. |
2aa2364a | 6128 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6129 | |
9e07f89d NN |
6130 | # Figure out what language subdirectories are present. |
6131 | # Look if the user specified --enable-languages="..."; if not, use | |
6132 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6133 | # go away some day. | |
6134 | # NB: embedded tabs in this IF block -- do not untabify | |
6135 | if test -d ${srcdir}/gcc; then | |
6136 | if test x"${enable_languages+set}" != xset; then | |
6137 | if test x"${LANGUAGES+set}" = xset; then | |
6138 | enable_languages="${LANGUAGES}" | |
136bb21f | 6139 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6140 | else |
bf41f30d | 6141 | enable_languages=default |
9e07f89d NN |
6142 | fi |
6143 | else | |
6144 | if test x"${enable_languages}" = x || | |
6145 | test x"${enable_languages}" = xyes; | |
6146 | then | |
136bb21f | 6147 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6148 | exit 1 |
6149 | fi | |
6150 | fi | |
6151 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6152 | ||
096f7d00 DE |
6153 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6154 | # and make the substitution. | |
6155 | case ,${enable_languages}, in | |
6156 | *,f95,*) | |
136bb21f | 6157 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6158 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6159 | ;; | |
6160 | esac | |
6161 | ||
7ec59b9e L |
6162 | # If bootstrapping, C++ must be enabled. |
6163 | case ",$enable_languages,:$enable_bootstrap" in | |
6164 | *,c++,*:*) ;; | |
6165 | *:yes) | |
ffdd6afc ILT |
6166 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6167 | enable_languages="${enable_languages},c++" | |
6168 | else | |
d0ac1c44 | 6169 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6170 | fi |
6171 | ;; | |
6172 | esac | |
6173 | ||
9e07f89d NN |
6174 | # First scan to see if an enabled language requires some other language. |
6175 | # We assume that a given config-lang.in will list all the language | |
6176 | # front ends it requires, even if some are required indirectly. | |
6177 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6178 | case ${lang_frag} in | |
6179 | ..) ;; | |
6180 | # The odd quoting in the next line works around | |
6181 | # an apparent bug in bash 1.12 on linux. | |
6182 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6183 | *) | |
e552509b ILT |
6184 | # From the config-lang.in, get $language, $lang_requires, and |
6185 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6186 | language= |
6187 | lang_requires= | |
e552509b | 6188 | lang_requires_boot_languages= |
bf41f30d NC |
6189 | # set srcdir during sourcing lang_frag to the gcc dir. |
6190 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6191 | # polutes this shell | |
6192 | saved_srcdir=${srcdir} | |
6193 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6194 | srcdir=${saved_srcdir} | |
e552509b | 6195 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6196 | case ,${enable_languages}, in |
6197 | *,$other,*) ;; | |
bf41f30d | 6198 | *,default,*) ;; |
9e07f89d NN |
6199 | *,all,*) ;; |
6200 | *,$language,*) | |
6201 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6202 | enable_languages="${enable_languages},${other}" | |
6203 | ;; | |
6204 | esac | |
6205 | done | |
e552509b ILT |
6206 | for other in ${lang_requires_boot_languages} ; do |
6207 | if test "$other" != "c"; then | |
6208 | case ,${enable_stage1_languages}, in | |
6209 | *,$other,*) ;; | |
bf41f30d | 6210 | *,default,*) ;; |
e552509b ILT |
6211 | *,all,*) ;; |
6212 | *) | |
6213 | case ,${enable_languages}, in | |
6214 | *,$language,*) | |
6215 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6216 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6217 | ;; | |
6218 | esac | |
6219 | ;; | |
6220 | esac | |
6221 | fi | |
6222 | done | |
9e07f89d NN |
6223 | ;; |
6224 | esac | |
6225 | done | |
6226 | ||
9b134994 | 6227 | new_enable_languages=,c, |
700d40ca ILT |
6228 | |
6229 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6230 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6231 | case ,${enable_languages}, in |
6232 | *,lto,*) ;; | |
6233 | *) enable_languages="${enable_languages},lto" ;; | |
6234 | esac | |
a8eb3f0a | 6235 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6236 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6237 | fi |
6238 | fi | |
6239 | ||
1b6c0831 L |
6240 | # If we're building an offloading compiler, add the LTO front end. |
6241 | if test x"$enable_as_accelerator_for" != x ; then | |
6242 | case ,${enable_languages}, in | |
6243 | *,lto,*) ;; | |
6244 | *) enable_languages="${enable_languages},lto" ;; | |
6245 | esac | |
6246 | fi | |
700d40ca | 6247 | |
bf41f30d | 6248 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6249 | potential_languages=,c, |
9e07f89d | 6250 | |
9e1a94f4 ILT |
6251 | enabled_target_libs= |
6252 | disabled_target_libs= | |
6253 | ||
9e07f89d NN |
6254 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6255 | case ${lang_frag} in | |
6256 | ..) ;; | |
6257 | # The odd quoting in the next line works around | |
6258 | # an apparent bug in bash 1.12 on linux. | |
6259 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6260 | *) | |
c6b750e1 | 6261 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6262 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6263 | language= |
6264 | target_libs= | |
6265 | lang_dirs= | |
64ce424c | 6266 | subdir_requires= |
9b134994 PB |
6267 | boot_language=no |
6268 | build_by_default=yes | |
bf41f30d NC |
6269 | # set srcdir during sourcing. See above about save & restore |
6270 | saved_srcdir=${srcdir} | |
6271 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6272 | srcdir=${saved_srcdir} | |
9b134994 PB |
6273 | if test x${language} = x; then |
6274 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6275 | exit 1 | |
6276 | fi | |
6277 | ||
ffdd6afc | 6278 | if test "$language" = "c++"; then |
7ec59b9e | 6279 | boot_language=yes |
e8a5fa9c RW |
6280 | fi |
6281 | ||
8e71395b | 6282 | add_this_lang=no |
bf41f30d NC |
6283 | # C is always enabled, so no need to add it again |
6284 | if test "$language" != "c"; then | |
6285 | case ,${enable_languages}, in | |
6286 | *,${language},*) | |
6287 | # Language was explicitly selected; include it | |
7ec59b9e | 6288 | add_this_lang=yes |
bf41f30d NC |
6289 | ;; |
6290 | *,all,*) | |
6291 | # All languages are enabled | |
6292 | add_this_lang=all | |
6293 | ;; | |
6294 | *,default,*) | |
6295 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6296 | add_this_lang=${build_by_default} |
bf41f30d NC |
6297 | ;; |
6298 | esac | |
6299 | fi | |
4b1cb4fe | 6300 | |
64ce424c | 6301 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6302 | for i in $subdir_requires; do |
3d3adb43 | 6303 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6304 | case ${add_this_lang} in |
6305 | yes) | |
64ce424c | 6306 | # Specifically requested language; tell them. |
d0ac1c44 | 6307 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6308 | ;; |
bf41f30d NC |
6309 | all) |
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6311 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6312 | add_this_lang=unsupported | |
6313 | ;; | |
64ce424c PB |
6314 | *) |
6315 | # Silently disable. | |
9b134994 | 6316 | add_this_lang=unsupported |
64ce424c PB |
6317 | ;; |
6318 | esac | |
6319 | done | |
6320 | ||
9b134994 | 6321 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6322 | case ${add_this_lang}:${language}:${have_gnat} in |
6323 | yes:ada:no) | |
9b134994 | 6324 | # Specifically requested language; tell them. |
d0ac1c44 | 6325 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6326 | ;; |
bf41f30d NC |
6327 | all:ada:no) |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6329 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6330 | add_this_lang=unsupported | |
6331 | ;; | |
9b134994 PB |
6332 | *:ada:no) |
6333 | # Silently disable. | |
6334 | add_this_lang=unsupported | |
6335 | ;; | |
6336 | esac | |
6337 | ||
bf41f30d NC |
6338 | # Disable jit if -enable-host-shared not specified |
6339 | case ${add_this_lang}:${language}:${host_shared} in | |
6340 | yes:jit:no) | |
6341 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6342 | as_fn_error $? " |
bf41f30d NC |
6343 | Enabling language \"jit\" requires --enable-host-shared. |
6344 | ||
6345 | --enable-host-shared typically slows the rest of the compiler down by | |
6346 | a few %, so you must explicitly enable it. | |
6347 | ||
6348 | If you want to build both the jit and the regular compiler, it is often | |
6349 | best to do this via two separate configure/builds, in separate | |
6350 | directories, to avoid imposing the performance cost of | |
6351 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6352 | ;; | |
6353 | all:jit:no) | |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6355 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6356 | add_this_lang=unsupported | |
6357 | ;; | |
6358 | *:jit:no) | |
6359 | # Silently disable. | |
6360 | add_this_lang=unsupported | |
6361 | ;; | |
6362 | esac | |
6363 | ||
6364 | # Disable a language that is unsupported by the target. | |
6365 | case "${add_this_lang}: $unsupported_languages " in | |
6366 | no:*) ;; | |
6367 | unsupported:*) ;; | |
6368 | *:*" $language "*) | |
6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6370 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6371 | add_this_lang=unsupported |
59f7ec45 HPN |
6372 | ;; |
6373 | esac | |
6374 | ||
4b1cb4fe | 6375 | case $add_this_lang in |
9b134994 | 6376 | unsupported) |
9e07f89d | 6377 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6378 | disabled_target_libs="$disabled_target_libs $target_libs" |
6379 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6380 | ;; |
9b134994 PB |
6381 | no) |
6382 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6383 | disabled_target_libs="$disabled_target_libs $target_libs" |
6384 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6385 | potential_languages="${potential_languages}${language}," |
6386 | ;; | |
bf41f30d | 6387 | all|yes) |
9b134994 PB |
6388 | new_enable_languages="${new_enable_languages}${language}," |
6389 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6390 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6391 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6392 | case "${boot_language}:,$enable_stage1_languages," in |
6393 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6394 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6395 | case ",$stage1_languages," in |
6396 | *,$language,* | ,yes, | ,all,) ;; | |
6397 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6398 | esac | |
e8a5fa9c RW |
6399 | # We need to bootstrap any supporting libraries. |
6400 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6401 | ;; |
6402 | esac | |
6403 | ;; | |
9e07f89d NN |
6404 | esac |
6405 | ;; | |
6406 | esac | |
6407 | done | |
6408 | ||
9e1a94f4 ILT |
6409 | # Add target libraries which are only needed for disabled languages |
6410 | # to noconfigdirs. | |
6411 | if test -n "$disabled_target_libs"; then | |
6412 | for dir in $disabled_target_libs; do | |
6413 | case " $enabled_target_libs " in | |
6414 | *" ${dir} "*) ;; | |
6415 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6416 | esac | |
6417 | done | |
6418 | fi | |
6419 | ||
81ecdfbb RW |
6420 | # Check whether --enable-stage1-languages was given. |
6421 | if test "${enable_stage1_languages+set}" = set; then : | |
6422 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6423 | ,no,|,,) |
6424 | # Set it to something that will have no effect in the loop below | |
6425 | enable_stage1_languages=c ;; | |
6426 | ,yes,) | |
6427 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6428 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6429 | *,all,*) | |
6430 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6431 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6432 | esac | |
6433 | ||
6434 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6435 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6436 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6437 | case $potential_languages in | |
6438 | *,$i,*) | |
6439 | case $stage1_languages in | |
6440 | *,$i,*) ;; | |
6441 | *) stage1_languages="$stage1_languages$i," ;; | |
6442 | esac ;; | |
6443 | *) | |
6444 | case $missing_languages in | |
6445 | *,$i,*) ;; | |
6446 | *) missing_languages="$missing_languages$i," ;; | |
6447 | esac ;; | |
6448 | esac | |
6449 | done | |
81ecdfbb RW |
6450 | fi |
6451 | ||
9b134994 PB |
6452 | |
6453 | # Remove leading/trailing commas that were added for simplicity | |
6454 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6455 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6456 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6457 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6458 | ||
9e07f89d | 6459 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6460 | as_fn_error $? " |
27258dd4 | 6461 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6462 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6463 | fi |
9e07f89d NN |
6464 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6465 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6466 | enable_languages="$new_enable_languages" |
9e07f89d | 6467 | fi |
9b134994 | 6468 | |
c6b750e1 | 6469 | |
81ec575a | 6470 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6471 | fi |
6472 | ||
a6df5a19 PB |
6473 | # Handle --disable-<component> generically. |
6474 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6475 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6476 | varname=`echo $dirname | sed -e s/+/_/g` |
6477 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6478 | noconfigdirs="$noconfigdirs $dir" |
6479 | fi | |
6480 | done | |
6481 | ||
4f0ef2d8 | 6482 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6483 | # Check whether --enable-objc-gc was given. |
6484 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6485 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6486 | fi |
6487 | ||
4f0ef2d8 | 6488 | |
05a13254 NC |
6489 | # Check whether --with-target-bdw-gc was given. |
6490 | if test "${with_target_bdw_gc+set}" = set; then : | |
6491 | withval=$with_target_bdw_gc; | |
6492 | fi | |
6493 | ||
6494 | ||
6495 | # Check whether --with-target-bdw-gc-include was given. | |
6496 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6497 | withval=$with_target_bdw_gc_include; | |
6498 | fi | |
6499 | ||
6500 | ||
6501 | # Check whether --with-target-bdw-gc-lib was given. | |
6502 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6503 | withval=$with_target_bdw_gc_lib; | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6509 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6510 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6512 | $as_echo "using bdw-gc in default locations" >&6; } | |
6513 | else | |
6514 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6515 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6516 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6517 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6518 | else |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6520 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6521 | fi |
05a13254 | 6522 | fi |
4f0ef2d8 CD |
6523 | esac |
6524 | ||
bf41f30d | 6525 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6526 | case ,${enable_languages}, in |
1b6c0831 | 6527 | *,c++,*) |
bf41f30d | 6528 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6529 | case "${noconfigdirs}" in |
6530 | *target-libstdc++-v3*) | |
bf41f30d | 6531 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6532 | ;; |
6533 | *) ;; | |
6534 | esac | |
6535 | ;; | |
7ec59b9e | 6536 | *) |
bf41f30d | 6537 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6538 | ;; |
6539 | esac | |
6540 | ||
caeba88f AL |
6541 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6542 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6543 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6544 | ||
6545 | notsupp="" | |
6546 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6547 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6548 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6549 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6550 | if test -r $srcdir/$dirname/configure ; then | |
6551 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6552 | true | |
6553 | else | |
6554 | notsupp="$notsupp $dir" | |
6555 | fi | |
6556 | fi | |
6557 | fi | |
caeba88f AL |
6558 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6559 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6560 | if test -r $srcdir/$dirname/configure ; then | |
6561 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6562 | true | |
6563 | else | |
6564 | notsupp="$notsupp $dir" | |
6565 | fi | |
6566 | fi | |
6567 | fi | |
9e07f89d NN |
6568 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6569 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6570 | if test -r $srcdir/$dirname/configure ; then | |
6571 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6572 | true | |
6573 | else | |
6574 | notsupp="$notsupp $dir" | |
6575 | fi | |
6576 | fi | |
6577 | fi | |
6578 | done | |
6579 | ||
9e07f89d NN |
6580 | # Quietly strip out all directories which aren't configurable in this tree. |
6581 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6582 | # is now the case. | |
6a9cf61e PB |
6583 | build_configdirs_all="$build_configdirs" |
6584 | build_configdirs= | |
6585 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6586 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6587 | if test -f ${srcdir}/$j/configure ; then |
6588 | build_configdirs="${build_configdirs} $i" | |
6589 | fi | |
6590 | done | |
6591 | ||
9e07f89d NN |
6592 | configdirs_all="$configdirs" |
6593 | configdirs= | |
6594 | for i in ${configdirs_all} ; do | |
6595 | if test -f ${srcdir}/$i/configure ; then | |
6596 | configdirs="${configdirs} $i" | |
6597 | fi | |
6598 | done | |
6a9cf61e | 6599 | |
9e07f89d NN |
6600 | target_configdirs_all="$target_configdirs" |
6601 | target_configdirs= | |
6602 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6603 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6604 | if test -f ${srcdir}/$j/configure ; then |
6605 | target_configdirs="${target_configdirs} $i" | |
6606 | fi | |
6607 | done | |
6608 | ||
1b6c0831 L |
6609 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6610 | # so we have to add it after the preceding checks. | |
6611 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6612 | then | |
6613 | case " $configdirs " in | |
6614 | *" libiberty "*) | |
6615 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6616 | configdirs="$configdirs libiberty-linker-plugin" | |
6617 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6618 | --with-libiberty=../libiberty-linker-plugin";; | |
6619 | *) | |
d0ac1c44 | 6620 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6621 | esac |
6622 | fi | |
6623 | ||
6624 | # Sometimes we have special requirements for the host libiberty. | |
6625 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6626 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6627 | case " $configdirs " in |
6628 | *" lto-plugin "* | *" libcc1 "*) | |
6629 | # When these are to be built as shared libraries, the same applies to | |
6630 | # libiberty. | |
6631 | extra_host_libiberty_configure_flags=--enable-shared | |
6632 | ;; | |
e81d5d05 L |
6633 | *" bfd "*) |
6634 | # When bfd is to be built as a shared library, the same applies to | |
6635 | # zlib. | |
6636 | if test "$enable_shared" = "yes"; then | |
6637 | extra_host_zlib_configure_flags=--enable-host-shared | |
6638 | fi | |
6639 | ;; | |
1b6c0831 L |
6640 | esac |
6641 | ||
6642 | ||
e81d5d05 | 6643 | |
9e07f89d NN |
6644 | # Produce a warning message for the subdirs we can't configure. |
6645 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6646 | # FSF releases, it's important to let people know when their machine isn't | |
6647 | # supported by the one or two programs in a package. | |
6648 | ||
6649 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6650 | # If $appdirs is non-empty, at least one of those directories must still | |
6651 | # be configured, or we error out. (E.g., if the gas release supports a | |
6652 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6653 | # pretend that all is well.) | |
6654 | if test -n "$appdirs" ; then | |
6655 | for dir in $appdirs ; do | |
6656 | if test -r $dir/Makefile.in ; then | |
6657 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6658 | appdirs="" | |
6659 | break | |
6660 | fi | |
6a9cf61e | 6661 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6662 | appdirs="" |
6663 | break | |
6664 | fi | |
6665 | fi | |
6666 | done | |
6667 | if test -n "$appdirs" ; then | |
6668 | echo "*** This configuration is not supported by this package." 1>&2 | |
6669 | exit 1 | |
6670 | fi | |
6671 | fi | |
6672 | # Okay, some application will build, or we don't care to check. Still | |
6673 | # notify of subdirs not getting built. | |
6674 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6675 | echo " ${notsupp}" 1>&2 | |
6676 | echo " (Any other directories should still work fine.)" 1>&2 | |
6677 | fi | |
6678 | ||
6679 | case "$host" in | |
6680 | *msdosdjgpp*) | |
6681 | enable_gdbtk=no ;; | |
6682 | esac | |
6683 | ||
18f6b6ee PB |
6684 | # To find our prefix, in gcc_cv_tool_prefix. |
6685 | ||
6686 | # The user is always right. | |
6687 | if test "${PATH_SEPARATOR+set}" != set; then | |
6688 | echo "#! /bin/sh" >conf$$.sh | |
6689 | echo "exit 0" >>conf$$.sh | |
6690 | chmod +x conf$$.sh | |
6691 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6692 | PATH_SEPARATOR=';' | |
6693 | else | |
6694 | PATH_SEPARATOR=: | |
6695 | fi | |
6696 | rm -f conf$$.sh | |
6697 | fi | |
6698 | ||
6699 | ||
bf41f30d NC |
6700 | get_gcc_base_ver="cat" |
6701 | ||
6702 | # Check whether --with-gcc-major-version-only was given. | |
6703 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6704 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6705 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6706 | fi |
6707 | ||
6708 | fi | |
6709 | ||
6710 | ||
6711 | ||
6712 | ||
6713 | ||
18f6b6ee PB |
6714 | |
6715 | if test "x$exec_prefix" = xNONE; then | |
6716 | if test "x$prefix" = xNONE; then | |
6717 | gcc_cv_tool_prefix=$ac_default_prefix | |
6718 | else | |
6719 | gcc_cv_tool_prefix=$prefix | |
6720 | fi | |
6721 | else | |
6722 | gcc_cv_tool_prefix=$exec_prefix | |
6723 | fi | |
6724 | ||
6725 | # If there is no compiler in the tree, use the PATH only. In any | |
6726 | # case, if there is no compiler in the tree nobody should use | |
6727 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6728 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6729 | if test x$with_gcc_major_version_only = xyes ; then |
6730 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6731 | else | |
6732 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6733 | fi | |
18f6b6ee PB |
6734 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6735 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6736 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6737 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6738 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6739 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6740 | else | |
6741 | gcc_cv_tool_dirs= | |
6742 | fi | |
6743 | ||
6744 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6745 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6746 | fi | |
6747 | ||
6748 | ||
6749 | ||
9e07f89d NN |
6750 | copy_dirs= |
6751 | ||
c6b750e1 | 6752 | |
81ecdfbb RW |
6753 | # Check whether --with-build-sysroot was given. |
6754 | if test "${with_build_sysroot+set}" = set; then : | |
6755 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6756 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6757 | fi | |
6758 | else | |
6759 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6760 | fi |
a19b6204 MM |
6761 | |
6762 | ||
8a6ee3ab | 6763 | |
81ecdfbb RW |
6764 | |
6765 | # Check whether --with-debug-prefix-map was given. | |
6766 | if test "${with_debug_prefix_map+set}" = set; then : | |
6767 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6768 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6769 | for debug_map in $withval; do | |
6770 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6771 | done | |
6772 | fi | |
6773 | else | |
6774 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6775 | fi |
6776 | ||
8a6ee3ab JM |
6777 | |
6778 | ||
7f6ef0c0 PB |
6779 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6780 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6781 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6782 | # We want to ensure that TARGET libraries (which we know are built with | |
6783 | # gcc) are built with "-O2 -g", so include those options when setting | |
6784 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6785 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6786 | if test "x${is_cross_compiler}" = xyes; then |
6787 | CFLAGS_FOR_TARGET="-g -O2" | |
6788 | else | |
6789 | CFLAGS_FOR_TARGET=$CFLAGS | |
6790 | case " $CFLAGS " in | |
6791 | *" -O2 "*) ;; | |
6792 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6793 | esac | |
6794 | case " $CFLAGS " in | |
6795 | *" -g "* | *" -g3 "*) ;; | |
6796 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6797 | esac | |
6798 | fi | |
7f6ef0c0 PB |
6799 | fi |
6800 | ||
6801 | ||
6802 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6803 | if test "x${is_cross_compiler}" = xyes; then |
6804 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6805 | else | |
6806 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6807 | case " $CXXFLAGS " in | |
6808 | *" -O2 "*) ;; | |
6809 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6810 | esac | |
6811 | case " $CXXFLAGS " in | |
6812 | *" -g "* | *" -g3 "*) ;; | |
6813 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6814 | esac | |
6815 | fi | |
7f6ef0c0 PB |
6816 | fi |
6817 | ||
6818 | ||
91c1f14c DK |
6819 | |
6820 | ||
9e07f89d NN |
6821 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6822 | # the named directory are copied to $(tooldir)/sys-include. | |
6823 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6824 | if test x${is_cross_compiler} = xno ; then | |
6825 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6826 | exit 1 | |
6827 | fi | |
6828 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6829 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6830 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6831 | fi |
6832 | fi | |
6833 | ||
6834 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6835 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6836 | # are permitted. | |
6837 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6838 | if test x${is_cross_compiler} = xno ; then | |
6839 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6840 | exit 1 | |
6841 | fi | |
6842 | if test x"${with_libs}" != xyes ; then | |
6843 | # Copy the libraries in reverse order, so that files in the first named | |
6844 | # library override files in subsequent libraries. | |
18f6b6ee | 6845 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6846 | for l in ${with_libs}; do |
c6b750e1 | 6847 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6848 | done |
6849 | fi | |
6850 | fi | |
6851 | ||
700d40ca | 6852 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6853 | # |
6854 | # This is done by determining whether or not the appropriate directory | |
6855 | # is available, and by checking whether or not specific configurations | |
6856 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6857 | # |
6858 | # The command line options always override the explicit settings in | |
136bb21f | 6859 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6860 | # |
c6b750e1 | 6861 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6862 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6863 | # --without-gnu-ld options for the configure script. Similarly, if |
6864 | # the default is to use the included zlib and you don't want to do that, | |
6865 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6866 | |
6867 | if test x${use_gnu_as} = x && | |
6868 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6869 | with_gnu_as=yes | |
6870 | extra_host_args="$extra_host_args --with-gnu-as" | |
6871 | fi | |
6872 | ||
6873 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6874 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6875 | with_gnu_ld=yes |
6876 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6877 | fi | |
6878 | ||
700d40ca ILT |
6879 | if test x${use_included_zlib} = x && |
6880 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6881 | : | |
6882 | else | |
6883 | with_system_zlib=yes | |
6884 | extra_host_args="$extra_host_args --with-system-zlib" | |
6885 | fi | |
6886 | ||
2429c060 PB |
6887 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6888 | # can detect this case. | |
6889 | ||
6890 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6891 | with_newlib=yes | |
6892 | extra_host_args="$extra_host_args --with-newlib" | |
6893 | fi | |
6894 | ||
9e07f89d NN |
6895 | # Handle ${copy_dirs} |
6896 | set fnord ${copy_dirs} | |
6897 | shift | |
6898 | while test $# != 0 ; do | |
6899 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6900 | : | |
6901 | else | |
6902 | echo Copying $1 to $2 | |
6903 | ||
6904 | # Use the install script to create the directory and all required | |
6905 | # parent directories. | |
6906 | if test -d $2 ; then | |
6907 | : | |
6908 | else | |
6909 | echo >config.temp | |
6910 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6911 | fi | |
6912 | ||
6913 | # Copy the directory, assuming we have tar. | |
6914 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6915 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6916 | ||
6917 | # It is the responsibility of the user to correctly adjust all | |
6918 | # symlinks. If somebody can figure out how to handle them correctly | |
6919 | # here, feel free to add the code. | |
6920 | ||
6921 | echo $1 > $2/COPIED | |
6922 | fi | |
6923 | shift; shift | |
6924 | done | |
6925 | ||
2429c060 PB |
6926 | # Determine a target-dependent exec_prefix that the installed |
6927 | # gcc will search in. Keep this list sorted by triplet, with | |
6928 | # the *-*-osname triplets last. | |
6929 | md_exec_prefix= | |
6930 | case "${target}" in | |
521ec477 | 6931 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6932 | md_exec_prefix=/dev/env/DJDIR/bin |
6933 | ;; | |
2429c060 | 6934 | *-*-hpux* | \ |
2429c060 | 6935 | *-*-nto-qnx* | \ |
1f111696 | 6936 | *-*-solaris2*) |
2429c060 PB |
6937 | md_exec_prefix=/usr/ccs/bin |
6938 | ;; | |
6939 | esac | |
6940 | ||
a0da8069 NN |
6941 | extra_arflags_for_target= |
6942 | extra_nmflags_for_target= | |
6943 | extra_ranlibflags_for_target= | |
6944 | target_makefile_frag=/dev/null | |
6945 | case "${target}" in | |
77d7106f AM |
6946 | spu-*-*) |
6947 | target_makefile_frag="config/mt-spu" | |
6948 | ;; | |
a9d58c06 | 6949 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6950 | target_makefile_frag="config/mt-sde" |
6951 | ;; | |
f3b1e08e RS |
6952 | mipsisa*-*-elfoabi*) |
6953 | target_makefile_frag="config/mt-mips-elfoabi" | |
6954 | ;; | |
e7c8859c RS |
6955 | mips*-*-*linux* | mips*-*-gnu*) |
6956 | target_makefile_frag="config/mt-mips-gnu" | |
6957 | ;; | |
d9e042ac SL |
6958 | nios2-*-elf*) |
6959 | target_makefile_frag="config/mt-nios2-elf" | |
6960 | ;; | |
bf41f30d NC |
6961 | *-*-linux-android*) |
6962 | target_makefile_frag="config/mt-android" | |
6963 | ;; | |
29383458 | 6964 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6965 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6966 | ;; |
6967 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6968 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6969 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6970 | # harmless if we're using GNU nm or ar. | |
6971 | extra_arflags_for_target=" -X32_64" | |
6972 | extra_nmflags_for_target=" -B -X32_64" | |
6973 | ;; | |
a0da8069 NN |
6974 | esac |
6975 | ||
6976 | alphaieee_frag=/dev/null | |
6977 | case $target in | |
6978 | alpha*-*-*) | |
6979 | # This just makes sure to use the -mieee option to build target libs. | |
6980 | # This should probably be set individually by each library. | |
6981 | alphaieee_frag="config/mt-alphaieee" | |
6982 | ;; | |
6983 | esac | |
6984 | ||
6985 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6986 | # the target libraries, similarly if it is not specified, use -Os | |
6987 | # on selected platforms. | |
6988 | ospace_frag=/dev/null | |
6989 | case "${enable_target_optspace}:${target}" in | |
6990 | yes:*) | |
6991 | ospace_frag="config/mt-ospace" | |
6992 | ;; | |
6993 | :d30v-*) | |
6994 | ospace_frag="config/mt-d30v" | |
6995 | ;; | |
16beab3d | 6996 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
6997 | ospace_frag="config/mt-ospace" |
6998 | ;; | |
6999 | no:* | :*) | |
7000 | ;; | |
7001 | *) | |
7002 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7003 | ;; | |
7004 | esac | |
7005 | ||
a0da8069 NN |
7006 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7007 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7008 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7009 | build_tooldir=${tooldir} |
7010 | ||
a0da8069 NN |
7011 | # Create a .gdbinit file which runs the one in srcdir |
7012 | # and tells GDB to look there for source files. | |
7013 | ||
7014 | if test -r ${srcdir}/.gdbinit ; then | |
7015 | case ${srcdir} in | |
7016 | .) ;; | |
7017 | *) cat > ./.gdbinit <<EOF | |
7018 | # ${NO_EDIT} | |
7019 | dir ${srcdir} | |
7020 | dir . | |
7021 | source ${srcdir}/.gdbinit | |
7022 | EOF | |
7023 | ;; | |
7024 | esac | |
7025 | fi | |
7026 | ||
a0da8069 NN |
7027 | # Make sure that the compiler is able to generate an executable. If it |
7028 | # can't, we are probably in trouble. We don't care whether we can run the | |
7029 | # executable--we might be using a cross compiler--we only care whether it | |
7030 | # can be created. At this point the main configure script has set CC. | |
7031 | we_are_ok=no | |
7032 | echo "int main () { return 0; }" > conftest.c | |
7033 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7034 | if test $? = 0 ; then | |
7035 | if test -s conftest || test -s conftest.exe ; then | |
7036 | we_are_ok=yes | |
7037 | fi | |
c6b750e1 | 7038 | fi |
a0da8069 NN |
7039 | case $we_are_ok in |
7040 | no) | |
7041 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7042 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7043 | rm -f conftest* | |
7044 | exit 1 | |
7045 | ;; | |
7046 | esac | |
7047 | rm -f conftest* | |
7048 | ||
3bbd2f8f | 7049 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7050 | case "${host}" in |
7051 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7052 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7053 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7054 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7055 | esac | |
7056 | ||
3bbd2f8f | 7057 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7058 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7059 | # built executables to PATH. | |
3bbd2f8f AL |
7060 | if test "$RPATH_ENVVAR" = PATH; then |
7061 | GCC_SHLIB_SUBDIR=/shlib | |
7062 | else | |
7063 | GCC_SHLIB_SUBDIR= | |
7064 | fi | |
7065 | ||
730af8ee | 7066 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7067 | case $enable_bootstrap in | |
7068 | yes) | |
7069 | bootstrap_suffix=bootstrap | |
7070 | BUILD_CONFIG=bootstrap-debug | |
7071 | ;; | |
7072 | no) | |
7073 | bootstrap_suffix=no-bootstrap | |
7074 | BUILD_CONFIG= | |
7075 | ;; | |
7076 | esac | |
7077 | ||
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7079 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7080 | ||
7081 | ||
7082 | # Check whether --with-build-config was given. | |
7083 | if test "${with_build_config+set}" = set; then : | |
7084 | withval=$with_build_config; case $with_build_config in | |
7085 | yes) with_build_config= ;; | |
7086 | no) with_build_config= BUILD_CONFIG= ;; | |
7087 | esac | |
7088 | fi | |
7089 | ||
7090 | ||
7091 | if test "x${with_build_config}" != x; then | |
7092 | BUILD_CONFIG=$with_build_config | |
7093 | else | |
7094 | case $BUILD_CONFIG in | |
7095 | bootstrap-debug) | |
7096 | if echo "int f (void) { return 0; }" > conftest.c && | |
7097 | ${CC} -c conftest.c && | |
7098 | mv conftest.o conftest.o.g0 && | |
7099 | ${CC} -c -g conftest.c && | |
7100 | mv conftest.o conftest.o.g && | |
7101 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7102 | : | |
7103 | else | |
7104 | BUILD_CONFIG= | |
7105 | fi | |
7106 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7107 | ;; | |
7108 | esac | |
7109 | fi | |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7111 | $as_echo "$BUILD_CONFIG" >&6; } | |
7112 | ||
7113 | ||
7114 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7116 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7117 | # Check whether --enable-vtable-verify was given. | |
7118 | if test "${enable_vtable_verify+set}" = set; then : | |
7119 | enableval=$enable_vtable_verify; case "$enableval" in | |
7120 | yes) enable_vtable_verify=yes ;; | |
7121 | no) enable_vtable_verify=no ;; | |
7122 | *) enable_vtable_verify=no;; | |
7123 | esac | |
7124 | else | |
7125 | enable_vtable_verify=no | |
7126 | fi | |
7127 | ||
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7129 | $as_echo "$enable_vtable_verify" >&6; } | |
7130 | ||
a0da8069 NN |
7131 | # Record target_configdirs and the configure arguments for target and |
7132 | # build configuration in Makefile. | |
7133 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7134 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7135 | bootstrap_fixincludes=no |
a0da8069 | 7136 | |
2aa2364a JR |
7137 | # If we are building libgomp, bootstrap it. |
7138 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7139 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7140 | fi | |
7141 | ||
730af8ee | 7142 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7143 | # or bootstrap-ubsan, bootstrap it. | |
7144 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7145 | case "$BUILD_CONFIG" in | |
7146 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7147 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7148 | bootstrap_fixincludes=yes |
730af8ee | 7149 | ;; |
7150 | esac | |
5eb08693 L |
7151 | fi |
7152 | ||
730af8ee | 7153 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7154 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7155 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7156 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7157 | fi | |
7158 | ||
a0da8069 NN |
7159 | # Determine whether gdb needs tk/tcl or not. |
7160 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7161 | # and in that case we want gdb to be built without tk. Ugh! | |
7162 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7163 | # so we should be able to put the 'maybe's in unconditionally and | |
7164 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7165 | # 100% sure that that's safe though. | |
c180f501 | 7166 | |
675c6968 | 7167 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7168 | case "$enable_gdbtk" in |
7169 | no) | |
7170 | GDB_TK="" ;; | |
c180f501 AC |
7171 | yes) |
7172 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7173 | *) |
c180f501 AC |
7174 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7175 | # distro. Eventually someone will fix this and move Insight, nee | |
7176 | # gdbtk to a separate directory. | |
7177 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7178 | GDB_TK="${gdb_tk}" | |
7179 | else | |
7180 | GDB_TK="" | |
7181 | fi | |
7182 | ;; | |
a0da8069 | 7183 | esac |
907be67c DJ |
7184 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7185 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7186 | |
73cc7272 TT |
7187 | # gdb depends on gnulib, but as nothing else does, only include it if |
7188 | # gdb is built. | |
7189 | if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then | |
7190 | # The Makefile provides the ordering, so it's enough here to add | |
7191 | # gnulib to the list. | |
7192 | configdirs="${configdirs} gnulib" | |
7193 | fi | |
7194 | ||
6bd3dfaa | 7195 | # Strip out unwanted targets. |
dd12c3a8 NN |
7196 | |
7197 | # While at that, we remove Makefiles if we were started for recursive | |
7198 | # configuration, so that the top-level Makefile reconfigures them, | |
7199 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7200 | |
06a51eac RW |
7201 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7202 | # but now we're fixing up the Makefile ourselves with the additional | |
7203 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7204 | # extrasub-{build,host,target} not because there is any reason to split | |
7205 | # the substitutions up that way, but only to remain below the limit of | |
7206 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
7207 | |
7208 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7209 | # configure will not warn you at all. | |
dd12c3a8 | 7210 | |
16b1ad29 RW |
7211 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7212 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7213 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7214 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7215 | ;; |
7216 | esac | |
7217 | ||
06a51eac | 7218 | extrasub_build= |
6a9cf61e | 7219 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7220 | if test -z "${no_recursion}" \ |
7221 | && test -f ${build_subdir}/${module}/Makefile; then | |
7222 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7223 | rm -f ${build_subdir}/${module}/Makefile | |
7224 | fi | |
06a51eac | 7225 | extrasub_build="$extrasub_build |
498d4a71 CF |
7226 | /^@if build-$module\$/d |
7227 | /^@endif build-$module\$/d | |
4119873a | 7228 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 7229 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
7230 | /^@endif build-$module-$bootstrap_suffix\$/d |
7231 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 7232 | done |
06a51eac | 7233 | extrasub_host= |
498d4a71 | 7234 | for module in ${configdirs} ; do |
80911fe1 | 7235 | if test -z "${no_recursion}"; then |
8cf39b1b | 7236 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7237 | if test -f ${file}; then |
7238 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7239 | rm -f ${file} | |
7240 | fi | |
7241 | done | |
498d4a71 | 7242 | fi |
201f096f | 7243 | case ${module},${bootstrap_fixincludes} in |
7244 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7245 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7246 | esac | |
06a51eac | 7247 | extrasub_host="$extrasub_host |
498d4a71 CF |
7248 | /^@if $module\$/d |
7249 | /^@endif $module\$/d | |
4119873a | 7250 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 7251 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
7252 | /^@endif $module-$host_bootstrap_suffix\$/d |
7253 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7254 | done |
06a51eac | 7255 | extrasub_target= |
498d4a71 CF |
7256 | for module in ${target_configdirs} ; do |
7257 | if test -z "${no_recursion}" \ | |
7258 | && test -f ${target_subdir}/${module}/Makefile; then | |
7259 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7260 | rm -f ${target_subdir}/${module}/Makefile | |
7261 | fi | |
e8a5fa9c RW |
7262 | |
7263 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7264 | case $bootstrap_target_libs in | |
7265 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7266 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7267 | esac | |
7268 | ||
06a51eac | 7269 | extrasub_target="$extrasub_target |
498d4a71 CF |
7270 | /^@if target-$module\$/d |
7271 | /^@endif target-$module\$/d | |
4119873a | 7272 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 7273 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
7274 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7275 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7276 | done |
7277 | ||
06a51eac RW |
7278 | # Do the final fixup along with target modules. |
7279 | extrasub_target="$extrasub_target | |
4119873a AO |
7280 | /^@if /,/^@endif /d |
7281 | /^@unless /d | |
7282 | /^@endunless /d" | |
a0da8069 NN |
7283 | |
7284 | # Create the serialization dependencies. This uses a temporary file. | |
7285 | ||
81ecdfbb RW |
7286 | # Check whether --enable-serial-configure was given. |
7287 | if test "${enable_serial_configure+set}" = set; then : | |
7288 | enableval=$enable_serial_configure; | |
7289 | fi | |
e6bfb94a AO |
7290 | |
7291 | ||
1047cb91 DD |
7292 | case ${enable_serial_configure} in |
7293 | yes) | |
7294 | enable_serial_build_configure=yes | |
7295 | enable_serial_host_configure=yes | |
7296 | enable_serial_target_configure=yes | |
7297 | ;; | |
7298 | esac | |
7299 | ||
a0da8069 NN |
7300 | # These force 'configure's to be done one at a time, to avoid problems |
7301 | # with contention over a shared config.cache. | |
7302 | rm -f serdep.tmp | |
e6bfb94a | 7303 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7304 | olditem= |
1047cb91 | 7305 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7306 | for item in ${build_configdirs} ; do |
7307 | case ${olditem} in | |
7308 | "") ;; | |
e6bfb94a | 7309 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7310 | esac |
7311 | olditem=${item} | |
7312 | done | |
7313 | olditem= | |
1047cb91 | 7314 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7315 | for item in ${configdirs} ; do |
7316 | case ${olditem} in | |
7317 | "") ;; | |
e6bfb94a | 7318 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7319 | esac |
7320 | olditem=${item} | |
7321 | done | |
7322 | olditem= | |
1047cb91 | 7323 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7324 | for item in ${target_configdirs} ; do |
7325 | case ${olditem} in | |
7326 | "") ;; | |
e6bfb94a | 7327 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7328 | esac |
7329 | olditem=${item} | |
7330 | done | |
7331 | serialization_dependencies=serdep.tmp | |
7332 | ||
7333 | ||
e6bfb94a | 7334 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7335 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7336 | # might not want to pass down to subconfigures. The exception being |
7337 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7338 | # files altogether, and which should be passed on to subconfigures. | |
7339 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7340 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7341 | baseargs= |
65b4571a | 7342 | tbaseargs= |
c6b750e1 DJ |
7343 | keep_next=no |
7344 | skip_next=no | |
7345 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7346 | for ac_arg |
7347 | do | |
c6b750e1 DJ |
7348 | if test X"$skip_next" = X"yes"; then |
7349 | skip_next=no | |
7350 | continue | |
7351 | fi | |
7352 | if test X"$keep_next" = X"yes"; then | |
7353 | case $ac_arg in | |
7354 | *\'*) | |
7355 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7356 | esac | |
7357 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7358 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7359 | keep_next=no |
7360 | continue | |
7361 | fi | |
7362 | ||
7363 | # Handle separated arguments. Based on the logic generated by | |
7364 | # autoconf 2.59. | |
7365 | case $ac_arg in | |
7366 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7367 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7368 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7369 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7370 | separate_arg=no | |
7371 | ;; | |
7372 | -*) | |
7373 | separate_arg=yes | |
7374 | ;; | |
7375 | *) | |
7376 | separate_arg=no | |
7377 | ;; | |
7378 | esac | |
7379 | ||
65b4571a AO |
7380 | skip_targ=no |
7381 | case $ac_arg in | |
7382 | ||
7383 | --with-* | --without-*) | |
7384 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7385 | ||
7386 | case $libopt in | |
7387 | *[-_]include) | |
7388 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7389 | ;; | |
7390 | *[-_]lib) | |
7391 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7392 | ;; | |
7393 | *) | |
7394 | lib=$libopt | |
7395 | ;; | |
7396 | esac | |
7397 | ||
7398 | ||
7399 | case $lib in | |
1b6c0831 | 7400 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7401 | # If we're processing --with-$lib, --with-$lib-include or |
7402 | # --with-$lib-lib, for one of the libs above, and target is | |
7403 | # different from host, don't pass the current argument to any | |
7404 | # target library's configure. | |
7405 | if test x$is_cross_compiler = xyes; then | |
7406 | skip_targ=yes | |
7407 | fi | |
7408 | ;; | |
7409 | esac | |
7410 | ;; | |
7411 | esac | |
7412 | ||
c6b750e1 | 7413 | case "$ac_arg" in |
30167e0a NC |
7414 | --cache-file=/dev/null | \ |
7415 | -cache-file=/dev/null ) | |
7416 | # Handled here to avoid the test to skip args below. | |
7417 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7418 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7419 | # Assert: $separate_arg should always be no. |
7420 | keep_next=$separate_arg | |
7421 | ;; | |
c6b750e1 DJ |
7422 | --no*) |
7423 | continue | |
7424 | ;; | |
7425 | --c* | \ | |
7426 | --sr* | \ | |
7427 | --ho* | \ | |
7428 | --bu* | \ | |
7429 | --t* | \ | |
7430 | --program-* | \ | |
7431 | -cache_file* | \ | |
7432 | -srcdir* | \ | |
7433 | -host* | \ | |
7434 | -build* | \ | |
7435 | -target* | \ | |
7436 | -program-prefix* | \ | |
7437 | -program-suffix* | \ | |
7438 | -program-transform-name* ) | |
7439 | skip_next=$separate_arg | |
7440 | continue | |
7441 | ;; | |
7442 | -*) | |
7443 | # An option. Add it. | |
7444 | case $ac_arg in | |
7445 | *\'*) | |
7446 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7447 | esac | |
7448 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7449 | if test X"$skip_targ" = Xno; then |
7450 | tbaseargs="$tbaseargs '$ac_arg'" | |
7451 | fi | |
c6b750e1 DJ |
7452 | keep_next=$separate_arg |
7453 | ;; | |
7454 | *) | |
7455 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7456 | # pass it down; let the Makefile handle this. | |
7457 | continue | |
7458 | ;; | |
7459 | esac | |
7460 | done | |
7461 | # Remove the initial space we just introduced and, as these will be | |
7462 | # expanded by make, quote '$'. | |
7463 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7464 | |
f27d4f92 DJ |
7465 | # Add in --program-transform-name, after --program-prefix and |
7466 | # --program-suffix have been applied to it. Autoconf has already | |
7467 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7468 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7469 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7470 | # Also, because we want to override the logic in subdir configure scripts to |
7471 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7472 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7473 | ${program_transform_name} | |
7474 | EOF_SED | |
7475 | gcc_transform_name=`cat conftestsed.out` | |
7476 | rm -f conftestsed.out | |
7477 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7478 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7479 | if test "$silent" = yes; then |
7480 | baseargs="$baseargs --silent" | |
65b4571a | 7481 | tbaseargs="$tbaseargs --silent" |
2444379b | 7482 | fi |
34a0f3cf | 7483 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7484 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7485 | |
4074d5f2 RW |
7486 | # Record and document user additions to sub configure arguments. |
7487 | ||
7488 | ||
7489 | ||
7490 | ||
a0da8069 NN |
7491 | # For the build-side libraries, we just need to pretend we're native, |
7492 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7493 | # desired. We can't even use the same cache file for all build-side |
7494 | # libraries, as they're compiled differently; some with C, some with | |
7495 | # C++ or with different feature-enabling options. | |
7496 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7497 | |
7498 | # For host modules, accept cache file option, or specification as blank. | |
7499 | case "${cache_file}" in | |
7500 | "") # empty | |
7501 | cache_file_option="" ;; | |
7502 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7503 | cache_file_option="--cache-file=${cache_file}" ;; | |
7504 | *) # relative path | |
7505 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7506 | esac | |
7507 | ||
82252c06 NN |
7508 | # Host dirs don't like to share a cache file either, horribly enough. |
7509 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7510 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7511 | |
65b4571a | 7512 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7513 | |
7514 | # Passing a --with-cross-host argument lets the target libraries know | |
7515 | # whether they are being built with a cross-compiler or being built | |
7516 | # native. However, it would be better to use other mechanisms to make the | |
7517 | # sorts of decisions they want to make on this basis. Please consider | |
7518 | # this option to be deprecated. FIXME. | |
7519 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7520 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7521 | fi |
7522 | ||
afc0578d | 7523 | # Special user-friendly check for native x86_64-linux build, if |
7524 | # multilib is not explicitly enabled. | |
7525 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7526 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7527 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7528 | dev64=no |
7529 | echo "int main () { return 0; }" > conftest.c | |
7530 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7531 | if test $? = 0 ; then | |
7532 | if test -s conftest || test -s conftest.exe ; then | |
7533 | dev64=yes | |
7534 | fi | |
7535 | fi | |
7536 | rm -f conftest* | |
7537 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7538 | 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 |
afc0578d | 7539 | fi |
7540 | ;; | |
7541 | esac | |
7542 | ||
938d2b74 RW |
7543 | # Default to --enable-multilib. |
7544 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7545 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7546 | fi |
a0da8069 NN |
7547 | |
7548 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7549 | # changed from the earlier setting of with_newlib. | |
7550 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7551 | target_configargs="--with-newlib ${target_configargs}" | |
7552 | fi | |
7553 | ||
95036d20 NN |
7554 | # Different target subdirs use different values of certain variables |
7555 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7556 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7557 | # it doesn't automatically accept command-line overrides of them. | |
7558 | # This means it's not safe for target subdirs to share a cache file, | |
7559 | # which is disgusting, but there you have it. Hopefully this can be | |
7560 | # fixed in future. It's still worthwhile to use a cache file for each | |
7561 | # directory. I think. | |
7562 | ||
ae380b45 MS |
7563 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7564 | # We need to pass --target, as newer autoconf's requires consistency | |
7565 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7566 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7567 | |
a0da8069 NN |
7568 | FLAGS_FOR_TARGET= |
7569 | case " $target_configdirs " in | |
7570 | *" newlib "*) | |
7571 | case " $target_configargs " in | |
7572 | *" --with-newlib "*) | |
7573 | case "$target" in | |
1f53ca9a | 7574 | *-cygwin*) |
6d94c122 | 7575 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7576 | ;; |
a0da8069 NN |
7577 | esac |
7578 | ||
7579 | # If we're not building GCC, don't discard standard headers. | |
7580 | if test -d ${srcdir}/gcc; then | |
7581 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7582 | ||
7583 | if test "${build}" != "${host}"; then | |
7584 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7585 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7586 | # to it. This is right: we don't want to search that directory | |
7587 | # for binaries, but we want the header files in there, so add | |
7588 | # them explicitly. | |
e552509b | 7589 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7590 | |
7591 | # Someone might think of using the pre-installed headers on | |
7592 | # Canadian crosses, in case the installed compiler is not fully | |
7593 | # compatible with the compiler being built. In this case, it | |
7594 | # would be better to flag an error than risking having | |
7595 | # incompatible object files being constructed. We can't | |
7596 | # guarantee that an error will be flagged, but let's hope the | |
7597 | # compiler will do it, when presented with incompatible header | |
7598 | # files. | |
7599 | fi | |
7600 | fi | |
7601 | ||
7602 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7603 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7604 | # Here host == target, so we don't need to build gcc, |
7605 | # so we don't want to discard standard headers. | |
7606 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7607 | ;; | |
7608 | *) | |
7609 | # If we're building newlib, use its generic headers last, but search | |
7610 | # for any libc-related directories first (so make it the last -B | |
7611 | # switch). | |
7612 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
7613 | |
7614 | # If we're building libgloss, find the startup file, simulator library | |
7615 | # and linker script. | |
7616 | case " $target_configdirs " in | |
7617 | *" libgloss "*) | |
7618 | # Look for startup file, simulator library and maybe linker script. | |
7619 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7620 | # Look for libnosys.a in case the target needs it. | |
7621 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7622 | # Most targets have the linker script in the source directory. | |
7623 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7624 | ;; | |
7625 | esac | |
a0da8069 NN |
7626 | ;; |
7627 | esac | |
7628 | ;; | |
7629 | esac | |
7630 | ;; | |
7631 | esac | |
1f53ca9a | 7632 | |
45055374 | 7633 | case "$target" in |
1f53ca9a AO |
7634 | x86_64-*mingw* | *-w64-mingw*) |
7635 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7636 | # however, use a symlink named 'mingw' in ${prefix} . | |
7637 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7638 | ;; | |
7639 | *-mingw*) | |
7640 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7641 | 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' | |
7642 | ;; | |
45055374 | 7643 | esac |
a0da8069 | 7644 | |
5fbad20a DD |
7645 | # Allow the user to override the flags for |
7646 | # our build compiler if desired. | |
c66487f8 NC |
7647 | if test x"${build}" = x"${host}" ; then |
7648 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7649 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7650 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7651 | fi | |
5fbad20a | 7652 | |
a0da8069 NN |
7653 | # On Canadian crosses, we'll be searching the right directories for |
7654 | # the previously-installed cross compiler, so don't bother to add | |
7655 | # flags for directories within the install tree of the compiler | |
7656 | # being built; programs in there won't even run. | |
7657 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7658 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7659 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
7660 | fi |
7661 | ||
7662 | if test "x${use_gnu_ld}" = x && | |
7663 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7664 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7665 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7666 | fi |
7667 | ||
a481dbb7 DD |
7668 | # Search for other target-specific linker scripts and such. |
7669 | case "${target}" in | |
4e206d7e DB |
7670 | mep*) |
7671 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7672 | ;; | |
7673 | esac | |
7674 | ||
a0da8069 | 7675 | # Makefile fragments. |
3e707e94 PB |
7676 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7677 | do | |
7678 | eval fragval=\$$frag | |
7679 | if test $fragval != /dev/null; then | |
7680 | eval $frag=${srcdir}/$fragval | |
7681 | fi | |
7682 | done | |
a0da8069 NN |
7683 | |
7684 | ||
7685 | ||
7686 | ||
7687 | ||
7688 | # Miscellanea: directories, flags, etc. | |
7689 | ||
7690 | ||
7691 | ||
7692 | ||
7693 | ||
7694 | ||
7695 | ||
3bbd2f8f | 7696 | |
6a9cf61e | 7697 | # Build module lists & subconfigure args. |
a0da8069 NN |
7698 | |
7699 | ||
7700 | ||
be01d343 PB |
7701 | # Host module lists & subconfigure args. |
7702 | ||
7703 | ||
7704 | ||
911e63d0 | 7705 | |
be01d343 PB |
7706 | # Target module lists & subconfigure args. |
7707 | ||
7708 | ||
7709 | ||
7710 | # Build tools. | |
7711 | ||
7712 | ||
7713 | ||
1576798e PB |
7714 | |
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
be01d343 PB |
7727 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7728 | # on the build machine. These are used if the Makefile can't locate these | |
7729 | # programs in objdir. | |
7730 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7731 | ||
7732 | for ac_prog in 'bison -y' byacc yacc | |
7733 | do | |
c6b750e1 | 7734 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7735 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7737 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7738 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 7739 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7740 | else |
7741 | if test -n "$YACC"; then | |
7742 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7743 | else | |
c6b750e1 DJ |
7744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7745 | for as_dir in $PATH | |
7746 | do | |
7747 | IFS=$as_save_IFS | |
7748 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7749 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7751 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7753 | break 2 |
7754 | fi | |
7755 | done | |
81ecdfbb RW |
7756 | done |
7757 | IFS=$as_save_IFS | |
c6b750e1 | 7758 | |
be01d343 PB |
7759 | fi |
7760 | fi | |
c6b750e1 | 7761 | YACC=$ac_cv_prog_YACC |
be01d343 | 7762 | if test -n "$YACC"; then |
81ecdfbb RW |
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7764 | $as_echo "$YACC" >&6; } | |
be01d343 | 7765 | else |
81ecdfbb RW |
7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7767 | $as_echo "no" >&6; } | |
be01d343 PB |
7768 | fi |
7769 | ||
81ecdfbb | 7770 | |
c6b750e1 | 7771 | test -n "$YACC" && break |
be01d343 PB |
7772 | done |
7773 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7774 | ||
7775 | case " $build_configdirs " in | |
7776 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7777 | esac |
7778 | ||
7779 | for ac_prog in bison | |
7780 | do | |
c6b750e1 | 7781 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7782 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7784 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7785 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 7786 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7787 | else |
7788 | if test -n "$BISON"; then | |
7789 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7790 | else | |
c6b750e1 DJ |
7791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7792 | for as_dir in $PATH | |
7793 | do | |
7794 | IFS=$as_save_IFS | |
7795 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7796 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7798 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7800 | break 2 |
7801 | fi | |
7802 | done | |
81ecdfbb RW |
7803 | done |
7804 | IFS=$as_save_IFS | |
c6b750e1 | 7805 | |
be01d343 PB |
7806 | fi |
7807 | fi | |
c6b750e1 | 7808 | BISON=$ac_cv_prog_BISON |
be01d343 | 7809 | if test -n "$BISON"; then |
81ecdfbb RW |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7811 | $as_echo "$BISON" >&6; } | |
be01d343 | 7812 | else |
81ecdfbb RW |
7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7814 | $as_echo "no" >&6; } | |
be01d343 PB |
7815 | fi |
7816 | ||
81ecdfbb | 7817 | |
c6b750e1 | 7818 | test -n "$BISON" && break |
be01d343 PB |
7819 | done |
7820 | test -n "$BISON" || BISON="$MISSING bison" | |
7821 | ||
7822 | case " $build_configdirs " in | |
7823 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7824 | esac | |
7825 | ||
7826 | for ac_prog in gm4 gnum4 m4 | |
7827 | do | |
c6b750e1 | 7828 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7829 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7831 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7832 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 7833 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7834 | else |
7835 | if test -n "$M4"; then | |
7836 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7837 | else | |
c6b750e1 DJ |
7838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7839 | for as_dir in $PATH | |
7840 | do | |
7841 | IFS=$as_save_IFS | |
7842 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7843 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7845 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7847 | break 2 |
7848 | fi | |
7849 | done | |
81ecdfbb RW |
7850 | done |
7851 | IFS=$as_save_IFS | |
c6b750e1 | 7852 | |
be01d343 PB |
7853 | fi |
7854 | fi | |
c6b750e1 | 7855 | M4=$ac_cv_prog_M4 |
be01d343 | 7856 | if test -n "$M4"; then |
81ecdfbb RW |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7858 | $as_echo "$M4" >&6; } | |
be01d343 | 7859 | else |
81ecdfbb RW |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7861 | $as_echo "no" >&6; } | |
be01d343 PB |
7862 | fi |
7863 | ||
81ecdfbb | 7864 | |
c6b750e1 | 7865 | test -n "$M4" && break |
be01d343 PB |
7866 | done |
7867 | test -n "$M4" || M4="$MISSING m4" | |
7868 | ||
7869 | case " $build_configdirs " in | |
7870 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7871 | esac | |
7872 | ||
7873 | for ac_prog in flex lex | |
7874 | do | |
c6b750e1 | 7875 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7876 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7878 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7879 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 7880 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7881 | else |
7882 | if test -n "$LEX"; then | |
7883 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7884 | else | |
c6b750e1 DJ |
7885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7886 | for as_dir in $PATH | |
7887 | do | |
7888 | IFS=$as_save_IFS | |
7889 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7890 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7892 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7894 | break 2 |
7895 | fi | |
7896 | done | |
81ecdfbb RW |
7897 | done |
7898 | IFS=$as_save_IFS | |
c6b750e1 | 7899 | |
be01d343 PB |
7900 | fi |
7901 | fi | |
c6b750e1 | 7902 | LEX=$ac_cv_prog_LEX |
be01d343 | 7903 | if test -n "$LEX"; then |
81ecdfbb RW |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7905 | $as_echo "$LEX" >&6; } | |
be01d343 | 7906 | else |
81ecdfbb RW |
7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7908 | $as_echo "no" >&6; } | |
be01d343 PB |
7909 | fi |
7910 | ||
81ecdfbb | 7911 | |
c6b750e1 | 7912 | test -n "$LEX" && break |
be01d343 PB |
7913 | done |
7914 | test -n "$LEX" || LEX="$MISSING flex" | |
7915 | ||
7916 | case " $build_configdirs " in | |
7917 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7918 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7919 | esac | |
7920 | ||
7921 | for ac_prog in flex | |
7922 | do | |
c6b750e1 | 7923 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7924 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7926 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7927 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 7928 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7929 | else |
7930 | if test -n "$FLEX"; then | |
7931 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7932 | else | |
c6b750e1 DJ |
7933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7934 | for as_dir in $PATH | |
7935 | do | |
7936 | IFS=$as_save_IFS | |
7937 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7938 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7940 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7942 | break 2 |
7943 | fi | |
7944 | done | |
81ecdfbb RW |
7945 | done |
7946 | IFS=$as_save_IFS | |
c6b750e1 | 7947 | |
be01d343 PB |
7948 | fi |
7949 | fi | |
c6b750e1 | 7950 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7951 | if test -n "$FLEX"; then |
81ecdfbb RW |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7953 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7954 | else |
81ecdfbb RW |
7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7956 | $as_echo "no" >&6; } | |
be01d343 PB |
7957 | fi |
7958 | ||
81ecdfbb | 7959 | |
c6b750e1 | 7960 | test -n "$FLEX" && break |
be01d343 PB |
7961 | done |
7962 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7963 | ||
7964 | case " $build_configdirs " in | |
7965 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7966 | esac | |
7967 | ||
7968 | for ac_prog in makeinfo | |
7969 | do | |
c6b750e1 | 7970 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7971 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7973 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7974 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 7975 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7976 | else |
7977 | if test -n "$MAKEINFO"; then | |
7978 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7979 | else | |
c6b750e1 DJ |
7980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7981 | for as_dir in $PATH | |
7982 | do | |
7983 | IFS=$as_save_IFS | |
7984 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7985 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7987 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7989 | break 2 |
7990 | fi | |
7991 | done | |
81ecdfbb RW |
7992 | done |
7993 | IFS=$as_save_IFS | |
c6b750e1 | 7994 | |
be01d343 PB |
7995 | fi |
7996 | fi | |
c6b750e1 | 7997 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7998 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8000 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 8001 | else |
81ecdfbb RW |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8003 | $as_echo "no" >&6; } | |
be01d343 PB |
8004 | fi |
8005 | ||
81ecdfbb | 8006 | |
c6b750e1 | 8007 | test -n "$MAKEINFO" && break |
be01d343 PB |
8008 | done |
8009 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8010 | ||
8011 | case " $build_configdirs " in | |
8012 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8013 | *) | |
8014 | ||
10ad8ef3 | 8015 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8016 | # higher, else we use the "missing" dummy. |
8017 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8018 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8019 | : |
8020 | else | |
8021 | MAKEINFO="$MISSING makeinfo" | |
8022 | fi | |
8023 | ;; | |
8024 | ||
8025 | esac | |
a0da8069 | 8026 | |
be01d343 | 8027 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8028 | |
be01d343 PB |
8029 | for ac_prog in expect |
8030 | do | |
c6b750e1 | 8031 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8032 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8034 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8035 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8036 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8037 | else |
8038 | if test -n "$EXPECT"; then | |
8039 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8040 | else | |
c6b750e1 DJ |
8041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8042 | for as_dir in $PATH | |
8043 | do | |
8044 | IFS=$as_save_IFS | |
8045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8046 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8048 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8050 | break 2 |
8051 | fi | |
8052 | done | |
81ecdfbb RW |
8053 | done |
8054 | IFS=$as_save_IFS | |
c6b750e1 | 8055 | |
be01d343 PB |
8056 | fi |
8057 | fi | |
c6b750e1 | 8058 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8059 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8061 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8062 | else |
81ecdfbb RW |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8064 | $as_echo "no" >&6; } | |
be01d343 | 8065 | fi |
a0da8069 | 8066 | |
81ecdfbb | 8067 | |
c6b750e1 | 8068 | test -n "$EXPECT" && break |
be01d343 PB |
8069 | done |
8070 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8071 | |
be01d343 PB |
8072 | case " $configdirs " in |
8073 | *" expect "*) | |
8074 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8075 | ;; | |
8076 | esac | |
a0da8069 | 8077 | |
be01d343 PB |
8078 | for ac_prog in runtest |
8079 | do | |
c6b750e1 | 8080 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8081 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8083 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8084 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8085 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8086 | else |
8087 | if test -n "$RUNTEST"; then | |
8088 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8089 | else | |
c6b750e1 DJ |
8090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8091 | for as_dir in $PATH | |
8092 | do | |
8093 | IFS=$as_save_IFS | |
8094 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8095 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8097 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8099 | break 2 |
8100 | fi | |
8101 | done | |
81ecdfbb RW |
8102 | done |
8103 | IFS=$as_save_IFS | |
c6b750e1 | 8104 | |
be01d343 PB |
8105 | fi |
8106 | fi | |
c6b750e1 | 8107 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8108 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8110 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8111 | else |
81ecdfbb RW |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8113 | $as_echo "no" >&6; } | |
be01d343 | 8114 | fi |
a0da8069 | 8115 | |
81ecdfbb | 8116 | |
c6b750e1 | 8117 | test -n "$RUNTEST" && break |
be01d343 PB |
8118 | done |
8119 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8120 | |
be01d343 PB |
8121 | case " $configdirs " in |
8122 | *" dejagnu "*) | |
6b89cc21 | 8123 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8124 | ;; |
8125 | esac | |
a0da8069 NN |
8126 | |
8127 | ||
a0da8069 | 8128 | # Host tools. |
859789af AC |
8129 | ncn_tool_prefix= |
8130 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8131 | ncn_target_tool_prefix= | |
8132 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8133 | ||
9a819804 AO |
8134 | |
8135 | ||
8136 | if test -n "$AR"; then | |
8137 | ac_cv_prog_AR=$AR | |
8138 | elif test -n "$ac_cv_prog_AR"; then | |
8139 | AR=$ac_cv_prog_AR | |
8140 | fi | |
8141 | ||
8142 | if test -n "$ac_cv_prog_AR"; then | |
8143 | for ncn_progname in ar; do | |
8144 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8145 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8147 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8148 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8149 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8150 | else |
8151 | if test -n "$AR"; then | |
8152 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8153 | else | |
8154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8155 | for as_dir in $PATH | |
8156 | do | |
8157 | IFS=$as_save_IFS | |
8158 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8159 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8161 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8163 | break 2 |
8164 | fi | |
8165 | done | |
81ecdfbb RW |
8166 | done |
8167 | IFS=$as_save_IFS | |
9a819804 AO |
8168 | |
8169 | fi | |
8170 | fi | |
8171 | AR=$ac_cv_prog_AR | |
8172 | if test -n "$AR"; then | |
81ecdfbb RW |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8174 | $as_echo "$AR" >&6; } | |
9a819804 | 8175 | else |
81ecdfbb RW |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8177 | $as_echo "no" >&6; } | |
9a819804 AO |
8178 | fi |
8179 | ||
81ecdfbb | 8180 | |
9a819804 AO |
8181 | done |
8182 | fi | |
8183 | ||
8184 | for ncn_progname in ar; do | |
05cbd757 PB |
8185 | if test -n "$ncn_tool_prefix"; then |
8186 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8187 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8189 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8190 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8191 | $as_echo_n "(cached) " >&6 |
859789af AC |
8192 | else |
8193 | if test -n "$AR"; then | |
8194 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8195 | else | |
c6b750e1 DJ |
8196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8197 | for as_dir in $PATH | |
8198 | do | |
8199 | IFS=$as_save_IFS | |
8200 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8201 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8203 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8205 | break 2 |
8206 | fi | |
8207 | done | |
81ecdfbb RW |
8208 | done |
8209 | IFS=$as_save_IFS | |
c6b750e1 | 8210 | |
859789af AC |
8211 | fi |
8212 | fi | |
c6b750e1 | 8213 | AR=$ac_cv_prog_AR |
859789af | 8214 | if test -n "$AR"; then |
81ecdfbb RW |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8216 | $as_echo "$AR" >&6; } | |
859789af | 8217 | else |
81ecdfbb RW |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8219 | $as_echo "no" >&6; } | |
859789af AC |
8220 | fi |
8221 | ||
81ecdfbb | 8222 | |
05cbd757 PB |
8223 | fi |
8224 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8225 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8226 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8228 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8229 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8230 | $as_echo_n "(cached) " >&6 |
859789af | 8231 | else |
05cbd757 PB |
8232 | if test -n "$AR"; then |
8233 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8234 | else |
c6b750e1 DJ |
8235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8236 | for as_dir in $PATH | |
8237 | do | |
8238 | IFS=$as_save_IFS | |
8239 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8240 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8242 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8244 | break 2 |
8245 | fi | |
8246 | done | |
81ecdfbb RW |
8247 | done |
8248 | IFS=$as_save_IFS | |
c6b750e1 | 8249 | |
859789af AC |
8250 | fi |
8251 | fi | |
c6b750e1 | 8252 | AR=$ac_cv_prog_AR |
05cbd757 | 8253 | if test -n "$AR"; then |
81ecdfbb RW |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8255 | $as_echo "$AR" >&6; } | |
859789af | 8256 | else |
81ecdfbb RW |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8258 | $as_echo "no" >&6; } | |
859789af | 8259 | fi |
c6b750e1 | 8260 | |
81ecdfbb | 8261 | |
05cbd757 PB |
8262 | fi |
8263 | test -n "$ac_cv_prog_AR" && break | |
8264 | done | |
8265 | ||
8266 | if test -z "$ac_cv_prog_AR" ; then | |
8267 | set dummy ar | |
8268 | if test $build = $host ; then | |
8269 | AR="$2" | |
859789af | 8270 | else |
05cbd757 | 8271 | AR="${ncn_tool_prefix}$2" |
859789af | 8272 | fi |
859789af AC |
8273 | fi |
8274 | ||
9a819804 AO |
8275 | |
8276 | ||
8277 | if test -n "$AS"; then | |
8278 | ac_cv_prog_AS=$AS | |
8279 | elif test -n "$ac_cv_prog_AS"; then | |
8280 | AS=$ac_cv_prog_AS | |
8281 | fi | |
8282 | ||
8283 | if test -n "$ac_cv_prog_AS"; then | |
8284 | for ncn_progname in as; do | |
8285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8286 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8288 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8289 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8290 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8291 | else |
8292 | if test -n "$AS"; then | |
8293 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8294 | else | |
8295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8296 | for as_dir in $PATH | |
8297 | do | |
8298 | IFS=$as_save_IFS | |
8299 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8300 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8302 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8304 | break 2 |
8305 | fi | |
8306 | done | |
81ecdfbb RW |
8307 | done |
8308 | IFS=$as_save_IFS | |
9a819804 AO |
8309 | |
8310 | fi | |
8311 | fi | |
8312 | AS=$ac_cv_prog_AS | |
8313 | if test -n "$AS"; then | |
81ecdfbb RW |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8315 | $as_echo "$AS" >&6; } | |
9a819804 | 8316 | else |
81ecdfbb RW |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8318 | $as_echo "no" >&6; } | |
9a819804 AO |
8319 | fi |
8320 | ||
81ecdfbb | 8321 | |
9a819804 AO |
8322 | done |
8323 | fi | |
8324 | ||
8325 | for ncn_progname in as; do | |
05cbd757 PB |
8326 | if test -n "$ncn_tool_prefix"; then |
8327 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8328 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8330 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8331 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8332 | $as_echo_n "(cached) " >&6 |
859789af AC |
8333 | else |
8334 | if test -n "$AS"; then | |
8335 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8336 | else |
8337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8338 | for as_dir in $PATH | |
8339 | do | |
8340 | IFS=$as_save_IFS | |
8341 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8342 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8344 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8346 | break 2 |
8347 | fi | |
8348 | done | |
81ecdfbb RW |
8349 | done |
8350 | IFS=$as_save_IFS | |
c6b750e1 | 8351 | |
859789af AC |
8352 | fi |
8353 | fi | |
c6b750e1 | 8354 | AS=$ac_cv_prog_AS |
859789af | 8355 | if test -n "$AS"; then |
81ecdfbb RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8357 | $as_echo "$AS" >&6; } | |
859789af | 8358 | else |
81ecdfbb RW |
8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8360 | $as_echo "no" >&6; } | |
859789af AC |
8361 | fi |
8362 | ||
81ecdfbb | 8363 | |
05cbd757 PB |
8364 | fi |
8365 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8366 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8367 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8369 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8370 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8371 | $as_echo_n "(cached) " >&6 |
859789af | 8372 | else |
05cbd757 PB |
8373 | if test -n "$AS"; then |
8374 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8375 | else |
c6b750e1 DJ |
8376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8377 | for as_dir in $PATH | |
8378 | do | |
8379 | IFS=$as_save_IFS | |
8380 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8381 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8383 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8385 | break 2 |
8386 | fi | |
8387 | done | |
81ecdfbb RW |
8388 | done |
8389 | IFS=$as_save_IFS | |
c6b750e1 | 8390 | |
859789af AC |
8391 | fi |
8392 | fi | |
c6b750e1 | 8393 | AS=$ac_cv_prog_AS |
05cbd757 | 8394 | if test -n "$AS"; then |
81ecdfbb RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8396 | $as_echo "$AS" >&6; } | |
859789af | 8397 | else |
81ecdfbb RW |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8399 | $as_echo "no" >&6; } | |
859789af | 8400 | fi |
c6b750e1 | 8401 | |
81ecdfbb | 8402 | |
05cbd757 PB |
8403 | fi |
8404 | test -n "$ac_cv_prog_AS" && break | |
8405 | done | |
8406 | ||
8407 | if test -z "$ac_cv_prog_AS" ; then | |
8408 | set dummy as | |
8409 | if test $build = $host ; then | |
8410 | AS="$2" | |
859789af | 8411 | else |
05cbd757 | 8412 | AS="${ncn_tool_prefix}$2" |
859789af | 8413 | fi |
859789af AC |
8414 | fi |
8415 | ||
9a819804 AO |
8416 | |
8417 | ||
8418 | if test -n "$DLLTOOL"; then | |
8419 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8420 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8421 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8422 | fi | |
8423 | ||
8424 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8425 | for ncn_progname in dlltool; do | |
8426 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8427 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8429 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8430 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8431 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8432 | else |
8433 | if test -n "$DLLTOOL"; then | |
8434 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8435 | else | |
8436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8437 | for as_dir in $PATH | |
8438 | do | |
8439 | IFS=$as_save_IFS | |
8440 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8441 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8443 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8445 | break 2 |
8446 | fi | |
8447 | done | |
81ecdfbb RW |
8448 | done |
8449 | IFS=$as_save_IFS | |
9a819804 AO |
8450 | |
8451 | fi | |
8452 | fi | |
8453 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8454 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8456 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8457 | else |
81ecdfbb RW |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8459 | $as_echo "no" >&6; } | |
9a819804 AO |
8460 | fi |
8461 | ||
81ecdfbb | 8462 | |
9a819804 AO |
8463 | done |
8464 | fi | |
8465 | ||
8466 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8467 | if test -n "$ncn_tool_prefix"; then |
8468 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8469 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8471 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8472 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8473 | $as_echo_n "(cached) " >&6 |
859789af AC |
8474 | else |
8475 | if test -n "$DLLTOOL"; then | |
8476 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8477 | else | |
c6b750e1 DJ |
8478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8479 | for as_dir in $PATH | |
8480 | do | |
8481 | IFS=$as_save_IFS | |
8482 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8483 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8484 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8485 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8487 | break 2 |
8488 | fi | |
8489 | done | |
81ecdfbb RW |
8490 | done |
8491 | IFS=$as_save_IFS | |
c6b750e1 | 8492 | |
859789af AC |
8493 | fi |
8494 | fi | |
c6b750e1 | 8495 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8496 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8498 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8499 | else |
81ecdfbb RW |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8501 | $as_echo "no" >&6; } | |
859789af AC |
8502 | fi |
8503 | ||
81ecdfbb | 8504 | |
05cbd757 PB |
8505 | fi |
8506 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8507 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8508 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8510 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8511 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8512 | $as_echo_n "(cached) " >&6 |
859789af | 8513 | else |
05cbd757 PB |
8514 | if test -n "$DLLTOOL"; then |
8515 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8516 | else |
c6b750e1 DJ |
8517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8518 | for as_dir in $PATH | |
8519 | do | |
8520 | IFS=$as_save_IFS | |
8521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8522 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8524 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8526 | break 2 |
8527 | fi | |
8528 | done | |
81ecdfbb RW |
8529 | done |
8530 | IFS=$as_save_IFS | |
c6b750e1 | 8531 | |
859789af AC |
8532 | fi |
8533 | fi | |
c6b750e1 | 8534 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8535 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8537 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8538 | else |
81ecdfbb RW |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8540 | $as_echo "no" >&6; } | |
859789af | 8541 | fi |
c6b750e1 | 8542 | |
81ecdfbb | 8543 | |
05cbd757 PB |
8544 | fi |
8545 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8546 | done | |
8547 | ||
8548 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8549 | set dummy dlltool | |
8550 | if test $build = $host ; then | |
8551 | DLLTOOL="$2" | |
859789af | 8552 | else |
05cbd757 | 8553 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8554 | fi |
859789af AC |
8555 | fi |
8556 | ||
9a819804 AO |
8557 | |
8558 | ||
8559 | if test -n "$LD"; then | |
8560 | ac_cv_prog_LD=$LD | |
8561 | elif test -n "$ac_cv_prog_LD"; then | |
8562 | LD=$ac_cv_prog_LD | |
8563 | fi | |
8564 | ||
8565 | if test -n "$ac_cv_prog_LD"; then | |
8566 | for ncn_progname in ld; do | |
8567 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8568 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8570 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8571 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8572 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8573 | else |
8574 | if test -n "$LD"; then | |
8575 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8576 | else | |
8577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8578 | for as_dir in $PATH | |
8579 | do | |
8580 | IFS=$as_save_IFS | |
8581 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8582 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8584 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8586 | break 2 |
8587 | fi | |
8588 | done | |
81ecdfbb RW |
8589 | done |
8590 | IFS=$as_save_IFS | |
9a819804 AO |
8591 | |
8592 | fi | |
8593 | fi | |
8594 | LD=$ac_cv_prog_LD | |
8595 | if test -n "$LD"; then | |
81ecdfbb RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8597 | $as_echo "$LD" >&6; } | |
9a819804 | 8598 | else |
81ecdfbb RW |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8600 | $as_echo "no" >&6; } | |
9a819804 AO |
8601 | fi |
8602 | ||
81ecdfbb | 8603 | |
9a819804 AO |
8604 | done |
8605 | fi | |
8606 | ||
8607 | for ncn_progname in ld; do | |
05cbd757 PB |
8608 | if test -n "$ncn_tool_prefix"; then |
8609 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8610 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8612 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8613 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8614 | $as_echo_n "(cached) " >&6 |
859789af AC |
8615 | else |
8616 | if test -n "$LD"; then | |
8617 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8618 | else | |
c6b750e1 DJ |
8619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8620 | for as_dir in $PATH | |
8621 | do | |
8622 | IFS=$as_save_IFS | |
8623 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8624 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8626 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8628 | break 2 |
8629 | fi | |
8630 | done | |
81ecdfbb RW |
8631 | done |
8632 | IFS=$as_save_IFS | |
c6b750e1 | 8633 | |
859789af AC |
8634 | fi |
8635 | fi | |
c6b750e1 | 8636 | LD=$ac_cv_prog_LD |
859789af | 8637 | if test -n "$LD"; then |
81ecdfbb RW |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8639 | $as_echo "$LD" >&6; } | |
859789af | 8640 | else |
81ecdfbb RW |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8642 | $as_echo "no" >&6; } | |
859789af AC |
8643 | fi |
8644 | ||
81ecdfbb | 8645 | |
05cbd757 PB |
8646 | fi |
8647 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8648 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8649 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8651 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8652 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8653 | $as_echo_n "(cached) " >&6 |
859789af | 8654 | else |
05cbd757 PB |
8655 | if test -n "$LD"; then |
8656 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8657 | else |
c6b750e1 DJ |
8658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8659 | for as_dir in $PATH | |
8660 | do | |
8661 | IFS=$as_save_IFS | |
8662 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8663 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8665 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8667 | break 2 |
8668 | fi | |
8669 | done | |
81ecdfbb RW |
8670 | done |
8671 | IFS=$as_save_IFS | |
c6b750e1 | 8672 | |
859789af AC |
8673 | fi |
8674 | fi | |
c6b750e1 | 8675 | LD=$ac_cv_prog_LD |
05cbd757 | 8676 | if test -n "$LD"; then |
81ecdfbb RW |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8678 | $as_echo "$LD" >&6; } | |
859789af | 8679 | else |
81ecdfbb RW |
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8681 | $as_echo "no" >&6; } | |
859789af | 8682 | fi |
c6b750e1 | 8683 | |
81ecdfbb | 8684 | |
05cbd757 PB |
8685 | fi |
8686 | test -n "$ac_cv_prog_LD" && break | |
8687 | done | |
8688 | ||
8689 | if test -z "$ac_cv_prog_LD" ; then | |
8690 | set dummy ld | |
8691 | if test $build = $host ; then | |
8692 | LD="$2" | |
859789af | 8693 | else |
05cbd757 | 8694 | LD="${ncn_tool_prefix}$2" |
859789af | 8695 | fi |
859789af AC |
8696 | fi |
8697 | ||
9a819804 AO |
8698 | |
8699 | ||
8700 | if test -n "$LIPO"; then | |
8701 | ac_cv_prog_LIPO=$LIPO | |
8702 | elif test -n "$ac_cv_prog_LIPO"; then | |
8703 | LIPO=$ac_cv_prog_LIPO | |
8704 | fi | |
8705 | ||
8706 | if test -n "$ac_cv_prog_LIPO"; then | |
8707 | for ncn_progname in lipo; do | |
8708 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8709 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8711 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8712 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8713 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8714 | else |
8715 | if test -n "$LIPO"; then | |
8716 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8717 | else | |
8718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8719 | for as_dir in $PATH | |
8720 | do | |
8721 | IFS=$as_save_IFS | |
8722 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8723 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8725 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8727 | break 2 |
8728 | fi | |
8729 | done | |
81ecdfbb RW |
8730 | done |
8731 | IFS=$as_save_IFS | |
9a819804 AO |
8732 | |
8733 | fi | |
8734 | fi | |
8735 | LIPO=$ac_cv_prog_LIPO | |
8736 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8738 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8739 | else |
81ecdfbb RW |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8741 | $as_echo "no" >&6; } | |
9a819804 AO |
8742 | fi |
8743 | ||
81ecdfbb | 8744 | |
9a819804 AO |
8745 | done |
8746 | fi | |
8747 | ||
8748 | for ncn_progname in lipo; do | |
be01d343 PB |
8749 | if test -n "$ncn_tool_prefix"; then |
8750 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8751 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8753 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8754 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8755 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8756 | else |
8757 | if test -n "$LIPO"; then | |
8758 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8759 | else | |
c6b750e1 DJ |
8760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8761 | for as_dir in $PATH | |
8762 | do | |
8763 | IFS=$as_save_IFS | |
8764 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8765 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8767 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8769 | break 2 |
8770 | fi | |
8771 | done | |
81ecdfbb RW |
8772 | done |
8773 | IFS=$as_save_IFS | |
c6b750e1 | 8774 | |
be01d343 PB |
8775 | fi |
8776 | fi | |
c6b750e1 | 8777 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8778 | if test -n "$LIPO"; then |
81ecdfbb RW |
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8780 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8781 | else |
81ecdfbb RW |
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8783 | $as_echo "no" >&6; } | |
be01d343 PB |
8784 | fi |
8785 | ||
81ecdfbb | 8786 | |
be01d343 PB |
8787 | fi |
8788 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8789 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8790 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8793 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8794 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8795 | else |
8796 | if test -n "$LIPO"; then | |
8797 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8798 | else | |
c6b750e1 DJ |
8799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8800 | for as_dir in $PATH | |
8801 | do | |
8802 | IFS=$as_save_IFS | |
8803 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8804 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8806 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8808 | break 2 |
8809 | fi | |
8810 | done | |
81ecdfbb RW |
8811 | done |
8812 | IFS=$as_save_IFS | |
c6b750e1 | 8813 | |
be01d343 PB |
8814 | fi |
8815 | fi | |
c6b750e1 | 8816 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8817 | if test -n "$LIPO"; then |
81ecdfbb RW |
8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8819 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8820 | else |
81ecdfbb RW |
8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8822 | $as_echo "no" >&6; } | |
be01d343 | 8823 | fi |
c6b750e1 | 8824 | |
81ecdfbb | 8825 | |
be01d343 PB |
8826 | fi |
8827 | test -n "$ac_cv_prog_LIPO" && break | |
8828 | done | |
8829 | ||
8830 | if test -z "$ac_cv_prog_LIPO" ; then | |
8831 | set dummy lipo | |
8832 | if test $build = $host ; then | |
8833 | LIPO="$2" | |
8834 | else | |
8835 | LIPO="${ncn_tool_prefix}$2" | |
8836 | fi | |
8837 | fi | |
8838 | ||
9a819804 AO |
8839 | |
8840 | ||
8841 | if test -n "$NM"; then | |
8842 | ac_cv_prog_NM=$NM | |
8843 | elif test -n "$ac_cv_prog_NM"; then | |
8844 | NM=$ac_cv_prog_NM | |
8845 | fi | |
8846 | ||
8847 | if test -n "$ac_cv_prog_NM"; then | |
8848 | for ncn_progname in nm; do | |
8849 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8850 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8852 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8853 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8854 | $as_echo_n "(cached) " >&6 |
859789af AC |
8855 | else |
8856 | if test -n "$NM"; then | |
8857 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8858 | else | |
c6b750e1 DJ |
8859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8860 | for as_dir in $PATH | |
8861 | do | |
8862 | IFS=$as_save_IFS | |
8863 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8864 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8866 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8868 | break 2 |
8869 | fi | |
8870 | done | |
81ecdfbb RW |
8871 | done |
8872 | IFS=$as_save_IFS | |
c6b750e1 | 8873 | |
859789af AC |
8874 | fi |
8875 | fi | |
c6b750e1 | 8876 | NM=$ac_cv_prog_NM |
859789af | 8877 | if test -n "$NM"; then |
81ecdfbb RW |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8879 | $as_echo "$NM" >&6; } | |
859789af | 8880 | else |
81ecdfbb RW |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8882 | $as_echo "no" >&6; } | |
859789af AC |
8883 | fi |
8884 | ||
81ecdfbb | 8885 | |
9a819804 AO |
8886 | done |
8887 | fi | |
8888 | ||
8889 | for ncn_progname in nm; do | |
8890 | if test -n "$ncn_tool_prefix"; then | |
8891 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8892 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8894 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8895 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8896 | $as_echo_n "(cached) " >&6 |
859789af | 8897 | else |
05cbd757 PB |
8898 | if test -n "$NM"; then |
8899 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8900 | else |
c6b750e1 DJ |
8901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8902 | for as_dir in $PATH | |
8903 | do | |
8904 | IFS=$as_save_IFS | |
8905 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8906 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8908 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8910 | break 2 |
8911 | fi | |
8912 | done | |
81ecdfbb RW |
8913 | done |
8914 | IFS=$as_save_IFS | |
c6b750e1 | 8915 | |
859789af AC |
8916 | fi |
8917 | fi | |
c6b750e1 | 8918 | NM=$ac_cv_prog_NM |
05cbd757 | 8919 | if test -n "$NM"; then |
81ecdfbb RW |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8921 | $as_echo "$NM" >&6; } | |
859789af | 8922 | else |
81ecdfbb RW |
8923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8924 | $as_echo "no" >&6; } | |
859789af | 8925 | fi |
c6b750e1 | 8926 | |
81ecdfbb | 8927 | |
05cbd757 | 8928 | fi |
9a819804 AO |
8929 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8930 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8931 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8933 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8934 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8935 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8936 | else |
8937 | if test -n "$NM"; then | |
8938 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8939 | else | |
8940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8941 | for as_dir in $PATH | |
8942 | do | |
8943 | IFS=$as_save_IFS | |
8944 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8945 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8947 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8949 | break 2 |
8950 | fi | |
8951 | done | |
81ecdfbb RW |
8952 | done |
8953 | IFS=$as_save_IFS | |
9a819804 AO |
8954 | |
8955 | fi | |
8956 | fi | |
8957 | NM=$ac_cv_prog_NM | |
8958 | if test -n "$NM"; then | |
81ecdfbb RW |
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8960 | $as_echo "$NM" >&6; } | |
9a819804 | 8961 | else |
81ecdfbb RW |
8962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8963 | $as_echo "no" >&6; } | |
9a819804 AO |
8964 | fi |
8965 | ||
81ecdfbb | 8966 | |
9a819804 AO |
8967 | fi |
8968 | test -n "$ac_cv_prog_NM" && break | |
8969 | done | |
8970 | ||
8971 | if test -z "$ac_cv_prog_NM" ; then | |
8972 | set dummy nm | |
8973 | if test $build = $host ; then | |
8974 | NM="$2" | |
8975 | else | |
8976 | NM="${ncn_tool_prefix}$2" | |
8977 | fi | |
8978 | fi | |
8979 | ||
8980 | ||
8981 | ||
8982 | if test -n "$RANLIB"; then | |
8983 | ac_cv_prog_RANLIB=$RANLIB | |
8984 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8985 | RANLIB=$ac_cv_prog_RANLIB | |
8986 | fi | |
8987 | ||
8988 | if test -n "$ac_cv_prog_RANLIB"; then | |
8989 | for ncn_progname in ranlib; do | |
8990 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8991 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8993 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8994 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 8995 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8996 | else |
8997 | if test -n "$RANLIB"; then | |
8998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8999 | else | |
9000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9001 | for as_dir in $PATH | |
9002 | do | |
9003 | IFS=$as_save_IFS | |
9004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9005 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9007 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9009 | break 2 |
9010 | fi | |
9011 | done | |
81ecdfbb RW |
9012 | done |
9013 | IFS=$as_save_IFS | |
9a819804 AO |
9014 | |
9015 | fi | |
9016 | fi | |
9017 | RANLIB=$ac_cv_prog_RANLIB | |
9018 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9020 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9021 | else |
81ecdfbb RW |
9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9023 | $as_echo "no" >&6; } | |
9a819804 AO |
9024 | fi |
9025 | ||
81ecdfbb | 9026 | |
9a819804 AO |
9027 | done |
9028 | fi | |
859789af | 9029 | |
9a819804 | 9030 | for ncn_progname in ranlib; do |
05cbd757 PB |
9031 | if test -n "$ncn_tool_prefix"; then |
9032 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9033 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9035 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9036 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9037 | $as_echo_n "(cached) " >&6 |
859789af AC |
9038 | else |
9039 | if test -n "$RANLIB"; then | |
9040 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9041 | else | |
c6b750e1 DJ |
9042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9043 | for as_dir in $PATH | |
9044 | do | |
9045 | IFS=$as_save_IFS | |
9046 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9047 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9049 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9051 | break 2 |
9052 | fi | |
9053 | done | |
81ecdfbb RW |
9054 | done |
9055 | IFS=$as_save_IFS | |
c6b750e1 | 9056 | |
859789af AC |
9057 | fi |
9058 | fi | |
c6b750e1 | 9059 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9060 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9062 | $as_echo "$RANLIB" >&6; } | |
859789af | 9063 | else |
81ecdfbb RW |
9064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9065 | $as_echo "no" >&6; } | |
859789af AC |
9066 | fi |
9067 | ||
81ecdfbb | 9068 | |
05cbd757 PB |
9069 | fi |
9070 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9071 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9072 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9074 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9075 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9076 | $as_echo_n "(cached) " >&6 |
859789af | 9077 | else |
05cbd757 PB |
9078 | if test -n "$RANLIB"; then |
9079 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9080 | else |
c6b750e1 DJ |
9081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9082 | for as_dir in $PATH | |
9083 | do | |
9084 | IFS=$as_save_IFS | |
9085 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9086 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9088 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9090 | break 2 |
9091 | fi | |
9092 | done | |
81ecdfbb RW |
9093 | done |
9094 | IFS=$as_save_IFS | |
c6b750e1 | 9095 | |
859789af AC |
9096 | fi |
9097 | fi | |
c6b750e1 | 9098 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9099 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9101 | $as_echo "$RANLIB" >&6; } | |
859789af | 9102 | else |
81ecdfbb RW |
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9104 | $as_echo "no" >&6; } | |
859789af | 9105 | fi |
c6b750e1 | 9106 | |
81ecdfbb | 9107 | |
859789af | 9108 | fi |
05cbd757 PB |
9109 | test -n "$ac_cv_prog_RANLIB" && break |
9110 | done | |
9111 | ||
9112 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9113 | RANLIB="true" |
859789af AC |
9114 | fi |
9115 | ||
9a819804 AO |
9116 | |
9117 | ||
9118 | if test -n "$STRIP"; then | |
9119 | ac_cv_prog_STRIP=$STRIP | |
9120 | elif test -n "$ac_cv_prog_STRIP"; then | |
9121 | STRIP=$ac_cv_prog_STRIP | |
9122 | fi | |
9123 | ||
9124 | if test -n "$ac_cv_prog_STRIP"; then | |
9125 | for ncn_progname in strip; do | |
9126 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9127 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9129 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9130 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9131 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9132 | else |
9133 | if test -n "$STRIP"; then | |
9134 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9135 | else | |
9136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9137 | for as_dir in $PATH | |
9138 | do | |
9139 | IFS=$as_save_IFS | |
9140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9141 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9143 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9145 | break 2 |
9146 | fi | |
9147 | done | |
81ecdfbb RW |
9148 | done |
9149 | IFS=$as_save_IFS | |
9a819804 AO |
9150 | |
9151 | fi | |
9152 | fi | |
9153 | STRIP=$ac_cv_prog_STRIP | |
9154 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9156 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9157 | else |
81ecdfbb RW |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9159 | $as_echo "no" >&6; } | |
9a819804 AO |
9160 | fi |
9161 | ||
81ecdfbb | 9162 | |
9a819804 AO |
9163 | done |
9164 | fi | |
9165 | ||
9166 | for ncn_progname in strip; do | |
be01d343 PB |
9167 | if test -n "$ncn_tool_prefix"; then |
9168 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9169 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9171 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9172 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9173 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9174 | else |
9175 | if test -n "$STRIP"; then | |
9176 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9177 | else | |
c6b750e1 DJ |
9178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9179 | for as_dir in $PATH | |
9180 | do | |
9181 | IFS=$as_save_IFS | |
9182 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9183 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9185 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9187 | break 2 |
9188 | fi | |
9189 | done | |
81ecdfbb RW |
9190 | done |
9191 | IFS=$as_save_IFS | |
c6b750e1 | 9192 | |
be01d343 PB |
9193 | fi |
9194 | fi | |
c6b750e1 | 9195 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9196 | if test -n "$STRIP"; then |
81ecdfbb RW |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9198 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9199 | else |
81ecdfbb RW |
9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9201 | $as_echo "no" >&6; } | |
be01d343 PB |
9202 | fi |
9203 | ||
81ecdfbb | 9204 | |
be01d343 PB |
9205 | fi |
9206 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9208 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9210 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9211 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9212 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9213 | else |
9214 | if test -n "$STRIP"; then | |
9215 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9216 | else | |
c6b750e1 DJ |
9217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9218 | for as_dir in $PATH | |
9219 | do | |
9220 | IFS=$as_save_IFS | |
9221 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9222 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9224 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9226 | break 2 |
9227 | fi | |
9228 | done | |
81ecdfbb RW |
9229 | done |
9230 | IFS=$as_save_IFS | |
c6b750e1 | 9231 | |
be01d343 PB |
9232 | fi |
9233 | fi | |
c6b750e1 | 9234 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9235 | if test -n "$STRIP"; then |
81ecdfbb RW |
9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9237 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9238 | else |
81ecdfbb RW |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9240 | $as_echo "no" >&6; } | |
be01d343 | 9241 | fi |
c6b750e1 | 9242 | |
81ecdfbb | 9243 | |
be01d343 PB |
9244 | fi |
9245 | test -n "$ac_cv_prog_STRIP" && break | |
9246 | done | |
9247 | ||
9248 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9249 | STRIP="true" |
be01d343 PB |
9250 | fi |
9251 | ||
9a819804 AO |
9252 | |
9253 | ||
9254 | if test -n "$WINDRES"; then | |
9255 | ac_cv_prog_WINDRES=$WINDRES | |
9256 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9257 | WINDRES=$ac_cv_prog_WINDRES | |
9258 | fi | |
9259 | ||
9260 | if test -n "$ac_cv_prog_WINDRES"; then | |
9261 | for ncn_progname in windres; do | |
9262 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9263 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9265 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9266 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9267 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9268 | else |
9269 | if test -n "$WINDRES"; then | |
9270 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9271 | else | |
9272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9273 | for as_dir in $PATH | |
9274 | do | |
9275 | IFS=$as_save_IFS | |
9276 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9277 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9279 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9281 | break 2 |
9282 | fi | |
9283 | done | |
81ecdfbb RW |
9284 | done |
9285 | IFS=$as_save_IFS | |
9a819804 AO |
9286 | |
9287 | fi | |
9288 | fi | |
9289 | WINDRES=$ac_cv_prog_WINDRES | |
9290 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9292 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9293 | else |
81ecdfbb RW |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9295 | $as_echo "no" >&6; } | |
9a819804 AO |
9296 | fi |
9297 | ||
81ecdfbb | 9298 | |
9a819804 AO |
9299 | done |
9300 | fi | |
9301 | ||
9302 | for ncn_progname in windres; do | |
05cbd757 PB |
9303 | if test -n "$ncn_tool_prefix"; then |
9304 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9305 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9307 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9308 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9309 | $as_echo_n "(cached) " >&6 |
859789af AC |
9310 | else |
9311 | if test -n "$WINDRES"; then | |
9312 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9313 | else | |
c6b750e1 DJ |
9314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9315 | for as_dir in $PATH | |
9316 | do | |
9317 | IFS=$as_save_IFS | |
9318 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9319 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9321 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9323 | break 2 |
9324 | fi | |
9325 | done | |
81ecdfbb RW |
9326 | done |
9327 | IFS=$as_save_IFS | |
c6b750e1 | 9328 | |
859789af AC |
9329 | fi |
9330 | fi | |
c6b750e1 | 9331 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9332 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9334 | $as_echo "$WINDRES" >&6; } | |
859789af | 9335 | else |
81ecdfbb RW |
9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9337 | $as_echo "no" >&6; } | |
859789af AC |
9338 | fi |
9339 | ||
81ecdfbb | 9340 | |
05cbd757 PB |
9341 | fi |
9342 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9343 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9344 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9346 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9347 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9348 | $as_echo_n "(cached) " >&6 |
859789af | 9349 | else |
05cbd757 PB |
9350 | if test -n "$WINDRES"; then |
9351 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9352 | else |
c6b750e1 DJ |
9353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9354 | for as_dir in $PATH | |
9355 | do | |
9356 | IFS=$as_save_IFS | |
9357 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9358 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9360 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9362 | break 2 |
9363 | fi | |
9364 | done | |
81ecdfbb RW |
9365 | done |
9366 | IFS=$as_save_IFS | |
c6b750e1 | 9367 | |
859789af AC |
9368 | fi |
9369 | fi | |
c6b750e1 | 9370 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9371 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9373 | $as_echo "$WINDRES" >&6; } | |
859789af | 9374 | else |
81ecdfbb RW |
9375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9376 | $as_echo "no" >&6; } | |
859789af | 9377 | fi |
c6b750e1 | 9378 | |
81ecdfbb | 9379 | |
05cbd757 PB |
9380 | fi |
9381 | test -n "$ac_cv_prog_WINDRES" && break | |
9382 | done | |
9383 | ||
9384 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9385 | set dummy windres | |
9386 | if test $build = $host ; then | |
9387 | WINDRES="$2" | |
859789af | 9388 | else |
05cbd757 | 9389 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9390 | fi |
859789af AC |
9391 | fi |
9392 | ||
9a819804 AO |
9393 | |
9394 | ||
0c24b341 NC |
9395 | if test -n "$WINDMC"; then |
9396 | ac_cv_prog_WINDMC=$WINDMC | |
9397 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9398 | WINDMC=$ac_cv_prog_WINDMC | |
9399 | fi | |
9400 | ||
9401 | if test -n "$ac_cv_prog_WINDMC"; then | |
9402 | for ncn_progname in windmc; do | |
9403 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9404 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9406 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9407 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9408 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9409 | else |
9410 | if test -n "$WINDMC"; then | |
9411 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9412 | else | |
9413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9414 | for as_dir in $PATH | |
9415 | do | |
9416 | IFS=$as_save_IFS | |
9417 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9418 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9420 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9422 | break 2 |
9423 | fi | |
9424 | done | |
81ecdfbb RW |
9425 | done |
9426 | IFS=$as_save_IFS | |
0c24b341 NC |
9427 | |
9428 | fi | |
9429 | fi | |
9430 | WINDMC=$ac_cv_prog_WINDMC | |
9431 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9433 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9434 | else |
81ecdfbb RW |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9436 | $as_echo "no" >&6; } | |
0c24b341 NC |
9437 | fi |
9438 | ||
81ecdfbb | 9439 | |
0c24b341 NC |
9440 | done |
9441 | fi | |
9442 | ||
9443 | for ncn_progname in windmc; do | |
9444 | if test -n "$ncn_tool_prefix"; then | |
9445 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9446 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9448 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9449 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9450 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9451 | else |
9452 | if test -n "$WINDMC"; then | |
9453 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9454 | else | |
9455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9456 | for as_dir in $PATH | |
9457 | do | |
9458 | IFS=$as_save_IFS | |
9459 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9460 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9462 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9464 | break 2 |
9465 | fi | |
9466 | done | |
81ecdfbb RW |
9467 | done |
9468 | IFS=$as_save_IFS | |
0c24b341 NC |
9469 | |
9470 | fi | |
9471 | fi | |
9472 | WINDMC=$ac_cv_prog_WINDMC | |
9473 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9475 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9476 | else |
81ecdfbb RW |
9477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9478 | $as_echo "no" >&6; } | |
0c24b341 NC |
9479 | fi |
9480 | ||
81ecdfbb | 9481 | |
0c24b341 NC |
9482 | fi |
9483 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9484 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9485 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9487 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9488 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9489 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9490 | else |
9491 | if test -n "$WINDMC"; then | |
9492 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9493 | else | |
9494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9495 | for as_dir in $PATH | |
9496 | do | |
9497 | IFS=$as_save_IFS | |
9498 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9499 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9501 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9503 | break 2 |
9504 | fi | |
9505 | done | |
81ecdfbb RW |
9506 | done |
9507 | IFS=$as_save_IFS | |
0c24b341 NC |
9508 | |
9509 | fi | |
9510 | fi | |
9511 | WINDMC=$ac_cv_prog_WINDMC | |
9512 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9514 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9515 | else |
81ecdfbb RW |
9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9517 | $as_echo "no" >&6; } | |
0c24b341 NC |
9518 | fi |
9519 | ||
81ecdfbb | 9520 | |
0c24b341 NC |
9521 | fi |
9522 | test -n "$ac_cv_prog_WINDMC" && break | |
9523 | done | |
9524 | ||
9525 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9526 | set dummy windmc | |
9527 | if test $build = $host ; then | |
9528 | WINDMC="$2" | |
9529 | else | |
9530 | WINDMC="${ncn_tool_prefix}$2" | |
9531 | fi | |
9532 | fi | |
9533 | ||
9534 | ||
9535 | ||
9a819804 AO |
9536 | if test -n "$OBJCOPY"; then |
9537 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9538 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9539 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9540 | fi | |
9541 | ||
9542 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9543 | for ncn_progname in objcopy; do | |
9544 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9545 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9547 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9548 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9549 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9550 | else |
9551 | if test -n "$OBJCOPY"; then | |
9552 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9553 | else | |
9554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9555 | for as_dir in $PATH | |
9556 | do | |
9557 | IFS=$as_save_IFS | |
9558 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9559 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9561 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9563 | break 2 |
9564 | fi | |
9565 | done | |
81ecdfbb RW |
9566 | done |
9567 | IFS=$as_save_IFS | |
9a819804 AO |
9568 | |
9569 | fi | |
9570 | fi | |
9571 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9572 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9574 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9575 | else |
81ecdfbb RW |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9577 | $as_echo "no" >&6; } | |
9a819804 AO |
9578 | fi |
9579 | ||
81ecdfbb | 9580 | |
9a819804 AO |
9581 | done |
9582 | fi | |
9583 | ||
9584 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9585 | if test -n "$ncn_tool_prefix"; then |
9586 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9587 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9589 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9590 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9591 | $as_echo_n "(cached) " >&6 |
859789af AC |
9592 | else |
9593 | if test -n "$OBJCOPY"; then | |
9594 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9595 | else | |
c6b750e1 DJ |
9596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9597 | for as_dir in $PATH | |
9598 | do | |
9599 | IFS=$as_save_IFS | |
9600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9601 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9603 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9605 | break 2 |
9606 | fi | |
9607 | done | |
81ecdfbb RW |
9608 | done |
9609 | IFS=$as_save_IFS | |
c6b750e1 | 9610 | |
859789af AC |
9611 | fi |
9612 | fi | |
c6b750e1 | 9613 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9614 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9616 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9617 | else |
81ecdfbb RW |
9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9619 | $as_echo "no" >&6; } | |
859789af AC |
9620 | fi |
9621 | ||
81ecdfbb | 9622 | |
05cbd757 PB |
9623 | fi |
9624 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9625 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9626 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9628 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9629 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9630 | $as_echo_n "(cached) " >&6 |
859789af | 9631 | else |
05cbd757 PB |
9632 | if test -n "$OBJCOPY"; then |
9633 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9634 | else |
c6b750e1 DJ |
9635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9636 | for as_dir in $PATH | |
9637 | do | |
9638 | IFS=$as_save_IFS | |
9639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9640 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9642 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9644 | break 2 |
9645 | fi | |
9646 | done | |
81ecdfbb RW |
9647 | done |
9648 | IFS=$as_save_IFS | |
c6b750e1 | 9649 | |
859789af AC |
9650 | fi |
9651 | fi | |
c6b750e1 | 9652 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9653 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9655 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9656 | else |
81ecdfbb RW |
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9658 | $as_echo "no" >&6; } | |
859789af | 9659 | fi |
c6b750e1 | 9660 | |
81ecdfbb | 9661 | |
05cbd757 PB |
9662 | fi |
9663 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9664 | done | |
9665 | ||
9666 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9667 | set dummy objcopy | |
9668 | if test $build = $host ; then | |
9669 | OBJCOPY="$2" | |
859789af | 9670 | else |
05cbd757 | 9671 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9672 | fi |
859789af AC |
9673 | fi |
9674 | ||
9a819804 AO |
9675 | |
9676 | ||
9677 | if test -n "$OBJDUMP"; then | |
9678 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9679 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9680 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9681 | fi | |
9682 | ||
9683 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9684 | for ncn_progname in objdump; do | |
9685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9686 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9688 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9689 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9690 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9691 | else |
9692 | if test -n "$OBJDUMP"; then | |
9693 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9694 | else | |
9695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9696 | for as_dir in $PATH | |
9697 | do | |
9698 | IFS=$as_save_IFS | |
9699 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9700 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9702 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9704 | break 2 |
9705 | fi | |
9706 | done | |
81ecdfbb RW |
9707 | done |
9708 | IFS=$as_save_IFS | |
9a819804 AO |
9709 | |
9710 | fi | |
9711 | fi | |
9712 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9713 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9715 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9716 | else |
81ecdfbb RW |
9717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9718 | $as_echo "no" >&6; } | |
9a819804 AO |
9719 | fi |
9720 | ||
81ecdfbb | 9721 | |
9a819804 AO |
9722 | done |
9723 | fi | |
9724 | ||
9725 | for ncn_progname in objdump; do | |
05cbd757 PB |
9726 | if test -n "$ncn_tool_prefix"; then |
9727 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9728 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9730 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9731 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9732 | $as_echo_n "(cached) " >&6 |
859789af AC |
9733 | else |
9734 | if test -n "$OBJDUMP"; then | |
9735 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9736 | else | |
c6b750e1 DJ |
9737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9738 | for as_dir in $PATH | |
9739 | do | |
9740 | IFS=$as_save_IFS | |
9741 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9742 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9744 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9746 | break 2 |
9747 | fi | |
9748 | done | |
81ecdfbb RW |
9749 | done |
9750 | IFS=$as_save_IFS | |
c6b750e1 | 9751 | |
859789af AC |
9752 | fi |
9753 | fi | |
c6b750e1 | 9754 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9755 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9757 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9758 | else |
81ecdfbb RW |
9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9760 | $as_echo "no" >&6; } | |
859789af AC |
9761 | fi |
9762 | ||
81ecdfbb | 9763 | |
05cbd757 PB |
9764 | fi |
9765 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9766 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9767 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9769 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9770 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9771 | $as_echo_n "(cached) " >&6 |
859789af | 9772 | else |
05cbd757 PB |
9773 | if test -n "$OBJDUMP"; then |
9774 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9775 | else |
c6b750e1 DJ |
9776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9777 | for as_dir in $PATH | |
9778 | do | |
9779 | IFS=$as_save_IFS | |
9780 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9781 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9783 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9785 | break 2 |
9786 | fi | |
9787 | done | |
81ecdfbb RW |
9788 | done |
9789 | IFS=$as_save_IFS | |
c6b750e1 | 9790 | |
859789af AC |
9791 | fi |
9792 | fi | |
c6b750e1 | 9793 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9794 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9796 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9797 | else |
81ecdfbb RW |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9799 | $as_echo "no" >&6; } | |
859789af | 9800 | fi |
c6b750e1 | 9801 | |
81ecdfbb | 9802 | |
05cbd757 PB |
9803 | fi |
9804 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9805 | done | |
9806 | ||
9807 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9808 | set dummy objdump | |
9809 | if test $build = $host ; then | |
9810 | OBJDUMP="$2" | |
859789af | 9811 | else |
05cbd757 | 9812 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9813 | fi |
859789af AC |
9814 | fi |
9815 | ||
a0da8069 NN |
9816 | |
9817 | ||
b121d7d4 DD |
9818 | if test -n "$READELF"; then |
9819 | ac_cv_prog_READELF=$READELF | |
9820 | elif test -n "$ac_cv_prog_READELF"; then | |
9821 | READELF=$ac_cv_prog_READELF | |
9822 | fi | |
9823 | ||
9824 | if test -n "$ac_cv_prog_READELF"; then | |
9825 | for ncn_progname in readelf; do | |
9826 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9827 | set dummy ${ncn_progname}; ac_word=$2 | |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9829 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9830 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9831 | $as_echo_n "(cached) " >&6 |
9832 | else | |
9833 | if test -n "$READELF"; then | |
9834 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9835 | else | |
9836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9837 | for as_dir in $PATH | |
9838 | do | |
9839 | IFS=$as_save_IFS | |
9840 | test -z "$as_dir" && as_dir=. | |
9841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9843 | ac_cv_prog_READELF="${ncn_progname}" |
9844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9845 | break 2 | |
9846 | fi | |
9847 | done | |
9848 | done | |
9849 | IFS=$as_save_IFS | |
9850 | ||
9851 | fi | |
9852 | fi | |
9853 | READELF=$ac_cv_prog_READELF | |
9854 | if test -n "$READELF"; then | |
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9856 | $as_echo "$READELF" >&6; } | |
9857 | else | |
9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9859 | $as_echo "no" >&6; } | |
9860 | fi | |
9861 | ||
9862 | ||
9863 | done | |
9864 | fi | |
9865 | ||
9866 | for ncn_progname in readelf; do | |
9867 | if test -n "$ncn_tool_prefix"; then | |
9868 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9869 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9871 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9872 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9873 | $as_echo_n "(cached) " >&6 |
9874 | else | |
9875 | if test -n "$READELF"; then | |
9876 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9877 | else | |
9878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9879 | for as_dir in $PATH | |
9880 | do | |
9881 | IFS=$as_save_IFS | |
9882 | test -z "$as_dir" && as_dir=. | |
9883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9885 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
9886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9887 | break 2 | |
9888 | fi | |
9889 | done | |
9890 | done | |
9891 | IFS=$as_save_IFS | |
9892 | ||
9893 | fi | |
9894 | fi | |
9895 | READELF=$ac_cv_prog_READELF | |
9896 | if test -n "$READELF"; then | |
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9898 | $as_echo "$READELF" >&6; } | |
9899 | else | |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9901 | $as_echo "no" >&6; } | |
9902 | fi | |
9903 | ||
9904 | ||
9905 | fi | |
9906 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9907 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9908 | set dummy ${ncn_progname}; ac_word=$2 | |
9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9910 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9911 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9912 | $as_echo_n "(cached) " >&6 |
9913 | else | |
9914 | if test -n "$READELF"; then | |
9915 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9916 | else | |
9917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9918 | for as_dir in $PATH | |
9919 | do | |
9920 | IFS=$as_save_IFS | |
9921 | test -z "$as_dir" && as_dir=. | |
9922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9924 | ac_cv_prog_READELF="${ncn_progname}" |
9925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9926 | break 2 | |
9927 | fi | |
9928 | done | |
9929 | done | |
9930 | IFS=$as_save_IFS | |
9931 | ||
9932 | fi | |
9933 | fi | |
9934 | READELF=$ac_cv_prog_READELF | |
9935 | if test -n "$READELF"; then | |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9937 | $as_echo "$READELF" >&6; } | |
9938 | else | |
9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9940 | $as_echo "no" >&6; } | |
9941 | fi | |
9942 | ||
9943 | ||
9944 | fi | |
9945 | test -n "$ac_cv_prog_READELF" && break | |
9946 | done | |
9947 | ||
9948 | if test -z "$ac_cv_prog_READELF" ; then | |
9949 | set dummy readelf | |
9950 | if test $build = $host ; then | |
9951 | READELF="$2" | |
9952 | else | |
9953 | READELF="${ncn_tool_prefix}$2" | |
9954 | fi | |
9955 | fi | |
9956 | ||
9957 | ||
9958 | ||
a0da8069 NN |
9959 | |
9960 | ||
9961 | ||
be01d343 | 9962 | # Target tools. |
c6b750e1 | 9963 | |
81ecdfbb RW |
9964 | # Check whether --with-build-time-tools was given. |
9965 | if test "${with_build_time_tools+set}" = set; then : | |
9966 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9967 | x/*) ;; |
9968 | *) | |
9969 | with_build_time_tools= | |
81ecdfbb RW |
9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9971 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9972 | ;; |
9973 | esac | |
859789af | 9974 | else |
2429c060 | 9975 | with_build_time_tools= |
81ecdfbb RW |
9976 | fi |
9977 | ||
859789af | 9978 | |
9a819804 AO |
9979 | |
9980 | ||
9981 | if test -n "$CC_FOR_TARGET"; then | |
9982 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9983 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9984 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9985 | fi | |
9986 | ||
9987 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9988 | for ncn_progname in cc gcc; do | |
9989 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9990 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9992 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9993 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 9994 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9995 | else |
9996 | if test -n "$CC_FOR_TARGET"; then | |
9997 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9998 | else | |
9999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10000 | for as_dir in $PATH | |
10001 | do | |
10002 | IFS=$as_save_IFS | |
10003 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10004 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10005 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10006 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10008 | break 2 |
10009 | fi | |
10010 | done | |
81ecdfbb RW |
10011 | done |
10012 | IFS=$as_save_IFS | |
9a819804 AO |
10013 | |
10014 | fi | |
10015 | fi | |
10016 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10017 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10019 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10020 | else |
81ecdfbb RW |
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10022 | $as_echo "no" >&6; } | |
9a819804 AO |
10023 | fi |
10024 | ||
81ecdfbb | 10025 | |
9a819804 AO |
10026 | done |
10027 | fi | |
10028 | ||
10029 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10030 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10032 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10033 | if test -x $with_build_time_tools/${ncn_progname}; then |
10034 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10036 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10037 | break |
2429c060 | 10038 | else |
81ecdfbb RW |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10040 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10041 | fi |
10042 | done | |
55db4b87 PB |
10043 | fi |
10044 | ||
2429c060 PB |
10045 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10046 | for ncn_progname in cc gcc; do | |
10047 | if test -n "$ncn_target_tool_prefix"; then | |
10048 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10049 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10051 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10052 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10053 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10054 | else |
10055 | if test -n "$CC_FOR_TARGET"; then | |
10056 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10057 | else | |
c6b750e1 DJ |
10058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10059 | for as_dir in $PATH | |
10060 | do | |
10061 | IFS=$as_save_IFS | |
10062 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10063 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10065 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10067 | break 2 |
10068 | fi | |
10069 | done | |
81ecdfbb RW |
10070 | done |
10071 | IFS=$as_save_IFS | |
c6b750e1 | 10072 | |
55db4b87 PB |
10073 | fi |
10074 | fi | |
c6b750e1 | 10075 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10076 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10078 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10079 | else |
81ecdfbb RW |
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10081 | $as_echo "no" >&6; } | |
55db4b87 PB |
10082 | fi |
10083 | ||
81ecdfbb | 10084 | |
2429c060 PB |
10085 | fi |
10086 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10087 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10088 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10090 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10091 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10092 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10093 | else |
05cbd757 PB |
10094 | if test -n "$CC_FOR_TARGET"; then |
10095 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10096 | else |
c6b750e1 DJ |
10097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10098 | for as_dir in $PATH | |
10099 | do | |
10100 | IFS=$as_save_IFS | |
10101 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10102 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10104 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10106 | break 2 |
10107 | fi | |
10108 | done | |
81ecdfbb RW |
10109 | done |
10110 | IFS=$as_save_IFS | |
c6b750e1 | 10111 | |
55db4b87 PB |
10112 | fi |
10113 | fi | |
c6b750e1 | 10114 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10115 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10117 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10118 | else |
81ecdfbb RW |
10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10120 | $as_echo "no" >&6; } | |
55db4b87 | 10121 | fi |
c6b750e1 | 10122 | |
81ecdfbb | 10123 | |
2429c060 PB |
10124 | fi |
10125 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10126 | done | |
10127 | fi | |
c6b750e1 | 10128 | |
05cbd757 PB |
10129 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10130 | set dummy cc gcc | |
10131 | if test $build = $target ; then | |
10132 | CC_FOR_TARGET="$2" | |
55db4b87 | 10133 | else |
05cbd757 | 10134 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10135 | fi |
d3f5afc4 MS |
10136 | else |
10137 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10138 | fi |
10139 | ||
9a819804 AO |
10140 | |
10141 | ||
10142 | if test -n "$CXX_FOR_TARGET"; then | |
10143 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10144 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10145 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10146 | fi | |
10147 | ||
10148 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10149 | for ncn_progname in c++ g++ cxx gxx; do | |
10150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10151 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10153 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10154 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10155 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10156 | else |
10157 | if test -n "$CXX_FOR_TARGET"; then | |
10158 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10159 | else | |
10160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10161 | for as_dir in $PATH | |
10162 | do | |
10163 | IFS=$as_save_IFS | |
10164 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10165 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10167 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10169 | break 2 |
10170 | fi | |
10171 | done | |
81ecdfbb RW |
10172 | done |
10173 | IFS=$as_save_IFS | |
9a819804 AO |
10174 | |
10175 | fi | |
10176 | fi | |
10177 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10178 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10180 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10181 | else |
81ecdfbb RW |
10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10183 | $as_echo "no" >&6; } | |
9a819804 AO |
10184 | fi |
10185 | ||
81ecdfbb | 10186 | |
9a819804 AO |
10187 | done |
10188 | fi | |
10189 | ||
10190 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10191 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10193 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10194 | if test -x $with_build_time_tools/${ncn_progname}; then |
10195 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10197 | $as_echo "yes" >&6; } | |
2429c060 PB |
10198 | break |
10199 | else | |
81ecdfbb RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10201 | $as_echo "no" >&6; } | |
2429c060 PB |
10202 | fi |
10203 | done | |
10204 | fi | |
10205 | ||
10206 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10207 | for ncn_progname in c++ g++ cxx gxx; do | |
10208 | if test -n "$ncn_target_tool_prefix"; then | |
10209 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10210 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10212 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10213 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10214 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10215 | else |
10216 | if test -n "$CXX_FOR_TARGET"; then | |
10217 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10218 | else | |
c6b750e1 DJ |
10219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10220 | for as_dir in $PATH | |
10221 | do | |
10222 | IFS=$as_save_IFS | |
10223 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10224 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10226 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10228 | break 2 |
10229 | fi | |
10230 | done | |
81ecdfbb RW |
10231 | done |
10232 | IFS=$as_save_IFS | |
c6b750e1 | 10233 | |
55db4b87 PB |
10234 | fi |
10235 | fi | |
c6b750e1 | 10236 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10237 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10239 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10240 | else |
81ecdfbb RW |
10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10242 | $as_echo "no" >&6; } | |
55db4b87 PB |
10243 | fi |
10244 | ||
81ecdfbb | 10245 | |
2429c060 PB |
10246 | fi |
10247 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10248 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10249 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10251 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10252 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10253 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10254 | else |
05cbd757 PB |
10255 | if test -n "$CXX_FOR_TARGET"; then |
10256 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10257 | else |
c6b750e1 DJ |
10258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10259 | for as_dir in $PATH | |
10260 | do | |
10261 | IFS=$as_save_IFS | |
10262 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10263 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10264 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10265 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10267 | break 2 |
10268 | fi | |
10269 | done | |
81ecdfbb RW |
10270 | done |
10271 | IFS=$as_save_IFS | |
c6b750e1 | 10272 | |
55db4b87 PB |
10273 | fi |
10274 | fi | |
c6b750e1 | 10275 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10276 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10278 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10279 | else |
81ecdfbb RW |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10281 | $as_echo "no" >&6; } | |
55db4b87 | 10282 | fi |
c6b750e1 | 10283 | |
81ecdfbb | 10284 | |
2429c060 PB |
10285 | fi |
10286 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10287 | done | |
10288 | fi | |
c6b750e1 | 10289 | |
05cbd757 PB |
10290 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10291 | set dummy c++ g++ cxx gxx | |
10292 | if test $build = $target ; then | |
10293 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10294 | else |
05cbd757 | 10295 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10296 | fi |
d3f5afc4 MS |
10297 | else |
10298 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10299 | fi |
10300 | ||
9a819804 AO |
10301 | |
10302 | ||
10303 | if test -n "$GCC_FOR_TARGET"; then | |
10304 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10305 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10306 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10307 | fi | |
10308 | ||
10309 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10310 | for ncn_progname in gcc; do | |
10311 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10312 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10314 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10315 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10316 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10317 | else |
10318 | if test -n "$GCC_FOR_TARGET"; then | |
10319 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10320 | else | |
10321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10322 | for as_dir in $PATH | |
10323 | do | |
10324 | IFS=$as_save_IFS | |
10325 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10326 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10328 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10330 | break 2 |
10331 | fi | |
10332 | done | |
81ecdfbb RW |
10333 | done |
10334 | IFS=$as_save_IFS | |
9a819804 AO |
10335 | |
10336 | fi | |
10337 | fi | |
10338 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10339 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10341 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10342 | else |
81ecdfbb RW |
10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10344 | $as_echo "no" >&6; } | |
9a819804 AO |
10345 | fi |
10346 | ||
81ecdfbb | 10347 | |
9a819804 AO |
10348 | done |
10349 | fi | |
10350 | ||
10351 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10352 | for ncn_progname in gcc; do |
81ecdfbb RW |
10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10354 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10355 | if test -x $with_build_time_tools/${ncn_progname}; then |
10356 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10358 | $as_echo "yes" >&6; } | |
2429c060 PB |
10359 | break |
10360 | else | |
81ecdfbb RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10362 | $as_echo "no" >&6; } | |
2429c060 PB |
10363 | fi |
10364 | done | |
10365 | fi | |
10366 | ||
10367 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10368 | for ncn_progname in gcc; do | |
10369 | if test -n "$ncn_target_tool_prefix"; then | |
10370 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10371 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10373 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10374 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10375 | $as_echo_n "(cached) " >&6 |
859789af | 10376 | else |
2429c060 PB |
10377 | if test -n "$GCC_FOR_TARGET"; then |
10378 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10379 | else |
c6b750e1 DJ |
10380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10381 | for as_dir in $PATH | |
10382 | do | |
10383 | IFS=$as_save_IFS | |
10384 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10385 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10387 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10389 | break 2 |
10390 | fi | |
10391 | done | |
81ecdfbb RW |
10392 | done |
10393 | IFS=$as_save_IFS | |
c6b750e1 | 10394 | |
55db4b87 PB |
10395 | fi |
10396 | fi | |
c6b750e1 | 10397 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10398 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10400 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10401 | else |
81ecdfbb RW |
10402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10403 | $as_echo "no" >&6; } | |
55db4b87 PB |
10404 | fi |
10405 | ||
81ecdfbb | 10406 | |
2429c060 PB |
10407 | fi |
10408 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10409 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10410 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10412 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10413 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10414 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10415 | else |
05cbd757 PB |
10416 | if test -n "$GCC_FOR_TARGET"; then |
10417 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10418 | else |
c6b750e1 DJ |
10419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10420 | for as_dir in $PATH | |
10421 | do | |
10422 | IFS=$as_save_IFS | |
10423 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10424 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10426 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10428 | break 2 |
10429 | fi | |
10430 | done | |
81ecdfbb RW |
10431 | done |
10432 | IFS=$as_save_IFS | |
c6b750e1 | 10433 | |
55db4b87 PB |
10434 | fi |
10435 | fi | |
c6b750e1 | 10436 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10437 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10439 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10440 | else |
81ecdfbb RW |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10442 | $as_echo "no" >&6; } | |
55db4b87 | 10443 | fi |
c6b750e1 | 10444 | |
81ecdfbb | 10445 | |
2429c060 PB |
10446 | fi |
10447 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10448 | done | |
10449 | fi | |
c6b750e1 | 10450 | |
05cbd757 PB |
10451 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10452 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10453 | else |
10454 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10455 | fi |
10456 | ||
9a819804 AO |
10457 | |
10458 | ||
9a819804 AO |
10459 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10460 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10461 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10462 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10463 | fi |
10464 | ||
9a819804 AO |
10465 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10466 | for ncn_progname in gfortran; do | |
10467 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10468 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10470 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10471 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10472 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10473 | else |
9a819804 AO |
10474 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10475 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10476 | else |
c6b750e1 DJ |
10477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10478 | for as_dir in $PATH | |
10479 | do | |
10480 | IFS=$as_save_IFS | |
10481 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10482 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10484 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10486 | break 2 |
10487 | fi | |
10488 | done | |
81ecdfbb RW |
10489 | done |
10490 | IFS=$as_save_IFS | |
c6b750e1 | 10491 | |
55db4b87 PB |
10492 | fi |
10493 | fi | |
9a819804 AO |
10494 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10495 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10497 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10498 | else |
81ecdfbb RW |
10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10500 | $as_echo "no" >&6; } | |
55db4b87 | 10501 | fi |
c6b750e1 | 10502 | |
81ecdfbb | 10503 | |
2429c060 PB |
10504 | done |
10505 | fi | |
c6b750e1 | 10506 | |
9a819804 | 10507 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10508 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10510 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10511 | if test -x $with_build_time_tools/${ncn_progname}; then |
10512 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10514 | $as_echo "yes" >&6; } | |
2429c060 PB |
10515 | break |
10516 | else | |
81ecdfbb RW |
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10518 | $as_echo "no" >&6; } | |
2429c060 PB |
10519 | fi |
10520 | done | |
10521 | fi | |
10522 | ||
10523 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10524 | for ncn_progname in gfortran; do | |
10525 | if test -n "$ncn_target_tool_prefix"; then | |
10526 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10527 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10529 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10530 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10531 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10532 | else |
10533 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10534 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10535 | else | |
c6b750e1 DJ |
10536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10537 | for as_dir in $PATH | |
10538 | do | |
10539 | IFS=$as_save_IFS | |
10540 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10541 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10543 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10545 | break 2 |
10546 | fi | |
10547 | done | |
81ecdfbb RW |
10548 | done |
10549 | IFS=$as_save_IFS | |
c6b750e1 | 10550 | |
55db4b87 PB |
10551 | fi |
10552 | fi | |
c6b750e1 | 10553 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10554 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10556 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10557 | else |
81ecdfbb RW |
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10559 | $as_echo "no" >&6; } | |
55db4b87 PB |
10560 | fi |
10561 | ||
81ecdfbb | 10562 | |
2429c060 PB |
10563 | fi |
10564 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10565 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10566 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10568 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10569 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10570 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10571 | else |
05cbd757 | 10572 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10573 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10574 | else | |
10575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10576 | for as_dir in $PATH | |
10577 | do | |
10578 | IFS=$as_save_IFS | |
10579 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10580 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10582 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10584 | break 2 |
10585 | fi | |
10586 | done | |
81ecdfbb RW |
10587 | done |
10588 | IFS=$as_save_IFS | |
c6b750e1 | 10589 | |
55db4b87 PB |
10590 | fi |
10591 | fi | |
c6b750e1 | 10592 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10593 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10595 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10596 | else |
81ecdfbb RW |
10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10598 | $as_echo "no" >&6; } | |
55db4b87 | 10599 | fi |
c6b750e1 | 10600 | |
81ecdfbb | 10601 | |
2429c060 PB |
10602 | fi |
10603 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10604 | done | |
10605 | fi | |
c6b750e1 | 10606 | |
05cbd757 PB |
10607 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10608 | set dummy gfortran | |
10609 | if test $build = $target ; then | |
10610 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10611 | else |
05cbd757 | 10612 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10613 | fi |
d3f5afc4 MS |
10614 | else |
10615 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10616 | fi |
10617 | ||
2429c060 PB |
10618 | |
10619 | ||
e552509b ILT |
10620 | if test -n "$GOC_FOR_TARGET"; then |
10621 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10622 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10623 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10624 | fi | |
10625 | ||
10626 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10627 | for ncn_progname in gccgo; do | |
10628 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10629 | set dummy ${ncn_progname}; ac_word=$2 | |
10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10631 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10632 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10633 | $as_echo_n "(cached) " >&6 |
10634 | else | |
10635 | if test -n "$GOC_FOR_TARGET"; then | |
10636 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10637 | else | |
10638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10639 | for as_dir in $PATH | |
10640 | do | |
10641 | IFS=$as_save_IFS | |
10642 | test -z "$as_dir" && as_dir=. | |
10643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10645 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10647 | break 2 | |
10648 | fi | |
10649 | done | |
10650 | done | |
10651 | IFS=$as_save_IFS | |
10652 | ||
10653 | fi | |
10654 | fi | |
10655 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10656 | if test -n "$GOC_FOR_TARGET"; then | |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10658 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10659 | else | |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10661 | $as_echo "no" >&6; } | |
10662 | fi | |
10663 | ||
10664 | ||
10665 | done | |
10666 | fi | |
10667 | ||
10668 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10669 | for ncn_progname in gccgo; do | |
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10671 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10672 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10673 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10675 | $as_echo "yes" >&6; } | |
10676 | break | |
10677 | else | |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10679 | $as_echo "no" >&6; } | |
10680 | fi | |
10681 | done | |
10682 | fi | |
10683 | ||
10684 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10685 | for ncn_progname in gccgo; do | |
10686 | if test -n "$ncn_target_tool_prefix"; then | |
10687 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10688 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10690 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10691 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10692 | $as_echo_n "(cached) " >&6 |
10693 | else | |
10694 | if test -n "$GOC_FOR_TARGET"; then | |
10695 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10696 | else | |
10697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10698 | for as_dir in $PATH | |
10699 | do | |
10700 | IFS=$as_save_IFS | |
10701 | test -z "$as_dir" && as_dir=. | |
10702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10704 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10706 | break 2 | |
10707 | fi | |
10708 | done | |
10709 | done | |
10710 | IFS=$as_save_IFS | |
10711 | ||
10712 | fi | |
10713 | fi | |
10714 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10715 | if test -n "$GOC_FOR_TARGET"; then | |
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10717 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10718 | else | |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10720 | $as_echo "no" >&6; } | |
10721 | fi | |
10722 | ||
10723 | ||
10724 | fi | |
10725 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10726 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10727 | set dummy ${ncn_progname}; ac_word=$2 | |
10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10729 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10730 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10731 | $as_echo_n "(cached) " >&6 |
10732 | else | |
10733 | if test -n "$GOC_FOR_TARGET"; then | |
10734 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10735 | else | |
10736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10737 | for as_dir in $PATH | |
10738 | do | |
10739 | IFS=$as_save_IFS | |
10740 | test -z "$as_dir" && as_dir=. | |
10741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10743 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10745 | break 2 | |
10746 | fi | |
10747 | done | |
10748 | done | |
10749 | IFS=$as_save_IFS | |
10750 | ||
10751 | fi | |
10752 | fi | |
10753 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10754 | if test -n "$GOC_FOR_TARGET"; then | |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10756 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10757 | else | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10759 | $as_echo "no" >&6; } | |
10760 | fi | |
10761 | ||
10762 | ||
10763 | fi | |
10764 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10765 | done | |
10766 | fi | |
10767 | ||
10768 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10769 | set dummy gccgo | |
10770 | if test $build = $target ; then | |
10771 | GOC_FOR_TARGET="$2" | |
10772 | else | |
10773 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10774 | fi | |
10775 | else | |
10776 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10777 | fi | |
10778 | ||
10779 | ||
10780 | ||
2429c060 PB |
10781 | cat > conftest.c << \EOF |
10782 | #ifdef __GNUC__ | |
10783 | gcc_yay; | |
10784 | #endif | |
10785 | EOF | |
10786 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10787 | have_gcc_for_target=yes | |
859789af | 10788 | else |
2429c060 PB |
10789 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10790 | have_gcc_for_target=no | |
859789af | 10791 | fi |
2429c060 PB |
10792 | rm conftest.c |
10793 | ||
10794 | ||
10795 | ||
859789af | 10796 | |
2429c060 PB |
10797 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10798 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10800 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10801 | if test -x $with_build_time_tools/ar; then |
10802 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10803 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10805 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10806 | else |
81ecdfbb RW |
10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10808 | $as_echo "no" >&6; } | |
3a35eeb3 | 10809 | fi |
2429c060 PB |
10810 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10811 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10812 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10813 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10814 | fi |
2429c060 | 10815 | fi |
c6b750e1 | 10816 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10817 | # Extract the first word of "ar", so it can be a program name with args. |
10818 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10820 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10821 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10822 | $as_echo_n "(cached) " >&6 |
859789af | 10823 | else |
c6b750e1 DJ |
10824 | case $AR_FOR_TARGET in |
10825 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10826 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10827 | ;; | |
2429c060 | 10828 | *) |
c6b750e1 DJ |
10829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10830 | for as_dir in $gcc_cv_tool_dirs | |
10831 | do | |
10832 | IFS=$as_save_IFS | |
10833 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10834 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10836 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10838 | break 2 |
10839 | fi | |
10840 | done | |
81ecdfbb RW |
10841 | done |
10842 | IFS=$as_save_IFS | |
c6b750e1 | 10843 | |
2429c060 PB |
10844 | ;; |
10845 | esac | |
859789af | 10846 | fi |
c6b750e1 | 10847 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10848 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10850 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10851 | else |
81ecdfbb RW |
10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10853 | $as_echo "no" >&6; } | |
859789af | 10854 | fi |
05cbd757 | 10855 | |
81ecdfbb | 10856 | |
2429c060 PB |
10857 | fi |
10858 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10859 | |
10860 | ||
10861 | if test -n "$AR_FOR_TARGET"; then | |
10862 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10863 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10864 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10865 | fi | |
10866 | ||
10867 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10868 | for ncn_progname in ar; do | |
10869 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10870 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10872 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10873 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10874 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10875 | else |
10876 | if test -n "$AR_FOR_TARGET"; then | |
10877 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10878 | else | |
10879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10880 | for as_dir in $PATH | |
10881 | do | |
10882 | IFS=$as_save_IFS | |
10883 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10884 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10886 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10888 | break 2 |
10889 | fi | |
10890 | done | |
81ecdfbb RW |
10891 | done |
10892 | IFS=$as_save_IFS | |
9a819804 AO |
10893 | |
10894 | fi | |
10895 | fi | |
10896 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10897 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10899 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10900 | else |
81ecdfbb RW |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10902 | $as_echo "no" >&6; } | |
9a819804 AO |
10903 | fi |
10904 | ||
81ecdfbb | 10905 | |
9a819804 AO |
10906 | done |
10907 | fi | |
10908 | ||
10909 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10910 | for ncn_progname in ar; do |
81ecdfbb RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10912 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10913 | if test -x $with_build_time_tools/${ncn_progname}; then |
10914 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10916 | $as_echo "yes" >&6; } | |
2429c060 PB |
10917 | break |
10918 | else | |
81ecdfbb RW |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10920 | $as_echo "no" >&6; } | |
2429c060 PB |
10921 | fi |
10922 | done | |
859789af AC |
10923 | fi |
10924 | ||
2429c060 PB |
10925 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10926 | for ncn_progname in ar; do | |
10927 | if test -n "$ncn_target_tool_prefix"; then | |
10928 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10929 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10931 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10932 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10933 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10934 | else |
2429c060 PB |
10935 | if test -n "$AR_FOR_TARGET"; then |
10936 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10937 | else |
c6b750e1 DJ |
10938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10939 | for as_dir in $PATH | |
10940 | do | |
10941 | IFS=$as_save_IFS | |
10942 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10943 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10945 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10947 | break 2 |
10948 | fi | |
10949 | done | |
81ecdfbb RW |
10950 | done |
10951 | IFS=$as_save_IFS | |
c6b750e1 | 10952 | |
7e0f7140 GK |
10953 | fi |
10954 | fi | |
c6b750e1 | 10955 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10956 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10958 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10959 | else |
81ecdfbb RW |
10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10961 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10962 | fi |
10963 | ||
81ecdfbb | 10964 | |
2429c060 PB |
10965 | fi |
10966 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10967 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10968 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10970 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10971 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10972 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10973 | else |
2429c060 PB |
10974 | if test -n "$AR_FOR_TARGET"; then |
10975 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10976 | else |
c6b750e1 DJ |
10977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10978 | for as_dir in $PATH | |
10979 | do | |
10980 | IFS=$as_save_IFS | |
10981 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10982 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10984 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10986 | break 2 |
10987 | fi | |
10988 | done | |
81ecdfbb RW |
10989 | done |
10990 | IFS=$as_save_IFS | |
c6b750e1 | 10991 | |
7e0f7140 GK |
10992 | fi |
10993 | fi | |
c6b750e1 | 10994 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10995 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10997 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10998 | else |
81ecdfbb RW |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11000 | $as_echo "no" >&6; } | |
7e0f7140 | 11001 | fi |
c6b750e1 | 11002 | |
81ecdfbb | 11003 | |
2429c060 PB |
11004 | fi |
11005 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11006 | done | |
11007 | fi | |
c6b750e1 | 11008 | |
2429c060 PB |
11009 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11010 | set dummy ar | |
7e0f7140 | 11011 | if test $build = $target ; then |
2429c060 | 11012 | AR_FOR_TARGET="$2" |
7e0f7140 | 11013 | else |
2429c060 | 11014 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11015 | fi |
d3f5afc4 MS |
11016 | else |
11017 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11018 | fi |
11019 | ||
3a35eeb3 PB |
11020 | else |
11021 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11022 | fi |
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11028 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11030 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11031 | if test -x $with_build_time_tools/as; then |
11032 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11033 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11035 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11036 | else |
81ecdfbb RW |
11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11038 | $as_echo "no" >&6; } | |
3a35eeb3 | 11039 | fi |
2429c060 PB |
11040 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11041 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11042 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11043 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11044 | fi |
11045 | fi | |
c6b750e1 | 11046 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11047 | # Extract the first word of "as", so it can be a program name with args. |
11048 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11050 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11051 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11052 | $as_echo_n "(cached) " >&6 |
2429c060 | 11053 | else |
c6b750e1 DJ |
11054 | case $AS_FOR_TARGET in |
11055 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11056 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11057 | ;; | |
2429c060 | 11058 | *) |
c6b750e1 DJ |
11059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11060 | for as_dir in $gcc_cv_tool_dirs | |
11061 | do | |
11062 | IFS=$as_save_IFS | |
11063 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11064 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11066 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11068 | break 2 |
11069 | fi | |
11070 | done | |
81ecdfbb RW |
11071 | done |
11072 | IFS=$as_save_IFS | |
c6b750e1 | 11073 | |
2429c060 PB |
11074 | ;; |
11075 | esac | |
11076 | fi | |
c6b750e1 | 11077 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11078 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11080 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11081 | else |
81ecdfbb RW |
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11083 | $as_echo "no" >&6; } | |
2429c060 PB |
11084 | fi |
11085 | ||
81ecdfbb | 11086 | |
2429c060 PB |
11087 | fi |
11088 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11089 | |
11090 | ||
11091 | if test -n "$AS_FOR_TARGET"; then | |
11092 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11093 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11094 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11095 | fi | |
11096 | ||
11097 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11098 | for ncn_progname in as; do | |
11099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11100 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11102 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11103 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11104 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11105 | else |
11106 | if test -n "$AS_FOR_TARGET"; then | |
11107 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11108 | else | |
11109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11110 | for as_dir in $PATH | |
11111 | do | |
11112 | IFS=$as_save_IFS | |
11113 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11114 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11116 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11118 | break 2 |
11119 | fi | |
11120 | done | |
81ecdfbb RW |
11121 | done |
11122 | IFS=$as_save_IFS | |
9a819804 AO |
11123 | |
11124 | fi | |
11125 | fi | |
11126 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11127 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11129 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11130 | else |
81ecdfbb RW |
11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11132 | $as_echo "no" >&6; } | |
9a819804 AO |
11133 | fi |
11134 | ||
81ecdfbb | 11135 | |
9a819804 AO |
11136 | done |
11137 | fi | |
11138 | ||
11139 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11140 | for ncn_progname in as; do |
81ecdfbb RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11142 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11143 | if test -x $with_build_time_tools/${ncn_progname}; then |
11144 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11146 | $as_echo "yes" >&6; } | |
2429c060 PB |
11147 | break |
11148 | else | |
81ecdfbb RW |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11150 | $as_echo "no" >&6; } | |
2429c060 PB |
11151 | fi |
11152 | done | |
11153 | fi | |
11154 | ||
11155 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11156 | for ncn_progname in as; do | |
11157 | if test -n "$ncn_target_tool_prefix"; then | |
11158 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11159 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11161 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11162 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11163 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11164 | else |
11165 | if test -n "$AS_FOR_TARGET"; then | |
11166 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11167 | else | |
c6b750e1 DJ |
11168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11169 | for as_dir in $PATH | |
11170 | do | |
11171 | IFS=$as_save_IFS | |
11172 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11173 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11175 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11177 | break 2 |
11178 | fi | |
11179 | done | |
81ecdfbb RW |
11180 | done |
11181 | IFS=$as_save_IFS | |
c6b750e1 | 11182 | |
2429c060 PB |
11183 | fi |
11184 | fi | |
c6b750e1 | 11185 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11186 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11188 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11189 | else |
81ecdfbb RW |
11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11191 | $as_echo "no" >&6; } | |
2429c060 PB |
11192 | fi |
11193 | ||
81ecdfbb | 11194 | |
2429c060 PB |
11195 | fi |
11196 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11198 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11200 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11201 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11202 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11203 | else |
11204 | if test -n "$AS_FOR_TARGET"; then | |
11205 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11206 | else | |
c6b750e1 DJ |
11207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11208 | for as_dir in $PATH | |
11209 | do | |
11210 | IFS=$as_save_IFS | |
11211 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11212 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11214 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11216 | break 2 |
11217 | fi | |
11218 | done | |
81ecdfbb RW |
11219 | done |
11220 | IFS=$as_save_IFS | |
c6b750e1 | 11221 | |
2429c060 PB |
11222 | fi |
11223 | fi | |
c6b750e1 | 11224 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11225 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11227 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11228 | else |
81ecdfbb RW |
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11230 | $as_echo "no" >&6; } | |
2429c060 | 11231 | fi |
c6b750e1 | 11232 | |
81ecdfbb | 11233 | |
2429c060 PB |
11234 | fi |
11235 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11236 | done | |
11237 | fi | |
c6b750e1 | 11238 | |
2429c060 PB |
11239 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11240 | set dummy as | |
11241 | if test $build = $target ; then | |
11242 | AS_FOR_TARGET="$2" | |
11243 | else | |
11244 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11245 | fi | |
d3f5afc4 MS |
11246 | else |
11247 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11248 | fi |
11249 | ||
3a35eeb3 PB |
11250 | else |
11251 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11252 | fi |
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11258 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11260 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11261 | if test -x $with_build_time_tools/dlltool; then |
11262 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11263 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11265 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11266 | else |
81ecdfbb RW |
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11268 | $as_echo "no" >&6; } | |
3a35eeb3 | 11269 | fi |
2429c060 PB |
11270 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11271 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11272 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11273 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11274 | fi |
11275 | fi | |
c6b750e1 | 11276 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11277 | # Extract the first word of "dlltool", so it can be a program name with args. |
11278 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11280 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11281 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11282 | $as_echo_n "(cached) " >&6 |
2429c060 | 11283 | else |
c6b750e1 DJ |
11284 | case $DLLTOOL_FOR_TARGET in |
11285 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11286 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11287 | ;; | |
2429c060 | 11288 | *) |
c6b750e1 DJ |
11289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11290 | for as_dir in $gcc_cv_tool_dirs | |
11291 | do | |
11292 | IFS=$as_save_IFS | |
11293 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11294 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11296 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11298 | break 2 |
11299 | fi | |
11300 | done | |
81ecdfbb RW |
11301 | done |
11302 | IFS=$as_save_IFS | |
c6b750e1 | 11303 | |
2429c060 PB |
11304 | ;; |
11305 | esac | |
11306 | fi | |
c6b750e1 | 11307 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11308 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11310 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11311 | else |
81ecdfbb RW |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11313 | $as_echo "no" >&6; } | |
2429c060 PB |
11314 | fi |
11315 | ||
81ecdfbb | 11316 | |
2429c060 PB |
11317 | fi |
11318 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11319 | |
11320 | ||
11321 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11322 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11323 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11324 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11325 | fi | |
11326 | ||
11327 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11328 | for ncn_progname in dlltool; do | |
11329 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11330 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11332 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11333 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11334 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11335 | else |
11336 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11337 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11338 | else | |
11339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11340 | for as_dir in $PATH | |
11341 | do | |
11342 | IFS=$as_save_IFS | |
11343 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11344 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11346 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11348 | break 2 |
11349 | fi | |
11350 | done | |
81ecdfbb RW |
11351 | done |
11352 | IFS=$as_save_IFS | |
9a819804 AO |
11353 | |
11354 | fi | |
11355 | fi | |
11356 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11357 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11359 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11360 | else |
81ecdfbb RW |
11361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11362 | $as_echo "no" >&6; } | |
9a819804 AO |
11363 | fi |
11364 | ||
81ecdfbb | 11365 | |
9a819804 AO |
11366 | done |
11367 | fi | |
11368 | ||
11369 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11370 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11372 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11373 | if test -x $with_build_time_tools/${ncn_progname}; then |
11374 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11376 | $as_echo "yes" >&6; } | |
2429c060 PB |
11377 | break |
11378 | else | |
81ecdfbb RW |
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11380 | $as_echo "no" >&6; } | |
2429c060 PB |
11381 | fi |
11382 | done | |
11383 | fi | |
11384 | ||
11385 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11386 | for ncn_progname in dlltool; do | |
11387 | if test -n "$ncn_target_tool_prefix"; then | |
11388 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11389 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11391 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11392 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11393 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11394 | else |
11395 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11396 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11397 | else | |
c6b750e1 DJ |
11398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11399 | for as_dir in $PATH | |
11400 | do | |
11401 | IFS=$as_save_IFS | |
11402 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11403 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11405 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11407 | break 2 |
11408 | fi | |
11409 | done | |
81ecdfbb RW |
11410 | done |
11411 | IFS=$as_save_IFS | |
c6b750e1 | 11412 | |
2429c060 PB |
11413 | fi |
11414 | fi | |
c6b750e1 | 11415 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11416 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11418 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11419 | else |
81ecdfbb RW |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11421 | $as_echo "no" >&6; } | |
2429c060 PB |
11422 | fi |
11423 | ||
81ecdfbb | 11424 | |
2429c060 PB |
11425 | fi |
11426 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11428 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11430 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11431 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11432 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11433 | else |
11434 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11435 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11436 | else | |
c6b750e1 DJ |
11437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11438 | for as_dir in $PATH | |
11439 | do | |
11440 | IFS=$as_save_IFS | |
11441 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11442 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11444 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11446 | break 2 |
11447 | fi | |
11448 | done | |
81ecdfbb RW |
11449 | done |
11450 | IFS=$as_save_IFS | |
c6b750e1 | 11451 | |
2429c060 PB |
11452 | fi |
11453 | fi | |
c6b750e1 | 11454 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11455 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11457 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11458 | else |
81ecdfbb RW |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11460 | $as_echo "no" >&6; } | |
2429c060 | 11461 | fi |
c6b750e1 | 11462 | |
81ecdfbb | 11463 | |
2429c060 PB |
11464 | fi |
11465 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11466 | done | |
11467 | fi | |
c6b750e1 | 11468 | |
2429c060 PB |
11469 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11470 | set dummy dlltool | |
11471 | if test $build = $target ; then | |
11472 | DLLTOOL_FOR_TARGET="$2" | |
11473 | else | |
11474 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11475 | fi | |
d3f5afc4 MS |
11476 | else |
11477 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11478 | fi |
11479 | ||
3a35eeb3 PB |
11480 | else |
11481 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11482 | fi |
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11488 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11490 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11491 | if test -x $with_build_time_tools/ld; then |
11492 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11493 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11495 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11496 | else |
81ecdfbb RW |
11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11498 | $as_echo "no" >&6; } | |
3a35eeb3 | 11499 | fi |
2429c060 PB |
11500 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11501 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11502 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11503 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11504 | fi |
11505 | fi | |
c6b750e1 | 11506 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11507 | # Extract the first word of "ld", so it can be a program name with args. |
11508 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11510 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11511 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11512 | $as_echo_n "(cached) " >&6 |
2429c060 | 11513 | else |
c6b750e1 DJ |
11514 | case $LD_FOR_TARGET in |
11515 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11516 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11517 | ;; | |
2429c060 | 11518 | *) |
c6b750e1 DJ |
11519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11520 | for as_dir in $gcc_cv_tool_dirs | |
11521 | do | |
11522 | IFS=$as_save_IFS | |
11523 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11524 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11526 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11528 | break 2 |
11529 | fi | |
11530 | done | |
81ecdfbb RW |
11531 | done |
11532 | IFS=$as_save_IFS | |
c6b750e1 | 11533 | |
2429c060 PB |
11534 | ;; |
11535 | esac | |
11536 | fi | |
c6b750e1 | 11537 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11538 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11540 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11541 | else |
81ecdfbb RW |
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11543 | $as_echo "no" >&6; } | |
2429c060 PB |
11544 | fi |
11545 | ||
81ecdfbb | 11546 | |
2429c060 PB |
11547 | fi |
11548 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11549 | |
11550 | ||
11551 | if test -n "$LD_FOR_TARGET"; then | |
11552 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11553 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11554 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11555 | fi | |
11556 | ||
11557 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11558 | for ncn_progname in ld; do | |
11559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11560 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11562 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11563 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11564 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11565 | else |
11566 | if test -n "$LD_FOR_TARGET"; then | |
11567 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11568 | else | |
11569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11570 | for as_dir in $PATH | |
11571 | do | |
11572 | IFS=$as_save_IFS | |
11573 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11574 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11576 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11578 | break 2 |
11579 | fi | |
11580 | done | |
81ecdfbb RW |
11581 | done |
11582 | IFS=$as_save_IFS | |
9a819804 AO |
11583 | |
11584 | fi | |
11585 | fi | |
11586 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11587 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11589 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11590 | else |
81ecdfbb RW |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11592 | $as_echo "no" >&6; } | |
9a819804 AO |
11593 | fi |
11594 | ||
81ecdfbb | 11595 | |
9a819804 AO |
11596 | done |
11597 | fi | |
11598 | ||
11599 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11600 | for ncn_progname in ld; do |
81ecdfbb RW |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11602 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11603 | if test -x $with_build_time_tools/${ncn_progname}; then |
11604 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11606 | $as_echo "yes" >&6; } | |
2429c060 PB |
11607 | break |
11608 | else | |
81ecdfbb RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11610 | $as_echo "no" >&6; } | |
2429c060 PB |
11611 | fi |
11612 | done | |
11613 | fi | |
11614 | ||
11615 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11616 | for ncn_progname in ld; do | |
11617 | if test -n "$ncn_target_tool_prefix"; then | |
11618 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11619 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11621 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11622 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11623 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11624 | else |
11625 | if test -n "$LD_FOR_TARGET"; then | |
11626 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11627 | else | |
c6b750e1 DJ |
11628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11629 | for as_dir in $PATH | |
11630 | do | |
11631 | IFS=$as_save_IFS | |
11632 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11633 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11635 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11637 | break 2 |
11638 | fi | |
11639 | done | |
81ecdfbb RW |
11640 | done |
11641 | IFS=$as_save_IFS | |
c6b750e1 | 11642 | |
2429c060 PB |
11643 | fi |
11644 | fi | |
c6b750e1 | 11645 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11646 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11648 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11649 | else |
81ecdfbb RW |
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11651 | $as_echo "no" >&6; } | |
2429c060 PB |
11652 | fi |
11653 | ||
81ecdfbb | 11654 | |
2429c060 PB |
11655 | fi |
11656 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11657 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11658 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11660 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11661 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11662 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11663 | else |
11664 | if test -n "$LD_FOR_TARGET"; then | |
11665 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11666 | else | |
c6b750e1 DJ |
11667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11668 | for as_dir in $PATH | |
11669 | do | |
11670 | IFS=$as_save_IFS | |
11671 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11672 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11674 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11676 | break 2 |
11677 | fi | |
11678 | done | |
81ecdfbb RW |
11679 | done |
11680 | IFS=$as_save_IFS | |
c6b750e1 | 11681 | |
2429c060 PB |
11682 | fi |
11683 | fi | |
c6b750e1 | 11684 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11685 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11687 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11688 | else |
81ecdfbb RW |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11690 | $as_echo "no" >&6; } | |
2429c060 | 11691 | fi |
c6b750e1 | 11692 | |
81ecdfbb | 11693 | |
2429c060 PB |
11694 | fi |
11695 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11696 | done | |
11697 | fi | |
c6b750e1 | 11698 | |
2429c060 PB |
11699 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11700 | set dummy ld | |
11701 | if test $build = $target ; then | |
11702 | LD_FOR_TARGET="$2" | |
11703 | else | |
11704 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11705 | fi | |
d3f5afc4 MS |
11706 | else |
11707 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11708 | fi |
11709 | ||
3a35eeb3 PB |
11710 | else |
11711 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11712 | fi |
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11718 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11720 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11721 | if test -x $with_build_time_tools/lipo; then |
11722 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11723 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11725 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11726 | else |
81ecdfbb RW |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11728 | $as_echo "no" >&6; } | |
3a35eeb3 | 11729 | fi |
2429c060 PB |
11730 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11731 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11732 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11733 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11734 | fi |
11735 | fi | |
9a819804 AO |
11736 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11737 | # Extract the first word of "lipo", so it can be a program name with args. | |
11738 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11740 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11741 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11742 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11743 | else |
11744 | case $LIPO_FOR_TARGET in | |
11745 | [\\/]* | ?:[\\/]*) | |
11746 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11747 | ;; | |
11748 | *) | |
11749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11750 | for as_dir in $gcc_cv_tool_dirs | |
11751 | do | |
11752 | IFS=$as_save_IFS | |
11753 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11754 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11756 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11758 | break 2 |
11759 | fi | |
11760 | done | |
81ecdfbb RW |
11761 | done |
11762 | IFS=$as_save_IFS | |
9a819804 AO |
11763 | |
11764 | ;; | |
11765 | esac | |
11766 | fi | |
11767 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11768 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11770 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11771 | else |
81ecdfbb RW |
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11773 | $as_echo "no" >&6; } | |
9a819804 AO |
11774 | fi |
11775 | ||
81ecdfbb | 11776 | |
9a819804 AO |
11777 | fi |
11778 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11779 | ||
11780 | ||
11781 | if test -n "$LIPO_FOR_TARGET"; then | |
11782 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11783 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11784 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11785 | fi | |
11786 | ||
11787 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11788 | for ncn_progname in lipo; do | |
11789 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11790 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11793 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11794 | $as_echo_n "(cached) " >&6 |
2429c060 | 11795 | else |
9a819804 AO |
11796 | if test -n "$LIPO_FOR_TARGET"; then |
11797 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11798 | else | |
11799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11800 | for as_dir in $PATH | |
c6b750e1 DJ |
11801 | do |
11802 | IFS=$as_save_IFS | |
11803 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11804 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11806 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11808 | break 2 |
11809 | fi | |
11810 | done | |
81ecdfbb RW |
11811 | done |
11812 | IFS=$as_save_IFS | |
c6b750e1 | 11813 | |
2429c060 | 11814 | fi |
9a819804 AO |
11815 | fi |
11816 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11817 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11819 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11820 | else |
81ecdfbb RW |
11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11822 | $as_echo "no" >&6; } | |
2429c060 PB |
11823 | fi |
11824 | ||
81ecdfbb | 11825 | |
9a819804 | 11826 | done |
2429c060 | 11827 | fi |
9a819804 AO |
11828 | |
11829 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11830 | for ncn_progname in lipo; do |
81ecdfbb RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11832 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11833 | if test -x $with_build_time_tools/${ncn_progname}; then |
11834 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11836 | $as_echo "yes" >&6; } | |
2429c060 PB |
11837 | break |
11838 | else | |
81ecdfbb RW |
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11840 | $as_echo "no" >&6; } | |
2429c060 PB |
11841 | fi |
11842 | done | |
11843 | fi | |
11844 | ||
11845 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11846 | for ncn_progname in lipo; do | |
11847 | if test -n "$ncn_target_tool_prefix"; then | |
11848 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11849 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11851 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11852 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11853 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11854 | else |
11855 | if test -n "$LIPO_FOR_TARGET"; then | |
11856 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11857 | else | |
c6b750e1 DJ |
11858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11859 | for as_dir in $PATH | |
11860 | do | |
11861 | IFS=$as_save_IFS | |
11862 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11863 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11865 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11867 | break 2 |
11868 | fi | |
11869 | done | |
81ecdfbb RW |
11870 | done |
11871 | IFS=$as_save_IFS | |
c6b750e1 | 11872 | |
2429c060 PB |
11873 | fi |
11874 | fi | |
c6b750e1 | 11875 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11876 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11878 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11879 | else |
81ecdfbb RW |
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11881 | $as_echo "no" >&6; } | |
2429c060 PB |
11882 | fi |
11883 | ||
81ecdfbb | 11884 | |
2429c060 PB |
11885 | fi |
11886 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11888 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11890 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11891 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11892 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11893 | else |
11894 | if test -n "$LIPO_FOR_TARGET"; then | |
11895 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11896 | else | |
c6b750e1 DJ |
11897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11898 | for as_dir in $PATH | |
11899 | do | |
11900 | IFS=$as_save_IFS | |
11901 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11902 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11904 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11906 | break 2 |
11907 | fi | |
11908 | done | |
81ecdfbb RW |
11909 | done |
11910 | IFS=$as_save_IFS | |
c6b750e1 | 11911 | |
2429c060 PB |
11912 | fi |
11913 | fi | |
c6b750e1 | 11914 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11915 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11917 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11918 | else |
81ecdfbb RW |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11920 | $as_echo "no" >&6; } | |
2429c060 | 11921 | fi |
c6b750e1 | 11922 | |
81ecdfbb | 11923 | |
2429c060 PB |
11924 | fi |
11925 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11926 | done | |
11927 | fi | |
c6b750e1 | 11928 | |
2429c060 PB |
11929 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11930 | set dummy lipo | |
11931 | if test $build = $target ; then | |
11932 | LIPO_FOR_TARGET="$2" | |
11933 | else | |
11934 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11935 | fi | |
d3f5afc4 MS |
11936 | else |
11937 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11938 | fi |
11939 | ||
3a35eeb3 PB |
11940 | else |
11941 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11942 | fi |
11943 | ||
11944 | ||
11945 | ||
11946 | ||
11947 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11948 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11950 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11951 | if test -x $with_build_time_tools/nm; then |
11952 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11953 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11955 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11956 | else |
81ecdfbb RW |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11958 | $as_echo "no" >&6; } | |
3a35eeb3 | 11959 | fi |
2429c060 PB |
11960 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11961 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11962 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11963 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11964 | fi |
11965 | fi | |
c6b750e1 | 11966 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11967 | # Extract the first word of "nm", so it can be a program name with args. |
11968 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11970 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11971 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 11972 | $as_echo_n "(cached) " >&6 |
2429c060 | 11973 | else |
c6b750e1 DJ |
11974 | case $NM_FOR_TARGET in |
11975 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11976 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11977 | ;; | |
2429c060 | 11978 | *) |
c6b750e1 DJ |
11979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11980 | for as_dir in $gcc_cv_tool_dirs | |
11981 | do | |
11982 | IFS=$as_save_IFS | |
11983 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11984 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11986 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11988 | break 2 |
11989 | fi | |
11990 | done | |
81ecdfbb RW |
11991 | done |
11992 | IFS=$as_save_IFS | |
c6b750e1 | 11993 | |
2429c060 PB |
11994 | ;; |
11995 | esac | |
11996 | fi | |
c6b750e1 | 11997 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11998 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12000 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12001 | else |
81ecdfbb RW |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12003 | $as_echo "no" >&6; } | |
2429c060 PB |
12004 | fi |
12005 | ||
81ecdfbb | 12006 | |
2429c060 PB |
12007 | fi |
12008 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12009 | |
12010 | ||
12011 | if test -n "$NM_FOR_TARGET"; then | |
12012 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12013 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12014 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12015 | fi | |
12016 | ||
12017 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12018 | for ncn_progname in nm; do | |
12019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12020 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12022 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12023 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12024 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12025 | else |
12026 | if test -n "$NM_FOR_TARGET"; then | |
12027 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12028 | else | |
12029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12030 | for as_dir in $PATH | |
12031 | do | |
12032 | IFS=$as_save_IFS | |
12033 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12034 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12036 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12038 | break 2 |
12039 | fi | |
12040 | done | |
81ecdfbb RW |
12041 | done |
12042 | IFS=$as_save_IFS | |
9a819804 AO |
12043 | |
12044 | fi | |
12045 | fi | |
12046 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12047 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12049 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12050 | else |
81ecdfbb RW |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12052 | $as_echo "no" >&6; } | |
9a819804 AO |
12053 | fi |
12054 | ||
81ecdfbb | 12055 | |
9a819804 AO |
12056 | done |
12057 | fi | |
12058 | ||
12059 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12060 | for ncn_progname in nm; do |
81ecdfbb RW |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12062 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12063 | if test -x $with_build_time_tools/${ncn_progname}; then |
12064 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12066 | $as_echo "yes" >&6; } | |
2429c060 PB |
12067 | break |
12068 | else | |
81ecdfbb RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12070 | $as_echo "no" >&6; } | |
2429c060 PB |
12071 | fi |
12072 | done | |
12073 | fi | |
12074 | ||
12075 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12076 | for ncn_progname in nm; do | |
12077 | if test -n "$ncn_target_tool_prefix"; then | |
12078 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12079 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12081 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12082 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12083 | $as_echo_n "(cached) " >&6 |
859789af | 12084 | else |
55db4b87 PB |
12085 | if test -n "$NM_FOR_TARGET"; then |
12086 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12087 | else |
c6b750e1 DJ |
12088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12089 | for as_dir in $PATH | |
12090 | do | |
12091 | IFS=$as_save_IFS | |
12092 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12093 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12095 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12097 | break 2 |
12098 | fi | |
12099 | done | |
81ecdfbb RW |
12100 | done |
12101 | IFS=$as_save_IFS | |
c6b750e1 | 12102 | |
859789af AC |
12103 | fi |
12104 | fi | |
c6b750e1 | 12105 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12106 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12108 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12109 | else |
81ecdfbb RW |
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12111 | $as_echo "no" >&6; } | |
859789af AC |
12112 | fi |
12113 | ||
81ecdfbb | 12114 | |
2429c060 PB |
12115 | fi |
12116 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12117 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12118 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12120 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12121 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12122 | $as_echo_n "(cached) " >&6 |
859789af | 12123 | else |
05cbd757 PB |
12124 | if test -n "$NM_FOR_TARGET"; then |
12125 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12126 | else |
c6b750e1 DJ |
12127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12128 | for as_dir in $PATH | |
12129 | do | |
12130 | IFS=$as_save_IFS | |
12131 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12132 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12134 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12136 | break 2 |
12137 | fi | |
12138 | done | |
81ecdfbb RW |
12139 | done |
12140 | IFS=$as_save_IFS | |
c6b750e1 | 12141 | |
859789af AC |
12142 | fi |
12143 | fi | |
c6b750e1 | 12144 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12145 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12147 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12148 | else |
81ecdfbb RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12150 | $as_echo "no" >&6; } | |
859789af | 12151 | fi |
c6b750e1 | 12152 | |
81ecdfbb | 12153 | |
2429c060 PB |
12154 | fi |
12155 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12156 | done | |
12157 | fi | |
c6b750e1 | 12158 | |
05cbd757 PB |
12159 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12160 | set dummy nm | |
12161 | if test $build = $target ; then | |
12162 | NM_FOR_TARGET="$2" | |
859789af | 12163 | else |
05cbd757 | 12164 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12165 | fi |
d3f5afc4 MS |
12166 | else |
12167 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12168 | fi |
12169 | ||
3a35eeb3 PB |
12170 | else |
12171 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12172 | fi |
12173 | ||
12174 | ||
12175 | ||
12176 | ||
6b91c541 AP |
12177 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12178 | if test -n "$with_build_time_tools"; then | |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12180 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12181 | if test -x $with_build_time_tools/objcopy; then | |
12182 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12183 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12185 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12186 | else | |
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12188 | $as_echo "no" >&6; } | |
12189 | fi | |
12190 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12191 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12192 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12193 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12194 | fi | |
12195 | fi | |
12196 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12197 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12198 | set dummy objcopy; ac_word=$2 | |
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12200 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12201 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12202 | $as_echo_n "(cached) " >&6 |
12203 | else | |
12204 | case $OBJCOPY_FOR_TARGET in | |
12205 | [\\/]* | ?:[\\/]*) | |
12206 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12207 | ;; | |
12208 | *) | |
12209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12210 | for as_dir in $gcc_cv_tool_dirs | |
12211 | do | |
12212 | IFS=$as_save_IFS | |
12213 | test -z "$as_dir" && as_dir=. | |
12214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12216 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12218 | break 2 | |
12219 | fi | |
12220 | done | |
12221 | done | |
12222 | IFS=$as_save_IFS | |
12223 | ||
12224 | ;; | |
12225 | esac | |
12226 | fi | |
12227 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12228 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12230 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12231 | else | |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12233 | $as_echo "no" >&6; } | |
12234 | fi | |
12235 | ||
12236 | ||
12237 | fi | |
12238 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12239 | ||
12240 | ||
12241 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12242 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12243 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12244 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12245 | fi | |
12246 | ||
12247 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12248 | for ncn_progname in objcopy; do | |
12249 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12250 | set dummy ${ncn_progname}; ac_word=$2 | |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12252 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12253 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12254 | $as_echo_n "(cached) " >&6 |
12255 | else | |
12256 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12257 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12258 | else | |
12259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12260 | for as_dir in $PATH | |
12261 | do | |
12262 | IFS=$as_save_IFS | |
12263 | test -z "$as_dir" && as_dir=. | |
12264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12265 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12266 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12268 | break 2 | |
12269 | fi | |
12270 | done | |
12271 | done | |
12272 | IFS=$as_save_IFS | |
12273 | ||
12274 | fi | |
12275 | fi | |
12276 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12277 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12279 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12280 | else | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12282 | $as_echo "no" >&6; } | |
12283 | fi | |
12284 | ||
12285 | ||
12286 | done | |
12287 | fi | |
12288 | ||
12289 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12290 | for ncn_progname in objcopy; do | |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12292 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12293 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12294 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12296 | $as_echo "yes" >&6; } | |
12297 | break | |
12298 | else | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12300 | $as_echo "no" >&6; } | |
12301 | fi | |
12302 | done | |
12303 | fi | |
12304 | ||
12305 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12306 | for ncn_progname in objcopy; do | |
12307 | if test -n "$ncn_target_tool_prefix"; then | |
12308 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12309 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12311 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12312 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12313 | $as_echo_n "(cached) " >&6 |
12314 | else | |
12315 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12316 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12317 | else | |
12318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12319 | for as_dir in $PATH | |
12320 | do | |
12321 | IFS=$as_save_IFS | |
12322 | test -z "$as_dir" && as_dir=. | |
12323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12325 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12327 | break 2 | |
12328 | fi | |
12329 | done | |
12330 | done | |
12331 | IFS=$as_save_IFS | |
12332 | ||
12333 | fi | |
12334 | fi | |
12335 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12336 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12338 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12339 | else | |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12341 | $as_echo "no" >&6; } | |
12342 | fi | |
12343 | ||
12344 | ||
12345 | fi | |
12346 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12347 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12348 | set dummy ${ncn_progname}; ac_word=$2 | |
12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12350 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12351 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12352 | $as_echo_n "(cached) " >&6 |
12353 | else | |
12354 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12355 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12356 | else | |
12357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12358 | for as_dir in $PATH | |
12359 | do | |
12360 | IFS=$as_save_IFS | |
12361 | test -z "$as_dir" && as_dir=. | |
12362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12364 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12366 | break 2 | |
12367 | fi | |
12368 | done | |
12369 | done | |
12370 | IFS=$as_save_IFS | |
12371 | ||
12372 | fi | |
12373 | fi | |
12374 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12375 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12377 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12378 | else | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12380 | $as_echo "no" >&6; } | |
12381 | fi | |
12382 | ||
12383 | ||
12384 | fi | |
12385 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12386 | done | |
12387 | fi | |
12388 | ||
12389 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12390 | set dummy objcopy | |
12391 | if test $build = $target ; then | |
12392 | OBJCOPY_FOR_TARGET="$2" | |
12393 | else | |
12394 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12395 | fi | |
12396 | else | |
12397 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12398 | fi | |
12399 | ||
12400 | else | |
12401 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12402 | fi | |
12403 | ||
12404 | ||
12405 | ||
12406 | ||
2429c060 PB |
12407 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12408 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12410 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12411 | if test -x $with_build_time_tools/objdump; then |
12412 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12413 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12415 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12416 | else |
81ecdfbb RW |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12418 | $as_echo "no" >&6; } | |
3a35eeb3 | 12419 | fi |
2429c060 PB |
12420 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12421 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12422 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12423 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12424 | fi |
12425 | fi | |
c6b750e1 | 12426 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12427 | # Extract the first word of "objdump", so it can be a program name with args. |
12428 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12430 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12431 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12432 | $as_echo_n "(cached) " >&6 |
2429c060 | 12433 | else |
c6b750e1 DJ |
12434 | case $OBJDUMP_FOR_TARGET in |
12435 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12436 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12437 | ;; | |
2429c060 | 12438 | *) |
c6b750e1 DJ |
12439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12440 | for as_dir in $gcc_cv_tool_dirs | |
12441 | do | |
12442 | IFS=$as_save_IFS | |
12443 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12444 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12445 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12446 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12448 | break 2 |
12449 | fi | |
12450 | done | |
81ecdfbb RW |
12451 | done |
12452 | IFS=$as_save_IFS | |
c6b750e1 | 12453 | |
2429c060 PB |
12454 | ;; |
12455 | esac | |
12456 | fi | |
c6b750e1 | 12457 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12458 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12460 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12461 | else |
81ecdfbb RW |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12463 | $as_echo "no" >&6; } | |
2429c060 PB |
12464 | fi |
12465 | ||
81ecdfbb | 12466 | |
2429c060 PB |
12467 | fi |
12468 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12469 | |
12470 | ||
12471 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12472 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12473 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12474 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12475 | fi | |
12476 | ||
12477 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12478 | for ncn_progname in objdump; do | |
12479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12480 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12482 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12483 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12484 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12485 | else |
12486 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12487 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12488 | else | |
12489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12490 | for as_dir in $PATH | |
12491 | do | |
12492 | IFS=$as_save_IFS | |
12493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12494 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12496 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12498 | break 2 |
12499 | fi | |
12500 | done | |
81ecdfbb RW |
12501 | done |
12502 | IFS=$as_save_IFS | |
9a819804 AO |
12503 | |
12504 | fi | |
12505 | fi | |
12506 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12507 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12509 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12510 | else |
81ecdfbb RW |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12512 | $as_echo "no" >&6; } | |
9a819804 AO |
12513 | fi |
12514 | ||
81ecdfbb | 12515 | |
9a819804 AO |
12516 | done |
12517 | fi | |
12518 | ||
12519 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12520 | for ncn_progname in objdump; do |
81ecdfbb RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12522 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12523 | if test -x $with_build_time_tools/${ncn_progname}; then |
12524 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12526 | $as_echo "yes" >&6; } | |
2429c060 PB |
12527 | break |
12528 | else | |
81ecdfbb RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12530 | $as_echo "no" >&6; } | |
2429c060 PB |
12531 | fi |
12532 | done | |
12533 | fi | |
12534 | ||
12535 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12536 | for ncn_progname in objdump; do | |
12537 | if test -n "$ncn_target_tool_prefix"; then | |
12538 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12539 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12541 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12542 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12543 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12544 | else |
12545 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12546 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12547 | else | |
c6b750e1 DJ |
12548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12549 | for as_dir in $PATH | |
12550 | do | |
12551 | IFS=$as_save_IFS | |
12552 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12553 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12555 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12557 | break 2 |
12558 | fi | |
12559 | done | |
81ecdfbb RW |
12560 | done |
12561 | IFS=$as_save_IFS | |
c6b750e1 | 12562 | |
5ae72758 DJ |
12563 | fi |
12564 | fi | |
c6b750e1 | 12565 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12566 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12568 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12569 | else |
81ecdfbb RW |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12571 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12572 | fi |
12573 | ||
81ecdfbb | 12574 | |
2429c060 PB |
12575 | fi |
12576 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12577 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12578 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12580 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12581 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12582 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12583 | else |
12584 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12585 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12586 | else | |
c6b750e1 DJ |
12587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12588 | for as_dir in $PATH | |
12589 | do | |
12590 | IFS=$as_save_IFS | |
12591 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12592 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12594 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12596 | break 2 |
12597 | fi | |
12598 | done | |
81ecdfbb RW |
12599 | done |
12600 | IFS=$as_save_IFS | |
c6b750e1 | 12601 | |
5ae72758 DJ |
12602 | fi |
12603 | fi | |
c6b750e1 | 12604 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12605 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12607 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12608 | else |
81ecdfbb RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12610 | $as_echo "no" >&6; } | |
5ae72758 | 12611 | fi |
c6b750e1 | 12612 | |
81ecdfbb | 12613 | |
2429c060 PB |
12614 | fi |
12615 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12616 | done | |
12617 | fi | |
c6b750e1 | 12618 | |
5ae72758 DJ |
12619 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12620 | set dummy objdump | |
12621 | if test $build = $target ; then | |
12622 | OBJDUMP_FOR_TARGET="$2" | |
12623 | else | |
12624 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12625 | fi | |
d3f5afc4 MS |
12626 | else |
12627 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12628 | fi |
12629 | ||
3a35eeb3 PB |
12630 | else |
12631 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12632 | fi |
12633 | ||
12634 | ||
12635 | ||
12636 | ||
12637 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12638 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12640 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12641 | if test -x $with_build_time_tools/ranlib; then |
12642 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12643 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12645 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12646 | else |
81ecdfbb RW |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12648 | $as_echo "no" >&6; } | |
3a35eeb3 | 12649 | fi |
2429c060 PB |
12650 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12651 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12652 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12653 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12654 | fi |
12655 | fi | |
c6b750e1 | 12656 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12657 | # Extract the first word of "ranlib", so it can be a program name with args. |
12658 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12660 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12661 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12662 | $as_echo_n "(cached) " >&6 |
2429c060 | 12663 | else |
c6b750e1 DJ |
12664 | case $RANLIB_FOR_TARGET in |
12665 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12666 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12667 | ;; | |
2429c060 | 12668 | *) |
c6b750e1 DJ |
12669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12670 | for as_dir in $gcc_cv_tool_dirs | |
12671 | do | |
12672 | IFS=$as_save_IFS | |
12673 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12674 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12675 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12676 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12678 | break 2 |
12679 | fi | |
12680 | done | |
81ecdfbb RW |
12681 | done |
12682 | IFS=$as_save_IFS | |
c6b750e1 | 12683 | |
2429c060 PB |
12684 | ;; |
12685 | esac | |
12686 | fi | |
c6b750e1 | 12687 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12688 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12690 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12691 | else |
81ecdfbb RW |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12693 | $as_echo "no" >&6; } | |
2429c060 PB |
12694 | fi |
12695 | ||
81ecdfbb | 12696 | |
2429c060 PB |
12697 | fi |
12698 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12699 | |
12700 | ||
12701 | if test -n "$RANLIB_FOR_TARGET"; then | |
12702 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12703 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12704 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12705 | fi | |
12706 | ||
12707 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12708 | for ncn_progname in ranlib; do | |
12709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12710 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12712 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12713 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12714 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12715 | else |
12716 | if test -n "$RANLIB_FOR_TARGET"; then | |
12717 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12718 | else | |
12719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12720 | for as_dir in $PATH | |
12721 | do | |
12722 | IFS=$as_save_IFS | |
12723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12724 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12726 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12728 | break 2 |
12729 | fi | |
12730 | done | |
81ecdfbb RW |
12731 | done |
12732 | IFS=$as_save_IFS | |
9a819804 AO |
12733 | |
12734 | fi | |
12735 | fi | |
12736 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12737 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12739 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12740 | else |
81ecdfbb RW |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12742 | $as_echo "no" >&6; } | |
9a819804 AO |
12743 | fi |
12744 | ||
81ecdfbb | 12745 | |
9a819804 AO |
12746 | done |
12747 | fi | |
12748 | ||
12749 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12750 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12752 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12753 | if test -x $with_build_time_tools/${ncn_progname}; then |
12754 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12756 | $as_echo "yes" >&6; } | |
2429c060 PB |
12757 | break |
12758 | else | |
81ecdfbb RW |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12760 | $as_echo "no" >&6; } | |
2429c060 PB |
12761 | fi |
12762 | done | |
12763 | fi | |
12764 | ||
12765 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12766 | for ncn_progname in ranlib; do | |
12767 | if test -n "$ncn_target_tool_prefix"; then | |
12768 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12769 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12771 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12772 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12773 | $as_echo_n "(cached) " >&6 |
859789af | 12774 | else |
55db4b87 PB |
12775 | if test -n "$RANLIB_FOR_TARGET"; then |
12776 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12777 | else |
c6b750e1 DJ |
12778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12779 | for as_dir in $PATH | |
12780 | do | |
12781 | IFS=$as_save_IFS | |
12782 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12783 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12785 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12787 | break 2 |
12788 | fi | |
12789 | done | |
81ecdfbb RW |
12790 | done |
12791 | IFS=$as_save_IFS | |
c6b750e1 | 12792 | |
859789af AC |
12793 | fi |
12794 | fi | |
c6b750e1 | 12795 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12796 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12798 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12799 | else |
81ecdfbb RW |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12801 | $as_echo "no" >&6; } | |
859789af AC |
12802 | fi |
12803 | ||
81ecdfbb | 12804 | |
2429c060 PB |
12805 | fi |
12806 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12808 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12810 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12811 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12812 | $as_echo_n "(cached) " >&6 |
859789af | 12813 | else |
05cbd757 PB |
12814 | if test -n "$RANLIB_FOR_TARGET"; then |
12815 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12816 | else |
c6b750e1 DJ |
12817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12818 | for as_dir in $PATH | |
12819 | do | |
12820 | IFS=$as_save_IFS | |
12821 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12822 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12824 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12826 | break 2 |
12827 | fi | |
12828 | done | |
81ecdfbb RW |
12829 | done |
12830 | IFS=$as_save_IFS | |
c6b750e1 | 12831 | |
859789af AC |
12832 | fi |
12833 | fi | |
c6b750e1 | 12834 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12835 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12837 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12838 | else |
81ecdfbb RW |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12840 | $as_echo "no" >&6; } | |
859789af | 12841 | fi |
c6b750e1 | 12842 | |
81ecdfbb | 12843 | |
2429c060 PB |
12844 | fi |
12845 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12846 | done | |
12847 | fi | |
c6b750e1 | 12848 | |
2429c060 PB |
12849 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12850 | set dummy ranlib | |
12851 | if test $build = $target ; then | |
12852 | RANLIB_FOR_TARGET="$2" | |
12853 | else | |
12854 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12855 | fi |
d3f5afc4 MS |
12856 | else |
12857 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12858 | fi |
05cbd757 | 12859 | |
3a35eeb3 PB |
12860 | else |
12861 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12862 | fi |
12863 | ||
2429c060 PB |
12864 | |
12865 | ||
12866 | ||
b121d7d4 DD |
12867 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12868 | if test -n "$with_build_time_tools"; then | |
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12870 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12871 | if test -x $with_build_time_tools/readelf; then | |
12872 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12873 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12875 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12876 | else | |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12878 | $as_echo "no" >&6; } | |
12879 | fi | |
12880 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12881 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12882 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12883 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12884 | fi | |
12885 | fi | |
12886 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12887 | # Extract the first word of "readelf", so it can be a program name with args. | |
12888 | set dummy readelf; ac_word=$2 | |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12890 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12891 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12892 | $as_echo_n "(cached) " >&6 |
12893 | else | |
12894 | case $READELF_FOR_TARGET in | |
12895 | [\\/]* | ?:[\\/]*) | |
12896 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12897 | ;; | |
12898 | *) | |
12899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12900 | for as_dir in $gcc_cv_tool_dirs | |
12901 | do | |
12902 | IFS=$as_save_IFS | |
12903 | test -z "$as_dir" && as_dir=. | |
12904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12906 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12908 | break 2 | |
12909 | fi | |
12910 | done | |
12911 | done | |
12912 | IFS=$as_save_IFS | |
12913 | ||
12914 | ;; | |
12915 | esac | |
12916 | fi | |
12917 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12918 | if test -n "$READELF_FOR_TARGET"; then | |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12920 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12921 | else | |
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12923 | $as_echo "no" >&6; } | |
12924 | fi | |
12925 | ||
12926 | ||
12927 | fi | |
12928 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12929 | ||
12930 | ||
12931 | if test -n "$READELF_FOR_TARGET"; then | |
12932 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12933 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12934 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12935 | fi | |
12936 | ||
12937 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12938 | for ncn_progname in readelf; do | |
12939 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12940 | set dummy ${ncn_progname}; ac_word=$2 | |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12942 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12943 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12944 | $as_echo_n "(cached) " >&6 |
12945 | else | |
12946 | if test -n "$READELF_FOR_TARGET"; then | |
12947 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12948 | else | |
12949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12950 | for as_dir in $PATH | |
12951 | do | |
12952 | IFS=$as_save_IFS | |
12953 | test -z "$as_dir" && as_dir=. | |
12954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12956 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
12957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12958 | break 2 | |
12959 | fi | |
12960 | done | |
12961 | done | |
12962 | IFS=$as_save_IFS | |
12963 | ||
12964 | fi | |
12965 | fi | |
12966 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12967 | if test -n "$READELF_FOR_TARGET"; then | |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12969 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12970 | else | |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12972 | $as_echo "no" >&6; } | |
12973 | fi | |
12974 | ||
12975 | ||
12976 | done | |
12977 | fi | |
12978 | ||
12979 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12980 | for ncn_progname in readelf; do | |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12982 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12983 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12984 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12986 | $as_echo "yes" >&6; } | |
12987 | break | |
12988 | else | |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12990 | $as_echo "no" >&6; } | |
12991 | fi | |
12992 | done | |
12993 | fi | |
12994 | ||
12995 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12996 | for ncn_progname in readelf; do | |
12997 | if test -n "$ncn_target_tool_prefix"; then | |
12998 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12999 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13001 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13002 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13003 | $as_echo_n "(cached) " >&6 |
13004 | else | |
13005 | if test -n "$READELF_FOR_TARGET"; then | |
13006 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13007 | else | |
13008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13009 | for as_dir in $PATH | |
13010 | do | |
13011 | IFS=$as_save_IFS | |
13012 | test -z "$as_dir" && as_dir=. | |
13013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13015 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13017 | break 2 | |
13018 | fi | |
13019 | done | |
13020 | done | |
13021 | IFS=$as_save_IFS | |
13022 | ||
13023 | fi | |
13024 | fi | |
13025 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13026 | if test -n "$READELF_FOR_TARGET"; then | |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13028 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13029 | else | |
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13031 | $as_echo "no" >&6; } | |
13032 | fi | |
13033 | ||
13034 | ||
13035 | fi | |
13036 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13038 | set dummy ${ncn_progname}; ac_word=$2 | |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13040 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13041 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13042 | $as_echo_n "(cached) " >&6 |
13043 | else | |
13044 | if test -n "$READELF_FOR_TARGET"; then | |
13045 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13046 | else | |
13047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13048 | for as_dir in $PATH | |
13049 | do | |
13050 | IFS=$as_save_IFS | |
13051 | test -z "$as_dir" && as_dir=. | |
13052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13054 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13056 | break 2 | |
13057 | fi | |
13058 | done | |
13059 | done | |
13060 | IFS=$as_save_IFS | |
13061 | ||
13062 | fi | |
13063 | fi | |
13064 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13065 | if test -n "$READELF_FOR_TARGET"; then | |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13067 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13068 | else | |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13070 | $as_echo "no" >&6; } | |
13071 | fi | |
13072 | ||
13073 | ||
13074 | fi | |
13075 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13076 | done | |
13077 | fi | |
13078 | ||
13079 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13080 | set dummy readelf | |
13081 | if test $build = $target ; then | |
13082 | READELF_FOR_TARGET="$2" | |
13083 | else | |
13084 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13085 | fi | |
13086 | else | |
13087 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13088 | fi | |
13089 | ||
13090 | else | |
13091 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13092 | fi | |
13093 | ||
13094 | ||
13095 | ||
13096 | ||
2429c060 PB |
13097 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13098 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13100 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13101 | if test -x $with_build_time_tools/strip; then |
13102 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13103 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13105 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13106 | else |
81ecdfbb RW |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13108 | $as_echo "no" >&6; } | |
3a35eeb3 | 13109 | fi |
2429c060 PB |
13110 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13111 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13112 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13113 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13114 | fi |
13115 | fi | |
c6b750e1 | 13116 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13117 | # Extract the first word of "strip", so it can be a program name with args. |
13118 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13120 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13121 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13122 | $as_echo_n "(cached) " >&6 |
2429c060 | 13123 | else |
c6b750e1 DJ |
13124 | case $STRIP_FOR_TARGET in |
13125 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13126 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13127 | ;; | |
2429c060 | 13128 | *) |
c6b750e1 DJ |
13129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13130 | for as_dir in $gcc_cv_tool_dirs | |
13131 | do | |
13132 | IFS=$as_save_IFS | |
13133 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13134 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13136 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13138 | break 2 |
13139 | fi | |
13140 | done | |
81ecdfbb RW |
13141 | done |
13142 | IFS=$as_save_IFS | |
c6b750e1 | 13143 | |
2429c060 PB |
13144 | ;; |
13145 | esac | |
13146 | fi | |
c6b750e1 | 13147 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13148 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13150 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13151 | else |
81ecdfbb RW |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13153 | $as_echo "no" >&6; } | |
2429c060 PB |
13154 | fi |
13155 | ||
81ecdfbb | 13156 | |
2429c060 PB |
13157 | fi |
13158 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13159 | |
13160 | ||
13161 | if test -n "$STRIP_FOR_TARGET"; then | |
13162 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13163 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13164 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13165 | fi | |
13166 | ||
13167 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13168 | for ncn_progname in strip; do | |
13169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13170 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13172 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13173 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13174 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13175 | else |
13176 | if test -n "$STRIP_FOR_TARGET"; then | |
13177 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13178 | else | |
13179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13180 | for as_dir in $PATH | |
13181 | do | |
13182 | IFS=$as_save_IFS | |
13183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13184 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13186 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13188 | break 2 |
13189 | fi | |
13190 | done | |
81ecdfbb RW |
13191 | done |
13192 | IFS=$as_save_IFS | |
9a819804 AO |
13193 | |
13194 | fi | |
13195 | fi | |
13196 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13197 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13199 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13200 | else |
81ecdfbb RW |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13202 | $as_echo "no" >&6; } | |
9a819804 AO |
13203 | fi |
13204 | ||
81ecdfbb | 13205 | |
9a819804 AO |
13206 | done |
13207 | fi | |
13208 | ||
13209 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13210 | for ncn_progname in strip; do |
81ecdfbb RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13212 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13213 | if test -x $with_build_time_tools/${ncn_progname}; then |
13214 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13216 | $as_echo "yes" >&6; } | |
2429c060 PB |
13217 | break |
13218 | else | |
81ecdfbb RW |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13220 | $as_echo "no" >&6; } | |
2429c060 PB |
13221 | fi |
13222 | done | |
13223 | fi | |
13224 | ||
13225 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13226 | for ncn_progname in strip; do | |
13227 | if test -n "$ncn_target_tool_prefix"; then | |
13228 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13229 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13231 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13232 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13233 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13234 | else |
13235 | if test -n "$STRIP_FOR_TARGET"; then | |
13236 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13237 | else |
13238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13239 | for as_dir in $PATH | |
13240 | do | |
13241 | IFS=$as_save_IFS | |
13242 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13243 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13244 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13245 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13247 | break 2 |
13248 | fi | |
13249 | done | |
81ecdfbb RW |
13250 | done |
13251 | IFS=$as_save_IFS | |
c6b750e1 | 13252 | |
7e0f7140 GK |
13253 | fi |
13254 | fi | |
c6b750e1 | 13255 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13256 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13258 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13259 | else |
81ecdfbb RW |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13261 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13262 | fi |
13263 | ||
81ecdfbb | 13264 | |
2429c060 PB |
13265 | fi |
13266 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13267 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13268 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13270 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13271 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13272 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13273 | else |
13274 | if test -n "$STRIP_FOR_TARGET"; then | |
13275 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13276 | else | |
c6b750e1 DJ |
13277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13278 | for as_dir in $PATH | |
13279 | do | |
13280 | IFS=$as_save_IFS | |
13281 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13282 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13284 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13286 | break 2 |
13287 | fi | |
13288 | done | |
81ecdfbb RW |
13289 | done |
13290 | IFS=$as_save_IFS | |
c6b750e1 | 13291 | |
7e0f7140 GK |
13292 | fi |
13293 | fi | |
c6b750e1 | 13294 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13295 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13297 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13298 | else |
81ecdfbb RW |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13300 | $as_echo "no" >&6; } | |
7e0f7140 | 13301 | fi |
c6b750e1 | 13302 | |
81ecdfbb | 13303 | |
2429c060 PB |
13304 | fi |
13305 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13306 | done | |
13307 | fi | |
c6b750e1 | 13308 | |
7e0f7140 GK |
13309 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13310 | set dummy strip | |
13311 | if test $build = $target ; then | |
13312 | STRIP_FOR_TARGET="$2" | |
13313 | else | |
13314 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13315 | fi | |
d3f5afc4 MS |
13316 | else |
13317 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13318 | fi |
13319 | ||
3a35eeb3 PB |
13320 | else |
13321 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13322 | fi |
13323 | ||
13324 | ||
13325 | ||
13326 | ||
13327 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13328 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13330 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13331 | if test -x $with_build_time_tools/windres; then |
13332 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13333 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13335 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13336 | else |
81ecdfbb RW |
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13338 | $as_echo "no" >&6; } | |
3a35eeb3 | 13339 | fi |
2429c060 PB |
13340 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13341 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13342 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13343 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13344 | fi |
13345 | fi | |
c6b750e1 | 13346 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13347 | # Extract the first word of "windres", so it can be a program name with args. |
13348 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13350 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13351 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13352 | $as_echo_n "(cached) " >&6 |
2429c060 | 13353 | else |
c6b750e1 DJ |
13354 | case $WINDRES_FOR_TARGET in |
13355 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13356 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13357 | ;; | |
2429c060 | 13358 | *) |
c6b750e1 DJ |
13359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13360 | for as_dir in $gcc_cv_tool_dirs | |
13361 | do | |
13362 | IFS=$as_save_IFS | |
13363 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13364 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13366 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13368 | break 2 |
13369 | fi | |
13370 | done | |
81ecdfbb RW |
13371 | done |
13372 | IFS=$as_save_IFS | |
c6b750e1 | 13373 | |
2429c060 PB |
13374 | ;; |
13375 | esac | |
13376 | fi | |
c6b750e1 | 13377 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13378 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13380 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13381 | else |
81ecdfbb RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13383 | $as_echo "no" >&6; } | |
2429c060 PB |
13384 | fi |
13385 | ||
81ecdfbb | 13386 | |
2429c060 PB |
13387 | fi |
13388 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13389 | |
13390 | ||
13391 | if test -n "$WINDRES_FOR_TARGET"; then | |
13392 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13393 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13394 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13395 | fi | |
13396 | ||
13397 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13398 | for ncn_progname in windres; do | |
13399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13400 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13402 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13403 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13404 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13405 | else |
13406 | if test -n "$WINDRES_FOR_TARGET"; then | |
13407 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13408 | else | |
13409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13410 | for as_dir in $PATH | |
13411 | do | |
13412 | IFS=$as_save_IFS | |
13413 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13414 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13416 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13418 | break 2 |
13419 | fi | |
13420 | done | |
81ecdfbb RW |
13421 | done |
13422 | IFS=$as_save_IFS | |
9a819804 AO |
13423 | |
13424 | fi | |
13425 | fi | |
13426 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13427 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13429 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13430 | else |
81ecdfbb RW |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13432 | $as_echo "no" >&6; } | |
9a819804 AO |
13433 | fi |
13434 | ||
81ecdfbb | 13435 | |
9a819804 AO |
13436 | done |
13437 | fi | |
13438 | ||
13439 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13440 | for ncn_progname in windres; do |
81ecdfbb RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13442 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13443 | if test -x $with_build_time_tools/${ncn_progname}; then |
13444 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13446 | $as_echo "yes" >&6; } | |
2429c060 PB |
13447 | break |
13448 | else | |
81ecdfbb RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13450 | $as_echo "no" >&6; } | |
2429c060 PB |
13451 | fi |
13452 | done | |
13453 | fi | |
13454 | ||
13455 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13456 | for ncn_progname in windres; do | |
13457 | if test -n "$ncn_target_tool_prefix"; then | |
13458 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13459 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13461 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13462 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13463 | $as_echo_n "(cached) " >&6 |
859789af | 13464 | else |
55db4b87 PB |
13465 | if test -n "$WINDRES_FOR_TARGET"; then |
13466 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13467 | else |
c6b750e1 DJ |
13468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13469 | for as_dir in $PATH | |
13470 | do | |
13471 | IFS=$as_save_IFS | |
13472 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13473 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13475 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13477 | break 2 |
13478 | fi | |
13479 | done | |
81ecdfbb RW |
13480 | done |
13481 | IFS=$as_save_IFS | |
c6b750e1 | 13482 | |
859789af AC |
13483 | fi |
13484 | fi | |
c6b750e1 | 13485 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13486 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13488 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13489 | else |
81ecdfbb RW |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13491 | $as_echo "no" >&6; } | |
859789af AC |
13492 | fi |
13493 | ||
81ecdfbb | 13494 | |
2429c060 PB |
13495 | fi |
13496 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13497 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13498 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13500 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13501 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13502 | $as_echo_n "(cached) " >&6 |
859789af | 13503 | else |
05cbd757 PB |
13504 | if test -n "$WINDRES_FOR_TARGET"; then |
13505 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13506 | else |
c6b750e1 DJ |
13507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13508 | for as_dir in $PATH | |
13509 | do | |
13510 | IFS=$as_save_IFS | |
13511 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13512 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13514 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13516 | break 2 |
13517 | fi | |
13518 | done | |
81ecdfbb RW |
13519 | done |
13520 | IFS=$as_save_IFS | |
c6b750e1 | 13521 | |
859789af AC |
13522 | fi |
13523 | fi | |
c6b750e1 | 13524 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13525 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13527 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13528 | else |
81ecdfbb RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13530 | $as_echo "no" >&6; } | |
859789af | 13531 | fi |
c6b750e1 | 13532 | |
81ecdfbb | 13533 | |
2429c060 PB |
13534 | fi |
13535 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13536 | done | |
13537 | fi | |
c6b750e1 | 13538 | |
05cbd757 PB |
13539 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13540 | set dummy windres | |
13541 | if test $build = $target ; then | |
13542 | WINDRES_FOR_TARGET="$2" | |
859789af | 13543 | else |
05cbd757 | 13544 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13545 | fi |
d3f5afc4 MS |
13546 | else |
13547 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13548 | fi |
13549 | ||
3a35eeb3 PB |
13550 | else |
13551 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13552 | fi |
13553 | ||
852e5f18 | 13554 | |
0c24b341 NC |
13555 | |
13556 | ||
13557 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13558 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13560 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13561 | if test -x $with_build_time_tools/windmc; then |
13562 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13563 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13565 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13566 | else |
81ecdfbb RW |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13568 | $as_echo "no" >&6; } | |
0c24b341 NC |
13569 | fi |
13570 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13571 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13572 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13573 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13574 | fi | |
13575 | fi | |
13576 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13577 | # Extract the first word of "windmc", so it can be a program name with args. | |
13578 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13580 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13581 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13582 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13583 | else |
13584 | case $WINDMC_FOR_TARGET in | |
13585 | [\\/]* | ?:[\\/]*) | |
13586 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13587 | ;; | |
13588 | *) | |
13589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13590 | for as_dir in $gcc_cv_tool_dirs | |
13591 | do | |
13592 | IFS=$as_save_IFS | |
13593 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13594 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13596 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13598 | break 2 |
13599 | fi | |
13600 | done | |
81ecdfbb RW |
13601 | done |
13602 | IFS=$as_save_IFS | |
0c24b341 NC |
13603 | |
13604 | ;; | |
13605 | esac | |
13606 | fi | |
13607 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13608 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13610 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13611 | else |
81ecdfbb RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13613 | $as_echo "no" >&6; } | |
0c24b341 NC |
13614 | fi |
13615 | ||
81ecdfbb | 13616 | |
0c24b341 NC |
13617 | fi |
13618 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13619 | ||
13620 | ||
13621 | if test -n "$WINDMC_FOR_TARGET"; then | |
13622 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13623 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13624 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13625 | fi | |
13626 | ||
13627 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13628 | for ncn_progname in windmc; do | |
13629 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13630 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13632 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13633 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13634 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13635 | else |
13636 | if test -n "$WINDMC_FOR_TARGET"; then | |
13637 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13638 | else | |
13639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13640 | for as_dir in $PATH | |
13641 | do | |
13642 | IFS=$as_save_IFS | |
13643 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13644 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13646 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13648 | break 2 |
13649 | fi | |
13650 | done | |
81ecdfbb RW |
13651 | done |
13652 | IFS=$as_save_IFS | |
0c24b341 NC |
13653 | |
13654 | fi | |
13655 | fi | |
13656 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13657 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13659 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13660 | else |
81ecdfbb RW |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13662 | $as_echo "no" >&6; } | |
0c24b341 NC |
13663 | fi |
13664 | ||
81ecdfbb | 13665 | |
0c24b341 NC |
13666 | done |
13667 | fi | |
13668 | ||
13669 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13670 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13672 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13673 | if test -x $with_build_time_tools/${ncn_progname}; then |
13674 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13676 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13677 | break |
13678 | else | |
81ecdfbb RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13680 | $as_echo "no" >&6; } | |
0c24b341 NC |
13681 | fi |
13682 | done | |
13683 | fi | |
13684 | ||
13685 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13686 | for ncn_progname in windmc; do | |
13687 | if test -n "$ncn_target_tool_prefix"; then | |
13688 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13689 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13691 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13692 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13693 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13694 | else |
13695 | if test -n "$WINDMC_FOR_TARGET"; then | |
13696 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13697 | else | |
13698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13699 | for as_dir in $PATH | |
13700 | do | |
13701 | IFS=$as_save_IFS | |
13702 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13703 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13705 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13707 | break 2 |
13708 | fi | |
13709 | done | |
81ecdfbb RW |
13710 | done |
13711 | IFS=$as_save_IFS | |
0c24b341 NC |
13712 | |
13713 | fi | |
13714 | fi | |
13715 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13716 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13718 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13719 | else |
81ecdfbb RW |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13721 | $as_echo "no" >&6; } | |
0c24b341 NC |
13722 | fi |
13723 | ||
81ecdfbb | 13724 | |
0c24b341 NC |
13725 | fi |
13726 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13727 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13728 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13730 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13731 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13732 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13733 | else |
13734 | if test -n "$WINDMC_FOR_TARGET"; then | |
13735 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13736 | else | |
13737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13738 | for as_dir in $PATH | |
13739 | do | |
13740 | IFS=$as_save_IFS | |
13741 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13742 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13744 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13746 | break 2 |
13747 | fi | |
13748 | done | |
81ecdfbb RW |
13749 | done |
13750 | IFS=$as_save_IFS | |
0c24b341 NC |
13751 | |
13752 | fi | |
13753 | fi | |
13754 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13755 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13757 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13758 | else |
81ecdfbb RW |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13760 | $as_echo "no" >&6; } | |
0c24b341 NC |
13761 | fi |
13762 | ||
81ecdfbb | 13763 | |
0c24b341 NC |
13764 | fi |
13765 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13766 | done | |
13767 | fi | |
13768 | ||
13769 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13770 | set dummy windmc | |
13771 | if test $build = $target ; then | |
13772 | WINDMC_FOR_TARGET="$2" | |
13773 | else | |
13774 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13775 | fi | |
13776 | else | |
13777 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13778 | fi | |
13779 | ||
13780 | else | |
13781 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13782 | fi | |
13783 | ||
13784 | ||
be01d343 PB |
13785 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13786 | ||
81ecdfbb RW |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13788 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13789 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13790 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13791 | # We already found the complete path | |
b8025f34 | 13792 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13794 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13795 | else |
13796 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13798 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13799 | fi |
be01d343 PB |
13800 | else |
13801 | ok=yes | |
13802 | case " ${configdirs} " in | |
13803 | *" binutils "*) ;; | |
13804 | *) ok=no ;; | |
13805 | esac | |
c6b750e1 | 13806 | |
be01d343 PB |
13807 | if test $ok = yes; then |
13808 | # An in-tree tool is available and we can use it | |
13809 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13811 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13812 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13813 | # We already found the complete path | |
b8025f34 | 13814 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13816 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13817 | elif test "x$target" = "x$host"; then |
13818 | # We can use an host tool | |
13819 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13821 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13822 | else |
13823 | # We need a cross tool | |
81ecdfbb RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13825 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13826 | fi |
13827 | fi | |
4b900473 | 13828 | |
81ecdfbb RW |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13830 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13831 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13832 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13833 | # We already found the complete path | |
b8025f34 | 13834 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13836 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13837 | else |
13838 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13840 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13841 | fi |
be01d343 PB |
13842 | else |
13843 | ok=yes | |
13844 | case " ${configdirs} " in | |
13845 | *" gas "*) ;; | |
13846 | *) ok=no ;; | |
13847 | esac | |
c6b750e1 | 13848 | |
be01d343 PB |
13849 | if test $ok = yes; then |
13850 | # An in-tree tool is available and we can use it | |
13851 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13853 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13854 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13855 | # We already found the complete path | |
b8025f34 | 13856 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13858 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13859 | elif test "x$target" = "x$host"; then |
13860 | # We can use an host tool | |
13861 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13863 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13864 | else |
13865 | # We need a cross tool | |
81ecdfbb RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13867 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13868 | fi |
13869 | fi | |
4b900473 | 13870 | |
81ecdfbb RW |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13872 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13873 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13874 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13875 | # We already found the complete path | |
b8025f34 | 13876 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13878 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13879 | else |
13880 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13882 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13883 | fi |
be01d343 PB |
13884 | else |
13885 | ok=yes | |
13886 | case " ${configdirs} " in | |
13887 | *" gcc "*) ;; | |
13888 | *) ok=no ;; | |
13889 | esac | |
c6b750e1 | 13890 | |
be01d343 PB |
13891 | if test $ok = yes; then |
13892 | # An in-tree tool is available and we can use it | |
13893 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13895 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13896 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13897 | # We already found the complete path | |
b8025f34 | 13898 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13900 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13901 | elif test "x$target" = "x$host"; then |
13902 | # We can use an host tool | |
13903 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13905 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13906 | else |
13907 | # We need a cross tool | |
81ecdfbb RW |
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13909 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13910 | fi |
13911 | fi | |
4b900473 | 13912 | |
81ecdfbb RW |
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13914 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13915 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13916 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13917 | # We already found the complete path | |
b8025f34 | 13918 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13920 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13921 | else |
13922 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13924 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13925 | fi |
be01d343 PB |
13926 | else |
13927 | ok=yes | |
13928 | case " ${configdirs} " in | |
13929 | *" gcc "*) ;; | |
13930 | *) ok=no ;; | |
13931 | esac | |
13932 | case ,${enable_languages}, in | |
13933 | *,c++,*) ;; | |
13934 | *) ok=no ;; | |
13935 | esac | |
13936 | if test $ok = yes; then | |
13937 | # An in-tree tool is available and we can use it | |
95e43135 | 13938 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13940 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13941 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13942 | # We already found the complete path | |
b8025f34 | 13943 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13945 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13946 | elif test "x$target" = "x$host"; then |
13947 | # We can use an host tool | |
13948 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13950 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13951 | else |
13952 | # We need a cross tool | |
81ecdfbb RW |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13954 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13955 | fi |
13956 | fi | |
4b900473 | 13957 | |
81ecdfbb RW |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13959 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13960 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13961 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13962 | # We already found the complete path | |
b8025f34 | 13963 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13965 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13966 | else |
13967 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13969 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13970 | fi |
be01d343 PB |
13971 | else |
13972 | ok=yes | |
13973 | case " ${configdirs} " in | |
13974 | *" gcc "*) ;; | |
13975 | *) ok=no ;; | |
13976 | esac | |
13977 | case ,${enable_languages}, in | |
13978 | *,c++,*) ;; | |
13979 | *) ok=no ;; | |
13980 | esac | |
13981 | if test $ok = yes; then | |
13982 | # An in-tree tool is available and we can use it | |
95e43135 | 13983 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13985 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13986 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13987 | # We already found the complete path | |
b8025f34 | 13988 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13990 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13991 | elif test "x$target" = "x$host"; then |
13992 | # We can use an host tool | |
13993 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13995 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13996 | else |
13997 | # We need a cross tool | |
81ecdfbb RW |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13999 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14000 | fi |
14001 | fi | |
4b900473 | 14002 | |
81ecdfbb RW |
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14004 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14005 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14006 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14007 | # We already found the complete path | |
b8025f34 | 14008 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14010 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14011 | else |
14012 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14014 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14015 | fi |
be01d343 PB |
14016 | else |
14017 | ok=yes | |
14018 | case " ${configdirs} " in | |
14019 | *" binutils "*) ;; | |
14020 | *) ok=no ;; | |
14021 | esac | |
c6b750e1 | 14022 | |
be01d343 PB |
14023 | if test $ok = yes; then |
14024 | # An in-tree tool is available and we can use it | |
14025 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14027 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14028 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14029 | # We already found the complete path | |
b8025f34 | 14030 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14032 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14033 | elif test "x$target" = "x$host"; then |
14034 | # We can use an host tool | |
14035 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14037 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14038 | else |
14039 | # We need a cross tool | |
81ecdfbb RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14041 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14042 | fi |
14043 | fi | |
4b900473 | 14044 | |
81ecdfbb RW |
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14046 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14047 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14048 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14049 | # We already found the complete path | |
b8025f34 | 14050 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14052 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14053 | else |
14054 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14056 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14057 | fi |
be01d343 PB |
14058 | else |
14059 | ok=yes | |
14060 | case " ${configdirs} " in | |
14061 | *" gcc "*) ;; | |
14062 | *) ok=no ;; | |
14063 | esac | |
c6b750e1 | 14064 | |
be01d343 PB |
14065 | if test $ok = yes; then |
14066 | # An in-tree tool is available and we can use it | |
14067 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14069 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14070 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14071 | # We already found the complete path | |
b8025f34 | 14072 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14074 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14075 | elif test "x$target" = "x$host"; then |
14076 | # We can use an host tool | |
14077 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14079 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14080 | else |
14081 | # We need a cross tool | |
81ecdfbb RW |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14083 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14084 | fi |
14085 | fi | |
4b900473 | 14086 | |
81ecdfbb RW |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14088 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14089 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14090 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14091 | # We already found the complete path | |
b8025f34 | 14092 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14094 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14095 | else |
14096 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14098 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14099 | fi |
be01d343 PB |
14100 | else |
14101 | ok=yes | |
14102 | case " ${configdirs} " in | |
14103 | *" gcc "*) ;; | |
14104 | *) ok=no ;; | |
14105 | esac | |
14106 | case ,${enable_languages}, in | |
14107 | *,fortran,*) ;; | |
14108 | *) ok=no ;; | |
14109 | esac | |
14110 | if test $ok = yes; then | |
14111 | # An in-tree tool is available and we can use it | |
14112 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14114 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14115 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14116 | # We already found the complete path | |
b8025f34 | 14117 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14119 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14120 | elif test "x$target" = "x$host"; then |
14121 | # We can use an host tool | |
14122 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14124 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14125 | else |
14126 | # We need a cross tool | |
81ecdfbb RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14128 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14129 | fi |
14130 | fi | |
4b900473 | 14131 | |
e552509b ILT |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14133 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14134 | if test "x${build}" != "x${host}" ; then | |
14135 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14136 | # We already found the complete path | |
14137 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14139 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14140 | else | |
14141 | # Canadian cross, just use what we found | |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14143 | $as_echo "pre-installed" >&6; } | |
14144 | fi | |
14145 | else | |
14146 | ok=yes | |
14147 | case " ${configdirs} " in | |
14148 | *" gcc "*) ;; | |
14149 | *) ok=no ;; | |
14150 | esac | |
14151 | case ,${enable_languages}, in | |
14152 | *,go,*) ;; | |
14153 | *) ok=no ;; | |
14154 | esac | |
14155 | if test $ok = yes; then | |
14156 | # An in-tree tool is available and we can use it | |
14157 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14159 | $as_echo "just compiled" >&6; } | |
14160 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14161 | # We already found the complete path | |
14162 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14164 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14165 | elif test "x$target" = "x$host"; then | |
14166 | # We can use an host tool | |
14167 | GOC_FOR_TARGET='$(GOC)' | |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14169 | $as_echo "host tool" >&6; } | |
14170 | else | |
14171 | # We need a cross tool | |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14173 | $as_echo "pre-installed" >&6; } | |
14174 | fi | |
14175 | fi | |
14176 | ||
81ecdfbb RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14178 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14179 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14180 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14181 | # We already found the complete path | |
b8025f34 | 14182 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14184 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14185 | else |
14186 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14188 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14189 | fi |
be01d343 PB |
14190 | else |
14191 | ok=yes | |
14192 | case " ${configdirs} " in | |
14193 | *" ld "*) ;; | |
14194 | *) ok=no ;; | |
14195 | esac | |
c6b750e1 | 14196 | |
be01d343 PB |
14197 | if test $ok = yes; then |
14198 | # An in-tree tool is available and we can use it | |
14199 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14201 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14202 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14203 | # We already found the complete path | |
b8025f34 | 14204 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14206 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14207 | elif test "x$target" = "x$host"; then |
14208 | # We can use an host tool | |
14209 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14211 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14212 | else |
14213 | # We need a cross tool | |
81ecdfbb RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14215 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14216 | fi |
14217 | fi | |
4b900473 | 14218 | |
81ecdfbb RW |
14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14220 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14221 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14222 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14223 | # We already found the complete path | |
b8025f34 | 14224 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14226 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14227 | else |
14228 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14230 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14231 | fi |
be01d343 | 14232 | else |
2429c060 PB |
14233 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14234 | # We already found the complete path | |
b8025f34 | 14235 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb 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; } | |
2429c060 | 14238 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14239 | # We can use an host tool |
14240 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14242 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14243 | else |
14244 | # We need a cross tool | |
81ecdfbb RW |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14246 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14247 | fi |
14248 | fi | |
4b900473 | 14249 | |
81ecdfbb RW |
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14251 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14252 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14253 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14254 | # We already found the complete path | |
b8025f34 | 14255 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb 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; } | |
2429c060 PB |
14258 | else |
14259 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14261 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14262 | fi |
be01d343 PB |
14263 | else |
14264 | ok=yes | |
14265 | case " ${configdirs} " in | |
14266 | *" binutils "*) ;; | |
14267 | *) ok=no ;; | |
14268 | esac | |
c6b750e1 | 14269 | |
be01d343 PB |
14270 | if test $ok = yes; then |
14271 | # An in-tree tool is available and we can use it | |
14272 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14274 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14275 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14276 | # We already found the complete path | |
b8025f34 | 14277 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb 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; } | |
be01d343 PB |
14280 | elif test "x$target" = "x$host"; then |
14281 | # We can use an host tool | |
14282 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14284 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14285 | else |
14286 | # We need a cross tool | |
81ecdfbb RW |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14288 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14289 | fi |
14290 | fi | |
4b900473 | 14291 | |
6b91c541 AP |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14293 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14294 | if test "x${build}" != "x${host}" ; then | |
14295 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14296 | # We already found the complete path | |
14297 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14299 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14300 | else | |
14301 | # Canadian cross, just use what we found | |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14303 | $as_echo "pre-installed" >&6; } | |
14304 | fi | |
14305 | else | |
14306 | ok=yes | |
14307 | case " ${configdirs} " in | |
14308 | *" binutils "*) ;; | |
14309 | *) ok=no ;; | |
14310 | esac | |
14311 | ||
14312 | if test $ok = yes; then | |
14313 | # An in-tree tool is available and we can use it | |
14314 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14316 | $as_echo "just compiled" >&6; } | |
14317 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14318 | # We already found the complete path | |
14319 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14321 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14322 | elif test "x$target" = "x$host"; then | |
14323 | # We can use an host tool | |
1b6c0831 | 14324 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14326 | $as_echo "host tool" >&6; } | |
14327 | else | |
14328 | # We need a cross tool | |
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14330 | $as_echo "pre-installed" >&6; } | |
14331 | fi | |
14332 | fi | |
14333 | ||
81ecdfbb RW |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14335 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14336 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14337 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14338 | # We already found the complete path | |
b8025f34 | 14339 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14341 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14342 | else |
14343 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14345 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14346 | fi |
be01d343 PB |
14347 | else |
14348 | ok=yes | |
14349 | case " ${configdirs} " in | |
14350 | *" binutils "*) ;; | |
14351 | *) ok=no ;; | |
14352 | esac | |
c6b750e1 | 14353 | |
be01d343 PB |
14354 | if test $ok = yes; then |
14355 | # An in-tree tool is available and we can use it | |
14356 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14358 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14359 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14360 | # We already found the complete path | |
b8025f34 | 14361 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14363 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14364 | elif test "x$target" = "x$host"; then |
14365 | # We can use an host tool | |
14366 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14368 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14369 | else |
14370 | # We need a cross tool | |
81ecdfbb RW |
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14372 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14373 | fi |
14374 | fi | |
4b900473 | 14375 | |
81ecdfbb RW |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14377 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14378 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14379 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14380 | # We already found the complete path | |
b8025f34 | 14381 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14383 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14384 | else |
14385 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14387 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14388 | fi |
be01d343 PB |
14389 | else |
14390 | ok=yes | |
14391 | case " ${configdirs} " in | |
14392 | *" binutils "*) ;; | |
14393 | *) ok=no ;; | |
14394 | esac | |
c6b750e1 | 14395 | |
be01d343 PB |
14396 | if test $ok = yes; then |
14397 | # An in-tree tool is available and we can use it | |
14398 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14400 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14401 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14402 | # We already found the complete path | |
b8025f34 | 14403 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14405 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14406 | elif test "x$target" = "x$host"; then |
14407 | # We can use an host tool | |
14408 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14410 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14411 | else |
14412 | # We need a cross tool | |
81ecdfbb RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14414 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14415 | fi |
14416 | fi | |
4b900473 | 14417 | |
b121d7d4 DD |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14419 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14420 | if test "x${build}" != "x${host}" ; then | |
14421 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14422 | # We already found the complete path | |
14423 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14425 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14426 | else | |
14427 | # Canadian cross, just use what we found | |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14429 | $as_echo "pre-installed" >&6; } | |
14430 | fi | |
14431 | else | |
14432 | ok=yes | |
14433 | case " ${configdirs} " in | |
14434 | *" binutils "*) ;; | |
14435 | *) ok=no ;; | |
14436 | esac | |
14437 | ||
14438 | if test $ok = yes; then | |
14439 | # An in-tree tool is available and we can use it | |
14440 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14442 | $as_echo "just compiled" >&6; } | |
14443 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14444 | # We already found the complete path | |
14445 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14447 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14448 | elif test "x$target" = "x$host"; then | |
14449 | # We can use an host tool | |
14450 | READELF_FOR_TARGET='$(READELF)' | |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14452 | $as_echo "host tool" >&6; } | |
14453 | else | |
14454 | # We need a cross tool | |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14456 | $as_echo "pre-installed" >&6; } | |
14457 | fi | |
14458 | fi | |
14459 | ||
81ecdfbb RW |
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14461 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14462 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14463 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14464 | # We already found the complete path | |
b8025f34 | 14465 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14467 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14468 | else |
14469 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14471 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14472 | fi |
be01d343 PB |
14473 | else |
14474 | ok=yes | |
14475 | case " ${configdirs} " in | |
14476 | *" binutils "*) ;; | |
14477 | *) ok=no ;; | |
14478 | esac | |
c6b750e1 | 14479 | |
be01d343 PB |
14480 | if test $ok = yes; then |
14481 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14482 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14484 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14485 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14486 | # We already found the complete path | |
b8025f34 | 14487 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14489 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14490 | elif test "x$target" = "x$host"; then |
14491 | # We can use an host tool | |
14492 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14494 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14495 | else |
14496 | # We need a cross tool | |
81ecdfbb RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14498 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14499 | fi |
14500 | fi | |
4b900473 | 14501 | |
81ecdfbb RW |
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14503 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14504 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14505 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14506 | # We already found the complete path | |
b8025f34 | 14507 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14509 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14510 | else |
14511 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14513 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14514 | fi |
be01d343 PB |
14515 | else |
14516 | ok=yes | |
14517 | case " ${configdirs} " in | |
14518 | *" binutils "*) ;; | |
14519 | *) ok=no ;; | |
14520 | esac | |
c6b750e1 | 14521 | |
be01d343 PB |
14522 | if test $ok = yes; then |
14523 | # An in-tree tool is available and we can use it | |
14524 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14526 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14527 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14528 | # We already found the complete path | |
b8025f34 | 14529 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14531 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14532 | elif test "x$target" = "x$host"; then |
14533 | # We can use an host tool | |
14534 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14536 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14537 | else |
14538 | # We need a cross tool | |
81ecdfbb RW |
14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14540 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14541 | fi |
a0da8069 | 14542 | fi |
54752a6b | 14543 | |
81ecdfbb RW |
14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14545 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14546 | if test "x${build}" != "x${host}" ; then |
14547 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14548 | # We already found the complete path | |
14549 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14551 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14552 | else |
14553 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14555 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14556 | fi |
14557 | else | |
14558 | ok=yes | |
14559 | case " ${configdirs} " in | |
14560 | *" binutils "*) ;; | |
14561 | *) ok=no ;; | |
14562 | esac | |
14563 | ||
14564 | if test $ok = yes; then | |
14565 | # An in-tree tool is available and we can use it | |
14566 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14568 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14569 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14570 | # We already found the complete path | |
14571 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14573 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14574 | elif test "x$target" = "x$host"; then |
14575 | # We can use an host tool | |
14576 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14578 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14579 | else |
14580 | # We need a cross tool | |
81ecdfbb RW |
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14582 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14583 | fi |
14584 | fi | |
14585 | ||
54752a6b NN |
14586 | |
14587 | ||
be01d343 | 14588 | |
4b900473 | 14589 | |
a0da8069 NN |
14590 | # Certain tools may need extra flags. |
14591 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14592 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14593 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14594 | ||
be01d343 PB |
14595 | # When building target libraries, except in a Canadian cross, we use |
14596 | # the same toolchain as the compiler we just built. | |
14597 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14598 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14599 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14600 | if test $host = $build; then | |
14601 | case " $configdirs " in | |
14602 | *" gcc "*) | |
14603 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14604 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14605 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14606 | ;; | |
14607 | esac | |
14608 | fi | |
14609 | ||
14610 | ||
14611 | ||
14612 | ||
14613 | ||
81ecdfbb RW |
14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14615 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14616 | # Check whether --enable-maintainer-mode was given. | |
14617 | if test "${enable_maintainer_mode+set}" = set; then : | |
14618 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14619 | else |
14620 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14621 | fi |
14622 | ||
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14624 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14625 | |
14626 | ||
14627 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14628 | MAINTAINER_MODE_TRUE= | |
14629 | MAINTAINER_MODE_FALSE='#' | |
14630 | else | |
14631 | MAINTAINER_MODE_TRUE='#' | |
14632 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14633 | fi |
3d5e36ae AO |
14634 | MAINT=$MAINTAINER_MODE_TRUE |
14635 | ||
1d39f329 NN |
14636 | # --------------------- |
14637 | # GCC bootstrap support | |
14638 | # --------------------- | |
14639 | ||
14640 | # Stage specific cflags for build. | |
14641 | stage1_cflags="-g" | |
14642 | case $build in | |
14643 | vax-*-*) | |
14644 | case ${GCC} in | |
14645 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14646 | *) stage1_cflags="-g -J" ;; | |
14647 | esac ;; | |
1d39f329 NN |
14648 | esac |
14649 | ||
1d89b610 | 14650 | |
1d39f329 | 14651 | |
8a0d8a5c | 14652 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14653 | # Check whether --enable-stage1-checking was given. |
14654 | if test "${enable_stage1_checking+set}" = set; then : | |
14655 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14656 | else |
5566c1fa | 14657 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14658 | # For --disable-checking or implicit --enable-checking=release, avoid |
14659 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14660 | # bootstraps. See PR62077. | |
ce6c656d L |
14661 | case $BUILD_CONFIG in |
14662 | *lto*) | |
05a13254 NC |
14663 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14664 | *) | |
14665 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14666 | esac |
05a13254 NC |
14667 | if test "x$enable_checking" = x && \ |
14668 | test -d ${srcdir}/gcc && \ | |
14669 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14670 | stage1_checking=--enable-checking=yes,types,extra | |
14671 | fi | |
8a0d8a5c | 14672 | else |
5566c1fa | 14673 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14674 | fi |
81ecdfbb | 14675 | fi |
8a0d8a5c PB |
14676 | |
14677 | ||
c6b750e1 | 14678 | |
81ecdfbb RW |
14679 | # Enable -Werror in bootstrap stage2 and later. |
14680 | # Check whether --enable-werror was given. | |
14681 | if test "${enable_werror+set}" = set; then : | |
14682 | enableval=$enable_werror; | |
1a6f2dc7 NN |
14683 | case ${enable_werror} in |
14684 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14685 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14686 | esac |
14687 | ||
82033c9b | 14688 | else |
82033c9b | 14689 | |
bf41f30d NC |
14690 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14691 | case $BUILD_CONFIG in | |
14692 | bootstrap-debug) | |
14693 | stage2_werror_flag="--enable-werror-always" ;; | |
14694 | "") | |
14695 | stage2_werror_flag="--enable-werror-always" ;; | |
14696 | esac | |
14697 | fi | |
82033c9b | 14698 | |
bf41f30d | 14699 | fi |
82033c9b | 14700 | |
1b6c0831 | 14701 | |
1b6c0831 | 14702 | |
1b6c0831 | 14703 | |
e8a5fa9c RW |
14704 | # Specify what files to not compare during bootstrap. |
14705 | ||
14706 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14707 | case "$target" in | |
14708 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 14709 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 14710 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14711 | esac |
14712 | ||
14713 | ||
81ecdfbb RW |
14714 | ac_config_files="$ac_config_files Makefile" |
14715 | ||
c6b750e1 | 14716 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14717 | # This file is a shell script that caches the results of configure |
14718 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14719 | # scripts and configure runs, see configure's option --config-cache. |
14720 | # It is not useful on other systems. If it contains results you don't | |
14721 | # want to keep, you may remove or edit it. | |
a0da8069 | 14722 | # |
c6b750e1 DJ |
14723 | # config.status only pays attention to the cache file if you give it |
14724 | # the --recheck option to rerun configure. | |
a0da8069 | 14725 | # |
c6b750e1 DJ |
14726 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14727 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14728 | # following values. | |
14729 | ||
14730 | _ACEOF | |
14731 | ||
a0da8069 NN |
14732 | # The following way of writing the cache mishandles newlines in values, |
14733 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14734 | # So, we kill variables containing newlines. |
a0da8069 NN |
14735 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14736 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14737 | ( |
14738 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14739 | eval ac_val=\$$ac_var | |
14740 | case $ac_val in #( | |
14741 | *${as_nl}*) | |
14742 | case $ac_var in #( | |
14743 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14744 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14745 | esac | |
14746 | case $ac_var in #( | |
14747 | _ | IFS | as_nl) ;; #( | |
14748 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14749 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14750 | esac ;; | |
14751 | esac | |
14752 | done | |
14753 | ||
c6b750e1 | 14754 | (set) 2>&1 | |
81ecdfbb RW |
14755 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14756 | *${as_nl}ac_space=\ *) | |
14757 | # `set' does not quote correctly, so add quotes: double-quote | |
14758 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14759 | sed -n \ |
14760 | "s/'/'\\\\''/g; | |
14761 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14762 | ;; #( |
c6b750e1 DJ |
14763 | *) |
14764 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14765 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14766 | ;; |
81ecdfbb RW |
14767 | esac | |
14768 | sort | |
14769 | ) | | |
c6b750e1 | 14770 | sed ' |
81ecdfbb | 14771 | /^ac_cv_env_/b end |
c6b750e1 | 14772 | t clear |
81ecdfbb | 14773 | :clear |
c6b750e1 DJ |
14774 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14775 | t end | |
81ecdfbb RW |
14776 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14777 | :end' >>confcache | |
14778 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14779 | if test -w "$cache_file"; then | |
d0ac1c44 | 14780 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14781 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14782 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14783 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14784 | cat confcache >"$cache_file" | |
14785 | else | |
14786 | case $cache_file in #( | |
14787 | */* | ?:*) | |
14788 | mv -f confcache "$cache_file"$$ && | |
14789 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14790 | *) | |
14791 | mv -f confcache "$cache_file" ;; | |
14792 | esac | |
14793 | fi | |
14794 | fi | |
a0da8069 | 14795 | else |
81ecdfbb RW |
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14797 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14798 | fi |
852e5f18 | 14799 | fi |
a0da8069 | 14800 | rm -f confcache |
852e5f18 | 14801 | |
a0da8069 NN |
14802 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14803 | # Let make expand exec_prefix. | |
14804 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14805 | |
a0da8069 NN |
14806 | # Transform confdefs.h into DEFS. |
14807 | # Protect against shell expansion while executing Makefile rules. | |
14808 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14809 | # |
14810 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14811 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14812 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14813 | ac_script=' |
14814 | :mline | |
14815 | /\\$/{ | |
14816 | N | |
14817 | s,\\\n,, | |
14818 | b mline | |
14819 | } | |
c6b750e1 | 14820 | t clear |
81ecdfbb RW |
14821 | :clear |
14822 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14823 | t quote |
81ecdfbb | 14824 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14825 | t quote |
81ecdfbb RW |
14826 | b any |
14827 | :quote | |
14828 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14829 | s/\[/\\&/g | |
14830 | s/\]/\\&/g | |
14831 | s/\$/$$/g | |
14832 | H | |
14833 | :any | |
14834 | ${ | |
14835 | g | |
14836 | s/^\n// | |
14837 | s/\n/ /g | |
14838 | p | |
14839 | } | |
14840 | ' | |
14841 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14842 | |
14843 | ||
14844 | ac_libobjs= | |
14845 | ac_ltlibobjs= | |
d0ac1c44 | 14846 | U= |
c6b750e1 DJ |
14847 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14848 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14849 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14850 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14851 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14852 | # will be set to the directory where LIBOBJS objects are built. | |
14853 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14854 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14855 | done |
14856 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14857 | |
c6b750e1 | 14858 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14859 | |
cac3d6c4 | 14860 | |
c6b750e1 | 14861 | |
d0ac1c44 | 14862 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14863 | ac_write_fail=0 |
c6b750e1 DJ |
14864 | ac_clean_files_save=$ac_clean_files |
14865 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14866 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14867 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14868 | as_write_fail=0 | |
14869 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14870 | #! $SHELL |
14871 | # Generated by $as_me. | |
a0da8069 | 14872 | # Run this file to recreate the current configuration. |
a0da8069 | 14873 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14874 | # configure, is in config.log if it exists. |
376a0e54 | 14875 | |
c6b750e1 DJ |
14876 | debug=false |
14877 | ac_cs_recheck=false | |
14878 | ac_cs_silent=false | |
c6b750e1 | 14879 | |
81ecdfbb RW |
14880 | SHELL=\${CONFIG_SHELL-$SHELL} |
14881 | export SHELL | |
14882 | _ASEOF | |
14883 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14884 | ## -------------------- ## | |
14885 | ## M4sh Initialization. ## | |
14886 | ## -------------------- ## | |
14887 | ||
14888 | # Be more Bourne compatible | |
14889 | DUALCASE=1; export DUALCASE # for MKS sh | |
14890 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14891 | emulate sh |
14892 | NULLCMD=: | |
81ecdfbb | 14893 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14894 | # is contrary to our usage. Disable this feature. |
14895 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14896 | setopt NO_GLOB_SUBST |
14897 | else | |
14898 | case `(set -o) 2>/dev/null` in #( | |
14899 | *posix*) : | |
14900 | set -o posix ;; #( | |
14901 | *) : | |
14902 | ;; | |
14903 | esac | |
c6b750e1 | 14904 | fi |
c6b750e1 | 14905 | |
81ecdfbb RW |
14906 | |
14907 | as_nl=' | |
14908 | ' | |
14909 | export as_nl | |
14910 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14911 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14912 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14913 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14914 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14915 | # but without wasting forks for bash or zsh. | |
14916 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14917 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14918 | as_echo='print -r --' | |
14919 | as_echo_n='print -rn --' | |
14920 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14921 | as_echo='printf %s\n' | |
14922 | as_echo_n='printf %s' | |
14923 | else | |
14924 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14925 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14926 | as_echo_n='/usr/ucb/echo -n' | |
14927 | else | |
14928 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14929 | as_echo_n_body='eval | |
14930 | arg=$1; | |
14931 | case $arg in #( | |
14932 | *"$as_nl"*) | |
14933 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14934 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14935 | esac; | |
14936 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14937 | ' | |
14938 | export as_echo_n_body | |
14939 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14940 | fi | |
14941 | export as_echo_body | |
14942 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14943 | fi |
14944 | ||
81ecdfbb RW |
14945 | # The user is always right. |
14946 | if test "${PATH_SEPARATOR+set}" != set; then | |
14947 | PATH_SEPARATOR=: | |
14948 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14949 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14950 | PATH_SEPARATOR=';' | |
14951 | } | |
14952 | fi | |
14953 | ||
14954 | ||
14955 | # IFS | |
14956 | # We need space, tab and new line, in precisely that order. Quoting is | |
14957 | # there to prevent editors from complaining about space-tab. | |
14958 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14959 | # splitting by setting IFS to empty value.) | |
14960 | IFS=" "" $as_nl" | |
14961 | ||
14962 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14963 | as_myself= |
81ecdfbb RW |
14964 | case $0 in #(( |
14965 | *[\\/]* ) as_myself=$0 ;; | |
14966 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14967 | for as_dir in $PATH | |
14968 | do | |
14969 | IFS=$as_save_IFS | |
14970 | test -z "$as_dir" && as_dir=. | |
14971 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14972 | done | |
14973 | IFS=$as_save_IFS | |
14974 | ||
14975 | ;; | |
14976 | esac | |
14977 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14978 | # in which case we are not to be found in the path. | |
14979 | if test "x$as_myself" = x; then | |
14980 | as_myself=$0 | |
14981 | fi | |
14982 | if test ! -f "$as_myself"; then | |
14983 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14984 | exit 1 | |
14985 | fi | |
c6b750e1 | 14986 | |
81ecdfbb RW |
14987 | # Unset variables that we do not need and which cause bugs (e.g. in |
14988 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14989 | # suppresses any "Segmentation fault" message there. '((' could | |
14990 | # trigger a bug in pdksh 5.2.14. | |
14991 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14992 | do eval test x\${$as_var+set} = xset \ | |
14993 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14994 | done | |
c6b750e1 DJ |
14995 | PS1='$ ' |
14996 | PS2='> ' | |
14997 | PS4='+ ' | |
14998 | ||
14999 | # NLS nuisances. | |
81ecdfbb RW |
15000 | LC_ALL=C |
15001 | export LC_ALL | |
15002 | LANGUAGE=C | |
15003 | export LANGUAGE | |
15004 | ||
15005 | # CDPATH. | |
15006 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15007 | ||
15008 | ||
d0ac1c44 SM |
15009 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15010 | # ---------------------------------------- | |
81ecdfbb RW |
15011 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15012 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15013 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15014 | as_fn_error () |
15015 | { | |
d0ac1c44 SM |
15016 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15017 | if test "$4"; then | |
15018 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15019 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 15020 | fi |
d0ac1c44 | 15021 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15022 | as_fn_exit $as_status |
15023 | } # as_fn_error | |
15024 | ||
15025 | ||
15026 | # as_fn_set_status STATUS | |
15027 | # ----------------------- | |
15028 | # Set $? to STATUS, without forking. | |
15029 | as_fn_set_status () | |
15030 | { | |
15031 | return $1 | |
15032 | } # as_fn_set_status | |
15033 | ||
15034 | # as_fn_exit STATUS | |
15035 | # ----------------- | |
15036 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15037 | as_fn_exit () | |
15038 | { | |
15039 | set +e | |
15040 | as_fn_set_status $1 | |
15041 | exit $1 | |
15042 | } # as_fn_exit | |
15043 | ||
15044 | # as_fn_unset VAR | |
15045 | # --------------- | |
15046 | # Portably unset VAR. | |
15047 | as_fn_unset () | |
15048 | { | |
15049 | { eval $1=; unset $1;} | |
15050 | } | |
15051 | as_unset=as_fn_unset | |
15052 | # as_fn_append VAR VALUE | |
15053 | # ---------------------- | |
15054 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15055 | # advantage of any shell optimizations that allow amortized linear growth over | |
15056 | # repeated appends, instead of the typical quadratic growth present in naive | |
15057 | # implementations. | |
15058 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15059 | eval 'as_fn_append () | |
15060 | { | |
15061 | eval $1+=\$2 | |
15062 | }' | |
15063 | else | |
15064 | as_fn_append () | |
15065 | { | |
15066 | eval $1=\$$1\$2 | |
15067 | } | |
15068 | fi # as_fn_append | |
15069 | ||
15070 | # as_fn_arith ARG... | |
15071 | # ------------------ | |
15072 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15073 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15074 | # must be portable across $(()) and expr. | |
15075 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15076 | eval 'as_fn_arith () | |
15077 | { | |
15078 | as_val=$(( $* )) | |
15079 | }' | |
15080 | else | |
15081 | as_fn_arith () | |
15082 | { | |
15083 | as_val=`expr "$@" || test $? -eq 1` | |
15084 | } | |
15085 | fi # as_fn_arith | |
15086 | ||
c6b750e1 | 15087 | |
81ecdfbb RW |
15088 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15089 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15090 | as_expr=expr |
15091 | else | |
15092 | as_expr=false | |
15093 | fi | |
15094 | ||
81ecdfbb | 15095 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15096 | as_basename=basename |
15097 | else | |
15098 | as_basename=false | |
15099 | fi | |
15100 | ||
81ecdfbb RW |
15101 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15102 | as_dirname=dirname | |
15103 | else | |
15104 | as_dirname=false | |
15105 | fi | |
c6b750e1 | 15106 | |
81ecdfbb | 15107 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15108 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15109 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15110 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15111 | $as_echo X/"$0" | | |
15112 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15113 | s//\1/ | |
15114 | q | |
15115 | } | |
15116 | /^X\/\(\/\/\)$/{ | |
15117 | s//\1/ | |
15118 | q | |
15119 | } | |
15120 | /^X\/\(\/\).*/{ | |
15121 | s//\1/ | |
15122 | q | |
15123 | } | |
15124 | s/.*/./; q'` | |
c6b750e1 | 15125 | |
c6b750e1 DJ |
15126 | # Avoid depending upon Character Ranges. |
15127 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15128 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15129 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15130 | as_cr_digits='0123456789' | |
15131 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15132 | ||
81ecdfbb RW |
15133 | ECHO_C= ECHO_N= ECHO_T= |
15134 | case `echo -n x` in #((((( | |
15135 | -n*) | |
15136 | case `echo 'xy\c'` in | |
15137 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15138 | xy) ECHO_C='\c';; | |
15139 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15140 | ECHO_T=' ';; | |
15141 | esac;; | |
15142 | *) | |
15143 | ECHO_N='-n';; | |
c6b750e1 DJ |
15144 | esac |
15145 | ||
81ecdfbb RW |
15146 | rm -f conf$$ conf$$.exe conf$$.file |
15147 | if test -d conf$$.dir; then | |
15148 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15149 | else |
81ecdfbb RW |
15150 | rm -f conf$$.dir |
15151 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15152 | fi |
81ecdfbb RW |
15153 | if (echo >conf$$.file) 2>/dev/null; then |
15154 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15155 | as_ln_s='ln -s' |
81ecdfbb RW |
15156 | # ... but there are two gotchas: |
15157 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15158 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15159 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15160 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15161 | as_ln_s='cp -pR' |
81ecdfbb RW |
15162 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15163 | as_ln_s=ln | |
15164 | else | |
d0ac1c44 | 15165 | as_ln_s='cp -pR' |
c6b750e1 | 15166 | fi |
c6b750e1 | 15167 | else |
d0ac1c44 | 15168 | as_ln_s='cp -pR' |
c6b750e1 | 15169 | fi |
81ecdfbb RW |
15170 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15171 | rmdir conf$$.dir 2>/dev/null | |
15172 | ||
15173 | ||
15174 | # as_fn_mkdir_p | |
15175 | # ------------- | |
15176 | # Create "$as_dir" as a directory, including parents if necessary. | |
15177 | as_fn_mkdir_p () | |
15178 | { | |
15179 | ||
15180 | case $as_dir in #( | |
15181 | -*) as_dir=./$as_dir;; | |
15182 | esac | |
15183 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15184 | as_dirs= | |
15185 | while :; do | |
15186 | case $as_dir in #( | |
15187 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15188 | *) as_qdir=$as_dir;; | |
15189 | esac | |
15190 | as_dirs="'$as_qdir' $as_dirs" | |
15191 | as_dir=`$as_dirname -- "$as_dir" || | |
15192 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15193 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15194 | X"$as_dir" : 'X\(//\)$' \| \ | |
15195 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15196 | $as_echo X"$as_dir" | | |
15197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15198 | s//\1/ | |
15199 | q | |
15200 | } | |
15201 | /^X\(\/\/\)[^/].*/{ | |
15202 | s//\1/ | |
15203 | q | |
15204 | } | |
15205 | /^X\(\/\/\)$/{ | |
15206 | s//\1/ | |
15207 | q | |
15208 | } | |
15209 | /^X\(\/\).*/{ | |
15210 | s//\1/ | |
15211 | q | |
15212 | } | |
15213 | s/.*/./; q'` | |
15214 | test -d "$as_dir" && break | |
15215 | done | |
15216 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15217 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15218 | |
c6b750e1 | 15219 | |
81ecdfbb | 15220 | } # as_fn_mkdir_p |
c6b750e1 | 15221 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15222 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15223 | else |
15224 | test -d ./-p && rmdir ./-p | |
15225 | as_mkdir_p=false | |
15226 | fi | |
15227 | ||
d0ac1c44 SM |
15228 | |
15229 | # as_fn_executable_p FILE | |
15230 | # ----------------------- | |
15231 | # Test if FILE is an executable regular file. | |
15232 | as_fn_executable_p () | |
15233 | { | |
15234 | test -f "$1" && test -x "$1" | |
15235 | } # as_fn_executable_p | |
15236 | as_test_x='test -x' | |
15237 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15238 | |
15239 | # Sed expression to map a string onto a valid CPP name. | |
15240 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15241 | ||
15242 | # Sed expression to map a string onto a valid variable name. | |
15243 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15244 | ||
15245 | ||
c6b750e1 | 15246 | exec 6>&1 |
81ecdfbb RW |
15247 | ## ----------------------------------- ## |
15248 | ## Main body of $CONFIG_STATUS script. ## | |
15249 | ## ----------------------------------- ## | |
15250 | _ASEOF | |
15251 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15252 | ||
15253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15254 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15255 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15256 | # values after options handling. |
15257 | ac_log=" | |
c6b750e1 | 15258 | This file was extended by $as_me, which was |
d0ac1c44 | 15259 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15260 | |
15261 | CONFIG_FILES = $CONFIG_FILES | |
15262 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15263 | CONFIG_LINKS = $CONFIG_LINKS | |
15264 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15265 | $ $0 $@ | |
15266 | ||
81ecdfbb RW |
15267 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15268 | " | |
15269 | ||
c6b750e1 DJ |
15270 | _ACEOF |
15271 | ||
81ecdfbb RW |
15272 | case $ac_config_files in *" |
15273 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15274 | esac | |
c6b750e1 | 15275 | |
c6b750e1 | 15276 | |
c6b750e1 | 15277 | |
81ecdfbb RW |
15278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15279 | # Files that config.status was made for. | |
15280 | config_files="$ac_config_files" | |
c6b750e1 | 15281 | |
81ecdfbb | 15282 | _ACEOF |
c6b750e1 | 15283 | |
81ecdfbb | 15284 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15285 | ac_cs_usage="\ |
81ecdfbb RW |
15286 | \`$as_me' instantiates files and other configuration actions |
15287 | from templates according to the current configuration. Unless the files | |
15288 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15289 | |
81ecdfbb | 15290 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15291 | |
15292 | -h, --help print this help, then exit | |
81ecdfbb | 15293 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15294 | --config print configuration, then exit |
81ecdfbb RW |
15295 | -q, --quiet, --silent |
15296 | do not print progress messages | |
c6b750e1 DJ |
15297 | -d, --debug don't remove temporary files |
15298 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15299 | --file=FILE[:TEMPLATE] |
15300 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15301 | |
15302 | Configuration files: | |
15303 | $config_files | |
15304 | ||
81ecdfbb | 15305 | Report bugs to the package provider." |
c6b750e1 | 15306 | |
81ecdfbb RW |
15307 | _ACEOF |
15308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15309 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15310 | ac_cs_version="\\ |
15311 | config.status | |
d0ac1c44 SM |
15312 | configured by $0, generated by GNU Autoconf 2.69, |
15313 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15314 | |
d0ac1c44 | 15315 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15316 | This config.status script is free software; the Free Software Foundation |
15317 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15318 | |
15319 | ac_pwd='$ac_pwd' | |
15320 | srcdir='$srcdir' | |
15321 | INSTALL='$INSTALL' | |
8e957354 | 15322 | AWK='$AWK' |
81ecdfbb | 15323 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15324 | _ACEOF |
15325 | ||
81ecdfbb RW |
15326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15327 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15328 | ac_need_defaults=: |
15329 | while test $# != 0 | |
a0da8069 | 15330 | do |
c6b750e1 | 15331 | case $1 in |
d0ac1c44 | 15332 | --*=?*) |
81ecdfbb RW |
15333 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15334 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15335 | ac_shift=: |
15336 | ;; | |
d0ac1c44 SM |
15337 | --*=) |
15338 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15339 | ac_optarg= | |
15340 | ac_shift=: | |
15341 | ;; | |
81ecdfbb | 15342 | *) |
c6b750e1 DJ |
15343 | ac_option=$1 |
15344 | ac_optarg=$2 | |
15345 | ac_shift=shift | |
15346 | ;; | |
c6b750e1 DJ |
15347 | esac |
15348 | ||
15349 | case $ac_option in | |
15350 | # Handling of the options. | |
a0da8069 | 15351 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15352 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15353 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15354 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15355 | --config | --confi | --conf | --con | --co | --c ) |
15356 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15357 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
15358 | debug=: ;; |
15359 | --file | --fil | --fi | --f ) | |
15360 | $ac_shift | |
81ecdfbb RW |
15361 | case $ac_optarg in |
15362 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15363 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15364 | esac |
15365 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15366 | ac_need_defaults=false;; |
81ecdfbb RW |
15367 | --he | --h | --help | --hel | -h ) |
15368 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15369 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15370 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15371 | ac_cs_silent=: ;; | |
15372 | ||
15373 | # This is an error. | |
d0ac1c44 | 15374 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15375 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 15376 | |
81ecdfbb RW |
15377 | *) as_fn_append ac_config_targets " $1" |
15378 | ac_need_defaults=false ;; | |
c6b750e1 | 15379 | |
376a0e54 | 15380 | esac |
c6b750e1 | 15381 | shift |
376a0e54 CM |
15382 | done |
15383 | ||
c6b750e1 | 15384 | ac_configure_extra_args= |
376a0e54 | 15385 | |
c6b750e1 DJ |
15386 | if $ac_cs_silent; then |
15387 | exec 6>/dev/null | |
15388 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15389 | fi | |
376a0e54 | 15390 | |
c6b750e1 | 15391 | _ACEOF |
81ecdfbb | 15392 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15393 | if \$ac_cs_recheck; then |
d0ac1c44 | 15394 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15395 | shift |
15396 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15397 | CONFIG_SHELL='$SHELL' | |
15398 | export CONFIG_SHELL | |
15399 | exec "\$@" | |
c6b750e1 DJ |
15400 | fi |
15401 | ||
15402 | _ACEOF | |
81ecdfbb RW |
15403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15404 | exec 5>>config.log | |
15405 | { | |
15406 | echo | |
15407 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15408 | ## Running $as_me. ## | |
15409 | _ASBOX | |
15410 | $as_echo "$ac_log" | |
15411 | } >&5 | |
c6b750e1 | 15412 | |
81ecdfbb RW |
15413 | _ACEOF |
15414 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15415 | # |
15416 | # INIT-COMMANDS | |
15417 | # | |
15418 | extrasub_build="$extrasub_build" | |
15419 | extrasub_host="$extrasub_host" | |
15420 | extrasub_target="$extrasub_target" | |
15421 | ||
81ecdfbb | 15422 | _ACEOF |
c6b750e1 | 15423 | |
81ecdfbb | 15424 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15425 | |
81ecdfbb | 15426 | # Handling of arguments. |
c6b750e1 DJ |
15427 | for ac_config_target in $ac_config_targets |
15428 | do | |
81ecdfbb RW |
15429 | case $ac_config_target in |
15430 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15431 | ||
d0ac1c44 | 15432 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
15433 | esac |
15434 | done | |
15435 | ||
81ecdfbb | 15436 | |
c6b750e1 DJ |
15437 | # If the user did not use the arguments to specify the items to instantiate, |
15438 | # then the envvar interface is used. Set only those that are not. | |
15439 | # We use the long form for the default assignment because of an extremely | |
15440 | # bizarre bug on SunOS 4.1.3. | |
15441 | if $ac_need_defaults; then | |
15442 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15443 | fi | |
15444 | ||
15445 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15446 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15447 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15448 | # Hook for its removal unless debugging. |
15449 | # Note that there is a small window in which the directory will not be cleaned: | |
15450 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15451 | $debug || |
15452 | { | |
d0ac1c44 | 15453 | tmp= ac_tmp= |
81ecdfbb | 15454 | trap 'exit_status=$? |
d0ac1c44 SM |
15455 | : "${ac_tmp:=$tmp}" |
15456 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15457 | ' 0 |
15458 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15459 | } |
c6b750e1 DJ |
15460 | # Create a (secure) tmp directory for tmp files. |
15461 | ||
15462 | { | |
81ecdfbb | 15463 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15464 | test -d "$tmp" |
c6b750e1 DJ |
15465 | } || |
15466 | { | |
81ecdfbb RW |
15467 | tmp=./conf$$-$RANDOM |
15468 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15469 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15470 | ac_tmp=$tmp | |
81ecdfbb RW |
15471 | |
15472 | # Set up the scripts for CONFIG_FILES section. | |
15473 | # No need to generate them if there are no CONFIG_FILES. | |
15474 | # This happens for instance with `./config.status config.h'. | |
15475 | if test -n "$CONFIG_FILES"; then | |
15476 | ||
15477 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15478 | ac_cs_awk_getline=: | |
15479 | ac_cs_awk_pipe_init= | |
15480 | ac_cs_awk_read_file=' | |
15481 | while ((getline aline < (F[key])) > 0) | |
15482 | print(aline) | |
15483 | close(F[key])' | |
15484 | ac_cs_awk_pipe_fini= | |
15485 | else | |
15486 | ac_cs_awk_getline=false | |
15487 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15488 | ac_cs_awk_read_file=' | |
15489 | print "|#_!!_#|" | |
15490 | print "cat " F[key] " &&" | |
15491 | '$ac_cs_awk_pipe_init | |
15492 | # The final `:' finishes the AND list. | |
15493 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15494 | fi | |
15495 | ac_cr=`echo X | tr X '\015'` | |
15496 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15497 | # But we know of no other shell where ac_cr would be empty at this | |
15498 | # point, so we can use a bashism as a fallback. | |
15499 | if test "x$ac_cr" = x; then | |
15500 | eval ac_cr=\$\'\\r\' | |
15501 | fi | |
15502 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15503 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15504 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15505 | else |
15506 | ac_cs_awk_cr=$ac_cr | |
15507 | fi | |
15508 | ||
d0ac1c44 | 15509 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15510 | _ACEOF |
15511 | ||
15512 | # Create commands to substitute file output variables. | |
c6b750e1 | 15513 | { |
81ecdfbb | 15514 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 15515 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
15516 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15517 | echo "_ACAWK" && | |
15518 | echo "_ACEOF" | |
15519 | } >conf$$files.sh && | |
15520 | . ./conf$$files.sh || | |
d0ac1c44 | 15521 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15522 | rm -f conf$$files.sh |
c6b750e1 | 15523 | |
81ecdfbb RW |
15524 | { |
15525 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15526 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15527 | echo "_ACEOF" | |
15528 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15529 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15530 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15531 | ac_delim='%!_!# ' |
15532 | for ac_last_try in false false false false false :; do | |
15533 | . ./conf$$subs.sh || | |
d0ac1c44 | 15534 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15535 | |
15536 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15537 | if test $ac_delim_n = $ac_delim_num; then | |
15538 | break | |
15539 | elif $ac_last_try; then | |
d0ac1c44 | 15540 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15541 | else |
15542 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15543 | fi | |
15544 | done | |
15545 | rm -f conf$$subs.sh | |
15546 | ||
15547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15548 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 15549 | _ACEOF |
81ecdfbb RW |
15550 | sed -n ' |
15551 | h | |
15552 | s/^/S["/; s/!.*/"]=/ | |
15553 | p | |
15554 | g | |
15555 | s/^[^!]*!// | |
15556 | :repl | |
15557 | t repl | |
15558 | s/'"$ac_delim"'$// | |
15559 | t delim | |
15560 | :nl | |
15561 | h | |
d0ac1c44 | 15562 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15563 | t more1 |
15564 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15565 | p | |
15566 | n | |
15567 | b repl | |
15568 | :more1 | |
15569 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15570 | p | |
15571 | g | |
15572 | s/.\{148\}// | |
15573 | t nl | |
15574 | :delim | |
15575 | h | |
d0ac1c44 | 15576 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15577 | t more2 |
15578 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15579 | p | |
15580 | b | |
15581 | :more2 | |
15582 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15583 | p | |
15584 | g | |
15585 | s/.\{148\}// | |
15586 | t delim | |
15587 | ' <conf$$subs.awk | sed ' | |
15588 | /^[^""]/{ | |
15589 | N | |
15590 | s/\n// | |
15591 | } | |
15592 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15593 | rm -f conf$$subs.awk | |
15594 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15595 | _ACAWK | |
d0ac1c44 | 15596 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15597 | for (key in S) S_is_set[key] = 1 |
15598 | FS = "\a" | |
15599 | \$ac_cs_awk_pipe_init | |
15600 | } | |
15601 | { | |
15602 | line = $ 0 | |
15603 | nfields = split(line, field, "@") | |
15604 | substed = 0 | |
15605 | len = length(field[1]) | |
15606 | for (i = 2; i < nfields; i++) { | |
15607 | key = field[i] | |
15608 | keylen = length(key) | |
15609 | if (S_is_set[key]) { | |
15610 | value = S[key] | |
15611 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15612 | len += length(value) + length(field[++i]) | |
15613 | substed = 1 | |
15614 | } else | |
15615 | len += 1 + keylen | |
15616 | } | |
15617 | if (nfields == 3 && !substed) { | |
15618 | key = field[2] | |
15619 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15620 | \$ac_cs_awk_read_file | |
15621 | next | |
15622 | } | |
15623 | } | |
15624 | print line | |
15625 | } | |
15626 | \$ac_cs_awk_pipe_fini | |
15627 | _ACAWK | |
15628 | _ACEOF | |
15629 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15630 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15631 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15632 | else | |
15633 | cat | |
d0ac1c44 SM |
15634 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15635 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
15636 | _ACEOF |
15637 | ||
d0ac1c44 SM |
15638 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15639 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15640 | # trailing colons and then remove the whole line if VPATH becomes empty |
15641 | # (actually we leave an empty line to preserve line numbers). | |
15642 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15643 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15644 | h | |
15645 | s/// | |
15646 | s/^/:/ | |
15647 | s/[ ]*$/:/ | |
15648 | s/:\$(srcdir):/:/g | |
15649 | s/:\${srcdir}:/:/g | |
15650 | s/:@srcdir@:/:/g | |
15651 | s/^:*// | |
81ecdfbb | 15652 | s/:*$// |
d0ac1c44 SM |
15653 | x |
15654 | s/\(=[ ]*\).*/\1/ | |
15655 | G | |
15656 | s/\n// | |
81ecdfbb RW |
15657 | s/^[^=]*=[ ]*$// |
15658 | }' | |
15659 | fi | |
c6b750e1 | 15660 | |
81ecdfbb RW |
15661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15662 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15663 | |
c6b750e1 | 15664 | |
81ecdfbb RW |
15665 | eval set X " :F $CONFIG_FILES " |
15666 | shift | |
15667 | for ac_tag | |
15668 | do | |
15669 | case $ac_tag in | |
15670 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15671 | esac | |
15672 | case $ac_mode$ac_tag in | |
15673 | :[FHL]*:*);; | |
d0ac1c44 | 15674 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15675 | :[FH]-) ac_tag=-:-;; |
15676 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15677 | esac | |
15678 | ac_save_IFS=$IFS | |
15679 | IFS=: | |
15680 | set x $ac_tag | |
15681 | IFS=$ac_save_IFS | |
15682 | shift | |
15683 | ac_file=$1 | |
15684 | shift | |
252b5132 | 15685 | |
81ecdfbb RW |
15686 | case $ac_mode in |
15687 | :L) ac_source=$1;; | |
15688 | :[FH]) | |
15689 | ac_file_inputs= | |
15690 | for ac_f | |
15691 | do | |
15692 | case $ac_f in | |
d0ac1c44 | 15693 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15694 | *) # Look for the file first in the build tree, then in the source tree |
15695 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15696 | # because $ac_f cannot contain `:'. | |
15697 | test -f "$ac_f" || | |
15698 | case $ac_f in | |
15699 | [\\/$]*) false;; | |
15700 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15701 | esac || | |
d0ac1c44 | 15702 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15703 | esac |
15704 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15705 | as_fn_append ac_file_inputs " '$ac_f'" | |
15706 | done | |
c6b750e1 | 15707 | |
81ecdfbb RW |
15708 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15709 | # use $as_me), people would be surprised to read: | |
15710 | # /* config.h. Generated by config.status. */ | |
15711 | configure_input='Generated from '` | |
15712 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15713 | `' by configure.' | |
15714 | if test x"$ac_file" != x-; then | |
15715 | configure_input="$ac_file. $configure_input" | |
15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15717 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15718 | fi |
81ecdfbb RW |
15719 | # Neutralize special characters interpreted by sed in replacement strings. |
15720 | case $configure_input in #( | |
15721 | *\&* | *\|* | *\\* ) | |
15722 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15723 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15724 | *) ac_sed_conf_input=$configure_input;; | |
15725 | esac | |
cac3d6c4 | 15726 | |
81ecdfbb | 15727 | case $ac_tag in |
d0ac1c44 SM |
15728 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15729 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15730 | esac |
15731 | ;; | |
a0da8069 | 15732 | esac |
252b5132 | 15733 | |
81ecdfbb | 15734 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15735 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15736 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15737 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15738 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15739 | $as_echo X"$ac_file" | | |
15740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15741 | s//\1/ | |
15742 | q | |
15743 | } | |
15744 | /^X\(\/\/\)[^/].*/{ | |
15745 | s//\1/ | |
15746 | q | |
15747 | } | |
15748 | /^X\(\/\/\)$/{ | |
15749 | s//\1/ | |
15750 | q | |
15751 | } | |
15752 | /^X\(\/\).*/{ | |
15753 | s//\1/ | |
15754 | q | |
15755 | } | |
15756 | s/.*/./; q'` | |
15757 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15758 | ac_builddir=. |
252b5132 | 15759 | |
81ecdfbb RW |
15760 | case "$ac_dir" in |
15761 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15762 | *) | |
15763 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15764 | # A ".." for each directory in $ac_dir_suffix. | |
15765 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15766 | case $ac_top_builddir_sub in | |
15767 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15768 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15769 | esac ;; | |
15770 | esac | |
15771 | ac_abs_top_builddir=$ac_pwd | |
15772 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15773 | # for backward compatibility: | |
15774 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15775 | |
15776 | case $srcdir in | |
81ecdfbb | 15777 | .) # We are building in place. |
c6b750e1 | 15778 | ac_srcdir=. |
81ecdfbb RW |
15779 | ac_top_srcdir=$ac_top_builddir_sub |
15780 | ac_abs_top_srcdir=$ac_pwd ;; | |
15781 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15782 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15783 | ac_top_srcdir=$srcdir |
15784 | ac_abs_top_srcdir=$srcdir ;; | |
15785 | *) # Relative name. | |
15786 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15787 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15788 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15789 | esac |
81ecdfbb | 15790 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15791 | |
252b5132 | 15792 | |
81ecdfbb RW |
15793 | case $ac_mode in |
15794 | :F) | |
15795 | # | |
15796 | # CONFIG_FILE | |
15797 | # | |
c6b750e1 DJ |
15798 | |
15799 | case $INSTALL in | |
15800 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15801 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15802 | esac |
81ecdfbb | 15803 | _ACEOF |
252b5132 | 15804 | |
81ecdfbb RW |
15805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15806 | # If the template does not know about datarootdir, expand it. | |
15807 | # FIXME: This hack should be removed a few years after 2.60. | |
15808 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15809 | ac_sed_dataroot=' | |
15810 | /datarootdir/ { | |
15811 | p | |
15812 | q | |
15813 | } | |
15814 | /@datadir@/p | |
15815 | /@docdir@/p | |
15816 | /@infodir@/p | |
15817 | /@localedir@/p | |
15818 | /@mandir@/p' | |
15819 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15820 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15821 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15823 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15824 | _ACEOF |
81ecdfbb RW |
15825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15826 | ac_datarootdir_hack=' | |
15827 | s&@datadir@&$datadir&g | |
15828 | s&@docdir@&$docdir&g | |
15829 | s&@infodir@&$infodir&g | |
15830 | s&@localedir@&$localedir&g | |
15831 | s&@mandir@&$mandir&g | |
15832 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15833 | esac | |
15834 | _ACEOF | |
15835 | ||
15836 | # Neutralize VPATH when `$srcdir' = `.'. | |
15837 | # Shell code in configure.ac might set extrasub. | |
15838 | # FIXME: do we really want to maintain this feature? | |
15839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15840 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15841 | $extrasub |
15842 | _ACEOF | |
81ecdfbb | 15843 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15844 | :t |
15845 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15846 | s|@configure_input@|$ac_sed_conf_input|;t t |
15847 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15848 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15849 | s&@srcdir@&$ac_srcdir&;t t | |
15850 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15851 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15852 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15853 | s&@builddir@&$ac_builddir&;t t | |
15854 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15855 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15856 | s&@INSTALL@&$ac_INSTALL&;t t | |
15857 | $ac_datarootdir_hack | |
15858 | " | |
15859 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15860 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 15861 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 15862 | else |
d0ac1c44 SM |
15863 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15864 | fi \ | |
15865 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15866 | |
15867 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15868 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15869 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15870 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15872 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15873 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15874 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15875 | |
d0ac1c44 | 15876 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 15877 | case $ac_file in |
d0ac1c44 SM |
15878 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15879 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15880 | esac \ |
d0ac1c44 | 15881 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 15882 | ;; |
c148b4cb | 15883 | |
c148b4cb | 15884 | |
c148b4cb | 15885 | |
81ecdfbb RW |
15886 | esac |
15887 | ||
06a51eac RW |
15888 | |
15889 | case $ac_file$ac_mode in | |
15890 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15891 | sed "$extrasub_host" | | |
15892 | sed "$extrasub_target" > mf$$ | |
15893 | mv -f mf$$ Makefile ;; | |
15894 | ||
15895 | esac | |
81ecdfbb RW |
15896 | done # for ac_tag |
15897 | ||
15898 | ||
15899 | as_fn_exit 0 | |
c6b750e1 | 15900 | _ACEOF |
c6b750e1 DJ |
15901 | ac_clean_files=$ac_clean_files_save |
15902 | ||
81ecdfbb | 15903 | test $ac_write_fail = 0 || |
d0ac1c44 | 15904 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15905 | |
c6b750e1 DJ |
15906 | |
15907 | # configure is writing to config.log, and then calls config.status. | |
15908 | # config.status does its own redirection, appending to config.log. | |
15909 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15910 | # by configure, so config.status won't be able to write to it; its | |
15911 | # output is simply discarded. So we exec the FD to /dev/null, | |
15912 | # effectively closing config.log, so it can be properly (re)opened and | |
15913 | # appended to by config.status. When coming back to configure, we | |
15914 | # need to make the FD available again. | |
15915 | if test "$no_create" != yes; then | |
15916 | ac_cs_success=: | |
15917 | ac_config_status_args= | |
15918 | test "$silent" = yes && | |
15919 | ac_config_status_args="$ac_config_status_args --quiet" | |
15920 | exec 5>/dev/null | |
15921 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15922 | exec 5>>config.log | |
15923 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15924 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 15925 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
15926 | fi |
15927 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15929 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15930 | fi |
c148b4cb | 15931 |