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 L |
2771 | #f |
2772 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
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 ILT |
2802 | target-libada \ |
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 | ||
c6b750e1 | 2910 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2911 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2912 | |
a0da8069 NN |
2913 | case ${with_x} in |
2914 | yes | "") ;; # the default value for this tree is that X11 is available | |
2915 | no) | |
675c6968 | 2916 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2917 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2918 | enable_gdbtk=no |
a0da8069 NN |
2919 | ;; |
2920 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2921 | esac | |
252b5132 | 2922 | |
0377a422 | 2923 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2924 | # Remove these if host=target. |
2925 | cross_only="target-libgloss target-newlib target-opcodes" | |
2926 | ||
2927 | case $is_cross_compiler in | |
2928 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2929 | esac |
252b5132 | 2930 | |
a0da8069 NN |
2931 | # If both --with-headers and --with-libs are specified, default to |
2932 | # --without-newlib. | |
32be62b5 RS |
2933 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2934 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2935 | if test x"${with_newlib}" = x ; then |
2936 | with_newlib=no | |
2937 | fi | |
252b5132 RH |
2938 | fi |
2939 | ||
a0da8069 NN |
2940 | # Recognize --with-newlib/--without-newlib. |
2941 | case ${with_newlib} in | |
2942 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2943 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2944 | esac | |
252b5132 | 2945 | |
1b6c0831 L |
2946 | # Check whether --enable-as-accelerator-for was given. |
2947 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2948 | enableval=$enable_as_accelerator_for; | |
2949 | fi | |
2950 | ||
2951 | ||
2952 | # Check whether --enable-offload-targets was given. | |
2953 | if test "${enable_offload_targets+set}" = set; then : | |
2954 | enableval=$enable_offload_targets; | |
2955 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 2956 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
2957 | fi |
2958 | ||
2959 | else | |
2960 | enable_offload_targets= | |
2961 | fi | |
2962 | ||
2963 | ||
c7791212 NC |
2964 | # Handle --enable-gold, --enable-ld. |
2965 | # --disable-gold [--enable-ld] | |
2966 | # Build only ld. Default option. | |
d3b50760 L |
2967 | # --enable-gold [--enable-ld] |
2968 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2969 | # as "ld.bfd" and "ld". | |
2970 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2971 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2972 | # install ld as "ld.bfd". | |
2973 | # --enable-gold[=default] --disable-ld | |
2974 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2975 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2976 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2977 | # and ld.bfd). | |
c7791212 NC |
2978 | # In other words, ld is default |
2979 | # --enable-gold=default --enable-ld=default | |
2980 | # Error. | |
2981 | ||
2982 | default_ld= | |
81ecdfbb RW |
2983 | # Check whether --enable-gold was given. |
2984 | if test "${enable_gold+set}" = set; then : | |
2985 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2986 | else |
2987 | ENABLE_GOLD=no | |
81ecdfbb RW |
2988 | fi |
2989 | ||
c7791212 NC |
2990 | case "${ENABLE_GOLD}" in |
2991 | yes|default) | |
e6de499b NC |
2992 | # Check for ELF target. |
2993 | is_elf=no | |
2994 | case "${target}" in | |
2995 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2996 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2997 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
bf41f30d | 2998 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2999 | case "${target}" in |
3000 | *-*-linux*aout* | *-*-linux*oldld*) | |
3001 | ;; | |
3002 | *) | |
3003 | is_elf=yes | |
3004 | ;; | |
3005 | esac | |
3006 | esac | |
3007 | ||
3008 | if test "$is_elf" = "yes"; then | |
3009 | # Check for target supported by gold. | |
93f9b408 | 3010 | case "${target}" in |
6d26190c | 3011 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 3012 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
3013 | configdirs="$configdirs gold" |
3014 | if test x${ENABLE_GOLD} = xdefault; then | |
3015 | default_ld=gold | |
3016 | fi | |
e6de499b | 3017 | ENABLE_GOLD=yes |
93f9b408 ILT |
3018 | ;; |
3019 | esac | |
e6de499b NC |
3020 | fi |
3021 | ;; | |
3022 | no) | |
3023 | ;; | |
3024 | *) | |
d0ac1c44 | 3025 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3026 | ;; |
c7791212 NC |
3027 | esac |
3028 | ||
3029 | # Check whether --enable-ld was given. | |
3030 | if test "${enable_ld+set}" = set; then : | |
3031 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3032 | else | |
3033 | ENABLE_LD=yes | |
3034 | fi | |
3035 | ||
3036 | ||
3037 | case "${ENABLE_LD}" in | |
3038 | default) | |
d3b50760 | 3039 | if test x${default_ld} != x; then |
d0ac1c44 | 3040 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3041 | fi |
3042 | ;; | |
3043 | yes) | |
3044 | ;; | |
3045 | no) | |
3046 | if test x${ENABLE_GOLD} != xyes; then | |
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3048 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3049 | fi | |
3050 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3051 | ;; | |
3052 | *) | |
d0ac1c44 | 3053 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3054 | ;; |
3055 | esac | |
93f9b408 | 3056 | |
edeefb67 L |
3057 | # PR gas/19109 |
3058 | # Decide the default method for compressing debug sections. | |
3059 | # Provide a configure time option to override our default. | |
3060 | # Check whether --enable-compressed_debug_sections was given. | |
3061 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3062 | enableval=$enable_compressed_debug_sections; | |
3063 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3064 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3065 | fi |
3066 | ||
3067 | else | |
3068 | enable_compressed_debug_sections= | |
3069 | fi | |
3070 | ||
3071 | ||
a0da8069 | 3072 | # Configure extra directories which are host specific |
252b5132 | 3073 | |
a0da8069 NN |
3074 | case "${host}" in |
3075 | *-cygwin*) | |
3076 | configdirs="$configdirs libtermcap" ;; | |
3077 | esac | |
252b5132 | 3078 | |
59f7ec45 HPN |
3079 | # A target can indicate whether a language isn't supported for some reason. |
3080 | # Only spaces may be used in this macro; not newlines or tabs. | |
3081 | unsupported_languages= | |
3082 | ||
c6b750e1 | 3083 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3084 | # target this usually means that a port of the program doesn't |
3085 | # exist yet. | |
252b5132 | 3086 | |
a0da8069 | 3087 | case "${host}" in |
3516a403 | 3088 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3089 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3090 | ;; |
a0da8069 | 3091 | esac |
252b5132 | 3092 | |
4b1cb4fe | 3093 | |
89a1e9c3 PB |
3094 | # Check whether --enable-libquadmath was given. |
3095 | if test "${enable_libquadmath+set}" = set; then : | |
3096 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3097 | else | |
3098 | ENABLE_LIBQUADMATH=yes | |
3099 | fi | |
3100 | ||
3101 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3102 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3103 | fi | |
3104 | ||
3105 | ||
3106 | # Check whether --enable-libquadmath-support was given. | |
3107 | if test "${enable_libquadmath_support+set}" = set; then : | |
3108 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3109 | else | |
3110 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3111 | fi | |
3112 | ||
3113 | enable_libquadmath_support= | |
3114 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3115 | enable_libquadmath_support=no | |
3116 | fi | |
3117 | ||
3118 | ||
81ecdfbb RW |
3119 | # Check whether --enable-libada was given. |
3120 | if test "${enable_libada+set}" = set; then : | |
3121 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3122 | else |
3123 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3124 | fi |
3125 | ||
a2592b1b | 3126 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3127 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3128 | fi |
3129 | ||
81ecdfbb RW |
3130 | # Check whether --enable-libssp was given. |
3131 | if test "${enable_libssp+set}" = set; then : | |
3132 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3133 | else |
3134 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3135 | fi |
3136 | ||
5f128533 | 3137 | |
f66a9a70 L |
3138 | # Check whether --enable-libstdcxx was given. |
3139 | if test "${enable_libstdcxx+set}" = set; then : | |
3140 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3141 | else | |
3142 | ENABLE_LIBSTDCXX=default | |
3143 | fi | |
3144 | ||
3145 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3146 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3147 | fi | |
3148 | ||
3149 | # If this is accelerator compiler and its target is intelmic we enable | |
3150 | # target liboffloadmic by default. If this is compiler with offloading | |
3151 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3152 | # liboffloadmic is disabled by default. | |
3153 | # Check whether --enable-liboffloadmic was given. | |
3154 | if test "${enable_liboffloadmic+set}" = set; then : | |
3155 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3156 | no | host | target) | |
3157 | enable_liboffloadmic=$enableval ;; | |
3158 | *) | |
d0ac1c44 | 3159 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3160 | esac |
3161 | else | |
3162 | if test x"$enable_as_accelerator_for" != x; then | |
3163 | case "${target}" in | |
3164 | *-intelmic-* | *-intelmicemul-*) | |
3165 | enable_liboffloadmic=target | |
3166 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3167 | ;; | |
3168 | *) | |
3169 | enable_liboffloadmic=no | |
3170 | ;; | |
3171 | esac | |
3172 | else | |
3173 | case "${enable_offload_targets}" in | |
3174 | *-intelmic-* | *-intelmicemul-*) | |
3175 | enable_liboffloadmic=host | |
3176 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3177 | ;; | |
3178 | *) | |
3179 | enable_liboffloadmic=no | |
3180 | ;; | |
3181 | esac | |
3182 | fi | |
f66a9a70 L |
3183 | fi |
3184 | ||
1b6c0831 L |
3185 | |
3186 | ||
68996839 | 3187 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3188 | if test x$enable_libgomp = x ; then |
b3ded179 | 3189 | case "${target}" in |
29383458 | 3190 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3191 | ;; |
5b806d27 | 3192 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3193 | ;; |
2479f722 | 3194 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3195 | ;; |
3196 | *-*-darwin* | *-*-aix*) | |
3197 | ;; | |
68996839 NC |
3198 | nvptx*-*-*) |
3199 | ;; | |
b3ded179 PB |
3200 | *) |
3201 | noconfigdirs="$noconfigdirs target-libgomp" | |
3202 | ;; | |
3203 | esac | |
a6df5a19 | 3204 | fi |
b3ded179 | 3205 | |
7ec59b9e L |
3206 | # Disable libatomic on unsupported systems. |
3207 | if test -d ${srcdir}/libatomic; then | |
3208 | if test x$enable_libatomic = x; then | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3210 | $as_echo_n "checking for libatomic support... " >&6; } | |
3211 | if (srcdir=${srcdir}/libatomic; \ | |
3212 | . ${srcdir}/configure.tgt; \ | |
3213 | test -n "$UNSUPPORTED") | |
3214 | then | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3216 | $as_echo "no" >&6; } | |
3217 | noconfigdirs="$noconfigdirs target-libatomic" | |
3218 | else | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3220 | $as_echo "yes" >&6; } | |
3221 | fi | |
3222 | fi | |
3223 | fi | |
3224 | ||
1b6c0831 L |
3225 | # Disable liboffloadmic on unsupported systems. |
3226 | if test -d ${srcdir}/liboffloadmic; then | |
3227 | if test x$enable_liboffloadmic != xno; then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3229 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3230 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3231 | . ${srcdir}/configure.tgt; \ | |
3232 | test -n "$UNSUPPORTED") | |
3233 | then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3235 | $as_echo "no" >&6; } | |
3236 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3237 | else | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3239 | $as_echo "yes" >&6; } | |
3240 | fi | |
3241 | fi | |
3242 | fi | |
3243 | ||
d32e2926 RH |
3244 | # Disable libitm on unsupported systems. |
3245 | if test -d ${srcdir}/libitm; then | |
3246 | if test x$enable_libitm = x; then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3248 | $as_echo_n "checking for libitm support... " >&6; } | |
3249 | if (srcdir=${srcdir}/libitm; \ | |
3250 | . ${srcdir}/configure.tgt; \ | |
3251 | test -n "$UNSUPPORTED") | |
3252 | then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3254 | $as_echo "no" >&6; } | |
3255 | noconfigdirs="$noconfigdirs target-libitm" | |
3256 | else | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3258 | $as_echo "yes" >&6; } | |
3259 | fi | |
3260 | fi | |
3261 | fi | |
3262 | ||
5286fdef L |
3263 | # Disable libsanitizer on unsupported systems. |
3264 | if test -d ${srcdir}/libsanitizer; then | |
3265 | if test x$enable_libsanitizer = x; then | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3267 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3268 | if (srcdir=${srcdir}/libsanitizer; \ | |
3269 | . ${srcdir}/configure.tgt; \ | |
3270 | test -n "$UNSUPPORTED") | |
3271 | then | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3273 | $as_echo "no" >&6; } | |
3274 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3275 | else | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3277 | $as_echo "yes" >&6; } | |
3278 | fi | |
3279 | fi | |
3280 | fi | |
3281 | ||
95e43135 JBG |
3282 | # Disable libvtv on unsupported systems. |
3283 | if test -d ${srcdir}/libvtv; then | |
3284 | if test x$enable_libvtv = x; then | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3286 | $as_echo_n "checking for libvtv support... " >&6; } | |
3287 | if (srcdir=${srcdir}/libvtv; \ | |
3288 | . ${srcdir}/configure.tgt; \ | |
3289 | test "$VTV_SUPPORTED" != "yes") | |
3290 | then | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3292 | $as_echo "no" >&6; } | |
3293 | noconfigdirs="$noconfigdirs target-libvtv" | |
3294 | else | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3296 | $as_echo "yes" >&6; } | |
3297 | fi | |
3298 | fi | |
3299 | fi | |
3300 | ||
1b6c0831 | 3301 | |
bf41f30d NC |
3302 | # Disable libhsail-rt on unsupported systems. |
3303 | if test -d ${srcdir}/libhsail-rt; then | |
3304 | if test x$enable_libhsail_rt = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3306 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3307 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3308 | . ${srcdir}/configure.tgt; \ | |
3309 | test -n "$UNSUPPORTED") | |
3310 | then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3312 | $as_echo "no" >&6; } | |
3313 | unsupported_languages="$unsupported_languages brig" | |
3314 | # This implicitly disables also target-libhsail-rt as it won't | |
3315 | # get added to the build without BRIG FE. | |
3316 | else | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3318 | $as_echo "yes" >&6; } | |
3319 | fi | |
3320 | fi | |
3321 | fi | |
1b6c0831 L |
3322 | |
3323 | ||
1488e230 DE |
3324 | # Disable libquadmath for some systems. |
3325 | case "${target}" in | |
5286fdef L |
3326 | avr-*-*) |
3327 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3328 | ;; | |
1488e230 DE |
3329 | # libquadmath is unused on AIX and libquadmath build process use of |
3330 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3331 | powerpc-*-aix* | rs6000-*-aix*) | |
3332 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3333 | ;; | |
3334 | esac | |
3335 | ||
065a5627 JM |
3336 | # Disable libssp for some systems. |
3337 | case "${target}" in | |
3338 | avr-*-*) | |
c5f5c3c2 | 3339 | # No hosted I/O support. |
065a5627 JM |
3340 | noconfigdirs="$noconfigdirs target-libssp" |
3341 | ;; | |
3342 | powerpc-*-aix* | rs6000-*-aix*) | |
3343 | noconfigdirs="$noconfigdirs target-libssp" | |
3344 | ;; | |
99c513f6 | 3345 | rl78-*-*) |
202e2356 NC |
3346 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3347 | # doesn't fault for those - instead, it gives a build-time error | |
3348 | # for explicit misaligned loads. | |
99c513f6 DD |
3349 | noconfigdirs="$noconfigdirs target-libssp" |
3350 | ;; | |
1b6c0831 L |
3351 | visium-*-*) |
3352 | # No hosted I/O support. | |
3353 | noconfigdirs="$noconfigdirs target-libssp" | |
3354 | ;; | |
065a5627 JM |
3355 | esac |
3356 | ||
065a5627 | 3357 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3358 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3359 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3360 | case "${target}" in | |
3361 | *-*-vxworks*) | |
3362 | # VxWorks uses the Dinkumware C++ library. | |
3363 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3364 | ;; | |
3365 | arm*-wince-pe*) | |
3366 | # the C++ libraries don't build on top of CE's C libraries | |
3367 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3368 | ;; | |
3369 | avr-*-*) | |
3370 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3371 | ;; | |
969b1713 L |
3372 | ft32-*-*) |
3373 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3374 | ;; | |
f66a9a70 L |
3375 | esac |
3376 | fi | |
065a5627 JM |
3377 | |
3378 | # Disable Fortran for some systems. | |
3379 | case "${target}" in | |
3380 | mmix-*-*) | |
3381 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3382 | unsupported_languages="$unsupported_languages fortran" | |
3383 | ;; | |
3384 | esac | |
3385 | ||
05a13254 | 3386 | # Disable libffi for some systems. |
0827f9a6 | 3387 | case "${target}" in |
9863d716 JM |
3388 | powerpc-*-darwin*) |
3389 | ;; | |
3390 | i[3456789]86-*-darwin*) | |
3391 | ;; | |
3392 | x86_64-*-darwin[912]*) | |
3393 | ;; | |
3394 | *-*-darwin*) | |
05a13254 | 3395 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3396 | ;; |
9863d716 | 3397 | *-*-netware*) |
05a13254 NC |
3398 | noconfigdirs="$noconfigdirs target-libffi" |
3399 | ;; | |
3400 | *-*-phoenix*) | |
3401 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3402 | ;; |
3403 | *-*-rtems*) | |
05a13254 | 3404 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3405 | ;; |
3406 | *-*-tpf*) | |
05a13254 | 3407 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3408 | ;; |
3409 | *-*-uclinux*) | |
05a13254 | 3410 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3411 | ;; |
3412 | *-*-vxworks*) | |
05a13254 NC |
3413 | noconfigdirs="$noconfigdirs target-libffi" |
3414 | ;; | |
3415 | aarch64*-*-freebsd*) | |
3416 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3417 | ;; |
9863d716 | 3418 | alpha*-*-*vms*) |
05a13254 | 3419 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3420 | ;; |
1b6c0831 | 3421 | arm*-*-freebsd*) |
05a13254 | 3422 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3423 | ;; |
0827f9a6 | 3424 | arm-wince-pe) |
05a13254 | 3425 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3426 | ;; |
9863d716 | 3427 | arm*-*-symbianelf*) |
05a13254 | 3428 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3429 | ;; |
9863d716 | 3430 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3431 | case "${target}" in |
3432 | *-*-linux*) | |
3433 | ;; | |
3434 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3435 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3436 | esac |
3437 | ;; | |
82ae827f | 3438 | hppa*64*-*-hpux*) |
05a13254 | 3439 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3440 | ;; |
3441 | hppa*-hp-hpux11*) | |
3442 | ;; | |
82ae827f | 3443 | hppa*-*-hpux*) |
05a13254 | 3444 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3445 | ;; |
9863d716 | 3446 | ia64*-*-*vms*) |
05a13254 | 3447 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3448 | ;; |
9863d716 | 3449 | i[3456789]86-w64-mingw*) |
05a13254 | 3450 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3451 | ;; |
3452 | i[3456789]86-*-mingw*) | |
05a13254 | 3453 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3454 | ;; |
3455 | x86_64-*-mingw*) | |
05a13254 | 3456 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3457 | ;; |
9863d716 | 3458 | mmix-*-*) |
05a13254 | 3459 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3460 | ;; |
3461 | powerpc-*-aix*) | |
9863d716 | 3462 | ;; |
9863d716 | 3463 | rs6000-*-aix*) |
9863d716 | 3464 | ;; |
3f8107ab | 3465 | ft32-*-*) |
05a13254 | 3466 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3467 | ;; |
9863d716 | 3468 | *-*-lynxos*) |
05a13254 | 3469 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3470 | ;; |
9863d716 JM |
3471 | esac |
3472 | ||
1b6c0831 L |
3473 | # Disable the go frontend on systems where it is known to not work. Please keep |
3474 | # this in sync with contrib/config-list.mk. | |
3475 | case "${target}" in | |
bf41f30d | 3476 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
1b6c0831 L |
3477 | unsupported_languages="$unsupported_languages go" |
3478 | ;; | |
3479 | esac | |
3480 | ||
a413f71a ILT |
3481 | # Disable libgo for some systems where it is known to not work. |
3482 | # For testing, you can easily override this with --enable-libgo. | |
3483 | if test x$enable_libgo = x; then | |
3484 | case "${target}" in | |
3485 | *-*-darwin*) | |
3486 | # PR 46986 | |
3487 | noconfigdirs="$noconfigdirs target-libgo" | |
3488 | ;; | |
3489 | *-*-cygwin* | *-*-mingw*) | |
3490 | noconfigdirs="$noconfigdirs target-libgo" | |
3491 | ;; | |
a413f71a ILT |
3492 | esac |
3493 | fi | |
3494 | ||
691bb5a1 DD |
3495 | # Default libgloss CPU subdirectory. |
3496 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3497 | |
ff46fb8f JM |
3498 | case "${target}" in |
3499 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3500 | libgloss_dir=wince | |
3501 | ;; | |
f1dd87fc YZ |
3502 | aarch64*-*-* ) |
3503 | libgloss_dir=aarch64 | |
3504 | ;; | |
ff46fb8f JM |
3505 | arm*-*-*) |
3506 | libgloss_dir=arm | |
3507 | ;; | |
3508 | cris-*-* | crisv32-*-*) | |
3509 | libgloss_dir=cris | |
3510 | ;; | |
3511 | hppa*-*-*) | |
3512 | libgloss_dir=pa | |
3513 | ;; | |
3514 | i[3456789]86-*-*) | |
3515 | libgloss_dir=i386 | |
3516 | ;; | |
3517 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3518 | libgloss_dir=m68hc11 | |
3519 | ;; | |
3520 | m68*-*-* | fido-*-*) | |
3521 | libgloss_dir=m68k | |
3522 | ;; | |
3523 | mips*-*-*) | |
3524 | libgloss_dir=mips | |
3525 | ;; | |
3526 | powerpc*-*-*) | |
3527 | libgloss_dir=rs6000 | |
3528 | ;; | |
3529 | sparc*-*-*) | |
3530 | libgloss_dir=sparc | |
3531 | ;; | |
3532 | esac | |
3533 | ||
c7e4b184 | 3534 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3535 | case "${target}" in |
c7e4b184 JM |
3536 | alpha*-dec-osf*) |
3537 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3538 | ;; | |
3539 | i[3456789]86-*-linux*) | |
3540 | # This section makes it possible to build newlib natively on linux. | |
3541 | # If we are using a cross compiler then don't configure newlib. | |
3542 | if test x${is_cross_compiler} != xno ; then | |
3543 | noconfigdirs="$noconfigdirs target-newlib" | |
3544 | fi | |
3545 | noconfigdirs="$noconfigdirs target-libgloss" | |
3546 | # If we are not using a cross compiler, do configure newlib. | |
3547 | # Note however, that newlib will only be configured in this situation | |
3548 | # if the --with-newlib option has been given, because otherwise | |
3549 | # 'target-newlib' will appear in skipdirs. | |
3550 | ;; | |
3551 | i[3456789]86-*-rdos*) | |
3552 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3553 | ;; | |
3554 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3555 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3556 | ;; | |
3557 | sparc-*-sunos4*) | |
3558 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3559 | ;; | |
3560 | *-*-aix*) | |
3561 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3562 | ;; | |
3563 | *-*-beos*) | |
3564 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3565 | ;; | |
a0da8069 | 3566 | *-*-chorusos) |
b2f14e4a | 3567 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3568 | ;; |
c7e4b184 JM |
3569 | *-*-dragonfly*) |
3570 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3571 | ;; | |
3572 | *-*-freebsd*) | |
3573 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3574 | ;; | |
3575 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3576 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3577 | ;; | |
3578 | *-*-lynxos*) | |
3579 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3580 | ;; | |
3581 | *-*-mingw*) | |
3582 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3583 | ;; | |
3584 | *-*-netbsd*) | |
3585 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3586 | ;; | |
3587 | *-*-netware*) | |
3588 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3589 | ;; | |
3590 | *-*-tpf*) | |
3591 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3592 | ;; | |
3593 | *-*-uclinux*) | |
3594 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3595 | ;; | |
3596 | *-*-vxworks*) | |
3597 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3598 | ;; | |
3599 | esac | |
3600 | ||
3601 | case "${target}" in | |
3602 | *-*-chorusos) | |
3603 | ;; | |
f075eb5e TG |
3604 | aarch64-*-darwin*) |
3605 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3606 | noconfigdirs="$noconfigdirs sim target-rda" | |
3607 | ;; | |
3608 | arm-*-darwin*) | |
3609 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3610 | noconfigdirs="$noconfigdirs sim target-rda" | |
3611 | ;; | |
24741ab2 | 3612 | powerpc-*-darwin*) |
9d39db92 | 3613 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3614 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3615 | ;; |
85bd1942 TG |
3616 | i[3456789]86-*-darwin*) |
3617 | noconfigdirs="$noconfigdirs ld gprof" | |
3618 | noconfigdirs="$noconfigdirs sim target-rda" | |
3619 | ;; | |
e8a5fa9c | 3620 | x86_64-*-darwin[912]*) |
652dec25 TG |
3621 | noconfigdirs="$noconfigdirs ld gas gprof" |
3622 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3623 | ;; |
04d1ab34 | 3624 | *-*-darwin*) |
d320aacb | 3625 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3626 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3627 | ;; |
5b806d27 | 3628 | *-*-dragonfly*) |
5b806d27 | 3629 | ;; |
de0b4a87 | 3630 | *-*-freebsd*) |
4b1cb4fe DD |
3631 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3632 | && test -f /usr/local/include/gmp.h; then | |
3633 | with_gmp=/usr/local | |
3634 | fi | |
4b1cb4fe | 3635 | ;; |
f8a495c8 NC |
3636 | *-*-kaos*) |
3637 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3638 | noconfigdirs="$noconfigdirs target-libgloss" |
3639 | ;; | |
a0da8069 | 3640 | *-*-netbsd*) |
a0da8069 | 3641 | ;; |
2a3124ca | 3642 | *-*-netware*) |
a0da8069 | 3643 | ;; |
05a13254 NC |
3644 | *-*-phoenix*) |
3645 | noconfigdirs="$noconfigdirs target-libgloss" | |
3646 | ;; | |
a0da8069 | 3647 | *-*-rtems*) |
9863d716 | 3648 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3649 | ;; |
1587117a EC |
3650 | # The tpf target doesn't support gdb yet. |
3651 | *-*-tpf*) | |
c7e4b184 | 3652 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3653 | ;; |
c1968181 | 3654 | *-*-uclinux*) |
c7e4b184 | 3655 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3656 | ;; |
a0da8069 | 3657 | *-*-vxworks*) |
a0da8069 NN |
3658 | ;; |
3659 | alpha*-dec-osf*) | |
3660 | # ld works, but does not support shared libraries. | |
a0da8069 | 3661 | # gas doesn't generate exception information. |
c7e4b184 | 3662 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3663 | ;; |
3664 | alpha*-*-*vms*) | |
9863d716 | 3665 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3666 | ;; |
a0da8069 NN |
3667 | alpha*-*-*) |
3668 | # newlib is not 64 bit ready | |
9863d716 | 3669 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3670 | ;; |
a0da8069 | 3671 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3672 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3673 | ;; |
05a13254 NC |
3674 | arc*-*-*) |
3675 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3676 | ;; |
a0da8069 | 3677 | arm-*-pe*) |
9863d716 | 3678 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3679 | ;; |
a0da8069 | 3680 | arm-*-riscix*) |
b2f14e4a | 3681 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3682 | ;; |
8e71395b L |
3683 | avr-*-*) |
3684 | if test x${with_avrlibc} != xno; then | |
3685 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3686 | fi | |
3687 | ;; | |
a0da8069 | 3688 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3689 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3690 | ;; |
b2f14e4a JM |
3691 | tic54x-*-*) |
3692 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3693 | ;; |
a0da8069 | 3694 | d10v-*-*) |
b2f14e4a | 3695 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3696 | ;; |
3697 | d30v-*-*) | |
b2f14e4a | 3698 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3699 | ;; |
3700 | fr30-*-elf*) | |
9863d716 | 3701 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3702 | ;; |
3f8107ab AM |
3703 | ft32-*-*) |
3704 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3705 | ;; | |
20135e4c | 3706 | moxie-*-*) |
10b8fe5e | 3707 | noconfigdirs="$noconfigdirs" |
20135e4c | 3708 | ;; |
a0da8069 | 3709 | h8300*-*-*) |
9863d716 | 3710 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3711 | ;; |
3712 | h8500-*-*) | |
b2f14e4a | 3713 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3714 | ;; |
caeba88f | 3715 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3716 | ;; |
5569a85f JDA |
3717 | hppa*64*-*-hpux*) |
3718 | noconfigdirs="$noconfigdirs gdb" | |
3719 | ;; | |
3720 | hppa*-*-hpux11*) | |
3721 | noconfigdirs="$noconfigdirs gdb ld" | |
3722 | ;; | |
93cc359e | 3723 | hppa*64*-*-linux*) |
a0da8069 | 3724 | ;; |
f0ff0f90 | 3725 | hppa*-*-linux*) |
5dcac624 | 3726 | ;; |
a0da8069 | 3727 | hppa*-*-*elf* | \ |
a0da8069 NN |
3728 | hppa*-*-lites* | \ |
3729 | hppa*-*-openbsd* | \ | |
3730 | hppa*64*-*-*) | |
4f0ef2d8 | 3731 | ;; |
691bb5a1 | 3732 | hppa*-*-pro*) |
691bb5a1 | 3733 | ;; |
a0da8069 | 3734 | hppa*-*-*) |
9863d716 | 3735 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3736 | ;; |
b07c2aad | 3737 | i960-*-*) |
b2f14e4a | 3738 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3739 | ;; |
a0da8069 NN |
3740 | ia64*-*-elf*) |
3741 | # No gdb support yet. | |
0377a422 | 3742 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3743 | ;; |
3744 | ia64*-**-hpux*) | |
92c9a463 | 3745 | # No ld support yet. |
5569a85f | 3746 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3747 | ;; |
19e99079 | 3748 | ia64*-*-*vms*) |
7ec59b9e L |
3749 | # No ld support yet. |
3750 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3751 | ;; |
1f53ca9a | 3752 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3753 | ;; |
3754 | i[3456789]86-*-mingw*) | |
45055374 | 3755 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3756 | ;; |
a0da8069 NN |
3757 | *-*-cygwin*) |
3758 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3759 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3760 | # always build newlib if winsup directory is present. |
45055374 | 3761 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3762 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3763 | elif test -d "$srcdir/newlib"; then |
45055374 | 3764 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3765 | fi |
c6b750e1 | 3766 | ;; |
ec11bdc6 | 3767 | i[3456789]86-*-pe) |
782cb41f | 3768 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3769 | ;; |
ec11bdc6 | 3770 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3771 | # The linker does not yet know about weak symbols in COFF, |
3772 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3773 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3774 | ;; |
ec11bdc6 | 3775 | i[3456789]86-*-sco*) |
b2f14e4a | 3776 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3777 | ;; |
cff32a7c | 3778 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3779 | noconfigdirs="$noconfigdirs target-libgloss" |
3780 | ;; | |
ec11bdc6 | 3781 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3782 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3783 | ;; |
ec11bdc6 | 3784 | i[3456789]86-*-beos*) |
c7e4b184 | 3785 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3786 | ;; |
b59bea8a | 3787 | i[3456789]86-*-rdos*) |
c7e4b184 | 3788 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3789 | ;; |
a0da8069 | 3790 | mmix-*-*) |
9863d716 | 3791 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3792 | ;; |
4970f871 | 3793 | mt-*-*) |
cdb9b172 AH |
3794 | noconfigdirs="$noconfigdirs sim" |
3795 | ;; | |
1063beb5 FT |
3796 | nfp-*-*) |
3797 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3798 | noconfigdirs="$noconfigdirs $target_libraries" | |
3799 | ;; | |
a0da8069 NN |
3800 | powerpc-*-aix*) |
3801 | # copied from rs6000-*-* entry | |
c7e4b184 | 3802 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3803 | ;; |
93cc359e | 3804 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3805 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3806 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3807 | # always build newlib. |
3808 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3809 | ;; | |
3810 | # This is temporary until we can link against shared libraries | |
3811 | powerpcle-*-solaris*) | |
b2f14e4a | 3812 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3813 | ;; |
3814 | powerpc-*-beos*) | |
c7e4b184 | 3815 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3816 | ;; |
a0da8069 | 3817 | rs6000-*-lynxos*) |
c7e4b184 | 3818 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3819 | ;; |
3820 | rs6000-*-aix*) | |
c7e4b184 | 3821 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3822 | ;; |
3823 | rs6000-*-*) | |
9863d716 | 3824 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3825 | ;; |
3826 | m68k-apollo-*) | |
b2f14e4a | 3827 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3828 | ;; |
25a07265 | 3829 | microblaze*) |
9863d716 | 3830 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3831 | ;; |
a9d58c06 | 3832 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3833 | if test x$with_newlib = xyes; then |
3834 | noconfigdirs="$noconfigdirs gprof" | |
3835 | fi | |
5bd8be13 | 3836 | ;; |
a0da8069 | 3837 | mips*-*-irix5*) |
b2f14e4a | 3838 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3839 | ;; |
3840 | mips*-*-irix6*) | |
9863d716 | 3841 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3842 | ;; |
a0da8069 | 3843 | mips*-*-bsd*) |
e8044f35 | 3844 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3845 | ;; |
a0da8069 | 3846 | mips*-*-linux*) |
a0da8069 | 3847 | ;; |
e8044f35 RS |
3848 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3849 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3850 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3851 | ;; | |
a0da8069 | 3852 | mips*-*-*) |
9863d716 | 3853 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3854 | ;; |
1b6c0831 | 3855 | nvptx*-*-*) |
1b6c0831 L |
3856 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3857 | ;; | |
05a13254 | 3858 | sh-*-*) |
e8a5fa9c RW |
3859 | case "${target}" in |
3860 | sh*-*-elf) | |
9863d716 | 3861 | ;; |
e8a5fa9c | 3862 | *) |
9863d716 | 3863 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3864 | esac |
a0da8069 | 3865 | ;; |
a0da8069 | 3866 | sparc-*-sunos4*) |
c7e4b184 | 3867 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3868 | use_gnu_ld=no |
3869 | fi | |
3870 | ;; | |
619a3713 | 3871 | tic6x-*-*) |
40ae9136 | 3872 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3873 | ;; |
05a13254 | 3874 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3875 | noconfigdirs="$noconfigdirs sim" |
3876 | ;; | |
a0da8069 | 3877 | v810-*-*) |
b2f14e4a | 3878 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3879 | ;; |
3880 | vax-*-*) | |
9863d716 | 3881 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3882 | ;; |
b29d2641 MR |
3883 | wasm32-*-*) |
3884 | noconfigdirs="$noconfigdirs ld" | |
3885 | ;; | |
a0da8069 | 3886 | esac |
252b5132 | 3887 | |
a0da8069 NN |
3888 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3889 | # depends upon some newlib header files. | |
3890 | case "${noconfigdirs}" in | |
3891 | *target-libgloss*) ;; | |
3892 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3893 | esac | |
3894 | ||
a0da8069 | 3895 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3896 | host_makefile_frag=/dev/null |
3897 | if test -d ${srcdir}/config ; then | |
3898 | case "${host}" in | |
ec11bdc6 | 3899 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3900 | host_makefile_frag="config/mh-djgpp" |
3901 | ;; | |
3902 | *-cygwin*) | |
e33b51a6 | 3903 | |
81ecdfbb RW |
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3905 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3906 | echo a >cygwin-cat-check |
1f53ca9a | 3907 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3908 | rm cygwin-cat-check |
81ecdfbb RW |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3910 | $as_echo "yes" >&6; } | |
e33b51a6 | 3911 | else |
8ade07e9 | 3912 | rm cygwin-cat-check |
81ecdfbb RW |
3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3914 | $as_echo "no" >&6; } | |
d0ac1c44 | 3915 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
3916 | Please either mount the build directory in binary mode or run the following |
3917 | commands before running any configure script: | |
3918 | set -o igncr | |
3919 | export SHELLOPTS | |
81ecdfbb | 3920 | " "$LINENO" 5 |
e33b51a6 | 3921 | fi |
e33b51a6 | 3922 | |
a0da8069 NN |
3923 | host_makefile_frag="config/mh-cygwin" |
3924 | ;; | |
8a1599ab | 3925 | *-mingw*) |
84e7906e | 3926 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3927 | ;; |
ce6c656d L |
3928 | alpha*-linux*) |
3929 | host_makefile_frag="config/mh-alpha-linux" | |
3930 | ;; | |
da888c87 | 3931 | hppa*-hp-hpux10*) |
da888c87 | 3932 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3933 | ;; |
3516a403 | 3934 | hppa*-hp-hpux*) |
da888c87 PB |
3935 | host_makefile_frag="config/mh-pa" |
3936 | ;; | |
3937 | hppa*-*) | |
3938 | host_makefile_frag="config/mh-pa" | |
3939 | ;; | |
e552509b ILT |
3940 | *-*-darwin*) |
3941 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3942 | ;; |
f6d183c0 PB |
3943 | powerpc-*-aix*) |
3944 | host_makefile_frag="config/mh-ppc-aix" | |
3945 | ;; | |
3946 | rs6000-*-aix*) | |
3947 | host_makefile_frag="config/mh-ppc-aix" | |
3948 | ;; | |
a0da8069 NN |
3949 | esac |
3950 | fi | |
3951 | ||
9e07f89d | 3952 | if test "${build}" != "${host}" ; then |
1576798e PB |
3953 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3954 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3955 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e | 3956 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
1576798e | 3957 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 3958 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3959 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3960 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3961 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3962 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3963 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3964 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3965 | else | |
3966 | AR_FOR_BUILD="\$(AR)" | |
3967 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3968 | CC_FOR_BUILD="\$(CC)" |
1576798e | 3969 | CXX_FOR_BUILD="\$(CXX)" |
1576798e | 3970 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 3971 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3972 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3973 | LD_FOR_BUILD="\$(LD)" | |
3974 | NM_FOR_BUILD="\$(NM)" | |
3975 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3976 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3977 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3978 | fi |
3979 | ||
3980 | ac_ext=c | |
c6b750e1 DJ |
3981 | ac_cpp='$CPP $CPPFLAGS' |
3982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3985 | if test -n "$ac_tool_prefix"; then | |
3986 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3987 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3989 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3990 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3991 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
3992 | else |
3993 | if test -n "$CC"; then | |
3994 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3995 | else | |
3996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3997 | for as_dir in $PATH | |
3998 | do | |
3999 | IFS=$as_save_IFS | |
4000 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4001 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4003 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4005 | break 2 |
4006 | fi | |
4007 | done | |
81ecdfbb RW |
4008 | done |
4009 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4010 | |
4011 | fi | |
4012 | fi | |
4013 | CC=$ac_cv_prog_CC | |
4014 | if test -n "$CC"; then | |
81ecdfbb RW |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4016 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4017 | else |
81ecdfbb RW |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4019 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4020 | fi |
4021 | ||
81ecdfbb | 4022 | |
c6b750e1 DJ |
4023 | fi |
4024 | if test -z "$ac_cv_prog_CC"; then | |
4025 | ac_ct_CC=$CC | |
6a9cf61e | 4026 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4027 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4029 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4030 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4031 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4032 | else |
4033 | if test -n "$ac_ct_CC"; then | |
4034 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4035 | else | |
4036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4037 | for as_dir in $PATH | |
4038 | do | |
4039 | IFS=$as_save_IFS | |
4040 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4041 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4043 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4045 | break 2 |
4046 | fi | |
4047 | done | |
81ecdfbb RW |
4048 | done |
4049 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4050 | |
4051 | fi | |
4052 | fi | |
4053 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4054 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4056 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4057 | else |
81ecdfbb RW |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4059 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4060 | fi |
4061 | ||
81ecdfbb RW |
4062 | if test "x$ac_ct_CC" = x; then |
4063 | CC="" | |
4064 | else | |
4065 | case $cross_compiling:$ac_tool_warned in | |
4066 | yes:) | |
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4069 | ac_tool_warned=yes ;; | |
4070 | esac | |
4071 | CC=$ac_ct_CC | |
4072 | fi | |
c6b750e1 DJ |
4073 | else |
4074 | CC="$ac_cv_prog_CC" | |
4075 | fi | |
4076 | ||
4077 | if test -z "$CC"; then | |
81ecdfbb RW |
4078 | if test -n "$ac_tool_prefix"; then |
4079 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4080 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4082 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4083 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4084 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4085 | else |
4086 | if test -n "$CC"; then | |
4087 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4088 | else | |
c6b750e1 DJ |
4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4090 | for as_dir in $PATH | |
4091 | do | |
4092 | IFS=$as_save_IFS | |
4093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4094 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4095 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4096 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4098 | break 2 |
4099 | fi | |
4100 | done | |
81ecdfbb RW |
4101 | done |
4102 | IFS=$as_save_IFS | |
c6b750e1 | 4103 | |
9e07f89d NN |
4104 | fi |
4105 | fi | |
c6b750e1 | 4106 | CC=$ac_cv_prog_CC |
9e07f89d | 4107 | if test -n "$CC"; then |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4109 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4110 | else |
81ecdfbb RW |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4112 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4113 | fi |
4114 | ||
c6b750e1 | 4115 | |
81ecdfbb | 4116 | fi |
c6b750e1 | 4117 | fi |
9e07f89d NN |
4118 | if test -z "$CC"; then |
4119 | # Extract the first word of "cc", so it can be a program name with args. | |
4120 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4122 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4123 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4124 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4125 | else |
4126 | if test -n "$CC"; then | |
4127 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4128 | else | |
9e07f89d | 4129 | ac_prog_rejected=no |
c6b750e1 DJ |
4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4131 | for as_dir in $PATH | |
4132 | do | |
4133 | IFS=$as_save_IFS | |
4134 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4135 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4137 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4138 | ac_prog_rejected=yes | |
4139 | continue | |
4140 | fi | |
4141 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4143 | break 2 |
4144 | fi | |
4145 | done | |
81ecdfbb RW |
4146 | done |
4147 | IFS=$as_save_IFS | |
c6b750e1 | 4148 | |
9e07f89d NN |
4149 | if test $ac_prog_rejected = yes; then |
4150 | # We found a bogon in the path, so make sure we never use it. | |
4151 | set dummy $ac_cv_prog_CC | |
4152 | shift | |
c6b750e1 | 4153 | if test $# != 0; then |
9e07f89d NN |
4154 | # We chose a different compiler from the bogus one. |
4155 | # However, it has the same basename, so the bogon will be chosen | |
4156 | # first if we set CC to just the basename; use the full file name. | |
4157 | shift | |
c6b750e1 | 4158 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4159 | fi |
4160 | fi | |
4161 | fi | |
4162 | fi | |
c6b750e1 | 4163 | CC=$ac_cv_prog_CC |
9e07f89d | 4164 | if test -n "$CC"; then |
81ecdfbb RW |
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4166 | $as_echo "$CC" >&6; } | |
9e07f89d | 4167 | else |
81ecdfbb RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4169 | $as_echo "no" >&6; } | |
9e07f89d NN |
4170 | fi |
4171 | ||
81ecdfbb | 4172 | |
c6b750e1 DJ |
4173 | fi |
4174 | if test -z "$CC"; then | |
4175 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4176 | for ac_prog in cl.exe |
c6b750e1 DJ |
4177 | do |
4178 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4179 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4181 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4182 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4183 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4184 | else |
4185 | if test -n "$CC"; then | |
4186 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4187 | else | |
c6b750e1 DJ |
4188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4189 | for as_dir in $PATH | |
4190 | do | |
4191 | IFS=$as_save_IFS | |
4192 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4193 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4195 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4197 | break 2 |
376a0e54 | 4198 | fi |
c6b750e1 | 4199 | done |
81ecdfbb RW |
4200 | done |
4201 | IFS=$as_save_IFS | |
cac3d6c4 | 4202 | |
c6b750e1 DJ |
4203 | fi |
4204 | fi | |
4205 | CC=$ac_cv_prog_CC | |
4206 | if test -n "$CC"; then | |
81ecdfbb RW |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4208 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4209 | else |
81ecdfbb RW |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4211 | $as_echo "no" >&6; } | |
9e07f89d | 4212 | fi |
cac3d6c4 | 4213 | |
81ecdfbb | 4214 | |
c6b750e1 DJ |
4215 | test -n "$CC" && break |
4216 | done | |
cac3d6c4 | 4217 | fi |
c6b750e1 DJ |
4218 | if test -z "$CC"; then |
4219 | ac_ct_CC=$CC | |
81ecdfbb | 4220 | for ac_prog in cl.exe |
c6b750e1 DJ |
4221 | do |
4222 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4223 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4225 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4226 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4227 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4228 | else |
c6b750e1 DJ |
4229 | if test -n "$ac_ct_CC"; then |
4230 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4231 | else |
c6b750e1 DJ |
4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4233 | for as_dir in $PATH | |
4234 | do | |
4235 | IFS=$as_save_IFS | |
4236 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4237 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4239 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4241 | break 2 |
4242 | fi | |
4243 | done | |
81ecdfbb RW |
4244 | done |
4245 | IFS=$as_save_IFS | |
c6b750e1 | 4246 | |
cac3d6c4 CM |
4247 | fi |
4248 | fi | |
c6b750e1 DJ |
4249 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4250 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4252 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4253 | else |
81ecdfbb RW |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4255 | $as_echo "no" >&6; } | |
cac3d6c4 | 4256 | fi |
376a0e54 | 4257 | |
81ecdfbb | 4258 | |
c6b750e1 DJ |
4259 | test -n "$ac_ct_CC" && break |
4260 | done | |
4261 | ||
81ecdfbb RW |
4262 | if test "x$ac_ct_CC" = x; then |
4263 | CC="" | |
4264 | else | |
4265 | case $cross_compiling:$ac_tool_warned in | |
4266 | yes:) | |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4269 | ac_tool_warned=yes ;; | |
4270 | esac | |
4271 | CC=$ac_ct_CC | |
4272 | fi | |
c6b750e1 DJ |
4273 | fi |
4274 | ||
4275 | fi | |
4276 | ||
4277 | ||
81ecdfbb RW |
4278 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4279 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4280 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4281 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4282 | |
4283 | # Provide some information about the compiler. | |
81ecdfbb RW |
4284 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4285 | set X $ac_compile | |
4286 | ac_compiler=$2 | |
4287 | for ac_option in --version -v -V -qversion; do | |
4288 | { { ac_try="$ac_compiler $ac_option >&5" | |
4289 | case "(($ac_try" in | |
4290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4291 | *) ac_try_echo=$ac_try;; | |
4292 | esac | |
4293 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4294 | $as_echo "$ac_try_echo"; } >&5 | |
4295 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4296 | ac_status=$? |
81ecdfbb RW |
4297 | if test -s conftest.err; then |
4298 | sed '10a\ | |
4299 | ... rest of stderr output deleted ... | |
4300 | 10q' conftest.err >conftest.er1 | |
4301 | cat conftest.er1 >&5 | |
81ecdfbb | 4302 | fi |
d0ac1c44 | 4303 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4305 | test $ac_status = 0; } | |
4306 | done | |
c6b750e1 | 4307 | |
81ecdfbb | 4308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4309 | /* end confdefs.h. */ |
4310 | ||
4311 | int | |
4312 | main () | |
4313 | { | |
4314 | ||
4315 | ; | |
4316 | return 0; | |
4317 | } | |
4318 | _ACEOF | |
4319 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4320 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4321 | # Try to create an executable without -o first, disregard a.out. |
4322 | # It will help us diagnose broken compilers, and finding out an intuition | |
4323 | # of exeext. | |
d0ac1c44 SM |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4325 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4326 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4327 | ||
4328 | # The possible output files: | |
4329 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4330 | ||
4331 | ac_rmfiles= | |
4332 | for ac_file in $ac_files | |
4333 | do | |
4334 | case $ac_file in | |
4335 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4336 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4337 | esac | |
4338 | done | |
4339 | rm -f $ac_rmfiles | |
4340 | ||
4341 | if { { ac_try="$ac_link_default" | |
4342 | case "(($ac_try" in | |
4343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4344 | *) ac_try_echo=$ac_try;; | |
4345 | esac | |
4346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4347 | $as_echo "$ac_try_echo"; } >&5 | |
4348 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4349 | ac_status=$? |
81ecdfbb RW |
4350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4351 | test $ac_status = 0; }; then : | |
4352 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4353 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4354 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4355 | # so that the user can short-circuit this test for compilers unknown to | |
4356 | # Autoconf. | |
4357 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4358 | do |
4359 | test -f "$ac_file" || continue | |
4360 | case $ac_file in | |
81ecdfbb | 4361 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4362 | ;; |
4363 | [ab].out ) | |
4364 | # We found the default executable, but exeext='' is most | |
4365 | # certainly right. | |
4366 | break;; | |
4367 | *.* ) | |
81ecdfbb RW |
4368 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4369 | then :; else | |
4370 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4371 | fi | |
4372 | # We set ac_cv_exeext here because the later test for it is not | |
4373 | # safe: cross compilers may not add the suffix if given an `-o' | |
4374 | # argument, so we may need to know it at that point already. | |
4375 | # Even if this section looks crufty: it has the advantage of | |
4376 | # actually working. | |
c6b750e1 DJ |
4377 | break;; |
4378 | * ) | |
4379 | break;; | |
4380 | esac | |
4381 | done | |
81ecdfbb RW |
4382 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4383 | ||
c6b750e1 | 4384 | else |
81ecdfbb RW |
4385 | ac_file='' |
4386 | fi | |
81ecdfbb | 4387 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4389 | $as_echo "no" >&6; } | |
4390 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4391 | sed 's/^/| /' conftest.$ac_ext >&5 |
4392 | ||
81ecdfbb RW |
4393 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4395 | as_fn_error 77 "C compiler cannot create executables |
4396 | See \`config.log' for more details" "$LINENO" 5; } | |
4397 | else | |
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4399 | $as_echo "yes" >&6; } | |
c6b750e1 | 4400 | fi |
d0ac1c44 SM |
4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4402 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4404 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4405 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4406 | |
d0ac1c44 | 4407 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4408 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4410 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4411 | if { { ac_try="$ac_link" | |
4412 | case "(($ac_try" in | |
4413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4414 | *) ac_try_echo=$ac_try;; | |
4415 | esac | |
4416 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4417 | $as_echo "$ac_try_echo"; } >&5 | |
4418 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4419 | ac_status=$? |
81ecdfbb RW |
4420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4421 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4422 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4423 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4424 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4425 | # `rm'. | |
4426 | for ac_file in conftest.exe conftest conftest.*; do | |
4427 | test -f "$ac_file" || continue | |
4428 | case $ac_file in | |
81ecdfbb | 4429 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4430 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4431 | break;; |
4432 | * ) break;; | |
4433 | esac | |
4434 | done | |
4435 | else | |
81ecdfbb RW |
4436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4437 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4438 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4439 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4440 | fi |
d0ac1c44 | 4441 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4443 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4444 | |
4445 | rm -f conftest.$ac_ext | |
4446 | EXEEXT=$ac_cv_exeext | |
4447 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4449 | /* end confdefs.h. */ | |
4450 | #include <stdio.h> | |
4451 | int | |
4452 | main () | |
4453 | { | |
4454 | FILE *f = fopen ("conftest.out", "w"); | |
4455 | return ferror (f) || fclose (f) != 0; | |
4456 | ||
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
4461 | ac_clean_files="$ac_clean_files conftest.out" | |
4462 | # Check that the compiler produces executables we can run. If not, either | |
4463 | # the compiler is broken, or we cross compile. | |
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4465 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4466 | if test "$cross_compiling" != yes; then | |
4467 | { { ac_try="$ac_link" | |
4468 | case "(($ac_try" in | |
4469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4470 | *) ac_try_echo=$ac_try;; | |
4471 | esac | |
4472 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4473 | $as_echo "$ac_try_echo"; } >&5 | |
4474 | (eval "$ac_link") 2>&5 | |
4475 | ac_status=$? | |
4476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4477 | test $ac_status = 0; } | |
4478 | if { ac_try='./conftest$ac_cv_exeext' | |
4479 | { { case "(($ac_try" in | |
4480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4481 | *) ac_try_echo=$ac_try;; | |
4482 | esac | |
4483 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4484 | $as_echo "$ac_try_echo"; } >&5 | |
4485 | (eval "$ac_try") 2>&5 | |
4486 | ac_status=$? | |
4487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4488 | test $ac_status = 0; }; }; then | |
4489 | cross_compiling=no | |
4490 | else | |
4491 | if test "$cross_compiling" = maybe; then | |
4492 | cross_compiling=yes | |
4493 | else | |
4494 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4495 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4496 | as_fn_error $? "cannot run C compiled programs. | |
4497 | If you meant to cross compile, use \`--host'. | |
4498 | See \`config.log' for more details" "$LINENO" 5; } | |
4499 | fi | |
4500 | fi | |
4501 | fi | |
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4503 | $as_echo "$cross_compiling" >&6; } | |
4504 | ||
4505 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4506 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4508 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4509 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4510 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4511 | else |
81ecdfbb | 4512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4513 | /* end confdefs.h. */ |
4514 | ||
4515 | int | |
4516 | main () | |
4517 | { | |
4518 | ||
4519 | ; | |
4520 | return 0; | |
4521 | } | |
4522 | _ACEOF | |
4523 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4524 | if { { ac_try="$ac_compile" |
4525 | case "(($ac_try" in | |
4526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4527 | *) ac_try_echo=$ac_try;; | |
4528 | esac | |
4529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4530 | $as_echo "$ac_try_echo"; } >&5 | |
4531 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4532 | ac_status=$? |
81ecdfbb RW |
4533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4534 | test $ac_status = 0; }; then : | |
4535 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4536 | test -f "$ac_file" || continue; | |
c6b750e1 | 4537 | case $ac_file in |
81ecdfbb | 4538 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4539 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4540 | break;; | |
4541 | esac | |
4542 | done | |
cac3d6c4 | 4543 | else |
81ecdfbb | 4544 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4545 | sed 's/^/| /' conftest.$ac_ext >&5 |
4546 | ||
81ecdfbb RW |
4547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4549 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4550 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4551 | fi |
c6b750e1 DJ |
4552 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4553 | fi | |
81ecdfbb RW |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4555 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4556 | OBJEXT=$ac_cv_objext |
4557 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4559 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4560 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4561 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4562 | else |
81ecdfbb | 4563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4564 | /* end confdefs.h. */ |
4565 | ||
4566 | int | |
4567 | main () | |
4568 | { | |
4569 | #ifndef __GNUC__ | |
4570 | choke me | |
4571 | #endif | |
4572 | ||
4573 | ; | |
4574 | return 0; | |
4575 | } | |
4576 | _ACEOF | |
81ecdfbb | 4577 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4578 | ac_compiler_gnu=yes |
4579 | else | |
81ecdfbb | 4580 | ac_compiler_gnu=no |
c6b750e1 | 4581 | fi |
81ecdfbb | 4582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4583 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4584 | ||
4585 | fi | |
81ecdfbb RW |
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4587 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4588 | if test $ac_compiler_gnu = yes; then | |
4589 | GCC=yes | |
4590 | else | |
4591 | GCC= | |
4592 | fi | |
c6b750e1 DJ |
4593 | ac_test_CFLAGS=${CFLAGS+set} |
4594 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4596 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4597 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4598 | $as_echo_n "(cached) " >&6 |
4599 | else | |
4600 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4601 | ac_c_werror_flag=yes | |
4602 | ac_cv_prog_cc_g=no | |
4603 | CFLAGS="-g" | |
4604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4605 | /* end confdefs.h. */ |
4606 | ||
4607 | int | |
4608 | main () | |
4609 | { | |
4610 | ||
4611 | ; | |
4612 | return 0; | |
4613 | } | |
4614 | _ACEOF | |
81ecdfbb | 4615 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4616 | ac_cv_prog_cc_g=yes |
4617 | else | |
81ecdfbb RW |
4618 | CFLAGS="" |
4619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4620 | /* end confdefs.h. */ | |
4621 | ||
4622 | int | |
4623 | main () | |
4624 | { | |
4625 | ||
4626 | ; | |
4627 | return 0; | |
4628 | } | |
4629 | _ACEOF | |
4630 | if ac_fn_c_try_compile "$LINENO"; then : | |
4631 | ||
4632 | else | |
4633 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4634 | CFLAGS="-g" | |
4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4636 | /* end confdefs.h. */ | |
cac3d6c4 | 4637 | |
81ecdfbb RW |
4638 | int |
4639 | main () | |
4640 | { | |
4641 | ||
4642 | ; | |
4643 | return 0; | |
4644 | } | |
4645 | _ACEOF | |
4646 | if ac_fn_c_try_compile "$LINENO"; then : | |
4647 | ac_cv_prog_cc_g=yes | |
4648 | fi | |
4649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4650 | fi |
81ecdfbb | 4651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4652 | fi |
81ecdfbb RW |
4653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4654 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4655 | fi | |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4657 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4658 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4659 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4660 | elif test $ac_cv_prog_cc_g = yes; then |
4661 | if test "$GCC" = yes; then | |
4662 | CFLAGS="-g -O2" | |
4663 | else | |
4664 | CFLAGS="-g" | |
4665 | fi | |
4666 | else | |
4667 | if test "$GCC" = yes; then | |
4668 | CFLAGS="-O2" | |
4669 | else | |
4670 | CFLAGS= | |
4671 | fi | |
4672 | fi | |
81ecdfbb RW |
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4674 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4675 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4676 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4677 | else |
81ecdfbb | 4678 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4679 | ac_save_CC=$CC |
81ecdfbb | 4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4681 | /* end confdefs.h. */ |
4682 | #include <stdarg.h> | |
4683 | #include <stdio.h> | |
d0ac1c44 | 4684 | struct stat; |
c6b750e1 DJ |
4685 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4686 | struct buf { int x; }; | |
4687 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4688 | static char *e (p, i) | |
4689 | char **p; | |
4690 | int i; | |
4691 | { | |
4692 | return p[i]; | |
4693 | } | |
4694 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4695 | { | |
4696 | char *s; | |
4697 | va_list v; | |
4698 | va_start (v,p); | |
4699 | s = g (p, va_arg (v,int)); | |
4700 | va_end (v); | |
4701 | return s; | |
4702 | } | |
4703 | ||
4704 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4705 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4706 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4707 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4708 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4709 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4710 | that's true only with -std. */ |
c6b750e1 DJ |
4711 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4712 | ||
81ecdfbb RW |
4713 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4714 | inside strings and character constants. */ | |
4715 | #define FOO(x) 'x' | |
4716 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4717 | ||
c6b750e1 DJ |
4718 | int test (int i, double x); |
4719 | struct s1 {int (*f) (int a);}; | |
4720 | struct s2 {int (*f) (double a);}; | |
4721 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4722 | int argc; | |
4723 | char **argv; | |
4724 | int | |
4725 | main () | |
4726 | { | |
4727 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4728 | ; | |
4729 | return 0; | |
4730 | } | |
4731 | _ACEOF | |
81ecdfbb RW |
4732 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4733 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4734 | do |
4735 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4736 | if ac_fn_c_try_compile "$LINENO"; then : |
4737 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4738 | fi |
81ecdfbb RW |
4739 | rm -f core conftest.err conftest.$ac_objext |
4740 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4741 | done |
81ecdfbb | 4742 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4743 | CC=$ac_save_CC |
4744 | ||
4745 | fi | |
81ecdfbb RW |
4746 | # AC_CACHE_VAL |
4747 | case "x$ac_cv_prog_cc_c89" in | |
4748 | x) | |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4750 | $as_echo "none needed" >&6; } ;; | |
4751 | xno) | |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4753 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4754 | *) |
81ecdfbb RW |
4755 | CC="$CC $ac_cv_prog_cc_c89" |
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4757 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4758 | esac |
81ecdfbb | 4759 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4760 | |
c6b750e1 DJ |
4761 | fi |
4762 | ||
c6b750e1 DJ |
4763 | ac_ext=c |
4764 | ac_cpp='$CPP $CPPFLAGS' | |
4765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4768 | |
81ecdfbb | 4769 | ac_ext=cpp |
18f6b6ee PB |
4770 | ac_cpp='$CXXCPP $CPPFLAGS' |
4771 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4772 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4773 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4774 | if test -z "$CXX"; then |
4775 | if test -n "$CCC"; then | |
4776 | CXX=$CCC | |
4777 | else | |
4778 | if test -n "$ac_tool_prefix"; then | |
4779 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4780 | do |
4781 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4782 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4784 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4785 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 4786 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4787 | else |
4788 | if test -n "$CXX"; then | |
4789 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4790 | else | |
4791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4792 | for as_dir in $PATH | |
4793 | do | |
4794 | IFS=$as_save_IFS | |
4795 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4796 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4798 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4800 | break 2 |
4801 | fi | |
4802 | done | |
81ecdfbb RW |
4803 | done |
4804 | IFS=$as_save_IFS | |
512b7dfb | 4805 | |
18f6b6ee PB |
4806 | fi |
4807 | fi | |
4808 | CXX=$ac_cv_prog_CXX | |
4809 | if test -n "$CXX"; then | |
81ecdfbb RW |
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4811 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4812 | else |
81ecdfbb RW |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4814 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4815 | fi |
4816 | ||
81ecdfbb | 4817 | |
18f6b6ee PB |
4818 | test -n "$CXX" && break |
4819 | done | |
4820 | fi | |
4821 | if test -z "$CXX"; then | |
4822 | ac_ct_CXX=$CXX | |
81ecdfbb | 4823 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4824 | do |
4825 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4826 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4828 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4829 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 4830 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
4831 | else |
4832 | if test -n "$ac_ct_CXX"; then | |
4833 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4834 | else | |
4835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4836 | for as_dir in $PATH | |
4837 | do | |
4838 | IFS=$as_save_IFS | |
4839 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4840 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4841 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 4842 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4844 | break 2 |
512b7dfb | 4845 | fi |
18f6b6ee | 4846 | done |
81ecdfbb RW |
4847 | done |
4848 | IFS=$as_save_IFS | |
512b7dfb | 4849 | |
18f6b6ee PB |
4850 | fi |
4851 | fi | |
4852 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4853 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4855 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4856 | else |
81ecdfbb RW |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4858 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4859 | fi |
4860 | ||
81ecdfbb | 4861 | |
18f6b6ee PB |
4862 | test -n "$ac_ct_CXX" && break |
4863 | done | |
18f6b6ee | 4864 | |
81ecdfbb RW |
4865 | if test "x$ac_ct_CXX" = x; then |
4866 | CXX="g++" | |
4867 | else | |
4868 | case $cross_compiling:$ac_tool_warned in | |
4869 | yes:) | |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4871 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4872 | ac_tool_warned=yes ;; | |
4873 | esac | |
4874 | CXX=$ac_ct_CXX | |
4875 | fi | |
18f6b6ee PB |
4876 | fi |
4877 | ||
81ecdfbb RW |
4878 | fi |
4879 | fi | |
18f6b6ee | 4880 | # Provide some information about the compiler. |
81ecdfbb RW |
4881 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4882 | set X $ac_compile | |
4883 | ac_compiler=$2 | |
4884 | for ac_option in --version -v -V -qversion; do | |
4885 | { { ac_try="$ac_compiler $ac_option >&5" | |
4886 | case "(($ac_try" in | |
4887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4888 | *) ac_try_echo=$ac_try;; | |
4889 | esac | |
4890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4891 | $as_echo "$ac_try_echo"; } >&5 | |
4892 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4893 | ac_status=$? |
81ecdfbb RW |
4894 | if test -s conftest.err; then |
4895 | sed '10a\ | |
4896 | ... rest of stderr output deleted ... | |
4897 | 10q' conftest.err >conftest.er1 | |
4898 | cat conftest.er1 >&5 | |
81ecdfbb | 4899 | fi |
d0ac1c44 | 4900 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4902 | test $ac_status = 0; } | |
4903 | done | |
18f6b6ee | 4904 | |
81ecdfbb RW |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4906 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 4907 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 4908 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 4909 | else |
81ecdfbb | 4910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4911 | /* end confdefs.h. */ |
4912 | ||
4913 | int | |
4914 | main () | |
4915 | { | |
4916 | #ifndef __GNUC__ | |
4917 | choke me | |
4918 | #endif | |
4919 | ||
4920 | ; | |
4921 | return 0; | |
4922 | } | |
4923 | _ACEOF | |
81ecdfbb | 4924 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4925 | ac_compiler_gnu=yes |
4926 | else | |
81ecdfbb | 4927 | ac_compiler_gnu=no |
18f6b6ee | 4928 | fi |
81ecdfbb | 4929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4930 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4931 | ||
4932 | fi | |
81ecdfbb RW |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4934 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4935 | if test $ac_compiler_gnu = yes; then | |
4936 | GXX=yes | |
4937 | else | |
4938 | GXX= | |
4939 | fi | |
18f6b6ee PB |
4940 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4941 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4943 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 4944 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
4945 | $as_echo_n "(cached) " >&6 |
4946 | else | |
4947 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4948 | ac_cxx_werror_flag=yes | |
4949 | ac_cv_prog_cxx_g=no | |
4950 | CXXFLAGS="-g" | |
4951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4952 | /* end confdefs.h. */ |
4953 | ||
4954 | int | |
4955 | main () | |
4956 | { | |
4957 | ||
4958 | ; | |
4959 | return 0; | |
4960 | } | |
4961 | _ACEOF | |
81ecdfbb | 4962 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4963 | ac_cv_prog_cxx_g=yes |
4964 | else | |
81ecdfbb RW |
4965 | CXXFLAGS="" |
4966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4967 | /* end confdefs.h. */ |
81ecdfbb | 4968 | |
18f6b6ee PB |
4969 | int |
4970 | main () | |
4971 | { | |
81ecdfbb | 4972 | |
18f6b6ee PB |
4973 | ; |
4974 | return 0; | |
4975 | } | |
4976 | _ACEOF | |
81ecdfbb | 4977 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4978 | |
81ecdfbb RW |
4979 | else |
4980 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4981 | CXXFLAGS="-g" | |
4982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4983 | /* end confdefs.h. */ |
81ecdfbb | 4984 | |
18f6b6ee PB |
4985 | int |
4986 | main () | |
4987 | { | |
81ecdfbb | 4988 | |
18f6b6ee PB |
4989 | ; |
4990 | return 0; | |
4991 | } | |
4992 | _ACEOF | |
81ecdfbb RW |
4993 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4994 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4995 | fi |
81ecdfbb RW |
4996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4997 | fi | |
4998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4999 | fi | |
5000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5001 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5002 | fi | |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5004 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5005 | if test "$ac_test_CXXFLAGS" = set; then | |
5006 | CXXFLAGS=$ac_save_CXXFLAGS | |
5007 | elif test $ac_cv_prog_cxx_g = yes; then | |
5008 | if test "$GXX" = yes; then | |
5009 | CXXFLAGS="-g -O2" | |
5010 | else | |
5011 | CXXFLAGS="-g" | |
5012 | fi | |
5013 | else | |
5014 | if test "$GXX" = yes; then | |
5015 | CXXFLAGS="-O2" | |
5016 | else | |
5017 | CXXFLAGS= | |
5018 | fi | |
18f6b6ee | 5019 | fi |
18f6b6ee PB |
5020 | ac_ext=c |
5021 | ac_cpp='$CPP $CPPFLAGS' | |
5022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5025 | ||
5026 | ||
5027 | # We must set the default linker to the linker used by gcc for the correct | |
5028 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5029 | # set the LD default to the ld used by gcc. | |
5030 | if test -z "$LD"; then | |
5031 | if test "$GCC" = yes; then | |
5032 | case $build in | |
5033 | *-*-mingw*) | |
5034 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5035 | *) | |
5036 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5037 | esac | |
5038 | case $gcc_prog_ld in | |
5039 | # Accept absolute paths. | |
5040 | [\\/]* | [A-Za-z]:[\\/]*) | |
5041 | LD="$gcc_prog_ld" ;; | |
5042 | esac | |
5043 | fi | |
512b7dfb PB |
5044 | fi |
5045 | ||
b3676d82 EB |
5046 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5047 | have_static_libs=no | |
5048 | if test "$GCC" = yes; then | |
5049 | saved_LDFLAGS="$LDFLAGS" | |
5050 | ||
5051 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5053 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5054 | ac_ext=cpp | |
5055 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5056 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5057 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5058 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5059 | ||
5060 | ||
5061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5062 | /* end confdefs.h. */ | |
a882be68 EB |
5063 | |
5064 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5065 | #error -static-libstdc++ not implemented | |
5066 | #endif | |
b3676d82 EB |
5067 | int main() {} |
5068 | _ACEOF | |
5069 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5071 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5072 | else | |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5074 | $as_echo "no" >&6; } | |
5075 | fi | |
5076 | rm -f core conftest.err conftest.$ac_objext \ | |
5077 | conftest$ac_exeext conftest.$ac_ext | |
5078 | ac_ext=c | |
5079 | ac_cpp='$CPP $CPPFLAGS' | |
5080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5083 | ||
5084 | ||
5085 | LDFLAGS="$saved_LDFLAGS" | |
5086 | fi | |
5087 | ||
512b7dfb PB |
5088 | |
5089 | ||
5090 | ||
c6b750e1 | 5091 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5092 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5093 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5095 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5096 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5097 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5098 | else |
512b7dfb PB |
5099 | if test -n "$GNATBIND"; then |
5100 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5101 | else |
c6b750e1 DJ |
5102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5103 | for as_dir in $PATH | |
5104 | do | |
5105 | IFS=$as_save_IFS | |
5106 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5107 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5109 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5111 | break 2 |
5112 | fi | |
5113 | done | |
81ecdfbb RW |
5114 | done |
5115 | IFS=$as_save_IFS | |
c6b750e1 | 5116 | |
9e07f89d NN |
5117 | fi |
5118 | fi | |
512b7dfb PB |
5119 | GNATBIND=$ac_cv_prog_GNATBIND |
5120 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5122 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5123 | else |
81ecdfbb RW |
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5125 | $as_echo "no" >&6; } | |
9e07f89d NN |
5126 | fi |
5127 | ||
81ecdfbb | 5128 | |
c6b750e1 | 5129 | fi |
512b7dfb PB |
5130 | if test -z "$ac_cv_prog_GNATBIND"; then |
5131 | ac_ct_GNATBIND=$GNATBIND | |
5132 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5133 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5135 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5136 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5137 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5138 | else |
512b7dfb PB |
5139 | if test -n "$ac_ct_GNATBIND"; then |
5140 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5141 | else |
c6b750e1 DJ |
5142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5143 | for as_dir in $PATH | |
5144 | do | |
5145 | IFS=$as_save_IFS | |
5146 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5147 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5148 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5149 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5151 | break 2 |
5152 | fi | |
5153 | done | |
81ecdfbb RW |
5154 | done |
5155 | IFS=$as_save_IFS | |
c6b750e1 | 5156 | |
9e07f89d NN |
5157 | fi |
5158 | fi | |
512b7dfb PB |
5159 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5160 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5162 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5163 | else |
81ecdfbb RW |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5165 | $as_echo "no" >&6; } | |
9e07f89d NN |
5166 | fi |
5167 | ||
81ecdfbb RW |
5168 | if test "x$ac_ct_GNATBIND" = x; then |
5169 | GNATBIND="no" | |
5170 | else | |
5171 | case $cross_compiling:$ac_tool_warned in | |
5172 | yes:) | |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5174 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5175 | ac_tool_warned=yes ;; | |
5176 | esac | |
5177 | GNATBIND=$ac_ct_GNATBIND | |
5178 | fi | |
24ff9987 | 5179 | else |
512b7dfb | 5180 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5181 | fi |
5182 | ||
7df2cd5d | 5183 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5184 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5185 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5187 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5188 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5189 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5190 | else |
512b7dfb PB |
5191 | if test -n "$GNATMAKE"; then |
5192 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5193 | else |
5194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5195 | for as_dir in $PATH | |
5196 | do | |
5197 | IFS=$as_save_IFS | |
5198 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5199 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5200 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5201 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5203 | break 2 |
5204 | fi | |
5205 | done | |
81ecdfbb RW |
5206 | done |
5207 | IFS=$as_save_IFS | |
7df2cd5d PB |
5208 | |
5209 | fi | |
5210 | fi | |
512b7dfb PB |
5211 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5212 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5214 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5215 | else |
81ecdfbb RW |
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5217 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5218 | fi |
5219 | ||
81ecdfbb | 5220 | |
7df2cd5d | 5221 | fi |
512b7dfb PB |
5222 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5223 | ac_ct_GNATMAKE=$GNATMAKE | |
5224 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5225 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5227 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5228 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5229 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5230 | else |
512b7dfb PB |
5231 | if test -n "$ac_ct_GNATMAKE"; then |
5232 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5233 | else |
5234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5235 | for as_dir in $PATH | |
5236 | do | |
5237 | IFS=$as_save_IFS | |
5238 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5239 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5241 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5243 | break 2 |
5244 | fi | |
5245 | done | |
81ecdfbb RW |
5246 | done |
5247 | IFS=$as_save_IFS | |
7df2cd5d | 5248 | |
7df2cd5d PB |
5249 | fi |
5250 | fi | |
512b7dfb PB |
5251 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5252 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5254 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5255 | else |
81ecdfbb RW |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5257 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5258 | fi |
5259 | ||
81ecdfbb RW |
5260 | if test "x$ac_ct_GNATMAKE" = x; then |
5261 | GNATMAKE="no" | |
5262 | else | |
5263 | case $cross_compiling:$ac_tool_warned in | |
5264 | yes:) | |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5266 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5267 | ac_tool_warned=yes ;; | |
5268 | esac | |
5269 | GNATMAKE=$ac_ct_GNATMAKE | |
5270 | fi | |
7df2cd5d | 5271 | else |
512b7dfb | 5272 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5273 | fi |
5274 | ||
81ecdfbb RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5276 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
d0ac1c44 | 5277 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5278 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5279 | else |
5280 | cat >conftest.adb <<EOF | |
5281 | procedure conftest is begin null; end conftest; | |
5282 | EOF | |
5283 | acx_cv_cc_gcc_supports_ada=no | |
5284 | # There is a bug in old released versions of GCC which causes the | |
5285 | # driver to exit successfully when the appropriate language module | |
5286 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5287 | # Therefore we must check for the error message as well as an | |
5288 | # unsuccessful exit. | |
b8908782 DD |
5289 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5290 | # given a .adb file, but produce no object file. So we must check | |
5291 | # if an object file was really produced to guard against this. | |
9e07f89d | 5292 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5293 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5294 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5295 | fi |
5296 | rm -f conftest.* | |
5297 | fi | |
81ecdfbb RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5299 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5300 | |
64b986c0 | 5301 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5302 | have_gnat=yes |
5303 | else | |
5304 | have_gnat=no | |
5305 | fi | |
5306 | ||
81ecdfbb RW |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5308 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5309 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5310 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5311 | else |
5312 | echo abfoo >t1 | |
5313 | echo cdfoo >t2 | |
da17fe9d | 5314 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5315 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5316 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5317 | : | |
5318 | else | |
5319 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5320 | fi | |
5321 | fi | |
b8908782 DD |
5322 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5323 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5324 | : |
b8908782 DD |
5325 | else |
5326 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5327 | fi | |
5328 | fi | |
5329 | rm t1 t2 | |
5330 | ||
5331 | fi | |
81ecdfbb RW |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5333 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5334 | do_compare="$gcc_cv_prog_cmp_skip" |
5335 | ||
5336 | ||
9e07f89d | 5337 | |
ffdd6afc ILT |
5338 | # Check whether --enable-bootstrap was given. |
5339 | if test "${enable_bootstrap+set}" = set; then : | |
5340 | enableval=$enable_bootstrap; | |
5341 | else | |
5342 | enable_bootstrap=default | |
5343 | fi | |
5344 | ||
5345 | ||
5346 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5347 | if test -r $srcdir/gcc/configure; then | |
5348 | have_compiler=yes | |
5349 | else | |
5350 | have_compiler=no | |
5351 | fi | |
5352 | ||
5353 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5354 | *:*:*:no) ;; | |
5355 | ||
5356 | # Default behavior. Enable bootstrap if we have a compiler | |
5357 | # and we are in a native configuration. | |
5358 | yes:$build:$build:default) | |
5359 | enable_bootstrap=yes ;; | |
5360 | ||
5361 | *:*:*:default) | |
5362 | enable_bootstrap=no ;; | |
5363 | ||
5364 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5365 | yes:$build:$build:yes) | |
5366 | ;; | |
5367 | ||
5368 | # Other configurations, but we have a compiler. Assume the user knows | |
5369 | # what he's doing. | |
5370 | yes:*:*:yes) | |
5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5372 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5373 | ;; | |
5374 | ||
5375 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5376 | no:*:*:yes) | |
d0ac1c44 | 5377 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5378 | |
5379 | # Fail if wrong command line | |
5380 | *) | |
d0ac1c44 | 5381 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5382 | ;; |
5383 | esac | |
5384 | ||
ce6c656d L |
5385 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5386 | # C++98 compiler can still start the bootstrap. | |
5387 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5388 | CXX="$CXX -std=gnu++98" | |
5389 | fi | |
5390 | ||
d5f2ee2e KG |
5391 | # Used for setting $lt_cv_objdir |
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5393 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 5394 | if ${lt_cv_objdir+:} false; then : |
d5f2ee2e KG |
5395 | $as_echo_n "(cached) " >&6 |
5396 | else | |
5397 | rm -f .libs 2>/dev/null | |
5398 | mkdir .libs 2>/dev/null | |
5399 | if test -d .libs; then | |
5400 | lt_cv_objdir=.libs | |
5401 | else | |
5402 | # MS-DOS does not allow filenames that begin with a dot. | |
5403 | lt_cv_objdir=_libs | |
5404 | fi | |
5405 | rmdir .libs 2>/dev/null | |
5406 | fi | |
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5408 | $as_echo "$lt_cv_objdir" >&6; } | |
5409 | objdir=$lt_cv_objdir | |
5410 | ||
5411 | ||
5412 | ||
5413 | ||
5414 | ||
5415 | cat >>confdefs.h <<_ACEOF | |
5416 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5417 | _ACEOF | |
5418 | ||
5419 | ||
5420 | ||
e8a5fa9c | 5421 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5422 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5423 | gmpinc= |
4b900473 | 5424 | have_gmp=no |
e8a5fa9c RW |
5425 | |
5426 | # Specify a location for mpc | |
5427 | # check for this first so it ends up on the link line before mpfr. | |
5428 | ||
81ecdfbb RW |
5429 | # Check whether --with-mpc was given. |
5430 | if test "${with_mpc+set}" = set; then : | |
5431 | withval=$with_mpc; | |
5432 | fi | |
e8a5fa9c | 5433 | |
e8a5fa9c | 5434 | |
e552509b | 5435 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5436 | if test "${with_mpc_include+set}" = set; then : |
5437 | withval=$with_mpc_include; | |
5438 | fi | |
e8a5fa9c | 5439 | |
e8a5fa9c | 5440 | |
e552509b | 5441 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5442 | if test "${with_mpc_lib+set}" = set; then : |
5443 | withval=$with_mpc_lib; | |
5444 | fi | |
e8a5fa9c | 5445 | |
e8a5fa9c RW |
5446 | |
5447 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5448 | gmplibs="-L$with_mpc/lib $gmplibs" |
5449 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5450 | fi |
5451 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5452 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5453 | fi |
5454 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5455 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5456 | fi |
5457 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5458 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5459 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5460 | # Do not test the mpc version. Assume that it is sufficient, since |
5461 | # it is in the source tree, and the library has not been built yet | |
5462 | # but it would be included on the link line in the version check below | |
5463 | # hence making the test fail. | |
d9b76ff9 | 5464 | have_gmp=yes |
e8a5fa9c | 5465 | fi |
4b900473 | 5466 | |
11b04d1f DD |
5467 | # Specify a location for mpfr |
5468 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5469 | |
81ecdfbb RW |
5470 | # Check whether --with-mpfr-dir was given. |
5471 | if test "${with_mpfr_dir+set}" = set; then : | |
d0ac1c44 | 5472 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
81ecdfbb RW |
5473 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5474 | fi | |
5475 | ||
11b04d1f DD |
5476 | |
5477 | ||
81ecdfbb RW |
5478 | # Check whether --with-mpfr was given. |
5479 | if test "${with_mpfr+set}" = set; then : | |
5480 | withval=$with_mpfr; | |
5481 | fi | |
c6b750e1 | 5482 | |
11b04d1f | 5483 | |
e552509b | 5484 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5485 | if test "${with_mpfr_include+set}" = set; then : |
5486 | withval=$with_mpfr_include; | |
5487 | fi | |
c6b750e1 | 5488 | |
8a0d8a5c | 5489 | |
e552509b | 5490 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5491 | if test "${with_mpfr_lib+set}" = set; then : |
5492 | withval=$with_mpfr_lib; | |
5493 | fi | |
8a0d8a5c | 5494 | |
11b04d1f DD |
5495 | |
5496 | if test "x$with_mpfr" != x; then | |
5497 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5498 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5499 | fi |
8a0d8a5c | 5500 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5501 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5502 | fi |
5503 | if test "x$with_mpfr_lib" != x; then | |
5504 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5505 | fi | |
4b900473 | 5506 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 5507 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 5508 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 5509 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 5510 | fi |
05a13254 NC |
5511 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5512 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5513 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
5514 | # Do not test the mpfr version. Assume that it is sufficient, since |
5515 | # it is in the source tree, and the library has not been built yet | |
5516 | # but it would be included on the link line in the version check below | |
5517 | # hence making the test fail. | |
5518 | have_gmp=yes | |
5519 | fi | |
11b04d1f | 5520 | |
4b1cb4fe | 5521 | # Specify a location for gmp |
c6b750e1 | 5522 | |
81ecdfbb RW |
5523 | # Check whether --with-gmp-dir was given. |
5524 | if test "${with_gmp_dir+set}" = set; then : | |
d0ac1c44 | 5525 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
81ecdfbb RW |
5526 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5527 | fi | |
5528 | ||
4b1cb4fe DD |
5529 | |
5530 | ||
81ecdfbb RW |
5531 | # Check whether --with-gmp was given. |
5532 | if test "${with_gmp+set}" = set; then : | |
5533 | withval=$with_gmp; | |
5534 | fi | |
c6b750e1 | 5535 | |
4b1cb4fe | 5536 | |
e552509b | 5537 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5538 | if test "${with_gmp_include+set}" = set; then : |
5539 | withval=$with_gmp_include; | |
5540 | fi | |
c6b750e1 | 5541 | |
8a0d8a5c | 5542 | |
e552509b | 5543 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5544 | if test "${with_gmp_lib+set}" = set; then : |
5545 | withval=$with_gmp_lib; | |
5546 | fi | |
8a0d8a5c PB |
5547 | |
5548 | ||
4b1cb4fe | 5549 | |
11b04d1f DD |
5550 | if test "x$with_gmp" != x; then |
5551 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5552 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5553 | fi |
8a0d8a5c PB |
5554 | if test "x$with_gmp_include" != x; then |
5555 | gmpinc="-I$with_gmp_include $gmpinc" | |
5556 | fi | |
5557 | if test "x$with_gmp_lib" != x; then | |
5558 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5559 | fi | |
4b900473 | 5560 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5561 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5562 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5563 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5564 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5565 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5566 | # Do not test the gmp version. Assume that it is sufficient, since |
5567 | # it is in the source tree, and the library has not been built yet | |
5568 | # but it would be included on the link line in the version check below | |
5569 | # hence making the test fail. | |
5570 | have_gmp=yes | |
5571 | fi | |
4b1cb4fe | 5572 | |
ceb92e78 | 5573 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5574 | have_gmp=yes |
5575 | saved_CFLAGS="$CFLAGS" | |
5576 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5577 | # Check for the recommended and required versions of GMP. |
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5579 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5580 | |
5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5582 | /* end confdefs.h. */ |
5583 | #include "gmp.h" | |
5584 | int | |
5585 | main () | |
5586 | { | |
5587 | ||
5588 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5589 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5590 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5591 | choke me |
5592 | #endif | |
5593 | ||
5594 | ; | |
5595 | return 0; | |
5596 | } | |
5597 | _ACEOF | |
5598 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5600 | /* end confdefs.h. */ |
a6b5846e | 5601 | #include <gmp.h> |
c6b750e1 DJ |
5602 | int |
5603 | main () | |
5604 | { | |
4b1cb4fe | 5605 | |
a6b5846e KG |
5606 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5607 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5608 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5609 | choke me |
5610 | #endif | |
c6b750e1 DJ |
5611 | |
5612 | ; | |
5613 | return 0; | |
5614 | } | |
5615 | _ACEOF | |
81ecdfbb RW |
5616 | if ac_fn_c_try_compile "$LINENO"; then : |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5618 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5619 | else |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5621 | $as_echo "buggy but acceptable" >&6; } | |
5622 | fi | |
5623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5624 | else |
81ecdfbb RW |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5626 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5627 | fi |
81ecdfbb | 5628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5629 | |
e8a5fa9c | 5630 | # If we have GMP, check the MPFR version. |
4b900473 | 5631 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5632 | # Check for the recommended and required versions of MPFR. |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5634 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5636 | /* end confdefs.h. */ |
9b134994 | 5637 | #include <gmp.h> |
4b900473 | 5638 | #include <mpfr.h> |
c6b750e1 DJ |
5639 | int |
5640 | main () | |
5641 | { | |
9b134994 | 5642 | |
7ec59b9e | 5643 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5644 | choke me |
5645 | #endif | |
c6b750e1 DJ |
5646 | |
5647 | ; | |
5648 | return 0; | |
5649 | } | |
5650 | _ACEOF | |
81ecdfbb RW |
5651 | if ac_fn_c_try_compile "$LINENO"; then : |
5652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5653 | /* end confdefs.h. */ |
4b1cb4fe | 5654 | #include <gmp.h> |
4b900473 | 5655 | #include <mpfr.h> |
c6b750e1 DJ |
5656 | int |
5657 | main () | |
5658 | { | |
9dbaa842 | 5659 | |
a6b5846e | 5660 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5661 | choke me |
5662 | #endif | |
e8a5fa9c RW |
5663 | |
5664 | ; | |
5665 | return 0; | |
5666 | } | |
5667 | _ACEOF | |
81ecdfbb RW |
5668 | if ac_fn_c_try_compile "$LINENO"; then : |
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5670 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5671 | else |
81ecdfbb RW |
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5673 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5674 | fi |
81ecdfbb | 5675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5676 | else |
81ecdfbb RW |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5678 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5679 | fi |
81ecdfbb | 5680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5681 | fi |
5682 | ||
5683 | # Check for the MPC header version. | |
d9b76ff9 | 5684 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5685 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5687 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5689 | /* end confdefs.h. */ |
5690 | #include <mpc.h> | |
5691 | int | |
5692 | main () | |
5693 | { | |
5694 | ||
a6b5846e KG |
5695 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5696 | choke me | |
5697 | #endif | |
5698 | ||
5699 | ; | |
5700 | return 0; | |
5701 | } | |
5702 | _ACEOF | |
5703 | if ac_fn_c_try_compile "$LINENO"; then : | |
5704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5705 | /* end confdefs.h. */ | |
5706 | #include <mpc.h> | |
5707 | int | |
5708 | main () | |
5709 | { | |
5710 | ||
5711 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5712 | choke me |
5713 | #endif | |
5714 | ||
5715 | ; | |
5716 | return 0; | |
5717 | } | |
5718 | _ACEOF | |
81ecdfbb RW |
5719 | if ac_fn_c_try_compile "$LINENO"; then : |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5721 | $as_echo "yes" >&6; } |
a6b5846e KG |
5722 | else |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5724 | $as_echo "buggy but acceptable" >&6; } | |
5725 | fi | |
5726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5727 | else |
81ecdfbb | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5729 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5730 | fi |
81ecdfbb | 5731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5732 | fi |
5733 | ||
5734 | # Now check the MPFR library. | |
5735 | if test x"$have_gmp" = xyes; then | |
5736 | saved_LIBS="$LIBS" | |
5737 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5739 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5741 | /* end confdefs.h. */ |
d9b76ff9 | 5742 | #include <mpc.h> |
e8a5fa9c RW |
5743 | int |
5744 | main () | |
5745 | { | |
5746 | ||
5747 | mpfr_t n; | |
5748 | mpfr_t x; | |
d9b76ff9 | 5749 | mpc_t c; |
e8a5fa9c RW |
5750 | int t; |
5751 | mpfr_init (n); | |
5752 | mpfr_init (x); | |
5753 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5754 | mpfr_erfc (n, x, GMP_RNDN); | |
5755 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5756 | mpfr_clear(n); |
5757 | mpfr_clear(x); | |
5758 | mpc_init2 (c, 53); | |
5759 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5760 | mpc_cosh (c, c, MPC_RNDNN); | |
5761 | mpc_pow (c, c, c, MPC_RNDNN); | |
5762 | mpc_acosh (c, c, MPC_RNDNN); | |
5763 | mpc_clear (c); | |
c6b750e1 DJ |
5764 | |
5765 | ; | |
5766 | return 0; | |
5767 | } | |
5768 | _ACEOF | |
81ecdfbb RW |
5769 | if ac_fn_c_try_link "$LINENO"; then : |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5771 | $as_echo "yes" >&6; } | |
c6b750e1 | 5772 | else |
81ecdfbb RW |
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5774 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5775 | fi |
81ecdfbb RW |
5776 | rm -f core conftest.err conftest.$ac_objext \ |
5777 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5778 | LIBS="$saved_LIBS" |
5779 | fi | |
5780 | ||
4b900473 | 5781 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5782 | |
a6b5846e KG |
5783 | # The library versions listed in the error message below should match |
5784 | # the HARD-minimums enforced above. | |
4b900473 | 5785 | if test x$have_gmp != xyes; then |
d0ac1c44 | 5786 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5787 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5788 | their locations. Source code for these libraries can be found at | |
5789 | their respective hosting sites as well as at | |
5790 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5791 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5792 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5793 | make sure that you have installed both the libraries and the header | |
5794 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5795 | fi |
9dbaa842 DD |
5796 | fi |
5797 | ||
e8a5fa9c RW |
5798 | # Flags needed for both GMP, MPFR and/or MPC. |
5799 | ||
5800 | ||
5801 | ||
4b1cb4fe DD |
5802 | |
5803 | ||
5804 | ||
7ec59b9e | 5805 | |
b3676d82 | 5806 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5807 | |
b3676d82 EB |
5808 | # Check whether --with-stage1-libs was given. |
5809 | if test "${with_stage1_libs+set}" = set; then : | |
5810 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5811 | stage1_libs= | |
e8a5fa9c | 5812 | else |
b3676d82 | 5813 | stage1_libs=$withval |
e8a5fa9c RW |
5814 | fi |
5815 | else | |
68996839 | 5816 | stage1_libs= |
81ecdfbb RW |
5817 | fi |
5818 | ||
e8a5fa9c RW |
5819 | |
5820 | ||
b3676d82 | 5821 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5822 | |
b3676d82 EB |
5823 | # Check whether --with-stage1-ldflags was given. |
5824 | if test "${with_stage1_ldflags+set}" = set; then : | |
5825 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5826 | stage1_ldflags= | |
e8a5fa9c | 5827 | else |
b3676d82 | 5828 | stage1_ldflags=$withval |
e8a5fa9c RW |
5829 | fi |
5830 | else | |
b3676d82 EB |
5831 | stage1_ldflags= |
5832 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5833 | # if supported. But if the user explicitly specified the libraries to use, | |
5834 | # trust that they are doing what they want. | |
5835 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5836 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5837 | fi | |
81ecdfbb RW |
5838 | fi |
5839 | ||
e8a5fa9c RW |
5840 | |
5841 | ||
68996839 | 5842 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5843 | |
81ecdfbb RW |
5844 | # Check whether --with-boot-libs was given. |
5845 | if test "${with_boot_libs+set}" = set; then : | |
5846 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5847 | poststage1_libs= |
5848 | else | |
5849 | poststage1_libs=$withval | |
5850 | fi | |
5851 | else | |
68996839 | 5852 | poststage1_libs= |
81ecdfbb RW |
5853 | fi |
5854 | ||
e8a5fa9c RW |
5855 | |
5856 | ||
143754cd NC |
5857 | # Linker flags to use for stage2 and later builds. |
5858 | ||
5859 | # Check whether --with-boot-ldflags was given. | |
5860 | if test "${with_boot_ldflags+set}" = set; then : | |
5861 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5862 | poststage1_ldflags= | |
5863 | else | |
5864 | poststage1_ldflags=$withval | |
5865 | fi | |
5866 | else | |
5867 | poststage1_ldflags= | |
4f11b223 ILT |
5868 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5869 | # statically. But if the user explicitly specified the libraries to | |
5870 | # use, trust that they are doing what they want. | |
5871 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5872 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5873 | fi | |
5874 | fi | |
5875 | ||
5876 | ||
5877 | ||
4849dfd8 | 5878 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5879 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5880 | |
5881 | ||
7ec59b9e L |
5882 | # Check whether --with-isl was given. |
5883 | if test "${with_isl+set}" = set; then : | |
5884 | withval=$with_isl; | |
81ecdfbb | 5885 | fi |
e28c595f | 5886 | |
e28c595f | 5887 | |
1b6c0831 | 5888 | # Treat --without-isl as a request to disable |
8e71395b | 5889 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5890 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5891 | # Check for isl |
8e71395b L |
5892 | |
5893 | ||
7ec59b9e L |
5894 | # Check whether --with-isl-include was given. |
5895 | if test "${with_isl_include+set}" = set; then : | |
5896 | withval=$with_isl_include; | |
81ecdfbb RW |
5897 | fi |
5898 | ||
e28c595f | 5899 | |
7ec59b9e L |
5900 | # Check whether --with-isl-lib was given. |
5901 | if test "${with_isl_lib+set}" = set; then : | |
5902 | withval=$with_isl_lib; | |
81ecdfbb | 5903 | fi |
e28c595f | 5904 | |
e28c595f | 5905 | |
7ec59b9e L |
5906 | # Check whether --enable-isl-version-check was given. |
5907 | if test "${enable_isl_version_check+set}" = set; then : | |
5908 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5909 | else | |
5910 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5911 | fi |
5912 | ||
5913 | ||
7ec59b9e L |
5914 | # Initialize isllibs and islinc. |
5915 | case $with_isl in | |
5916 | no) | |
5917 | isllibs= | |
5918 | islinc= | |
5919 | ;; | |
5920 | "" | yes) | |
5921 | ;; | |
5922 | *) | |
5923 | isllibs="-L$with_isl/lib" | |
5924 | islinc="-I$with_isl/include" | |
5925 | ;; | |
5926 | esac | |
5927 | if test "x${with_isl_include}" != x ; then | |
5928 | islinc="-I$with_isl_include" | |
5929 | fi | |
5930 | if test "x${with_isl_lib}" != x; then | |
5931 | isllibs="-L$with_isl_lib" | |
5932 | fi | |
5933 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5934 | && test -d ${srcdir}/isl; then | |
5935 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5936 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5937 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5939 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 5940 | fi |
b123da99 | 5941 | |
1b6c0831 | 5942 | isllibs="${isllibs} -lisl" |
b123da99 | 5943 | |
e28c595f | 5944 | |
b3fc79f8 JBG |
5945 | |
5946 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5947 | _isl_saved_CFLAGS=$CFLAGS | |
5948 | _isl_saved_LDFLAGS=$LDFLAGS | |
5949 | _isl_saved_LIBS=$LIBS | |
5950 | ||
5951 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
5952 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5953 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 5954 | |
bf41f30d NC |
5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
5956 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 5957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 5958 | /* end confdefs.h. */ |
bf41f30d | 5959 | #include <isl/schedule.h> |
b3fc79f8 JBG |
5960 | int |
5961 | main () | |
5962 | { | |
bf41f30d | 5963 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
5964 | ; |
5965 | return 0; | |
5966 | } | |
5967 | _ACEOF | |
1b6c0831 | 5968 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
5969 | gcc_cv_isl=yes |
5970 | else | |
5971 | gcc_cv_isl=no | |
5972 | fi | |
1b6c0831 L |
5973 | rm -f core conftest.err conftest.$ac_objext \ |
5974 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5976 | $as_echo "$gcc_cv_isl" >&6; } | |
5977 | ||
4849dfd8 | 5978 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
5980 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
5981 | fi |
5982 | ||
b3fc79f8 JBG |
5983 | CFLAGS=$_isl_saved_CFLAGS |
5984 | LDFLAGS=$_isl_saved_LDFLAGS | |
5985 | LIBS=$_isl_saved_LIBS | |
5986 | fi | |
5987 | ||
5988 | ||
e28c595f | 5989 | |
e28c595f | 5990 | |
7ec59b9e L |
5991 | |
5992 | ||
7ec59b9e L |
5993 | if test "x${with_isl}" = xno; then |
5994 | graphite_requested=no | |
5995 | elif test "x${with_isl}" != x \ | |
5996 | || test "x${with_isl_include}" != x \ | |
5997 | || test "x${with_isl_lib}" != x ; then | |
5998 | graphite_requested=yes | |
5999 | else | |
6000 | graphite_requested=no | |
b123da99 | 6001 | fi |
e28c595f | 6002 | |
e28c595f JM |
6003 | |
6004 | ||
7ec59b9e L |
6005 | if test "${gcc_cv_isl}" = no ; then |
6006 | isllibs= | |
6007 | islinc= | |
6008 | fi | |
e28c595f | 6009 | |
7ec59b9e L |
6010 | if test "${graphite_requested}" = yes \ |
6011 | && test "x${isllibs}" = x \ | |
6012 | && test "x${islinc}" = x ; then | |
e28c595f | 6013 | |
d0ac1c44 | 6014 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6015 | fi |
e552509b | 6016 | |
e28c595f | 6017 | |
e552509b ILT |
6018 | fi |
6019 | ||
4849dfd8 | 6020 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6021 | if test "x$with_isl" = xno || |
8e71395b | 6022 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6023 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6024 | islinc= |
7ec59b9e L |
6025 | fi |
6026 | ||
8e71395b L |
6027 | |
6028 | ||
6029 | ||
700d40ca ILT |
6030 | # Check for LTO support. |
6031 | # Check whether --enable-lto was given. | |
6032 | if test "${enable_lto+set}" = set; then : | |
6033 | enableval=$enable_lto; enable_lto=$enableval | |
6034 | else | |
6035 | enable_lto=yes; default_enable_lto=yes | |
6036 | fi | |
6037 | ||
6038 | ||
143754cd | 6039 | |
e49e5c92 DK |
6040 | |
6041 | ||
6042 | target_elf=no | |
6043 | case $target in | |
6044 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6045 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6046 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6047 | nvptx-*-none) | |
e49e5c92 DK |
6048 | target_elf=no |
6049 | ;; | |
6050 | *) | |
6051 | target_elf=yes | |
6052 | ;; | |
6053 | esac | |
6054 | ||
6055 | if test $target_elf = yes; then : | |
74cea91b DK |
6056 | # ELF platforms build the lto-plugin always. |
6057 | build_lto_plugin=yes | |
e49e5c92 | 6058 | |
e49e5c92 DK |
6059 | else |
6060 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6061 | case $target in |
bf41f30d | 6062 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6063 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6064 | *) enable_lto=no ;; |
6065 | esac | |
e49e5c92 | 6066 | else |
29821356 RW |
6067 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6068 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6069 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6070 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6071 | # -flto it won't be needed until after installation anyway. | |
6072 | case $target in | |
52cf9762 | 6073 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 6074 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 6075 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
6076 | fi |
6077 | ;; | |
6078 | esac | |
6079 | fi | |
a8eb3f0a | 6080 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6081 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6082 | case $target in |
74cea91b | 6083 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6084 | *) ;; |
6085 | esac | |
74cea91b | 6086 | |
e49e5c92 DK |
6087 | fi |
6088 | ||
700d40ca | 6089 | |
1b6c0831 L |
6090 | # Check whether --enable-linker-plugin-configure-flags was given. |
6091 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6092 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6093 | else | |
6094 | extra_linker_plugin_configure_flags= | |
6095 | fi | |
6096 | ||
6097 | ||
6098 | # Check whether --enable-linker-plugin-flags was given. | |
6099 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6100 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6101 | else | |
6102 | extra_linker_plugin_flags= | |
6103 | fi | |
6104 | ||
6105 | ||
6106 | ||
bf41f30d NC |
6107 | # Enable --enable-host-shared. |
6108 | # Checked early to determine whether jit is an 'all' language | |
6109 | # Check whether --enable-host-shared was given. | |
6110 | if test "${enable_host_shared+set}" = set; then : | |
6111 | enableval=$enable_host_shared; host_shared=$enableval | |
6112 | else | |
6113 | host_shared=no | |
6114 | fi | |
6115 | ||
6116 | ||
e28c595f | 6117 | |
7ec59b9e | 6118 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6119 | stage1_languages=,c, |
1d39f329 | 6120 | |
e8a5fa9c | 6121 | # Target libraries that we bootstrap. |
2aa2364a | 6122 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6123 | |
9e07f89d NN |
6124 | # Figure out what language subdirectories are present. |
6125 | # Look if the user specified --enable-languages="..."; if not, use | |
6126 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6127 | # go away some day. | |
6128 | # NB: embedded tabs in this IF block -- do not untabify | |
6129 | if test -d ${srcdir}/gcc; then | |
6130 | if test x"${enable_languages+set}" != xset; then | |
6131 | if test x"${LANGUAGES+set}" = xset; then | |
6132 | enable_languages="${LANGUAGES}" | |
136bb21f | 6133 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 6134 | else |
bf41f30d | 6135 | enable_languages=default |
9e07f89d NN |
6136 | fi |
6137 | else | |
6138 | if test x"${enable_languages}" = x || | |
6139 | test x"${enable_languages}" = xyes; | |
6140 | then | |
136bb21f | 6141 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6142 | exit 1 |
6143 | fi | |
6144 | fi | |
6145 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6146 | ||
096f7d00 DE |
6147 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6148 | # and make the substitution. | |
6149 | case ,${enable_languages}, in | |
6150 | *,f95,*) | |
136bb21f | 6151 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6152 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6153 | ;; | |
6154 | esac | |
6155 | ||
7ec59b9e L |
6156 | # If bootstrapping, C++ must be enabled. |
6157 | case ",$enable_languages,:$enable_bootstrap" in | |
6158 | *,c++,*:*) ;; | |
6159 | *:yes) | |
ffdd6afc ILT |
6160 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6161 | enable_languages="${enable_languages},c++" | |
6162 | else | |
d0ac1c44 | 6163 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6164 | fi |
6165 | ;; | |
6166 | esac | |
6167 | ||
9e07f89d NN |
6168 | # First scan to see if an enabled language requires some other language. |
6169 | # We assume that a given config-lang.in will list all the language | |
6170 | # front ends it requires, even if some are required indirectly. | |
6171 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6172 | case ${lang_frag} in | |
6173 | ..) ;; | |
6174 | # The odd quoting in the next line works around | |
6175 | # an apparent bug in bash 1.12 on linux. | |
6176 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6177 | *) | |
e552509b ILT |
6178 | # From the config-lang.in, get $language, $lang_requires, and |
6179 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6180 | language= |
6181 | lang_requires= | |
e552509b | 6182 | lang_requires_boot_languages= |
bf41f30d NC |
6183 | # set srcdir during sourcing lang_frag to the gcc dir. |
6184 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6185 | # polutes this shell | |
6186 | saved_srcdir=${srcdir} | |
6187 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6188 | srcdir=${saved_srcdir} | |
e552509b | 6189 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6190 | case ,${enable_languages}, in |
6191 | *,$other,*) ;; | |
bf41f30d | 6192 | *,default,*) ;; |
9e07f89d NN |
6193 | *,all,*) ;; |
6194 | *,$language,*) | |
6195 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6196 | enable_languages="${enable_languages},${other}" | |
6197 | ;; | |
6198 | esac | |
6199 | done | |
e552509b ILT |
6200 | for other in ${lang_requires_boot_languages} ; do |
6201 | if test "$other" != "c"; then | |
6202 | case ,${enable_stage1_languages}, in | |
6203 | *,$other,*) ;; | |
bf41f30d | 6204 | *,default,*) ;; |
e552509b ILT |
6205 | *,all,*) ;; |
6206 | *) | |
6207 | case ,${enable_languages}, in | |
6208 | *,$language,*) | |
6209 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6210 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6211 | ;; | |
6212 | esac | |
6213 | ;; | |
6214 | esac | |
6215 | fi | |
6216 | done | |
9e07f89d NN |
6217 | ;; |
6218 | esac | |
6219 | done | |
6220 | ||
9b134994 | 6221 | new_enable_languages=,c, |
700d40ca ILT |
6222 | |
6223 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6224 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6225 | case ,${enable_languages}, in |
6226 | *,lto,*) ;; | |
6227 | *) enable_languages="${enable_languages},lto" ;; | |
6228 | esac | |
a8eb3f0a | 6229 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6230 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6231 | fi |
6232 | fi | |
6233 | ||
1b6c0831 L |
6234 | # If we're building an offloading compiler, add the LTO front end. |
6235 | if test x"$enable_as_accelerator_for" != x ; then | |
6236 | case ,${enable_languages}, in | |
6237 | *,lto,*) ;; | |
6238 | *) enable_languages="${enable_languages},lto" ;; | |
6239 | esac | |
6240 | fi | |
700d40ca | 6241 | |
bf41f30d | 6242 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6243 | potential_languages=,c, |
9e07f89d | 6244 | |
9e1a94f4 ILT |
6245 | enabled_target_libs= |
6246 | disabled_target_libs= | |
6247 | ||
9e07f89d NN |
6248 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6249 | case ${lang_frag} in | |
6250 | ..) ;; | |
6251 | # The odd quoting in the next line works around | |
6252 | # an apparent bug in bash 1.12 on linux. | |
6253 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6254 | *) | |
c6b750e1 | 6255 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6256 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6257 | language= |
6258 | target_libs= | |
6259 | lang_dirs= | |
64ce424c | 6260 | subdir_requires= |
9b134994 PB |
6261 | boot_language=no |
6262 | build_by_default=yes | |
bf41f30d NC |
6263 | # set srcdir during sourcing. See above about save & restore |
6264 | saved_srcdir=${srcdir} | |
6265 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6266 | srcdir=${saved_srcdir} | |
9b134994 PB |
6267 | if test x${language} = x; then |
6268 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6269 | exit 1 | |
6270 | fi | |
6271 | ||
ffdd6afc | 6272 | if test "$language" = "c++"; then |
7ec59b9e | 6273 | boot_language=yes |
e8a5fa9c RW |
6274 | fi |
6275 | ||
8e71395b | 6276 | add_this_lang=no |
bf41f30d NC |
6277 | # C is always enabled, so no need to add it again |
6278 | if test "$language" != "c"; then | |
6279 | case ,${enable_languages}, in | |
6280 | *,${language},*) | |
6281 | # Language was explicitly selected; include it | |
7ec59b9e | 6282 | add_this_lang=yes |
bf41f30d NC |
6283 | ;; |
6284 | *,all,*) | |
6285 | # All languages are enabled | |
6286 | add_this_lang=all | |
6287 | ;; | |
6288 | *,default,*) | |
6289 | # 'default' was selected, select it if it is a default language | |
8e71395b | 6290 | add_this_lang=${build_by_default} |
bf41f30d NC |
6291 | ;; |
6292 | esac | |
6293 | fi | |
4b1cb4fe | 6294 | |
64ce424c | 6295 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6296 | for i in $subdir_requires; do |
3d3adb43 | 6297 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
6298 | case ${add_this_lang} in |
6299 | yes) | |
64ce424c | 6300 | # Specifically requested language; tell them. |
d0ac1c44 | 6301 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 6302 | ;; |
bf41f30d NC |
6303 | all) |
6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6305 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6306 | add_this_lang=unsupported | |
6307 | ;; | |
64ce424c PB |
6308 | *) |
6309 | # Silently disable. | |
9b134994 | 6310 | add_this_lang=unsupported |
64ce424c PB |
6311 | ;; |
6312 | esac | |
6313 | done | |
6314 | ||
9b134994 | 6315 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
6316 | case ${add_this_lang}:${language}:${have_gnat} in |
6317 | yes:ada:no) | |
9b134994 | 6318 | # Specifically requested language; tell them. |
d0ac1c44 | 6319 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 6320 | ;; |
bf41f30d NC |
6321 | all:ada:no) |
6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6323 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6324 | add_this_lang=unsupported | |
6325 | ;; | |
9b134994 PB |
6326 | *:ada:no) |
6327 | # Silently disable. | |
6328 | add_this_lang=unsupported | |
6329 | ;; | |
6330 | esac | |
6331 | ||
bf41f30d NC |
6332 | # Disable jit if -enable-host-shared not specified |
6333 | case ${add_this_lang}:${language}:${host_shared} in | |
6334 | yes:jit:no) | |
6335 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 6336 | as_fn_error $? " |
bf41f30d NC |
6337 | Enabling language \"jit\" requires --enable-host-shared. |
6338 | ||
6339 | --enable-host-shared typically slows the rest of the compiler down by | |
6340 | a few %, so you must explicitly enable it. | |
6341 | ||
6342 | If you want to build both the jit and the regular compiler, it is often | |
6343 | best to do this via two separate configure/builds, in separate | |
6344 | directories, to avoid imposing the performance cost of | |
6345 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6346 | ;; | |
6347 | all:jit:no) | |
6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6349 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6350 | add_this_lang=unsupported | |
6351 | ;; | |
6352 | *:jit:no) | |
6353 | # Silently disable. | |
6354 | add_this_lang=unsupported | |
6355 | ;; | |
6356 | esac | |
6357 | ||
6358 | # Disable a language that is unsupported by the target. | |
6359 | case "${add_this_lang}: $unsupported_languages " in | |
6360 | no:*) ;; | |
6361 | unsupported:*) ;; | |
6362 | *:*" $language "*) | |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6364 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 6365 | add_this_lang=unsupported |
59f7ec45 HPN |
6366 | ;; |
6367 | esac | |
6368 | ||
4b1cb4fe | 6369 | case $add_this_lang in |
9b134994 | 6370 | unsupported) |
9e07f89d | 6371 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6372 | disabled_target_libs="$disabled_target_libs $target_libs" |
6373 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6374 | ;; |
9b134994 PB |
6375 | no) |
6376 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6377 | disabled_target_libs="$disabled_target_libs $target_libs" |
6378 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6379 | potential_languages="${potential_languages}${language}," |
6380 | ;; | |
bf41f30d | 6381 | all|yes) |
9b134994 PB |
6382 | new_enable_languages="${new_enable_languages}${language}," |
6383 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6384 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6385 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6386 | case "${boot_language}:,$enable_stage1_languages," in |
6387 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6388 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6389 | case ",$stage1_languages," in |
6390 | *,$language,* | ,yes, | ,all,) ;; | |
6391 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6392 | esac | |
e8a5fa9c RW |
6393 | # We need to bootstrap any supporting libraries. |
6394 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6395 | ;; |
6396 | esac | |
6397 | ;; | |
9e07f89d NN |
6398 | esac |
6399 | ;; | |
6400 | esac | |
6401 | done | |
6402 | ||
9e1a94f4 ILT |
6403 | # Add target libraries which are only needed for disabled languages |
6404 | # to noconfigdirs. | |
6405 | if test -n "$disabled_target_libs"; then | |
6406 | for dir in $disabled_target_libs; do | |
6407 | case " $enabled_target_libs " in | |
6408 | *" ${dir} "*) ;; | |
6409 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6410 | esac | |
6411 | done | |
6412 | fi | |
6413 | ||
81ecdfbb RW |
6414 | # Check whether --enable-stage1-languages was given. |
6415 | if test "${enable_stage1_languages+set}" = set; then : | |
6416 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6417 | ,no,|,,) |
6418 | # Set it to something that will have no effect in the loop below | |
6419 | enable_stage1_languages=c ;; | |
6420 | ,yes,) | |
6421 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6422 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6423 | *,all,*) | |
6424 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6425 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6426 | esac | |
6427 | ||
6428 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6429 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6430 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6431 | case $potential_languages in | |
6432 | *,$i,*) | |
6433 | case $stage1_languages in | |
6434 | *,$i,*) ;; | |
6435 | *) stage1_languages="$stage1_languages$i," ;; | |
6436 | esac ;; | |
6437 | *) | |
6438 | case $missing_languages in | |
6439 | *,$i,*) ;; | |
6440 | *) missing_languages="$missing_languages$i," ;; | |
6441 | esac ;; | |
6442 | esac | |
6443 | done | |
81ecdfbb RW |
6444 | fi |
6445 | ||
9b134994 PB |
6446 | |
6447 | # Remove leading/trailing commas that were added for simplicity | |
6448 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6449 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6450 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6451 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6452 | ||
9e07f89d | 6453 | if test "x$missing_languages" != x; then |
d0ac1c44 | 6454 | as_fn_error $? " |
27258dd4 | 6455 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6456 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6457 | fi |
9e07f89d NN |
6458 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6459 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6460 | enable_languages="$new_enable_languages" |
9e07f89d | 6461 | fi |
9b134994 | 6462 | |
c6b750e1 | 6463 | |
81ec575a | 6464 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6465 | fi |
6466 | ||
a6df5a19 PB |
6467 | # Handle --disable-<component> generically. |
6468 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6469 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6470 | varname=`echo $dirname | sed -e s/+/_/g` |
6471 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6472 | noconfigdirs="$noconfigdirs $dir" |
6473 | fi | |
6474 | done | |
6475 | ||
4f0ef2d8 | 6476 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6477 | # Check whether --enable-objc-gc was given. |
6478 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 6479 | enableval=$enable_objc_gc; |
81ecdfbb RW |
6480 | fi |
6481 | ||
4f0ef2d8 | 6482 | |
05a13254 NC |
6483 | # Check whether --with-target-bdw-gc was given. |
6484 | if test "${with_target_bdw_gc+set}" = set; then : | |
6485 | withval=$with_target_bdw_gc; | |
6486 | fi | |
6487 | ||
6488 | ||
6489 | # Check whether --with-target-bdw-gc-include was given. | |
6490 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6491 | withval=$with_target_bdw_gc_include; | |
6492 | fi | |
6493 | ||
6494 | ||
6495 | # Check whether --with-target-bdw-gc-lib was given. | |
6496 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6497 | withval=$with_target_bdw_gc_lib; | |
6498 | fi | |
6499 | ||
6500 | ||
6501 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6503 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6504 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
6506 | $as_echo "using bdw-gc in default locations" >&6; } | |
6507 | else | |
6508 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 6509 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 6510 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 6511 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
6512 | else |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6514 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 6515 | fi |
05a13254 | 6516 | fi |
4f0ef2d8 CD |
6517 | esac |
6518 | ||
bf41f30d | 6519 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6520 | case ,${enable_languages}, in |
1b6c0831 | 6521 | *,c++,*) |
bf41f30d | 6522 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
6523 | case "${noconfigdirs}" in |
6524 | *target-libstdc++-v3*) | |
bf41f30d | 6525 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
6526 | ;; |
6527 | *) ;; | |
6528 | esac | |
6529 | ;; | |
7ec59b9e | 6530 | *) |
bf41f30d | 6531 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6532 | ;; |
6533 | esac | |
6534 | ||
caeba88f AL |
6535 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6536 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6537 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6538 | ||
6539 | notsupp="" | |
6540 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6541 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6542 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6543 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6544 | if test -r $srcdir/$dirname/configure ; then | |
6545 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6546 | true | |
6547 | else | |
6548 | notsupp="$notsupp $dir" | |
6549 | fi | |
6550 | fi | |
6551 | fi | |
caeba88f AL |
6552 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6553 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6554 | if test -r $srcdir/$dirname/configure ; then | |
6555 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6556 | true | |
6557 | else | |
6558 | notsupp="$notsupp $dir" | |
6559 | fi | |
6560 | fi | |
6561 | fi | |
9e07f89d NN |
6562 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6563 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6564 | if test -r $srcdir/$dirname/configure ; then | |
6565 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6566 | true | |
6567 | else | |
6568 | notsupp="$notsupp $dir" | |
6569 | fi | |
6570 | fi | |
6571 | fi | |
6572 | done | |
6573 | ||
9e07f89d NN |
6574 | # Quietly strip out all directories which aren't configurable in this tree. |
6575 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6576 | # is now the case. | |
6a9cf61e PB |
6577 | build_configdirs_all="$build_configdirs" |
6578 | build_configdirs= | |
6579 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6580 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6581 | if test -f ${srcdir}/$j/configure ; then |
6582 | build_configdirs="${build_configdirs} $i" | |
6583 | fi | |
6584 | done | |
6585 | ||
9e07f89d NN |
6586 | configdirs_all="$configdirs" |
6587 | configdirs= | |
6588 | for i in ${configdirs_all} ; do | |
6589 | if test -f ${srcdir}/$i/configure ; then | |
6590 | configdirs="${configdirs} $i" | |
6591 | fi | |
6592 | done | |
6a9cf61e | 6593 | |
9e07f89d NN |
6594 | target_configdirs_all="$target_configdirs" |
6595 | target_configdirs= | |
6596 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6597 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6598 | if test -f ${srcdir}/$j/configure ; then |
6599 | target_configdirs="${target_configdirs} $i" | |
6600 | fi | |
6601 | done | |
6602 | ||
1b6c0831 L |
6603 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6604 | # so we have to add it after the preceding checks. | |
6605 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6606 | then | |
6607 | case " $configdirs " in | |
6608 | *" libiberty "*) | |
6609 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6610 | configdirs="$configdirs libiberty-linker-plugin" | |
6611 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6612 | --with-libiberty=../libiberty-linker-plugin";; | |
6613 | *) | |
d0ac1c44 | 6614 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
6615 | esac |
6616 | fi | |
6617 | ||
6618 | # Sometimes we have special requirements for the host libiberty. | |
6619 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6620 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6621 | case " $configdirs " in |
6622 | *" lto-plugin "* | *" libcc1 "*) | |
6623 | # When these are to be built as shared libraries, the same applies to | |
6624 | # libiberty. | |
6625 | extra_host_libiberty_configure_flags=--enable-shared | |
6626 | ;; | |
e81d5d05 L |
6627 | *" bfd "*) |
6628 | # When bfd is to be built as a shared library, the same applies to | |
6629 | # zlib. | |
6630 | if test "$enable_shared" = "yes"; then | |
6631 | extra_host_zlib_configure_flags=--enable-host-shared | |
6632 | fi | |
6633 | ;; | |
1b6c0831 L |
6634 | esac |
6635 | ||
6636 | ||
e81d5d05 | 6637 | |
9e07f89d NN |
6638 | # Produce a warning message for the subdirs we can't configure. |
6639 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6640 | # FSF releases, it's important to let people know when their machine isn't | |
6641 | # supported by the one or two programs in a package. | |
6642 | ||
6643 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6644 | # If $appdirs is non-empty, at least one of those directories must still | |
6645 | # be configured, or we error out. (E.g., if the gas release supports a | |
6646 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6647 | # pretend that all is well.) | |
6648 | if test -n "$appdirs" ; then | |
6649 | for dir in $appdirs ; do | |
6650 | if test -r $dir/Makefile.in ; then | |
6651 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6652 | appdirs="" | |
6653 | break | |
6654 | fi | |
6a9cf61e | 6655 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6656 | appdirs="" |
6657 | break | |
6658 | fi | |
6659 | fi | |
6660 | done | |
6661 | if test -n "$appdirs" ; then | |
6662 | echo "*** This configuration is not supported by this package." 1>&2 | |
6663 | exit 1 | |
6664 | fi | |
6665 | fi | |
6666 | # Okay, some application will build, or we don't care to check. Still | |
6667 | # notify of subdirs not getting built. | |
6668 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6669 | echo " ${notsupp}" 1>&2 | |
6670 | echo " (Any other directories should still work fine.)" 1>&2 | |
6671 | fi | |
6672 | ||
6673 | case "$host" in | |
6674 | *msdosdjgpp*) | |
6675 | enable_gdbtk=no ;; | |
6676 | esac | |
6677 | ||
18f6b6ee PB |
6678 | # To find our prefix, in gcc_cv_tool_prefix. |
6679 | ||
6680 | # The user is always right. | |
6681 | if test "${PATH_SEPARATOR+set}" != set; then | |
6682 | echo "#! /bin/sh" >conf$$.sh | |
6683 | echo "exit 0" >>conf$$.sh | |
6684 | chmod +x conf$$.sh | |
6685 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6686 | PATH_SEPARATOR=';' | |
6687 | else | |
6688 | PATH_SEPARATOR=: | |
6689 | fi | |
6690 | rm -f conf$$.sh | |
6691 | fi | |
6692 | ||
6693 | ||
bf41f30d NC |
6694 | get_gcc_base_ver="cat" |
6695 | ||
6696 | # Check whether --with-gcc-major-version-only was given. | |
6697 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6698 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 6699 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
6700 | fi |
6701 | ||
6702 | fi | |
6703 | ||
6704 | ||
6705 | ||
6706 | ||
6707 | ||
18f6b6ee PB |
6708 | |
6709 | if test "x$exec_prefix" = xNONE; then | |
6710 | if test "x$prefix" = xNONE; then | |
6711 | gcc_cv_tool_prefix=$ac_default_prefix | |
6712 | else | |
6713 | gcc_cv_tool_prefix=$prefix | |
6714 | fi | |
6715 | else | |
6716 | gcc_cv_tool_prefix=$exec_prefix | |
6717 | fi | |
6718 | ||
6719 | # If there is no compiler in the tree, use the PATH only. In any | |
6720 | # case, if there is no compiler in the tree nobody should use | |
6721 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6722 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
6723 | if test x$with_gcc_major_version_only = xyes ; then |
6724 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6725 | else | |
6726 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6727 | fi | |
18f6b6ee PB |
6728 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6729 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6730 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6731 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6732 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6733 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6734 | else | |
6735 | gcc_cv_tool_dirs= | |
6736 | fi | |
6737 | ||
6738 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6739 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6740 | fi | |
6741 | ||
6742 | ||
6743 | ||
9e07f89d NN |
6744 | copy_dirs= |
6745 | ||
c6b750e1 | 6746 | |
81ecdfbb RW |
6747 | # Check whether --with-build-sysroot was given. |
6748 | if test "${with_build_sysroot+set}" = set; then : | |
6749 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6750 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6751 | fi | |
6752 | else | |
6753 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6754 | fi |
a19b6204 MM |
6755 | |
6756 | ||
8a6ee3ab | 6757 | |
81ecdfbb RW |
6758 | |
6759 | # Check whether --with-debug-prefix-map was given. | |
6760 | if test "${with_debug_prefix_map+set}" = set; then : | |
6761 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6762 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6763 | for debug_map in $withval; do | |
6764 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6765 | done | |
6766 | fi | |
6767 | else | |
6768 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6769 | fi |
6770 | ||
8a6ee3ab JM |
6771 | |
6772 | ||
7f6ef0c0 PB |
6773 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6774 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6775 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6776 | # We want to ensure that TARGET libraries (which we know are built with | |
6777 | # gcc) are built with "-O2 -g", so include those options when setting | |
6778 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6779 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6780 | if test "x${is_cross_compiler}" = xyes; then |
6781 | CFLAGS_FOR_TARGET="-g -O2" | |
6782 | else | |
6783 | CFLAGS_FOR_TARGET=$CFLAGS | |
6784 | case " $CFLAGS " in | |
6785 | *" -O2 "*) ;; | |
6786 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6787 | esac | |
6788 | case " $CFLAGS " in | |
6789 | *" -g "* | *" -g3 "*) ;; | |
6790 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6791 | esac | |
6792 | fi | |
7f6ef0c0 PB |
6793 | fi |
6794 | ||
6795 | ||
6796 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6797 | if test "x${is_cross_compiler}" = xyes; then |
6798 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6799 | else | |
6800 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6801 | case " $CXXFLAGS " in | |
6802 | *" -O2 "*) ;; | |
6803 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6804 | esac | |
6805 | case " $CXXFLAGS " in | |
6806 | *" -g "* | *" -g3 "*) ;; | |
6807 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6808 | esac | |
6809 | fi | |
7f6ef0c0 PB |
6810 | fi |
6811 | ||
6812 | ||
91c1f14c DK |
6813 | |
6814 | ||
9e07f89d NN |
6815 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6816 | # the named directory are copied to $(tooldir)/sys-include. | |
6817 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6818 | if test x${is_cross_compiler} = xno ; then | |
6819 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6820 | exit 1 | |
6821 | fi | |
6822 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6823 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6824 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6825 | fi |
6826 | fi | |
6827 | ||
6828 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6829 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6830 | # are permitted. | |
6831 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6832 | if test x${is_cross_compiler} = xno ; then | |
6833 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6834 | exit 1 | |
6835 | fi | |
6836 | if test x"${with_libs}" != xyes ; then | |
6837 | # Copy the libraries in reverse order, so that files in the first named | |
6838 | # library override files in subsequent libraries. | |
18f6b6ee | 6839 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6840 | for l in ${with_libs}; do |
c6b750e1 | 6841 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6842 | done |
6843 | fi | |
6844 | fi | |
6845 | ||
700d40ca | 6846 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6847 | # |
6848 | # This is done by determining whether or not the appropriate directory | |
6849 | # is available, and by checking whether or not specific configurations | |
6850 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6851 | # |
6852 | # The command line options always override the explicit settings in | |
136bb21f | 6853 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6854 | # |
c6b750e1 | 6855 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6856 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6857 | # --without-gnu-ld options for the configure script. Similarly, if |
6858 | # the default is to use the included zlib and you don't want to do that, | |
6859 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6860 | |
6861 | if test x${use_gnu_as} = x && | |
6862 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6863 | with_gnu_as=yes | |
6864 | extra_host_args="$extra_host_args --with-gnu-as" | |
6865 | fi | |
6866 | ||
6867 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6868 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6869 | with_gnu_ld=yes |
6870 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6871 | fi | |
6872 | ||
700d40ca ILT |
6873 | if test x${use_included_zlib} = x && |
6874 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6875 | : | |
6876 | else | |
6877 | with_system_zlib=yes | |
6878 | extra_host_args="$extra_host_args --with-system-zlib" | |
6879 | fi | |
6880 | ||
2429c060 PB |
6881 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6882 | # can detect this case. | |
6883 | ||
6884 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6885 | with_newlib=yes | |
6886 | extra_host_args="$extra_host_args --with-newlib" | |
6887 | fi | |
6888 | ||
9e07f89d NN |
6889 | # Handle ${copy_dirs} |
6890 | set fnord ${copy_dirs} | |
6891 | shift | |
6892 | while test $# != 0 ; do | |
6893 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6894 | : | |
6895 | else | |
6896 | echo Copying $1 to $2 | |
6897 | ||
6898 | # Use the install script to create the directory and all required | |
6899 | # parent directories. | |
6900 | if test -d $2 ; then | |
6901 | : | |
6902 | else | |
6903 | echo >config.temp | |
6904 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6905 | fi | |
6906 | ||
6907 | # Copy the directory, assuming we have tar. | |
6908 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6909 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6910 | ||
6911 | # It is the responsibility of the user to correctly adjust all | |
6912 | # symlinks. If somebody can figure out how to handle them correctly | |
6913 | # here, feel free to add the code. | |
6914 | ||
6915 | echo $1 > $2/COPIED | |
6916 | fi | |
6917 | shift; shift | |
6918 | done | |
6919 | ||
2429c060 PB |
6920 | # Determine a target-dependent exec_prefix that the installed |
6921 | # gcc will search in. Keep this list sorted by triplet, with | |
6922 | # the *-*-osname triplets last. | |
6923 | md_exec_prefix= | |
6924 | case "${target}" in | |
521ec477 | 6925 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6926 | md_exec_prefix=/dev/env/DJDIR/bin |
6927 | ;; | |
2429c060 | 6928 | *-*-hpux* | \ |
2429c060 | 6929 | *-*-nto-qnx* | \ |
1f111696 | 6930 | *-*-solaris2*) |
2429c060 PB |
6931 | md_exec_prefix=/usr/ccs/bin |
6932 | ;; | |
6933 | esac | |
6934 | ||
a0da8069 NN |
6935 | extra_arflags_for_target= |
6936 | extra_nmflags_for_target= | |
6937 | extra_ranlibflags_for_target= | |
6938 | target_makefile_frag=/dev/null | |
6939 | case "${target}" in | |
77d7106f AM |
6940 | spu-*-*) |
6941 | target_makefile_frag="config/mt-spu" | |
6942 | ;; | |
a9d58c06 | 6943 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6944 | target_makefile_frag="config/mt-sde" |
6945 | ;; | |
f3b1e08e RS |
6946 | mipsisa*-*-elfoabi*) |
6947 | target_makefile_frag="config/mt-mips-elfoabi" | |
6948 | ;; | |
e7c8859c RS |
6949 | mips*-*-*linux* | mips*-*-gnu*) |
6950 | target_makefile_frag="config/mt-mips-gnu" | |
6951 | ;; | |
d9e042ac SL |
6952 | nios2-*-elf*) |
6953 | target_makefile_frag="config/mt-nios2-elf" | |
6954 | ;; | |
bf41f30d NC |
6955 | *-*-linux-android*) |
6956 | target_makefile_frag="config/mt-android" | |
6957 | ;; | |
29383458 | 6958 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6959 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6960 | ;; |
6961 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6962 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6963 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6964 | # harmless if we're using GNU nm or ar. | |
6965 | extra_arflags_for_target=" -X32_64" | |
6966 | extra_nmflags_for_target=" -B -X32_64" | |
6967 | ;; | |
a0da8069 NN |
6968 | esac |
6969 | ||
6970 | alphaieee_frag=/dev/null | |
6971 | case $target in | |
6972 | alpha*-*-*) | |
6973 | # This just makes sure to use the -mieee option to build target libs. | |
6974 | # This should probably be set individually by each library. | |
6975 | alphaieee_frag="config/mt-alphaieee" | |
6976 | ;; | |
6977 | esac | |
6978 | ||
6979 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6980 | # the target libraries, similarly if it is not specified, use -Os | |
6981 | # on selected platforms. | |
6982 | ospace_frag=/dev/null | |
6983 | case "${enable_target_optspace}:${target}" in | |
6984 | yes:*) | |
6985 | ospace_frag="config/mt-ospace" | |
6986 | ;; | |
6987 | :d30v-*) | |
6988 | ospace_frag="config/mt-d30v" | |
6989 | ;; | |
16beab3d | 6990 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
6991 | ospace_frag="config/mt-ospace" |
6992 | ;; | |
6993 | no:* | :*) | |
6994 | ;; | |
6995 | *) | |
6996 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6997 | ;; | |
6998 | esac | |
6999 | ||
a0da8069 NN |
7000 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7001 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7002 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7003 | build_tooldir=${tooldir} |
7004 | ||
a0da8069 NN |
7005 | # Create a .gdbinit file which runs the one in srcdir |
7006 | # and tells GDB to look there for source files. | |
7007 | ||
7008 | if test -r ${srcdir}/.gdbinit ; then | |
7009 | case ${srcdir} in | |
7010 | .) ;; | |
7011 | *) cat > ./.gdbinit <<EOF | |
7012 | # ${NO_EDIT} | |
7013 | dir ${srcdir} | |
7014 | dir . | |
7015 | source ${srcdir}/.gdbinit | |
7016 | EOF | |
7017 | ;; | |
7018 | esac | |
7019 | fi | |
7020 | ||
a0da8069 NN |
7021 | # Make sure that the compiler is able to generate an executable. If it |
7022 | # can't, we are probably in trouble. We don't care whether we can run the | |
7023 | # executable--we might be using a cross compiler--we only care whether it | |
7024 | # can be created. At this point the main configure script has set CC. | |
7025 | we_are_ok=no | |
7026 | echo "int main () { return 0; }" > conftest.c | |
7027 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7028 | if test $? = 0 ; then | |
7029 | if test -s conftest || test -s conftest.exe ; then | |
7030 | we_are_ok=yes | |
7031 | fi | |
c6b750e1 | 7032 | fi |
a0da8069 NN |
7033 | case $we_are_ok in |
7034 | no) | |
7035 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7036 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7037 | rm -f conftest* | |
7038 | exit 1 | |
7039 | ;; | |
7040 | esac | |
7041 | rm -f conftest* | |
7042 | ||
3bbd2f8f | 7043 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7044 | case "${host}" in |
7045 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7046 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7047 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7048 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7049 | esac | |
7050 | ||
3bbd2f8f | 7051 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7052 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7053 | # built executables to PATH. | |
3bbd2f8f AL |
7054 | if test "$RPATH_ENVVAR" = PATH; then |
7055 | GCC_SHLIB_SUBDIR=/shlib | |
7056 | else | |
7057 | GCC_SHLIB_SUBDIR= | |
7058 | fi | |
7059 | ||
730af8ee | 7060 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7061 | case $enable_bootstrap in | |
7062 | yes) | |
7063 | bootstrap_suffix=bootstrap | |
7064 | BUILD_CONFIG=bootstrap-debug | |
7065 | ;; | |
7066 | no) | |
7067 | bootstrap_suffix=no-bootstrap | |
7068 | BUILD_CONFIG= | |
7069 | ;; | |
7070 | esac | |
7071 | ||
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7073 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7074 | ||
7075 | ||
7076 | # Check whether --with-build-config was given. | |
7077 | if test "${with_build_config+set}" = set; then : | |
7078 | withval=$with_build_config; case $with_build_config in | |
7079 | yes) with_build_config= ;; | |
7080 | no) with_build_config= BUILD_CONFIG= ;; | |
7081 | esac | |
7082 | fi | |
7083 | ||
7084 | ||
7085 | if test "x${with_build_config}" != x; then | |
7086 | BUILD_CONFIG=$with_build_config | |
7087 | else | |
7088 | case $BUILD_CONFIG in | |
7089 | bootstrap-debug) | |
7090 | if echo "int f (void) { return 0; }" > conftest.c && | |
7091 | ${CC} -c conftest.c && | |
7092 | mv conftest.o conftest.o.g0 && | |
7093 | ${CC} -c -g conftest.c && | |
7094 | mv conftest.o conftest.o.g && | |
7095 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7096 | : | |
7097 | else | |
7098 | BUILD_CONFIG= | |
7099 | fi | |
7100 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7101 | ;; | |
7102 | esac | |
7103 | fi | |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7105 | $as_echo "$BUILD_CONFIG" >&6; } | |
7106 | ||
7107 | ||
7108 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7110 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7111 | # Check whether --enable-vtable-verify was given. | |
7112 | if test "${enable_vtable_verify+set}" = set; then : | |
7113 | enableval=$enable_vtable_verify; case "$enableval" in | |
7114 | yes) enable_vtable_verify=yes ;; | |
7115 | no) enable_vtable_verify=no ;; | |
7116 | *) enable_vtable_verify=no;; | |
7117 | esac | |
7118 | else | |
7119 | enable_vtable_verify=no | |
7120 | fi | |
7121 | ||
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7123 | $as_echo "$enable_vtable_verify" >&6; } | |
7124 | ||
a0da8069 NN |
7125 | # Record target_configdirs and the configure arguments for target and |
7126 | # build configuration in Makefile. | |
7127 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7128 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7129 | bootstrap_fixincludes=no |
a0da8069 | 7130 | |
2aa2364a JR |
7131 | # If we are building libgomp, bootstrap it. |
7132 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7133 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7134 | fi | |
7135 | ||
730af8ee | 7136 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7137 | # or bootstrap-ubsan, bootstrap it. | |
7138 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7139 | case "$BUILD_CONFIG" in | |
7140 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7141 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7142 | bootstrap_fixincludes=yes |
730af8ee | 7143 | ;; |
7144 | esac | |
5eb08693 L |
7145 | fi |
7146 | ||
730af8ee | 7147 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7148 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7149 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7150 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7151 | fi | |
7152 | ||
a0da8069 NN |
7153 | # Determine whether gdb needs tk/tcl or not. |
7154 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7155 | # and in that case we want gdb to be built without tk. Ugh! | |
7156 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7157 | # so we should be able to put the 'maybe's in unconditionally and | |
7158 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7159 | # 100% sure that that's safe though. | |
c180f501 | 7160 | |
675c6968 | 7161 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7162 | case "$enable_gdbtk" in |
7163 | no) | |
7164 | GDB_TK="" ;; | |
c180f501 AC |
7165 | yes) |
7166 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7167 | *) |
c180f501 AC |
7168 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7169 | # distro. Eventually someone will fix this and move Insight, nee | |
7170 | # gdbtk to a separate directory. | |
7171 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7172 | GDB_TK="${gdb_tk}" | |
7173 | else | |
7174 | GDB_TK="" | |
7175 | fi | |
7176 | ;; | |
a0da8069 | 7177 | esac |
907be67c DJ |
7178 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7179 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7180 | |
6bd3dfaa | 7181 | # Strip out unwanted targets. |
dd12c3a8 NN |
7182 | |
7183 | # While at that, we remove Makefiles if we were started for recursive | |
7184 | # configuration, so that the top-level Makefile reconfigures them, | |
7185 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7186 | |
06a51eac RW |
7187 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7188 | # but now we're fixing up the Makefile ourselves with the additional | |
7189 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7190 | # extrasub-{build,host,target} not because there is any reason to split | |
7191 | # the substitutions up that way, but only to remain below the limit of | |
7192 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
7193 | |
7194 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7195 | # configure will not warn you at all. | |
dd12c3a8 | 7196 | |
16b1ad29 RW |
7197 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7198 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7199 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 7200 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
7201 | ;; |
7202 | esac | |
7203 | ||
06a51eac | 7204 | extrasub_build= |
6a9cf61e | 7205 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7206 | if test -z "${no_recursion}" \ |
7207 | && test -f ${build_subdir}/${module}/Makefile; then | |
7208 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7209 | rm -f ${build_subdir}/${module}/Makefile | |
7210 | fi | |
06a51eac | 7211 | extrasub_build="$extrasub_build |
498d4a71 CF |
7212 | /^@if build-$module\$/d |
7213 | /^@endif build-$module\$/d | |
4119873a | 7214 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 7215 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
7216 | /^@endif build-$module-$bootstrap_suffix\$/d |
7217 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 7218 | done |
06a51eac | 7219 | extrasub_host= |
498d4a71 | 7220 | for module in ${configdirs} ; do |
80911fe1 | 7221 | if test -z "${no_recursion}"; then |
8cf39b1b | 7222 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7223 | if test -f ${file}; then |
7224 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7225 | rm -f ${file} | |
7226 | fi | |
7227 | done | |
498d4a71 | 7228 | fi |
201f096f | 7229 | case ${module},${bootstrap_fixincludes} in |
7230 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7231 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7232 | esac | |
06a51eac | 7233 | extrasub_host="$extrasub_host |
498d4a71 CF |
7234 | /^@if $module\$/d |
7235 | /^@endif $module\$/d | |
4119873a | 7236 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 7237 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
7238 | /^@endif $module-$host_bootstrap_suffix\$/d |
7239 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7240 | done |
06a51eac | 7241 | extrasub_target= |
498d4a71 CF |
7242 | for module in ${target_configdirs} ; do |
7243 | if test -z "${no_recursion}" \ | |
7244 | && test -f ${target_subdir}/${module}/Makefile; then | |
7245 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7246 | rm -f ${target_subdir}/${module}/Makefile | |
7247 | fi | |
e8a5fa9c RW |
7248 | |
7249 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7250 | case $bootstrap_target_libs in | |
7251 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7252 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7253 | esac | |
7254 | ||
06a51eac | 7255 | extrasub_target="$extrasub_target |
498d4a71 CF |
7256 | /^@if target-$module\$/d |
7257 | /^@endif target-$module\$/d | |
4119873a | 7258 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 7259 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
7260 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7261 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7262 | done |
7263 | ||
06a51eac RW |
7264 | # Do the final fixup along with target modules. |
7265 | extrasub_target="$extrasub_target | |
4119873a AO |
7266 | /^@if /,/^@endif /d |
7267 | /^@unless /d | |
7268 | /^@endunless /d" | |
a0da8069 NN |
7269 | |
7270 | # Create the serialization dependencies. This uses a temporary file. | |
7271 | ||
81ecdfbb RW |
7272 | # Check whether --enable-serial-configure was given. |
7273 | if test "${enable_serial_configure+set}" = set; then : | |
7274 | enableval=$enable_serial_configure; | |
7275 | fi | |
e6bfb94a AO |
7276 | |
7277 | ||
1047cb91 DD |
7278 | case ${enable_serial_configure} in |
7279 | yes) | |
7280 | enable_serial_build_configure=yes | |
7281 | enable_serial_host_configure=yes | |
7282 | enable_serial_target_configure=yes | |
7283 | ;; | |
7284 | esac | |
7285 | ||
a0da8069 NN |
7286 | # These force 'configure's to be done one at a time, to avoid problems |
7287 | # with contention over a shared config.cache. | |
7288 | rm -f serdep.tmp | |
e6bfb94a | 7289 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7290 | olditem= |
1047cb91 | 7291 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7292 | for item in ${build_configdirs} ; do |
7293 | case ${olditem} in | |
7294 | "") ;; | |
e6bfb94a | 7295 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7296 | esac |
7297 | olditem=${item} | |
7298 | done | |
7299 | olditem= | |
1047cb91 | 7300 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7301 | for item in ${configdirs} ; do |
7302 | case ${olditem} in | |
7303 | "") ;; | |
e6bfb94a | 7304 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7305 | esac |
7306 | olditem=${item} | |
7307 | done | |
7308 | olditem= | |
1047cb91 | 7309 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7310 | for item in ${target_configdirs} ; do |
7311 | case ${olditem} in | |
7312 | "") ;; | |
e6bfb94a | 7313 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7314 | esac |
7315 | olditem=${item} | |
7316 | done | |
7317 | serialization_dependencies=serdep.tmp | |
7318 | ||
7319 | ||
e6bfb94a | 7320 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7321 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7322 | # might not want to pass down to subconfigures. The exception being |
7323 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7324 | # files altogether, and which should be passed on to subconfigures. | |
7325 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7326 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7327 | baseargs= |
65b4571a | 7328 | tbaseargs= |
c6b750e1 DJ |
7329 | keep_next=no |
7330 | skip_next=no | |
7331 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7332 | for ac_arg |
7333 | do | |
c6b750e1 DJ |
7334 | if test X"$skip_next" = X"yes"; then |
7335 | skip_next=no | |
7336 | continue | |
7337 | fi | |
7338 | if test X"$keep_next" = X"yes"; then | |
7339 | case $ac_arg in | |
7340 | *\'*) | |
7341 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7342 | esac | |
7343 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7344 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7345 | keep_next=no |
7346 | continue | |
7347 | fi | |
7348 | ||
7349 | # Handle separated arguments. Based on the logic generated by | |
7350 | # autoconf 2.59. | |
7351 | case $ac_arg in | |
7352 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7353 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7354 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7355 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7356 | separate_arg=no | |
7357 | ;; | |
7358 | -*) | |
7359 | separate_arg=yes | |
7360 | ;; | |
7361 | *) | |
7362 | separate_arg=no | |
7363 | ;; | |
7364 | esac | |
7365 | ||
65b4571a AO |
7366 | skip_targ=no |
7367 | case $ac_arg in | |
7368 | ||
7369 | --with-* | --without-*) | |
7370 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7371 | ||
7372 | case $libopt in | |
7373 | *[-_]include) | |
7374 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7375 | ;; | |
7376 | *[-_]lib) | |
7377 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7378 | ;; | |
7379 | *) | |
7380 | lib=$libopt | |
7381 | ;; | |
7382 | esac | |
7383 | ||
7384 | ||
7385 | case $lib in | |
1b6c0831 | 7386 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7387 | # If we're processing --with-$lib, --with-$lib-include or |
7388 | # --with-$lib-lib, for one of the libs above, and target is | |
7389 | # different from host, don't pass the current argument to any | |
7390 | # target library's configure. | |
7391 | if test x$is_cross_compiler = xyes; then | |
7392 | skip_targ=yes | |
7393 | fi | |
7394 | ;; | |
7395 | esac | |
7396 | ;; | |
7397 | esac | |
7398 | ||
c6b750e1 | 7399 | case "$ac_arg" in |
30167e0a NC |
7400 | --cache-file=/dev/null | \ |
7401 | -cache-file=/dev/null ) | |
7402 | # Handled here to avoid the test to skip args below. | |
7403 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7404 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7405 | # Assert: $separate_arg should always be no. |
7406 | keep_next=$separate_arg | |
7407 | ;; | |
c6b750e1 DJ |
7408 | --no*) |
7409 | continue | |
7410 | ;; | |
7411 | --c* | \ | |
7412 | --sr* | \ | |
7413 | --ho* | \ | |
7414 | --bu* | \ | |
7415 | --t* | \ | |
7416 | --program-* | \ | |
7417 | -cache_file* | \ | |
7418 | -srcdir* | \ | |
7419 | -host* | \ | |
7420 | -build* | \ | |
7421 | -target* | \ | |
7422 | -program-prefix* | \ | |
7423 | -program-suffix* | \ | |
7424 | -program-transform-name* ) | |
7425 | skip_next=$separate_arg | |
7426 | continue | |
7427 | ;; | |
7428 | -*) | |
7429 | # An option. Add it. | |
7430 | case $ac_arg in | |
7431 | *\'*) | |
7432 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7433 | esac | |
7434 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7435 | if test X"$skip_targ" = Xno; then |
7436 | tbaseargs="$tbaseargs '$ac_arg'" | |
7437 | fi | |
c6b750e1 DJ |
7438 | keep_next=$separate_arg |
7439 | ;; | |
7440 | *) | |
7441 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7442 | # pass it down; let the Makefile handle this. | |
7443 | continue | |
7444 | ;; | |
7445 | esac | |
7446 | done | |
7447 | # Remove the initial space we just introduced and, as these will be | |
7448 | # expanded by make, quote '$'. | |
7449 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7450 | |
f27d4f92 DJ |
7451 | # Add in --program-transform-name, after --program-prefix and |
7452 | # --program-suffix have been applied to it. Autoconf has already | |
7453 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7454 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7455 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7456 | # Also, because we want to override the logic in subdir configure scripts to |
7457 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7458 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7459 | ${program_transform_name} | |
7460 | EOF_SED | |
7461 | gcc_transform_name=`cat conftestsed.out` | |
7462 | rm -f conftestsed.out | |
7463 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7464 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7465 | if test "$silent" = yes; then |
7466 | baseargs="$baseargs --silent" | |
65b4571a | 7467 | tbaseargs="$tbaseargs --silent" |
2444379b | 7468 | fi |
34a0f3cf | 7469 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7470 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7471 | |
4074d5f2 RW |
7472 | # Record and document user additions to sub configure arguments. |
7473 | ||
7474 | ||
7475 | ||
7476 | ||
a0da8069 NN |
7477 | # For the build-side libraries, we just need to pretend we're native, |
7478 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7479 | # desired. We can't even use the same cache file for all build-side |
7480 | # libraries, as they're compiled differently; some with C, some with | |
7481 | # C++ or with different feature-enabling options. | |
7482 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7483 | |
7484 | # For host modules, accept cache file option, or specification as blank. | |
7485 | case "${cache_file}" in | |
7486 | "") # empty | |
7487 | cache_file_option="" ;; | |
7488 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7489 | cache_file_option="--cache-file=${cache_file}" ;; | |
7490 | *) # relative path | |
7491 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7492 | esac | |
7493 | ||
82252c06 NN |
7494 | # Host dirs don't like to share a cache file either, horribly enough. |
7495 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7496 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7497 | |
65b4571a | 7498 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7499 | |
7500 | # Passing a --with-cross-host argument lets the target libraries know | |
7501 | # whether they are being built with a cross-compiler or being built | |
7502 | # native. However, it would be better to use other mechanisms to make the | |
7503 | # sorts of decisions they want to make on this basis. Please consider | |
7504 | # this option to be deprecated. FIXME. | |
7505 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7506 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7507 | fi |
7508 | ||
afc0578d | 7509 | # Special user-friendly check for native x86_64-linux build, if |
7510 | # multilib is not explicitly enabled. | |
7511 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7512 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7513 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7514 | dev64=no |
7515 | echo "int main () { return 0; }" > conftest.c | |
7516 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7517 | if test $? = 0 ; then | |
7518 | if test -s conftest || test -s conftest.exe ; then | |
7519 | dev64=yes | |
7520 | fi | |
7521 | fi | |
7522 | rm -f conftest* | |
7523 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 7524 | 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 | 7525 | fi |
7526 | ;; | |
7527 | esac | |
7528 | ||
938d2b74 RW |
7529 | # Default to --enable-multilib. |
7530 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7531 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7532 | fi |
a0da8069 NN |
7533 | |
7534 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7535 | # changed from the earlier setting of with_newlib. | |
7536 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7537 | target_configargs="--with-newlib ${target_configargs}" | |
7538 | fi | |
7539 | ||
95036d20 NN |
7540 | # Different target subdirs use different values of certain variables |
7541 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7542 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7543 | # it doesn't automatically accept command-line overrides of them. | |
7544 | # This means it's not safe for target subdirs to share a cache file, | |
7545 | # which is disgusting, but there you have it. Hopefully this can be | |
7546 | # fixed in future. It's still worthwhile to use a cache file for each | |
7547 | # directory. I think. | |
7548 | ||
ae380b45 MS |
7549 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7550 | # We need to pass --target, as newer autoconf's requires consistency | |
7551 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7552 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7553 | |
a0da8069 NN |
7554 | FLAGS_FOR_TARGET= |
7555 | case " $target_configdirs " in | |
7556 | *" newlib "*) | |
7557 | case " $target_configargs " in | |
7558 | *" --with-newlib "*) | |
7559 | case "$target" in | |
1f53ca9a | 7560 | *-cygwin*) |
6d94c122 | 7561 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7562 | ;; |
a0da8069 NN |
7563 | esac |
7564 | ||
7565 | # If we're not building GCC, don't discard standard headers. | |
7566 | if test -d ${srcdir}/gcc; then | |
7567 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7568 | ||
7569 | if test "${build}" != "${host}"; then | |
7570 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7571 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7572 | # to it. This is right: we don't want to search that directory | |
7573 | # for binaries, but we want the header files in there, so add | |
7574 | # them explicitly. | |
e552509b | 7575 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7576 | |
7577 | # Someone might think of using the pre-installed headers on | |
7578 | # Canadian crosses, in case the installed compiler is not fully | |
7579 | # compatible with the compiler being built. In this case, it | |
7580 | # would be better to flag an error than risking having | |
7581 | # incompatible object files being constructed. We can't | |
7582 | # guarantee that an error will be flagged, but let's hope the | |
7583 | # compiler will do it, when presented with incompatible header | |
7584 | # files. | |
7585 | fi | |
7586 | fi | |
7587 | ||
7588 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7589 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7590 | # Here host == target, so we don't need to build gcc, |
7591 | # so we don't want to discard standard headers. | |
7592 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7593 | ;; | |
7594 | *) | |
7595 | # If we're building newlib, use its generic headers last, but search | |
7596 | # for any libc-related directories first (so make it the last -B | |
7597 | # switch). | |
7598 | 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 |
7599 | |
7600 | # If we're building libgloss, find the startup file, simulator library | |
7601 | # and linker script. | |
7602 | case " $target_configdirs " in | |
7603 | *" libgloss "*) | |
7604 | # Look for startup file, simulator library and maybe linker script. | |
7605 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7606 | # Look for libnosys.a in case the target needs it. | |
7607 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7608 | # Most targets have the linker script in the source directory. | |
7609 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7610 | ;; | |
7611 | esac | |
a0da8069 NN |
7612 | ;; |
7613 | esac | |
7614 | ;; | |
7615 | esac | |
7616 | ;; | |
7617 | esac | |
1f53ca9a | 7618 | |
45055374 | 7619 | case "$target" in |
1f53ca9a AO |
7620 | x86_64-*mingw* | *-w64-mingw*) |
7621 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7622 | # however, use a symlink named 'mingw' in ${prefix} . | |
7623 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7624 | ;; | |
7625 | *-mingw*) | |
7626 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7627 | 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' | |
7628 | ;; | |
45055374 | 7629 | esac |
a0da8069 | 7630 | |
5fbad20a DD |
7631 | # Allow the user to override the flags for |
7632 | # our build compiler if desired. | |
c66487f8 NC |
7633 | if test x"${build}" = x"${host}" ; then |
7634 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7635 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7636 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7637 | fi | |
5fbad20a | 7638 | |
a0da8069 NN |
7639 | # On Canadian crosses, we'll be searching the right directories for |
7640 | # the previously-installed cross compiler, so don't bother to add | |
7641 | # flags for directories within the install tree of the compiler | |
7642 | # being built; programs in there won't even run. | |
7643 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7644 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7645 | 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 |
7646 | fi |
7647 | ||
7648 | if test "x${use_gnu_ld}" = x && | |
7649 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7650 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7651 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7652 | fi |
7653 | ||
a481dbb7 DD |
7654 | # Search for other target-specific linker scripts and such. |
7655 | case "${target}" in | |
4e206d7e DB |
7656 | mep*) |
7657 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7658 | ;; | |
7659 | esac | |
7660 | ||
a0da8069 | 7661 | # Makefile fragments. |
3e707e94 PB |
7662 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7663 | do | |
7664 | eval fragval=\$$frag | |
7665 | if test $fragval != /dev/null; then | |
7666 | eval $frag=${srcdir}/$fragval | |
7667 | fi | |
7668 | done | |
a0da8069 NN |
7669 | |
7670 | ||
7671 | ||
7672 | ||
7673 | ||
7674 | # Miscellanea: directories, flags, etc. | |
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
3bbd2f8f | 7682 | |
6a9cf61e | 7683 | # Build module lists & subconfigure args. |
a0da8069 NN |
7684 | |
7685 | ||
7686 | ||
be01d343 PB |
7687 | # Host module lists & subconfigure args. |
7688 | ||
7689 | ||
7690 | ||
911e63d0 | 7691 | |
be01d343 PB |
7692 | # Target module lists & subconfigure args. |
7693 | ||
7694 | ||
7695 | ||
7696 | # Build tools. | |
7697 | ||
7698 | ||
7699 | ||
1576798e PB |
7700 | |
7701 | ||
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
be01d343 PB |
7713 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7714 | # on the build machine. These are used if the Makefile can't locate these | |
7715 | # programs in objdir. | |
7716 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7717 | ||
7718 | for ac_prog in 'bison -y' byacc yacc | |
7719 | do | |
c6b750e1 | 7720 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7721 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7723 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7724 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 7725 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7726 | else |
7727 | if test -n "$YACC"; then | |
7728 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7729 | else | |
c6b750e1 DJ |
7730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7731 | for as_dir in $PATH | |
7732 | do | |
7733 | IFS=$as_save_IFS | |
7734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7735 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7737 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7739 | break 2 |
7740 | fi | |
7741 | done | |
81ecdfbb RW |
7742 | done |
7743 | IFS=$as_save_IFS | |
c6b750e1 | 7744 | |
be01d343 PB |
7745 | fi |
7746 | fi | |
c6b750e1 | 7747 | YACC=$ac_cv_prog_YACC |
be01d343 | 7748 | if test -n "$YACC"; then |
81ecdfbb RW |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7750 | $as_echo "$YACC" >&6; } | |
be01d343 | 7751 | else |
81ecdfbb RW |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7753 | $as_echo "no" >&6; } | |
be01d343 PB |
7754 | fi |
7755 | ||
81ecdfbb | 7756 | |
c6b750e1 | 7757 | test -n "$YACC" && break |
be01d343 PB |
7758 | done |
7759 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7760 | ||
7761 | case " $build_configdirs " in | |
7762 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7763 | esac |
7764 | ||
7765 | for ac_prog in bison | |
7766 | do | |
c6b750e1 | 7767 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7768 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7770 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7771 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 7772 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7773 | else |
7774 | if test -n "$BISON"; then | |
7775 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7776 | else | |
c6b750e1 DJ |
7777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7778 | for as_dir in $PATH | |
7779 | do | |
7780 | IFS=$as_save_IFS | |
7781 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7782 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7784 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7786 | break 2 |
7787 | fi | |
7788 | done | |
81ecdfbb RW |
7789 | done |
7790 | IFS=$as_save_IFS | |
c6b750e1 | 7791 | |
be01d343 PB |
7792 | fi |
7793 | fi | |
c6b750e1 | 7794 | BISON=$ac_cv_prog_BISON |
be01d343 | 7795 | if test -n "$BISON"; then |
81ecdfbb RW |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7797 | $as_echo "$BISON" >&6; } | |
be01d343 | 7798 | else |
81ecdfbb RW |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7800 | $as_echo "no" >&6; } | |
be01d343 PB |
7801 | fi |
7802 | ||
81ecdfbb | 7803 | |
c6b750e1 | 7804 | test -n "$BISON" && break |
be01d343 PB |
7805 | done |
7806 | test -n "$BISON" || BISON="$MISSING bison" | |
7807 | ||
7808 | case " $build_configdirs " in | |
7809 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7810 | esac | |
7811 | ||
7812 | for ac_prog in gm4 gnum4 m4 | |
7813 | do | |
c6b750e1 | 7814 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7815 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7817 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7818 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 7819 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7820 | else |
7821 | if test -n "$M4"; then | |
7822 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7823 | else | |
c6b750e1 DJ |
7824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7825 | for as_dir in $PATH | |
7826 | do | |
7827 | IFS=$as_save_IFS | |
7828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7829 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7831 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7833 | break 2 |
7834 | fi | |
7835 | done | |
81ecdfbb RW |
7836 | done |
7837 | IFS=$as_save_IFS | |
c6b750e1 | 7838 | |
be01d343 PB |
7839 | fi |
7840 | fi | |
c6b750e1 | 7841 | M4=$ac_cv_prog_M4 |
be01d343 | 7842 | if test -n "$M4"; then |
81ecdfbb RW |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7844 | $as_echo "$M4" >&6; } | |
be01d343 | 7845 | else |
81ecdfbb RW |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7847 | $as_echo "no" >&6; } | |
be01d343 PB |
7848 | fi |
7849 | ||
81ecdfbb | 7850 | |
c6b750e1 | 7851 | test -n "$M4" && break |
be01d343 PB |
7852 | done |
7853 | test -n "$M4" || M4="$MISSING m4" | |
7854 | ||
7855 | case " $build_configdirs " in | |
7856 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7857 | esac | |
7858 | ||
7859 | for ac_prog in flex lex | |
7860 | do | |
c6b750e1 | 7861 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7862 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7864 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7865 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 7866 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7867 | else |
7868 | if test -n "$LEX"; then | |
7869 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7870 | else | |
c6b750e1 DJ |
7871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7872 | for as_dir in $PATH | |
7873 | do | |
7874 | IFS=$as_save_IFS | |
7875 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7876 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7878 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7880 | break 2 |
7881 | fi | |
7882 | done | |
81ecdfbb RW |
7883 | done |
7884 | IFS=$as_save_IFS | |
c6b750e1 | 7885 | |
be01d343 PB |
7886 | fi |
7887 | fi | |
c6b750e1 | 7888 | LEX=$ac_cv_prog_LEX |
be01d343 | 7889 | if test -n "$LEX"; then |
81ecdfbb RW |
7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7891 | $as_echo "$LEX" >&6; } | |
be01d343 | 7892 | else |
81ecdfbb RW |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7894 | $as_echo "no" >&6; } | |
be01d343 PB |
7895 | fi |
7896 | ||
81ecdfbb | 7897 | |
c6b750e1 | 7898 | test -n "$LEX" && break |
be01d343 PB |
7899 | done |
7900 | test -n "$LEX" || LEX="$MISSING flex" | |
7901 | ||
7902 | case " $build_configdirs " in | |
7903 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7904 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7905 | esac | |
7906 | ||
7907 | for ac_prog in flex | |
7908 | do | |
c6b750e1 | 7909 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7910 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7912 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7913 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 7914 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7915 | else |
7916 | if test -n "$FLEX"; then | |
7917 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7918 | else | |
c6b750e1 DJ |
7919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7920 | for as_dir in $PATH | |
7921 | do | |
7922 | IFS=$as_save_IFS | |
7923 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7924 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7926 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7928 | break 2 |
7929 | fi | |
7930 | done | |
81ecdfbb RW |
7931 | done |
7932 | IFS=$as_save_IFS | |
c6b750e1 | 7933 | |
be01d343 PB |
7934 | fi |
7935 | fi | |
c6b750e1 | 7936 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7937 | if test -n "$FLEX"; then |
81ecdfbb RW |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7939 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7940 | else |
81ecdfbb RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7942 | $as_echo "no" >&6; } | |
be01d343 PB |
7943 | fi |
7944 | ||
81ecdfbb | 7945 | |
c6b750e1 | 7946 | test -n "$FLEX" && break |
be01d343 PB |
7947 | done |
7948 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7949 | ||
7950 | case " $build_configdirs " in | |
7951 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7952 | esac | |
7953 | ||
7954 | for ac_prog in makeinfo | |
7955 | do | |
c6b750e1 | 7956 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7957 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7959 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7960 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 7961 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
7962 | else |
7963 | if test -n "$MAKEINFO"; then | |
7964 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7965 | else | |
c6b750e1 DJ |
7966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7967 | for as_dir in $PATH | |
7968 | do | |
7969 | IFS=$as_save_IFS | |
7970 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7971 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 7973 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7975 | break 2 |
7976 | fi | |
7977 | done | |
81ecdfbb RW |
7978 | done |
7979 | IFS=$as_save_IFS | |
c6b750e1 | 7980 | |
be01d343 PB |
7981 | fi |
7982 | fi | |
c6b750e1 | 7983 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7984 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7986 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7987 | else |
81ecdfbb RW |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7989 | $as_echo "no" >&6; } | |
be01d343 PB |
7990 | fi |
7991 | ||
81ecdfbb | 7992 | |
c6b750e1 | 7993 | test -n "$MAKEINFO" && break |
be01d343 PB |
7994 | done |
7995 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7996 | ||
7997 | case " $build_configdirs " in | |
7998 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7999 | *) | |
8000 | ||
10ad8ef3 | 8001 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8002 | # higher, else we use the "missing" dummy. |
8003 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8004 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8005 | : |
8006 | else | |
8007 | MAKEINFO="$MISSING makeinfo" | |
8008 | fi | |
8009 | ;; | |
8010 | ||
8011 | esac | |
a0da8069 | 8012 | |
be01d343 | 8013 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8014 | |
be01d343 PB |
8015 | for ac_prog in expect |
8016 | do | |
c6b750e1 | 8017 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8018 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8020 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8021 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 8022 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8023 | else |
8024 | if test -n "$EXPECT"; then | |
8025 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8026 | else | |
c6b750e1 DJ |
8027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8028 | for as_dir in $PATH | |
8029 | do | |
8030 | IFS=$as_save_IFS | |
8031 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8032 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8034 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8036 | break 2 |
8037 | fi | |
8038 | done | |
81ecdfbb RW |
8039 | done |
8040 | IFS=$as_save_IFS | |
c6b750e1 | 8041 | |
be01d343 PB |
8042 | fi |
8043 | fi | |
c6b750e1 | 8044 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8045 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8047 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8048 | else |
81ecdfbb RW |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8050 | $as_echo "no" >&6; } | |
be01d343 | 8051 | fi |
a0da8069 | 8052 | |
81ecdfbb | 8053 | |
c6b750e1 | 8054 | test -n "$EXPECT" && break |
be01d343 PB |
8055 | done |
8056 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8057 | |
be01d343 PB |
8058 | case " $configdirs " in |
8059 | *" expect "*) | |
8060 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8061 | ;; | |
8062 | esac | |
a0da8069 | 8063 | |
be01d343 PB |
8064 | for ac_prog in runtest |
8065 | do | |
c6b750e1 | 8066 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8067 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8069 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8070 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 8071 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8072 | else |
8073 | if test -n "$RUNTEST"; then | |
8074 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8075 | else | |
c6b750e1 DJ |
8076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8077 | for as_dir in $PATH | |
8078 | do | |
8079 | IFS=$as_save_IFS | |
8080 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8081 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8083 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8085 | break 2 |
8086 | fi | |
8087 | done | |
81ecdfbb RW |
8088 | done |
8089 | IFS=$as_save_IFS | |
c6b750e1 | 8090 | |
be01d343 PB |
8091 | fi |
8092 | fi | |
c6b750e1 | 8093 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8094 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8096 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8097 | else |
81ecdfbb RW |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8099 | $as_echo "no" >&6; } | |
be01d343 | 8100 | fi |
a0da8069 | 8101 | |
81ecdfbb | 8102 | |
c6b750e1 | 8103 | test -n "$RUNTEST" && break |
be01d343 PB |
8104 | done |
8105 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8106 | |
be01d343 PB |
8107 | case " $configdirs " in |
8108 | *" dejagnu "*) | |
6b89cc21 | 8109 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8110 | ;; |
8111 | esac | |
a0da8069 NN |
8112 | |
8113 | ||
a0da8069 | 8114 | # Host tools. |
859789af AC |
8115 | ncn_tool_prefix= |
8116 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8117 | ncn_target_tool_prefix= | |
8118 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8119 | ||
9a819804 AO |
8120 | |
8121 | ||
8122 | if test -n "$AR"; then | |
8123 | ac_cv_prog_AR=$AR | |
8124 | elif test -n "$ac_cv_prog_AR"; then | |
8125 | AR=$ac_cv_prog_AR | |
8126 | fi | |
8127 | ||
8128 | if test -n "$ac_cv_prog_AR"; then | |
8129 | for ncn_progname in ar; do | |
8130 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8131 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8133 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8134 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8135 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8136 | else |
8137 | if test -n "$AR"; then | |
8138 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8139 | else | |
8140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8141 | for as_dir in $PATH | |
8142 | do | |
8143 | IFS=$as_save_IFS | |
8144 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8145 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8147 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8149 | break 2 |
8150 | fi | |
8151 | done | |
81ecdfbb RW |
8152 | done |
8153 | IFS=$as_save_IFS | |
9a819804 AO |
8154 | |
8155 | fi | |
8156 | fi | |
8157 | AR=$ac_cv_prog_AR | |
8158 | if test -n "$AR"; then | |
81ecdfbb RW |
8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8160 | $as_echo "$AR" >&6; } | |
9a819804 | 8161 | else |
81ecdfbb RW |
8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8163 | $as_echo "no" >&6; } | |
9a819804 AO |
8164 | fi |
8165 | ||
81ecdfbb | 8166 | |
9a819804 AO |
8167 | done |
8168 | fi | |
8169 | ||
8170 | for ncn_progname in ar; do | |
05cbd757 PB |
8171 | if test -n "$ncn_tool_prefix"; then |
8172 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8173 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8175 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8176 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8177 | $as_echo_n "(cached) " >&6 |
859789af AC |
8178 | else |
8179 | if test -n "$AR"; then | |
8180 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8181 | else | |
c6b750e1 DJ |
8182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8183 | for as_dir in $PATH | |
8184 | do | |
8185 | IFS=$as_save_IFS | |
8186 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8187 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8189 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8191 | break 2 |
8192 | fi | |
8193 | done | |
81ecdfbb RW |
8194 | done |
8195 | IFS=$as_save_IFS | |
c6b750e1 | 8196 | |
859789af AC |
8197 | fi |
8198 | fi | |
c6b750e1 | 8199 | AR=$ac_cv_prog_AR |
859789af | 8200 | if test -n "$AR"; then |
81ecdfbb RW |
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8202 | $as_echo "$AR" >&6; } | |
859789af | 8203 | else |
81ecdfbb RW |
8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8205 | $as_echo "no" >&6; } | |
859789af AC |
8206 | fi |
8207 | ||
81ecdfbb | 8208 | |
05cbd757 PB |
8209 | fi |
8210 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8211 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8212 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8214 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8215 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 8216 | $as_echo_n "(cached) " >&6 |
859789af | 8217 | else |
05cbd757 PB |
8218 | if test -n "$AR"; then |
8219 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8220 | else |
c6b750e1 DJ |
8221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8222 | for as_dir in $PATH | |
8223 | do | |
8224 | IFS=$as_save_IFS | |
8225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8226 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8228 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8230 | break 2 |
8231 | fi | |
8232 | done | |
81ecdfbb RW |
8233 | done |
8234 | IFS=$as_save_IFS | |
c6b750e1 | 8235 | |
859789af AC |
8236 | fi |
8237 | fi | |
c6b750e1 | 8238 | AR=$ac_cv_prog_AR |
05cbd757 | 8239 | if test -n "$AR"; then |
81ecdfbb RW |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8241 | $as_echo "$AR" >&6; } | |
859789af | 8242 | else |
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8244 | $as_echo "no" >&6; } | |
859789af | 8245 | fi |
c6b750e1 | 8246 | |
81ecdfbb | 8247 | |
05cbd757 PB |
8248 | fi |
8249 | test -n "$ac_cv_prog_AR" && break | |
8250 | done | |
8251 | ||
8252 | if test -z "$ac_cv_prog_AR" ; then | |
8253 | set dummy ar | |
8254 | if test $build = $host ; then | |
8255 | AR="$2" | |
859789af | 8256 | else |
05cbd757 | 8257 | AR="${ncn_tool_prefix}$2" |
859789af | 8258 | fi |
859789af AC |
8259 | fi |
8260 | ||
9a819804 AO |
8261 | |
8262 | ||
8263 | if test -n "$AS"; then | |
8264 | ac_cv_prog_AS=$AS | |
8265 | elif test -n "$ac_cv_prog_AS"; then | |
8266 | AS=$ac_cv_prog_AS | |
8267 | fi | |
8268 | ||
8269 | if test -n "$ac_cv_prog_AS"; then | |
8270 | for ncn_progname in as; do | |
8271 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8272 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8274 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8275 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8276 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8277 | else |
8278 | if test -n "$AS"; then | |
8279 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8280 | else | |
8281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8282 | for as_dir in $PATH | |
8283 | do | |
8284 | IFS=$as_save_IFS | |
8285 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8286 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8288 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8290 | break 2 |
8291 | fi | |
8292 | done | |
81ecdfbb RW |
8293 | done |
8294 | IFS=$as_save_IFS | |
9a819804 AO |
8295 | |
8296 | fi | |
8297 | fi | |
8298 | AS=$ac_cv_prog_AS | |
8299 | if test -n "$AS"; then | |
81ecdfbb RW |
8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8301 | $as_echo "$AS" >&6; } | |
9a819804 | 8302 | else |
81ecdfbb RW |
8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8304 | $as_echo "no" >&6; } | |
9a819804 AO |
8305 | fi |
8306 | ||
81ecdfbb | 8307 | |
9a819804 AO |
8308 | done |
8309 | fi | |
8310 | ||
8311 | for ncn_progname in as; do | |
05cbd757 PB |
8312 | if test -n "$ncn_tool_prefix"; then |
8313 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8314 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8316 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8317 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8318 | $as_echo_n "(cached) " >&6 |
859789af AC |
8319 | else |
8320 | if test -n "$AS"; then | |
8321 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8322 | else |
8323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8324 | for as_dir in $PATH | |
8325 | do | |
8326 | IFS=$as_save_IFS | |
8327 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8328 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8330 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8332 | break 2 |
8333 | fi | |
8334 | done | |
81ecdfbb RW |
8335 | done |
8336 | IFS=$as_save_IFS | |
c6b750e1 | 8337 | |
859789af AC |
8338 | fi |
8339 | fi | |
c6b750e1 | 8340 | AS=$ac_cv_prog_AS |
859789af | 8341 | if test -n "$AS"; then |
81ecdfbb RW |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8343 | $as_echo "$AS" >&6; } | |
859789af | 8344 | else |
81ecdfbb RW |
8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8346 | $as_echo "no" >&6; } | |
859789af AC |
8347 | fi |
8348 | ||
81ecdfbb | 8349 | |
05cbd757 PB |
8350 | fi |
8351 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8352 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8353 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8356 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 8357 | $as_echo_n "(cached) " >&6 |
859789af | 8358 | else |
05cbd757 PB |
8359 | if test -n "$AS"; then |
8360 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8361 | else |
c6b750e1 DJ |
8362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8363 | for as_dir in $PATH | |
8364 | do | |
8365 | IFS=$as_save_IFS | |
8366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8367 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8369 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8371 | break 2 |
8372 | fi | |
8373 | done | |
81ecdfbb RW |
8374 | done |
8375 | IFS=$as_save_IFS | |
c6b750e1 | 8376 | |
859789af AC |
8377 | fi |
8378 | fi | |
c6b750e1 | 8379 | AS=$ac_cv_prog_AS |
05cbd757 | 8380 | if test -n "$AS"; then |
81ecdfbb RW |
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8382 | $as_echo "$AS" >&6; } | |
859789af | 8383 | else |
81ecdfbb RW |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8385 | $as_echo "no" >&6; } | |
859789af | 8386 | fi |
c6b750e1 | 8387 | |
81ecdfbb | 8388 | |
05cbd757 PB |
8389 | fi |
8390 | test -n "$ac_cv_prog_AS" && break | |
8391 | done | |
8392 | ||
8393 | if test -z "$ac_cv_prog_AS" ; then | |
8394 | set dummy as | |
8395 | if test $build = $host ; then | |
8396 | AS="$2" | |
859789af | 8397 | else |
05cbd757 | 8398 | AS="${ncn_tool_prefix}$2" |
859789af | 8399 | fi |
859789af AC |
8400 | fi |
8401 | ||
9a819804 AO |
8402 | |
8403 | ||
8404 | if test -n "$DLLTOOL"; then | |
8405 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8406 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8407 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8408 | fi | |
8409 | ||
8410 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8411 | for ncn_progname in dlltool; do | |
8412 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8413 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8415 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8416 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8417 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8418 | else |
8419 | if test -n "$DLLTOOL"; then | |
8420 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8421 | else | |
8422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8423 | for as_dir in $PATH | |
8424 | do | |
8425 | IFS=$as_save_IFS | |
8426 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8427 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8429 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8431 | break 2 |
8432 | fi | |
8433 | done | |
81ecdfbb RW |
8434 | done |
8435 | IFS=$as_save_IFS | |
9a819804 AO |
8436 | |
8437 | fi | |
8438 | fi | |
8439 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8440 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8442 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8443 | else |
81ecdfbb RW |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8445 | $as_echo "no" >&6; } | |
9a819804 AO |
8446 | fi |
8447 | ||
81ecdfbb | 8448 | |
9a819804 AO |
8449 | done |
8450 | fi | |
8451 | ||
8452 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8453 | if test -n "$ncn_tool_prefix"; then |
8454 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8455 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8457 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8458 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8459 | $as_echo_n "(cached) " >&6 |
859789af AC |
8460 | else |
8461 | if test -n "$DLLTOOL"; then | |
8462 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8463 | else | |
c6b750e1 DJ |
8464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8465 | for as_dir in $PATH | |
8466 | do | |
8467 | IFS=$as_save_IFS | |
8468 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8469 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8470 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8471 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8473 | break 2 |
8474 | fi | |
8475 | done | |
81ecdfbb RW |
8476 | done |
8477 | IFS=$as_save_IFS | |
c6b750e1 | 8478 | |
859789af AC |
8479 | fi |
8480 | fi | |
c6b750e1 | 8481 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8482 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8484 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8485 | else |
81ecdfbb RW |
8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8487 | $as_echo "no" >&6; } | |
859789af AC |
8488 | fi |
8489 | ||
81ecdfbb | 8490 | |
05cbd757 PB |
8491 | fi |
8492 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8493 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8494 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8496 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8497 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 8498 | $as_echo_n "(cached) " >&6 |
859789af | 8499 | else |
05cbd757 PB |
8500 | if test -n "$DLLTOOL"; then |
8501 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8502 | else |
c6b750e1 DJ |
8503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8504 | for as_dir in $PATH | |
8505 | do | |
8506 | IFS=$as_save_IFS | |
8507 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8508 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8510 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8512 | break 2 |
8513 | fi | |
8514 | done | |
81ecdfbb RW |
8515 | done |
8516 | IFS=$as_save_IFS | |
c6b750e1 | 8517 | |
859789af AC |
8518 | fi |
8519 | fi | |
c6b750e1 | 8520 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8521 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8523 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8524 | else |
81ecdfbb RW |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8526 | $as_echo "no" >&6; } | |
859789af | 8527 | fi |
c6b750e1 | 8528 | |
81ecdfbb | 8529 | |
05cbd757 PB |
8530 | fi |
8531 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8532 | done | |
8533 | ||
8534 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8535 | set dummy dlltool | |
8536 | if test $build = $host ; then | |
8537 | DLLTOOL="$2" | |
859789af | 8538 | else |
05cbd757 | 8539 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8540 | fi |
859789af AC |
8541 | fi |
8542 | ||
9a819804 AO |
8543 | |
8544 | ||
8545 | if test -n "$LD"; then | |
8546 | ac_cv_prog_LD=$LD | |
8547 | elif test -n "$ac_cv_prog_LD"; then | |
8548 | LD=$ac_cv_prog_LD | |
8549 | fi | |
8550 | ||
8551 | if test -n "$ac_cv_prog_LD"; then | |
8552 | for ncn_progname in ld; do | |
8553 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8554 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8556 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8557 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8558 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8559 | else |
8560 | if test -n "$LD"; then | |
8561 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8562 | else | |
8563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8564 | for as_dir in $PATH | |
8565 | do | |
8566 | IFS=$as_save_IFS | |
8567 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8568 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8570 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8572 | break 2 |
8573 | fi | |
8574 | done | |
81ecdfbb RW |
8575 | done |
8576 | IFS=$as_save_IFS | |
9a819804 AO |
8577 | |
8578 | fi | |
8579 | fi | |
8580 | LD=$ac_cv_prog_LD | |
8581 | if test -n "$LD"; then | |
81ecdfbb RW |
8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8583 | $as_echo "$LD" >&6; } | |
9a819804 | 8584 | else |
81ecdfbb RW |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8586 | $as_echo "no" >&6; } | |
9a819804 AO |
8587 | fi |
8588 | ||
81ecdfbb | 8589 | |
9a819804 AO |
8590 | done |
8591 | fi | |
8592 | ||
8593 | for ncn_progname in ld; do | |
05cbd757 PB |
8594 | if test -n "$ncn_tool_prefix"; then |
8595 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8596 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8598 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8599 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8600 | $as_echo_n "(cached) " >&6 |
859789af AC |
8601 | else |
8602 | if test -n "$LD"; then | |
8603 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8604 | else | |
c6b750e1 DJ |
8605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8606 | for as_dir in $PATH | |
8607 | do | |
8608 | IFS=$as_save_IFS | |
8609 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8610 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8611 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8612 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8614 | break 2 |
8615 | fi | |
8616 | done | |
81ecdfbb RW |
8617 | done |
8618 | IFS=$as_save_IFS | |
c6b750e1 | 8619 | |
859789af AC |
8620 | fi |
8621 | fi | |
c6b750e1 | 8622 | LD=$ac_cv_prog_LD |
859789af | 8623 | if test -n "$LD"; then |
81ecdfbb RW |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8625 | $as_echo "$LD" >&6; } | |
859789af | 8626 | else |
81ecdfbb RW |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8628 | $as_echo "no" >&6; } | |
859789af AC |
8629 | fi |
8630 | ||
81ecdfbb | 8631 | |
05cbd757 PB |
8632 | fi |
8633 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8634 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8635 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8637 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8638 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 8639 | $as_echo_n "(cached) " >&6 |
859789af | 8640 | else |
05cbd757 PB |
8641 | if test -n "$LD"; then |
8642 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8643 | else |
c6b750e1 DJ |
8644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8645 | for as_dir in $PATH | |
8646 | do | |
8647 | IFS=$as_save_IFS | |
8648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8649 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8651 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8653 | break 2 |
8654 | fi | |
8655 | done | |
81ecdfbb RW |
8656 | done |
8657 | IFS=$as_save_IFS | |
c6b750e1 | 8658 | |
859789af AC |
8659 | fi |
8660 | fi | |
c6b750e1 | 8661 | LD=$ac_cv_prog_LD |
05cbd757 | 8662 | if test -n "$LD"; then |
81ecdfbb RW |
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8664 | $as_echo "$LD" >&6; } | |
859789af | 8665 | else |
81ecdfbb RW |
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8667 | $as_echo "no" >&6; } | |
859789af | 8668 | fi |
c6b750e1 | 8669 | |
81ecdfbb | 8670 | |
05cbd757 PB |
8671 | fi |
8672 | test -n "$ac_cv_prog_LD" && break | |
8673 | done | |
8674 | ||
8675 | if test -z "$ac_cv_prog_LD" ; then | |
8676 | set dummy ld | |
8677 | if test $build = $host ; then | |
8678 | LD="$2" | |
859789af | 8679 | else |
05cbd757 | 8680 | LD="${ncn_tool_prefix}$2" |
859789af | 8681 | fi |
859789af AC |
8682 | fi |
8683 | ||
9a819804 AO |
8684 | |
8685 | ||
8686 | if test -n "$LIPO"; then | |
8687 | ac_cv_prog_LIPO=$LIPO | |
8688 | elif test -n "$ac_cv_prog_LIPO"; then | |
8689 | LIPO=$ac_cv_prog_LIPO | |
8690 | fi | |
8691 | ||
8692 | if test -n "$ac_cv_prog_LIPO"; then | |
8693 | for ncn_progname in lipo; do | |
8694 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8695 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8697 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8698 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8699 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8700 | else |
8701 | if test -n "$LIPO"; then | |
8702 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8703 | else | |
8704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8705 | for as_dir in $PATH | |
8706 | do | |
8707 | IFS=$as_save_IFS | |
8708 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8709 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8710 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8711 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8713 | break 2 |
8714 | fi | |
8715 | done | |
81ecdfbb RW |
8716 | done |
8717 | IFS=$as_save_IFS | |
9a819804 AO |
8718 | |
8719 | fi | |
8720 | fi | |
8721 | LIPO=$ac_cv_prog_LIPO | |
8722 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8724 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8725 | else |
81ecdfbb RW |
8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8727 | $as_echo "no" >&6; } | |
9a819804 AO |
8728 | fi |
8729 | ||
81ecdfbb | 8730 | |
9a819804 AO |
8731 | done |
8732 | fi | |
8733 | ||
8734 | for ncn_progname in lipo; do | |
be01d343 PB |
8735 | if test -n "$ncn_tool_prefix"; then |
8736 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8737 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8739 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8740 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8741 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8742 | else |
8743 | if test -n "$LIPO"; then | |
8744 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8745 | else | |
c6b750e1 DJ |
8746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8747 | for as_dir in $PATH | |
8748 | do | |
8749 | IFS=$as_save_IFS | |
8750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8751 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8753 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8755 | break 2 |
8756 | fi | |
8757 | done | |
81ecdfbb RW |
8758 | done |
8759 | IFS=$as_save_IFS | |
c6b750e1 | 8760 | |
be01d343 PB |
8761 | fi |
8762 | fi | |
c6b750e1 | 8763 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8764 | if test -n "$LIPO"; then |
81ecdfbb RW |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8766 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8767 | else |
81ecdfbb RW |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8769 | $as_echo "no" >&6; } | |
be01d343 PB |
8770 | fi |
8771 | ||
81ecdfbb | 8772 | |
be01d343 PB |
8773 | fi |
8774 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8776 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8778 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8779 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 8780 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
8781 | else |
8782 | if test -n "$LIPO"; then | |
8783 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8784 | else | |
c6b750e1 DJ |
8785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8786 | for as_dir in $PATH | |
8787 | do | |
8788 | IFS=$as_save_IFS | |
8789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8790 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 8792 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8794 | break 2 |
8795 | fi | |
8796 | done | |
81ecdfbb RW |
8797 | done |
8798 | IFS=$as_save_IFS | |
c6b750e1 | 8799 | |
be01d343 PB |
8800 | fi |
8801 | fi | |
c6b750e1 | 8802 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8803 | if test -n "$LIPO"; then |
81ecdfbb RW |
8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8805 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8806 | else |
81ecdfbb RW |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8808 | $as_echo "no" >&6; } | |
be01d343 | 8809 | fi |
c6b750e1 | 8810 | |
81ecdfbb | 8811 | |
be01d343 PB |
8812 | fi |
8813 | test -n "$ac_cv_prog_LIPO" && break | |
8814 | done | |
8815 | ||
8816 | if test -z "$ac_cv_prog_LIPO" ; then | |
8817 | set dummy lipo | |
8818 | if test $build = $host ; then | |
8819 | LIPO="$2" | |
8820 | else | |
8821 | LIPO="${ncn_tool_prefix}$2" | |
8822 | fi | |
8823 | fi | |
8824 | ||
9a819804 AO |
8825 | |
8826 | ||
8827 | if test -n "$NM"; then | |
8828 | ac_cv_prog_NM=$NM | |
8829 | elif test -n "$ac_cv_prog_NM"; then | |
8830 | NM=$ac_cv_prog_NM | |
8831 | fi | |
8832 | ||
8833 | if test -n "$ac_cv_prog_NM"; then | |
8834 | for ncn_progname in nm; do | |
8835 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8836 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8838 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8839 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8840 | $as_echo_n "(cached) " >&6 |
859789af AC |
8841 | else |
8842 | if test -n "$NM"; then | |
8843 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8844 | else | |
c6b750e1 DJ |
8845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8846 | for as_dir in $PATH | |
8847 | do | |
8848 | IFS=$as_save_IFS | |
8849 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8850 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8852 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8854 | break 2 |
8855 | fi | |
8856 | done | |
81ecdfbb RW |
8857 | done |
8858 | IFS=$as_save_IFS | |
c6b750e1 | 8859 | |
859789af AC |
8860 | fi |
8861 | fi | |
c6b750e1 | 8862 | NM=$ac_cv_prog_NM |
859789af | 8863 | if test -n "$NM"; then |
81ecdfbb RW |
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8865 | $as_echo "$NM" >&6; } | |
859789af | 8866 | else |
81ecdfbb RW |
8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8868 | $as_echo "no" >&6; } | |
859789af AC |
8869 | fi |
8870 | ||
81ecdfbb | 8871 | |
9a819804 AO |
8872 | done |
8873 | fi | |
8874 | ||
8875 | for ncn_progname in nm; do | |
8876 | if test -n "$ncn_tool_prefix"; then | |
8877 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8878 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8880 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8881 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8882 | $as_echo_n "(cached) " >&6 |
859789af | 8883 | else |
05cbd757 PB |
8884 | if test -n "$NM"; then |
8885 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8886 | else |
c6b750e1 DJ |
8887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8888 | for as_dir in $PATH | |
8889 | do | |
8890 | IFS=$as_save_IFS | |
8891 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8892 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8894 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8896 | break 2 |
8897 | fi | |
8898 | done | |
81ecdfbb RW |
8899 | done |
8900 | IFS=$as_save_IFS | |
c6b750e1 | 8901 | |
859789af AC |
8902 | fi |
8903 | fi | |
c6b750e1 | 8904 | NM=$ac_cv_prog_NM |
05cbd757 | 8905 | if test -n "$NM"; then |
81ecdfbb RW |
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8907 | $as_echo "$NM" >&6; } | |
859789af | 8908 | else |
81ecdfbb RW |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8910 | $as_echo "no" >&6; } | |
859789af | 8911 | fi |
c6b750e1 | 8912 | |
81ecdfbb | 8913 | |
05cbd757 | 8914 | fi |
9a819804 AO |
8915 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8916 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8917 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8919 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8920 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 8921 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8922 | else |
8923 | if test -n "$NM"; then | |
8924 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8925 | else | |
8926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8927 | for as_dir in $PATH | |
8928 | do | |
8929 | IFS=$as_save_IFS | |
8930 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8931 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8933 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8935 | break 2 |
8936 | fi | |
8937 | done | |
81ecdfbb RW |
8938 | done |
8939 | IFS=$as_save_IFS | |
9a819804 AO |
8940 | |
8941 | fi | |
8942 | fi | |
8943 | NM=$ac_cv_prog_NM | |
8944 | if test -n "$NM"; then | |
81ecdfbb RW |
8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8946 | $as_echo "$NM" >&6; } | |
9a819804 | 8947 | else |
81ecdfbb RW |
8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8949 | $as_echo "no" >&6; } | |
9a819804 AO |
8950 | fi |
8951 | ||
81ecdfbb | 8952 | |
9a819804 AO |
8953 | fi |
8954 | test -n "$ac_cv_prog_NM" && break | |
8955 | done | |
8956 | ||
8957 | if test -z "$ac_cv_prog_NM" ; then | |
8958 | set dummy nm | |
8959 | if test $build = $host ; then | |
8960 | NM="$2" | |
8961 | else | |
8962 | NM="${ncn_tool_prefix}$2" | |
8963 | fi | |
8964 | fi | |
8965 | ||
8966 | ||
8967 | ||
8968 | if test -n "$RANLIB"; then | |
8969 | ac_cv_prog_RANLIB=$RANLIB | |
8970 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8971 | RANLIB=$ac_cv_prog_RANLIB | |
8972 | fi | |
8973 | ||
8974 | if test -n "$ac_cv_prog_RANLIB"; then | |
8975 | for ncn_progname in ranlib; do | |
8976 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8977 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8979 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 8980 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 8981 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
8982 | else |
8983 | if test -n "$RANLIB"; then | |
8984 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8985 | else | |
8986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8987 | for as_dir in $PATH | |
8988 | do | |
8989 | IFS=$as_save_IFS | |
8990 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 8991 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 8992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 8993 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8995 | break 2 |
8996 | fi | |
8997 | done | |
81ecdfbb RW |
8998 | done |
8999 | IFS=$as_save_IFS | |
9a819804 AO |
9000 | |
9001 | fi | |
9002 | fi | |
9003 | RANLIB=$ac_cv_prog_RANLIB | |
9004 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9006 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9007 | else |
81ecdfbb RW |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9009 | $as_echo "no" >&6; } | |
9a819804 AO |
9010 | fi |
9011 | ||
81ecdfbb | 9012 | |
9a819804 AO |
9013 | done |
9014 | fi | |
859789af | 9015 | |
9a819804 | 9016 | for ncn_progname in ranlib; do |
05cbd757 PB |
9017 | if test -n "$ncn_tool_prefix"; then |
9018 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9019 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9021 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9022 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9023 | $as_echo_n "(cached) " >&6 |
859789af AC |
9024 | else |
9025 | if test -n "$RANLIB"; then | |
9026 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9027 | else | |
c6b750e1 DJ |
9028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9029 | for as_dir in $PATH | |
9030 | do | |
9031 | IFS=$as_save_IFS | |
9032 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9033 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9035 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9037 | break 2 |
9038 | fi | |
9039 | done | |
81ecdfbb RW |
9040 | done |
9041 | IFS=$as_save_IFS | |
c6b750e1 | 9042 | |
859789af AC |
9043 | fi |
9044 | fi | |
c6b750e1 | 9045 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9046 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9048 | $as_echo "$RANLIB" >&6; } | |
859789af | 9049 | else |
81ecdfbb RW |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9051 | $as_echo "no" >&6; } | |
859789af AC |
9052 | fi |
9053 | ||
81ecdfbb | 9054 | |
05cbd757 PB |
9055 | fi |
9056 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9057 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9058 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9060 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9061 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 9062 | $as_echo_n "(cached) " >&6 |
859789af | 9063 | else |
05cbd757 PB |
9064 | if test -n "$RANLIB"; then |
9065 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9066 | else |
c6b750e1 DJ |
9067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9068 | for as_dir in $PATH | |
9069 | do | |
9070 | IFS=$as_save_IFS | |
9071 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9072 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9074 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9076 | break 2 |
9077 | fi | |
9078 | done | |
81ecdfbb RW |
9079 | done |
9080 | IFS=$as_save_IFS | |
c6b750e1 | 9081 | |
859789af AC |
9082 | fi |
9083 | fi | |
c6b750e1 | 9084 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9085 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9087 | $as_echo "$RANLIB" >&6; } | |
859789af | 9088 | else |
81ecdfbb RW |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9090 | $as_echo "no" >&6; } | |
859789af | 9091 | fi |
c6b750e1 | 9092 | |
81ecdfbb | 9093 | |
859789af | 9094 | fi |
05cbd757 PB |
9095 | test -n "$ac_cv_prog_RANLIB" && break |
9096 | done | |
9097 | ||
9098 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9099 | RANLIB="true" |
859789af AC |
9100 | fi |
9101 | ||
9a819804 AO |
9102 | |
9103 | ||
9104 | if test -n "$STRIP"; then | |
9105 | ac_cv_prog_STRIP=$STRIP | |
9106 | elif test -n "$ac_cv_prog_STRIP"; then | |
9107 | STRIP=$ac_cv_prog_STRIP | |
9108 | fi | |
9109 | ||
9110 | if test -n "$ac_cv_prog_STRIP"; then | |
9111 | for ncn_progname in strip; do | |
9112 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9113 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9115 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9116 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9117 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9118 | else |
9119 | if test -n "$STRIP"; then | |
9120 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9121 | else | |
9122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9123 | for as_dir in $PATH | |
9124 | do | |
9125 | IFS=$as_save_IFS | |
9126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9127 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9129 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9131 | break 2 |
9132 | fi | |
9133 | done | |
81ecdfbb RW |
9134 | done |
9135 | IFS=$as_save_IFS | |
9a819804 AO |
9136 | |
9137 | fi | |
9138 | fi | |
9139 | STRIP=$ac_cv_prog_STRIP | |
9140 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9142 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9143 | else |
81ecdfbb RW |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9145 | $as_echo "no" >&6; } | |
9a819804 AO |
9146 | fi |
9147 | ||
81ecdfbb | 9148 | |
9a819804 AO |
9149 | done |
9150 | fi | |
9151 | ||
9152 | for ncn_progname in strip; do | |
be01d343 PB |
9153 | if test -n "$ncn_tool_prefix"; then |
9154 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9155 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9157 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9158 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9159 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9160 | else |
9161 | if test -n "$STRIP"; then | |
9162 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9163 | else | |
c6b750e1 DJ |
9164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9165 | for as_dir in $PATH | |
9166 | do | |
9167 | IFS=$as_save_IFS | |
9168 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9169 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9171 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9173 | break 2 |
9174 | fi | |
9175 | done | |
81ecdfbb RW |
9176 | done |
9177 | IFS=$as_save_IFS | |
c6b750e1 | 9178 | |
be01d343 PB |
9179 | fi |
9180 | fi | |
c6b750e1 | 9181 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9182 | if test -n "$STRIP"; then |
81ecdfbb RW |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9184 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9185 | else |
81ecdfbb RW |
9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9187 | $as_echo "no" >&6; } | |
be01d343 PB |
9188 | fi |
9189 | ||
81ecdfbb | 9190 | |
be01d343 PB |
9191 | fi |
9192 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9193 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9194 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9196 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9197 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 9198 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
9199 | else |
9200 | if test -n "$STRIP"; then | |
9201 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9202 | else | |
c6b750e1 DJ |
9203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9204 | for as_dir in $PATH | |
9205 | do | |
9206 | IFS=$as_save_IFS | |
9207 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9208 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9210 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9212 | break 2 |
9213 | fi | |
9214 | done | |
81ecdfbb RW |
9215 | done |
9216 | IFS=$as_save_IFS | |
c6b750e1 | 9217 | |
be01d343 PB |
9218 | fi |
9219 | fi | |
c6b750e1 | 9220 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9221 | if test -n "$STRIP"; then |
81ecdfbb RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9223 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9224 | else |
81ecdfbb RW |
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9226 | $as_echo "no" >&6; } | |
be01d343 | 9227 | fi |
c6b750e1 | 9228 | |
81ecdfbb | 9229 | |
be01d343 PB |
9230 | fi |
9231 | test -n "$ac_cv_prog_STRIP" && break | |
9232 | done | |
9233 | ||
9234 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9235 | STRIP="true" |
be01d343 PB |
9236 | fi |
9237 | ||
9a819804 AO |
9238 | |
9239 | ||
9240 | if test -n "$WINDRES"; then | |
9241 | ac_cv_prog_WINDRES=$WINDRES | |
9242 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9243 | WINDRES=$ac_cv_prog_WINDRES | |
9244 | fi | |
9245 | ||
9246 | if test -n "$ac_cv_prog_WINDRES"; then | |
9247 | for ncn_progname in windres; do | |
9248 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9249 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9251 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9252 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9253 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9254 | else |
9255 | if test -n "$WINDRES"; then | |
9256 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9257 | else | |
9258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9259 | for as_dir in $PATH | |
9260 | do | |
9261 | IFS=$as_save_IFS | |
9262 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9263 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9264 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9265 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9267 | break 2 |
9268 | fi | |
9269 | done | |
81ecdfbb RW |
9270 | done |
9271 | IFS=$as_save_IFS | |
9a819804 AO |
9272 | |
9273 | fi | |
9274 | fi | |
9275 | WINDRES=$ac_cv_prog_WINDRES | |
9276 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9278 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9279 | else |
81ecdfbb RW |
9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9281 | $as_echo "no" >&6; } | |
9a819804 AO |
9282 | fi |
9283 | ||
81ecdfbb | 9284 | |
9a819804 AO |
9285 | done |
9286 | fi | |
9287 | ||
9288 | for ncn_progname in windres; do | |
05cbd757 PB |
9289 | if test -n "$ncn_tool_prefix"; then |
9290 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9291 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9293 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9294 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9295 | $as_echo_n "(cached) " >&6 |
859789af AC |
9296 | else |
9297 | if test -n "$WINDRES"; then | |
9298 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9299 | else | |
c6b750e1 DJ |
9300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9301 | for as_dir in $PATH | |
9302 | do | |
9303 | IFS=$as_save_IFS | |
9304 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9305 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9306 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9307 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9309 | break 2 |
9310 | fi | |
9311 | done | |
81ecdfbb RW |
9312 | done |
9313 | IFS=$as_save_IFS | |
c6b750e1 | 9314 | |
859789af AC |
9315 | fi |
9316 | fi | |
c6b750e1 | 9317 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9318 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9320 | $as_echo "$WINDRES" >&6; } | |
859789af | 9321 | else |
81ecdfbb RW |
9322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9323 | $as_echo "no" >&6; } | |
859789af AC |
9324 | fi |
9325 | ||
81ecdfbb | 9326 | |
05cbd757 PB |
9327 | fi |
9328 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9329 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9330 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9332 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9333 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 9334 | $as_echo_n "(cached) " >&6 |
859789af | 9335 | else |
05cbd757 PB |
9336 | if test -n "$WINDRES"; then |
9337 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9338 | else |
c6b750e1 DJ |
9339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9340 | for as_dir in $PATH | |
9341 | do | |
9342 | IFS=$as_save_IFS | |
9343 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9344 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9346 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9348 | break 2 |
9349 | fi | |
9350 | done | |
81ecdfbb RW |
9351 | done |
9352 | IFS=$as_save_IFS | |
c6b750e1 | 9353 | |
859789af AC |
9354 | fi |
9355 | fi | |
c6b750e1 | 9356 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9357 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9359 | $as_echo "$WINDRES" >&6; } | |
859789af | 9360 | else |
81ecdfbb RW |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9362 | $as_echo "no" >&6; } | |
859789af | 9363 | fi |
c6b750e1 | 9364 | |
81ecdfbb | 9365 | |
05cbd757 PB |
9366 | fi |
9367 | test -n "$ac_cv_prog_WINDRES" && break | |
9368 | done | |
9369 | ||
9370 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9371 | set dummy windres | |
9372 | if test $build = $host ; then | |
9373 | WINDRES="$2" | |
859789af | 9374 | else |
05cbd757 | 9375 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9376 | fi |
859789af AC |
9377 | fi |
9378 | ||
9a819804 AO |
9379 | |
9380 | ||
0c24b341 NC |
9381 | if test -n "$WINDMC"; then |
9382 | ac_cv_prog_WINDMC=$WINDMC | |
9383 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9384 | WINDMC=$ac_cv_prog_WINDMC | |
9385 | fi | |
9386 | ||
9387 | if test -n "$ac_cv_prog_WINDMC"; then | |
9388 | for ncn_progname in windmc; do | |
9389 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9390 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9392 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9393 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9394 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9395 | else |
9396 | if test -n "$WINDMC"; then | |
9397 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9398 | else | |
9399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9400 | for as_dir in $PATH | |
9401 | do | |
9402 | IFS=$as_save_IFS | |
9403 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9404 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9406 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9408 | break 2 |
9409 | fi | |
9410 | done | |
81ecdfbb RW |
9411 | done |
9412 | IFS=$as_save_IFS | |
0c24b341 NC |
9413 | |
9414 | fi | |
9415 | fi | |
9416 | WINDMC=$ac_cv_prog_WINDMC | |
9417 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9419 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9420 | else |
81ecdfbb RW |
9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9422 | $as_echo "no" >&6; } | |
0c24b341 NC |
9423 | fi |
9424 | ||
81ecdfbb | 9425 | |
0c24b341 NC |
9426 | done |
9427 | fi | |
9428 | ||
9429 | for ncn_progname in windmc; do | |
9430 | if test -n "$ncn_tool_prefix"; then | |
9431 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9432 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9434 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9435 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9436 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9437 | else |
9438 | if test -n "$WINDMC"; then | |
9439 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9440 | else | |
9441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9442 | for as_dir in $PATH | |
9443 | do | |
9444 | IFS=$as_save_IFS | |
9445 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9446 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9448 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9450 | break 2 |
9451 | fi | |
9452 | done | |
81ecdfbb RW |
9453 | done |
9454 | IFS=$as_save_IFS | |
0c24b341 NC |
9455 | |
9456 | fi | |
9457 | fi | |
9458 | WINDMC=$ac_cv_prog_WINDMC | |
9459 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9461 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9462 | else |
81ecdfbb RW |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9464 | $as_echo "no" >&6; } | |
0c24b341 NC |
9465 | fi |
9466 | ||
81ecdfbb | 9467 | |
0c24b341 NC |
9468 | fi |
9469 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9470 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9471 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9473 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9474 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 9475 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
9476 | else |
9477 | if test -n "$WINDMC"; then | |
9478 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9479 | else | |
9480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9481 | for as_dir in $PATH | |
9482 | do | |
9483 | IFS=$as_save_IFS | |
9484 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9485 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9486 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 9487 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9489 | break 2 |
9490 | fi | |
9491 | done | |
81ecdfbb RW |
9492 | done |
9493 | IFS=$as_save_IFS | |
0c24b341 NC |
9494 | |
9495 | fi | |
9496 | fi | |
9497 | WINDMC=$ac_cv_prog_WINDMC | |
9498 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9500 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9501 | else |
81ecdfbb RW |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9503 | $as_echo "no" >&6; } | |
0c24b341 NC |
9504 | fi |
9505 | ||
81ecdfbb | 9506 | |
0c24b341 NC |
9507 | fi |
9508 | test -n "$ac_cv_prog_WINDMC" && break | |
9509 | done | |
9510 | ||
9511 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9512 | set dummy windmc | |
9513 | if test $build = $host ; then | |
9514 | WINDMC="$2" | |
9515 | else | |
9516 | WINDMC="${ncn_tool_prefix}$2" | |
9517 | fi | |
9518 | fi | |
9519 | ||
9520 | ||
9521 | ||
9a819804 AO |
9522 | if test -n "$OBJCOPY"; then |
9523 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9524 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9525 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9526 | fi | |
9527 | ||
9528 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9529 | for ncn_progname in objcopy; do | |
9530 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9531 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9533 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9534 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9535 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9536 | else |
9537 | if test -n "$OBJCOPY"; then | |
9538 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9539 | else | |
9540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9541 | for as_dir in $PATH | |
9542 | do | |
9543 | IFS=$as_save_IFS | |
9544 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9545 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9547 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9549 | break 2 |
9550 | fi | |
9551 | done | |
81ecdfbb RW |
9552 | done |
9553 | IFS=$as_save_IFS | |
9a819804 AO |
9554 | |
9555 | fi | |
9556 | fi | |
9557 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9558 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9560 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9561 | else |
81ecdfbb RW |
9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9563 | $as_echo "no" >&6; } | |
9a819804 AO |
9564 | fi |
9565 | ||
81ecdfbb | 9566 | |
9a819804 AO |
9567 | done |
9568 | fi | |
9569 | ||
9570 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9571 | if test -n "$ncn_tool_prefix"; then |
9572 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9573 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9575 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9576 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9577 | $as_echo_n "(cached) " >&6 |
859789af AC |
9578 | else |
9579 | if test -n "$OBJCOPY"; then | |
9580 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9581 | else | |
c6b750e1 DJ |
9582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9583 | for as_dir in $PATH | |
9584 | do | |
9585 | IFS=$as_save_IFS | |
9586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9587 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9589 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9591 | break 2 |
9592 | fi | |
9593 | done | |
81ecdfbb RW |
9594 | done |
9595 | IFS=$as_save_IFS | |
c6b750e1 | 9596 | |
859789af AC |
9597 | fi |
9598 | fi | |
c6b750e1 | 9599 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9600 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9602 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9603 | else |
81ecdfbb RW |
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9605 | $as_echo "no" >&6; } | |
859789af AC |
9606 | fi |
9607 | ||
81ecdfbb | 9608 | |
05cbd757 PB |
9609 | fi |
9610 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9611 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9612 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9614 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9615 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 9616 | $as_echo_n "(cached) " >&6 |
859789af | 9617 | else |
05cbd757 PB |
9618 | if test -n "$OBJCOPY"; then |
9619 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9620 | else |
c6b750e1 DJ |
9621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9622 | for as_dir in $PATH | |
9623 | do | |
9624 | IFS=$as_save_IFS | |
9625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9626 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9628 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9630 | break 2 |
9631 | fi | |
9632 | done | |
81ecdfbb RW |
9633 | done |
9634 | IFS=$as_save_IFS | |
c6b750e1 | 9635 | |
859789af AC |
9636 | fi |
9637 | fi | |
c6b750e1 | 9638 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9639 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9641 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9642 | else |
81ecdfbb RW |
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9644 | $as_echo "no" >&6; } | |
859789af | 9645 | fi |
c6b750e1 | 9646 | |
81ecdfbb | 9647 | |
05cbd757 PB |
9648 | fi |
9649 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9650 | done | |
9651 | ||
9652 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9653 | set dummy objcopy | |
9654 | if test $build = $host ; then | |
9655 | OBJCOPY="$2" | |
859789af | 9656 | else |
05cbd757 | 9657 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9658 | fi |
859789af AC |
9659 | fi |
9660 | ||
9a819804 AO |
9661 | |
9662 | ||
9663 | if test -n "$OBJDUMP"; then | |
9664 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9665 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9666 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9667 | fi | |
9668 | ||
9669 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9670 | for ncn_progname in objdump; do | |
9671 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9672 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9674 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9675 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9676 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9677 | else |
9678 | if test -n "$OBJDUMP"; then | |
9679 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9680 | else | |
9681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9682 | for as_dir in $PATH | |
9683 | do | |
9684 | IFS=$as_save_IFS | |
9685 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9686 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9688 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9690 | break 2 |
9691 | fi | |
9692 | done | |
81ecdfbb RW |
9693 | done |
9694 | IFS=$as_save_IFS | |
9a819804 AO |
9695 | |
9696 | fi | |
9697 | fi | |
9698 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9699 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9701 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9702 | else |
81ecdfbb RW |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9704 | $as_echo "no" >&6; } | |
9a819804 AO |
9705 | fi |
9706 | ||
81ecdfbb | 9707 | |
9a819804 AO |
9708 | done |
9709 | fi | |
9710 | ||
9711 | for ncn_progname in objdump; do | |
05cbd757 PB |
9712 | if test -n "$ncn_tool_prefix"; then |
9713 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9714 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9716 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9717 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9718 | $as_echo_n "(cached) " >&6 |
859789af AC |
9719 | else |
9720 | if test -n "$OBJDUMP"; then | |
9721 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9722 | else | |
c6b750e1 DJ |
9723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9724 | for as_dir in $PATH | |
9725 | do | |
9726 | IFS=$as_save_IFS | |
9727 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9728 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9730 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9732 | break 2 |
9733 | fi | |
9734 | done | |
81ecdfbb RW |
9735 | done |
9736 | IFS=$as_save_IFS | |
c6b750e1 | 9737 | |
859789af AC |
9738 | fi |
9739 | fi | |
c6b750e1 | 9740 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9741 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9743 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9744 | else |
81ecdfbb RW |
9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9746 | $as_echo "no" >&6; } | |
859789af AC |
9747 | fi |
9748 | ||
81ecdfbb | 9749 | |
05cbd757 PB |
9750 | fi |
9751 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9752 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9753 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9755 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9756 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 9757 | $as_echo_n "(cached) " >&6 |
859789af | 9758 | else |
05cbd757 PB |
9759 | if test -n "$OBJDUMP"; then |
9760 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9761 | else |
c6b750e1 DJ |
9762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9763 | for as_dir in $PATH | |
9764 | do | |
9765 | IFS=$as_save_IFS | |
9766 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9767 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 9769 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9771 | break 2 |
9772 | fi | |
9773 | done | |
81ecdfbb RW |
9774 | done |
9775 | IFS=$as_save_IFS | |
c6b750e1 | 9776 | |
859789af AC |
9777 | fi |
9778 | fi | |
c6b750e1 | 9779 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9780 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9782 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9783 | else |
81ecdfbb RW |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9785 | $as_echo "no" >&6; } | |
859789af | 9786 | fi |
c6b750e1 | 9787 | |
81ecdfbb | 9788 | |
05cbd757 PB |
9789 | fi |
9790 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9791 | done | |
9792 | ||
9793 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9794 | set dummy objdump | |
9795 | if test $build = $host ; then | |
9796 | OBJDUMP="$2" | |
859789af | 9797 | else |
05cbd757 | 9798 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9799 | fi |
859789af AC |
9800 | fi |
9801 | ||
a0da8069 NN |
9802 | |
9803 | ||
b121d7d4 DD |
9804 | if test -n "$READELF"; then |
9805 | ac_cv_prog_READELF=$READELF | |
9806 | elif test -n "$ac_cv_prog_READELF"; then | |
9807 | READELF=$ac_cv_prog_READELF | |
9808 | fi | |
9809 | ||
9810 | if test -n "$ac_cv_prog_READELF"; then | |
9811 | for ncn_progname in readelf; do | |
9812 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9813 | set dummy ${ncn_progname}; ac_word=$2 | |
9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9815 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9816 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9817 | $as_echo_n "(cached) " >&6 |
9818 | else | |
9819 | if test -n "$READELF"; then | |
9820 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9821 | else | |
9822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9823 | for as_dir in $PATH | |
9824 | do | |
9825 | IFS=$as_save_IFS | |
9826 | test -z "$as_dir" && as_dir=. | |
9827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9829 | ac_cv_prog_READELF="${ncn_progname}" |
9830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9831 | break 2 | |
9832 | fi | |
9833 | done | |
9834 | done | |
9835 | IFS=$as_save_IFS | |
9836 | ||
9837 | fi | |
9838 | fi | |
9839 | READELF=$ac_cv_prog_READELF | |
9840 | if test -n "$READELF"; then | |
9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9842 | $as_echo "$READELF" >&6; } | |
9843 | else | |
9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9845 | $as_echo "no" >&6; } | |
9846 | fi | |
9847 | ||
9848 | ||
9849 | done | |
9850 | fi | |
9851 | ||
9852 | for ncn_progname in readelf; do | |
9853 | if test -n "$ncn_tool_prefix"; then | |
9854 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9855 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9857 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9858 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9859 | $as_echo_n "(cached) " >&6 |
9860 | else | |
9861 | if test -n "$READELF"; then | |
9862 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9863 | else | |
9864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9865 | for as_dir in $PATH | |
9866 | do | |
9867 | IFS=$as_save_IFS | |
9868 | test -z "$as_dir" && as_dir=. | |
9869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9871 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
9872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9873 | break 2 | |
9874 | fi | |
9875 | done | |
9876 | done | |
9877 | IFS=$as_save_IFS | |
9878 | ||
9879 | fi | |
9880 | fi | |
9881 | READELF=$ac_cv_prog_READELF | |
9882 | if test -n "$READELF"; then | |
9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9884 | $as_echo "$READELF" >&6; } | |
9885 | else | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9887 | $as_echo "no" >&6; } | |
9888 | fi | |
9889 | ||
9890 | ||
9891 | fi | |
9892 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9893 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9894 | set dummy ${ncn_progname}; ac_word=$2 | |
9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9896 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9897 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
9898 | $as_echo_n "(cached) " >&6 |
9899 | else | |
9900 | if test -n "$READELF"; then | |
9901 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9902 | else | |
9903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9904 | for as_dir in $PATH | |
9905 | do | |
9906 | IFS=$as_save_IFS | |
9907 | test -z "$as_dir" && as_dir=. | |
9908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 9909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
9910 | ac_cv_prog_READELF="${ncn_progname}" |
9911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9912 | break 2 | |
9913 | fi | |
9914 | done | |
9915 | done | |
9916 | IFS=$as_save_IFS | |
9917 | ||
9918 | fi | |
9919 | fi | |
9920 | READELF=$ac_cv_prog_READELF | |
9921 | if test -n "$READELF"; then | |
9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9923 | $as_echo "$READELF" >&6; } | |
9924 | else | |
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9926 | $as_echo "no" >&6; } | |
9927 | fi | |
9928 | ||
9929 | ||
9930 | fi | |
9931 | test -n "$ac_cv_prog_READELF" && break | |
9932 | done | |
9933 | ||
9934 | if test -z "$ac_cv_prog_READELF" ; then | |
9935 | set dummy readelf | |
9936 | if test $build = $host ; then | |
9937 | READELF="$2" | |
9938 | else | |
9939 | READELF="${ncn_tool_prefix}$2" | |
9940 | fi | |
9941 | fi | |
9942 | ||
9943 | ||
9944 | ||
a0da8069 NN |
9945 | |
9946 | ||
9947 | ||
be01d343 | 9948 | # Target tools. |
c6b750e1 | 9949 | |
81ecdfbb RW |
9950 | # Check whether --with-build-time-tools was given. |
9951 | if test "${with_build_time_tools+set}" = set; then : | |
9952 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9953 | x/*) ;; |
9954 | *) | |
9955 | with_build_time_tools= | |
81ecdfbb RW |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9957 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9958 | ;; |
9959 | esac | |
859789af | 9960 | else |
2429c060 | 9961 | with_build_time_tools= |
81ecdfbb RW |
9962 | fi |
9963 | ||
859789af | 9964 | |
9a819804 AO |
9965 | |
9966 | ||
9967 | if test -n "$CC_FOR_TARGET"; then | |
9968 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9969 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9970 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9971 | fi | |
9972 | ||
9973 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9974 | for ncn_progname in cc gcc; do | |
9975 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9976 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 9979 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 9980 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
9981 | else |
9982 | if test -n "$CC_FOR_TARGET"; then | |
9983 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9984 | else | |
9985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9986 | for as_dir in $PATH | |
9987 | do | |
9988 | IFS=$as_save_IFS | |
9989 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 9990 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 9991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 9992 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9994 | break 2 |
9995 | fi | |
9996 | done | |
81ecdfbb RW |
9997 | done |
9998 | IFS=$as_save_IFS | |
9a819804 AO |
9999 | |
10000 | fi | |
10001 | fi | |
10002 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10003 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10005 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10006 | else |
81ecdfbb RW |
10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10008 | $as_echo "no" >&6; } | |
9a819804 AO |
10009 | fi |
10010 | ||
81ecdfbb | 10011 | |
9a819804 AO |
10012 | done |
10013 | fi | |
10014 | ||
10015 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10016 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10018 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10019 | if test -x $with_build_time_tools/${ncn_progname}; then |
10020 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10022 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10023 | break |
2429c060 | 10024 | else |
81ecdfbb RW |
10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10026 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10027 | fi |
10028 | done | |
55db4b87 PB |
10029 | fi |
10030 | ||
2429c060 PB |
10031 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10032 | for ncn_progname in cc gcc; do | |
10033 | if test -n "$ncn_target_tool_prefix"; then | |
10034 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10035 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10037 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10038 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10039 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10040 | else |
10041 | if test -n "$CC_FOR_TARGET"; then | |
10042 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10043 | else | |
c6b750e1 DJ |
10044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10045 | for as_dir in $PATH | |
10046 | do | |
10047 | IFS=$as_save_IFS | |
10048 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10049 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10051 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10053 | break 2 |
10054 | fi | |
10055 | done | |
81ecdfbb RW |
10056 | done |
10057 | IFS=$as_save_IFS | |
c6b750e1 | 10058 | |
55db4b87 PB |
10059 | fi |
10060 | fi | |
c6b750e1 | 10061 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10062 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10064 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10065 | else |
81ecdfbb RW |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10067 | $as_echo "no" >&6; } | |
55db4b87 PB |
10068 | fi |
10069 | ||
81ecdfbb | 10070 | |
2429c060 PB |
10071 | fi |
10072 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10073 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10074 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10076 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10077 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 10078 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10079 | else |
05cbd757 PB |
10080 | if test -n "$CC_FOR_TARGET"; then |
10081 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10082 | else |
c6b750e1 DJ |
10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10084 | for as_dir in $PATH | |
10085 | do | |
10086 | IFS=$as_save_IFS | |
10087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10088 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10090 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10092 | break 2 |
10093 | fi | |
10094 | done | |
81ecdfbb RW |
10095 | done |
10096 | IFS=$as_save_IFS | |
c6b750e1 | 10097 | |
55db4b87 PB |
10098 | fi |
10099 | fi | |
c6b750e1 | 10100 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10101 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10103 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10104 | else |
81ecdfbb RW |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10106 | $as_echo "no" >&6; } | |
55db4b87 | 10107 | fi |
c6b750e1 | 10108 | |
81ecdfbb | 10109 | |
2429c060 PB |
10110 | fi |
10111 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10112 | done | |
10113 | fi | |
c6b750e1 | 10114 | |
05cbd757 PB |
10115 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10116 | set dummy cc gcc | |
10117 | if test $build = $target ; then | |
10118 | CC_FOR_TARGET="$2" | |
55db4b87 | 10119 | else |
05cbd757 | 10120 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10121 | fi |
d3f5afc4 MS |
10122 | else |
10123 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10124 | fi |
10125 | ||
9a819804 AO |
10126 | |
10127 | ||
10128 | if test -n "$CXX_FOR_TARGET"; then | |
10129 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10130 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10131 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10132 | fi | |
10133 | ||
10134 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10135 | for ncn_progname in c++ g++ cxx gxx; do | |
10136 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10137 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10139 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10140 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10141 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10142 | else |
10143 | if test -n "$CXX_FOR_TARGET"; then | |
10144 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10145 | else | |
10146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10147 | for as_dir in $PATH | |
10148 | do | |
10149 | IFS=$as_save_IFS | |
10150 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10151 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10153 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10155 | break 2 |
10156 | fi | |
10157 | done | |
81ecdfbb RW |
10158 | done |
10159 | IFS=$as_save_IFS | |
9a819804 AO |
10160 | |
10161 | fi | |
10162 | fi | |
10163 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10164 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10166 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10167 | else |
81ecdfbb RW |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10169 | $as_echo "no" >&6; } | |
9a819804 AO |
10170 | fi |
10171 | ||
81ecdfbb | 10172 | |
9a819804 AO |
10173 | done |
10174 | fi | |
10175 | ||
10176 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10177 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10179 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10180 | if test -x $with_build_time_tools/${ncn_progname}; then |
10181 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10183 | $as_echo "yes" >&6; } | |
2429c060 PB |
10184 | break |
10185 | else | |
81ecdfbb RW |
10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10187 | $as_echo "no" >&6; } | |
2429c060 PB |
10188 | fi |
10189 | done | |
10190 | fi | |
10191 | ||
10192 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10193 | for ncn_progname in c++ g++ cxx gxx; do | |
10194 | if test -n "$ncn_target_tool_prefix"; then | |
10195 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10196 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10198 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10199 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10200 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10201 | else |
10202 | if test -n "$CXX_FOR_TARGET"; then | |
10203 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10204 | else | |
c6b750e1 DJ |
10205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10206 | for as_dir in $PATH | |
10207 | do | |
10208 | IFS=$as_save_IFS | |
10209 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10210 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10212 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10214 | break 2 |
10215 | fi | |
10216 | done | |
81ecdfbb RW |
10217 | done |
10218 | IFS=$as_save_IFS | |
c6b750e1 | 10219 | |
55db4b87 PB |
10220 | fi |
10221 | fi | |
c6b750e1 | 10222 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10223 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10225 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10226 | else |
81ecdfbb RW |
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10228 | $as_echo "no" >&6; } | |
55db4b87 PB |
10229 | fi |
10230 | ||
81ecdfbb | 10231 | |
2429c060 PB |
10232 | fi |
10233 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10234 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10235 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10237 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10238 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 10239 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10240 | else |
05cbd757 PB |
10241 | if test -n "$CXX_FOR_TARGET"; then |
10242 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10243 | else |
c6b750e1 DJ |
10244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10245 | for as_dir in $PATH | |
10246 | do | |
10247 | IFS=$as_save_IFS | |
10248 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10249 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10251 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10253 | break 2 |
10254 | fi | |
10255 | done | |
81ecdfbb RW |
10256 | done |
10257 | IFS=$as_save_IFS | |
c6b750e1 | 10258 | |
55db4b87 PB |
10259 | fi |
10260 | fi | |
c6b750e1 | 10261 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10262 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10264 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10265 | else |
81ecdfbb RW |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10267 | $as_echo "no" >&6; } | |
55db4b87 | 10268 | fi |
c6b750e1 | 10269 | |
81ecdfbb | 10270 | |
2429c060 PB |
10271 | fi |
10272 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10273 | done | |
10274 | fi | |
c6b750e1 | 10275 | |
05cbd757 PB |
10276 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10277 | set dummy c++ g++ cxx gxx | |
10278 | if test $build = $target ; then | |
10279 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10280 | else |
05cbd757 | 10281 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10282 | fi |
d3f5afc4 MS |
10283 | else |
10284 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10285 | fi |
10286 | ||
9a819804 AO |
10287 | |
10288 | ||
10289 | if test -n "$GCC_FOR_TARGET"; then | |
10290 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10291 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10292 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10293 | fi | |
10294 | ||
10295 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10296 | for ncn_progname in gcc; do | |
10297 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10298 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10300 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10301 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10302 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10303 | else |
10304 | if test -n "$GCC_FOR_TARGET"; then | |
10305 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10306 | else | |
10307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10308 | for as_dir in $PATH | |
10309 | do | |
10310 | IFS=$as_save_IFS | |
10311 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10312 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10314 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10316 | break 2 |
10317 | fi | |
10318 | done | |
81ecdfbb RW |
10319 | done |
10320 | IFS=$as_save_IFS | |
9a819804 AO |
10321 | |
10322 | fi | |
10323 | fi | |
10324 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10325 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10327 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10328 | else |
81ecdfbb RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10330 | $as_echo "no" >&6; } | |
9a819804 AO |
10331 | fi |
10332 | ||
81ecdfbb | 10333 | |
9a819804 AO |
10334 | done |
10335 | fi | |
10336 | ||
10337 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10338 | for ncn_progname in gcc; do |
81ecdfbb RW |
10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10340 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10341 | if test -x $with_build_time_tools/${ncn_progname}; then |
10342 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10344 | $as_echo "yes" >&6; } | |
2429c060 PB |
10345 | break |
10346 | else | |
81ecdfbb RW |
10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10348 | $as_echo "no" >&6; } | |
2429c060 PB |
10349 | fi |
10350 | done | |
10351 | fi | |
10352 | ||
10353 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10354 | for ncn_progname in gcc; do | |
10355 | if test -n "$ncn_target_tool_prefix"; then | |
10356 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10357 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10359 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10360 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10361 | $as_echo_n "(cached) " >&6 |
859789af | 10362 | else |
2429c060 PB |
10363 | if test -n "$GCC_FOR_TARGET"; then |
10364 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10365 | else |
c6b750e1 DJ |
10366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10367 | for as_dir in $PATH | |
10368 | do | |
10369 | IFS=$as_save_IFS | |
10370 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10371 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10373 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10375 | break 2 |
10376 | fi | |
10377 | done | |
81ecdfbb RW |
10378 | done |
10379 | IFS=$as_save_IFS | |
c6b750e1 | 10380 | |
55db4b87 PB |
10381 | fi |
10382 | fi | |
c6b750e1 | 10383 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10384 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10386 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10387 | else |
81ecdfbb RW |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10389 | $as_echo "no" >&6; } | |
55db4b87 PB |
10390 | fi |
10391 | ||
81ecdfbb | 10392 | |
2429c060 PB |
10393 | fi |
10394 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10395 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10396 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10398 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10399 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 10400 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10401 | else |
05cbd757 PB |
10402 | if test -n "$GCC_FOR_TARGET"; then |
10403 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10404 | else |
c6b750e1 DJ |
10405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10406 | for as_dir in $PATH | |
10407 | do | |
10408 | IFS=$as_save_IFS | |
10409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10410 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10412 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10414 | break 2 |
10415 | fi | |
10416 | done | |
81ecdfbb RW |
10417 | done |
10418 | IFS=$as_save_IFS | |
c6b750e1 | 10419 | |
55db4b87 PB |
10420 | fi |
10421 | fi | |
c6b750e1 | 10422 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10423 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10425 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10426 | else |
81ecdfbb RW |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10428 | $as_echo "no" >&6; } | |
55db4b87 | 10429 | fi |
c6b750e1 | 10430 | |
81ecdfbb | 10431 | |
2429c060 PB |
10432 | fi |
10433 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10434 | done | |
10435 | fi | |
c6b750e1 | 10436 | |
05cbd757 PB |
10437 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10438 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10439 | else |
10440 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10441 | fi |
10442 | ||
9a819804 AO |
10443 | |
10444 | ||
9a819804 AO |
10445 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10446 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10447 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10448 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10449 | fi |
10450 | ||
9a819804 AO |
10451 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10452 | for ncn_progname in gfortran; do | |
10453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10454 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10456 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10457 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10458 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10459 | else |
9a819804 AO |
10460 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10461 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10462 | else |
c6b750e1 DJ |
10463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10464 | for as_dir in $PATH | |
10465 | do | |
10466 | IFS=$as_save_IFS | |
10467 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10468 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10470 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10472 | break 2 |
10473 | fi | |
10474 | done | |
81ecdfbb RW |
10475 | done |
10476 | IFS=$as_save_IFS | |
c6b750e1 | 10477 | |
55db4b87 PB |
10478 | fi |
10479 | fi | |
9a819804 AO |
10480 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10481 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10483 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10484 | else |
81ecdfbb RW |
10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10486 | $as_echo "no" >&6; } | |
55db4b87 | 10487 | fi |
c6b750e1 | 10488 | |
81ecdfbb | 10489 | |
2429c060 PB |
10490 | done |
10491 | fi | |
c6b750e1 | 10492 | |
9a819804 | 10493 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10494 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10496 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10497 | if test -x $with_build_time_tools/${ncn_progname}; then |
10498 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10500 | $as_echo "yes" >&6; } | |
2429c060 PB |
10501 | break |
10502 | else | |
81ecdfbb RW |
10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10504 | $as_echo "no" >&6; } | |
2429c060 PB |
10505 | fi |
10506 | done | |
10507 | fi | |
10508 | ||
10509 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10510 | for ncn_progname in gfortran; do | |
10511 | if test -n "$ncn_target_tool_prefix"; then | |
10512 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10513 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10515 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10516 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10517 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
10518 | else |
10519 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10520 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10521 | else | |
c6b750e1 DJ |
10522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10523 | for as_dir in $PATH | |
10524 | do | |
10525 | IFS=$as_save_IFS | |
10526 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10527 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10529 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10531 | break 2 |
10532 | fi | |
10533 | done | |
81ecdfbb RW |
10534 | done |
10535 | IFS=$as_save_IFS | |
c6b750e1 | 10536 | |
55db4b87 PB |
10537 | fi |
10538 | fi | |
c6b750e1 | 10539 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10540 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10542 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10543 | else |
81ecdfbb RW |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10545 | $as_echo "no" >&6; } | |
55db4b87 PB |
10546 | fi |
10547 | ||
81ecdfbb | 10548 | |
2429c060 PB |
10549 | fi |
10550 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10551 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10552 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10554 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10555 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 10556 | $as_echo_n "(cached) " >&6 |
55db4b87 | 10557 | else |
05cbd757 | 10558 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10559 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10560 | else | |
10561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10562 | for as_dir in $PATH | |
10563 | do | |
10564 | IFS=$as_save_IFS | |
10565 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10566 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10567 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10568 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10570 | break 2 |
10571 | fi | |
10572 | done | |
81ecdfbb RW |
10573 | done |
10574 | IFS=$as_save_IFS | |
c6b750e1 | 10575 | |
55db4b87 PB |
10576 | fi |
10577 | fi | |
c6b750e1 | 10578 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10579 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10581 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10582 | else |
81ecdfbb RW |
10583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10584 | $as_echo "no" >&6; } | |
55db4b87 | 10585 | fi |
c6b750e1 | 10586 | |
81ecdfbb | 10587 | |
2429c060 PB |
10588 | fi |
10589 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10590 | done | |
10591 | fi | |
c6b750e1 | 10592 | |
05cbd757 PB |
10593 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10594 | set dummy gfortran | |
10595 | if test $build = $target ; then | |
10596 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10597 | else |
05cbd757 | 10598 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10599 | fi |
d3f5afc4 MS |
10600 | else |
10601 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10602 | fi |
10603 | ||
2429c060 PB |
10604 | |
10605 | ||
e552509b ILT |
10606 | if test -n "$GOC_FOR_TARGET"; then |
10607 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10608 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10609 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10610 | fi | |
10611 | ||
10612 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10613 | for ncn_progname in gccgo; do | |
10614 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10615 | set dummy ${ncn_progname}; ac_word=$2 | |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10617 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10618 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10619 | $as_echo_n "(cached) " >&6 |
10620 | else | |
10621 | if test -n "$GOC_FOR_TARGET"; then | |
10622 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10623 | else | |
10624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10625 | for as_dir in $PATH | |
10626 | do | |
10627 | IFS=$as_save_IFS | |
10628 | test -z "$as_dir" && as_dir=. | |
10629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10631 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10633 | break 2 | |
10634 | fi | |
10635 | done | |
10636 | done | |
10637 | IFS=$as_save_IFS | |
10638 | ||
10639 | fi | |
10640 | fi | |
10641 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10642 | if test -n "$GOC_FOR_TARGET"; then | |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10644 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10645 | else | |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10647 | $as_echo "no" >&6; } | |
10648 | fi | |
10649 | ||
10650 | ||
10651 | done | |
10652 | fi | |
10653 | ||
10654 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10655 | for ncn_progname in gccgo; do | |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10657 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10658 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10659 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10661 | $as_echo "yes" >&6; } | |
10662 | break | |
10663 | else | |
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10665 | $as_echo "no" >&6; } | |
10666 | fi | |
10667 | done | |
10668 | fi | |
10669 | ||
10670 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10671 | for ncn_progname in gccgo; do | |
10672 | if test -n "$ncn_target_tool_prefix"; then | |
10673 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10674 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10676 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10677 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10678 | $as_echo_n "(cached) " >&6 |
10679 | else | |
10680 | if test -n "$GOC_FOR_TARGET"; then | |
10681 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10682 | else | |
10683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10684 | for as_dir in $PATH | |
10685 | do | |
10686 | IFS=$as_save_IFS | |
10687 | test -z "$as_dir" && as_dir=. | |
10688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10690 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10692 | break 2 | |
10693 | fi | |
10694 | done | |
10695 | done | |
10696 | IFS=$as_save_IFS | |
10697 | ||
10698 | fi | |
10699 | fi | |
10700 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10701 | if test -n "$GOC_FOR_TARGET"; then | |
10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10703 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10704 | else | |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10706 | $as_echo "no" >&6; } | |
10707 | fi | |
10708 | ||
10709 | ||
10710 | fi | |
10711 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10712 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10713 | set dummy ${ncn_progname}; ac_word=$2 | |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10715 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10716 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
e552509b ILT |
10717 | $as_echo_n "(cached) " >&6 |
10718 | else | |
10719 | if test -n "$GOC_FOR_TARGET"; then | |
10720 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10721 | else | |
10722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10723 | for as_dir in $PATH | |
10724 | do | |
10725 | IFS=$as_save_IFS | |
10726 | test -z "$as_dir" && as_dir=. | |
10727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 10728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e552509b ILT |
10729 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10731 | break 2 | |
10732 | fi | |
10733 | done | |
10734 | done | |
10735 | IFS=$as_save_IFS | |
10736 | ||
10737 | fi | |
10738 | fi | |
10739 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10740 | if test -n "$GOC_FOR_TARGET"; then | |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10742 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10743 | else | |
10744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10745 | $as_echo "no" >&6; } | |
10746 | fi | |
10747 | ||
10748 | ||
10749 | fi | |
10750 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10751 | done | |
10752 | fi | |
10753 | ||
10754 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10755 | set dummy gccgo | |
10756 | if test $build = $target ; then | |
10757 | GOC_FOR_TARGET="$2" | |
10758 | else | |
10759 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10760 | fi | |
10761 | else | |
10762 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10763 | fi | |
10764 | ||
10765 | ||
10766 | ||
2429c060 PB |
10767 | cat > conftest.c << \EOF |
10768 | #ifdef __GNUC__ | |
10769 | gcc_yay; | |
10770 | #endif | |
10771 | EOF | |
10772 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10773 | have_gcc_for_target=yes | |
859789af | 10774 | else |
2429c060 PB |
10775 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10776 | have_gcc_for_target=no | |
859789af | 10777 | fi |
2429c060 PB |
10778 | rm conftest.c |
10779 | ||
10780 | ||
10781 | ||
859789af | 10782 | |
2429c060 PB |
10783 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10784 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10786 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10787 | if test -x $with_build_time_tools/ar; then |
10788 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10789 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10791 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10792 | else |
81ecdfbb RW |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10794 | $as_echo "no" >&6; } | |
3a35eeb3 | 10795 | fi |
2429c060 PB |
10796 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10797 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10798 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10799 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10800 | fi |
2429c060 | 10801 | fi |
c6b750e1 | 10802 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10803 | # Extract the first word of "ar", so it can be a program name with args. |
10804 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10806 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10807 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10808 | $as_echo_n "(cached) " >&6 |
859789af | 10809 | else |
c6b750e1 DJ |
10810 | case $AR_FOR_TARGET in |
10811 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10812 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10813 | ;; | |
2429c060 | 10814 | *) |
c6b750e1 DJ |
10815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10816 | for as_dir in $gcc_cv_tool_dirs | |
10817 | do | |
10818 | IFS=$as_save_IFS | |
10819 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10820 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10822 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10824 | break 2 |
10825 | fi | |
10826 | done | |
81ecdfbb RW |
10827 | done |
10828 | IFS=$as_save_IFS | |
c6b750e1 | 10829 | |
2429c060 PB |
10830 | ;; |
10831 | esac | |
859789af | 10832 | fi |
c6b750e1 | 10833 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10834 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10836 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10837 | else |
81ecdfbb RW |
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10839 | $as_echo "no" >&6; } | |
859789af | 10840 | fi |
05cbd757 | 10841 | |
81ecdfbb | 10842 | |
2429c060 PB |
10843 | fi |
10844 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10845 | |
10846 | ||
10847 | if test -n "$AR_FOR_TARGET"; then | |
10848 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10849 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10850 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10851 | fi | |
10852 | ||
10853 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10854 | for ncn_progname in ar; do | |
10855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10856 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10858 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10859 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10860 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10861 | else |
10862 | if test -n "$AR_FOR_TARGET"; then | |
10863 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10864 | else | |
10865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10866 | for as_dir in $PATH | |
10867 | do | |
10868 | IFS=$as_save_IFS | |
10869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10870 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10872 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10874 | break 2 |
10875 | fi | |
10876 | done | |
81ecdfbb RW |
10877 | done |
10878 | IFS=$as_save_IFS | |
9a819804 AO |
10879 | |
10880 | fi | |
10881 | fi | |
10882 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10883 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10885 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10886 | else |
81ecdfbb RW |
10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10888 | $as_echo "no" >&6; } | |
9a819804 AO |
10889 | fi |
10890 | ||
81ecdfbb | 10891 | |
9a819804 AO |
10892 | done |
10893 | fi | |
10894 | ||
10895 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10896 | for ncn_progname in ar; do |
81ecdfbb RW |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10898 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10899 | if test -x $with_build_time_tools/${ncn_progname}; then |
10900 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10902 | $as_echo "yes" >&6; } | |
2429c060 PB |
10903 | break |
10904 | else | |
81ecdfbb RW |
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10906 | $as_echo "no" >&6; } | |
2429c060 PB |
10907 | fi |
10908 | done | |
859789af AC |
10909 | fi |
10910 | ||
2429c060 PB |
10911 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10912 | for ncn_progname in ar; do | |
10913 | if test -n "$ncn_target_tool_prefix"; then | |
10914 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10915 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10917 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10918 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10919 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10920 | else |
2429c060 PB |
10921 | if test -n "$AR_FOR_TARGET"; then |
10922 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10923 | else |
c6b750e1 DJ |
10924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10925 | for as_dir in $PATH | |
10926 | do | |
10927 | IFS=$as_save_IFS | |
10928 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10929 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10931 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10933 | break 2 |
10934 | fi | |
10935 | done | |
81ecdfbb RW |
10936 | done |
10937 | IFS=$as_save_IFS | |
c6b750e1 | 10938 | |
7e0f7140 GK |
10939 | fi |
10940 | fi | |
c6b750e1 | 10941 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10942 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10944 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10945 | else |
81ecdfbb RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10947 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10948 | fi |
10949 | ||
81ecdfbb | 10950 | |
2429c060 PB |
10951 | fi |
10952 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10953 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10954 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10956 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10957 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 10958 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 10959 | else |
2429c060 PB |
10960 | if test -n "$AR_FOR_TARGET"; then |
10961 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10962 | else |
c6b750e1 DJ |
10963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10964 | for as_dir in $PATH | |
10965 | do | |
10966 | IFS=$as_save_IFS | |
10967 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10968 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10970 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10972 | break 2 |
10973 | fi | |
10974 | done | |
81ecdfbb RW |
10975 | done |
10976 | IFS=$as_save_IFS | |
c6b750e1 | 10977 | |
7e0f7140 GK |
10978 | fi |
10979 | fi | |
c6b750e1 | 10980 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10981 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10983 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10984 | else |
81ecdfbb RW |
10985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10986 | $as_echo "no" >&6; } | |
7e0f7140 | 10987 | fi |
c6b750e1 | 10988 | |
81ecdfbb | 10989 | |
2429c060 PB |
10990 | fi |
10991 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10992 | done | |
10993 | fi | |
c6b750e1 | 10994 | |
2429c060 PB |
10995 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10996 | set dummy ar | |
7e0f7140 | 10997 | if test $build = $target ; then |
2429c060 | 10998 | AR_FOR_TARGET="$2" |
7e0f7140 | 10999 | else |
2429c060 | 11000 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11001 | fi |
d3f5afc4 MS |
11002 | else |
11003 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11004 | fi |
11005 | ||
3a35eeb3 PB |
11006 | else |
11007 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11008 | fi |
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11014 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11016 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11017 | if test -x $with_build_time_tools/as; then |
11018 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11019 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11021 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11022 | else |
81ecdfbb RW |
11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11024 | $as_echo "no" >&6; } | |
3a35eeb3 | 11025 | fi |
2429c060 PB |
11026 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11027 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11028 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11029 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11030 | fi |
11031 | fi | |
c6b750e1 | 11032 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11033 | # Extract the first word of "as", so it can be a program name with args. |
11034 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11036 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11037 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11038 | $as_echo_n "(cached) " >&6 |
2429c060 | 11039 | else |
c6b750e1 DJ |
11040 | case $AS_FOR_TARGET in |
11041 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11042 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11043 | ;; | |
2429c060 | 11044 | *) |
c6b750e1 DJ |
11045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11046 | for as_dir in $gcc_cv_tool_dirs | |
11047 | do | |
11048 | IFS=$as_save_IFS | |
11049 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11050 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11052 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11054 | break 2 |
11055 | fi | |
11056 | done | |
81ecdfbb RW |
11057 | done |
11058 | IFS=$as_save_IFS | |
c6b750e1 | 11059 | |
2429c060 PB |
11060 | ;; |
11061 | esac | |
11062 | fi | |
c6b750e1 | 11063 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11064 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11066 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11067 | else |
81ecdfbb RW |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11069 | $as_echo "no" >&6; } | |
2429c060 PB |
11070 | fi |
11071 | ||
81ecdfbb | 11072 | |
2429c060 PB |
11073 | fi |
11074 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11075 | |
11076 | ||
11077 | if test -n "$AS_FOR_TARGET"; then | |
11078 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11079 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11080 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11081 | fi | |
11082 | ||
11083 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11084 | for ncn_progname in as; do | |
11085 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11086 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11088 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11089 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11090 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11091 | else |
11092 | if test -n "$AS_FOR_TARGET"; then | |
11093 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11094 | else | |
11095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11096 | for as_dir in $PATH | |
11097 | do | |
11098 | IFS=$as_save_IFS | |
11099 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11100 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11102 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11104 | break 2 |
11105 | fi | |
11106 | done | |
81ecdfbb RW |
11107 | done |
11108 | IFS=$as_save_IFS | |
9a819804 AO |
11109 | |
11110 | fi | |
11111 | fi | |
11112 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11113 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11115 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11116 | else |
81ecdfbb RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11118 | $as_echo "no" >&6; } | |
9a819804 AO |
11119 | fi |
11120 | ||
81ecdfbb | 11121 | |
9a819804 AO |
11122 | done |
11123 | fi | |
11124 | ||
11125 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11126 | for ncn_progname in as; do |
81ecdfbb RW |
11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11128 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11129 | if test -x $with_build_time_tools/${ncn_progname}; then |
11130 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11132 | $as_echo "yes" >&6; } | |
2429c060 PB |
11133 | break |
11134 | else | |
81ecdfbb RW |
11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11136 | $as_echo "no" >&6; } | |
2429c060 PB |
11137 | fi |
11138 | done | |
11139 | fi | |
11140 | ||
11141 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11142 | for ncn_progname in as; do | |
11143 | if test -n "$ncn_target_tool_prefix"; then | |
11144 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11145 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11147 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11148 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11149 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11150 | else |
11151 | if test -n "$AS_FOR_TARGET"; then | |
11152 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11153 | else | |
c6b750e1 DJ |
11154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11155 | for as_dir in $PATH | |
11156 | do | |
11157 | IFS=$as_save_IFS | |
11158 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11159 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11161 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11163 | break 2 |
11164 | fi | |
11165 | done | |
81ecdfbb RW |
11166 | done |
11167 | IFS=$as_save_IFS | |
c6b750e1 | 11168 | |
2429c060 PB |
11169 | fi |
11170 | fi | |
c6b750e1 | 11171 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11172 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11174 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11175 | else |
81ecdfbb RW |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11177 | $as_echo "no" >&6; } | |
2429c060 PB |
11178 | fi |
11179 | ||
81ecdfbb | 11180 | |
2429c060 PB |
11181 | fi |
11182 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11183 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11184 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11186 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11187 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 11188 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11189 | else |
11190 | if test -n "$AS_FOR_TARGET"; then | |
11191 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11192 | else | |
c6b750e1 DJ |
11193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11194 | for as_dir in $PATH | |
11195 | do | |
11196 | IFS=$as_save_IFS | |
11197 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11198 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11200 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11202 | break 2 |
11203 | fi | |
11204 | done | |
81ecdfbb RW |
11205 | done |
11206 | IFS=$as_save_IFS | |
c6b750e1 | 11207 | |
2429c060 PB |
11208 | fi |
11209 | fi | |
c6b750e1 | 11210 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11211 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11213 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11214 | else |
81ecdfbb RW |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11216 | $as_echo "no" >&6; } | |
2429c060 | 11217 | fi |
c6b750e1 | 11218 | |
81ecdfbb | 11219 | |
2429c060 PB |
11220 | fi |
11221 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11222 | done | |
11223 | fi | |
c6b750e1 | 11224 | |
2429c060 PB |
11225 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11226 | set dummy as | |
11227 | if test $build = $target ; then | |
11228 | AS_FOR_TARGET="$2" | |
11229 | else | |
11230 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11231 | fi | |
d3f5afc4 MS |
11232 | else |
11233 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11234 | fi |
11235 | ||
3a35eeb3 PB |
11236 | else |
11237 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11238 | fi |
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11244 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11246 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11247 | if test -x $with_build_time_tools/dlltool; then |
11248 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11249 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11251 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11252 | else |
81ecdfbb RW |
11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11254 | $as_echo "no" >&6; } | |
3a35eeb3 | 11255 | fi |
2429c060 PB |
11256 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11257 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11258 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11259 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11260 | fi |
11261 | fi | |
c6b750e1 | 11262 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11263 | # Extract the first word of "dlltool", so it can be a program name with args. |
11264 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11266 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11267 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11268 | $as_echo_n "(cached) " >&6 |
2429c060 | 11269 | else |
c6b750e1 DJ |
11270 | case $DLLTOOL_FOR_TARGET in |
11271 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11272 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11273 | ;; | |
2429c060 | 11274 | *) |
c6b750e1 DJ |
11275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11276 | for as_dir in $gcc_cv_tool_dirs | |
11277 | do | |
11278 | IFS=$as_save_IFS | |
11279 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11280 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11281 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11282 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11284 | break 2 |
11285 | fi | |
11286 | done | |
81ecdfbb RW |
11287 | done |
11288 | IFS=$as_save_IFS | |
c6b750e1 | 11289 | |
2429c060 PB |
11290 | ;; |
11291 | esac | |
11292 | fi | |
c6b750e1 | 11293 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11294 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11296 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11297 | else |
81ecdfbb RW |
11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11299 | $as_echo "no" >&6; } | |
2429c060 PB |
11300 | fi |
11301 | ||
81ecdfbb | 11302 | |
2429c060 PB |
11303 | fi |
11304 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11305 | |
11306 | ||
11307 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11308 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11309 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11310 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11311 | fi | |
11312 | ||
11313 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11314 | for ncn_progname in dlltool; do | |
11315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11316 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11318 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11319 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11320 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11321 | else |
11322 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11323 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11324 | else | |
11325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11326 | for as_dir in $PATH | |
11327 | do | |
11328 | IFS=$as_save_IFS | |
11329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11330 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11332 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11334 | break 2 |
11335 | fi | |
11336 | done | |
81ecdfbb RW |
11337 | done |
11338 | IFS=$as_save_IFS | |
9a819804 AO |
11339 | |
11340 | fi | |
11341 | fi | |
11342 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11343 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11345 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11346 | else |
81ecdfbb RW |
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11348 | $as_echo "no" >&6; } | |
9a819804 AO |
11349 | fi |
11350 | ||
81ecdfbb | 11351 | |
9a819804 AO |
11352 | done |
11353 | fi | |
11354 | ||
11355 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11356 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11358 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11359 | if test -x $with_build_time_tools/${ncn_progname}; then |
11360 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11362 | $as_echo "yes" >&6; } | |
2429c060 PB |
11363 | break |
11364 | else | |
81ecdfbb RW |
11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11366 | $as_echo "no" >&6; } | |
2429c060 PB |
11367 | fi |
11368 | done | |
11369 | fi | |
11370 | ||
11371 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11372 | for ncn_progname in dlltool; do | |
11373 | if test -n "$ncn_target_tool_prefix"; then | |
11374 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11375 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11377 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11378 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11379 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11380 | else |
11381 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11382 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11383 | else | |
c6b750e1 DJ |
11384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11385 | for as_dir in $PATH | |
11386 | do | |
11387 | IFS=$as_save_IFS | |
11388 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11389 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11391 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11393 | break 2 |
11394 | fi | |
11395 | done | |
81ecdfbb RW |
11396 | done |
11397 | IFS=$as_save_IFS | |
c6b750e1 | 11398 | |
2429c060 PB |
11399 | fi |
11400 | fi | |
c6b750e1 | 11401 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11402 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11404 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11405 | else |
81ecdfbb RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11407 | $as_echo "no" >&6; } | |
2429c060 PB |
11408 | fi |
11409 | ||
81ecdfbb | 11410 | |
2429c060 PB |
11411 | fi |
11412 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11413 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11414 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11416 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11417 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 11418 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11419 | else |
11420 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11421 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11422 | else | |
c6b750e1 DJ |
11423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11424 | for as_dir in $PATH | |
11425 | do | |
11426 | IFS=$as_save_IFS | |
11427 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11428 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11430 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11432 | break 2 |
11433 | fi | |
11434 | done | |
81ecdfbb RW |
11435 | done |
11436 | IFS=$as_save_IFS | |
c6b750e1 | 11437 | |
2429c060 PB |
11438 | fi |
11439 | fi | |
c6b750e1 | 11440 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11441 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11443 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11444 | else |
81ecdfbb RW |
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11446 | $as_echo "no" >&6; } | |
2429c060 | 11447 | fi |
c6b750e1 | 11448 | |
81ecdfbb | 11449 | |
2429c060 PB |
11450 | fi |
11451 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11452 | done | |
11453 | fi | |
c6b750e1 | 11454 | |
2429c060 PB |
11455 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11456 | set dummy dlltool | |
11457 | if test $build = $target ; then | |
11458 | DLLTOOL_FOR_TARGET="$2" | |
11459 | else | |
11460 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11461 | fi | |
d3f5afc4 MS |
11462 | else |
11463 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11464 | fi |
11465 | ||
3a35eeb3 PB |
11466 | else |
11467 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11468 | fi |
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11474 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11476 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11477 | if test -x $with_build_time_tools/ld; then |
11478 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11479 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11481 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11482 | else |
81ecdfbb RW |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11484 | $as_echo "no" >&6; } | |
3a35eeb3 | 11485 | fi |
2429c060 PB |
11486 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11487 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11488 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11489 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11490 | fi |
11491 | fi | |
c6b750e1 | 11492 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11493 | # Extract the first word of "ld", so it can be a program name with args. |
11494 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11496 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11497 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11498 | $as_echo_n "(cached) " >&6 |
2429c060 | 11499 | else |
c6b750e1 DJ |
11500 | case $LD_FOR_TARGET in |
11501 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11502 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11503 | ;; | |
2429c060 | 11504 | *) |
c6b750e1 DJ |
11505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11506 | for as_dir in $gcc_cv_tool_dirs | |
11507 | do | |
11508 | IFS=$as_save_IFS | |
11509 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11510 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11512 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11514 | break 2 |
11515 | fi | |
11516 | done | |
81ecdfbb RW |
11517 | done |
11518 | IFS=$as_save_IFS | |
c6b750e1 | 11519 | |
2429c060 PB |
11520 | ;; |
11521 | esac | |
11522 | fi | |
c6b750e1 | 11523 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11524 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11526 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11527 | else |
81ecdfbb RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11529 | $as_echo "no" >&6; } | |
2429c060 PB |
11530 | fi |
11531 | ||
81ecdfbb | 11532 | |
2429c060 PB |
11533 | fi |
11534 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11535 | |
11536 | ||
11537 | if test -n "$LD_FOR_TARGET"; then | |
11538 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11539 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11540 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11541 | fi | |
11542 | ||
11543 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11544 | for ncn_progname in ld; do | |
11545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11546 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11548 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11549 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11550 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11551 | else |
11552 | if test -n "$LD_FOR_TARGET"; then | |
11553 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11554 | else | |
11555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11556 | for as_dir in $PATH | |
11557 | do | |
11558 | IFS=$as_save_IFS | |
11559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11560 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11562 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11564 | break 2 |
11565 | fi | |
11566 | done | |
81ecdfbb RW |
11567 | done |
11568 | IFS=$as_save_IFS | |
9a819804 AO |
11569 | |
11570 | fi | |
11571 | fi | |
11572 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11573 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11575 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11576 | else |
81ecdfbb RW |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11578 | $as_echo "no" >&6; } | |
9a819804 AO |
11579 | fi |
11580 | ||
81ecdfbb | 11581 | |
9a819804 AO |
11582 | done |
11583 | fi | |
11584 | ||
11585 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11586 | for ncn_progname in ld; do |
81ecdfbb RW |
11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11588 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11589 | if test -x $with_build_time_tools/${ncn_progname}; then |
11590 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11592 | $as_echo "yes" >&6; } | |
2429c060 PB |
11593 | break |
11594 | else | |
81ecdfbb RW |
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11596 | $as_echo "no" >&6; } | |
2429c060 PB |
11597 | fi |
11598 | done | |
11599 | fi | |
11600 | ||
11601 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11602 | for ncn_progname in ld; do | |
11603 | if test -n "$ncn_target_tool_prefix"; then | |
11604 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11605 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11607 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11608 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11609 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11610 | else |
11611 | if test -n "$LD_FOR_TARGET"; then | |
11612 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11613 | else | |
c6b750e1 DJ |
11614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11615 | for as_dir in $PATH | |
11616 | do | |
11617 | IFS=$as_save_IFS | |
11618 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11619 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11621 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11623 | break 2 |
11624 | fi | |
11625 | done | |
81ecdfbb RW |
11626 | done |
11627 | IFS=$as_save_IFS | |
c6b750e1 | 11628 | |
2429c060 PB |
11629 | fi |
11630 | fi | |
c6b750e1 | 11631 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11632 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11634 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11635 | else |
81ecdfbb RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11637 | $as_echo "no" >&6; } | |
2429c060 PB |
11638 | fi |
11639 | ||
81ecdfbb | 11640 | |
2429c060 PB |
11641 | fi |
11642 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11643 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11644 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11646 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11647 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 11648 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11649 | else |
11650 | if test -n "$LD_FOR_TARGET"; then | |
11651 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11652 | else | |
c6b750e1 DJ |
11653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11654 | for as_dir in $PATH | |
11655 | do | |
11656 | IFS=$as_save_IFS | |
11657 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11658 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11660 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11662 | break 2 |
11663 | fi | |
11664 | done | |
81ecdfbb RW |
11665 | done |
11666 | IFS=$as_save_IFS | |
c6b750e1 | 11667 | |
2429c060 PB |
11668 | fi |
11669 | fi | |
c6b750e1 | 11670 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11671 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11673 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11674 | else |
81ecdfbb RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11676 | $as_echo "no" >&6; } | |
2429c060 | 11677 | fi |
c6b750e1 | 11678 | |
81ecdfbb | 11679 | |
2429c060 PB |
11680 | fi |
11681 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11682 | done | |
11683 | fi | |
c6b750e1 | 11684 | |
2429c060 PB |
11685 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11686 | set dummy ld | |
11687 | if test $build = $target ; then | |
11688 | LD_FOR_TARGET="$2" | |
11689 | else | |
11690 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11691 | fi | |
d3f5afc4 MS |
11692 | else |
11693 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11694 | fi |
11695 | ||
3a35eeb3 PB |
11696 | else |
11697 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11698 | fi |
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11704 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11706 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11707 | if test -x $with_build_time_tools/lipo; then |
11708 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11709 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11711 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11712 | else |
81ecdfbb RW |
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11714 | $as_echo "no" >&6; } | |
3a35eeb3 | 11715 | fi |
2429c060 PB |
11716 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11717 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11718 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11719 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11720 | fi |
11721 | fi | |
9a819804 AO |
11722 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11723 | # Extract the first word of "lipo", so it can be a program name with args. | |
11724 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11726 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11727 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11728 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11729 | else |
11730 | case $LIPO_FOR_TARGET in | |
11731 | [\\/]* | ?:[\\/]*) | |
11732 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11733 | ;; | |
11734 | *) | |
11735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11736 | for as_dir in $gcc_cv_tool_dirs | |
11737 | do | |
11738 | IFS=$as_save_IFS | |
11739 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11740 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11742 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11744 | break 2 |
11745 | fi | |
11746 | done | |
81ecdfbb RW |
11747 | done |
11748 | IFS=$as_save_IFS | |
9a819804 AO |
11749 | |
11750 | ;; | |
11751 | esac | |
11752 | fi | |
11753 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11754 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11756 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11757 | else |
81ecdfbb RW |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11759 | $as_echo "no" >&6; } | |
9a819804 AO |
11760 | fi |
11761 | ||
81ecdfbb | 11762 | |
9a819804 AO |
11763 | fi |
11764 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11765 | ||
11766 | ||
11767 | if test -n "$LIPO_FOR_TARGET"; then | |
11768 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11769 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11770 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11771 | fi | |
11772 | ||
11773 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11774 | for ncn_progname in lipo; do | |
11775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11776 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11778 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11779 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11780 | $as_echo_n "(cached) " >&6 |
2429c060 | 11781 | else |
9a819804 AO |
11782 | if test -n "$LIPO_FOR_TARGET"; then |
11783 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11784 | else | |
11785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11786 | for as_dir in $PATH | |
c6b750e1 DJ |
11787 | do |
11788 | IFS=$as_save_IFS | |
11789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11790 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11792 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11794 | break 2 |
11795 | fi | |
11796 | done | |
81ecdfbb RW |
11797 | done |
11798 | IFS=$as_save_IFS | |
c6b750e1 | 11799 | |
2429c060 | 11800 | fi |
9a819804 AO |
11801 | fi |
11802 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11803 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11805 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11806 | else |
81ecdfbb RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11808 | $as_echo "no" >&6; } | |
2429c060 PB |
11809 | fi |
11810 | ||
81ecdfbb | 11811 | |
9a819804 | 11812 | done |
2429c060 | 11813 | fi |
9a819804 AO |
11814 | |
11815 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11816 | for ncn_progname in lipo; do |
81ecdfbb RW |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11818 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11819 | if test -x $with_build_time_tools/${ncn_progname}; then |
11820 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11822 | $as_echo "yes" >&6; } | |
2429c060 PB |
11823 | break |
11824 | else | |
81ecdfbb RW |
11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11826 | $as_echo "no" >&6; } | |
2429c060 PB |
11827 | fi |
11828 | done | |
11829 | fi | |
11830 | ||
11831 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11832 | for ncn_progname in lipo; do | |
11833 | if test -n "$ncn_target_tool_prefix"; then | |
11834 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11835 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11837 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11838 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11839 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11840 | else |
11841 | if test -n "$LIPO_FOR_TARGET"; then | |
11842 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11843 | else | |
c6b750e1 DJ |
11844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11845 | for as_dir in $PATH | |
11846 | do | |
11847 | IFS=$as_save_IFS | |
11848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11849 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11851 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11853 | break 2 |
11854 | fi | |
11855 | done | |
81ecdfbb RW |
11856 | done |
11857 | IFS=$as_save_IFS | |
c6b750e1 | 11858 | |
2429c060 PB |
11859 | fi |
11860 | fi | |
c6b750e1 | 11861 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11862 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11864 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11865 | else |
81ecdfbb RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11867 | $as_echo "no" >&6; } | |
2429c060 PB |
11868 | fi |
11869 | ||
81ecdfbb | 11870 | |
2429c060 PB |
11871 | fi |
11872 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11873 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11874 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11876 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11877 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 11878 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
11879 | else |
11880 | if test -n "$LIPO_FOR_TARGET"; then | |
11881 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11882 | else | |
c6b750e1 DJ |
11883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11884 | for as_dir in $PATH | |
11885 | do | |
11886 | IFS=$as_save_IFS | |
11887 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11888 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11890 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11892 | break 2 |
11893 | fi | |
11894 | done | |
81ecdfbb RW |
11895 | done |
11896 | IFS=$as_save_IFS | |
c6b750e1 | 11897 | |
2429c060 PB |
11898 | fi |
11899 | fi | |
c6b750e1 | 11900 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11901 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11903 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11904 | else |
81ecdfbb RW |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11906 | $as_echo "no" >&6; } | |
2429c060 | 11907 | fi |
c6b750e1 | 11908 | |
81ecdfbb | 11909 | |
2429c060 PB |
11910 | fi |
11911 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11912 | done | |
11913 | fi | |
c6b750e1 | 11914 | |
2429c060 PB |
11915 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11916 | set dummy lipo | |
11917 | if test $build = $target ; then | |
11918 | LIPO_FOR_TARGET="$2" | |
11919 | else | |
11920 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11921 | fi | |
d3f5afc4 MS |
11922 | else |
11923 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11924 | fi |
11925 | ||
3a35eeb3 PB |
11926 | else |
11927 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11928 | fi |
11929 | ||
11930 | ||
11931 | ||
11932 | ||
11933 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11934 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11936 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11937 | if test -x $with_build_time_tools/nm; then |
11938 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11939 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11941 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11942 | else |
81ecdfbb RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11944 | $as_echo "no" >&6; } | |
3a35eeb3 | 11945 | fi |
2429c060 PB |
11946 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11947 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11948 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11949 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11950 | fi |
11951 | fi | |
c6b750e1 | 11952 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11953 | # Extract the first word of "nm", so it can be a program name with args. |
11954 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11956 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11957 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 11958 | $as_echo_n "(cached) " >&6 |
2429c060 | 11959 | else |
c6b750e1 DJ |
11960 | case $NM_FOR_TARGET in |
11961 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11962 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11963 | ;; | |
2429c060 | 11964 | *) |
c6b750e1 DJ |
11965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11966 | for as_dir in $gcc_cv_tool_dirs | |
11967 | do | |
11968 | IFS=$as_save_IFS | |
11969 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11970 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11972 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11974 | break 2 |
11975 | fi | |
11976 | done | |
81ecdfbb RW |
11977 | done |
11978 | IFS=$as_save_IFS | |
c6b750e1 | 11979 | |
2429c060 PB |
11980 | ;; |
11981 | esac | |
11982 | fi | |
c6b750e1 | 11983 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11984 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11986 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11987 | else |
81ecdfbb RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11989 | $as_echo "no" >&6; } | |
2429c060 PB |
11990 | fi |
11991 | ||
81ecdfbb | 11992 | |
2429c060 PB |
11993 | fi |
11994 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11995 | |
11996 | ||
11997 | if test -n "$NM_FOR_TARGET"; then | |
11998 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11999 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12000 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12001 | fi | |
12002 | ||
12003 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12004 | for ncn_progname in nm; do | |
12005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12006 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12008 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12009 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12010 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12011 | else |
12012 | if test -n "$NM_FOR_TARGET"; then | |
12013 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12014 | else | |
12015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12016 | for as_dir in $PATH | |
12017 | do | |
12018 | IFS=$as_save_IFS | |
12019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12020 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12022 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12024 | break 2 |
12025 | fi | |
12026 | done | |
81ecdfbb RW |
12027 | done |
12028 | IFS=$as_save_IFS | |
9a819804 AO |
12029 | |
12030 | fi | |
12031 | fi | |
12032 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12033 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12035 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12036 | else |
81ecdfbb RW |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12038 | $as_echo "no" >&6; } | |
9a819804 AO |
12039 | fi |
12040 | ||
81ecdfbb | 12041 | |
9a819804 AO |
12042 | done |
12043 | fi | |
12044 | ||
12045 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12046 | for ncn_progname in nm; do |
81ecdfbb RW |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12048 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12049 | if test -x $with_build_time_tools/${ncn_progname}; then |
12050 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12052 | $as_echo "yes" >&6; } | |
2429c060 PB |
12053 | break |
12054 | else | |
81ecdfbb RW |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12056 | $as_echo "no" >&6; } | |
2429c060 PB |
12057 | fi |
12058 | done | |
12059 | fi | |
12060 | ||
12061 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12062 | for ncn_progname in nm; do | |
12063 | if test -n "$ncn_target_tool_prefix"; then | |
12064 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12065 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12067 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12068 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12069 | $as_echo_n "(cached) " >&6 |
859789af | 12070 | else |
55db4b87 PB |
12071 | if test -n "$NM_FOR_TARGET"; then |
12072 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12073 | else |
c6b750e1 DJ |
12074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12075 | for as_dir in $PATH | |
12076 | do | |
12077 | IFS=$as_save_IFS | |
12078 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12079 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12081 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12083 | break 2 |
12084 | fi | |
12085 | done | |
81ecdfbb RW |
12086 | done |
12087 | IFS=$as_save_IFS | |
c6b750e1 | 12088 | |
859789af AC |
12089 | fi |
12090 | fi | |
c6b750e1 | 12091 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12092 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12094 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12095 | else |
81ecdfbb RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12097 | $as_echo "no" >&6; } | |
859789af AC |
12098 | fi |
12099 | ||
81ecdfbb | 12100 | |
2429c060 PB |
12101 | fi |
12102 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12103 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12104 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12106 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12107 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 12108 | $as_echo_n "(cached) " >&6 |
859789af | 12109 | else |
05cbd757 PB |
12110 | if test -n "$NM_FOR_TARGET"; then |
12111 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12112 | else |
c6b750e1 DJ |
12113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12114 | for as_dir in $PATH | |
12115 | do | |
12116 | IFS=$as_save_IFS | |
12117 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12118 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12120 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12122 | break 2 |
12123 | fi | |
12124 | done | |
81ecdfbb RW |
12125 | done |
12126 | IFS=$as_save_IFS | |
c6b750e1 | 12127 | |
859789af AC |
12128 | fi |
12129 | fi | |
c6b750e1 | 12130 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12131 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12133 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12134 | else |
81ecdfbb RW |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12136 | $as_echo "no" >&6; } | |
859789af | 12137 | fi |
c6b750e1 | 12138 | |
81ecdfbb | 12139 | |
2429c060 PB |
12140 | fi |
12141 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12142 | done | |
12143 | fi | |
c6b750e1 | 12144 | |
05cbd757 PB |
12145 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12146 | set dummy nm | |
12147 | if test $build = $target ; then | |
12148 | NM_FOR_TARGET="$2" | |
859789af | 12149 | else |
05cbd757 | 12150 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12151 | fi |
d3f5afc4 MS |
12152 | else |
12153 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12154 | fi |
12155 | ||
3a35eeb3 PB |
12156 | else |
12157 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12158 | fi |
12159 | ||
12160 | ||
12161 | ||
12162 | ||
6b91c541 AP |
12163 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12164 | if test -n "$with_build_time_tools"; then | |
12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12166 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12167 | if test -x $with_build_time_tools/objcopy; then | |
12168 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12169 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12171 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12172 | else | |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12174 | $as_echo "no" >&6; } | |
12175 | fi | |
12176 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12177 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12178 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12179 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12180 | fi | |
12181 | fi | |
12182 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12183 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12184 | set dummy objcopy; ac_word=$2 | |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12186 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12187 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12188 | $as_echo_n "(cached) " >&6 |
12189 | else | |
12190 | case $OBJCOPY_FOR_TARGET in | |
12191 | [\\/]* | ?:[\\/]*) | |
12192 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12193 | ;; | |
12194 | *) | |
12195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12196 | for as_dir in $gcc_cv_tool_dirs | |
12197 | do | |
12198 | IFS=$as_save_IFS | |
12199 | test -z "$as_dir" && as_dir=. | |
12200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12202 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12204 | break 2 | |
12205 | fi | |
12206 | done | |
12207 | done | |
12208 | IFS=$as_save_IFS | |
12209 | ||
12210 | ;; | |
12211 | esac | |
12212 | fi | |
12213 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12214 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12216 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12217 | else | |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12219 | $as_echo "no" >&6; } | |
12220 | fi | |
12221 | ||
12222 | ||
12223 | fi | |
12224 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12225 | ||
12226 | ||
12227 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12228 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12229 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12230 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12231 | fi | |
12232 | ||
12233 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12234 | for ncn_progname in objcopy; do | |
12235 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12236 | set dummy ${ncn_progname}; ac_word=$2 | |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12238 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12239 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12240 | $as_echo_n "(cached) " >&6 |
12241 | else | |
12242 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12243 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12244 | else | |
12245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12246 | for as_dir in $PATH | |
12247 | do | |
12248 | IFS=$as_save_IFS | |
12249 | test -z "$as_dir" && as_dir=. | |
12250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12252 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12254 | break 2 | |
12255 | fi | |
12256 | done | |
12257 | done | |
12258 | IFS=$as_save_IFS | |
12259 | ||
12260 | fi | |
12261 | fi | |
12262 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12263 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12265 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12266 | else | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12268 | $as_echo "no" >&6; } | |
12269 | fi | |
12270 | ||
12271 | ||
12272 | done | |
12273 | fi | |
12274 | ||
12275 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12276 | for ncn_progname in objcopy; do | |
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12278 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12279 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12280 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12282 | $as_echo "yes" >&6; } | |
12283 | break | |
12284 | else | |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12286 | $as_echo "no" >&6; } | |
12287 | fi | |
12288 | done | |
12289 | fi | |
12290 | ||
12291 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12292 | for ncn_progname in objcopy; do | |
12293 | if test -n "$ncn_target_tool_prefix"; then | |
12294 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12295 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12297 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12298 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12299 | $as_echo_n "(cached) " >&6 |
12300 | else | |
12301 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12302 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12303 | else | |
12304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12305 | for as_dir in $PATH | |
12306 | do | |
12307 | IFS=$as_save_IFS | |
12308 | test -z "$as_dir" && as_dir=. | |
12309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12311 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12313 | break 2 | |
12314 | fi | |
12315 | done | |
12316 | done | |
12317 | IFS=$as_save_IFS | |
12318 | ||
12319 | fi | |
12320 | fi | |
12321 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12322 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12324 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12325 | else | |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12327 | $as_echo "no" >&6; } | |
12328 | fi | |
12329 | ||
12330 | ||
12331 | fi | |
12332 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12334 | set dummy ${ncn_progname}; ac_word=$2 | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12336 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12337 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
12338 | $as_echo_n "(cached) " >&6 |
12339 | else | |
12340 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12341 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12342 | else | |
12343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12344 | for as_dir in $PATH | |
12345 | do | |
12346 | IFS=$as_save_IFS | |
12347 | test -z "$as_dir" && as_dir=. | |
12348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
12350 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12352 | break 2 | |
12353 | fi | |
12354 | done | |
12355 | done | |
12356 | IFS=$as_save_IFS | |
12357 | ||
12358 | fi | |
12359 | fi | |
12360 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12361 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12363 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12364 | else | |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12366 | $as_echo "no" >&6; } | |
12367 | fi | |
12368 | ||
12369 | ||
12370 | fi | |
12371 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12372 | done | |
12373 | fi | |
12374 | ||
12375 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12376 | set dummy objcopy | |
12377 | if test $build = $target ; then | |
12378 | OBJCOPY_FOR_TARGET="$2" | |
12379 | else | |
12380 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12381 | fi | |
12382 | else | |
12383 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12384 | fi | |
12385 | ||
12386 | else | |
12387 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12388 | fi | |
12389 | ||
12390 | ||
12391 | ||
12392 | ||
2429c060 PB |
12393 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12394 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12396 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12397 | if test -x $with_build_time_tools/objdump; then |
12398 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12399 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12401 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12402 | else |
81ecdfbb RW |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12404 | $as_echo "no" >&6; } | |
3a35eeb3 | 12405 | fi |
2429c060 PB |
12406 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12407 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12408 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12409 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12410 | fi |
12411 | fi | |
c6b750e1 | 12412 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12413 | # Extract the first word of "objdump", so it can be a program name with args. |
12414 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12416 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12417 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12418 | $as_echo_n "(cached) " >&6 |
2429c060 | 12419 | else |
c6b750e1 DJ |
12420 | case $OBJDUMP_FOR_TARGET in |
12421 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12422 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12423 | ;; | |
2429c060 | 12424 | *) |
c6b750e1 DJ |
12425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12426 | for as_dir in $gcc_cv_tool_dirs | |
12427 | do | |
12428 | IFS=$as_save_IFS | |
12429 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12430 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12432 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12434 | break 2 |
12435 | fi | |
12436 | done | |
81ecdfbb RW |
12437 | done |
12438 | IFS=$as_save_IFS | |
c6b750e1 | 12439 | |
2429c060 PB |
12440 | ;; |
12441 | esac | |
12442 | fi | |
c6b750e1 | 12443 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12444 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12446 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12447 | else |
81ecdfbb RW |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12449 | $as_echo "no" >&6; } | |
2429c060 PB |
12450 | fi |
12451 | ||
81ecdfbb | 12452 | |
2429c060 PB |
12453 | fi |
12454 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12455 | |
12456 | ||
12457 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12458 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12459 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12460 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12461 | fi | |
12462 | ||
12463 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12464 | for ncn_progname in objdump; do | |
12465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12466 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12468 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12469 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12470 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12471 | else |
12472 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12473 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12474 | else | |
12475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12476 | for as_dir in $PATH | |
12477 | do | |
12478 | IFS=$as_save_IFS | |
12479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12480 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12482 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12484 | break 2 |
12485 | fi | |
12486 | done | |
81ecdfbb RW |
12487 | done |
12488 | IFS=$as_save_IFS | |
9a819804 AO |
12489 | |
12490 | fi | |
12491 | fi | |
12492 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12493 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12495 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12496 | else |
81ecdfbb RW |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12498 | $as_echo "no" >&6; } | |
9a819804 AO |
12499 | fi |
12500 | ||
81ecdfbb | 12501 | |
9a819804 AO |
12502 | done |
12503 | fi | |
12504 | ||
12505 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12506 | for ncn_progname in objdump; do |
81ecdfbb RW |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12508 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12509 | if test -x $with_build_time_tools/${ncn_progname}; then |
12510 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12512 | $as_echo "yes" >&6; } | |
2429c060 PB |
12513 | break |
12514 | else | |
81ecdfbb RW |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12516 | $as_echo "no" >&6; } | |
2429c060 PB |
12517 | fi |
12518 | done | |
12519 | fi | |
12520 | ||
12521 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12522 | for ncn_progname in objdump; do | |
12523 | if test -n "$ncn_target_tool_prefix"; then | |
12524 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12525 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12527 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12528 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12529 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12530 | else |
12531 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12532 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12533 | else | |
c6b750e1 DJ |
12534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12535 | for as_dir in $PATH | |
12536 | do | |
12537 | IFS=$as_save_IFS | |
12538 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12539 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12541 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12543 | break 2 |
12544 | fi | |
12545 | done | |
81ecdfbb RW |
12546 | done |
12547 | IFS=$as_save_IFS | |
c6b750e1 | 12548 | |
5ae72758 DJ |
12549 | fi |
12550 | fi | |
c6b750e1 | 12551 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12552 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12554 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12555 | else |
81ecdfbb RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12557 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12558 | fi |
12559 | ||
81ecdfbb | 12560 | |
2429c060 PB |
12561 | fi |
12562 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12563 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12564 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12566 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12567 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 12568 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
12569 | else |
12570 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12571 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12572 | else | |
c6b750e1 DJ |
12573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12574 | for as_dir in $PATH | |
12575 | do | |
12576 | IFS=$as_save_IFS | |
12577 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12578 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12580 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12582 | break 2 |
12583 | fi | |
12584 | done | |
81ecdfbb RW |
12585 | done |
12586 | IFS=$as_save_IFS | |
c6b750e1 | 12587 | |
5ae72758 DJ |
12588 | fi |
12589 | fi | |
c6b750e1 | 12590 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12591 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12593 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12594 | else |
81ecdfbb RW |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12596 | $as_echo "no" >&6; } | |
5ae72758 | 12597 | fi |
c6b750e1 | 12598 | |
81ecdfbb | 12599 | |
2429c060 PB |
12600 | fi |
12601 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12602 | done | |
12603 | fi | |
c6b750e1 | 12604 | |
5ae72758 DJ |
12605 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12606 | set dummy objdump | |
12607 | if test $build = $target ; then | |
12608 | OBJDUMP_FOR_TARGET="$2" | |
12609 | else | |
12610 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12611 | fi | |
d3f5afc4 MS |
12612 | else |
12613 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12614 | fi |
12615 | ||
3a35eeb3 PB |
12616 | else |
12617 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12618 | fi |
12619 | ||
12620 | ||
12621 | ||
12622 | ||
12623 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12624 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12626 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12627 | if test -x $with_build_time_tools/ranlib; then |
12628 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12629 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12631 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12632 | else |
81ecdfbb RW |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12634 | $as_echo "no" >&6; } | |
3a35eeb3 | 12635 | fi |
2429c060 PB |
12636 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12637 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12638 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12639 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12640 | fi |
12641 | fi | |
c6b750e1 | 12642 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12643 | # Extract the first word of "ranlib", so it can be a program name with args. |
12644 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12646 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12647 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12648 | $as_echo_n "(cached) " >&6 |
2429c060 | 12649 | else |
c6b750e1 DJ |
12650 | case $RANLIB_FOR_TARGET in |
12651 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12652 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12653 | ;; | |
2429c060 | 12654 | *) |
c6b750e1 DJ |
12655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12656 | for as_dir in $gcc_cv_tool_dirs | |
12657 | do | |
12658 | IFS=$as_save_IFS | |
12659 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12660 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12662 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12664 | break 2 |
12665 | fi | |
12666 | done | |
81ecdfbb RW |
12667 | done |
12668 | IFS=$as_save_IFS | |
c6b750e1 | 12669 | |
2429c060 PB |
12670 | ;; |
12671 | esac | |
12672 | fi | |
c6b750e1 | 12673 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12674 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12676 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12677 | else |
81ecdfbb RW |
12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12679 | $as_echo "no" >&6; } | |
2429c060 PB |
12680 | fi |
12681 | ||
81ecdfbb | 12682 | |
2429c060 PB |
12683 | fi |
12684 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12685 | |
12686 | ||
12687 | if test -n "$RANLIB_FOR_TARGET"; then | |
12688 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12689 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12690 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12691 | fi | |
12692 | ||
12693 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12694 | for ncn_progname in ranlib; do | |
12695 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12696 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12698 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12699 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12700 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12701 | else |
12702 | if test -n "$RANLIB_FOR_TARGET"; then | |
12703 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12704 | else | |
12705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12706 | for as_dir in $PATH | |
12707 | do | |
12708 | IFS=$as_save_IFS | |
12709 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12710 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12712 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12714 | break 2 |
12715 | fi | |
12716 | done | |
81ecdfbb RW |
12717 | done |
12718 | IFS=$as_save_IFS | |
9a819804 AO |
12719 | |
12720 | fi | |
12721 | fi | |
12722 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12723 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12725 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12726 | else |
81ecdfbb RW |
12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12728 | $as_echo "no" >&6; } | |
9a819804 AO |
12729 | fi |
12730 | ||
81ecdfbb | 12731 | |
9a819804 AO |
12732 | done |
12733 | fi | |
12734 | ||
12735 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12736 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12738 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12739 | if test -x $with_build_time_tools/${ncn_progname}; then |
12740 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12742 | $as_echo "yes" >&6; } | |
2429c060 PB |
12743 | break |
12744 | else | |
81ecdfbb RW |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12746 | $as_echo "no" >&6; } | |
2429c060 PB |
12747 | fi |
12748 | done | |
12749 | fi | |
12750 | ||
12751 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12752 | for ncn_progname in ranlib; do | |
12753 | if test -n "$ncn_target_tool_prefix"; then | |
12754 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12755 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12757 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12758 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12759 | $as_echo_n "(cached) " >&6 |
859789af | 12760 | else |
55db4b87 PB |
12761 | if test -n "$RANLIB_FOR_TARGET"; then |
12762 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12763 | else |
c6b750e1 DJ |
12764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12765 | for as_dir in $PATH | |
12766 | do | |
12767 | IFS=$as_save_IFS | |
12768 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12769 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12771 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12773 | break 2 |
12774 | fi | |
12775 | done | |
81ecdfbb RW |
12776 | done |
12777 | IFS=$as_save_IFS | |
c6b750e1 | 12778 | |
859789af AC |
12779 | fi |
12780 | fi | |
c6b750e1 | 12781 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12782 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12784 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12785 | else |
81ecdfbb RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12787 | $as_echo "no" >&6; } | |
859789af AC |
12788 | fi |
12789 | ||
81ecdfbb | 12790 | |
2429c060 PB |
12791 | fi |
12792 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12793 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12794 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12796 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12797 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 12798 | $as_echo_n "(cached) " >&6 |
859789af | 12799 | else |
05cbd757 PB |
12800 | if test -n "$RANLIB_FOR_TARGET"; then |
12801 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12802 | else |
c6b750e1 DJ |
12803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12804 | for as_dir in $PATH | |
12805 | do | |
12806 | IFS=$as_save_IFS | |
12807 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12808 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12810 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12812 | break 2 |
12813 | fi | |
12814 | done | |
81ecdfbb RW |
12815 | done |
12816 | IFS=$as_save_IFS | |
c6b750e1 | 12817 | |
859789af AC |
12818 | fi |
12819 | fi | |
c6b750e1 | 12820 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12821 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12823 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12824 | else |
81ecdfbb RW |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12826 | $as_echo "no" >&6; } | |
859789af | 12827 | fi |
c6b750e1 | 12828 | |
81ecdfbb | 12829 | |
2429c060 PB |
12830 | fi |
12831 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12832 | done | |
12833 | fi | |
c6b750e1 | 12834 | |
2429c060 PB |
12835 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12836 | set dummy ranlib | |
12837 | if test $build = $target ; then | |
12838 | RANLIB_FOR_TARGET="$2" | |
12839 | else | |
12840 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12841 | fi |
d3f5afc4 MS |
12842 | else |
12843 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12844 | fi |
05cbd757 | 12845 | |
3a35eeb3 PB |
12846 | else |
12847 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12848 | fi |
12849 | ||
2429c060 PB |
12850 | |
12851 | ||
12852 | ||
b121d7d4 DD |
12853 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12854 | if test -n "$with_build_time_tools"; then | |
12855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12856 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12857 | if test -x $with_build_time_tools/readelf; then | |
12858 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12859 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12861 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12862 | else | |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12864 | $as_echo "no" >&6; } | |
12865 | fi | |
12866 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12867 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12868 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12869 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12870 | fi | |
12871 | fi | |
12872 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12873 | # Extract the first word of "readelf", so it can be a program name with args. | |
12874 | set dummy readelf; ac_word=$2 | |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12876 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12877 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12878 | $as_echo_n "(cached) " >&6 |
12879 | else | |
12880 | case $READELF_FOR_TARGET in | |
12881 | [\\/]* | ?:[\\/]*) | |
12882 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12883 | ;; | |
12884 | *) | |
12885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12886 | for as_dir in $gcc_cv_tool_dirs | |
12887 | do | |
12888 | IFS=$as_save_IFS | |
12889 | test -z "$as_dir" && as_dir=. | |
12890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12892 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12894 | break 2 | |
12895 | fi | |
12896 | done | |
12897 | done | |
12898 | IFS=$as_save_IFS | |
12899 | ||
12900 | ;; | |
12901 | esac | |
12902 | fi | |
12903 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12904 | if test -n "$READELF_FOR_TARGET"; then | |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12906 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12907 | else | |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12909 | $as_echo "no" >&6; } | |
12910 | fi | |
12911 | ||
12912 | ||
12913 | fi | |
12914 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12915 | ||
12916 | ||
12917 | if test -n "$READELF_FOR_TARGET"; then | |
12918 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12919 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12920 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12921 | fi | |
12922 | ||
12923 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12924 | for ncn_progname in readelf; do | |
12925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12926 | set dummy ${ncn_progname}; ac_word=$2 | |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12928 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12929 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12930 | $as_echo_n "(cached) " >&6 |
12931 | else | |
12932 | if test -n "$READELF_FOR_TARGET"; then | |
12933 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12934 | else | |
12935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12936 | for as_dir in $PATH | |
12937 | do | |
12938 | IFS=$as_save_IFS | |
12939 | test -z "$as_dir" && as_dir=. | |
12940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12942 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
12943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12944 | break 2 | |
12945 | fi | |
12946 | done | |
12947 | done | |
12948 | IFS=$as_save_IFS | |
12949 | ||
12950 | fi | |
12951 | fi | |
12952 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12953 | if test -n "$READELF_FOR_TARGET"; then | |
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12955 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12956 | else | |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12958 | $as_echo "no" >&6; } | |
12959 | fi | |
12960 | ||
12961 | ||
12962 | done | |
12963 | fi | |
12964 | ||
12965 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12966 | for ncn_progname in readelf; do | |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12968 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12969 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12970 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12972 | $as_echo "yes" >&6; } | |
12973 | break | |
12974 | else | |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12976 | $as_echo "no" >&6; } | |
12977 | fi | |
12978 | done | |
12979 | fi | |
12980 | ||
12981 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12982 | for ncn_progname in readelf; do | |
12983 | if test -n "$ncn_target_tool_prefix"; then | |
12984 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12985 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12987 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12988 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
12989 | $as_echo_n "(cached) " >&6 |
12990 | else | |
12991 | if test -n "$READELF_FOR_TARGET"; then | |
12992 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12993 | else | |
12994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12995 | for as_dir in $PATH | |
12996 | do | |
12997 | IFS=$as_save_IFS | |
12998 | test -z "$as_dir" && as_dir=. | |
12999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13001 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13003 | break 2 | |
13004 | fi | |
13005 | done | |
13006 | done | |
13007 | IFS=$as_save_IFS | |
13008 | ||
13009 | fi | |
13010 | fi | |
13011 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13012 | if test -n "$READELF_FOR_TARGET"; then | |
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13014 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13015 | else | |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13017 | $as_echo "no" >&6; } | |
13018 | fi | |
13019 | ||
13020 | ||
13021 | fi | |
13022 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13023 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13024 | set dummy ${ncn_progname}; ac_word=$2 | |
13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13026 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13027 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
13028 | $as_echo_n "(cached) " >&6 |
13029 | else | |
13030 | if test -n "$READELF_FOR_TARGET"; then | |
13031 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13032 | else | |
13033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13034 | for as_dir in $PATH | |
13035 | do | |
13036 | IFS=$as_save_IFS | |
13037 | test -z "$as_dir" && as_dir=. | |
13038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
13040 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13042 | break 2 | |
13043 | fi | |
13044 | done | |
13045 | done | |
13046 | IFS=$as_save_IFS | |
13047 | ||
13048 | fi | |
13049 | fi | |
13050 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13051 | if test -n "$READELF_FOR_TARGET"; then | |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13053 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13054 | else | |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13056 | $as_echo "no" >&6; } | |
13057 | fi | |
13058 | ||
13059 | ||
13060 | fi | |
13061 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13062 | done | |
13063 | fi | |
13064 | ||
13065 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13066 | set dummy readelf | |
13067 | if test $build = $target ; then | |
13068 | READELF_FOR_TARGET="$2" | |
13069 | else | |
13070 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13071 | fi | |
13072 | else | |
13073 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13074 | fi | |
13075 | ||
13076 | else | |
13077 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13078 | fi | |
13079 | ||
13080 | ||
13081 | ||
13082 | ||
2429c060 PB |
13083 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13084 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13086 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13087 | if test -x $with_build_time_tools/strip; then |
13088 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13089 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13091 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13092 | else |
81ecdfbb RW |
13093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13094 | $as_echo "no" >&6; } | |
3a35eeb3 | 13095 | fi |
2429c060 PB |
13096 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13097 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13098 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13099 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13100 | fi |
13101 | fi | |
c6b750e1 | 13102 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13103 | # Extract the first word of "strip", so it can be a program name with args. |
13104 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13106 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13107 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13108 | $as_echo_n "(cached) " >&6 |
2429c060 | 13109 | else |
c6b750e1 DJ |
13110 | case $STRIP_FOR_TARGET in |
13111 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13112 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13113 | ;; | |
2429c060 | 13114 | *) |
c6b750e1 DJ |
13115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13116 | for as_dir in $gcc_cv_tool_dirs | |
13117 | do | |
13118 | IFS=$as_save_IFS | |
13119 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13120 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13122 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13124 | break 2 |
13125 | fi | |
13126 | done | |
81ecdfbb RW |
13127 | done |
13128 | IFS=$as_save_IFS | |
c6b750e1 | 13129 | |
2429c060 PB |
13130 | ;; |
13131 | esac | |
13132 | fi | |
c6b750e1 | 13133 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13134 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13136 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13137 | else |
81ecdfbb RW |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13139 | $as_echo "no" >&6; } | |
2429c060 PB |
13140 | fi |
13141 | ||
81ecdfbb | 13142 | |
2429c060 PB |
13143 | fi |
13144 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13145 | |
13146 | ||
13147 | if test -n "$STRIP_FOR_TARGET"; then | |
13148 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13149 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13150 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13151 | fi | |
13152 | ||
13153 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13154 | for ncn_progname in strip; do | |
13155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13156 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13158 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13159 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13160 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13161 | else |
13162 | if test -n "$STRIP_FOR_TARGET"; then | |
13163 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13164 | else | |
13165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13166 | for as_dir in $PATH | |
13167 | do | |
13168 | IFS=$as_save_IFS | |
13169 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13170 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13172 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13174 | break 2 |
13175 | fi | |
13176 | done | |
81ecdfbb RW |
13177 | done |
13178 | IFS=$as_save_IFS | |
9a819804 AO |
13179 | |
13180 | fi | |
13181 | fi | |
13182 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13183 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13185 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13186 | else |
81ecdfbb RW |
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13188 | $as_echo "no" >&6; } | |
9a819804 AO |
13189 | fi |
13190 | ||
81ecdfbb | 13191 | |
9a819804 AO |
13192 | done |
13193 | fi | |
13194 | ||
13195 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13196 | for ncn_progname in strip; do |
81ecdfbb RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13198 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13199 | if test -x $with_build_time_tools/${ncn_progname}; then |
13200 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13202 | $as_echo "yes" >&6; } | |
2429c060 PB |
13203 | break |
13204 | else | |
81ecdfbb RW |
13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13206 | $as_echo "no" >&6; } | |
2429c060 PB |
13207 | fi |
13208 | done | |
13209 | fi | |
13210 | ||
13211 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13212 | for ncn_progname in strip; do | |
13213 | if test -n "$ncn_target_tool_prefix"; then | |
13214 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13215 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13217 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13218 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13219 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13220 | else |
13221 | if test -n "$STRIP_FOR_TARGET"; then | |
13222 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13223 | else |
13224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13225 | for as_dir in $PATH | |
13226 | do | |
13227 | IFS=$as_save_IFS | |
13228 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13229 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13231 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13233 | break 2 |
13234 | fi | |
13235 | done | |
81ecdfbb RW |
13236 | done |
13237 | IFS=$as_save_IFS | |
c6b750e1 | 13238 | |
7e0f7140 GK |
13239 | fi |
13240 | fi | |
c6b750e1 | 13241 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13242 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13244 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13245 | else |
81ecdfbb RW |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13247 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13248 | fi |
13249 | ||
81ecdfbb | 13250 | |
2429c060 PB |
13251 | fi |
13252 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13254 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13256 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13257 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 13258 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
13259 | else |
13260 | if test -n "$STRIP_FOR_TARGET"; then | |
13261 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13262 | else | |
c6b750e1 DJ |
13263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13264 | for as_dir in $PATH | |
13265 | do | |
13266 | IFS=$as_save_IFS | |
13267 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13268 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13270 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13272 | break 2 |
13273 | fi | |
13274 | done | |
81ecdfbb RW |
13275 | done |
13276 | IFS=$as_save_IFS | |
c6b750e1 | 13277 | |
7e0f7140 GK |
13278 | fi |
13279 | fi | |
c6b750e1 | 13280 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13281 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13283 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13284 | else |
81ecdfbb RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13286 | $as_echo "no" >&6; } | |
7e0f7140 | 13287 | fi |
c6b750e1 | 13288 | |
81ecdfbb | 13289 | |
2429c060 PB |
13290 | fi |
13291 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13292 | done | |
13293 | fi | |
c6b750e1 | 13294 | |
7e0f7140 GK |
13295 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13296 | set dummy strip | |
13297 | if test $build = $target ; then | |
13298 | STRIP_FOR_TARGET="$2" | |
13299 | else | |
13300 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13301 | fi | |
d3f5afc4 MS |
13302 | else |
13303 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13304 | fi |
13305 | ||
3a35eeb3 PB |
13306 | else |
13307 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13308 | fi |
13309 | ||
13310 | ||
13311 | ||
13312 | ||
13313 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13314 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13316 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13317 | if test -x $with_build_time_tools/windres; then |
13318 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13319 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13321 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13322 | else |
81ecdfbb RW |
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13324 | $as_echo "no" >&6; } | |
3a35eeb3 | 13325 | fi |
2429c060 PB |
13326 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13327 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13328 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13329 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13330 | fi |
13331 | fi | |
c6b750e1 | 13332 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13333 | # Extract the first word of "windres", so it can be a program name with args. |
13334 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13336 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13337 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13338 | $as_echo_n "(cached) " >&6 |
2429c060 | 13339 | else |
c6b750e1 DJ |
13340 | case $WINDRES_FOR_TARGET in |
13341 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13342 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13343 | ;; | |
2429c060 | 13344 | *) |
c6b750e1 DJ |
13345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13346 | for as_dir in $gcc_cv_tool_dirs | |
13347 | do | |
13348 | IFS=$as_save_IFS | |
13349 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13350 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13352 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13354 | break 2 |
13355 | fi | |
13356 | done | |
81ecdfbb RW |
13357 | done |
13358 | IFS=$as_save_IFS | |
c6b750e1 | 13359 | |
2429c060 PB |
13360 | ;; |
13361 | esac | |
13362 | fi | |
c6b750e1 | 13363 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13364 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13366 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13367 | else |
81ecdfbb RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13369 | $as_echo "no" >&6; } | |
2429c060 PB |
13370 | fi |
13371 | ||
81ecdfbb | 13372 | |
2429c060 PB |
13373 | fi |
13374 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13375 | |
13376 | ||
13377 | if test -n "$WINDRES_FOR_TARGET"; then | |
13378 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13379 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13380 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13381 | fi | |
13382 | ||
13383 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13384 | for ncn_progname in windres; do | |
13385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13386 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13388 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13389 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13390 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13391 | else |
13392 | if test -n "$WINDRES_FOR_TARGET"; then | |
13393 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13394 | else | |
13395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13396 | for as_dir in $PATH | |
13397 | do | |
13398 | IFS=$as_save_IFS | |
13399 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13400 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13402 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13404 | break 2 |
13405 | fi | |
13406 | done | |
81ecdfbb RW |
13407 | done |
13408 | IFS=$as_save_IFS | |
9a819804 AO |
13409 | |
13410 | fi | |
13411 | fi | |
13412 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13413 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13415 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13416 | else |
81ecdfbb RW |
13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13418 | $as_echo "no" >&6; } | |
9a819804 AO |
13419 | fi |
13420 | ||
81ecdfbb | 13421 | |
9a819804 AO |
13422 | done |
13423 | fi | |
13424 | ||
13425 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13426 | for ncn_progname in windres; do |
81ecdfbb RW |
13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13428 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13429 | if test -x $with_build_time_tools/${ncn_progname}; then |
13430 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13432 | $as_echo "yes" >&6; } | |
2429c060 PB |
13433 | break |
13434 | else | |
81ecdfbb RW |
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13436 | $as_echo "no" >&6; } | |
2429c060 PB |
13437 | fi |
13438 | done | |
13439 | fi | |
13440 | ||
13441 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13442 | for ncn_progname in windres; do | |
13443 | if test -n "$ncn_target_tool_prefix"; then | |
13444 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13445 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13447 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13448 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13449 | $as_echo_n "(cached) " >&6 |
859789af | 13450 | else |
55db4b87 PB |
13451 | if test -n "$WINDRES_FOR_TARGET"; then |
13452 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13453 | else |
c6b750e1 DJ |
13454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13455 | for as_dir in $PATH | |
13456 | do | |
13457 | IFS=$as_save_IFS | |
13458 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13459 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13461 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13463 | break 2 |
13464 | fi | |
13465 | done | |
81ecdfbb RW |
13466 | done |
13467 | IFS=$as_save_IFS | |
c6b750e1 | 13468 | |
859789af AC |
13469 | fi |
13470 | fi | |
c6b750e1 | 13471 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13472 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13474 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13475 | else |
81ecdfbb RW |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13477 | $as_echo "no" >&6; } | |
859789af AC |
13478 | fi |
13479 | ||
81ecdfbb | 13480 | |
2429c060 PB |
13481 | fi |
13482 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13483 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13484 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13486 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13487 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 13488 | $as_echo_n "(cached) " >&6 |
859789af | 13489 | else |
05cbd757 PB |
13490 | if test -n "$WINDRES_FOR_TARGET"; then |
13491 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13492 | else |
c6b750e1 DJ |
13493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13494 | for as_dir in $PATH | |
13495 | do | |
13496 | IFS=$as_save_IFS | |
13497 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13498 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13500 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13502 | break 2 |
13503 | fi | |
13504 | done | |
81ecdfbb RW |
13505 | done |
13506 | IFS=$as_save_IFS | |
c6b750e1 | 13507 | |
859789af AC |
13508 | fi |
13509 | fi | |
c6b750e1 | 13510 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13511 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13513 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13514 | else |
81ecdfbb RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13516 | $as_echo "no" >&6; } | |
859789af | 13517 | fi |
c6b750e1 | 13518 | |
81ecdfbb | 13519 | |
2429c060 PB |
13520 | fi |
13521 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13522 | done | |
13523 | fi | |
c6b750e1 | 13524 | |
05cbd757 PB |
13525 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13526 | set dummy windres | |
13527 | if test $build = $target ; then | |
13528 | WINDRES_FOR_TARGET="$2" | |
859789af | 13529 | else |
05cbd757 | 13530 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13531 | fi |
d3f5afc4 MS |
13532 | else |
13533 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13534 | fi |
13535 | ||
3a35eeb3 PB |
13536 | else |
13537 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13538 | fi |
13539 | ||
852e5f18 | 13540 | |
0c24b341 NC |
13541 | |
13542 | ||
13543 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13544 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13546 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13547 | if test -x $with_build_time_tools/windmc; then |
13548 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13549 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13551 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13552 | else |
81ecdfbb RW |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13554 | $as_echo "no" >&6; } | |
0c24b341 NC |
13555 | fi |
13556 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13557 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13558 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13559 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13560 | fi | |
13561 | fi | |
13562 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13563 | # Extract the first word of "windmc", so it can be a program name with args. | |
13564 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13566 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13567 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13568 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13569 | else |
13570 | case $WINDMC_FOR_TARGET in | |
13571 | [\\/]* | ?:[\\/]*) | |
13572 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13573 | ;; | |
13574 | *) | |
13575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13576 | for as_dir in $gcc_cv_tool_dirs | |
13577 | do | |
13578 | IFS=$as_save_IFS | |
13579 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13580 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13582 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13584 | break 2 |
13585 | fi | |
13586 | done | |
81ecdfbb RW |
13587 | done |
13588 | IFS=$as_save_IFS | |
0c24b341 NC |
13589 | |
13590 | ;; | |
13591 | esac | |
13592 | fi | |
13593 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13594 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13596 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13597 | else |
81ecdfbb RW |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13599 | $as_echo "no" >&6; } | |
0c24b341 NC |
13600 | fi |
13601 | ||
81ecdfbb | 13602 | |
0c24b341 NC |
13603 | fi |
13604 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13605 | ||
13606 | ||
13607 | if test -n "$WINDMC_FOR_TARGET"; then | |
13608 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13609 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13610 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13611 | fi | |
13612 | ||
13613 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13614 | for ncn_progname in windmc; do | |
13615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13616 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13618 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13619 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13620 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13621 | else |
13622 | if test -n "$WINDMC_FOR_TARGET"; then | |
13623 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13624 | else | |
13625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13626 | for as_dir in $PATH | |
13627 | do | |
13628 | IFS=$as_save_IFS | |
13629 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13630 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13632 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13634 | break 2 |
13635 | fi | |
13636 | done | |
81ecdfbb RW |
13637 | done |
13638 | IFS=$as_save_IFS | |
0c24b341 NC |
13639 | |
13640 | fi | |
13641 | fi | |
13642 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13643 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13645 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13646 | else |
81ecdfbb RW |
13647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13648 | $as_echo "no" >&6; } | |
0c24b341 NC |
13649 | fi |
13650 | ||
81ecdfbb | 13651 | |
0c24b341 NC |
13652 | done |
13653 | fi | |
13654 | ||
13655 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13656 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13658 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13659 | if test -x $with_build_time_tools/${ncn_progname}; then |
13660 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13662 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13663 | break |
13664 | else | |
81ecdfbb RW |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13666 | $as_echo "no" >&6; } | |
0c24b341 NC |
13667 | fi |
13668 | done | |
13669 | fi | |
13670 | ||
13671 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13672 | for ncn_progname in windmc; do | |
13673 | if test -n "$ncn_target_tool_prefix"; then | |
13674 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13675 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13677 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13678 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13679 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13680 | else |
13681 | if test -n "$WINDMC_FOR_TARGET"; then | |
13682 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13683 | else | |
13684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13685 | for as_dir in $PATH | |
13686 | do | |
13687 | IFS=$as_save_IFS | |
13688 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13689 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13691 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13693 | break 2 |
13694 | fi | |
13695 | done | |
81ecdfbb RW |
13696 | done |
13697 | IFS=$as_save_IFS | |
0c24b341 NC |
13698 | |
13699 | fi | |
13700 | fi | |
13701 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13702 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13704 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13705 | else |
81ecdfbb RW |
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13707 | $as_echo "no" >&6; } | |
0c24b341 NC |
13708 | fi |
13709 | ||
81ecdfbb | 13710 | |
0c24b341 NC |
13711 | fi |
13712 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13713 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13714 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13716 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13717 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 13718 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
13719 | else |
13720 | if test -n "$WINDMC_FOR_TARGET"; then | |
13721 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13722 | else | |
13723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13724 | for as_dir in $PATH | |
13725 | do | |
13726 | IFS=$as_save_IFS | |
13727 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13728 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 13730 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13732 | break 2 |
13733 | fi | |
13734 | done | |
81ecdfbb RW |
13735 | done |
13736 | IFS=$as_save_IFS | |
0c24b341 NC |
13737 | |
13738 | fi | |
13739 | fi | |
13740 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13741 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13743 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13744 | else |
81ecdfbb RW |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13746 | $as_echo "no" >&6; } | |
0c24b341 NC |
13747 | fi |
13748 | ||
81ecdfbb | 13749 | |
0c24b341 NC |
13750 | fi |
13751 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13752 | done | |
13753 | fi | |
13754 | ||
13755 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13756 | set dummy windmc | |
13757 | if test $build = $target ; then | |
13758 | WINDMC_FOR_TARGET="$2" | |
13759 | else | |
13760 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13761 | fi | |
13762 | else | |
13763 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13764 | fi | |
13765 | ||
13766 | else | |
13767 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13768 | fi | |
13769 | ||
13770 | ||
be01d343 PB |
13771 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13772 | ||
81ecdfbb RW |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13774 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13775 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13776 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13777 | # We already found the complete path | |
b8025f34 | 13778 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13780 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13781 | else |
13782 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13784 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13785 | fi |
be01d343 PB |
13786 | else |
13787 | ok=yes | |
13788 | case " ${configdirs} " in | |
13789 | *" binutils "*) ;; | |
13790 | *) ok=no ;; | |
13791 | esac | |
c6b750e1 | 13792 | |
be01d343 PB |
13793 | if test $ok = yes; then |
13794 | # An in-tree tool is available and we can use it | |
13795 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13797 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13798 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13799 | # We already found the complete path | |
b8025f34 | 13800 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13802 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13803 | elif test "x$target" = "x$host"; then |
13804 | # We can use an host tool | |
13805 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13807 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13808 | else |
13809 | # We need a cross tool | |
81ecdfbb RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13811 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13812 | fi |
13813 | fi | |
4b900473 | 13814 | |
81ecdfbb RW |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13816 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13817 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13818 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13819 | # We already found the complete path | |
b8025f34 | 13820 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13822 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13823 | else |
13824 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13826 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13827 | fi |
be01d343 PB |
13828 | else |
13829 | ok=yes | |
13830 | case " ${configdirs} " in | |
13831 | *" gas "*) ;; | |
13832 | *) ok=no ;; | |
13833 | esac | |
c6b750e1 | 13834 | |
be01d343 PB |
13835 | if test $ok = yes; then |
13836 | # An in-tree tool is available and we can use it | |
13837 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13839 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13840 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13841 | # We already found the complete path | |
b8025f34 | 13842 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13844 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13845 | elif test "x$target" = "x$host"; then |
13846 | # We can use an host tool | |
13847 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13849 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13850 | else |
13851 | # We need a cross tool | |
81ecdfbb RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13853 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13854 | fi |
13855 | fi | |
4b900473 | 13856 | |
81ecdfbb RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13858 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13859 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13860 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13861 | # We already found the complete path | |
b8025f34 | 13862 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13864 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13865 | else |
13866 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13868 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13869 | fi |
be01d343 PB |
13870 | else |
13871 | ok=yes | |
13872 | case " ${configdirs} " in | |
13873 | *" gcc "*) ;; | |
13874 | *) ok=no ;; | |
13875 | esac | |
c6b750e1 | 13876 | |
be01d343 PB |
13877 | if test $ok = yes; then |
13878 | # An in-tree tool is available and we can use it | |
13879 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13881 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13882 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13883 | # We already found the complete path | |
b8025f34 | 13884 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13886 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13887 | elif test "x$target" = "x$host"; then |
13888 | # We can use an host tool | |
13889 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13891 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13892 | else |
13893 | # We need a cross tool | |
81ecdfbb RW |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13895 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13896 | fi |
13897 | fi | |
4b900473 | 13898 | |
81ecdfbb RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13900 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13901 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13902 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13903 | # We already found the complete path | |
b8025f34 | 13904 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13906 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13907 | else |
13908 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13910 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13911 | fi |
be01d343 PB |
13912 | else |
13913 | ok=yes | |
13914 | case " ${configdirs} " in | |
13915 | *" gcc "*) ;; | |
13916 | *) ok=no ;; | |
13917 | esac | |
13918 | case ,${enable_languages}, in | |
13919 | *,c++,*) ;; | |
13920 | *) ok=no ;; | |
13921 | esac | |
13922 | if test $ok = yes; then | |
13923 | # An in-tree tool is available and we can use it | |
95e43135 | 13924 | 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 |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13926 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13927 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13928 | # We already found the complete path | |
b8025f34 | 13929 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13931 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13932 | elif test "x$target" = "x$host"; then |
13933 | # We can use an host tool | |
13934 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13936 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13937 | else |
13938 | # We need a cross tool | |
81ecdfbb RW |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13940 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13941 | fi |
13942 | fi | |
4b900473 | 13943 | |
81ecdfbb RW |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13945 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13946 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13947 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13948 | # We already found the complete path | |
b8025f34 | 13949 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13951 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13952 | else |
13953 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13955 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13956 | fi |
be01d343 PB |
13957 | else |
13958 | ok=yes | |
13959 | case " ${configdirs} " in | |
13960 | *" gcc "*) ;; | |
13961 | *) ok=no ;; | |
13962 | esac | |
13963 | case ,${enable_languages}, in | |
13964 | *,c++,*) ;; | |
13965 | *) ok=no ;; | |
13966 | esac | |
13967 | if test $ok = yes; then | |
13968 | # An in-tree tool is available and we can use it | |
95e43135 | 13969 | 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 |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13971 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13972 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13973 | # We already found the complete path | |
b8025f34 | 13974 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13976 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13977 | elif test "x$target" = "x$host"; then |
13978 | # We can use an host tool | |
13979 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13981 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13982 | else |
13983 | # We need a cross tool | |
81ecdfbb RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13985 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13986 | fi |
13987 | fi | |
4b900473 | 13988 | |
81ecdfbb RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13990 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13991 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13992 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13993 | # We already found the complete path | |
b8025f34 | 13994 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13996 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13997 | else |
13998 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14000 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14001 | fi |
be01d343 PB |
14002 | else |
14003 | ok=yes | |
14004 | case " ${configdirs} " in | |
14005 | *" binutils "*) ;; | |
14006 | *) ok=no ;; | |
14007 | esac | |
c6b750e1 | 14008 | |
be01d343 PB |
14009 | if test $ok = yes; then |
14010 | # An in-tree tool is available and we can use it | |
14011 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14013 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14014 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14015 | # We already found the complete path | |
b8025f34 | 14016 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14018 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14019 | elif test "x$target" = "x$host"; then |
14020 | # We can use an host tool | |
14021 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14023 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14024 | else |
14025 | # We need a cross tool | |
81ecdfbb RW |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14027 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14028 | fi |
14029 | fi | |
4b900473 | 14030 | |
81ecdfbb RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14032 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14033 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14034 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14035 | # We already found the complete path | |
b8025f34 | 14036 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14038 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14039 | else |
14040 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14042 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14043 | fi |
be01d343 PB |
14044 | else |
14045 | ok=yes | |
14046 | case " ${configdirs} " in | |
14047 | *" gcc "*) ;; | |
14048 | *) ok=no ;; | |
14049 | esac | |
c6b750e1 | 14050 | |
be01d343 PB |
14051 | if test $ok = yes; then |
14052 | # An in-tree tool is available and we can use it | |
14053 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14055 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14056 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14057 | # We already found the complete path | |
b8025f34 | 14058 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14060 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14061 | elif test "x$target" = "x$host"; then |
14062 | # We can use an host tool | |
14063 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14065 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14066 | else |
14067 | # We need a cross tool | |
81ecdfbb RW |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14069 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14070 | fi |
14071 | fi | |
4b900473 | 14072 | |
81ecdfbb RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14074 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14075 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14076 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14077 | # We already found the complete path | |
b8025f34 | 14078 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14080 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14081 | else |
14082 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14084 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14085 | fi |
be01d343 PB |
14086 | else |
14087 | ok=yes | |
14088 | case " ${configdirs} " in | |
14089 | *" gcc "*) ;; | |
14090 | *) ok=no ;; | |
14091 | esac | |
14092 | case ,${enable_languages}, in | |
14093 | *,fortran,*) ;; | |
14094 | *) ok=no ;; | |
14095 | esac | |
14096 | if test $ok = yes; then | |
14097 | # An in-tree tool is available and we can use it | |
14098 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14100 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14101 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14102 | # We already found the complete path | |
b8025f34 | 14103 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14105 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14106 | elif test "x$target" = "x$host"; then |
14107 | # We can use an host tool | |
14108 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14110 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14111 | else |
14112 | # We need a cross tool | |
81ecdfbb RW |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14114 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14115 | fi |
14116 | fi | |
4b900473 | 14117 | |
e552509b ILT |
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14119 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14120 | if test "x${build}" != "x${host}" ; then | |
14121 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14122 | # We already found the complete path | |
14123 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14125 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14126 | else | |
14127 | # Canadian cross, just use what we found | |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14129 | $as_echo "pre-installed" >&6; } | |
14130 | fi | |
14131 | else | |
14132 | ok=yes | |
14133 | case " ${configdirs} " in | |
14134 | *" gcc "*) ;; | |
14135 | *) ok=no ;; | |
14136 | esac | |
14137 | case ,${enable_languages}, in | |
14138 | *,go,*) ;; | |
14139 | *) ok=no ;; | |
14140 | esac | |
14141 | if test $ok = yes; then | |
14142 | # An in-tree tool is available and we can use it | |
14143 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14145 | $as_echo "just compiled" >&6; } | |
14146 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14147 | # We already found the complete path | |
14148 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14150 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14151 | elif test "x$target" = "x$host"; then | |
14152 | # We can use an host tool | |
14153 | GOC_FOR_TARGET='$(GOC)' | |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14155 | $as_echo "host tool" >&6; } | |
14156 | else | |
14157 | # We need a cross tool | |
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14159 | $as_echo "pre-installed" >&6; } | |
14160 | fi | |
14161 | fi | |
14162 | ||
81ecdfbb RW |
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14164 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14165 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14166 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14167 | # We already found the complete path | |
b8025f34 | 14168 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14170 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14171 | else |
14172 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14174 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14175 | fi |
be01d343 PB |
14176 | else |
14177 | ok=yes | |
14178 | case " ${configdirs} " in | |
14179 | *" ld "*) ;; | |
14180 | *) ok=no ;; | |
14181 | esac | |
c6b750e1 | 14182 | |
be01d343 PB |
14183 | if test $ok = yes; then |
14184 | # An in-tree tool is available and we can use it | |
14185 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14187 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14188 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14189 | # We already found the complete path | |
b8025f34 | 14190 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14192 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14193 | elif test "x$target" = "x$host"; then |
14194 | # We can use an host tool | |
14195 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14197 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14198 | else |
14199 | # We need a cross tool | |
81ecdfbb RW |
14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14201 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14202 | fi |
14203 | fi | |
4b900473 | 14204 | |
81ecdfbb RW |
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14206 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14207 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14208 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14209 | # We already found the complete path | |
b8025f34 | 14210 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14212 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14213 | else |
14214 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14216 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14217 | fi |
be01d343 | 14218 | else |
2429c060 PB |
14219 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14220 | # We already found the complete path | |
b8025f34 | 14221 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14223 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14224 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14225 | # We can use an host tool |
14226 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14228 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14229 | else |
14230 | # We need a cross tool | |
81ecdfbb RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14232 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14233 | fi |
14234 | fi | |
4b900473 | 14235 | |
81ecdfbb RW |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14237 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14238 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14239 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14240 | # We already found the complete path | |
b8025f34 | 14241 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14243 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14244 | else |
14245 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14247 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14248 | fi |
be01d343 PB |
14249 | else |
14250 | ok=yes | |
14251 | case " ${configdirs} " in | |
14252 | *" binutils "*) ;; | |
14253 | *) ok=no ;; | |
14254 | esac | |
c6b750e1 | 14255 | |
be01d343 PB |
14256 | if test $ok = yes; then |
14257 | # An in-tree tool is available and we can use it | |
14258 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14260 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14261 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14262 | # We already found the complete path | |
b8025f34 | 14263 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14265 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14266 | elif test "x$target" = "x$host"; then |
14267 | # We can use an host tool | |
14268 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14270 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14271 | else |
14272 | # We need a cross tool | |
81ecdfbb RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14274 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14275 | fi |
14276 | fi | |
4b900473 | 14277 | |
6b91c541 AP |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14279 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14280 | if test "x${build}" != "x${host}" ; then | |
14281 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14282 | # We already found the complete path | |
14283 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14285 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14286 | else | |
14287 | # Canadian cross, just use what we found | |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14289 | $as_echo "pre-installed" >&6; } | |
14290 | fi | |
14291 | else | |
14292 | ok=yes | |
14293 | case " ${configdirs} " in | |
14294 | *" binutils "*) ;; | |
14295 | *) ok=no ;; | |
14296 | esac | |
14297 | ||
14298 | if test $ok = yes; then | |
14299 | # An in-tree tool is available and we can use it | |
14300 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14302 | $as_echo "just compiled" >&6; } | |
14303 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14304 | # We already found the complete path | |
14305 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14307 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14308 | elif test "x$target" = "x$host"; then | |
14309 | # We can use an host tool | |
1b6c0831 | 14310 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14312 | $as_echo "host tool" >&6; } | |
14313 | else | |
14314 | # We need a cross tool | |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14316 | $as_echo "pre-installed" >&6; } | |
14317 | fi | |
14318 | fi | |
14319 | ||
81ecdfbb RW |
14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14321 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14322 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14323 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14324 | # We already found the complete path | |
b8025f34 | 14325 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14327 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14328 | else |
14329 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14331 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14332 | fi |
be01d343 PB |
14333 | else |
14334 | ok=yes | |
14335 | case " ${configdirs} " in | |
14336 | *" binutils "*) ;; | |
14337 | *) ok=no ;; | |
14338 | esac | |
c6b750e1 | 14339 | |
be01d343 PB |
14340 | if test $ok = yes; then |
14341 | # An in-tree tool is available and we can use it | |
14342 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14344 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14345 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14346 | # We already found the complete path | |
b8025f34 | 14347 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14349 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14350 | elif test "x$target" = "x$host"; then |
14351 | # We can use an host tool | |
14352 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14354 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14355 | else |
14356 | # We need a cross tool | |
81ecdfbb RW |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14358 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14359 | fi |
14360 | fi | |
4b900473 | 14361 | |
81ecdfbb RW |
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14363 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14364 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14365 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14366 | # We already found the complete path | |
b8025f34 | 14367 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14369 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14370 | else |
14371 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14373 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14374 | fi |
be01d343 PB |
14375 | else |
14376 | ok=yes | |
14377 | case " ${configdirs} " in | |
14378 | *" binutils "*) ;; | |
14379 | *) ok=no ;; | |
14380 | esac | |
c6b750e1 | 14381 | |
be01d343 PB |
14382 | if test $ok = yes; then |
14383 | # An in-tree tool is available and we can use it | |
14384 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14386 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14387 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14388 | # We already found the complete path | |
b8025f34 | 14389 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14391 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14392 | elif test "x$target" = "x$host"; then |
14393 | # We can use an host tool | |
14394 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14396 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14397 | else |
14398 | # We need a cross tool | |
81ecdfbb RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14400 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14401 | fi |
14402 | fi | |
4b900473 | 14403 | |
b121d7d4 DD |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14405 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14406 | if test "x${build}" != "x${host}" ; then | |
14407 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14408 | # We already found the complete path | |
14409 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14411 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14412 | else | |
14413 | # Canadian cross, just use what we found | |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14415 | $as_echo "pre-installed" >&6; } | |
14416 | fi | |
14417 | else | |
14418 | ok=yes | |
14419 | case " ${configdirs} " in | |
14420 | *" binutils "*) ;; | |
14421 | *) ok=no ;; | |
14422 | esac | |
14423 | ||
14424 | if test $ok = yes; then | |
14425 | # An in-tree tool is available and we can use it | |
14426 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14428 | $as_echo "just compiled" >&6; } | |
14429 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14430 | # We already found the complete path | |
14431 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14433 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14434 | elif test "x$target" = "x$host"; then | |
14435 | # We can use an host tool | |
14436 | READELF_FOR_TARGET='$(READELF)' | |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14438 | $as_echo "host tool" >&6; } | |
14439 | else | |
14440 | # We need a cross tool | |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14442 | $as_echo "pre-installed" >&6; } | |
14443 | fi | |
14444 | fi | |
14445 | ||
81ecdfbb RW |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14447 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14448 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14449 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14450 | # We already found the complete path | |
b8025f34 | 14451 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14453 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14454 | else |
14455 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14457 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14458 | fi |
be01d343 PB |
14459 | else |
14460 | ok=yes | |
14461 | case " ${configdirs} " in | |
14462 | *" binutils "*) ;; | |
14463 | *) ok=no ;; | |
14464 | esac | |
c6b750e1 | 14465 | |
be01d343 PB |
14466 | if test $ok = yes; then |
14467 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14468 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14470 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14471 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14472 | # We already found the complete path | |
b8025f34 | 14473 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14475 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14476 | elif test "x$target" = "x$host"; then |
14477 | # We can use an host tool | |
14478 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14480 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14481 | else |
14482 | # We need a cross tool | |
81ecdfbb RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14484 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14485 | fi |
14486 | fi | |
4b900473 | 14487 | |
81ecdfbb RW |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14489 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14490 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14491 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14492 | # We already found the complete path | |
b8025f34 | 14493 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14495 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14496 | else |
14497 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14499 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14500 | fi |
be01d343 PB |
14501 | else |
14502 | ok=yes | |
14503 | case " ${configdirs} " in | |
14504 | *" binutils "*) ;; | |
14505 | *) ok=no ;; | |
14506 | esac | |
c6b750e1 | 14507 | |
be01d343 PB |
14508 | if test $ok = yes; then |
14509 | # An in-tree tool is available and we can use it | |
14510 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14512 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14513 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14514 | # We already found the complete path | |
b8025f34 | 14515 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14517 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14518 | elif test "x$target" = "x$host"; then |
14519 | # We can use an host tool | |
14520 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14522 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14523 | else |
14524 | # We need a cross tool | |
81ecdfbb RW |
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14526 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14527 | fi |
a0da8069 | 14528 | fi |
54752a6b | 14529 | |
81ecdfbb RW |
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14531 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14532 | if test "x${build}" != "x${host}" ; then |
14533 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14534 | # We already found the complete path | |
14535 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14537 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14538 | else |
14539 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14541 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14542 | fi |
14543 | else | |
14544 | ok=yes | |
14545 | case " ${configdirs} " in | |
14546 | *" binutils "*) ;; | |
14547 | *) ok=no ;; | |
14548 | esac | |
14549 | ||
14550 | if test $ok = yes; then | |
14551 | # An in-tree tool is available and we can use it | |
14552 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14554 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14555 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14556 | # We already found the complete path | |
14557 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14559 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14560 | elif test "x$target" = "x$host"; then |
14561 | # We can use an host tool | |
14562 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14564 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14565 | else |
14566 | # We need a cross tool | |
81ecdfbb RW |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14568 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14569 | fi |
14570 | fi | |
14571 | ||
54752a6b NN |
14572 | |
14573 | ||
be01d343 | 14574 | |
4b900473 | 14575 | |
a0da8069 NN |
14576 | # Certain tools may need extra flags. |
14577 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14578 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14579 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14580 | ||
be01d343 PB |
14581 | # When building target libraries, except in a Canadian cross, we use |
14582 | # the same toolchain as the compiler we just built. | |
14583 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14584 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14585 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14586 | if test $host = $build; then | |
14587 | case " $configdirs " in | |
14588 | *" gcc "*) | |
14589 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14590 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14591 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14592 | ;; | |
14593 | esac | |
14594 | fi | |
14595 | ||
14596 | ||
14597 | ||
14598 | ||
14599 | ||
81ecdfbb RW |
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14601 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14602 | # Check whether --enable-maintainer-mode was given. | |
14603 | if test "${enable_maintainer_mode+set}" = set; then : | |
14604 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14605 | else |
14606 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14607 | fi |
14608 | ||
14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14610 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14611 | |
14612 | ||
14613 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14614 | MAINTAINER_MODE_TRUE= | |
14615 | MAINTAINER_MODE_FALSE='#' | |
14616 | else | |
14617 | MAINTAINER_MODE_TRUE='#' | |
14618 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14619 | fi |
3d5e36ae AO |
14620 | MAINT=$MAINTAINER_MODE_TRUE |
14621 | ||
1d39f329 NN |
14622 | # --------------------- |
14623 | # GCC bootstrap support | |
14624 | # --------------------- | |
14625 | ||
14626 | # Stage specific cflags for build. | |
14627 | stage1_cflags="-g" | |
14628 | case $build in | |
14629 | vax-*-*) | |
14630 | case ${GCC} in | |
14631 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14632 | *) stage1_cflags="-g -J" ;; | |
14633 | esac ;; | |
1d39f329 NN |
14634 | esac |
14635 | ||
1d89b610 | 14636 | |
1d39f329 | 14637 | |
8a0d8a5c | 14638 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14639 | # Check whether --enable-stage1-checking was given. |
14640 | if test "${enable_stage1_checking+set}" = set; then : | |
14641 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14642 | else |
5566c1fa | 14643 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14644 | # For --disable-checking or implicit --enable-checking=release, avoid |
14645 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14646 | # bootstraps. See PR62077. | |
ce6c656d L |
14647 | case $BUILD_CONFIG in |
14648 | *lto*) | |
05a13254 NC |
14649 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14650 | *) | |
14651 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 14652 | esac |
05a13254 NC |
14653 | if test "x$enable_checking" = x && \ |
14654 | test -d ${srcdir}/gcc && \ | |
14655 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14656 | stage1_checking=--enable-checking=yes,types,extra | |
14657 | fi | |
8a0d8a5c | 14658 | else |
5566c1fa | 14659 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14660 | fi |
81ecdfbb | 14661 | fi |
8a0d8a5c PB |
14662 | |
14663 | ||
c6b750e1 | 14664 | |
81ecdfbb RW |
14665 | # Enable -Werror in bootstrap stage2 and later. |
14666 | # Check whether --enable-werror was given. | |
14667 | if test "${enable_werror+set}" = set; then : | |
14668 | enableval=$enable_werror; | |
1a6f2dc7 NN |
14669 | case ${enable_werror} in |
14670 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14671 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14672 | esac |
14673 | ||
82033c9b | 14674 | else |
82033c9b | 14675 | |
bf41f30d NC |
14676 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
14677 | case $BUILD_CONFIG in | |
14678 | bootstrap-debug) | |
14679 | stage2_werror_flag="--enable-werror-always" ;; | |
14680 | "") | |
14681 | stage2_werror_flag="--enable-werror-always" ;; | |
14682 | esac | |
14683 | fi | |
82033c9b | 14684 | |
bf41f30d | 14685 | fi |
82033c9b | 14686 | |
1b6c0831 | 14687 | |
1b6c0831 | 14688 | |
1b6c0831 | 14689 | |
e8a5fa9c RW |
14690 | # Specify what files to not compare during bootstrap. |
14691 | ||
14692 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14693 | case "$target" in | |
14694 | hppa*64*-*-hpux*) ;; | |
bf41f30d | 14695 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
1488e230 | 14696 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14697 | esac |
14698 | ||
14699 | ||
81ecdfbb RW |
14700 | ac_config_files="$ac_config_files Makefile" |
14701 | ||
c6b750e1 | 14702 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14703 | # This file is a shell script that caches the results of configure |
14704 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14705 | # scripts and configure runs, see configure's option --config-cache. |
14706 | # It is not useful on other systems. If it contains results you don't | |
14707 | # want to keep, you may remove or edit it. | |
a0da8069 | 14708 | # |
c6b750e1 DJ |
14709 | # config.status only pays attention to the cache file if you give it |
14710 | # the --recheck option to rerun configure. | |
a0da8069 | 14711 | # |
c6b750e1 DJ |
14712 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14713 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14714 | # following values. | |
14715 | ||
14716 | _ACEOF | |
14717 | ||
a0da8069 NN |
14718 | # The following way of writing the cache mishandles newlines in values, |
14719 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14720 | # So, we kill variables containing newlines. |
a0da8069 NN |
14721 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14722 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14723 | ( |
14724 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14725 | eval ac_val=\$$ac_var | |
14726 | case $ac_val in #( | |
14727 | *${as_nl}*) | |
14728 | case $ac_var in #( | |
14729 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14730 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14731 | esac | |
14732 | case $ac_var in #( | |
14733 | _ | IFS | as_nl) ;; #( | |
14734 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14735 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14736 | esac ;; | |
14737 | esac | |
14738 | done | |
14739 | ||
c6b750e1 | 14740 | (set) 2>&1 | |
81ecdfbb RW |
14741 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14742 | *${as_nl}ac_space=\ *) | |
14743 | # `set' does not quote correctly, so add quotes: double-quote | |
14744 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14745 | sed -n \ |
14746 | "s/'/'\\\\''/g; | |
14747 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14748 | ;; #( |
c6b750e1 DJ |
14749 | *) |
14750 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14751 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14752 | ;; |
81ecdfbb RW |
14753 | esac | |
14754 | sort | |
14755 | ) | | |
c6b750e1 | 14756 | sed ' |
81ecdfbb | 14757 | /^ac_cv_env_/b end |
c6b750e1 | 14758 | t clear |
81ecdfbb | 14759 | :clear |
c6b750e1 DJ |
14760 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14761 | t end | |
81ecdfbb RW |
14762 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14763 | :end' >>confcache | |
14764 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14765 | if test -w "$cache_file"; then | |
d0ac1c44 | 14766 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14768 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
14769 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14770 | cat confcache >"$cache_file" | |
14771 | else | |
14772 | case $cache_file in #( | |
14773 | */* | ?:*) | |
14774 | mv -f confcache "$cache_file"$$ && | |
14775 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14776 | *) | |
14777 | mv -f confcache "$cache_file" ;; | |
14778 | esac | |
14779 | fi | |
14780 | fi | |
a0da8069 | 14781 | else |
81ecdfbb RW |
14782 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14783 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14784 | fi |
852e5f18 | 14785 | fi |
a0da8069 | 14786 | rm -f confcache |
852e5f18 | 14787 | |
a0da8069 NN |
14788 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14789 | # Let make expand exec_prefix. | |
14790 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14791 | |
a0da8069 NN |
14792 | # Transform confdefs.h into DEFS. |
14793 | # Protect against shell expansion while executing Makefile rules. | |
14794 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14795 | # |
14796 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14797 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14798 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14799 | ac_script=' |
14800 | :mline | |
14801 | /\\$/{ | |
14802 | N | |
14803 | s,\\\n,, | |
14804 | b mline | |
14805 | } | |
c6b750e1 | 14806 | t clear |
81ecdfbb RW |
14807 | :clear |
14808 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14809 | t quote |
81ecdfbb | 14810 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14811 | t quote |
81ecdfbb RW |
14812 | b any |
14813 | :quote | |
14814 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14815 | s/\[/\\&/g | |
14816 | s/\]/\\&/g | |
14817 | s/\$/$$/g | |
14818 | H | |
14819 | :any | |
14820 | ${ | |
14821 | g | |
14822 | s/^\n// | |
14823 | s/\n/ /g | |
14824 | p | |
14825 | } | |
14826 | ' | |
14827 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14828 | |
14829 | ||
14830 | ac_libobjs= | |
14831 | ac_ltlibobjs= | |
d0ac1c44 | 14832 | U= |
c6b750e1 DJ |
14833 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14834 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14835 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14836 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14837 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14838 | # will be set to the directory where LIBOBJS objects are built. | |
14839 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14840 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14841 | done |
14842 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14843 | |
c6b750e1 | 14844 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14845 | |
cac3d6c4 | 14846 | |
c6b750e1 | 14847 | |
d0ac1c44 | 14848 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 14849 | ac_write_fail=0 |
c6b750e1 DJ |
14850 | ac_clean_files_save=$ac_clean_files |
14851 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14853 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14854 | as_write_fail=0 | |
14855 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14856 | #! $SHELL |
14857 | # Generated by $as_me. | |
a0da8069 | 14858 | # Run this file to recreate the current configuration. |
a0da8069 | 14859 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14860 | # configure, is in config.log if it exists. |
376a0e54 | 14861 | |
c6b750e1 DJ |
14862 | debug=false |
14863 | ac_cs_recheck=false | |
14864 | ac_cs_silent=false | |
c6b750e1 | 14865 | |
81ecdfbb RW |
14866 | SHELL=\${CONFIG_SHELL-$SHELL} |
14867 | export SHELL | |
14868 | _ASEOF | |
14869 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14870 | ## -------------------- ## | |
14871 | ## M4sh Initialization. ## | |
14872 | ## -------------------- ## | |
14873 | ||
14874 | # Be more Bourne compatible | |
14875 | DUALCASE=1; export DUALCASE # for MKS sh | |
14876 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14877 | emulate sh |
14878 | NULLCMD=: | |
81ecdfbb | 14879 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14880 | # is contrary to our usage. Disable this feature. |
14881 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14882 | setopt NO_GLOB_SUBST |
14883 | else | |
14884 | case `(set -o) 2>/dev/null` in #( | |
14885 | *posix*) : | |
14886 | set -o posix ;; #( | |
14887 | *) : | |
14888 | ;; | |
14889 | esac | |
c6b750e1 | 14890 | fi |
c6b750e1 | 14891 | |
81ecdfbb RW |
14892 | |
14893 | as_nl=' | |
14894 | ' | |
14895 | export as_nl | |
14896 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14897 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14898 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14899 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14900 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14901 | # but without wasting forks for bash or zsh. | |
14902 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14903 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14904 | as_echo='print -r --' | |
14905 | as_echo_n='print -rn --' | |
14906 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14907 | as_echo='printf %s\n' | |
14908 | as_echo_n='printf %s' | |
14909 | else | |
14910 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14911 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14912 | as_echo_n='/usr/ucb/echo -n' | |
14913 | else | |
14914 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14915 | as_echo_n_body='eval | |
14916 | arg=$1; | |
14917 | case $arg in #( | |
14918 | *"$as_nl"*) | |
14919 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14920 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14921 | esac; | |
14922 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14923 | ' | |
14924 | export as_echo_n_body | |
14925 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14926 | fi | |
14927 | export as_echo_body | |
14928 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14929 | fi |
14930 | ||
81ecdfbb RW |
14931 | # The user is always right. |
14932 | if test "${PATH_SEPARATOR+set}" != set; then | |
14933 | PATH_SEPARATOR=: | |
14934 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14935 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14936 | PATH_SEPARATOR=';' | |
14937 | } | |
14938 | fi | |
14939 | ||
14940 | ||
14941 | # IFS | |
14942 | # We need space, tab and new line, in precisely that order. Quoting is | |
14943 | # there to prevent editors from complaining about space-tab. | |
14944 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14945 | # splitting by setting IFS to empty value.) | |
14946 | IFS=" "" $as_nl" | |
14947 | ||
14948 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 14949 | as_myself= |
81ecdfbb RW |
14950 | case $0 in #(( |
14951 | *[\\/]* ) as_myself=$0 ;; | |
14952 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14953 | for as_dir in $PATH | |
14954 | do | |
14955 | IFS=$as_save_IFS | |
14956 | test -z "$as_dir" && as_dir=. | |
14957 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14958 | done | |
14959 | IFS=$as_save_IFS | |
14960 | ||
14961 | ;; | |
14962 | esac | |
14963 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14964 | # in which case we are not to be found in the path. | |
14965 | if test "x$as_myself" = x; then | |
14966 | as_myself=$0 | |
14967 | fi | |
14968 | if test ! -f "$as_myself"; then | |
14969 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14970 | exit 1 | |
14971 | fi | |
c6b750e1 | 14972 | |
81ecdfbb RW |
14973 | # Unset variables that we do not need and which cause bugs (e.g. in |
14974 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14975 | # suppresses any "Segmentation fault" message there. '((' could | |
14976 | # trigger a bug in pdksh 5.2.14. | |
14977 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14978 | do eval test x\${$as_var+set} = xset \ | |
14979 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14980 | done | |
c6b750e1 DJ |
14981 | PS1='$ ' |
14982 | PS2='> ' | |
14983 | PS4='+ ' | |
14984 | ||
14985 | # NLS nuisances. | |
81ecdfbb RW |
14986 | LC_ALL=C |
14987 | export LC_ALL | |
14988 | LANGUAGE=C | |
14989 | export LANGUAGE | |
14990 | ||
14991 | # CDPATH. | |
14992 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14993 | ||
14994 | ||
d0ac1c44 SM |
14995 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14996 | # ---------------------------------------- | |
81ecdfbb RW |
14997 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14998 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 14999 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15000 | as_fn_error () |
15001 | { | |
d0ac1c44 SM |
15002 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15003 | if test "$4"; then | |
15004 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15005 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 15006 | fi |
d0ac1c44 | 15007 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15008 | as_fn_exit $as_status |
15009 | } # as_fn_error | |
15010 | ||
15011 | ||
15012 | # as_fn_set_status STATUS | |
15013 | # ----------------------- | |
15014 | # Set $? to STATUS, without forking. | |
15015 | as_fn_set_status () | |
15016 | { | |
15017 | return $1 | |
15018 | } # as_fn_set_status | |
15019 | ||
15020 | # as_fn_exit STATUS | |
15021 | # ----------------- | |
15022 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15023 | as_fn_exit () | |
15024 | { | |
15025 | set +e | |
15026 | as_fn_set_status $1 | |
15027 | exit $1 | |
15028 | } # as_fn_exit | |
15029 | ||
15030 | # as_fn_unset VAR | |
15031 | # --------------- | |
15032 | # Portably unset VAR. | |
15033 | as_fn_unset () | |
15034 | { | |
15035 | { eval $1=; unset $1;} | |
15036 | } | |
15037 | as_unset=as_fn_unset | |
15038 | # as_fn_append VAR VALUE | |
15039 | # ---------------------- | |
15040 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15041 | # advantage of any shell optimizations that allow amortized linear growth over | |
15042 | # repeated appends, instead of the typical quadratic growth present in naive | |
15043 | # implementations. | |
15044 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15045 | eval 'as_fn_append () | |
15046 | { | |
15047 | eval $1+=\$2 | |
15048 | }' | |
15049 | else | |
15050 | as_fn_append () | |
15051 | { | |
15052 | eval $1=\$$1\$2 | |
15053 | } | |
15054 | fi # as_fn_append | |
15055 | ||
15056 | # as_fn_arith ARG... | |
15057 | # ------------------ | |
15058 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15059 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15060 | # must be portable across $(()) and expr. | |
15061 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15062 | eval 'as_fn_arith () | |
15063 | { | |
15064 | as_val=$(( $* )) | |
15065 | }' | |
15066 | else | |
15067 | as_fn_arith () | |
15068 | { | |
15069 | as_val=`expr "$@" || test $? -eq 1` | |
15070 | } | |
15071 | fi # as_fn_arith | |
15072 | ||
c6b750e1 | 15073 | |
81ecdfbb RW |
15074 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15075 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15076 | as_expr=expr |
15077 | else | |
15078 | as_expr=false | |
15079 | fi | |
15080 | ||
81ecdfbb | 15081 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15082 | as_basename=basename |
15083 | else | |
15084 | as_basename=false | |
15085 | fi | |
15086 | ||
81ecdfbb RW |
15087 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15088 | as_dirname=dirname | |
15089 | else | |
15090 | as_dirname=false | |
15091 | fi | |
c6b750e1 | 15092 | |
81ecdfbb | 15093 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15094 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15095 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15096 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15097 | $as_echo X/"$0" | | |
15098 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15099 | s//\1/ | |
15100 | q | |
15101 | } | |
15102 | /^X\/\(\/\/\)$/{ | |
15103 | s//\1/ | |
15104 | q | |
15105 | } | |
15106 | /^X\/\(\/\).*/{ | |
15107 | s//\1/ | |
15108 | q | |
15109 | } | |
15110 | s/.*/./; q'` | |
c6b750e1 | 15111 | |
c6b750e1 DJ |
15112 | # Avoid depending upon Character Ranges. |
15113 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15114 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15115 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15116 | as_cr_digits='0123456789' | |
15117 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15118 | ||
81ecdfbb RW |
15119 | ECHO_C= ECHO_N= ECHO_T= |
15120 | case `echo -n x` in #((((( | |
15121 | -n*) | |
15122 | case `echo 'xy\c'` in | |
15123 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15124 | xy) ECHO_C='\c';; | |
15125 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15126 | ECHO_T=' ';; | |
15127 | esac;; | |
15128 | *) | |
15129 | ECHO_N='-n';; | |
c6b750e1 DJ |
15130 | esac |
15131 | ||
81ecdfbb RW |
15132 | rm -f conf$$ conf$$.exe conf$$.file |
15133 | if test -d conf$$.dir; then | |
15134 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15135 | else |
81ecdfbb RW |
15136 | rm -f conf$$.dir |
15137 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15138 | fi |
81ecdfbb RW |
15139 | if (echo >conf$$.file) 2>/dev/null; then |
15140 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15141 | as_ln_s='ln -s' |
81ecdfbb RW |
15142 | # ... but there are two gotchas: |
15143 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15144 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15145 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15146 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15147 | as_ln_s='cp -pR' |
81ecdfbb RW |
15148 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15149 | as_ln_s=ln | |
15150 | else | |
d0ac1c44 | 15151 | as_ln_s='cp -pR' |
c6b750e1 | 15152 | fi |
c6b750e1 | 15153 | else |
d0ac1c44 | 15154 | as_ln_s='cp -pR' |
c6b750e1 | 15155 | fi |
81ecdfbb RW |
15156 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15157 | rmdir conf$$.dir 2>/dev/null | |
15158 | ||
15159 | ||
15160 | # as_fn_mkdir_p | |
15161 | # ------------- | |
15162 | # Create "$as_dir" as a directory, including parents if necessary. | |
15163 | as_fn_mkdir_p () | |
15164 | { | |
15165 | ||
15166 | case $as_dir in #( | |
15167 | -*) as_dir=./$as_dir;; | |
15168 | esac | |
15169 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15170 | as_dirs= | |
15171 | while :; do | |
15172 | case $as_dir in #( | |
15173 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15174 | *) as_qdir=$as_dir;; | |
15175 | esac | |
15176 | as_dirs="'$as_qdir' $as_dirs" | |
15177 | as_dir=`$as_dirname -- "$as_dir" || | |
15178 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15179 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15180 | X"$as_dir" : 'X\(//\)$' \| \ | |
15181 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15182 | $as_echo X"$as_dir" | | |
15183 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15184 | s//\1/ | |
15185 | q | |
15186 | } | |
15187 | /^X\(\/\/\)[^/].*/{ | |
15188 | s//\1/ | |
15189 | q | |
15190 | } | |
15191 | /^X\(\/\/\)$/{ | |
15192 | s//\1/ | |
15193 | q | |
15194 | } | |
15195 | /^X\(\/\).*/{ | |
15196 | s//\1/ | |
15197 | q | |
15198 | } | |
15199 | s/.*/./; q'` | |
15200 | test -d "$as_dir" && break | |
15201 | done | |
15202 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15203 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15204 | |
c6b750e1 | 15205 | |
81ecdfbb | 15206 | } # as_fn_mkdir_p |
c6b750e1 | 15207 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15208 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15209 | else |
15210 | test -d ./-p && rmdir ./-p | |
15211 | as_mkdir_p=false | |
15212 | fi | |
15213 | ||
d0ac1c44 SM |
15214 | |
15215 | # as_fn_executable_p FILE | |
15216 | # ----------------------- | |
15217 | # Test if FILE is an executable regular file. | |
15218 | as_fn_executable_p () | |
15219 | { | |
15220 | test -f "$1" && test -x "$1" | |
15221 | } # as_fn_executable_p | |
15222 | as_test_x='test -x' | |
15223 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
15224 | |
15225 | # Sed expression to map a string onto a valid CPP name. | |
15226 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15227 | ||
15228 | # Sed expression to map a string onto a valid variable name. | |
15229 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15230 | ||
15231 | ||
c6b750e1 | 15232 | exec 6>&1 |
81ecdfbb RW |
15233 | ## ----------------------------------- ## |
15234 | ## Main body of $CONFIG_STATUS script. ## | |
15235 | ## ----------------------------------- ## | |
15236 | _ASEOF | |
15237 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15238 | ||
15239 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15240 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15241 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15242 | # values after options handling. |
15243 | ac_log=" | |
c6b750e1 | 15244 | This file was extended by $as_me, which was |
d0ac1c44 | 15245 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
15246 | |
15247 | CONFIG_FILES = $CONFIG_FILES | |
15248 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15249 | CONFIG_LINKS = $CONFIG_LINKS | |
15250 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15251 | $ $0 $@ | |
15252 | ||
81ecdfbb RW |
15253 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15254 | " | |
15255 | ||
c6b750e1 DJ |
15256 | _ACEOF |
15257 | ||
81ecdfbb RW |
15258 | case $ac_config_files in *" |
15259 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15260 | esac | |
c6b750e1 | 15261 | |
c6b750e1 | 15262 | |
c6b750e1 | 15263 | |
81ecdfbb RW |
15264 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15265 | # Files that config.status was made for. | |
15266 | config_files="$ac_config_files" | |
c6b750e1 | 15267 | |
81ecdfbb | 15268 | _ACEOF |
c6b750e1 | 15269 | |
81ecdfbb | 15270 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15271 | ac_cs_usage="\ |
81ecdfbb RW |
15272 | \`$as_me' instantiates files and other configuration actions |
15273 | from templates according to the current configuration. Unless the files | |
15274 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15275 | |
81ecdfbb | 15276 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15277 | |
15278 | -h, --help print this help, then exit | |
81ecdfbb | 15279 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15280 | --config print configuration, then exit |
81ecdfbb RW |
15281 | -q, --quiet, --silent |
15282 | do not print progress messages | |
c6b750e1 DJ |
15283 | -d, --debug don't remove temporary files |
15284 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15285 | --file=FILE[:TEMPLATE] |
15286 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15287 | |
15288 | Configuration files: | |
15289 | $config_files | |
15290 | ||
81ecdfbb | 15291 | Report bugs to the package provider." |
c6b750e1 | 15292 | |
81ecdfbb RW |
15293 | _ACEOF |
15294 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15295 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
15296 | ac_cs_version="\\ |
15297 | config.status | |
d0ac1c44 SM |
15298 | configured by $0, generated by GNU Autoconf 2.69, |
15299 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 15300 | |
d0ac1c44 | 15301 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
15302 | This config.status script is free software; the Free Software Foundation |
15303 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15304 | |
15305 | ac_pwd='$ac_pwd' | |
15306 | srcdir='$srcdir' | |
15307 | INSTALL='$INSTALL' | |
8e957354 | 15308 | AWK='$AWK' |
81ecdfbb | 15309 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15310 | _ACEOF |
15311 | ||
81ecdfbb RW |
15312 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15313 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15314 | ac_need_defaults=: |
15315 | while test $# != 0 | |
a0da8069 | 15316 | do |
c6b750e1 | 15317 | case $1 in |
d0ac1c44 | 15318 | --*=?*) |
81ecdfbb RW |
15319 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15320 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15321 | ac_shift=: |
15322 | ;; | |
d0ac1c44 SM |
15323 | --*=) |
15324 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15325 | ac_optarg= | |
15326 | ac_shift=: | |
15327 | ;; | |
81ecdfbb | 15328 | *) |
c6b750e1 DJ |
15329 | ac_option=$1 |
15330 | ac_optarg=$2 | |
15331 | ac_shift=shift | |
15332 | ;; | |
c6b750e1 DJ |
15333 | esac |
15334 | ||
15335 | case $ac_option in | |
15336 | # Handling of the options. | |
a0da8069 | 15337 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15338 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15339 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15340 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15341 | --config | --confi | --conf | --con | --co | --c ) |
15342 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15343 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
15344 | debug=: ;; |
15345 | --file | --fil | --fi | --f ) | |
15346 | $ac_shift | |
81ecdfbb RW |
15347 | case $ac_optarg in |
15348 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15349 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15350 | esac |
15351 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15352 | ac_need_defaults=false;; |
81ecdfbb RW |
15353 | --he | --h | --help | --hel | -h ) |
15354 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15355 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15356 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15357 | ac_cs_silent=: ;; | |
15358 | ||
15359 | # This is an error. | |
d0ac1c44 | 15360 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15361 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 15362 | |
81ecdfbb RW |
15363 | *) as_fn_append ac_config_targets " $1" |
15364 | ac_need_defaults=false ;; | |
c6b750e1 | 15365 | |
376a0e54 | 15366 | esac |
c6b750e1 | 15367 | shift |
376a0e54 CM |
15368 | done |
15369 | ||
c6b750e1 | 15370 | ac_configure_extra_args= |
376a0e54 | 15371 | |
c6b750e1 DJ |
15372 | if $ac_cs_silent; then |
15373 | exec 6>/dev/null | |
15374 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15375 | fi | |
376a0e54 | 15376 | |
c6b750e1 | 15377 | _ACEOF |
81ecdfbb | 15378 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15379 | if \$ac_cs_recheck; then |
d0ac1c44 | 15380 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15381 | shift |
15382 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15383 | CONFIG_SHELL='$SHELL' | |
15384 | export CONFIG_SHELL | |
15385 | exec "\$@" | |
c6b750e1 DJ |
15386 | fi |
15387 | ||
15388 | _ACEOF | |
81ecdfbb RW |
15389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15390 | exec 5>>config.log | |
15391 | { | |
15392 | echo | |
15393 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15394 | ## Running $as_me. ## | |
15395 | _ASBOX | |
15396 | $as_echo "$ac_log" | |
15397 | } >&5 | |
c6b750e1 | 15398 | |
81ecdfbb RW |
15399 | _ACEOF |
15400 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15401 | # |
15402 | # INIT-COMMANDS | |
15403 | # | |
15404 | extrasub_build="$extrasub_build" | |
15405 | extrasub_host="$extrasub_host" | |
15406 | extrasub_target="$extrasub_target" | |
15407 | ||
81ecdfbb | 15408 | _ACEOF |
c6b750e1 | 15409 | |
81ecdfbb | 15410 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15411 | |
81ecdfbb | 15412 | # Handling of arguments. |
c6b750e1 DJ |
15413 | for ac_config_target in $ac_config_targets |
15414 | do | |
81ecdfbb RW |
15415 | case $ac_config_target in |
15416 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15417 | ||
d0ac1c44 | 15418 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
15419 | esac |
15420 | done | |
15421 | ||
81ecdfbb | 15422 | |
c6b750e1 DJ |
15423 | # If the user did not use the arguments to specify the items to instantiate, |
15424 | # then the envvar interface is used. Set only those that are not. | |
15425 | # We use the long form for the default assignment because of an extremely | |
15426 | # bizarre bug on SunOS 4.1.3. | |
15427 | if $ac_need_defaults; then | |
15428 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15429 | fi | |
15430 | ||
15431 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15432 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15433 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15434 | # Hook for its removal unless debugging. |
15435 | # Note that there is a small window in which the directory will not be cleaned: | |
15436 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15437 | $debug || |
15438 | { | |
d0ac1c44 | 15439 | tmp= ac_tmp= |
81ecdfbb | 15440 | trap 'exit_status=$? |
d0ac1c44 SM |
15441 | : "${ac_tmp:=$tmp}" |
15442 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
15443 | ' 0 |
15444 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15445 | } |
c6b750e1 DJ |
15446 | # Create a (secure) tmp directory for tmp files. |
15447 | ||
15448 | { | |
81ecdfbb | 15449 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 15450 | test -d "$tmp" |
c6b750e1 DJ |
15451 | } || |
15452 | { | |
81ecdfbb RW |
15453 | tmp=./conf$$-$RANDOM |
15454 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
15455 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15456 | ac_tmp=$tmp | |
81ecdfbb RW |
15457 | |
15458 | # Set up the scripts for CONFIG_FILES section. | |
15459 | # No need to generate them if there are no CONFIG_FILES. | |
15460 | # This happens for instance with `./config.status config.h'. | |
15461 | if test -n "$CONFIG_FILES"; then | |
15462 | ||
15463 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15464 | ac_cs_awk_getline=: | |
15465 | ac_cs_awk_pipe_init= | |
15466 | ac_cs_awk_read_file=' | |
15467 | while ((getline aline < (F[key])) > 0) | |
15468 | print(aline) | |
15469 | close(F[key])' | |
15470 | ac_cs_awk_pipe_fini= | |
15471 | else | |
15472 | ac_cs_awk_getline=false | |
15473 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15474 | ac_cs_awk_read_file=' | |
15475 | print "|#_!!_#|" | |
15476 | print "cat " F[key] " &&" | |
15477 | '$ac_cs_awk_pipe_init | |
15478 | # The final `:' finishes the AND list. | |
15479 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15480 | fi | |
15481 | ac_cr=`echo X | tr X '\015'` | |
15482 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15483 | # But we know of no other shell where ac_cr would be empty at this | |
15484 | # point, so we can use a bashism as a fallback. | |
15485 | if test "x$ac_cr" = x; then | |
15486 | eval ac_cr=\$\'\\r\' | |
15487 | fi | |
15488 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15489 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 15490 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
15491 | else |
15492 | ac_cs_awk_cr=$ac_cr | |
15493 | fi | |
15494 | ||
d0ac1c44 | 15495 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
15496 | _ACEOF |
15497 | ||
15498 | # Create commands to substitute file output variables. | |
c6b750e1 | 15499 | { |
81ecdfbb | 15500 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 15501 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
15502 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15503 | echo "_ACAWK" && | |
15504 | echo "_ACEOF" | |
15505 | } >conf$$files.sh && | |
15506 | . ./conf$$files.sh || | |
d0ac1c44 | 15507 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15508 | rm -f conf$$files.sh |
c6b750e1 | 15509 | |
81ecdfbb RW |
15510 | { |
15511 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15512 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15513 | echo "_ACEOF" | |
15514 | } >conf$$subs.sh || | |
d0ac1c44 SM |
15515 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15516 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
15517 | ac_delim='%!_!# ' |
15518 | for ac_last_try in false false false false false :; do | |
15519 | . ./conf$$subs.sh || | |
d0ac1c44 | 15520 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15521 | |
15522 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15523 | if test $ac_delim_n = $ac_delim_num; then | |
15524 | break | |
15525 | elif $ac_last_try; then | |
d0ac1c44 | 15526 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
15527 | else |
15528 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15529 | fi | |
15530 | done | |
15531 | rm -f conf$$subs.sh | |
15532 | ||
15533 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15534 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 15535 | _ACEOF |
81ecdfbb RW |
15536 | sed -n ' |
15537 | h | |
15538 | s/^/S["/; s/!.*/"]=/ | |
15539 | p | |
15540 | g | |
15541 | s/^[^!]*!// | |
15542 | :repl | |
15543 | t repl | |
15544 | s/'"$ac_delim"'$// | |
15545 | t delim | |
15546 | :nl | |
15547 | h | |
d0ac1c44 | 15548 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15549 | t more1 |
15550 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15551 | p | |
15552 | n | |
15553 | b repl | |
15554 | :more1 | |
15555 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15556 | p | |
15557 | g | |
15558 | s/.\{148\}// | |
15559 | t nl | |
15560 | :delim | |
15561 | h | |
d0ac1c44 | 15562 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
15563 | t more2 |
15564 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15565 | p | |
15566 | b | |
15567 | :more2 | |
15568 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15569 | p | |
15570 | g | |
15571 | s/.\{148\}// | |
15572 | t delim | |
15573 | ' <conf$$subs.awk | sed ' | |
15574 | /^[^""]/{ | |
15575 | N | |
15576 | s/\n// | |
15577 | } | |
15578 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15579 | rm -f conf$$subs.awk | |
15580 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15581 | _ACAWK | |
d0ac1c44 | 15582 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
15583 | for (key in S) S_is_set[key] = 1 |
15584 | FS = "\a" | |
15585 | \$ac_cs_awk_pipe_init | |
15586 | } | |
15587 | { | |
15588 | line = $ 0 | |
15589 | nfields = split(line, field, "@") | |
15590 | substed = 0 | |
15591 | len = length(field[1]) | |
15592 | for (i = 2; i < nfields; i++) { | |
15593 | key = field[i] | |
15594 | keylen = length(key) | |
15595 | if (S_is_set[key]) { | |
15596 | value = S[key] | |
15597 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15598 | len += length(value) + length(field[++i]) | |
15599 | substed = 1 | |
15600 | } else | |
15601 | len += 1 + keylen | |
15602 | } | |
15603 | if (nfields == 3 && !substed) { | |
15604 | key = field[2] | |
15605 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15606 | \$ac_cs_awk_read_file | |
15607 | next | |
15608 | } | |
15609 | } | |
15610 | print line | |
15611 | } | |
15612 | \$ac_cs_awk_pipe_fini | |
15613 | _ACAWK | |
15614 | _ACEOF | |
15615 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15616 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15617 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15618 | else | |
15619 | cat | |
d0ac1c44 SM |
15620 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15621 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
15622 | _ACEOF |
15623 | ||
d0ac1c44 SM |
15624 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15625 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
15626 | # trailing colons and then remove the whole line if VPATH becomes empty |
15627 | # (actually we leave an empty line to preserve line numbers). | |
15628 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
15629 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15630 | h | |
15631 | s/// | |
15632 | s/^/:/ | |
15633 | s/[ ]*$/:/ | |
15634 | s/:\$(srcdir):/:/g | |
15635 | s/:\${srcdir}:/:/g | |
15636 | s/:@srcdir@:/:/g | |
15637 | s/^:*// | |
81ecdfbb | 15638 | s/:*$// |
d0ac1c44 SM |
15639 | x |
15640 | s/\(=[ ]*\).*/\1/ | |
15641 | G | |
15642 | s/\n// | |
81ecdfbb RW |
15643 | s/^[^=]*=[ ]*$// |
15644 | }' | |
15645 | fi | |
c6b750e1 | 15646 | |
81ecdfbb RW |
15647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15648 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15649 | |
c6b750e1 | 15650 | |
81ecdfbb RW |
15651 | eval set X " :F $CONFIG_FILES " |
15652 | shift | |
15653 | for ac_tag | |
15654 | do | |
15655 | case $ac_tag in | |
15656 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15657 | esac | |
15658 | case $ac_mode$ac_tag in | |
15659 | :[FHL]*:*);; | |
d0ac1c44 | 15660 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
15661 | :[FH]-) ac_tag=-:-;; |
15662 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15663 | esac | |
15664 | ac_save_IFS=$IFS | |
15665 | IFS=: | |
15666 | set x $ac_tag | |
15667 | IFS=$ac_save_IFS | |
15668 | shift | |
15669 | ac_file=$1 | |
15670 | shift | |
252b5132 | 15671 | |
81ecdfbb RW |
15672 | case $ac_mode in |
15673 | :L) ac_source=$1;; | |
15674 | :[FH]) | |
15675 | ac_file_inputs= | |
15676 | for ac_f | |
15677 | do | |
15678 | case $ac_f in | |
d0ac1c44 | 15679 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
15680 | *) # Look for the file first in the build tree, then in the source tree |
15681 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15682 | # because $ac_f cannot contain `:'. | |
15683 | test -f "$ac_f" || | |
15684 | case $ac_f in | |
15685 | [\\/$]*) false;; | |
15686 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15687 | esac || | |
d0ac1c44 | 15688 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
15689 | esac |
15690 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15691 | as_fn_append ac_file_inputs " '$ac_f'" | |
15692 | done | |
c6b750e1 | 15693 | |
81ecdfbb RW |
15694 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15695 | # use $as_me), people would be surprised to read: | |
15696 | # /* config.h. Generated by config.status. */ | |
15697 | configure_input='Generated from '` | |
15698 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15699 | `' by configure.' | |
15700 | if test x"$ac_file" != x-; then | |
15701 | configure_input="$ac_file. $configure_input" | |
15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15703 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15704 | fi |
81ecdfbb RW |
15705 | # Neutralize special characters interpreted by sed in replacement strings. |
15706 | case $configure_input in #( | |
15707 | *\&* | *\|* | *\\* ) | |
15708 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15709 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15710 | *) ac_sed_conf_input=$configure_input;; | |
15711 | esac | |
cac3d6c4 | 15712 | |
81ecdfbb | 15713 | case $ac_tag in |
d0ac1c44 SM |
15714 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15715 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
15716 | esac |
15717 | ;; | |
a0da8069 | 15718 | esac |
252b5132 | 15719 | |
81ecdfbb | 15720 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15721 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15722 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15723 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15724 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15725 | $as_echo X"$ac_file" | | |
15726 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15727 | s//\1/ | |
15728 | q | |
15729 | } | |
15730 | /^X\(\/\/\)[^/].*/{ | |
15731 | s//\1/ | |
15732 | q | |
15733 | } | |
15734 | /^X\(\/\/\)$/{ | |
15735 | s//\1/ | |
15736 | q | |
15737 | } | |
15738 | /^X\(\/\).*/{ | |
15739 | s//\1/ | |
15740 | q | |
15741 | } | |
15742 | s/.*/./; q'` | |
15743 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15744 | ac_builddir=. |
252b5132 | 15745 | |
81ecdfbb RW |
15746 | case "$ac_dir" in |
15747 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15748 | *) | |
15749 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15750 | # A ".." for each directory in $ac_dir_suffix. | |
15751 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15752 | case $ac_top_builddir_sub in | |
15753 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15754 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15755 | esac ;; | |
15756 | esac | |
15757 | ac_abs_top_builddir=$ac_pwd | |
15758 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15759 | # for backward compatibility: | |
15760 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15761 | |
15762 | case $srcdir in | |
81ecdfbb | 15763 | .) # We are building in place. |
c6b750e1 | 15764 | ac_srcdir=. |
81ecdfbb RW |
15765 | ac_top_srcdir=$ac_top_builddir_sub |
15766 | ac_abs_top_srcdir=$ac_pwd ;; | |
15767 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15768 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15769 | ac_top_srcdir=$srcdir |
15770 | ac_abs_top_srcdir=$srcdir ;; | |
15771 | *) # Relative name. | |
15772 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15773 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15774 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15775 | esac |
81ecdfbb | 15776 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15777 | |
252b5132 | 15778 | |
81ecdfbb RW |
15779 | case $ac_mode in |
15780 | :F) | |
15781 | # | |
15782 | # CONFIG_FILE | |
15783 | # | |
c6b750e1 DJ |
15784 | |
15785 | case $INSTALL in | |
15786 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15787 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15788 | esac |
81ecdfbb | 15789 | _ACEOF |
252b5132 | 15790 | |
81ecdfbb RW |
15791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15792 | # If the template does not know about datarootdir, expand it. | |
15793 | # FIXME: This hack should be removed a few years after 2.60. | |
15794 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15795 | ac_sed_dataroot=' | |
15796 | /datarootdir/ { | |
15797 | p | |
15798 | q | |
15799 | } | |
15800 | /@datadir@/p | |
15801 | /@docdir@/p | |
15802 | /@infodir@/p | |
15803 | /@localedir@/p | |
15804 | /@mandir@/p' | |
15805 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15806 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15807 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15809 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15810 | _ACEOF |
81ecdfbb RW |
15811 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15812 | ac_datarootdir_hack=' | |
15813 | s&@datadir@&$datadir&g | |
15814 | s&@docdir@&$docdir&g | |
15815 | s&@infodir@&$infodir&g | |
15816 | s&@localedir@&$localedir&g | |
15817 | s&@mandir@&$mandir&g | |
15818 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15819 | esac | |
15820 | _ACEOF | |
15821 | ||
15822 | # Neutralize VPATH when `$srcdir' = `.'. | |
15823 | # Shell code in configure.ac might set extrasub. | |
15824 | # FIXME: do we really want to maintain this feature? | |
15825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15826 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15827 | $extrasub |
15828 | _ACEOF | |
81ecdfbb | 15829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15830 | :t |
15831 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15832 | s|@configure_input@|$ac_sed_conf_input|;t t |
15833 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15834 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15835 | s&@srcdir@&$ac_srcdir&;t t | |
15836 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15837 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15838 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15839 | s&@builddir@&$ac_builddir&;t t | |
15840 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15841 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15842 | s&@INSTALL@&$ac_INSTALL&;t t | |
15843 | $ac_datarootdir_hack | |
15844 | " | |
15845 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15846 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 15847 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 15848 | else |
d0ac1c44 SM |
15849 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15850 | fi \ | |
15851 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
15852 | |
15853 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
15854 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15855 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15856 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 15857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15858 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 15859 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 15860 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 15861 | |
d0ac1c44 | 15862 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 15863 | case $ac_file in |
d0ac1c44 SM |
15864 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15865 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 15866 | esac \ |
d0ac1c44 | 15867 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 15868 | ;; |
c148b4cb | 15869 | |
c148b4cb | 15870 | |
c148b4cb | 15871 | |
81ecdfbb RW |
15872 | esac |
15873 | ||
06a51eac RW |
15874 | |
15875 | case $ac_file$ac_mode in | |
15876 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15877 | sed "$extrasub_host" | | |
15878 | sed "$extrasub_target" > mf$$ | |
15879 | mv -f mf$$ Makefile ;; | |
15880 | ||
15881 | esac | |
81ecdfbb RW |
15882 | done # for ac_tag |
15883 | ||
15884 | ||
15885 | as_fn_exit 0 | |
c6b750e1 | 15886 | _ACEOF |
c6b750e1 DJ |
15887 | ac_clean_files=$ac_clean_files_save |
15888 | ||
81ecdfbb | 15889 | test $ac_write_fail = 0 || |
d0ac1c44 | 15890 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 15891 | |
c6b750e1 DJ |
15892 | |
15893 | # configure is writing to config.log, and then calls config.status. | |
15894 | # config.status does its own redirection, appending to config.log. | |
15895 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15896 | # by configure, so config.status won't be able to write to it; its | |
15897 | # output is simply discarded. So we exec the FD to /dev/null, | |
15898 | # effectively closing config.log, so it can be properly (re)opened and | |
15899 | # appended to by config.status. When coming back to configure, we | |
15900 | # need to make the FD available again. | |
15901 | if test "$no_create" != yes; then | |
15902 | ac_cs_success=: | |
15903 | ac_config_status_args= | |
15904 | test "$silent" = yes && | |
15905 | ac_config_status_args="$ac_config_status_args --quiet" | |
15906 | exec 5>/dev/null | |
15907 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15908 | exec 5>>config.log | |
15909 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15910 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 15911 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
15912 | fi |
15913 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15915 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15916 | fi |
c148b4cb | 15917 |