]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e 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 : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e 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 | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e 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 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e 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. | |
22e05272 | 90 | as_myself= |
5213506e 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 | |
1c710c3c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e 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 | ||
22e05272 JM |
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;} | |
5213506e 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 | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e 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'\" && | |
87264276 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" | |
5213506e 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 | |
1c710c3c | 211 | do |
5213506e 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 : | |
22e05272 JM |
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 | |
5213506e 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." | |
1c710c3c | 266 | else |
5213506e 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." | |
1c710c3c | 271 | fi |
5213506e 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 | |
1c710c3c | 301 | |
5213506e 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" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
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 | |
5213506e 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 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e 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 | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
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 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e 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 | |
1c710c3c DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e 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 | |
1c710c3c | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e 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'` | |
1c710c3c | 456 | |
2aeb72e9 DD |
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 | |
11a67599 | 463 | |
1c710c3c | 464 | |
5213506e 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 | | |
1c710c3c | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
1c710c3c | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 482 | t loop |
5213506e | 483 | s/-\n.*// |
1c710c3c | 484 | ' >$as_me.lineno && |
5213506e 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; } | |
1c710c3c | 487 | |
22e05272 JM |
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 | |
1c710c3c 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 | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
1c710c3c DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e 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';; | |
1c710c3c DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 522 | as_ln_s='ln -s' |
5213506e 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. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
2aeb72e9 | 533 | fi |
1c710c3c | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
1c710c3c | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
0b0dc272 | 549 | |
1c710c3c DJ |
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 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
1c710c3c DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1c710c3c DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
1c710c3c DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
671aa708 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
1c710c3c | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
1c710c3c DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
2aeb72e9 | 576 | |
1c710c3c DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
1c710c3c DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
5213506e 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 | |
e7a82751 | 604 | READELF_FOR_TARGET |
5213506e | 605 | RANLIB_FOR_TARGET |
e4a9a572 | 606 | OTOOL_FOR_TARGET |
5213506e | 607 | OBJDUMP_FOR_TARGET |
9bccfdf5 | 608 | OBJCOPY_FOR_TARGET |
5213506e RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
b4c522fa | 615 | GDC_FOR_TARGET |
632e2a07 | 616 | GOC_FOR_TARGET |
5213506e | 617 | GFORTRAN_FOR_TARGET |
5213506e RW |
618 | GCC_FOR_TARGET |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
e7a82751 | 621 | READELF |
e4a9a572 | 622 | OTOOL |
5213506e RW |
623 | OBJDUMP |
624 | OBJCOPY | |
625 | WINDMC | |
626 | WINDRES | |
627 | STRIP | |
628 | RANLIB | |
629 | NM | |
630 | LIPO | |
631 | LD | |
632 | DLLTOOL | |
633 | AS | |
634 | AR | |
635 | RUNTEST | |
636 | EXPECT | |
637 | MAKEINFO | |
638 | FLEX | |
639 | LEX | |
640 | M4 | |
641 | BISON | |
642 | YACC | |
5213506e RW |
643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
b4c522fa | 649 | GDC_FOR_BUILD |
632e2a07 | 650 | GOC_FOR_BUILD |
5213506e | 651 | GFORTRAN_FOR_BUILD |
5213506e RW |
652 | DLLTOOL_FOR_BUILD |
653 | CXX_FOR_BUILD | |
654 | CXXFLAGS_FOR_BUILD | |
655 | CFLAGS_FOR_BUILD | |
656 | CC_FOR_BUILD | |
657 | AS_FOR_BUILD | |
658 | AR_FOR_BUILD | |
aae29963 | 659 | target_configdirs |
5213506e | 660 | configdirs |
5213506e | 661 | build_configdirs |
5213506e RW |
662 | INSTALL_GDB_TK |
663 | GDB_TK | |
664 | CONFIGURE_GDB_TK | |
665 | build_tooldir | |
666 | tooldir | |
667 | GCC_SHLIB_SUBDIR | |
668 | RPATH_ENVVAR | |
ffedf511 RW |
669 | target_configargs |
670 | host_configargs | |
671 | build_configargs | |
e12c4094 | 672 | BUILD_CONFIG |
6f57bdf6 | 673 | LDFLAGS_FOR_TARGET |
5213506e RW |
674 | CXXFLAGS_FOR_TARGET |
675 | CFLAGS_FOR_TARGET | |
676 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
677 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 678 | get_gcc_base_ver |
1c01ebf6 | 679 | extra_host_zlib_configure_flags |
d7f09764 | 680 | extra_host_libiberty_configure_flags |
fca38047 | 681 | stage1_languages |
cdfee50a | 682 | host_shared |
45b3824d TS |
683 | extra_linker_plugin_flags |
684 | extra_linker_plugin_configure_flags | |
33ad93b9 | 685 | islinc |
eae1a5d4 | 686 | isllibs |
5213506e | 687 | poststage1_ldflags |
ed2eaa9f | 688 | poststage1_libs |
5213506e | 689 | stage1_ldflags |
0b21f5d3 | 690 | stage1_libs |
0ff2d841 | 691 | extra_isl_gmp_configure_flags |
5213506e RW |
692 | extra_mpc_mpfr_configure_flags |
693 | extra_mpc_gmp_configure_flags | |
694 | extra_mpfr_configure_flags | |
695 | gmpinc | |
696 | gmplibs | |
697 | do_compare | |
698 | GNATMAKE | |
699 | GNATBIND | |
700 | ac_ct_CXX | |
701 | CXXFLAGS | |
702 | CXX | |
703 | OBJEXT | |
704 | EXEEXT | |
705 | ac_ct_CC | |
706 | CPPFLAGS | |
707 | LDFLAGS | |
708 | CFLAGS | |
709 | CC | |
5f520819 | 710 | extra_liboffloadmic_configure_flags |
5213506e RW |
711 | target_subdir |
712 | host_subdir | |
713 | build_subdir | |
714 | build_libsubdir | |
87264276 PB |
715 | AWK |
716 | SED | |
5213506e RW |
717 | LN_S |
718 | LN | |
719 | INSTALL_DATA | |
720 | INSTALL_SCRIPT | |
721 | INSTALL_PROGRAM | |
722 | target_os | |
723 | target_vendor | |
724 | target_cpu | |
725 | target | |
726 | host_os | |
727 | host_vendor | |
728 | host_cpu | |
729 | host | |
730 | target_noncanonical | |
731 | host_noncanonical | |
732 | build_noncanonical | |
733 | build_os | |
734 | build_vendor | |
735 | build_cpu | |
736 | build | |
737 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
738 | target_alias | |
739 | host_alias | |
740 | build_alias | |
741 | LIBS | |
742 | ECHO_T | |
743 | ECHO_N | |
744 | ECHO_C | |
745 | DEFS | |
746 | mandir | |
747 | localedir | |
748 | libdir | |
749 | psdir | |
750 | pdfdir | |
751 | dvidir | |
752 | htmldir | |
753 | infodir | |
754 | docdir | |
755 | oldincludedir | |
756 | includedir | |
757 | localstatedir | |
758 | sharedstatedir | |
759 | sysconfdir | |
760 | datadir | |
761 | datarootdir | |
762 | libexecdir | |
763 | sbindir | |
764 | bindir | |
765 | program_transform_name | |
766 | prefix | |
767 | exec_prefix | |
768 | PACKAGE_URL | |
769 | PACKAGE_BUGREPORT | |
770 | PACKAGE_STRING | |
771 | PACKAGE_VERSION | |
772 | PACKAGE_TARNAME | |
773 | PACKAGE_NAME | |
774 | PATH_SEPARATOR | |
775 | SHELL' | |
776 | ac_subst_files='serialization_dependencies | |
777 | host_makefile_frag | |
778 | target_makefile_frag | |
779 | alphaieee_frag | |
780 | ospace_frag' | |
781 | ac_user_opts=' | |
782 | enable_option_checking | |
783 | with_build_libsubdir | |
a05c2c75 | 784 | with_system_zlib |
85c64bbe BS |
785 | enable_as_accelerator_for |
786 | enable_offload_targets | |
5213506e | 787 | enable_gold |
21539e2e | 788 | enable_ld |
78edb32f | 789 | enable_compressed_debug_sections |
87e6d9dc TB |
790 | enable_libquadmath |
791 | enable_libquadmath_support | |
5213506e RW |
792 | enable_libada |
793 | enable_libssp | |
1873ec0c | 794 | enable_libstdcxx |
5f520819 | 795 | enable_liboffloadmic |
ff3ac0f4 | 796 | enable_bootstrap |
5213506e RW |
797 | with_mpc |
798 | with_mpc_include | |
799 | with_mpc_lib | |
800 | with_mpfr_dir | |
801 | with_mpfr | |
802 | with_mpfr_include | |
803 | with_mpfr_lib | |
804 | with_gmp_dir | |
805 | with_gmp | |
806 | with_gmp_include | |
807 | with_gmp_lib | |
5213506e | 808 | with_stage1_libs |
aac9103b | 809 | with_static_standard_libraries |
0b21f5d3 | 810 | with_stage1_ldflags |
5213506e | 811 | with_boot_libs |
ed2eaa9f | 812 | with_boot_ldflags |
33ad93b9 RG |
813 | with_isl |
814 | with_isl_include | |
815 | with_isl_lib | |
816 | enable_isl_version_check | |
d7f09764 | 817 | enable_lto |
45b3824d TS |
818 | enable_linker_plugin_configure_flags |
819 | enable_linker_plugin_flags | |
cdfee50a | 820 | enable_host_shared |
5213506e | 821 | enable_stage1_languages |
43c40f3e | 822 | enable_objc_gc |
114bf3f1 MK |
823 | with_target_bdw_gc |
824 | with_target_bdw_gc_include | |
825 | with_target_bdw_gc_lib | |
3c36aa6b | 826 | with_gcc_major_version_only |
5213506e RW |
827 | with_build_sysroot |
828 | with_debug_prefix_map | |
5646b7b9 | 829 | with_build_config |
beeda1d9 | 830 | enable_vtable_verify |
5213506e RW |
831 | enable_serial_configure |
832 | with_build_time_tools | |
833 | enable_maintainer_mode | |
834 | enable_stage1_checking | |
835 | enable_werror | |
5213506e RW |
836 | ' |
837 | ac_precious_vars='build_alias | |
838 | host_alias | |
839 | target_alias | |
840 | CC | |
841 | CFLAGS | |
842 | LDFLAGS | |
843 | LIBS | |
844 | CPPFLAGS | |
845 | CXX | |
846 | CXXFLAGS | |
847 | CCC | |
ffedf511 RW |
848 | build_configargs |
849 | host_configargs | |
850 | target_configargs | |
5213506e RW |
851 | AR |
852 | AS | |
853 | DLLTOOL | |
854 | LD | |
855 | LIPO | |
856 | NM | |
857 | RANLIB | |
858 | STRIP | |
859 | WINDRES | |
860 | WINDMC | |
861 | OBJCOPY | |
862 | OBJDUMP | |
e4a9a572 | 863 | OTOOL |
e7a82751 | 864 | READELF |
5213506e RW |
865 | CC_FOR_TARGET |
866 | CXX_FOR_TARGET | |
867 | GCC_FOR_TARGET | |
5213506e | 868 | GFORTRAN_FOR_TARGET |
632e2a07 | 869 | GOC_FOR_TARGET |
b4c522fa | 870 | GDC_FOR_TARGET |
5213506e RW |
871 | AR_FOR_TARGET |
872 | AS_FOR_TARGET | |
873 | DLLTOOL_FOR_TARGET | |
874 | LD_FOR_TARGET | |
875 | LIPO_FOR_TARGET | |
876 | NM_FOR_TARGET | |
9bccfdf5 | 877 | OBJCOPY_FOR_TARGET |
5213506e | 878 | OBJDUMP_FOR_TARGET |
e4a9a572 | 879 | OTOOL_FOR_TARGET |
5213506e | 880 | RANLIB_FOR_TARGET |
e7a82751 | 881 | READELF_FOR_TARGET |
5213506e RW |
882 | STRIP_FOR_TARGET |
883 | WINDRES_FOR_TARGET | |
884 | WINDMC_FOR_TARGET' | |
885 | ||
671aa708 NN |
886 | |
887 | # Initialize some variables set by options. | |
1c710c3c DJ |
888 | ac_init_help= |
889 | ac_init_version=false | |
5213506e RW |
890 | ac_unrecognized_opts= |
891 | ac_unrecognized_sep= | |
671aa708 NN |
892 | # The variables have the same names as the options, with |
893 | # dashes changed to underlines. | |
1c710c3c | 894 | cache_file=/dev/null |
671aa708 | 895 | exec_prefix=NONE |
671aa708 | 896 | no_create= |
671aa708 NN |
897 | no_recursion= |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
671aa708 NN |
905 | verbose= |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
1c710c3c DJ |
908 | |
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 914 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
915 | bindir='${exec_prefix}/bin' |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
918 | datarootdir='${prefix}/share' |
919 | datadir='${datarootdir}' | |
671aa708 NN |
920 | sysconfdir='${prefix}/etc' |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
671aa708 NN |
923 | includedir='${prefix}/include' |
924 | oldincludedir='/usr/include' | |
5213506e RW |
925 | docdir='${datarootdir}/doc/${PACKAGE}' |
926 | infodir='${datarootdir}/info' | |
927 | htmldir='${docdir}' | |
928 | dvidir='${docdir}' | |
929 | pdfdir='${docdir}' | |
930 | psdir='${docdir}' | |
931 | libdir='${exec_prefix}/lib' | |
932 | localedir='${datarootdir}/locale' | |
933 | mandir='${datarootdir}/man' | |
79c06341 | 934 | |
671aa708 | 935 | ac_prev= |
5213506e | 936 | ac_dashdash= |
671aa708 NN |
937 | for ac_option |
938 | do | |
671aa708 NN |
939 | # If the previous option needs an argument, assign it. |
940 | if test -n "$ac_prev"; then | |
5213506e | 941 | eval $ac_prev=\$ac_option |
671aa708 NN |
942 | ac_prev= |
943 | continue | |
944 | fi | |
79c06341 | 945 | |
5213506e | 946 | case $ac_option in |
22e05272 JM |
947 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
948 | *=) ac_optarg= ;; | |
949 | *) ac_optarg=yes ;; | |
5213506e | 950 | esac |
671aa708 NN |
951 | |
952 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
953 | ||
5213506e RW |
954 | case $ac_dashdash$ac_option in |
955 | --) | |
956 | ac_dashdash=yes ;; | |
671aa708 NN |
957 | |
958 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
959 | ac_prev=bindir ;; | |
960 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 961 | bindir=$ac_optarg ;; |
671aa708 NN |
962 | |
963 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 964 | ac_prev=build_alias ;; |
671aa708 | 965 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 966 | build_alias=$ac_optarg ;; |
671aa708 NN |
967 | |
968 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
969 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
970 | ac_prev=cache_file ;; | |
971 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
972 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
973 | cache_file=$ac_optarg ;; |
974 | ||
975 | --config-cache | -C) | |
976 | cache_file=config.cache ;; | |
671aa708 | 977 | |
5213506e | 978 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 979 | ac_prev=datadir ;; |
5213506e | 980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 981 | datadir=$ac_optarg ;; |
671aa708 | 982 | |
5213506e RW |
983 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
984 | | --dataroo | --dataro | --datar) | |
985 | ac_prev=datarootdir ;; | |
986 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
987 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
988 | datarootdir=$ac_optarg ;; | |
989 | ||
671aa708 | 990 | -disable-* | --disable-*) |
5213506e | 991 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 992 | # Reject names that are not valid shell variable names. |
5213506e | 993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 994 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
995 | ac_useropt_orig=$ac_useropt |
996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
997 | case $ac_user_opts in | |
998 | *" | |
999 | "enable_$ac_useropt" | |
1000 | "*) ;; | |
1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1002 | ac_unrecognized_sep=', ';; | |
1003 | esac | |
1004 | eval enable_$ac_useropt=no ;; | |
1005 | ||
1006 | -docdir | --docdir | --docdi | --doc | --do) | |
1007 | ac_prev=docdir ;; | |
1008 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1009 | docdir=$ac_optarg ;; | |
1010 | ||
1011 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1012 | ac_prev=dvidir ;; | |
1013 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1014 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1015 | |
1016 | -enable-* | --enable-*) | |
5213506e | 1017 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1018 | # Reject names that are not valid shell variable names. |
5213506e | 1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1020 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1021 | ac_useropt_orig=$ac_useropt |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "enable_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1029 | esac |
5213506e | 1030 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1031 | |
1032 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1033 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1034 | | --exec | --exe | --ex) | |
1035 | ac_prev=exec_prefix ;; | |
1036 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1037 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1038 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1039 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1040 | |
1041 | -gas | --gas | --ga | --g) | |
1042 | # Obsolete; use --with-gas. | |
1043 | with_gas=yes ;; | |
1044 | ||
1c710c3c DJ |
1045 | -help | --help | --hel | --he | -h) |
1046 | ac_init_help=long ;; | |
1047 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1048 | ac_init_help=recursive ;; | |
1049 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1050 | ac_init_help=short ;; | |
671aa708 NN |
1051 | |
1052 | -host | --host | --hos | --ho) | |
1c710c3c | 1053 | ac_prev=host_alias ;; |
671aa708 | 1054 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1055 | host_alias=$ac_optarg ;; |
671aa708 | 1056 | |
5213506e RW |
1057 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1058 | ac_prev=htmldir ;; | |
1059 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1060 | | --ht=*) | |
1061 | htmldir=$ac_optarg ;; | |
1062 | ||
671aa708 NN |
1063 | -includedir | --includedir | --includedi | --included | --include \ |
1064 | | --includ | --inclu | --incl | --inc) | |
1065 | ac_prev=includedir ;; | |
1066 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1067 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1068 | includedir=$ac_optarg ;; |
671aa708 NN |
1069 | |
1070 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1071 | ac_prev=infodir ;; | |
1072 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1073 | infodir=$ac_optarg ;; |
671aa708 NN |
1074 | |
1075 | -libdir | --libdir | --libdi | --libd) | |
1076 | ac_prev=libdir ;; | |
1077 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1078 | libdir=$ac_optarg ;; |
671aa708 NN |
1079 | |
1080 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1081 | | --libexe | --libex | --libe) | |
1082 | ac_prev=libexecdir ;; | |
1083 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1084 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1085 | libexecdir=$ac_optarg ;; |
671aa708 | 1086 | |
5213506e RW |
1087 | -localedir | --localedir | --localedi | --localed | --locale) |
1088 | ac_prev=localedir ;; | |
1089 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1090 | localedir=$ac_optarg ;; | |
1091 | ||
671aa708 | 1092 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1093 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1094 | ac_prev=localstatedir ;; |
1095 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1096 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1097 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1098 | |
1099 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1100 | ac_prev=mandir ;; | |
1101 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1102 | mandir=$ac_optarg ;; |
671aa708 NN |
1103 | |
1104 | -nfp | --nfp | --nf) | |
1105 | # Obsolete; use --without-fp. | |
1106 | with_fp=no ;; | |
1107 | ||
1108 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1109 | | --no-cr | --no-c | -n) |
671aa708 NN |
1110 | no_create=yes ;; |
1111 | ||
1112 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1113 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1114 | no_recursion=yes ;; | |
1115 | ||
1116 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1117 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1118 | | --oldin | --oldi | --old | --ol | --o) | |
1119 | ac_prev=oldincludedir ;; | |
1120 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1121 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1122 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1123 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1124 | |
1125 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1126 | ac_prev=prefix ;; | |
1127 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1128 | prefix=$ac_optarg ;; |
671aa708 NN |
1129 | |
1130 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1131 | | --program-pre | --program-pr | --program-p) | |
1132 | ac_prev=program_prefix ;; | |
1133 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1134 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1135 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1136 | |
1137 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1138 | | --program-suf | --program-su | --program-s) | |
1139 | ac_prev=program_suffix ;; | |
1140 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1141 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1142 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1143 | |
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) | |
1151 | ac_prev=program_transform_name ;; | |
1152 | -program-transform-name=* | --program-transform-name=* \ | |
1153 | | --program-transform-nam=* | --program-transform-na=* \ | |
1154 | | --program-transform-n=* | --program-transform-=* \ | |
1155 | | --program-transform=* | --program-transfor=* \ | |
1156 | | --program-transfo=* | --program-transf=* \ | |
1157 | | --program-trans=* | --program-tran=* \ | |
1158 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1159 | program_transform_name=$ac_optarg ;; |
671aa708 | 1160 | |
5213506e RW |
1161 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1162 | ac_prev=pdfdir ;; | |
1163 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1164 | pdfdir=$ac_optarg ;; | |
1165 | ||
1166 | -psdir | --psdir | --psdi | --psd | --ps) | |
1167 | ac_prev=psdir ;; | |
1168 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1169 | psdir=$ac_optarg ;; | |
1170 | ||
671aa708 NN |
1171 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1172 | | -silent | --silent | --silen | --sile | --sil) | |
1173 | silent=yes ;; | |
1174 | ||
1175 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1176 | ac_prev=sbindir ;; | |
1177 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1178 | | --sbi=* | --sb=*) | |
1c710c3c | 1179 | sbindir=$ac_optarg ;; |
671aa708 NN |
1180 | |
1181 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1182 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1183 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1184 | | --sha | --sh) | |
1185 | ac_prev=sharedstatedir ;; | |
1186 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1187 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1188 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1189 | | --sha=* | --sh=*) | |
1c710c3c | 1190 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1191 | |
1192 | -site | --site | --sit) | |
1193 | ac_prev=site ;; | |
1194 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1195 | site=$ac_optarg ;; |
671aa708 NN |
1196 | |
1197 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1198 | ac_prev=srcdir ;; | |
1199 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1200 | srcdir=$ac_optarg ;; |
671aa708 NN |
1201 | |
1202 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1203 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1204 | ac_prev=sysconfdir ;; | |
1205 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1206 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1207 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1208 | |
1209 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1210 | ac_prev=target_alias ;; |
671aa708 | 1211 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1212 | target_alias=$ac_optarg ;; |
671aa708 NN |
1213 | |
1214 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1215 | verbose=yes ;; | |
1216 | ||
1c710c3c DJ |
1217 | -version | --version | --versio | --versi | --vers | -V) |
1218 | ac_init_version=: ;; | |
671aa708 NN |
1219 | |
1220 | -with-* | --with-*) | |
5213506e | 1221 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1222 | # Reject names that are not valid shell variable names. |
5213506e | 1223 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1224 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1225 | ac_useropt_orig=$ac_useropt |
1226 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1227 | case $ac_user_opts in | |
1228 | *" | |
1229 | "with_$ac_useropt" | |
1230 | "*) ;; | |
1231 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1232 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1233 | esac |
5213506e | 1234 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1235 | |
1236 | -without-* | --without-*) | |
5213506e | 1237 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1238 | # Reject names that are not valid shell variable names. |
5213506e | 1239 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1240 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1241 | ac_useropt_orig=$ac_useropt |
1242 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1243 | case $ac_user_opts in | |
1244 | *" | |
1245 | "with_$ac_useropt" | |
1246 | "*) ;; | |
1247 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1248 | ac_unrecognized_sep=', ';; | |
1249 | esac | |
1250 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1251 | |
1252 | --x) | |
1253 | # Obsolete; use --with-x. | |
1254 | with_x=yes ;; | |
1255 | ||
1256 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1257 | | --x-incl | --x-inc | --x-in | --x-i) | |
1258 | ac_prev=x_includes ;; | |
1259 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1260 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1261 | x_includes=$ac_optarg ;; |
671aa708 NN |
1262 | |
1263 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1264 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1265 | ac_prev=x_libraries ;; | |
1266 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1267 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1268 | x_libraries=$ac_optarg ;; |
671aa708 | 1269 | |
22e05272 JM |
1270 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1271 | Try \`$0 --help' for more information" | |
671aa708 NN |
1272 | ;; |
1273 | ||
1c710c3c DJ |
1274 | *=*) |
1275 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1276 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1277 | case $ac_envvar in #( |
1278 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1279 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1280 | esac |
1281 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1282 | export $ac_envvar ;; |
1283 | ||
671aa708 | 1284 | *) |
1c710c3c | 1285 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1286 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1287 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1288 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1289 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1290 | ;; |
1291 | ||
1292 | esac | |
1293 | done | |
1294 | ||
1295 | if test -n "$ac_prev"; then | |
1c710c3c | 1296 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1297 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1298 | fi |
af71363e | 1299 | |
5213506e RW |
1300 | if test -n "$ac_unrecognized_opts"; then |
1301 | case $enable_option_checking in | |
1302 | no) ;; | |
22e05272 | 1303 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1304 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1305 | esac |
5213506e | 1306 | fi |
2aeb72e9 | 1307 | |
5213506e RW |
1308 | # Check all directory arguments for consistency. |
1309 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1310 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1311 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1312 | libdir localedir mandir | |
2aeb72e9 | 1313 | do |
5213506e RW |
1314 | eval ac_val=\$$ac_var |
1315 | # Remove trailing slashes. | |
1316 | case $ac_val in | |
1317 | */ ) | |
1318 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1319 | eval $ac_var=\$ac_val;; | |
1320 | esac | |
1321 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1322 | case $ac_val in |
5213506e RW |
1323 | [\\/$]* | ?:[\\/]* ) continue;; |
1324 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1325 | esac |
22e05272 | 1326 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1327 | done |
1328 | ||
1c710c3c DJ |
1329 | # There might be people who depend on the old broken behavior: `$host' |
1330 | # used to hold the argument of --host etc. | |
1331 | # FIXME: To remove some day. | |
1332 | build=$build_alias | |
1333 | host=$host_alias | |
1334 | target=$target_alias | |
0b0dc272 | 1335 | |
1c710c3c DJ |
1336 | # FIXME: To remove some day. |
1337 | if test "x$host_alias" != x; then | |
1338 | if test "x$build_alias" = x; then | |
1339 | cross_compiling=maybe | |
1c710c3c DJ |
1340 | elif test "x$build_alias" != "x$host_alias"; then |
1341 | cross_compiling=yes | |
1342 | fi | |
1343 | fi | |
1344 | ||
1345 | ac_tool_prefix= | |
1346 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1347 | ||
1348 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1349 | |
671aa708 | 1350 | |
5213506e RW |
1351 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1352 | ac_ls_di=`ls -di .` && | |
1353 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1354 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1355 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1356 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1357 | |
1358 | ||
671aa708 NN |
1359 | # Find the source files, if location was not specified. |
1360 | if test -z "$srcdir"; then | |
1361 | ac_srcdir_defaulted=yes | |
5213506e RW |
1362 | # Try the directory containing this script, then the parent directory. |
1363 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1364 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1365 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1366 | X"$as_myself" : 'X\(//\)$' \| \ | |
1367 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1368 | $as_echo X"$as_myself" | | |
1369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\/\)[^/].*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | /^X\(\/\/\)$/{ | |
1378 | s//\1/ | |
1379 | q | |
1380 | } | |
1381 | /^X\(\/\).*/{ | |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | s/.*/./; q'` | |
671aa708 | 1386 | srcdir=$ac_confdir |
5213506e | 1387 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1388 | srcdir=.. |
1389 | fi | |
1390 | else | |
1391 | ac_srcdir_defaulted=no | |
1392 | fi | |
5213506e RW |
1393 | if test ! -r "$srcdir/$ac_unique_file"; then |
1394 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1395 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1396 | fi |
1397 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1398 | ac_abs_confdir=`( | |
22e05272 | 1399 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1400 | pwd)` |
1401 | # When building in place, set srcdir=. | |
1402 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1403 | srcdir=. | |
1404 | fi | |
1405 | # Remove unnecessary trailing slashes from srcdir. | |
1406 | # Double slashes in file names in object file debugging info | |
1407 | # mess up M-x gdb in Emacs. | |
1408 | case $srcdir in | |
1409 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1410 | esac | |
87841584 AM |
1411 | case $srcdir in |
1412 | *" "*) | |
22e05272 | 1413 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1414 | ;; |
1415 | esac | |
ac9e6043 RW |
1416 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1417 | ||
5213506e RW |
1418 | for ac_var in $ac_precious_vars; do |
1419 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1420 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1421 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1423 | done | |
1c710c3c DJ |
1424 | |
1425 | # | |
1426 | # Report the --help message. | |
1427 | # | |
1428 | if test "$ac_init_help" = "long"; then | |
1429 | # Omit some internal or obsolete options to make the list less imposing. | |
1430 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1431 | cat <<_ACEOF | |
1432 | \`configure' configures this package to adapt to many kinds of systems. | |
1433 | ||
1434 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1435 | ||
1436 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1437 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1438 | ||
1439 | Defaults for the options are specified in brackets. | |
1440 | ||
1441 | Configuration: | |
1442 | -h, --help display this help and exit | |
1443 | --help=short display options specific to this package | |
1444 | --help=recursive display the short help of all the included packages | |
1445 | -V, --version display version information and exit | |
22e05272 | 1446 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1447 | --cache-file=FILE cache test results in FILE [disabled] |
1448 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1449 | -n, --no-create do not create output files | |
1450 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1451 | ||
1c710c3c DJ |
1452 | Installation directories: |
1453 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1454 | [$ac_default_prefix] |
1c710c3c | 1455 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1456 | [PREFIX] |
1c710c3c DJ |
1457 | |
1458 | By default, \`make install' will install all the files in | |
1459 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1460 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1461 | for instance \`--prefix=\$HOME'. | |
1462 | ||
1463 | For better control, use the options below. | |
1464 | ||
1465 | Fine tuning of the installation directories: | |
5213506e RW |
1466 | --bindir=DIR user executables [EPREFIX/bin] |
1467 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1468 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1469 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1470 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1471 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1472 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1473 | --includedir=DIR C header files [PREFIX/include] | |
1474 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1475 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1476 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1477 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1478 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1479 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1480 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1481 | --htmldir=DIR html documentation [DOCDIR] | |
1482 | --dvidir=DIR dvi documentation [DOCDIR] | |
1483 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1484 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1485 | _ACEOF |
1486 | ||
1487 | cat <<\_ACEOF | |
1488 | ||
1489 | Program names: | |
1490 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1491 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1492 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1493 | ||
1494 | System types: | |
1495 | --build=BUILD configure for building on BUILD [guessed] | |
1496 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1497 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1498 | _ACEOF | |
1499 | fi | |
1500 | ||
1501 | if test -n "$ac_init_help"; then | |
1502 | ||
1503 | cat <<\_ACEOF | |
1504 | ||
1505 | Optional Features: | |
5213506e | 1506 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1507 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1508 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1509 | --enable-as-accelerator-for=ARG |
1510 | build as offload target compiler. Specify offload | |
1511 | host triple by ARG | |
1512 | --enable-offload-targets=LIST | |
1513 | enable offloading to devices from comma-separated | |
1514 | LIST of TARGET[=DIR]. Use optional path to find | |
1515 | offload target compiler during the build | |
21539e2e | 1516 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1517 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1518 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1519 | Enable compressed debug sections for gas, gold or ld |
1520 | by default | |
87e6d9dc TB |
1521 | --disable-libquadmath do not build libquadmath directory |
1522 | --disable-libquadmath-support | |
1523 | disable libquadmath support for Fortran | |
30b74385 RW |
1524 | --enable-libada build libada directory |
1525 | --enable-libssp build libssp directory | |
1873ec0c | 1526 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1527 | --enable-liboffloadmic=ARG |
1528 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1529 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1530 | --disable-isl-version-check |
560d18d3 | 1531 | disable check for isl version |
d7f09764 | 1532 | --enable-lto enable link time optimization support |
45b3824d TS |
1533 | --enable-linker-plugin-configure-flags=FLAGS |
1534 | additional flags for configuring linker plugins | |
1535 | [none] | |
1536 | --enable-linker-plugin-flags=FLAGS | |
1537 | additional flags for configuring and building linker | |
1538 | plugins [none] | |
cdfee50a | 1539 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1540 | --enable-stage1-languages[=all] |
1541 | choose additional languages to build during stage1. | |
1542 | Mostly useful for compiler development | |
43c40f3e RO |
1543 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1544 | Objective-C runtime | |
318a4e6d | 1545 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1546 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1547 | force sequential configuration of sub-packages for |
1548 | the host, target or build machine, or all | |
1549 | sub-packages | |
1550 | --enable-maintainer-mode | |
1551 | enable make rules and dependencies not useful (and | |
1552 | sometimes confusing) to the casual installer | |
1553 | --enable-stage1-checking[=all] | |
1554 | choose additional checking for stage1 of the | |
1555 | compiler | |
1c710c3c DJ |
1556 | --enable-werror enable -Werror in bootstrap stage2 and later |
1557 | ||
1558 | Optional Packages: | |
1559 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1560 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1561 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1562 | --with-system-zlib use installed libz |
33e39b66 AS |
1563 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1564 | Equivalent to --with-mpc-include=PATH/include plus | |
1565 | --with-mpc-lib=PATH/lib | |
1566 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1567 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1568 | --with-mpfr-dir=PATH this option has been REMOVED |
1569 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1570 | Equivalent to --with-mpfr-include=PATH/include plus |
1571 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1572 | --with-mpfr-include=PATH |
30b74385 RW |
1573 | specify directory for installed MPFR include files |
1574 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1575 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1576 | --with-gmp=PATH specify prefix directory for the installed GMP |
1577 | package. Equivalent to | |
1578 | --with-gmp-include=PATH/include plus | |
1579 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1580 | --with-gmp-include=PATH specify directory for installed GMP include files |
1581 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1582 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1583 | --with-static-standard-libraries |
1584 | use -static-libstdc++ and -static-libgcc | |
1585 | (default=auto) | |
33e39b66 AS |
1586 | --with-stage1-ldflags=FLAGS |
1587 | linker flags for stage1 | |
33e39b66 AS |
1588 | --with-boot-libs=LIBS libraries for stage2 and later |
1589 | --with-boot-ldflags=FLAGS | |
1590 | linker flags for stage2 and later | |
e357a5e0 | 1591 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1592 | package. Equivalent to |
33ad93b9 RG |
1593 | --with-isl-include=PATH/include plus |
1594 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1595 | --with-isl-include=PATH Specify directory for installed isl include files |
1596 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1597 | --with-target-bdw-gc=PATHLIST |
1598 | specify prefix directory for installed bdw-gc | |
1599 | package. Equivalent to | |
1600 | --with-target-bdw-gc-include=PATH/include plus | |
1601 | --with-target-bdw-gc-lib=PATH/lib | |
1602 | --with-target-bdw-gc-include=PATHLIST | |
1603 | specify directories for installed bdw-gc include | |
1604 | files | |
1605 | --with-target-bdw-gc-lib=PATHLIST | |
1606 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1607 | --with-gcc-major-version-only |
1608 | use only GCC major number in filesystem paths | |
30b74385 | 1609 | --with-build-sysroot=SYSROOT |
1c710c3c | 1610 | use sysroot as the system root during the build |
c8aea42c | 1611 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1612 | map A to B, C to D ... in debug information |
1613 | --with-build-config='NAME NAME2...' | |
1614 | use config/NAME.mk build configuration | |
30b74385 | 1615 | --with-build-time-tools=PATH |
1c710c3c | 1616 | use given path to find target tools during the build |
1c710c3c DJ |
1617 | |
1618 | Some influential environment variables: | |
1619 | CC C compiler command | |
1620 | CFLAGS C compiler flags | |
1621 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1622 | nonstandard directory <lib dir> | |
5213506e | 1623 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1624 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1625 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1626 | CXX C++ compiler command |
1627 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1628 | build_configargs |
1629 | additional configure arguments for build directories | |
1630 | host_configargs | |
1631 | additional configure arguments for host directories | |
1632 | target_configargs | |
1633 | additional configure arguments for target directories | |
278a7a38 AO |
1634 | AR AR for the host |
1635 | AS AS for the host | |
1636 | DLLTOOL DLLTOOL for the host | |
1637 | LD LD for the host | |
1638 | LIPO LIPO for the host | |
1639 | NM NM for the host | |
1640 | RANLIB RANLIB for the host | |
1641 | STRIP STRIP for the host | |
1642 | WINDRES WINDRES for the host | |
901119ae | 1643 | WINDMC WINDMC for the host |
278a7a38 AO |
1644 | OBJCOPY OBJCOPY for the host |
1645 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1646 | OTOOL OTOOL for the host |
e7a82751 | 1647 | READELF READELF for the host |
278a7a38 AO |
1648 | CC_FOR_TARGET |
1649 | CC for the target | |
1650 | CXX_FOR_TARGET | |
1651 | CXX for the target | |
1652 | GCC_FOR_TARGET | |
1653 | GCC for the target | |
278a7a38 AO |
1654 | GFORTRAN_FOR_TARGET |
1655 | GFORTRAN for the target | |
632e2a07 ILT |
1656 | GOC_FOR_TARGET |
1657 | GOC for the target | |
b4c522fa IB |
1658 | GDC_FOR_TARGET |
1659 | GDC for the target | |
278a7a38 AO |
1660 | AR_FOR_TARGET |
1661 | AR for the target | |
1662 | AS_FOR_TARGET | |
1663 | AS for the target | |
1664 | DLLTOOL_FOR_TARGET | |
1665 | DLLTOOL for the target | |
1666 | LD_FOR_TARGET | |
1667 | LD for the target | |
1668 | LIPO_FOR_TARGET | |
1669 | LIPO for the target | |
1670 | NM_FOR_TARGET | |
1671 | NM for the target | |
9bccfdf5 AP |
1672 | OBJCOPY_FOR_TARGET |
1673 | OBJCOPY for the target | |
278a7a38 AO |
1674 | OBJDUMP_FOR_TARGET |
1675 | OBJDUMP for the target | |
e4a9a572 IS |
1676 | OTOOL_FOR_TARGET |
1677 | OTOOL for the target | |
278a7a38 AO |
1678 | RANLIB_FOR_TARGET |
1679 | RANLIB for the target | |
e7a82751 RM |
1680 | READELF_FOR_TARGET |
1681 | READELF for the target | |
278a7a38 AO |
1682 | STRIP_FOR_TARGET |
1683 | STRIP for the target | |
1684 | WINDRES_FOR_TARGET | |
1685 | WINDRES for the target | |
901119ae KT |
1686 | WINDMC_FOR_TARGET |
1687 | WINDMC for the target | |
1c710c3c DJ |
1688 | |
1689 | Use these variables to override the choices made by `configure' or to help | |
1690 | it to find libraries and programs with nonstandard names/locations. | |
1691 | ||
5213506e | 1692 | Report bugs to the package provider. |
1c710c3c | 1693 | _ACEOF |
5213506e | 1694 | ac_status=$? |
1c710c3c DJ |
1695 | fi |
1696 | ||
1697 | if test "$ac_init_help" = "recursive"; then | |
1698 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1699 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1700 | test -d "$ac_dir" || |
1701 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1702 | continue | |
1c710c3c DJ |
1703 | ac_builddir=. |
1704 | ||
5213506e RW |
1705 | case "$ac_dir" in |
1706 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1707 | *) | |
1708 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1709 | # A ".." for each directory in $ac_dir_suffix. | |
1710 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1711 | case $ac_top_builddir_sub in | |
1712 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1713 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1714 | esac ;; | |
1715 | esac | |
1716 | ac_abs_top_builddir=$ac_pwd | |
1717 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1718 | # for backward compatibility: | |
1719 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1720 | |
1721 | case $srcdir in | |
5213506e | 1722 | .) # We are building in place. |
1c710c3c | 1723 | ac_srcdir=. |
5213506e RW |
1724 | ac_top_srcdir=$ac_top_builddir_sub |
1725 | ac_abs_top_srcdir=$ac_pwd ;; | |
1726 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1727 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1728 | ac_top_srcdir=$srcdir |
1729 | ac_abs_top_srcdir=$srcdir ;; | |
1730 | *) # Relative name. | |
1731 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1732 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1733 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1734 | esac |
5213506e RW |
1735 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1736 | ||
1737 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1738 | # Check for guested configure. | |
1739 | if test -f "$ac_srcdir/configure.gnu"; then | |
1740 | echo && | |
1741 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1742 | elif test -f "$ac_srcdir/configure"; then | |
1743 | echo && | |
1744 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1745 | else |
5213506e RW |
1746 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1747 | fi || ac_status=$? | |
1748 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1749 | done |
1750 | fi | |
1751 | ||
5213506e | 1752 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1753 | if $ac_init_version; then |
1754 | cat <<\_ACEOF | |
5213506e | 1755 | configure |
22e05272 | 1756 | generated by GNU Autoconf 2.69 |
1c710c3c | 1757 | |
22e05272 | 1758 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1759 | This configure script is free software; the Free Software Foundation |
1760 | gives unlimited permission to copy, distribute and modify it. | |
1761 | _ACEOF | |
5213506e | 1762 | exit |
0b0dc272 | 1763 | fi |
5213506e RW |
1764 | |
1765 | ## ------------------------ ## | |
1766 | ## Autoconf initialization. ## | |
1767 | ## ------------------------ ## | |
1768 | ||
1769 | # ac_fn_c_try_compile LINENO | |
1770 | # -------------------------- | |
1771 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1772 | ac_fn_c_try_compile () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | rm -f conftest.$ac_objext | |
1776 | if { { ac_try="$ac_compile" | |
1777 | case "(($ac_try" in | |
1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | *) ac_try_echo=$ac_try;; | |
1780 | esac | |
1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | $as_echo "$ac_try_echo"; } >&5 | |
1783 | (eval "$ac_compile") 2>conftest.err | |
1784 | ac_status=$? | |
1785 | if test -s conftest.err; then | |
1786 | grep -v '^ *+' conftest.err >conftest.er1 | |
1787 | cat conftest.er1 >&5 | |
1788 | mv -f conftest.er1 conftest.err | |
1789 | fi | |
1790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1791 | test $ac_status = 0; } && { | |
1792 | test -z "$ac_c_werror_flag" || | |
1793 | test ! -s conftest.err | |
1794 | } && test -s conftest.$ac_objext; then : | |
1795 | ac_retval=0 | |
1796 | else | |
1797 | $as_echo "$as_me: failed program was:" >&5 | |
1798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1799 | ||
1800 | ac_retval=1 | |
1801 | fi | |
22e05272 JM |
1802 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1803 | as_fn_set_status $ac_retval | |
5213506e RW |
1804 | |
1805 | } # ac_fn_c_try_compile | |
1806 | ||
1807 | # ac_fn_cxx_try_compile LINENO | |
1808 | # ---------------------------- | |
1809 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1810 | ac_fn_cxx_try_compile () | |
1811 | { | |
1812 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1813 | rm -f conftest.$ac_objext | |
1814 | if { { ac_try="$ac_compile" | |
1815 | case "(($ac_try" in | |
1816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1817 | *) ac_try_echo=$ac_try;; | |
1818 | esac | |
1819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1820 | $as_echo "$ac_try_echo"; } >&5 | |
1821 | (eval "$ac_compile") 2>conftest.err | |
1822 | ac_status=$? | |
1823 | if test -s conftest.err; then | |
1824 | grep -v '^ *+' conftest.err >conftest.er1 | |
1825 | cat conftest.er1 >&5 | |
1826 | mv -f conftest.er1 conftest.err | |
1827 | fi | |
1828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1829 | test $ac_status = 0; } && { | |
1830 | test -z "$ac_cxx_werror_flag" || | |
1831 | test ! -s conftest.err | |
1832 | } && test -s conftest.$ac_objext; then : | |
1833 | ac_retval=0 | |
1834 | else | |
1835 | $as_echo "$as_me: failed program was:" >&5 | |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1837 | ||
1838 | ac_retval=1 | |
1839 | fi | |
22e05272 JM |
1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1841 | as_fn_set_status $ac_retval | |
5213506e RW |
1842 | |
1843 | } # ac_fn_cxx_try_compile | |
1844 | ||
0b21f5d3 EB |
1845 | # ac_fn_cxx_try_link LINENO |
1846 | # ------------------------- | |
1847 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1848 | ac_fn_cxx_try_link () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1852 | if { { ac_try="$ac_link" | |
1853 | case "(($ac_try" in | |
1854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1855 | *) ac_try_echo=$ac_try;; | |
1856 | esac | |
1857 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1858 | $as_echo "$ac_try_echo"; } >&5 | |
1859 | (eval "$ac_link") 2>conftest.err | |
1860 | ac_status=$? | |
1861 | if test -s conftest.err; then | |
1862 | grep -v '^ *+' conftest.err >conftest.er1 | |
1863 | cat conftest.er1 >&5 | |
1864 | mv -f conftest.er1 conftest.err | |
1865 | fi | |
1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1867 | test $ac_status = 0; } && { | |
1868 | test -z "$ac_cxx_werror_flag" || | |
1869 | test ! -s conftest.err | |
1870 | } && test -s conftest$ac_exeext && { | |
1871 | test "$cross_compiling" = yes || | |
22e05272 | 1872 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1873 | }; then : |
1874 | ac_retval=0 | |
1875 | else | |
1876 | $as_echo "$as_me: failed program was:" >&5 | |
1877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1878 | ||
1879 | ac_retval=1 | |
1880 | fi | |
1881 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1882 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1883 | # interfere with the next link command; also delete a directory that is | |
1884 | # left behind by Apple's compiler. We do this before executing the actions. | |
1885 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1887 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1888 | |
1889 | } # ac_fn_cxx_try_link | |
1890 | ||
5213506e RW |
1891 | # ac_fn_c_try_link LINENO |
1892 | # ----------------------- | |
1893 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1894 | ac_fn_c_try_link () | |
1895 | { | |
1896 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1898 | if { { ac_try="$ac_link" | |
1899 | case "(($ac_try" in | |
1900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1901 | *) ac_try_echo=$ac_try;; | |
1902 | esac | |
1903 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1904 | $as_echo "$ac_try_echo"; } >&5 | |
1905 | (eval "$ac_link") 2>conftest.err | |
1906 | ac_status=$? | |
1907 | if test -s conftest.err; then | |
1908 | grep -v '^ *+' conftest.err >conftest.er1 | |
1909 | cat conftest.er1 >&5 | |
1910 | mv -f conftest.er1 conftest.err | |
1911 | fi | |
1912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1913 | test $ac_status = 0; } && { | |
1914 | test -z "$ac_c_werror_flag" || | |
1915 | test ! -s conftest.err | |
1916 | } && test -s conftest$ac_exeext && { | |
1917 | test "$cross_compiling" = yes || | |
22e05272 | 1918 | test -x conftest$ac_exeext |
5213506e RW |
1919 | }; then : |
1920 | ac_retval=0 | |
1921 | else | |
1922 | $as_echo "$as_me: failed program was:" >&5 | |
1923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1924 | ||
1925 | ac_retval=1 | |
1926 | fi | |
1927 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1928 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1929 | # interfere with the next link command; also delete a directory that is | |
1930 | # left behind by Apple's compiler. We do this before executing the actions. | |
1931 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1932 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1933 | as_fn_set_status $ac_retval | |
5213506e RW |
1934 | |
1935 | } # ac_fn_c_try_link | |
1936 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1937 | This file contains any messages produced by compilers while |
1938 | running configure, to aid debugging if configure makes a mistake. | |
1939 | ||
1940 | It was created by $as_me, which was | |
22e05272 | 1941 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1942 | |
1943 | $ $0 $@ | |
1944 | ||
1945 | _ACEOF | |
5213506e | 1946 | exec 5>>config.log |
1c710c3c DJ |
1947 | { |
1948 | cat <<_ASUNAME | |
1949 | ## --------- ## | |
1950 | ## Platform. ## | |
1951 | ## --------- ## | |
1952 | ||
1953 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1954 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1955 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1956 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1957 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1958 | ||
1959 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1960 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1961 | ||
1962 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1963 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1964 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1965 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1966 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1967 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1968 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1969 | ||
1970 | _ASUNAME | |
1971 | ||
1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1973 | for as_dir in $PATH | |
1974 | do | |
1975 | IFS=$as_save_IFS | |
1976 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1977 | $as_echo "PATH: $as_dir" |
1978 | done | |
1979 | IFS=$as_save_IFS | |
1c710c3c DJ |
1980 | |
1981 | } >&5 | |
1982 | ||
1983 | cat >&5 <<_ACEOF | |
1984 | ||
1985 | ||
1986 | ## ----------- ## | |
1987 | ## Core tests. ## | |
1988 | ## ----------- ## | |
1989 | ||
1990 | _ACEOF | |
1991 | ||
1992 | ||
1993 | # Keep a trace of the command line. | |
1994 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1995 | # Strip out --silent because we don't want to record it for future runs. | |
1996 | # Also quote any args containing shell meta-characters. | |
1997 | # Make two passes to allow for proper duplicate-argument suppression. | |
1998 | ac_configure_args= | |
1999 | ac_configure_args0= | |
2000 | ac_configure_args1= | |
1c710c3c DJ |
2001 | ac_must_keep_next=false |
2002 | for ac_pass in 1 2 | |
2003 | do | |
2004 | for ac_arg | |
2005 | do | |
2006 | case $ac_arg in | |
2007 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2009 | | -silent | --silent | --silen | --sile | --sil) | |
2010 | continue ;; | |
5213506e RW |
2011 | *\'*) |
2012 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2013 | esac |
2014 | case $ac_pass in | |
5213506e | 2015 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2016 | 2) |
5213506e | 2017 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2018 | if test $ac_must_keep_next = true; then |
2019 | ac_must_keep_next=false # Got value, back to normal. | |
2020 | else | |
2021 | case $ac_arg in | |
2022 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2023 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2024 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2025 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2026 | case "$ac_configure_args0 " in | |
2027 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2028 | esac | |
2029 | ;; | |
2030 | -* ) ac_must_keep_next=true ;; | |
2031 | esac | |
2032 | fi | |
5213506e | 2033 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2034 | ;; |
2035 | esac | |
2036 | done | |
2037 | done | |
5213506e RW |
2038 | { ac_configure_args0=; unset ac_configure_args0;} |
2039 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2040 | |
2041 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2042 | # config.log. We remove comments because anyway the quotes in there | |
2043 | # would cause problems or look ugly. | |
5213506e RW |
2044 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2045 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2046 | trap 'exit_status=$? |
2047 | # Save into config.log some information that might help in debugging. | |
2048 | { | |
2049 | echo | |
2050 | ||
22e05272 | 2051 | $as_echo "## ---------------- ## |
1c710c3c | 2052 | ## Cache variables. ## |
22e05272 | 2053 | ## ---------------- ##" |
1c710c3c DJ |
2054 | echo |
2055 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2056 | ( |
2057 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2058 | eval ac_val=\$$ac_var | |
2059 | case $ac_val in #( | |
2060 | *${as_nl}*) | |
2061 | case $ac_var in #( | |
2062 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2063 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2064 | esac | |
2065 | case $ac_var in #( | |
2066 | _ | IFS | as_nl) ;; #( | |
2067 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2068 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2069 | esac ;; | |
2070 | esac | |
2071 | done | |
1c710c3c | 2072 | (set) 2>&1 | |
5213506e RW |
2073 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2074 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2075 | sed -n \ |
5213506e RW |
2076 | "s/'\''/'\''\\\\'\'''\''/g; |
2077 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2078 | ;; #( | |
1c710c3c | 2079 | *) |
5213506e | 2080 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2081 | ;; |
5213506e RW |
2082 | esac | |
2083 | sort | |
2084 | ) | |
1c710c3c DJ |
2085 | echo |
2086 | ||
22e05272 | 2087 | $as_echo "## ----------------- ## |
1c710c3c | 2088 | ## Output variables. ## |
22e05272 | 2089 | ## ----------------- ##" |
1c710c3c DJ |
2090 | echo |
2091 | for ac_var in $ac_subst_vars | |
2092 | do | |
5213506e RW |
2093 | eval ac_val=\$$ac_var |
2094 | case $ac_val in | |
2095 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2096 | esac | |
2097 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2098 | done | sort |
2099 | echo | |
2100 | ||
2101 | if test -n "$ac_subst_files"; then | |
22e05272 | 2102 | $as_echo "## ------------------- ## |
5213506e | 2103 | ## File substitutions. ## |
22e05272 | 2104 | ## ------------------- ##" |
1c710c3c DJ |
2105 | echo |
2106 | for ac_var in $ac_subst_files | |
2107 | do | |
5213506e RW |
2108 | eval ac_val=\$$ac_var |
2109 | case $ac_val in | |
2110 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2111 | esac | |
2112 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2113 | done | sort |
2114 | echo | |
2115 | fi | |
2116 | ||
2117 | if test -s confdefs.h; then | |
22e05272 | 2118 | $as_echo "## ----------- ## |
1c710c3c | 2119 | ## confdefs.h. ## |
22e05272 | 2120 | ## ----------- ##" |
1c710c3c | 2121 | echo |
5213506e | 2122 | cat confdefs.h |
1c710c3c DJ |
2123 | echo |
2124 | fi | |
2125 | test "$ac_signal" != 0 && | |
5213506e RW |
2126 | $as_echo "$as_me: caught signal $ac_signal" |
2127 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2128 | } >&5 |
5213506e RW |
2129 | rm -f core *.core core.conftest.* && |
2130 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2131 | exit $exit_status |
5213506e | 2132 | ' 0 |
1c710c3c | 2133 | for ac_signal in 1 2 13 15; do |
5213506e | 2134 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2135 | done |
2136 | ac_signal=0 | |
2137 | ||
2138 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2139 | rm -f -r conftest* confdefs.h |
2140 | ||
2141 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2142 | |
2143 | # Predefined preprocessor variables. | |
2144 | ||
2145 | cat >>confdefs.h <<_ACEOF | |
2146 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2147 | _ACEOF | |
2148 | ||
1c710c3c DJ |
2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2151 | _ACEOF | |
2152 | ||
1c710c3c DJ |
2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2155 | _ACEOF | |
0b0dc272 | 2156 | |
1c710c3c DJ |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2159 | _ACEOF | |
2160 | ||
1c710c3c DJ |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2163 | _ACEOF | |
2164 | ||
5213506e RW |
2165 | cat >>confdefs.h <<_ACEOF |
2166 | #define PACKAGE_URL "$PACKAGE_URL" | |
2167 | _ACEOF | |
2168 | ||
1c710c3c DJ |
2169 | |
2170 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2171 | # Prefer an explicitly selected file to automatically selected ones. |
2172 | ac_site_file1=NONE | |
2173 | ac_site_file2=NONE | |
2174 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2175 | # We do not want a PATH search for config.site. |
2176 | case $CONFIG_SITE in #(( | |
2177 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2178 | */*) ac_site_file1=$CONFIG_SITE;; | |
2179 | *) ac_site_file1=./$CONFIG_SITE;; | |
2180 | esac | |
5213506e RW |
2181 | elif test "x$prefix" != xNONE; then |
2182 | ac_site_file1=$prefix/share/config.site | |
2183 | ac_site_file2=$prefix/etc/config.site | |
2184 | else | |
2185 | ac_site_file1=$ac_default_prefix/share/config.site | |
2186 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2187 | fi |
5213506e RW |
2188 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2189 | do | |
2190 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2191 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2193 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2194 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2195 | . "$ac_site_file" \ |
2196 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2198 | as_fn_error $? "failed to load site script $ac_site_file | |
2199 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2200 | fi |
2201 | done | |
2202 | ||
2203 | if test -r "$cache_file"; then | |
22e05272 JM |
2204 | # Some versions of bash will fail to source /dev/null (special files |
2205 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2206 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2208 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2209 | case $cache_file in |
5213506e RW |
2210 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2211 | *) . "./$cache_file";; | |
1c710c3c DJ |
2212 | esac |
2213 | fi | |
671aa708 | 2214 | else |
5213506e RW |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2216 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2217 | >$cache_file |
2218 | fi | |
2219 | ||
2220 | # Check that the precious variables saved in the cache have kept the same | |
2221 | # value. | |
2222 | ac_cache_corrupted=false | |
5213506e | 2223 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2224 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2225 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2226 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2227 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2228 | case $ac_old_set,$ac_new_set in |
2229 | set,) | |
5213506e RW |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2231 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2232 | ac_cache_corrupted=: ;; |
2233 | ,set) | |
5213506e RW |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2235 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2236 | ac_cache_corrupted=: ;; |
2237 | ,);; | |
2238 | *) | |
2239 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2240 | # differences in whitespace do not lead to failure. |
2241 | ac_old_val_w=`echo x $ac_old_val` | |
2242 | ac_new_val_w=`echo x $ac_new_val` | |
2243 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2245 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2246 | ac_cache_corrupted=: | |
2247 | else | |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2249 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2250 | eval $ac_var=\$ac_old_val | |
2251 | fi | |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2253 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2255 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2256 | fi;; |
2257 | esac | |
2258 | # Pass precious variables to config.status. | |
2259 | if test "$ac_new_set" = set; then | |
2260 | case $ac_new_val in | |
5213506e | 2261 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2262 | *) ac_arg=$ac_var=$ac_new_val ;; |
2263 | esac | |
2264 | case " $ac_configure_args " in | |
2265 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2266 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2267 | esac |
2268 | fi | |
2269 | done | |
2270 | if $ac_cache_corrupted; then | |
5213506e RW |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2274 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2275 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2276 | fi |
5213506e RW |
2277 | ## -------------------- ## |
2278 | ## Main body of script. ## | |
2279 | ## -------------------- ## | |
671aa708 | 2280 | |
2aeb72e9 DD |
2281 | ac_ext=c |
2282 | ac_cpp='$CPP $CPPFLAGS' | |
2283 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2284 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2285 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2286 | ||
1c710c3c DJ |
2287 | |
2288 | ||
2289 | ||
1c710c3c DJ |
2290 | |
2291 | ||
0115d4a3 | 2292 | |
1c710c3c | 2293 | |
ad33ff57 RW |
2294 | progname=$0 |
2295 | # if PWD already has a value, it is probably wrong. | |
2296 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2297 | ||
2298 | # Export original configure arguments for use by sub-configures. | |
2299 | # Quote arguments with shell meta charatcers. | |
2300 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2301 | set -- "$progname" "$@" | |
2302 | for ac_arg | |
2303 | do | |
2304 | case "$ac_arg" in | |
2305 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2306 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2307 | # if the argument is of the form -foo=baz, quote the baz part only | |
2308 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2309 | *) ;; | |
2310 | esac | |
2311 | # Add the quoted argument to the list. | |
2312 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2313 | done | |
2314 | if test "$silent" = yes; then | |
2315 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2316 | fi | |
2317 | # Remove the initial space we just introduced and, as these will be | |
2318 | # expanded by make, quote '$'. | |
2319 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2320 | ||
1c710c3c DJ |
2321 | |
2322 | # Find the build, host, and target systems. | |
671aa708 | 2323 | ac_aux_dir= |
5213506e | 2324 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2325 | if test -f "$ac_dir/install-sh"; then |
2326 | ac_aux_dir=$ac_dir | |
2327 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2328 | break | |
2329 | elif test -f "$ac_dir/install.sh"; then | |
2330 | ac_aux_dir=$ac_dir | |
2331 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2332 | break | |
2333 | elif test -f "$ac_dir/shtool"; then | |
2334 | ac_aux_dir=$ac_dir | |
2335 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2336 | break | |
2337 | fi | |
671aa708 NN |
2338 | done |
2339 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2340 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2341 | fi |
5213506e RW |
2342 | |
2343 | # These three variables are undocumented and unsupported, | |
2344 | # and are intended to be withdrawn in a future Autoconf release. | |
2345 | # They can cause serious problems if a builder's source tree is in a directory | |
2346 | # whose full name contains unusual characters. | |
2347 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2348 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2349 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2350 | ||
671aa708 | 2351 | |
1c710c3c | 2352 | # Make sure we can run config.sub. |
5213506e | 2353 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2354 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2355 | |
2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2357 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2358 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2359 | $as_echo_n "(cached) " >&6 |
2360 | else | |
2361 | ac_build_alias=$build_alias | |
2362 | test "x$ac_build_alias" = x && | |
2363 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2364 | test "x$ac_build_alias" = x && | |
22e05272 | 2365 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2366 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2367 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2368 | |
2369 | fi | |
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2371 | $as_echo "$ac_cv_build" >&6; } | |
2372 | case $ac_cv_build in | |
2373 | *-*-*) ;; | |
22e05272 | 2374 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2375 | esac |
1c710c3c | 2376 | build=$ac_cv_build |
5213506e RW |
2377 | ac_save_IFS=$IFS; IFS='-' |
2378 | set x $ac_cv_build | |
2379 | shift | |
2380 | build_cpu=$1 | |
2381 | build_vendor=$2 | |
2382 | shift; shift | |
2383 | # Remember, the first character of IFS is used to create $*, | |
2384 | # except with old shells: | |
2385 | build_os=$* | |
2386 | IFS=$ac_save_IFS | |
2387 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2388 | |
671aa708 | 2389 | |
1c710c3c DJ |
2390 | case ${build_alias} in |
2391 | "") build_noncanonical=${build} ;; | |
2392 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2393 | esac |
2394 | ||
2395 | ||
af71363e | 2396 | |
1c710c3c DJ |
2397 | case ${host_alias} in |
2398 | "") host_noncanonical=${build_noncanonical} ;; | |
2399 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2400 | esac |
2401 | ||
af71363e | 2402 | |
1c710c3c DJ |
2403 | |
2404 | case ${target_alias} in | |
2405 | "") target_noncanonical=${host_noncanonical} ;; | |
2406 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2407 | esac |
2408 | ||
af71363e | 2409 | |
1c710c3c DJ |
2410 | |
2411 | ||
2412 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2413 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2414 | NONENONEs,x,x, && | |
1c710c3c | 2415 | program_transform_name=s,y,y, |
af71363e | 2416 | |
5213506e RW |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2418 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2419 | if ${ac_cv_host+:} false; then : |
5213506e | 2420 | $as_echo_n "(cached) " >&6 |
af71363e | 2421 | else |
5213506e RW |
2422 | if test "x$host_alias" = x; then |
2423 | ac_cv_host=$ac_cv_build | |
2424 | else | |
2425 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2426 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2427 | fi |
1c710c3c | 2428 | |
af71363e | 2429 | fi |
5213506e RW |
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2431 | $as_echo "$ac_cv_host" >&6; } | |
2432 | case $ac_cv_host in | |
2433 | *-*-*) ;; | |
22e05272 | 2434 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2435 | esac |
1c710c3c | 2436 | host=$ac_cv_host |
5213506e RW |
2437 | ac_save_IFS=$IFS; IFS='-' |
2438 | set x $ac_cv_host | |
2439 | shift | |
2440 | host_cpu=$1 | |
2441 | host_vendor=$2 | |
2442 | shift; shift | |
2443 | # Remember, the first character of IFS is used to create $*, | |
2444 | # except with old shells: | |
2445 | host_os=$* | |
2446 | IFS=$ac_save_IFS | |
2447 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2448 | |
2449 | ||
5213506e RW |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2451 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2452 | if ${ac_cv_target+:} false; then : |
5213506e | 2453 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2454 | else |
5213506e RW |
2455 | if test "x$target_alias" = x; then |
2456 | ac_cv_target=$ac_cv_host | |
2457 | else | |
2458 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2459 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2460 | fi |
1c710c3c DJ |
2461 | |
2462 | fi | |
5213506e RW |
2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2464 | $as_echo "$ac_cv_target" >&6; } | |
2465 | case $ac_cv_target in | |
2466 | *-*-*) ;; | |
22e05272 | 2467 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2468 | esac |
1c710c3c | 2469 | target=$ac_cv_target |
5213506e RW |
2470 | ac_save_IFS=$IFS; IFS='-' |
2471 | set x $ac_cv_target | |
2472 | shift | |
2473 | target_cpu=$1 | |
2474 | target_vendor=$2 | |
2475 | shift; shift | |
2476 | # Remember, the first character of IFS is used to create $*, | |
2477 | # except with old shells: | |
2478 | target_os=$* | |
2479 | IFS=$ac_save_IFS | |
2480 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2481 | |
2482 | ||
2483 | # The aliases save the names the user supplied, while $host etc. | |
2484 | # will get canonicalized. | |
2485 | test -n "$target_alias" && | |
2486 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2487 | NONENONEs,x,x, && | |
2488 | program_prefix=${target_alias}- | |
5213506e | 2489 | |
671aa708 | 2490 | test "$program_prefix" != NONE && |
5213506e | 2491 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2492 | # Use a double $ so make ignores it. |
2493 | test "$program_suffix" != NONE && | |
5213506e RW |
2494 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2495 | # Double any \ or $. | |
1c710c3c | 2496 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2497 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2498 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2499 | |
671aa708 NN |
2500 | |
2501 | ||
775956d0 NN |
2502 | # Get 'install' or 'install-sh' and its variants. |
2503 | # Find a good install program. We prefer a C program (faster), | |
2504 | # so one script is as good as another. But avoid the broken or | |
2505 | # incompatible versions: | |
2506 | # SysV /etc/install, /usr/sbin/install | |
2507 | # SunOS /usr/etc/install | |
2508 | # IRIX /sbin/install | |
2509 | # AIX /bin/install | |
1c710c3c | 2510 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2511 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2512 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2513 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2514 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2515 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2516 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2518 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2519 | if test -z "$INSTALL"; then |
22e05272 | 2520 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2521 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2522 | else |
2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2524 | for as_dir in $PATH | |
2525 | do | |
2526 | IFS=$as_save_IFS | |
2527 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2528 | # Account for people who put trailing slashes in PATH elements. |
2529 | case $as_dir/ in #(( | |
2530 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2531 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2532 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2533 | /usr/ucb/* ) ;; |
2534 | *) | |
2535 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2536 | # Don't use installbsd from OSF since it installs stuff as root | |
2537 | # by default. | |
2538 | for ac_prog in ginstall scoinst install; do | |
2539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2540 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2541 | if test $ac_prog = install && |
1c710c3c | 2542 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2543 | # AIX install. It has an incompatible calling convention. |
2544 | : | |
1c710c3c DJ |
2545 | elif test $ac_prog = install && |
2546 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2547 | # program-specific install script used by HP pwplus--don't use. | |
2548 | : | |
775956d0 | 2549 | else |
38d24731 RW |
2550 | rm -rf conftest.one conftest.two conftest.dir |
2551 | echo one > conftest.one | |
2552 | echo two > conftest.two | |
2553 | mkdir conftest.dir | |
2554 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2555 | test -s conftest.one && test -s conftest.two && | |
2556 | test -s conftest.dir/conftest.one && | |
2557 | test -s conftest.dir/conftest.two | |
2558 | then | |
2559 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2560 | break 3 | |
2561 | fi | |
775956d0 NN |
2562 | fi |
2563 | fi | |
2564 | done | |
1c710c3c DJ |
2565 | done |
2566 | ;; | |
2567 | esac | |
5213506e RW |
2568 | |
2569 | done | |
2570 | IFS=$as_save_IFS | |
1c710c3c | 2571 | |
38d24731 | 2572 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2573 | |
2574 | fi | |
2575 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2576 | INSTALL=$ac_cv_path_install |
775956d0 | 2577 | else |
38d24731 RW |
2578 | # As a last resort, use the slow shell script. Don't cache a |
2579 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2580 | # break other packages using the cache if that directory is |
38d24731 | 2581 | # removed, or if the value is a relative name. |
1c710c3c | 2582 | INSTALL=$ac_install_sh |
775956d0 NN |
2583 | fi |
2584 | fi | |
5213506e RW |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2586 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2587 | |
2588 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2589 | # It thinks the first close brace ends the variable substitution. | |
2590 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2591 | ||
1c710c3c | 2592 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2593 | |
2594 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2595 | ||
5213506e RW |
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2597 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2598 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2599 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2600 | else |
2601 | rm -f conftestdata_t | |
2602 | echo >conftestdata_f | |
2603 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2604 | then | |
2605 | acx_cv_prog_LN=ln | |
2606 | else | |
2607 | acx_cv_prog_LN=no | |
2608 | fi | |
2609 | rm -f conftestdata_f conftestdata_t | |
2610 | ||
2611 | fi | |
2612 | if test $acx_cv_prog_LN = no; then | |
2613 | LN="cp" | |
5213506e RW |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2615 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2616 | else |
2617 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2619 | $as_echo "yes" >&6; } | |
ad6717df PB |
2620 | fi |
2621 | ||
5213506e RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2623 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2624 | LN_S=$as_ln_s |
2625 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2627 | $as_echo "yes" >&6; } | |
fb0103e5 | 2628 | else |
5213506e RW |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2630 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2631 | fi |
2632 | ||
87264276 PB |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2634 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2635 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2636 | $as_echo_n "(cached) " >&6 |
2637 | else | |
2638 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2639 | for ac_i in 1 2 3 4 5 6 7; do | |
2640 | ac_script="$ac_script$as_nl$ac_script" | |
2641 | done | |
2642 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2643 | { ac_script=; unset ac_script;} | |
2644 | if test -z "$SED"; then | |
2645 | ac_path_SED_found=false | |
2646 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2648 | for as_dir in $PATH | |
2649 | do | |
2650 | IFS=$as_save_IFS | |
2651 | test -z "$as_dir" && as_dir=. | |
2652 | for ac_prog in sed gsed; do | |
2653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2654 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2655 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2656 | # Check for GNU ac_path_SED and select it if it is found. |
2657 | # Check for GNU $ac_path_SED | |
2658 | case `"$ac_path_SED" --version 2>&1` in | |
2659 | *GNU*) | |
2660 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2661 | *) | |
2662 | ac_count=0 | |
2663 | $as_echo_n 0123456789 >"conftest.in" | |
2664 | while : | |
2665 | do | |
2666 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2667 | mv "conftest.tmp" "conftest.in" | |
2668 | cp "conftest.in" "conftest.nl" | |
2669 | $as_echo '' >> "conftest.nl" | |
2670 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2671 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2672 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2673 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2674 | # Best one so far, save it but keep looking for a better one | |
2675 | ac_cv_path_SED="$ac_path_SED" | |
2676 | ac_path_SED_max=$ac_count | |
2677 | fi | |
2678 | # 10*(2^10) chars as input seems more than enough | |
2679 | test $ac_count -gt 10 && break | |
2680 | done | |
2681 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2682 | esac | |
2683 | ||
2684 | $ac_path_SED_found && break 3 | |
2685 | done | |
2686 | done | |
2687 | done | |
2688 | IFS=$as_save_IFS | |
2689 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2690 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2691 | fi |
2692 | else | |
2693 | ac_cv_path_SED=$SED | |
2694 | fi | |
2695 | ||
2696 | fi | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2698 | $as_echo "$ac_cv_path_SED" >&6; } | |
2699 | SED="$ac_cv_path_SED" | |
2700 | rm -f conftest.sed | |
2701 | ||
2702 | for ac_prog in gawk mawk nawk awk | |
2703 | do | |
2704 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2705 | set dummy $ac_prog; ac_word=$2 | |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2707 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2708 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2709 | $as_echo_n "(cached) " >&6 |
2710 | else | |
2711 | if test -n "$AWK"; then | |
2712 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2713 | else | |
2714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2715 | for as_dir in $PATH | |
2716 | do | |
2717 | IFS=$as_save_IFS | |
2718 | test -z "$as_dir" && as_dir=. | |
2719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2721 | ac_cv_prog_AWK="$ac_prog" |
2722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2723 | break 2 | |
2724 | fi | |
2725 | done | |
2726 | done | |
2727 | IFS=$as_save_IFS | |
2728 | ||
2729 | fi | |
2730 | fi | |
2731 | AWK=$ac_cv_prog_AWK | |
2732 | if test -n "$AWK"; then | |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2734 | $as_echo "$AWK" >&6; } | |
2735 | else | |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2737 | $as_echo "no" >&6; } | |
2738 | fi | |
2739 | ||
2740 | ||
2741 | test -n "$AWK" && break | |
2742 | done | |
2743 | ||
775956d0 | 2744 | |
ee6a22df L |
2745 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2746 | ||
2747 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2748 | # a relative path. | |
2749 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2750 | INSTALL="${srcpwd}/install-sh -c" | |
2751 | fi | |
2752 | ||
671aa708 NN |
2753 | # Set srcdir to "." if that's what it is. |
2754 | # This is important for multilib support. | |
2755 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2756 | if test "${pwd}" = "${srcpwd}" ; then |
2757 | srcdir=. | |
79c06341 JL |
2758 | fi |
2759 | ||
671aa708 | 2760 | topsrcdir=$srcpwd |
5d4a5ee6 | 2761 | |
671aa708 | 2762 | extra_host_args= |
afabd8e6 | 2763 | |
671aa708 NN |
2764 | ### To add a new directory to the tree, first choose whether it is a target |
2765 | ### or a host dependent tool. Then put it into the appropriate list | |
2766 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2767 | |
1c710c3c | 2768 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2769 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2770 | |
1c710c3c DJ |
2771 | # Dependency sorting is only needed when *configuration* must be done in |
2772 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2773 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2774 | |
671aa708 NN |
2775 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2776 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2777 | |
23f6b2f9 PB |
2778 | # these library is used by various programs built for the build |
2779 | # environment | |
2780 | # | |
929315a9 | 2781 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2782 | |
2783 | # these tools are built for the build environment | |
85bfb75e | 2784 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2785 | |
671aa708 | 2786 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2787 | #f |
de6abd85 | 2788 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2789 | |
671aa708 NN |
2790 | # these tools are built for the host environment |
2791 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2792 | # know that we are building the simulator. | |
2793 | # binutils, gas and ld appear in that order because it makes sense to run | |
2794 | # "make check" in that particular order. | |
38e3d868 | 2795 | # If --enable-gold is used, "gold" may replace "ld". |
f9d09df0 | 2796 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
671aa708 | 2797 | |
671aa708 NN |
2798 | # these libraries are built for the target environment, and are built after |
2799 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2800 | # Note that libiberty is not a target library. |
291f172e | 2801 | target_libraries="target-libgcc \ |
eff02e4f | 2802 | target-libbacktrace \ |
671aa708 NN |
2803 | target-libgloss \ |
2804 | target-newlib \ | |
6d3b5aea | 2805 | target-libgomp \ |
5f520819 | 2806 | target-liboffloadmic \ |
5fd1486c | 2807 | target-libhsail-rt \ |
48310492 | 2808 | target-libatomic \ |
0a35513e | 2809 | target-libitm \ |
cb543528 | 2810 | target-libstdc++-v3 \ |
f35db108 | 2811 | target-libsanitizer \ |
2077db1b | 2812 | target-libvtv \ |
77008252 | 2813 | target-libssp \ |
1ec601bf | 2814 | target-libquadmath \ |
6de9cd9a | 2815 | target-libgfortran \ |
012447ea | 2816 | target-libffi \ |
d9cdb878 | 2817 | target-libobjc \ |
632e2a07 | 2818 | target-libada \ |
b4c522fa | 2819 | target-libgo \ |
bb50312e IB |
2820 | target-libphobos \ |
2821 | target-zlib" | |
671aa708 | 2822 | |
4dbda6f0 NN |
2823 | # these tools are built using the target libraries, and are intended to |
2824 | # run only in the target environment | |
671aa708 | 2825 | # |
4dbda6f0 | 2826 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2827 | # list belongs in this list. |
671aa708 | 2828 | # |
85bfb75e | 2829 | target_tools="target-rda" |
79c06341 | 2830 | |
671aa708 | 2831 | ################################################################################ |
79c06341 | 2832 | |
671aa708 NN |
2833 | ## All tools belong in one of the four categories, and are assigned above |
2834 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2835 | ## is important because configure will choke if they ever get through. | |
2836 | ## ${configdirs} is directories we build using the host tools. | |
2837 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2838 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2839 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2840 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2841 | |
ac9e6043 RW |
2842 | |
2843 | ||
671aa708 | 2844 | ################################################################################ |
79c06341 | 2845 | |
671aa708 | 2846 | srcname="gnu development package" |
79c06341 | 2847 | |
671aa708 NN |
2848 | # This gets set non-empty for some net releases of packages. |
2849 | appdirs="" | |
79c06341 | 2850 | |
671aa708 NN |
2851 | # Define is_cross_compiler to save on calls to 'test'. |
2852 | is_cross_compiler= | |
2853 | if test x"${host}" = x"${target}" ; then | |
2854 | is_cross_compiler=no | |
79c06341 | 2855 | else |
671aa708 | 2856 | is_cross_compiler=yes |
1c710c3c | 2857 | fi |
79c06341 | 2858 | |
b4acb5ef | 2859 | # Find the build and target subdir names. |
8b87bb96 | 2860 | |
2e9e6f68 DJ |
2861 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2862 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2863 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2864 | # However, they still use the build modules, because the corresponding | |
2865 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2866 | # finishes. So: | |
2867 | # - build_subdir is where we find build modules, and never changes. | |
2868 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2869 | ||
2870 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2871 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2872 | |
5213506e RW |
2873 | # Check whether --with-build-libsubdir was given. |
2874 | if test "${with_build_libsubdir+set}" = set; then : | |
2875 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2876 | else |
2877 | build_libsubdir="$build_subdir" | |
5213506e RW |
2878 | fi |
2879 | ||
215c351a PB |
2880 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2881 | if ( test $srcdir = . && test -d gcc ) \ | |
2882 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2883 | host_subdir="host-${host_noncanonical}" | |
2884 | else | |
2885 | host_subdir=. | |
2886 | fi | |
8b87bb96 NN |
2887 | # No prefix. |
2888 | target_subdir=${target_noncanonical} | |
1c710c3c | 2889 | |
0db770bd RW |
2890 | # Be sure to cover against remnants of an in-tree build. |
2891 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2892 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2893 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2894 | fi | |
79c06341 | 2895 | |
671aa708 NN |
2896 | # Skipdirs are removed silently. |
2897 | skipdirs= | |
2898 | # Noconfigdirs are removed loudly. | |
2899 | noconfigdirs="" | |
79c06341 | 2900 | |
671aa708 NN |
2901 | use_gnu_ld= |
2902 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2903 | if test x$with_gnu_ld = xno ; then | |
2904 | use_gnu_ld=no | |
5afab7ad | 2905 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2906 | fi |
2907 | ||
671aa708 NN |
2908 | use_gnu_as= |
2909 | # Make sure we don't let GNU as be added if we didn't want it. | |
2910 | if test x$with_gnu_as = xno ; then | |
2911 | use_gnu_as=no | |
2912 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2913 | fi |
2914 | ||
d7f09764 | 2915 | use_included_zlib= |
a05c2c75 L |
2916 | |
2917 | # Check whether --with-system-zlib was given. | |
2918 | if test "${with_system_zlib+set}" = set; then : | |
2919 | withval=$with_system_zlib; | |
2920 | fi | |
2921 | ||
d7f09764 DN |
2922 | # Make sure we don't let ZLIB be added if we didn't want it. |
2923 | if test x$with_system_zlib = xyes ; then | |
2924 | use_included_zlib=no | |
2925 | noconfigdirs="$noconfigdirs zlib" | |
2926 | fi | |
2927 | ||
1c710c3c | 2928 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2929 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2930 | |
671aa708 NN |
2931 | case ${with_x} in |
2932 | yes | "") ;; # the default value for this tree is that X11 is available | |
2933 | no) | |
b4f96efe | 2934 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2935 | # We won't be able to build gdbtk without X. |
1c710c3c | 2936 | enable_gdbtk=no |
671aa708 NN |
2937 | ;; |
2938 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2939 | esac | |
79c06341 | 2940 | |
1bcce263 | 2941 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2942 | # Remove these if host=target. |
2943 | cross_only="target-libgloss target-newlib target-opcodes" | |
2944 | ||
2945 | case $is_cross_compiler in | |
2946 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2947 | esac |
79c06341 | 2948 | |
671aa708 NN |
2949 | # If both --with-headers and --with-libs are specified, default to |
2950 | # --without-newlib. | |
ee6a22df L |
2951 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2952 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2953 | if test x"${with_newlib}" = x ; then |
2954 | with_newlib=no | |
2955 | fi | |
79c06341 JL |
2956 | fi |
2957 | ||
671aa708 NN |
2958 | # Recognize --with-newlib/--without-newlib. |
2959 | case ${with_newlib} in | |
2960 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2961 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2962 | esac | |
79c06341 | 2963 | |
85c64bbe BS |
2964 | # Check whether --enable-as-accelerator-for was given. |
2965 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2966 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2967 | fi |
2968 | ||
2969 | ||
2970 | # Check whether --enable-offload-targets was given. | |
2971 | if test "${enable_offload_targets+set}" = set; then : | |
2972 | enableval=$enable_offload_targets; | |
2973 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2974 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2975 | fi |
2976 | ||
2977 | else | |
2978 | enable_offload_targets= | |
2979 | fi | |
2980 | ||
2981 | ||
21539e2e MK |
2982 | # Handle --enable-gold, --enable-ld. |
2983 | # --disable-gold [--enable-ld] | |
2984 | # Build only ld. Default option. | |
9580395f L |
2985 | # --enable-gold [--enable-ld] |
2986 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2987 | # as "ld.bfd" and "ld". | |
2988 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2989 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2990 | # install ld as "ld.bfd". | |
2991 | # --enable-gold[=default] --disable-ld | |
2992 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2993 | # --enable-gold --enable-ld=default | |
9580395f L |
2994 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2995 | # and ld.bfd). | |
21539e2e MK |
2996 | # In other words, ld is default |
2997 | # --enable-gold=default --enable-ld=default | |
2998 | # Error. | |
2999 | ||
3000 | default_ld= | |
5213506e RW |
3001 | # Check whether --enable-gold was given. |
3002 | if test "${enable_gold+set}" = set; then : | |
3003 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3004 | else |
3005 | ENABLE_GOLD=no | |
5213506e RW |
3006 | fi |
3007 | ||
21539e2e MK |
3008 | case "${ENABLE_GOLD}" in |
3009 | yes|default) | |
38e3d868 RM |
3010 | # Check for ELF target. |
3011 | is_elf=no | |
3012 | case "${target}" in | |
3013 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3014 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3015 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3016 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3017 | case "${target}" in |
3018 | *-*-linux*aout* | *-*-linux*oldld*) | |
3019 | ;; | |
3020 | *) | |
3021 | is_elf=yes | |
3022 | ;; | |
3023 | esac | |
3024 | esac | |
3025 | ||
3026 | if test "$is_elf" = "yes"; then | |
3027 | # Check for target supported by gold. | |
5afab7ad | 3028 | case "${target}" in |
7705dfd1 | 3029 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3030 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3031 | configdirs="$configdirs gold" |
3032 | if test x${ENABLE_GOLD} = xdefault; then | |
3033 | default_ld=gold | |
3034 | fi | |
38e3d868 | 3035 | ENABLE_GOLD=yes |
5afab7ad ILT |
3036 | ;; |
3037 | esac | |
38e3d868 RM |
3038 | fi |
3039 | ;; | |
3040 | no) | |
3041 | ;; | |
3042 | *) | |
22e05272 | 3043 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3044 | ;; |
21539e2e MK |
3045 | esac |
3046 | ||
3047 | # Check whether --enable-ld was given. | |
3048 | if test "${enable_ld+set}" = set; then : | |
3049 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3050 | else | |
3051 | ENABLE_LD=yes | |
3052 | fi | |
3053 | ||
3054 | ||
3055 | case "${ENABLE_LD}" in | |
3056 | default) | |
9580395f | 3057 | if test x${default_ld} != x; then |
22e05272 | 3058 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3059 | fi |
3060 | ;; | |
3061 | yes) | |
3062 | ;; | |
3063 | no) | |
3064 | if test x${ENABLE_GOLD} != xyes; then | |
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3066 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3067 | fi | |
3068 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3069 | ;; | |
3070 | *) | |
22e05272 | 3071 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3072 | ;; |
3073 | esac | |
5afab7ad | 3074 | |
78edb32f L |
3075 | # PR gas/19109 |
3076 | # Decide the default method for compressing debug sections. | |
3077 | # Provide a configure time option to override our default. | |
3078 | # Check whether --enable-compressed_debug_sections was given. | |
3079 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3080 | enableval=$enable_compressed_debug_sections; | |
3081 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3082 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3083 | fi |
3084 | ||
3085 | else | |
3086 | enable_compressed_debug_sections= | |
3087 | fi | |
3088 | ||
3089 | ||
671aa708 | 3090 | # Configure extra directories which are host specific |
79c06341 | 3091 | |
671aa708 NN |
3092 | case "${host}" in |
3093 | *-cygwin*) | |
3094 | configdirs="$configdirs libtermcap" ;; | |
3095 | esac | |
79c06341 | 3096 | |
4fab7234 HPN |
3097 | # A target can indicate whether a language isn't supported for some reason. |
3098 | # Only spaces may be used in this macro; not newlines or tabs. | |
3099 | unsupported_languages= | |
3100 | ||
1c710c3c | 3101 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3102 | # target this usually means that a port of the program doesn't |
3103 | # exist yet. | |
ec8d6ddc | 3104 | |
671aa708 | 3105 | case "${host}" in |
111eeb6e | 3106 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3107 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3108 | ;; |
671aa708 | 3109 | esac |
ec8d6ddc | 3110 | |
6de9cd9a | 3111 | |
87e6d9dc TB |
3112 | # Check whether --enable-libquadmath was given. |
3113 | if test "${enable_libquadmath+set}" = set; then : | |
3114 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3115 | else | |
3116 | ENABLE_LIBQUADMATH=yes | |
3117 | fi | |
3118 | ||
3119 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3120 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3121 | fi | |
3122 | ||
3123 | ||
3124 | # Check whether --enable-libquadmath-support was given. | |
3125 | if test "${enable_libquadmath_support+set}" = set; then : | |
3126 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3127 | else | |
3128 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3129 | fi | |
3130 | ||
3131 | enable_libquadmath_support= | |
3132 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3133 | enable_libquadmath_support=no | |
3134 | fi | |
3135 | ||
3136 | ||
5213506e RW |
3137 | # Check whether --enable-libada was given. |
3138 | if test "${enable_libada+set}" = set; then : | |
3139 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3140 | else |
3141 | ENABLE_LIBADA=yes | |
5213506e RW |
3142 | fi |
3143 | ||
d9cdb878 | 3144 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3145 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3146 | fi |
3147 | ||
5213506e RW |
3148 | # Check whether --enable-libssp was given. |
3149 | if test "${enable_libssp+set}" = set; then : | |
3150 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3151 | else |
3152 | ENABLE_LIBSSP=yes | |
5213506e RW |
3153 | fi |
3154 | ||
ef0087a7 | 3155 | |
1873ec0c L |
3156 | # Check whether --enable-libstdcxx was given. |
3157 | if test "${enable_libstdcxx+set}" = set; then : | |
3158 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3159 | else | |
3160 | ENABLE_LIBSTDCXX=default | |
3161 | fi | |
3162 | ||
3163 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3164 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3165 | fi |
3166 | ||
5f520819 KY |
3167 | # If this is accelerator compiler and its target is intelmic we enable |
3168 | # target liboffloadmic by default. If this is compiler with offloading | |
3169 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3170 | # liboffloadmic is disabled by default. | |
3171 | # Check whether --enable-liboffloadmic was given. | |
3172 | if test "${enable_liboffloadmic+set}" = set; then : | |
3173 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3174 | no | host | target) | |
3175 | enable_liboffloadmic=$enableval ;; | |
3176 | *) | |
22e05272 | 3177 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3178 | esac |
3179 | else | |
4b4f2e35 | 3180 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3181 | case "${target}" in |
3182 | *-intelmic-* | *-intelmicemul-*) | |
3183 | enable_liboffloadmic=target | |
3184 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3185 | ;; | |
3186 | *) | |
3187 | enable_liboffloadmic=no | |
3188 | ;; | |
3189 | esac | |
3190 | else | |
3191 | case "${enable_offload_targets}" in | |
3192 | *-intelmic-* | *-intelmicemul-*) | |
3193 | enable_liboffloadmic=host | |
3194 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3195 | ;; | |
3196 | *) | |
3197 | enable_liboffloadmic=no | |
3198 | ;; | |
3199 | esac | |
3200 | fi | |
3201 | fi | |
3202 | ||
3203 | ||
3204 | ||
44a7d18d | 3205 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3206 | if test x$enable_libgomp = x ; then |
953ff289 | 3207 | case "${target}" in |
416ac4d4 | 3208 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3209 | ;; |
8c6d158a | 3210 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3211 | ;; |
b24513a1 | 3212 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3213 | ;; |
cac90078 | 3214 | *-*-darwin* | *-*-aix*) |
953ff289 | 3215 | ;; |
29b1533a | 3216 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3217 | ;; |
953ff289 DN |
3218 | *) |
3219 | noconfigdirs="$noconfigdirs target-libgomp" | |
3220 | ;; | |
3221 | esac | |
27079765 | 3222 | fi |
953ff289 | 3223 | |
48310492 RH |
3224 | # Disable libatomic on unsupported systems. |
3225 | if test -d ${srcdir}/libatomic; then | |
3226 | if test x$enable_libatomic = x; then | |
3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3228 | $as_echo_n "checking for libatomic support... " >&6; } | |
3229 | if (srcdir=${srcdir}/libatomic; \ | |
3230 | . ${srcdir}/configure.tgt; \ | |
3231 | test -n "$UNSUPPORTED") | |
3232 | then | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3234 | $as_echo "no" >&6; } | |
3235 | noconfigdirs="$noconfigdirs target-libatomic" | |
3236 | else | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3238 | $as_echo "yes" >&6; } | |
3239 | fi | |
3240 | fi | |
3241 | fi | |
3242 | ||
5f520819 KY |
3243 | # Disable liboffloadmic on unsupported systems. |
3244 | if test -d ${srcdir}/liboffloadmic; then | |
3245 | if test x$enable_liboffloadmic != xno; then | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3247 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3248 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3249 | . ${srcdir}/configure.tgt; \ | |
3250 | test -n "$UNSUPPORTED") | |
3251 | then | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3253 | $as_echo "no" >&6; } | |
3254 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3255 | else | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3257 | $as_echo "yes" >&6; } | |
3258 | fi | |
3259 | fi | |
3260 | fi | |
3261 | ||
e948157d RH |
3262 | # Disable libitm on unsupported systems. |
3263 | if test -d ${srcdir}/libitm; then | |
3264 | if test x$enable_libitm = x; then | |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3266 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3267 | if (srcdir=${srcdir}/libitm; \ |
3268 | . ${srcdir}/configure.tgt; \ | |
3269 | test -n "$UNSUPPORTED") | |
3270 | then | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3272 | $as_echo "no" >&6; } |
e948157d RH |
3273 | noconfigdirs="$noconfigdirs target-libitm" |
3274 | else | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3276 | $as_echo "yes" >&6; } |
e948157d RH |
3277 | fi |
3278 | fi | |
0a35513e AH |
3279 | fi |
3280 | ||
93bf5390 RH |
3281 | # Disable libsanitizer on unsupported systems. |
3282 | if test -d ${srcdir}/libsanitizer; then | |
3283 | if test x$enable_libsanitizer = x; then | |
3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3285 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3286 | if (srcdir=${srcdir}/libsanitizer; \ | |
3287 | . ${srcdir}/configure.tgt; \ | |
3288 | test -n "$UNSUPPORTED") | |
3289 | then | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3291 | $as_echo "no" >&6; } | |
3292 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3293 | else | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3295 | $as_echo "yes" >&6; } | |
3296 | fi | |
3297 | fi | |
3298 | fi | |
3299 | ||
2077db1b CT |
3300 | # Disable libvtv on unsupported systems. |
3301 | if test -d ${srcdir}/libvtv; then | |
3302 | if test x$enable_libvtv = x; then | |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3304 | $as_echo_n "checking for libvtv support... " >&6; } | |
3305 | if (srcdir=${srcdir}/libvtv; \ | |
3306 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3307 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3308 | then |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3310 | $as_echo "no" >&6; } | |
3311 | noconfigdirs="$noconfigdirs target-libvtv" | |
3312 | else | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3314 | $as_echo "yes" >&6; } | |
3315 | fi | |
3316 | fi | |
3317 | fi | |
3318 | ||
5373cd33 | 3319 | |
f6a24a94 MJ |
3320 | # Disable libhsail-rt on unsupported systems. |
3321 | if test -d ${srcdir}/libhsail-rt; then | |
3322 | if test x$enable_libhsail_rt = x; then | |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3324 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3325 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3326 | . ${srcdir}/configure.tgt; \ | |
3327 | test -n "$UNSUPPORTED") | |
3328 | then | |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3330 | $as_echo "no" >&6; } | |
3331 | unsupported_languages="$unsupported_languages brig" | |
3332 | # This implicitly disables also target-libhsail-rt as it won't | |
3333 | # get added to the build without BRIG FE. | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3336 | $as_echo "yes" >&6; } | |
3337 | fi | |
3338 | fi | |
3339 | fi | |
5373cd33 IE |
3340 | |
3341 | ||
d91491e5 SE |
3342 | # Disable libquadmath for some systems. |
3343 | case "${target}" in | |
e7fae550 DE |
3344 | avr-*-*) |
3345 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3346 | ;; | |
d91491e5 SE |
3347 | # libquadmath is unused on AIX and libquadmath build process use of |
3348 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3349 | powerpc-*-aix* | rs6000-*-aix*) | |
3350 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3351 | ;; | |
3352 | esac | |
3353 | ||
1e9e0e23 JM |
3354 | # Disable libssp for some systems. |
3355 | case "${target}" in | |
3356 | avr-*-*) | |
b318fb4b | 3357 | # No hosted I/O support. |
1e9e0e23 JM |
3358 | noconfigdirs="$noconfigdirs target-libssp" |
3359 | ;; | |
91dfef96 JM |
3360 | bpf-*-*) |
3361 | noconfigdirs="$noconfigdirs target-libssp" | |
3362 | ;; | |
1e9e0e23 JM |
3363 | powerpc-*-aix* | rs6000-*-aix*) |
3364 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3365 | ;; |
8d2af3a2 DD |
3366 | pru-*-*) |
3367 | # No hosted I/O support. | |
3368 | noconfigdirs="$noconfigdirs target-libssp" | |
3369 | ;; | |
85b8555e | 3370 | rl78-*-*) |
7cb62ef1 EB |
3371 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3372 | # doesn't fault for those - instead, it gives a build-time error | |
3373 | # for explicit misaligned loads. | |
85b8555e | 3374 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3375 | ;; |
0969ec7d EB |
3376 | visium-*-*) |
3377 | # No hosted I/O support. | |
3378 | noconfigdirs="$noconfigdirs target-libssp" | |
3379 | ;; | |
1e9e0e23 JM |
3380 | esac |
3381 | ||
1e9e0e23 | 3382 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3383 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3384 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3385 | case "${target}" in | |
3386 | *-*-vxworks*) | |
3387 | # VxWorks uses the Dinkumware C++ library. | |
3388 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3389 | ;; | |
afa3d80e TS |
3390 | amdgcn*-*-*) |
3391 | # Not ported/fails to build when using newlib. | |
3392 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3393 | ;; | |
1873ec0c L |
3394 | arm*-wince-pe*) |
3395 | # the C++ libraries don't build on top of CE's C libraries | |
3396 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3397 | ;; | |
3398 | avr-*-*) | |
3399 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3400 | ;; | |
91dfef96 JM |
3401 | bpf-*-*) |
3402 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3403 | ;; | |
fef939d6 JB |
3404 | ft32-*-*) |
3405 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3406 | ;; | |
1873ec0c L |
3407 | esac |
3408 | fi | |
1e9e0e23 | 3409 | |
91dfef96 JM |
3410 | # Disable C++ on systems where it is known to not work. |
3411 | # For testing, you can override this with --enable-languages=c++. | |
3412 | case ,${enable_languages}, in | |
3413 | *,c++,*) | |
3414 | ;; | |
3415 | *) | |
3416 | case "${target}" in | |
3417 | bpf-*-*) | |
3418 | unsupported_languages="$unsupported_languages c++" | |
3419 | ;; | |
3420 | esac | |
3421 | ;; | |
3422 | esac | |
3423 | ||
3424 | # Disable Objc on systems where it is known to not work. | |
3425 | # For testing, you can override this with --enable-languages=objc. | |
3426 | case ,${enable_languages}, in | |
3427 | *,objc,*) | |
3428 | ;; | |
3429 | *) | |
3430 | case "${target}" in | |
3431 | bpf-*-*) | |
3432 | unsupported_languages="$unsupported_languages objc" | |
3433 | ;; | |
3434 | esac | |
3435 | ;; | |
3436 | esac | |
3437 | ||
260eedb9 IB |
3438 | # Disable D on systems where it is known to not work. |
3439 | # For testing, you can override this with --enable-languages=d. | |
3440 | case ,${enable_languages}, in | |
3441 | *,d,*) | |
3442 | ;; | |
3443 | *) | |
3444 | case "${target}" in | |
4d024c32 | 3445 | *-*-darwin*) |
91dfef96 JM |
3446 | unsupported_languages="$unsupported_languages d" |
3447 | ;; | |
3448 | bpf-*-*) | |
260eedb9 IB |
3449 | unsupported_languages="$unsupported_languages d" |
3450 | ;; | |
3451 | esac | |
3452 | ;; | |
3453 | esac | |
3454 | ||
3455 | # Disable libphobos on unsupported systems. | |
3456 | # For testing, you can override this with --enable-libphobos. | |
3457 | if test -d ${srcdir}/libphobos; then | |
3458 | if test x$enable_libphobos = x; then | |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3460 | $as_echo_n "checking for libphobos support... " >&6; } | |
3461 | if (srcdir=${srcdir}/libphobos; \ | |
3462 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3463 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3464 | then |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3466 | $as_echo "no" >&6; } | |
3467 | noconfigdirs="$noconfigdirs target-libphobos" | |
3468 | else | |
3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3470 | $as_echo "yes" >&6; } | |
3471 | fi | |
3472 | fi | |
3473 | fi | |
3474 | ||
1e9e0e23 JM |
3475 | # Disable Fortran for some systems. |
3476 | case "${target}" in | |
3477 | mmix-*-*) | |
3478 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3479 | unsupported_languages="$unsupported_languages fortran" | |
3480 | ;; | |
91dfef96 JM |
3481 | bpf-*-*) |
3482 | unsupported_languages="$unsupported_languages fortran" | |
3483 | ;; | |
1e9e0e23 JM |
3484 | esac |
3485 | ||
012447ea JJ |
3486 | # Disable libffi for some systems. |
3487 | case "${target}" in | |
3488 | powerpc-*-darwin*) | |
3489 | ;; | |
3490 | i[3456789]86-*-darwin*) | |
3491 | ;; | |
3492 | x86_64-*-darwin[912]*) | |
3493 | ;; | |
3494 | *-*-darwin*) | |
3495 | noconfigdirs="$noconfigdirs target-libffi" | |
3496 | ;; | |
3497 | *-*-netware*) | |
3498 | noconfigdirs="$noconfigdirs target-libffi" | |
3499 | ;; | |
3500 | *-*-phoenix*) | |
3501 | noconfigdirs="$noconfigdirs target-libffi" | |
3502 | ;; | |
3503 | *-*-rtems*) | |
3504 | noconfigdirs="$noconfigdirs target-libffi" | |
3505 | ;; | |
3506 | *-*-tpf*) | |
3507 | noconfigdirs="$noconfigdirs target-libffi" | |
3508 | ;; | |
3509 | *-*-uclinux*) | |
3510 | noconfigdirs="$noconfigdirs target-libffi" | |
3511 | ;; | |
3512 | *-*-vxworks*) | |
3513 | noconfigdirs="$noconfigdirs target-libffi" | |
3514 | ;; | |
b20e7532 AT |
3515 | aarch64*-*-freebsd*) |
3516 | noconfigdirs="$noconfigdirs target-libffi" | |
3517 | ;; | |
012447ea JJ |
3518 | alpha*-*-*vms*) |
3519 | noconfigdirs="$noconfigdirs target-libffi" | |
3520 | ;; | |
3521 | arm*-*-freebsd*) | |
3522 | noconfigdirs="$noconfigdirs target-libffi" | |
3523 | ;; | |
3524 | arm-wince-pe) | |
3525 | noconfigdirs="$noconfigdirs target-libffi" | |
3526 | ;; | |
3527 | arm*-*-symbianelf*) | |
3528 | noconfigdirs="$noconfigdirs target-libffi" | |
3529 | ;; | |
91dfef96 JM |
3530 | bpf-*-*) |
3531 | noconfigdirs="$noconfigdirs target-libffi" | |
3532 | ;; | |
012447ea JJ |
3533 | cris-*-* | crisv32-*-*) |
3534 | case "${target}" in | |
3535 | *-*-linux*) | |
3536 | ;; | |
3537 | *) # See PR46792 regarding target-libffi. | |
3538 | noconfigdirs="$noconfigdirs target-libffi";; | |
3539 | esac | |
3540 | ;; | |
3541 | hppa*64*-*-hpux*) | |
3542 | noconfigdirs="$noconfigdirs target-libffi" | |
3543 | ;; | |
3544 | hppa*-hp-hpux11*) | |
3545 | ;; | |
3546 | hppa*-*-hpux*) | |
3547 | noconfigdirs="$noconfigdirs target-libffi" | |
3548 | ;; | |
3549 | ia64*-*-*vms*) | |
3550 | noconfigdirs="$noconfigdirs target-libffi" | |
3551 | ;; | |
3552 | i[3456789]86-w64-mingw*) | |
3553 | noconfigdirs="$noconfigdirs target-libffi" | |
3554 | ;; | |
3555 | i[3456789]86-*-mingw*) | |
3556 | noconfigdirs="$noconfigdirs target-libffi" | |
3557 | ;; | |
3558 | x86_64-*-mingw*) | |
3559 | noconfigdirs="$noconfigdirs target-libffi" | |
3560 | ;; | |
3561 | mmix-*-*) | |
3562 | noconfigdirs="$noconfigdirs target-libffi" | |
3563 | ;; | |
3564 | powerpc-*-aix*) | |
012447ea JJ |
3565 | ;; |
3566 | rs6000-*-aix*) | |
012447ea JJ |
3567 | ;; |
3568 | ft32-*-*) | |
3569 | noconfigdirs="$noconfigdirs target-libffi" | |
3570 | ;; | |
3571 | *-*-lynxos*) | |
3572 | noconfigdirs="$noconfigdirs target-libffi" | |
3573 | ;; | |
3574 | esac | |
3575 | ||
3576 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3577 | # this in sync with contrib/config-list.mk. | |
3578 | case "${target}" in | |
91dfef96 | 3579 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3580 | unsupported_languages="$unsupported_languages go" |
3581 | ;; | |
3582 | esac | |
3583 | ||
f9d09df0 TT |
3584 | # Only allow gdbserver on some systems. |
3585 | if test -d ${srcdir}/gdbserver; then | |
3586 | if test x$enable_gdbserver = x; then | |
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3588 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3589 | if (srcdir=${srcdir}/gdbserver; \ | |
3590 | . ${srcdir}/configure.srv; \ | |
3591 | test -n "$UNSUPPORTED") | |
3592 | then | |
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3594 | $as_echo "no" >&6; } | |
3595 | noconfigdirs="$noconfigdirs gdbserver" | |
3596 | else | |
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3598 | $as_echo "yes" >&6; } | |
3599 | fi | |
3600 | fi | |
3601 | fi | |
3602 | ||
cdbc9e92 ILT |
3603 | # Disable libgo for some systems where it is known to not work. |
3604 | # For testing, you can easily override this with --enable-libgo. | |
3605 | if test x$enable_libgo = x; then | |
3606 | case "${target}" in | |
3607 | *-*-darwin*) | |
3608 | # PR 46986 | |
3609 | noconfigdirs="$noconfigdirs target-libgo" | |
3610 | ;; | |
3611 | *-*-cygwin* | *-*-mingw*) | |
3612 | noconfigdirs="$noconfigdirs target-libgo" | |
3613 | ;; | |
91dfef96 JM |
3614 | bpf-*-*) |
3615 | noconfigdirs="$noconfigdirs target-libgo" | |
3616 | ;; | |
cdbc9e92 ILT |
3617 | esac |
3618 | fi | |
3619 | ||
c03353e2 RIL |
3620 | # Default libgloss CPU subdirectory. |
3621 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3622 | |
fbcf0dca JM |
3623 | case "${target}" in |
3624 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3625 | libgloss_dir=wince | |
3626 | ;; | |
4dddfc74 YZ |
3627 | aarch64*-*-* ) |
3628 | libgloss_dir=aarch64 | |
3629 | ;; | |
fbcf0dca JM |
3630 | arm*-*-*) |
3631 | libgloss_dir=arm | |
3632 | ;; | |
3633 | cris-*-* | crisv32-*-*) | |
3634 | libgloss_dir=cris | |
3635 | ;; | |
3636 | hppa*-*-*) | |
3637 | libgloss_dir=pa | |
3638 | ;; | |
3639 | i[3456789]86-*-*) | |
3640 | libgloss_dir=i386 | |
3641 | ;; | |
3642 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3643 | libgloss_dir=m68hc11 | |
3644 | ;; | |
3645 | m68*-*-* | fido-*-*) | |
3646 | libgloss_dir=m68k | |
3647 | ;; | |
3648 | mips*-*-*) | |
3649 | libgloss_dir=mips | |
3650 | ;; | |
3651 | powerpc*-*-*) | |
3652 | libgloss_dir=rs6000 | |
3653 | ;; | |
8d2af3a2 DD |
3654 | pru-*-*) |
3655 | libgloss_dir=pru | |
3656 | ;; | |
fbcf0dca JM |
3657 | sparc*-*-*) |
3658 | libgloss_dir=sparc | |
3659 | ;; | |
3660 | esac | |
3661 | ||
6a789d5e | 3662 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3663 | case "${target}" in |
6a789d5e JM |
3664 | alpha*-dec-osf*) |
3665 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3666 | ;; | |
3667 | i[3456789]86-*-linux*) | |
3668 | # This section makes it possible to build newlib natively on linux. | |
3669 | # If we are using a cross compiler then don't configure newlib. | |
3670 | if test x${is_cross_compiler} != xno ; then | |
3671 | noconfigdirs="$noconfigdirs target-newlib" | |
3672 | fi | |
3673 | noconfigdirs="$noconfigdirs target-libgloss" | |
3674 | # If we are not using a cross compiler, do configure newlib. | |
3675 | # Note however, that newlib will only be configured in this situation | |
3676 | # if the --with-newlib option has been given, because otherwise | |
3677 | # 'target-newlib' will appear in skipdirs. | |
3678 | ;; | |
3679 | i[3456789]86-*-rdos*) | |
3680 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3681 | ;; | |
3682 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3683 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3684 | ;; | |
3685 | sparc-*-sunos4*) | |
3686 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3687 | ;; | |
91dfef96 JM |
3688 | bpf-*-*) |
3689 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3690 | ;; | |
6a789d5e JM |
3691 | *-*-aix*) |
3692 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3693 | ;; | |
3694 | *-*-beos*) | |
3695 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3696 | ;; | |
671aa708 | 3697 | *-*-chorusos) |
0036370f | 3698 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3699 | ;; |
6a789d5e JM |
3700 | *-*-dragonfly*) |
3701 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3702 | ;; | |
3703 | *-*-freebsd*) | |
3704 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3705 | ;; | |
3706 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3707 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3708 | ;; | |
3709 | *-*-lynxos*) | |
3710 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3711 | ;; | |
3712 | *-*-mingw*) | |
3713 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3714 | ;; | |
3715 | *-*-netbsd*) | |
3716 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3717 | ;; | |
3718 | *-*-netware*) | |
3719 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3720 | ;; | |
3721 | *-*-tpf*) | |
3722 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3723 | ;; | |
3724 | *-*-uclinux*) | |
3725 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3726 | ;; | |
3727 | *-*-vxworks*) | |
3728 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3729 | ;; | |
3730 | esac | |
3731 | ||
3732 | case "${target}" in | |
3733 | *-*-chorusos) | |
3734 | ;; | |
3be96231 TG |
3735 | aarch64-*-darwin*) |
3736 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3737 | noconfigdirs="$noconfigdirs sim target-rda" | |
3738 | ;; | |
7431c1a1 AS |
3739 | amdgcn*-*-*) |
3740 | ;; | |
3be96231 TG |
3741 | arm-*-darwin*) |
3742 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3743 | noconfigdirs="$noconfigdirs sim target-rda" | |
3744 | ;; | |
75eeae1a | 3745 | powerpc-*-darwin*) |
e1514c3f | 3746 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3747 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3748 | ;; |
354ebf88 RW |
3749 | i[3456789]86-*-darwin*) |
3750 | noconfigdirs="$noconfigdirs ld gprof" | |
3751 | noconfigdirs="$noconfigdirs sim target-rda" | |
3752 | ;; | |
3753 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3754 | noconfigdirs="$noconfigdirs ld gas gprof" |
3755 | noconfigdirs="$noconfigdirs sim target-rda" | |
3756 | ;; | |
42c1cd8a AT |
3757 | *-*-darwin*) |
3758 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3759 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3760 | ;; |
8c6d158a | 3761 | *-*-dragonfly*) |
8c6d158a | 3762 | ;; |
c3f84f61 | 3763 | *-*-freebsd*) |
6de9cd9a DN |
3764 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3765 | && test -f /usr/local/include/gmp.h; then | |
3766 | with_gmp=/usr/local | |
3767 | fi | |
6de9cd9a | 3768 | ;; |
ef4e7569 US |
3769 | *-*-kaos*) |
3770 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3771 | noconfigdirs="$noconfigdirs target-libgloss" |
3772 | ;; | |
671aa708 | 3773 | *-*-netbsd*) |
671aa708 | 3774 | ;; |
61fec9ff | 3775 | *-*-netware*) |
671aa708 | 3776 | ;; |
fd6487af JS |
3777 | *-*-phoenix*) |
3778 | noconfigdirs="$noconfigdirs target-libgloss" | |
3779 | ;; | |
671aa708 | 3780 | *-*-rtems*) |
2909494b | 3781 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3782 | ;; |
a8ba31f2 EC |
3783 | # The tpf target doesn't support gdb yet. |
3784 | *-*-tpf*) | |
6a789d5e | 3785 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3786 | ;; |
5785c0ed | 3787 | *-*-uclinux*) |
6a789d5e | 3788 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3789 | ;; |
671aa708 | 3790 | *-*-vxworks*) |
671aa708 NN |
3791 | ;; |
3792 | alpha*-dec-osf*) | |
3793 | # ld works, but does not support shared libraries. | |
671aa708 | 3794 | # gas doesn't generate exception information. |
6a789d5e | 3795 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3796 | ;; |
3797 | alpha*-*-*vms*) | |
2909494b | 3798 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3799 | ;; |
671aa708 NN |
3800 | alpha*-*-*) |
3801 | # newlib is not 64 bit ready | |
2909494b | 3802 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3803 | ;; |
91dfef96 JM |
3804 | bpf-*-*) |
3805 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3806 | ;; | |
671aa708 | 3807 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3808 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3809 | ;; |
2fd88f4f AK |
3810 | arc*-*-*) |
3811 | noconfigdirs="$noconfigdirs sim" | |
3812 | ;; | |
671aa708 | 3813 | arm-*-pe*) |
2909494b | 3814 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3815 | ;; |
671aa708 | 3816 | arm-*-riscix*) |
0036370f | 3817 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3818 | ;; |
b588ae30 GJL |
3819 | avr-*-*) |
3820 | if test x${with_avrlibc} != xno; then | |
3821 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3822 | fi | |
3823 | ;; | |
671aa708 | 3824 | c4x-*-* | tic4x-*-*) |
0036370f | 3825 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3826 | ;; |
0036370f JM |
3827 | tic54x-*-*) |
3828 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3829 | ;; |
671aa708 | 3830 | d10v-*-*) |
0036370f | 3831 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3832 | ;; |
3833 | d30v-*-*) | |
0036370f | 3834 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3835 | ;; |
3836 | fr30-*-elf*) | |
2909494b | 3837 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3838 | ;; |
a05c2c75 L |
3839 | ft32-*-*) |
3840 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3841 | ;; | |
55f2d967 | 3842 | moxie-*-*) |
a05c2c75 | 3843 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3844 | ;; |
671aa708 | 3845 | h8300*-*-*) |
2909494b | 3846 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3847 | ;; |
3848 | h8500-*-*) | |
0036370f | 3849 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3850 | ;; |
ee6a22df | 3851 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3852 | ;; |
a05c2c75 L |
3853 | hppa*64*-*-hpux*) |
3854 | noconfigdirs="$noconfigdirs gdb" | |
3855 | ;; | |
3856 | hppa*-*-hpux11*) | |
3857 | noconfigdirs="$noconfigdirs gdb ld" | |
3858 | ;; | |
4569f85e | 3859 | hppa*64*-*-linux*) |
671aa708 | 3860 | ;; |
56f8587a | 3861 | hppa*-*-linux*) |
3e732ba0 | 3862 | ;; |
671aa708 | 3863 | hppa*-*-*elf* | \ |
671aa708 NN |
3864 | hppa*-*-lites* | \ |
3865 | hppa*-*-openbsd* | \ | |
3866 | hppa*64*-*-*) | |
671aa708 | 3867 | ;; |
c03353e2 | 3868 | hppa*-*-pro*) |
c03353e2 | 3869 | ;; |
671aa708 | 3870 | hppa*-*-*) |
2909494b | 3871 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3872 | ;; |
fb87ad5d | 3873 | i960-*-*) |
0036370f | 3874 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3875 | ;; |
671aa708 NN |
3876 | ia64*-*-elf*) |
3877 | # No gdb support yet. | |
1bcce263 | 3878 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3879 | ;; |
3880 | ia64*-**-hpux*) | |
5a2931d1 | 3881 | # No ld support yet. |
a05c2c75 | 3882 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3883 | ;; |
52535a64 | 3884 | ia64*-*-*vms*) |
091fe9ca TG |
3885 | # No ld support yet. |
3886 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3887 | ;; |
ef4c4300 | 3888 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3889 | ;; |
3890 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3891 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3892 | ;; |
671aa708 NN |
3893 | *-*-cygwin*) |
3894 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3895 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3896 | # always build newlib if winsup directory is present. |
b91f0a41 | 3897 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3898 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3899 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3900 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3901 | fi |
1c710c3c | 3902 | ;; |
f2a0e225 | 3903 | i[3456789]86-*-pe) |
ebb9f8b0 | 3904 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3905 | ;; |
f2a0e225 | 3906 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3907 | # The linker does not yet know about weak symbols in COFF, |
3908 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3909 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3910 | ;; |
f2a0e225 | 3911 | i[3456789]86-*-sco*) |
0036370f | 3912 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3913 | ;; |
fbdd5d87 | 3914 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3915 | noconfigdirs="$noconfigdirs target-libgloss" |
3916 | ;; | |
f2a0e225 | 3917 | i[3456789]86-*-sysv4*) |
0036370f | 3918 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3919 | ;; |
f2a0e225 | 3920 | i[3456789]86-*-beos*) |
6a789d5e | 3921 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3922 | ;; |
d1f8db0c | 3923 | i[3456789]86-*-rdos*) |
6a789d5e | 3924 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3925 | ;; |
671aa708 | 3926 | mmix-*-*) |
2909494b | 3927 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3928 | ;; |
ab34901f | 3929 | mt-*-*) |
79dd769c AH |
3930 | noconfigdirs="$noconfigdirs sim" |
3931 | ;; | |
58b40a67 FT |
3932 | nfp-*-*) |
3933 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3934 | noconfigdirs="$noconfigdirs $target_libraries" | |
3935 | ;; | |
e6cbe965 SC |
3936 | pdp11-*-*) |
3937 | noconfigdirs="$noconfigdirs gdb gprof" | |
3938 | ;; | |
671aa708 NN |
3939 | powerpc-*-aix*) |
3940 | # copied from rs6000-*-* entry | |
6a789d5e | 3941 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3942 | ;; |
4569f85e | 3943 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3944 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3945 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3946 | # always build newlib. |
3947 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3948 | ;; | |
3949 | # This is temporary until we can link against shared libraries | |
3950 | powerpcle-*-solaris*) | |
0036370f | 3951 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3952 | ;; |
3953 | powerpc-*-beos*) | |
6a789d5e | 3954 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3955 | ;; |
671aa708 | 3956 | rs6000-*-lynxos*) |
6a789d5e | 3957 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3958 | ;; |
3959 | rs6000-*-aix*) | |
6a789d5e | 3960 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3961 | ;; |
3962 | rs6000-*-*) | |
2909494b | 3963 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3964 | ;; |
3965 | m68k-apollo-*) | |
0036370f | 3966 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3967 | ;; |
ca9fe997 | 3968 | microblaze*) |
2909494b | 3969 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3970 | ;; |
d896cc4d | 3971 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3972 | if test x$with_newlib = xyes; then |
3973 | noconfigdirs="$noconfigdirs gprof" | |
3974 | fi | |
d9dced13 | 3975 | ;; |
671aa708 | 3976 | mips*-*-irix5*) |
0036370f | 3977 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3978 | ;; |
3979 | mips*-*-irix6*) | |
2909494b | 3980 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3981 | ;; |
671aa708 | 3982 | mips*-*-bsd*) |
bc98bcc4 | 3983 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3984 | ;; |
671aa708 | 3985 | mips*-*-linux*) |
671aa708 | 3986 | ;; |
bc98bcc4 JBG |
3987 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3988 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3989 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3990 | ;; | |
671aa708 | 3991 | mips*-*-*) |
2909494b | 3992 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3993 | ;; |
738f2522 | 3994 | nvptx*-*-*) |
738f2522 BS |
3995 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3996 | ;; | |
bc6d9014 | 3997 | sh-*-*) |
ea2002ba CB |
3998 | case "${target}" in |
3999 | sh*-*-elf) | |
2909494b | 4000 | ;; |
ea2002ba | 4001 | *) |
2909494b | 4002 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4003 | esac |
671aa708 | 4004 | ;; |
671aa708 | 4005 | sparc-*-sunos4*) |
6a789d5e | 4006 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4007 | use_gnu_ld=no |
4008 | fi | |
4009 | ;; | |
b42f0d7e | 4010 | tic6x-*-*) |
0d557ff8 | 4011 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4012 | ;; |
341c653c | 4013 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4014 | noconfigdirs="$noconfigdirs sim" |
4015 | ;; | |
671aa708 | 4016 | v810-*-*) |
0036370f | 4017 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4018 | ;; |
4019 | vax-*-*) | |
2909494b | 4020 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4021 | ;; |
1fc1d82e MR |
4022 | wasm32-*-*) |
4023 | noconfigdirs="$noconfigdirs ld" | |
4024 | ;; | |
671aa708 | 4025 | esac |
79c06341 | 4026 | |
671aa708 NN |
4027 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4028 | # depends upon some newlib header files. | |
4029 | case "${noconfigdirs}" in | |
4030 | *target-libgloss*) ;; | |
4031 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4032 | esac | |
4033 | ||
671aa708 | 4034 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4035 | host_makefile_frag=/dev/null |
4036 | if test -d ${srcdir}/config ; then | |
4037 | case "${host}" in | |
f2a0e225 | 4038 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4039 | host_makefile_frag="config/mh-djgpp" |
4040 | ;; | |
4041 | *-cygwin*) | |
2a79c47f | 4042 | |
5213506e RW |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4044 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4045 | echo a >cygwin-cat-check |
e25a8c82 | 4046 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4047 | rm cygwin-cat-check |
5213506e RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4049 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4050 | else |
4051 | rm cygwin-cat-check | |
5213506e RW |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4053 | $as_echo "no" >&6; } | |
22e05272 | 4054 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4055 | Please either mount the build directory in binary mode or run the following |
4056 | commands before running any configure script: | |
4057 | set -o igncr | |
4058 | export SHELLOPTS | |
5213506e | 4059 | " "$LINENO" 5 |
2a79c47f NC |
4060 | fi |
4061 | ||
671aa708 NN |
4062 | host_makefile_frag="config/mh-cygwin" |
4063 | ;; | |
c53a18d3 | 4064 | *-mingw*) |
1f5a6b84 | 4065 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4066 | ;; |
cabb9d59 | 4067 | alpha*-linux*) |
13be44ed UB |
4068 | host_makefile_frag="config/mh-alpha-linux" |
4069 | ;; | |
efd41714 | 4070 | hppa*-hp-hpux10*) |
efd41714 | 4071 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4072 | ;; |
111eeb6e | 4073 | hppa*-hp-hpux*) |
efd41714 PB |
4074 | host_makefile_frag="config/mh-pa" |
4075 | ;; | |
4076 | hppa*-*) | |
4077 | host_makefile_frag="config/mh-pa" | |
4078 | ;; | |
d8ed14ce IS |
4079 | *-*-darwin*) |
4080 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 4081 | ;; |
d19bca38 PB |
4082 | powerpc-*-aix*) |
4083 | host_makefile_frag="config/mh-ppc-aix" | |
4084 | ;; | |
4085 | rs6000-*-aix*) | |
4086 | host_makefile_frag="config/mh-ppc-aix" | |
4087 | ;; | |
671aa708 NN |
4088 | esac |
4089 | fi | |
4090 | ||
55ffb5ed | 4091 | if test "${build}" != "${host}" ; then |
0999159b PB |
4092 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4093 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4094 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 4095 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
0999159b | 4096 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4097 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4098 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4099 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4100 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4101 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4102 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4103 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4104 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4105 | else | |
4106 | AR_FOR_BUILD="\$(AR)" | |
4107 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4108 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4109 | CXX_FOR_BUILD="\$(CXX)" |
0999159b | 4110 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4111 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4112 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4113 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4114 | LD_FOR_BUILD="\$(LD)" | |
4115 | NM_FOR_BUILD="\$(NM)" | |
4116 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4117 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4118 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4119 | fi |
4120 | ||
4121 | ac_ext=c | |
1c710c3c DJ |
4122 | ac_cpp='$CPP $CPPFLAGS' |
4123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4126 | if test -n "$ac_tool_prefix"; then | |
4127 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4128 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4130 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4131 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4132 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4133 | else |
4134 | if test -n "$CC"; then | |
4135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4136 | else | |
4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4138 | for as_dir in $PATH | |
4139 | do | |
4140 | IFS=$as_save_IFS | |
4141 | test -z "$as_dir" && as_dir=. | |
5213506e | 4142 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4144 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4146 | break 2 |
4147 | fi | |
4148 | done | |
5213506e RW |
4149 | done |
4150 | IFS=$as_save_IFS | |
1c710c3c DJ |
4151 | |
4152 | fi | |
4153 | fi | |
4154 | CC=$ac_cv_prog_CC | |
4155 | if test -n "$CC"; then | |
5213506e RW |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4157 | $as_echo "$CC" >&6; } | |
1c710c3c | 4158 | else |
5213506e RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4160 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4161 | fi |
4162 | ||
5213506e | 4163 | |
1c710c3c DJ |
4164 | fi |
4165 | if test -z "$ac_cv_prog_CC"; then | |
4166 | ac_ct_CC=$CC | |
fb0103e5 RG |
4167 | # Extract the first word of "gcc", so it can be a program name with args. |
4168 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4170 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4171 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4172 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4173 | else |
4174 | if test -n "$ac_ct_CC"; then | |
4175 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4176 | else | |
4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4178 | for as_dir in $PATH | |
4179 | do | |
4180 | IFS=$as_save_IFS | |
4181 | test -z "$as_dir" && as_dir=. | |
5213506e | 4182 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4184 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4186 | break 2 |
4187 | fi | |
4188 | done | |
5213506e RW |
4189 | done |
4190 | IFS=$as_save_IFS | |
1c710c3c DJ |
4191 | |
4192 | fi | |
4193 | fi | |
4194 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4195 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4197 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4198 | else |
5213506e RW |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4200 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4201 | fi |
4202 | ||
5213506e RW |
4203 | if test "x$ac_ct_CC" = x; then |
4204 | CC="" | |
4205 | else | |
4206 | case $cross_compiling:$ac_tool_warned in | |
4207 | yes:) | |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4209 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4210 | ac_tool_warned=yes ;; | |
4211 | esac | |
4212 | CC=$ac_ct_CC | |
4213 | fi | |
1c710c3c DJ |
4214 | else |
4215 | CC="$ac_cv_prog_CC" | |
4216 | fi | |
4217 | ||
4218 | if test -z "$CC"; then | |
5213506e RW |
4219 | if test -n "$ac_tool_prefix"; then |
4220 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4221 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4223 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4224 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4225 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4226 | else |
4227 | if test -n "$CC"; then | |
4228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4229 | else | |
1c710c3c DJ |
4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4231 | for as_dir in $PATH | |
4232 | do | |
4233 | IFS=$as_save_IFS | |
4234 | test -z "$as_dir" && as_dir=. | |
5213506e | 4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4237 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4239 | break 2 |
4240 | fi | |
4241 | done | |
5213506e RW |
4242 | done |
4243 | IFS=$as_save_IFS | |
1c710c3c | 4244 | |
0b0dc272 | 4245 | fi |
0b0dc272 | 4246 | fi |
1c710c3c | 4247 | CC=$ac_cv_prog_CC |
af71363e | 4248 | if test -n "$CC"; then |
5213506e RW |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4250 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4251 | else |
5213506e RW |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4253 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4254 | fi |
4255 | ||
2aeb72e9 | 4256 | |
5213506e | 4257 | fi |
1c710c3c | 4258 | fi |
55ffb5ed NN |
4259 | if test -z "$CC"; then |
4260 | # Extract the first word of "cc", so it can be a program name with args. | |
4261 | set dummy cc; ac_word=$2 | |
5213506e RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4263 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4264 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4265 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4266 | else |
4267 | if test -n "$CC"; then | |
4268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4269 | else | |
0b0dc272 | 4270 | ac_prog_rejected=no |
1c710c3c DJ |
4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4272 | for as_dir in $PATH | |
4273 | do | |
4274 | IFS=$as_save_IFS | |
4275 | test -z "$as_dir" && as_dir=. | |
5213506e | 4276 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4278 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4279 | ac_prog_rejected=yes | |
4280 | continue | |
4281 | fi | |
4282 | ac_cv_prog_CC="cc" | |
5213506e | 4283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4284 | break 2 |
4285 | fi | |
4286 | done | |
5213506e RW |
4287 | done |
4288 | IFS=$as_save_IFS | |
1c710c3c | 4289 | |
55ffb5ed NN |
4290 | if test $ac_prog_rejected = yes; then |
4291 | # We found a bogon in the path, so make sure we never use it. | |
4292 | set dummy $ac_cv_prog_CC | |
4293 | shift | |
1c710c3c | 4294 | if test $# != 0; then |
55ffb5ed NN |
4295 | # We chose a different compiler from the bogus one. |
4296 | # However, it has the same basename, so the bogon will be chosen | |
4297 | # first if we set CC to just the basename; use the full file name. | |
4298 | shift | |
1c710c3c | 4299 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4300 | fi |
4301 | fi | |
4302 | fi | |
4303 | fi | |
1c710c3c | 4304 | CC=$ac_cv_prog_CC |
55ffb5ed | 4305 | if test -n "$CC"; then |
5213506e RW |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4307 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4308 | else |
5213506e RW |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4310 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4311 | fi |
4312 | ||
5213506e | 4313 | |
1c710c3c DJ |
4314 | fi |
4315 | if test -z "$CC"; then | |
4316 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4317 | for ac_prog in cl.exe |
1c710c3c DJ |
4318 | do |
4319 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4320 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4322 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4323 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4324 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4325 | else |
4326 | if test -n "$CC"; then | |
4327 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4328 | else | |
1c710c3c DJ |
4329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4330 | for as_dir in $PATH | |
4331 | do | |
4332 | IFS=$as_save_IFS | |
4333 | test -z "$as_dir" && as_dir=. | |
5213506e | 4334 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4336 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4338 | break 2 |
4339 | fi | |
4340 | done | |
5213506e RW |
4341 | done |
4342 | IFS=$as_save_IFS | |
1c710c3c | 4343 | |
55ffb5ed NN |
4344 | fi |
4345 | fi | |
1c710c3c | 4346 | CC=$ac_cv_prog_CC |
55ffb5ed | 4347 | if test -n "$CC"; then |
5213506e RW |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4349 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4350 | else |
5213506e RW |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4352 | $as_echo "no" >&6; } | |
fb0103e5 | 4353 | fi |
af71363e | 4354 | |
5213506e | 4355 | |
1c710c3c DJ |
4356 | test -n "$CC" && break |
4357 | done | |
af71363e | 4358 | fi |
1c710c3c DJ |
4359 | if test -z "$CC"; then |
4360 | ac_ct_CC=$CC | |
5213506e | 4361 | for ac_prog in cl.exe |
1c710c3c DJ |
4362 | do |
4363 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4364 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4366 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4367 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4368 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4369 | else |
1c710c3c DJ |
4370 | if test -n "$ac_ct_CC"; then |
4371 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4372 | else |
1c710c3c DJ |
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4374 | for as_dir in $PATH | |
4375 | do | |
4376 | IFS=$as_save_IFS | |
4377 | test -z "$as_dir" && as_dir=. | |
5213506e | 4378 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4380 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4382 | break 2 |
4383 | fi | |
4384 | done | |
5213506e RW |
4385 | done |
4386 | IFS=$as_save_IFS | |
1c710c3c | 4387 | |
af71363e AS |
4388 | fi |
4389 | fi | |
1c710c3c DJ |
4390 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4391 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4393 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4394 | else |
5213506e RW |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4396 | $as_echo "no" >&6; } | |
af71363e | 4397 | fi |
0b0dc272 | 4398 | |
5213506e | 4399 | |
1c710c3c DJ |
4400 | test -n "$ac_ct_CC" && break |
4401 | done | |
4402 | ||
5213506e RW |
4403 | if test "x$ac_ct_CC" = x; then |
4404 | CC="" | |
4405 | else | |
4406 | case $cross_compiling:$ac_tool_warned in | |
4407 | yes:) | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4409 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4410 | ac_tool_warned=yes ;; | |
4411 | esac | |
4412 | CC=$ac_ct_CC | |
4413 | fi | |
1c710c3c DJ |
4414 | fi |
4415 | ||
4416 | fi | |
4417 | ||
4418 | ||
5213506e RW |
4419 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4421 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4422 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4423 | |
4424 | # Provide some information about the compiler. | |
5213506e RW |
4425 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4426 | set X $ac_compile | |
4427 | ac_compiler=$2 | |
4428 | for ac_option in --version -v -V -qversion; do | |
4429 | { { ac_try="$ac_compiler $ac_option >&5" | |
4430 | case "(($ac_try" in | |
4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4432 | *) ac_try_echo=$ac_try;; | |
4433 | esac | |
4434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4435 | $as_echo "$ac_try_echo"; } >&5 | |
4436 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4437 | ac_status=$? |
5213506e RW |
4438 | if test -s conftest.err; then |
4439 | sed '10a\ | |
4440 | ... rest of stderr output deleted ... | |
4441 | 10q' conftest.err >conftest.er1 | |
4442 | cat conftest.er1 >&5 | |
5213506e | 4443 | fi |
22e05272 | 4444 | rm -f conftest.er1 conftest.err |
5213506e RW |
4445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4446 | test $ac_status = 0; } | |
4447 | done | |
1c710c3c | 4448 | |
5213506e | 4449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4450 | /* end confdefs.h. */ |
4451 | ||
4452 | int | |
4453 | main () | |
4454 | { | |
4455 | ||
4456 | ; | |
4457 | return 0; | |
4458 | } | |
4459 | _ACEOF | |
4460 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4461 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4462 | # Try to create an executable without -o first, disregard a.out. |
4463 | # It will help us diagnose broken compilers, and finding out an intuition | |
4464 | # of exeext. | |
22e05272 JM |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4466 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4467 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4468 | ||
4469 | # The possible output files: | |
4470 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4471 | ||
4472 | ac_rmfiles= | |
4473 | for ac_file in $ac_files | |
4474 | do | |
4475 | case $ac_file in | |
4476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4477 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4478 | esac | |
4479 | done | |
4480 | rm -f $ac_rmfiles | |
4481 | ||
4482 | if { { ac_try="$ac_link_default" | |
4483 | case "(($ac_try" in | |
4484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4485 | *) ac_try_echo=$ac_try;; | |
4486 | esac | |
4487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4488 | $as_echo "$ac_try_echo"; } >&5 | |
4489 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4490 | ac_status=$? |
5213506e RW |
4491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4492 | test $ac_status = 0; }; then : | |
4493 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4494 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4495 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4496 | # so that the user can short-circuit this test for compilers unknown to | |
4497 | # Autoconf. | |
4498 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4499 | do |
4500 | test -f "$ac_file" || continue | |
4501 | case $ac_file in | |
5213506e | 4502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4503 | ;; |
4504 | [ab].out ) | |
4505 | # We found the default executable, but exeext='' is most | |
4506 | # certainly right. | |
4507 | break;; | |
4508 | *.* ) | |
5213506e RW |
4509 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4510 | then :; else | |
4511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4512 | fi | |
4513 | # We set ac_cv_exeext here because the later test for it is not | |
4514 | # safe: cross compilers may not add the suffix if given an `-o' | |
4515 | # argument, so we may need to know it at that point already. | |
4516 | # Even if this section looks crufty: it has the advantage of | |
4517 | # actually working. | |
1c710c3c DJ |
4518 | break;; |
4519 | * ) | |
4520 | break;; | |
4521 | esac | |
4522 | done | |
5213506e RW |
4523 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4524 | ||
1c710c3c | 4525 | else |
5213506e RW |
4526 | ac_file='' |
4527 | fi | |
5213506e | 4528 | if test -z "$ac_file"; then : |
22e05272 JM |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4530 | $as_echo "no" >&6; } | |
4531 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
4533 | ||
5213506e RW |
4534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4536 | as_fn_error 77 "C compiler cannot create executables |
4537 | See \`config.log' for more details" "$LINENO" 5; } | |
4538 | else | |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4540 | $as_echo "yes" >&6; } | |
1c710c3c | 4541 | fi |
22e05272 JM |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4543 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4545 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4546 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4547 | |
22e05272 | 4548 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4549 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4551 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4552 | if { { ac_try="$ac_link" | |
4553 | case "(($ac_try" in | |
4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4555 | *) ac_try_echo=$ac_try;; | |
4556 | esac | |
4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4558 | $as_echo "$ac_try_echo"; } >&5 | |
4559 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4560 | ac_status=$? |
5213506e RW |
4561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4562 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4563 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4564 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4565 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4566 | # `rm'. | |
4567 | for ac_file in conftest.exe conftest conftest.*; do | |
4568 | test -f "$ac_file" || continue | |
4569 | case $ac_file in | |
5213506e | 4570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4571 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4572 | break;; |
4573 | * ) break;; | |
4574 | esac | |
4575 | done | |
af71363e | 4576 | else |
5213506e RW |
4577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4579 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4580 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4581 | fi |
22e05272 | 4582 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4584 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4585 | |
4586 | rm -f conftest.$ac_ext | |
4587 | EXEEXT=$ac_cv_exeext | |
4588 | ac_exeext=$EXEEXT | |
22e05272 JM |
4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4590 | /* end confdefs.h. */ | |
4591 | #include <stdio.h> | |
4592 | int | |
4593 | main () | |
4594 | { | |
4595 | FILE *f = fopen ("conftest.out", "w"); | |
4596 | return ferror (f) || fclose (f) != 0; | |
4597 | ||
4598 | ; | |
4599 | return 0; | |
4600 | } | |
4601 | _ACEOF | |
4602 | ac_clean_files="$ac_clean_files conftest.out" | |
4603 | # Check that the compiler produces executables we can run. If not, either | |
4604 | # the compiler is broken, or we cross compile. | |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4606 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4607 | if test "$cross_compiling" != yes; then | |
4608 | { { ac_try="$ac_link" | |
4609 | case "(($ac_try" in | |
4610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4611 | *) ac_try_echo=$ac_try;; | |
4612 | esac | |
4613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4614 | $as_echo "$ac_try_echo"; } >&5 | |
4615 | (eval "$ac_link") 2>&5 | |
4616 | ac_status=$? | |
4617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4618 | test $ac_status = 0; } | |
4619 | if { ac_try='./conftest$ac_cv_exeext' | |
4620 | { { case "(($ac_try" in | |
4621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4622 | *) ac_try_echo=$ac_try;; | |
4623 | esac | |
4624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4625 | $as_echo "$ac_try_echo"; } >&5 | |
4626 | (eval "$ac_try") 2>&5 | |
4627 | ac_status=$? | |
4628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4629 | test $ac_status = 0; }; }; then | |
4630 | cross_compiling=no | |
4631 | else | |
4632 | if test "$cross_compiling" = maybe; then | |
4633 | cross_compiling=yes | |
4634 | else | |
4635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4637 | as_fn_error $? "cannot run C compiled programs. | |
4638 | If you meant to cross compile, use \`--host'. | |
4639 | See \`config.log' for more details" "$LINENO" 5; } | |
4640 | fi | |
4641 | fi | |
4642 | fi | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4644 | $as_echo "$cross_compiling" >&6; } | |
4645 | ||
4646 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4647 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4649 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4650 | if ${ac_cv_objext+:} false; then : |
5213506e | 4651 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4652 | else |
5213506e | 4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4654 | /* end confdefs.h. */ |
4655 | ||
4656 | int | |
4657 | main () | |
4658 | { | |
4659 | ||
4660 | ; | |
4661 | return 0; | |
4662 | } | |
4663 | _ACEOF | |
4664 | rm -f conftest.o conftest.obj | |
5213506e RW |
4665 | if { { ac_try="$ac_compile" |
4666 | case "(($ac_try" in | |
4667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4668 | *) ac_try_echo=$ac_try;; | |
4669 | esac | |
4670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4671 | $as_echo "$ac_try_echo"; } >&5 | |
4672 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4673 | ac_status=$? |
5213506e RW |
4674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4675 | test $ac_status = 0; }; then : | |
4676 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4677 | test -f "$ac_file" || continue; | |
1c710c3c | 4678 | case $ac_file in |
5213506e | 4679 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4680 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4681 | break;; | |
4682 | esac | |
4683 | done | |
4684 | else | |
5213506e | 4685 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4686 | sed 's/^/| /' conftest.$ac_ext >&5 |
4687 | ||
5213506e RW |
4688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4690 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4691 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4692 | fi |
1c710c3c DJ |
4693 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4694 | fi | |
5213506e RW |
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4696 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4697 | OBJEXT=$ac_cv_objext |
4698 | ac_objext=$OBJEXT | |
5213506e RW |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4700 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4701 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4702 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4703 | else |
5213506e | 4704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4705 | /* end confdefs.h. */ |
4706 | ||
4707 | int | |
4708 | main () | |
4709 | { | |
4710 | #ifndef __GNUC__ | |
4711 | choke me | |
4712 | #endif | |
4713 | ||
4714 | ; | |
4715 | return 0; | |
4716 | } | |
4717 | _ACEOF | |
5213506e | 4718 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4719 | ac_compiler_gnu=yes |
4720 | else | |
5213506e | 4721 | ac_compiler_gnu=no |
1c710c3c | 4722 | fi |
5213506e | 4723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4724 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4725 | ||
4726 | fi | |
5213506e RW |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4728 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4729 | if test $ac_compiler_gnu = yes; then | |
4730 | GCC=yes | |
4731 | else | |
4732 | GCC= | |
4733 | fi | |
1c710c3c DJ |
4734 | ac_test_CFLAGS=${CFLAGS+set} |
4735 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4737 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4738 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4739 | $as_echo_n "(cached) " >&6 |
4740 | else | |
4741 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4742 | ac_c_werror_flag=yes | |
4743 | ac_cv_prog_cc_g=no | |
4744 | CFLAGS="-g" | |
4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4746 | /* end confdefs.h. */ |
4747 | ||
4748 | int | |
4749 | main () | |
4750 | { | |
4751 | ||
4752 | ; | |
4753 | return 0; | |
4754 | } | |
4755 | _ACEOF | |
5213506e | 4756 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4757 | ac_cv_prog_cc_g=yes |
4758 | else | |
5213506e RW |
4759 | CFLAGS="" |
4760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4761 | /* end confdefs.h. */ | |
4762 | ||
4763 | int | |
4764 | main () | |
4765 | { | |
4766 | ||
4767 | ; | |
4768 | return 0; | |
4769 | } | |
4770 | _ACEOF | |
4771 | if ac_fn_c_try_compile "$LINENO"; then : | |
4772 | ||
4773 | else | |
4774 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4775 | CFLAGS="-g" | |
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4777 | /* end confdefs.h. */ | |
af71363e | 4778 | |
5213506e RW |
4779 | int |
4780 | main () | |
4781 | { | |
4782 | ||
4783 | ; | |
4784 | return 0; | |
4785 | } | |
4786 | _ACEOF | |
4787 | if ac_fn_c_try_compile "$LINENO"; then : | |
4788 | ac_cv_prog_cc_g=yes | |
4789 | fi | |
4790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4791 | fi |
5213506e | 4792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4793 | fi |
5213506e RW |
4794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4795 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4796 | fi | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4798 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4799 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4800 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4801 | elif test $ac_cv_prog_cc_g = yes; then |
4802 | if test "$GCC" = yes; then | |
4803 | CFLAGS="-g -O2" | |
4804 | else | |
4805 | CFLAGS="-g" | |
4806 | fi | |
4807 | else | |
4808 | if test "$GCC" = yes; then | |
4809 | CFLAGS="-O2" | |
4810 | else | |
4811 | CFLAGS= | |
4812 | fi | |
4813 | fi | |
5213506e RW |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4815 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4816 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4817 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4818 | else |
5213506e | 4819 | ac_cv_prog_cc_c89=no |
1c710c3c | 4820 | ac_save_CC=$CC |
5213506e | 4821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4822 | /* end confdefs.h. */ |
4823 | #include <stdarg.h> | |
4824 | #include <stdio.h> | |
22e05272 | 4825 | struct stat; |
1c710c3c DJ |
4826 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4827 | struct buf { int x; }; | |
4828 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4829 | static char *e (p, i) | |
4830 | char **p; | |
4831 | int i; | |
4832 | { | |
4833 | return p[i]; | |
4834 | } | |
4835 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4836 | { | |
4837 | char *s; | |
4838 | va_list v; | |
4839 | va_start (v,p); | |
4840 | s = g (p, va_arg (v,int)); | |
4841 | va_end (v); | |
4842 | return s; | |
4843 | } | |
4844 | ||
4845 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4846 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4847 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4848 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4849 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4850 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4851 | that's true only with -std. */ |
1c710c3c DJ |
4852 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4853 | ||
5213506e RW |
4854 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4855 | inside strings and character constants. */ | |
4856 | #define FOO(x) 'x' | |
4857 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4858 | ||
1c710c3c DJ |
4859 | int test (int i, double x); |
4860 | struct s1 {int (*f) (int a);}; | |
4861 | struct s2 {int (*f) (double a);}; | |
4862 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4863 | int argc; | |
4864 | char **argv; | |
4865 | int | |
4866 | main () | |
4867 | { | |
4868 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4869 | ; | |
4870 | return 0; | |
4871 | } | |
4872 | _ACEOF | |
5213506e RW |
4873 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4874 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4875 | do |
4876 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4877 | if ac_fn_c_try_compile "$LINENO"; then : |
4878 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4879 | fi |
5213506e RW |
4880 | rm -f core conftest.err conftest.$ac_objext |
4881 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4882 | done |
5213506e | 4883 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4884 | CC=$ac_save_CC |
4885 | ||
4886 | fi | |
5213506e RW |
4887 | # AC_CACHE_VAL |
4888 | case "x$ac_cv_prog_cc_c89" in | |
4889 | x) | |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4891 | $as_echo "none needed" >&6; } ;; | |
4892 | xno) | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4894 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4895 | *) |
5213506e RW |
4896 | CC="$CC $ac_cv_prog_cc_c89" |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4898 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4899 | esac |
5213506e | 4900 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4901 | |
2aeb72e9 DD |
4902 | fi |
4903 | ||
2aeb72e9 DD |
4904 | ac_ext=c |
4905 | ac_cpp='$CPP $CPPFLAGS' | |
4906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4909 | ||
5213506e | 4910 | ac_ext=cpp |
2aeb72e9 DD |
4911 | ac_cpp='$CXXCPP $CPPFLAGS' |
4912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4915 | if test -z "$CXX"; then |
4916 | if test -n "$CCC"; then | |
4917 | CXX=$CCC | |
4918 | else | |
4919 | if test -n "$ac_tool_prefix"; then | |
4920 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4921 | do |
4922 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4923 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4925 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4926 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 4927 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
4928 | else |
4929 | if test -n "$CXX"; then | |
4930 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4931 | else | |
4932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4933 | for as_dir in $PATH | |
4934 | do | |
4935 | IFS=$as_save_IFS | |
4936 | test -z "$as_dir" && as_dir=. | |
5213506e | 4937 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 4939 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4941 | break 2 |
4942 | fi | |
4943 | done | |
5213506e RW |
4944 | done |
4945 | IFS=$as_save_IFS | |
55ffb5ed | 4946 | |
c3a86da9 DJ |
4947 | fi |
4948 | fi | |
4949 | CXX=$ac_cv_prog_CXX | |
4950 | if test -n "$CXX"; then | |
5213506e RW |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4952 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4953 | else |
5213506e RW |
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4955 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4956 | fi |
4957 | ||
5213506e | 4958 | |
c3a86da9 DJ |
4959 | test -n "$CXX" && break |
4960 | done | |
4961 | fi | |
4962 | if test -z "$CXX"; then | |
4963 | ac_ct_CXX=$CXX | |
5213506e | 4964 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4965 | do |
4966 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4967 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4969 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4970 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 4971 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
4972 | else |
4973 | if test -n "$ac_ct_CXX"; then | |
4974 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4975 | else | |
4976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4977 | for as_dir in $PATH | |
4978 | do | |
4979 | IFS=$as_save_IFS | |
4980 | test -z "$as_dir" && as_dir=. | |
5213506e | 4981 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 4983 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4985 | break 2 |
4986 | fi | |
4987 | done | |
5213506e RW |
4988 | done |
4989 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4990 | |
4991 | fi | |
4992 | fi | |
4993 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4994 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4996 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4997 | else |
5213506e RW |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4999 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5000 | fi |
5001 | ||
5213506e | 5002 | |
c3a86da9 DJ |
5003 | test -n "$ac_ct_CXX" && break |
5004 | done | |
c3a86da9 | 5005 | |
5213506e RW |
5006 | if test "x$ac_ct_CXX" = x; then |
5007 | CXX="g++" | |
5008 | else | |
5009 | case $cross_compiling:$ac_tool_warned in | |
5010 | yes:) | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5012 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5013 | ac_tool_warned=yes ;; | |
5014 | esac | |
5015 | CXX=$ac_ct_CXX | |
5016 | fi | |
c3a86da9 DJ |
5017 | fi |
5018 | ||
5213506e RW |
5019 | fi |
5020 | fi | |
c3a86da9 | 5021 | # Provide some information about the compiler. |
5213506e RW |
5022 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5023 | set X $ac_compile | |
5024 | ac_compiler=$2 | |
5025 | for ac_option in --version -v -V -qversion; do | |
5026 | { { ac_try="$ac_compiler $ac_option >&5" | |
5027 | case "(($ac_try" in | |
5028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5029 | *) ac_try_echo=$ac_try;; | |
5030 | esac | |
5031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5032 | $as_echo "$ac_try_echo"; } >&5 | |
5033 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5034 | ac_status=$? |
5213506e RW |
5035 | if test -s conftest.err; then |
5036 | sed '10a\ | |
5037 | ... rest of stderr output deleted ... | |
5038 | 10q' conftest.err >conftest.er1 | |
5039 | cat conftest.er1 >&5 | |
5213506e | 5040 | fi |
22e05272 | 5041 | rm -f conftest.er1 conftest.err |
5213506e RW |
5042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5043 | test $ac_status = 0; } | |
5044 | done | |
c3a86da9 | 5045 | |
5213506e RW |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5047 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5048 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5049 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5050 | else |
5213506e | 5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5052 | /* end confdefs.h. */ |
5053 | ||
5054 | int | |
5055 | main () | |
5056 | { | |
5057 | #ifndef __GNUC__ | |
5058 | choke me | |
5059 | #endif | |
5060 | ||
5061 | ; | |
5062 | return 0; | |
5063 | } | |
5064 | _ACEOF | |
5213506e | 5065 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5066 | ac_compiler_gnu=yes |
5067 | else | |
5213506e | 5068 | ac_compiler_gnu=no |
c3a86da9 | 5069 | fi |
5213506e | 5070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5071 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5072 | ||
5073 | fi | |
5213506e RW |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5075 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5076 | if test $ac_compiler_gnu = yes; then | |
5077 | GXX=yes | |
5078 | else | |
5079 | GXX= | |
5080 | fi | |
c3a86da9 DJ |
5081 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5082 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5084 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5085 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5086 | $as_echo_n "(cached) " >&6 |
5087 | else | |
5088 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5089 | ac_cxx_werror_flag=yes | |
5090 | ac_cv_prog_cxx_g=no | |
5091 | CXXFLAGS="-g" | |
5092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5093 | /* end confdefs.h. */ |
5094 | ||
5095 | int | |
5096 | main () | |
5097 | { | |
5098 | ||
5099 | ; | |
5100 | return 0; | |
5101 | } | |
5102 | _ACEOF | |
5213506e | 5103 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5104 | ac_cv_prog_cxx_g=yes |
5105 | else | |
5213506e RW |
5106 | CXXFLAGS="" |
5107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5108 | /* end confdefs.h. */ |
5213506e | 5109 | |
c3a86da9 DJ |
5110 | int |
5111 | main () | |
5112 | { | |
5213506e | 5113 | |
c3a86da9 DJ |
5114 | ; |
5115 | return 0; | |
5116 | } | |
5117 | _ACEOF | |
5213506e | 5118 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5119 | |
5213506e RW |
5120 | else |
5121 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5122 | CXXFLAGS="-g" | |
5123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5124 | /* end confdefs.h. */ |
5213506e | 5125 | |
c3a86da9 DJ |
5126 | int |
5127 | main () | |
5128 | { | |
5213506e | 5129 | |
c3a86da9 DJ |
5130 | ; |
5131 | return 0; | |
5132 | } | |
5133 | _ACEOF | |
5213506e RW |
5134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5135 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5136 | fi |
5213506e RW |
5137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5138 | fi | |
5139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5140 | fi | |
5141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5142 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5143 | fi | |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5145 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5146 | if test "$ac_test_CXXFLAGS" = set; then | |
5147 | CXXFLAGS=$ac_save_CXXFLAGS | |
5148 | elif test $ac_cv_prog_cxx_g = yes; then | |
5149 | if test "$GXX" = yes; then | |
5150 | CXXFLAGS="-g -O2" | |
5151 | else | |
5152 | CXXFLAGS="-g" | |
5153 | fi | |
5154 | else | |
5155 | if test "$GXX" = yes; then | |
5156 | CXXFLAGS="-O2" | |
5157 | else | |
5158 | CXXFLAGS= | |
5159 | fi | |
c3a86da9 | 5160 | fi |
c3a86da9 DJ |
5161 | ac_ext=c |
5162 | ac_cpp='$CPP $CPPFLAGS' | |
5163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5166 | ||
5167 | ||
5168 | # We must set the default linker to the linker used by gcc for the correct | |
5169 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5170 | # set the LD default to the ld used by gcc. | |
5171 | if test -z "$LD"; then | |
5172 | if test "$GCC" = yes; then | |
5173 | case $build in | |
5174 | *-*-mingw*) | |
5175 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5176 | *) | |
5177 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5178 | esac | |
5179 | case $gcc_prog_ld in | |
5180 | # Accept absolute paths. | |
5181 | [\\/]* | [A-Za-z]:[\\/]*) | |
5182 | LD="$gcc_prog_ld" ;; | |
5183 | esac | |
5184 | fi | |
23f6b2f9 PB |
5185 | fi |
5186 | ||
0b21f5d3 EB |
5187 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5188 | have_static_libs=no | |
5189 | if test "$GCC" = yes; then | |
5190 | saved_LDFLAGS="$LDFLAGS" | |
5191 | ||
5192 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5194 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5195 | ac_ext=cpp | |
5196 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5197 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5198 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5199 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5200 | ||
5201 | ||
5202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5203 | /* end confdefs.h. */ | |
0d6414b2 EB |
5204 | |
5205 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5206 | #error -static-libstdc++ not implemented | |
5207 | #endif | |
0b21f5d3 EB |
5208 | int main() {} |
5209 | _ACEOF | |
5210 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5212 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5213 | else | |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5215 | $as_echo "no" >&6; } | |
5216 | fi | |
5217 | rm -f core conftest.err conftest.$ac_objext \ | |
5218 | conftest$ac_exeext conftest.$ac_ext | |
5219 | ac_ext=c | |
5220 | ac_cpp='$CPP $CPPFLAGS' | |
5221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5224 | ||
5225 | ||
5226 | LDFLAGS="$saved_LDFLAGS" | |
5227 | fi | |
5228 | ||
23f6b2f9 PB |
5229 | |
5230 | ||
55ffb5ed | 5231 | |
1c710c3c DJ |
5232 | if test -n "$ac_tool_prefix"; then |
5233 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5234 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5236 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5237 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5238 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5239 | else |
5240 | if test -n "$GNATBIND"; then | |
5241 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5242 | else | |
1c710c3c DJ |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5244 | for as_dir in $PATH | |
5245 | do | |
5246 | IFS=$as_save_IFS | |
5247 | test -z "$as_dir" && as_dir=. | |
5213506e | 5248 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5250 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5252 | break 2 |
5253 | fi | |
5254 | done | |
5213506e RW |
5255 | done |
5256 | IFS=$as_save_IFS | |
1c710c3c | 5257 | |
55ffb5ed NN |
5258 | fi |
5259 | fi | |
1c710c3c | 5260 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5261 | if test -n "$GNATBIND"; then |
5213506e RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5263 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5264 | else |
5213506e RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5266 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5267 | fi |
5268 | ||
5213506e | 5269 | |
1c710c3c | 5270 | fi |
55ffb5ed | 5271 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5272 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5273 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5274 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5276 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5277 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5278 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5279 | else |
1c710c3c DJ |
5280 | if test -n "$ac_ct_GNATBIND"; then |
5281 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5282 | else |
1c710c3c DJ |
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5284 | for as_dir in $PATH | |
5285 | do | |
5286 | IFS=$as_save_IFS | |
5287 | test -z "$as_dir" && as_dir=. | |
5213506e | 5288 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5290 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5292 | break 2 |
5293 | fi | |
5294 | done | |
5213506e RW |
5295 | done |
5296 | IFS=$as_save_IFS | |
1c710c3c | 5297 | |
55ffb5ed NN |
5298 | fi |
5299 | fi | |
1c710c3c DJ |
5300 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5301 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5303 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5304 | else |
5213506e RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5306 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5307 | fi |
5308 | ||
5213506e RW |
5309 | if test "x$ac_ct_GNATBIND" = x; then |
5310 | GNATBIND="no" | |
5311 | else | |
5312 | case $cross_compiling:$ac_tool_warned in | |
5313 | yes:) | |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5316 | ac_tool_warned=yes ;; | |
5317 | esac | |
5318 | GNATBIND=$ac_ct_GNATBIND | |
5319 | fi | |
55ffb5ed | 5320 | else |
1c710c3c | 5321 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5322 | fi |
5323 | ||
1c710c3c DJ |
5324 | if test -n "$ac_tool_prefix"; then |
5325 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5326 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5328 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5329 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5330 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5331 | else |
5332 | if test -n "$GNATMAKE"; then | |
5333 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5334 | else | |
1c710c3c DJ |
5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | test -z "$as_dir" && as_dir=. | |
5213506e | 5340 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5342 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5344 | break 2 |
5345 | fi | |
5346 | done | |
5213506e RW |
5347 | done |
5348 | IFS=$as_save_IFS | |
1c710c3c | 5349 | |
5305be7e RG |
5350 | fi |
5351 | fi | |
1c710c3c | 5352 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5353 | if test -n "$GNATMAKE"; then |
5213506e RW |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5355 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5356 | else |
5213506e RW |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5358 | $as_echo "no" >&6; } | |
5305be7e RG |
5359 | fi |
5360 | ||
5213506e | 5361 | |
1c710c3c | 5362 | fi |
5305be7e | 5363 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5364 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5365 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5366 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5368 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5369 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5370 | $as_echo_n "(cached) " >&6 |
5305be7e | 5371 | else |
1c710c3c DJ |
5372 | if test -n "$ac_ct_GNATMAKE"; then |
5373 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5374 | else |
1c710c3c DJ |
5375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5376 | for as_dir in $PATH | |
5377 | do | |
5378 | IFS=$as_save_IFS | |
5379 | test -z "$as_dir" && as_dir=. | |
5213506e | 5380 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5382 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5384 | break 2 |
5385 | fi | |
5386 | done | |
5213506e RW |
5387 | done |
5388 | IFS=$as_save_IFS | |
1c710c3c | 5389 | |
5305be7e RG |
5390 | fi |
5391 | fi | |
1c710c3c DJ |
5392 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5393 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5395 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5396 | else |
5213506e RW |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5398 | $as_echo "no" >&6; } | |
5305be7e RG |
5399 | fi |
5400 | ||
5213506e RW |
5401 | if test "x$ac_ct_GNATMAKE" = x; then |
5402 | GNATMAKE="no" | |
5403 | else | |
5404 | case $cross_compiling:$ac_tool_warned in | |
5405 | yes:) | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5407 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5408 | ac_tool_warned=yes ;; | |
5409 | esac | |
5410 | GNATMAKE=$ac_ct_GNATMAKE | |
5411 | fi | |
5305be7e | 5412 | else |
1c710c3c | 5413 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5414 | fi |
5415 | ||
5213506e RW |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5417 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5418 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5419 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5420 | else |
5421 | cat >conftest.adb <<EOF | |
5422 | procedure conftest is begin null; end conftest; | |
5423 | EOF | |
5424 | acx_cv_cc_gcc_supports_ada=no | |
5425 | # There is a bug in old released versions of GCC which causes the | |
5426 | # driver to exit successfully when the appropriate language module | |
5427 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5428 | # Therefore we must check for the error message as well as an | |
5429 | # unsuccessful exit. | |
1db673ca RO |
5430 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5431 | # given a .adb file, but produce no object file. So we must check | |
5432 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5433 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5434 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5435 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5436 | fi |
5437 | rm -f conftest.* | |
5438 | fi | |
5213506e RW |
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5440 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5441 | |
7cb62ef1 | 5442 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5443 | have_gnat=yes |
5444 | else | |
5445 | have_gnat=no | |
5446 | fi | |
5447 | ||
5213506e RW |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5449 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5450 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5451 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5452 | else |
5453 | echo abfoo >t1 | |
5454 | echo cdfoo >t2 | |
b55e6680 | 5455 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5456 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5457 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5458 | : | |
5459 | else | |
5460 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5461 | fi | |
5462 | fi | |
a76494aa PB |
5463 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5464 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5465 | : |
a76494aa PB |
5466 | else |
5467 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5468 | fi | |
5469 | fi | |
5470 | rm t1 t2 | |
5471 | ||
5472 | fi | |
5213506e RW |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5474 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5475 | do_compare="$gcc_cv_prog_cmp_skip" |
5476 | ||
5477 | ||
55ffb5ed | 5478 | |
ff3ac0f4 ILT |
5479 | # Check whether --enable-bootstrap was given. |
5480 | if test "${enable_bootstrap+set}" = set; then : | |
5481 | enableval=$enable_bootstrap; | |
5482 | else | |
5483 | enable_bootstrap=default | |
5484 | fi | |
5485 | ||
5486 | ||
5487 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5488 | if test -r $srcdir/gcc/configure; then |
5489 | have_compiler=yes | |
5490 | else | |
5491 | have_compiler=no | |
5492 | fi | |
ff3ac0f4 ILT |
5493 | |
5494 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5495 | *:*:*:no) ;; | |
5496 | ||
5497 | # Default behavior. Enable bootstrap if we have a compiler | |
5498 | # and we are in a native configuration. | |
5499 | yes:$build:$build:default) | |
5500 | enable_bootstrap=yes ;; | |
5501 | ||
5502 | *:*:*:default) | |
5503 | enable_bootstrap=no ;; | |
5504 | ||
5505 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5506 | yes:$build:$build:yes) | |
5507 | ;; | |
5508 | ||
5509 | # Other configurations, but we have a compiler. Assume the user knows | |
5510 | # what he's doing. | |
5511 | yes:*:*:yes) | |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5513 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5514 | ;; | |
5515 | ||
5516 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5517 | no:*:*:yes) | |
22e05272 | 5518 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5519 | |
5520 | # Fail if wrong command line | |
5521 | *) | |
22e05272 | 5522 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5523 | ;; |
5524 | esac | |
5525 | ||
46070488 JM |
5526 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5527 | # C++98 compiler can still start the bootstrap. | |
5528 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5529 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5530 | fi |
5531 | ||
592c90ff KG |
5532 | # Used for setting $lt_cv_objdir |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5534 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 5535 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
5536 | $as_echo_n "(cached) " >&6 |
5537 | else | |
5538 | rm -f .libs 2>/dev/null | |
5539 | mkdir .libs 2>/dev/null | |
5540 | if test -d .libs; then | |
5541 | lt_cv_objdir=.libs | |
5542 | else | |
5543 | # MS-DOS does not allow filenames that begin with a dot. | |
5544 | lt_cv_objdir=_libs | |
5545 | fi | |
5546 | rmdir .libs 2>/dev/null | |
5547 | fi | |
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5549 | $as_echo "$lt_cv_objdir" >&6; } | |
5550 | objdir=$lt_cv_objdir | |
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | cat >>confdefs.h <<_ACEOF | |
5557 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5558 | _ACEOF | |
5559 | ||
5560 | ||
5561 | ||
acd26225 | 5562 | # Check for GMP, MPFR and MPC |
3a5729ea | 5563 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5564 | gmpinc= |
e69bf64b | 5565 | have_gmp=no |
acd26225 KG |
5566 | |
5567 | # Specify a location for mpc | |
5568 | # check for this first so it ends up on the link line before mpfr. | |
5569 | ||
5213506e RW |
5570 | # Check whether --with-mpc was given. |
5571 | if test "${with_mpc+set}" = set; then : | |
5572 | withval=$with_mpc; | |
5573 | fi | |
acd26225 | 5574 | |
acd26225 | 5575 | |
9965e3cd | 5576 | # Check whether --with-mpc-include was given. |
5213506e RW |
5577 | if test "${with_mpc_include+set}" = set; then : |
5578 | withval=$with_mpc_include; | |
5579 | fi | |
acd26225 | 5580 | |
acd26225 | 5581 | |
9965e3cd | 5582 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5583 | if test "${with_mpc_lib+set}" = set; then : |
5584 | withval=$with_mpc_lib; | |
5585 | fi | |
acd26225 | 5586 | |
acd26225 KG |
5587 | |
5588 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5589 | gmplibs="-L$with_mpc/lib $gmplibs" |
5590 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5591 | fi |
5592 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5593 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5594 | fi |
5595 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5596 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5597 | fi |
5598 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5599 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5600 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5601 | # Do not test the mpc version. Assume that it is sufficient, since |
5602 | # it is in the source tree, and the library has not been built yet | |
5603 | # but it would be included on the link line in the version check below | |
5604 | # hence making the test fail. | |
3a5729ea | 5605 | have_gmp=yes |
acd26225 | 5606 | fi |
e69bf64b | 5607 | |
bebf829d PB |
5608 | # Specify a location for mpfr |
5609 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5610 | |
5213506e RW |
5611 | # Check whether --with-mpfr-dir was given. |
5612 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 5613 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
5614 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5615 | fi | |
5616 | ||
bebf829d PB |
5617 | |
5618 | ||
5213506e RW |
5619 | # Check whether --with-mpfr was given. |
5620 | if test "${with_mpfr+set}" = set; then : | |
5621 | withval=$with_mpfr; | |
5622 | fi | |
1c710c3c | 5623 | |
bebf829d | 5624 | |
9965e3cd | 5625 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5626 | if test "${with_mpfr_include+set}" = set; then : |
5627 | withval=$with_mpfr_include; | |
5628 | fi | |
1c710c3c | 5629 | |
8a877c9c | 5630 | |
9965e3cd | 5631 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5632 | if test "${with_mpfr_lib+set}" = set; then : |
5633 | withval=$with_mpfr_lib; | |
5634 | fi | |
8a877c9c | 5635 | |
bebf829d PB |
5636 | |
5637 | if test "x$with_mpfr" != x; then | |
5638 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5639 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5640 | fi |
8a877c9c | 5641 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5642 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5643 | fi |
5644 | if test "x$with_mpfr_lib" != x; then | |
5645 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5646 | fi | |
e69bf64b | 5647 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
5648 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5649 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 5650 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 5651 | fi |
00f35794 BE |
5652 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5653 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5654 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
5655 | # Do not test the mpfr version. Assume that it is sufficient, since |
5656 | # it is in the source tree, and the library has not been built yet | |
5657 | # but it would be included on the link line in the version check below | |
5658 | # hence making the test fail. | |
5659 | have_gmp=yes | |
5660 | fi | |
bebf829d | 5661 | |
6de9cd9a | 5662 | # Specify a location for gmp |
1c710c3c | 5663 | |
5213506e RW |
5664 | # Check whether --with-gmp-dir was given. |
5665 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 5666 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
5667 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5668 | fi | |
5669 | ||
6de9cd9a | 5670 | |
6de9cd9a | 5671 | |
5213506e RW |
5672 | # Check whether --with-gmp was given. |
5673 | if test "${with_gmp+set}" = set; then : | |
5674 | withval=$with_gmp; | |
5675 | fi | |
1c710c3c | 5676 | |
6de9cd9a | 5677 | |
9965e3cd | 5678 | # Check whether --with-gmp-include was given. |
5213506e RW |
5679 | if test "${with_gmp_include+set}" = set; then : |
5680 | withval=$with_gmp_include; | |
5681 | fi | |
1c710c3c | 5682 | |
8a877c9c | 5683 | |
9965e3cd | 5684 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5685 | if test "${with_gmp_lib+set}" = set; then : |
5686 | withval=$with_gmp_lib; | |
5687 | fi | |
8a877c9c KG |
5688 | |
5689 | ||
6de9cd9a | 5690 | |
bebf829d PB |
5691 | if test "x$with_gmp" != x; then |
5692 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5693 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5694 | fi |
8a877c9c KG |
5695 | if test "x$with_gmp_include" != x; then |
5696 | gmpinc="-I$with_gmp_include $gmpinc" | |
5697 | fi | |
5698 | if test "x$with_gmp_lib" != x; then | |
5699 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5700 | fi | |
e69bf64b | 5701 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5702 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5703 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5704 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5705 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5706 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5707 | # Do not test the gmp version. Assume that it is sufficient, since |
5708 | # it is in the source tree, and the library has not been built yet | |
5709 | # but it would be included on the link line in the version check below | |
5710 | # hence making the test fail. | |
5711 | have_gmp=yes | |
5712 | fi | |
6de9cd9a | 5713 | |
d943d7c4 | 5714 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5715 | have_gmp=yes |
5716 | saved_CFLAGS="$CFLAGS" | |
5717 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5718 | # Check for the recommended and required versions of GMP. |
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5720 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5721 | |
5722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5723 | /* end confdefs.h. */ |
5724 | #include "gmp.h" | |
5725 | int | |
5726 | main () | |
5727 | { | |
5728 | ||
5729 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5730 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5731 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5732 | choke me |
5733 | #endif | |
5734 | ||
5735 | ; | |
5736 | return 0; | |
5737 | } | |
5738 | _ACEOF | |
5739 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5741 | /* end confdefs.h. */ |
362c6d2f | 5742 | #include <gmp.h> |
1c710c3c DJ |
5743 | int |
5744 | main () | |
5745 | { | |
6de9cd9a | 5746 | |
362c6d2f KG |
5747 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5748 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5749 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5750 | choke me |
5751 | #endif | |
1c710c3c DJ |
5752 | |
5753 | ; | |
5754 | return 0; | |
5755 | } | |
5756 | _ACEOF | |
5213506e RW |
5757 | if ac_fn_c_try_compile "$LINENO"; then : |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5759 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5760 | else |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5762 | $as_echo "buggy but acceptable" >&6; } | |
5763 | fi | |
5764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5765 | else |
5213506e RW |
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5767 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5768 | fi |
5213506e | 5769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5770 | |
acd26225 | 5771 | # If we have GMP, check the MPFR version. |
e69bf64b | 5772 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5773 | # Check for the recommended and required versions of MPFR. |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5775 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5777 | /* end confdefs.h. */ |
70ec446f | 5778 | #include <gmp.h> |
e69bf64b | 5779 | #include <mpfr.h> |
1c710c3c DJ |
5780 | int |
5781 | main () | |
5782 | { | |
e48d66a9 | 5783 | |
8be34204 | 5784 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
5785 | choke me |
5786 | #endif | |
1c710c3c DJ |
5787 | |
5788 | ; | |
5789 | return 0; | |
5790 | } | |
5791 | _ACEOF | |
5213506e RW |
5792 | if ac_fn_c_try_compile "$LINENO"; then : |
5793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5794 | /* end confdefs.h. */ |
a3993f33 | 5795 | #include <gmp.h> |
e69bf64b | 5796 | #include <mpfr.h> |
1c710c3c DJ |
5797 | int |
5798 | main () | |
5799 | { | |
a3993f33 | 5800 | |
8be34204 | 5801 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
5802 | choke me |
5803 | #endif | |
acd26225 KG |
5804 | |
5805 | ; | |
5806 | return 0; | |
5807 | } | |
5808 | _ACEOF | |
5213506e RW |
5809 | if ac_fn_c_try_compile "$LINENO"; then : |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5811 | $as_echo "yes" >&6; } | |
acd26225 | 5812 | else |
5213506e RW |
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5814 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5815 | fi |
5213506e | 5816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5817 | else |
5213506e RW |
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5819 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5820 | fi |
5213506e | 5821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5822 | fi |
5823 | ||
5824 | # Check for the MPC header version. | |
3a5729ea | 5825 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5826 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5828 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5830 | /* end confdefs.h. */ |
5831 | #include <mpc.h> | |
5832 | int | |
5833 | main () | |
5834 | { | |
5835 | ||
362c6d2f KG |
5836 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5837 | choke me | |
5838 | #endif | |
5839 | ||
5840 | ; | |
5841 | return 0; | |
5842 | } | |
5843 | _ACEOF | |
5844 | if ac_fn_c_try_compile "$LINENO"; then : | |
5845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5846 | /* end confdefs.h. */ | |
5847 | #include <mpc.h> | |
5848 | int | |
5849 | main () | |
5850 | { | |
5851 | ||
5852 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5853 | choke me |
5854 | #endif | |
5855 | ||
5856 | ; | |
5857 | return 0; | |
5858 | } | |
5859 | _ACEOF | |
5213506e RW |
5860 | if ac_fn_c_try_compile "$LINENO"; then : |
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5862 | $as_echo "yes" >&6; } |
362c6d2f KG |
5863 | else |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5865 | $as_echo "buggy but acceptable" >&6; } | |
5866 | fi | |
5867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5868 | else |
5213506e | 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5870 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5871 | fi |
5213506e | 5872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5873 | fi |
5874 | ||
5875 | # Now check the MPFR library. | |
5876 | if test x"$have_gmp" = xyes; then | |
5877 | saved_LIBS="$LIBS" | |
5878 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5880 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5882 | /* end confdefs.h. */ |
3a5729ea | 5883 | #include <mpc.h> |
acd26225 KG |
5884 | int |
5885 | main () | |
5886 | { | |
5887 | ||
5888 | mpfr_t n; | |
5889 | mpfr_t x; | |
3a5729ea | 5890 | mpc_t c; |
acd26225 KG |
5891 | int t; |
5892 | mpfr_init (n); | |
5893 | mpfr_init (x); | |
90ca6847 TB |
5894 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
5895 | mpfr_erfc (n, x, MPFR_RNDN); | |
5896 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
5897 | mpfr_clear(n); |
5898 | mpfr_clear(x); | |
5899 | mpc_init2 (c, 53); | |
5900 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5901 | mpc_cosh (c, c, MPC_RNDNN); | |
5902 | mpc_pow (c, c, c, MPC_RNDNN); | |
5903 | mpc_acosh (c, c, MPC_RNDNN); | |
5904 | mpc_clear (c); | |
1c710c3c DJ |
5905 | |
5906 | ; | |
5907 | return 0; | |
5908 | } | |
5909 | _ACEOF | |
5213506e RW |
5910 | if ac_fn_c_try_link "$LINENO"; then : |
5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5912 | $as_echo "yes" >&6; } | |
1c710c3c | 5913 | else |
5213506e RW |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5915 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5916 | fi |
5213506e RW |
5917 | rm -f core conftest.err conftest.$ac_objext \ |
5918 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5919 | LIBS="$saved_LIBS" |
5920 | fi | |
5921 | ||
e69bf64b | 5922 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5923 | |
362c6d2f KG |
5924 | # The library versions listed in the error message below should match |
5925 | # the HARD-minimums enforced above. | |
e69bf64b | 5926 | if test x$have_gmp != xyes; then |
8be34204 | 5927 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
5928 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5929 | their locations. Source code for these libraries can be found at | |
5930 | their respective hosting sites as well as at | |
aeebd94c | 5931 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
5932 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
5933 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5934 | make sure that you have installed both the libraries and the header | |
5935 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5936 | fi |
70ec446f KG |
5937 | fi |
5938 | ||
acd26225 KG |
5939 | # Flags needed for both GMP, MPFR and/or MPC. |
5940 | ||
5941 | ||
6de9cd9a DN |
5942 | |
5943 | ||
5944 | ||
9e3eba15 | 5945 | |
0ff2d841 | 5946 | |
0b21f5d3 | 5947 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5948 | |
0b21f5d3 EB |
5949 | # Check whether --with-stage1-libs was given. |
5950 | if test "${with_stage1_libs+set}" = set; then : | |
5951 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5952 | stage1_libs= | |
00020c16 | 5953 | else |
0b21f5d3 | 5954 | stage1_libs=$withval |
00020c16 ILT |
5955 | fi |
5956 | else | |
5dc85f7e | 5957 | stage1_libs= |
5213506e RW |
5958 | fi |
5959 | ||
00020c16 ILT |
5960 | |
5961 | ||
aac9103b TT |
5962 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
5963 | # default is yes if gcc is being built; no otherwise. The reason for | |
5964 | # this default is that gdb is sometimes linked against GNU Source | |
5965 | # Highlight, which is a shared library that uses C++ exceptions. In | |
5966 | # this case, -static-libstdc++ will cause crashes. | |
5967 | ||
5968 | # Check whether --with-static-standard-libraries was given. | |
5969 | if test "${with_static_standard_libraries+set}" = set; then : | |
5970 | withval=$with_static_standard_libraries; | |
5971 | else | |
5972 | with_static_standard_libraries=auto | |
5973 | fi | |
5974 | ||
5975 | if test "$with_static_standard_libraries" = auto; then | |
5976 | with_static_standard_libraries=$have_compiler | |
5977 | fi | |
5978 | ||
0b21f5d3 | 5979 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5980 | |
0b21f5d3 EB |
5981 | # Check whether --with-stage1-ldflags was given. |
5982 | if test "${with_stage1_ldflags+set}" = set; then : | |
5983 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5984 | stage1_ldflags= | |
00020c16 | 5985 | else |
0b21f5d3 | 5986 | stage1_ldflags=$withval |
00020c16 ILT |
5987 | fi |
5988 | else | |
0b21f5d3 EB |
5989 | stage1_ldflags= |
5990 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5991 | # if supported. But if the user explicitly specified the libraries to use, | |
5992 | # trust that they are doing what they want. | |
aac9103b TT |
5993 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
5994 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
5995 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
5996 | fi | |
5213506e RW |
5997 | fi |
5998 | ||
00020c16 ILT |
5999 | |
6000 | ||
5dc85f7e | 6001 | # Libraries to use for stage2 and later builds. |
00020c16 | 6002 | |
5213506e RW |
6003 | # Check whether --with-boot-libs was given. |
6004 | if test "${with_boot_libs+set}" = set; then : | |
6005 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
6006 | poststage1_libs= |
6007 | else | |
6008 | poststage1_libs=$withval | |
6009 | fi | |
6010 | else | |
5dc85f7e | 6011 | poststage1_libs= |
5213506e RW |
6012 | fi |
6013 | ||
00020c16 ILT |
6014 | |
6015 | ||
ed2eaa9f ILT |
6016 | # Linker flags to use for stage2 and later builds. |
6017 | ||
6018 | # Check whether --with-boot-ldflags was given. | |
6019 | if test "${with_boot_ldflags+set}" = set; then : | |
6020 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6021 | poststage1_ldflags= | |
6022 | else | |
6023 | poststage1_ldflags=$withval | |
6024 | fi | |
6025 | else | |
6026 | poststage1_ldflags= | |
bec93d73 ILT |
6027 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
6028 | # statically. But if the user explicitly specified the libraries to | |
6029 | # use, trust that they are doing what they want. | |
6030 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
6031 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
6032 | fi | |
6033 | fi | |
6034 | ||
6035 | ||
6036 | ||
e357a5e0 | 6037 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 6038 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
6039 | |
6040 | ||
33ad93b9 RG |
6041 | # Check whether --with-isl was given. |
6042 | if test "${with_isl+set}" = set; then : | |
6043 | withval=$with_isl; | |
5213506e | 6044 | fi |
f8bf9252 | 6045 | |
f8bf9252 | 6046 | |
eae1a5d4 | 6047 | # Treat --without-isl as a request to disable |
625afa23 | 6048 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 6049 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 6050 | # Check for isl |
625afa23 RG |
6051 | |
6052 | ||
33ad93b9 RG |
6053 | # Check whether --with-isl-include was given. |
6054 | if test "${with_isl_include+set}" = set; then : | |
6055 | withval=$with_isl_include; | |
5213506e RW |
6056 | fi |
6057 | ||
f8bf9252 | 6058 | |
33ad93b9 RG |
6059 | # Check whether --with-isl-lib was given. |
6060 | if test "${with_isl_lib+set}" = set; then : | |
6061 | withval=$with_isl_lib; | |
5213506e | 6062 | fi |
f8bf9252 | 6063 | |
f8bf9252 | 6064 | |
33ad93b9 RG |
6065 | # Check whether --enable-isl-version-check was given. |
6066 | if test "${enable_isl_version_check+set}" = set; then : | |
6067 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
6068 | else | |
6069 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
6070 | fi |
6071 | ||
6072 | ||
33ad93b9 RG |
6073 | # Initialize isllibs and islinc. |
6074 | case $with_isl in | |
6075 | no) | |
6076 | isllibs= | |
6077 | islinc= | |
6078 | ;; | |
6079 | "" | yes) | |
6080 | ;; | |
6081 | *) | |
6082 | isllibs="-L$with_isl/lib" | |
6083 | islinc="-I$with_isl/include" | |
6084 | ;; | |
6085 | esac | |
6086 | if test "x${with_isl_include}" != x ; then | |
6087 | islinc="-I$with_isl_include" | |
6088 | fi | |
6089 | if test "x${with_isl_lib}" != x; then | |
6090 | isllibs="-L$with_isl_lib" | |
6091 | fi | |
6092 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6093 | && test -d ${srcdir}/isl; then | |
6094 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6095 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6096 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6098 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 6099 | fi |
7d32a440 | 6100 | |
eae1a5d4 RG |
6101 | isllibs="${isllibs} -lisl" |
6102 | ||
7d32a440 | 6103 | |
7d32a440 | 6104 | |
9847828b RB |
6105 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6106 | _isl_saved_CFLAGS=$CFLAGS | |
6107 | _isl_saved_LDFLAGS=$LDFLAGS | |
6108 | _isl_saved_LIBS=$LIBS | |
6109 | ||
6110 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
6111 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6112 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 6113 | |
f877b3ad RB |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6115 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 6116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 6117 | /* end confdefs.h. */ |
f877b3ad | 6118 | #include <isl/schedule.h> |
622dbadf BC |
6119 | int |
6120 | main () | |
6121 | { | |
f877b3ad | 6122 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
6123 | ; |
6124 | return 0; | |
6125 | } | |
6126 | _ACEOF | |
6127 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 6128 | gcc_cv_isl=yes |
622dbadf BC |
6129 | else |
6130 | gcc_cv_isl=no | |
6131 | fi | |
6132 | rm -f core conftest.err conftest.$ac_objext \ | |
6133 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6135 | $as_echo "$gcc_cv_isl" >&6; } | |
6136 | ||
560d18d3 | 6137 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6139 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
6140 | fi |
6141 | ||
9847828b RB |
6142 | CFLAGS=$_isl_saved_CFLAGS |
6143 | LDFLAGS=$_isl_saved_LDFLAGS | |
6144 | LIBS=$_isl_saved_LIBS | |
6145 | fi | |
6146 | ||
6147 | ||
f8bf9252 | 6148 | |
f8bf9252 | 6149 | |
33ad93b9 RG |
6150 | |
6151 | ||
33ad93b9 RG |
6152 | if test "x${with_isl}" = xno; then |
6153 | graphite_requested=no | |
6154 | elif test "x${with_isl}" != x \ | |
6155 | || test "x${with_isl_include}" != x \ | |
6156 | || test "x${with_isl_lib}" != x ; then | |
6157 | graphite_requested=yes | |
6158 | else | |
6159 | graphite_requested=no | |
7d32a440 | 6160 | fi |
d789184e | 6161 | |
d789184e SP |
6162 | |
6163 | ||
33ad93b9 RG |
6164 | if test "${gcc_cv_isl}" = no ; then |
6165 | isllibs= | |
6166 | islinc= | |
6167 | fi | |
6168 | ||
6169 | if test "${graphite_requested}" = yes \ | |
6170 | && test "x${isllibs}" = x \ | |
6171 | && test "x${islinc}" = x ; then | |
f8bf9252 | 6172 | |
22e05272 | 6173 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 6174 | fi |
f8bf9252 | 6175 | |
d32ef397 | 6176 | |
d32ef397 AS |
6177 | fi |
6178 | ||
e357a5e0 | 6179 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 6180 | if test "x$with_isl" = xno || |
625afa23 | 6181 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6182 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6183 | islinc= |
32d024bf RG |
6184 | fi |
6185 | ||
625afa23 RG |
6186 | |
6187 | ||
6188 | ||
d7f09764 DN |
6189 | # Check for LTO support. |
6190 | # Check whether --enable-lto was given. | |
6191 | if test "${enable_lto+set}" = set; then : | |
6192 | enableval=$enable_lto; enable_lto=$enableval | |
6193 | else | |
6194 | enable_lto=yes; default_enable_lto=yes | |
6195 | fi | |
6196 | ||
6197 | ||
7413962d | 6198 | |
9a02962b DK |
6199 | |
6200 | ||
6201 | target_elf=no | |
6202 | case $target in | |
6203 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6204 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 6205 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 6206 | nvptx-*-none) |
9a02962b DK |
6207 | target_elf=no |
6208 | ;; | |
6209 | *) | |
6210 | target_elf=yes | |
6211 | ;; | |
6212 | esac | |
6213 | ||
6214 | if test $target_elf = yes; then : | |
48215350 DK |
6215 | # ELF platforms build the lto-plugin always. |
6216 | build_lto_plugin=yes | |
9a02962b | 6217 | |
9a02962b DK |
6218 | else |
6219 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6220 | case $target in |
deeba76a | 6221 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 6222 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6223 | *) enable_lto=no ;; |
6224 | esac | |
9a02962b | 6225 | else |
db50fe7d IS |
6226 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6227 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6228 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6229 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6230 | # -flto it won't be needed until after installation anyway. | |
6231 | case $target in | |
9e530bcd | 6232 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 6233 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 6234 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
6235 | fi |
6236 | ;; | |
6237 | esac | |
6238 | fi | |
1cd0b716 | 6239 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6240 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6241 | case $target in |
48215350 | 6242 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6243 | *) ;; |
6244 | esac | |
48215350 | 6245 | |
9a02962b DK |
6246 | fi |
6247 | ||
d7f09764 | 6248 | |
45b3824d TS |
6249 | # Check whether --enable-linker-plugin-configure-flags was given. |
6250 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6251 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6252 | else | |
6253 | extra_linker_plugin_configure_flags= | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | # Check whether --enable-linker-plugin-flags was given. | |
6258 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6259 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6260 | else | |
6261 | extra_linker_plugin_flags= | |
6262 | fi | |
6263 | ||
6264 | ||
6265 | ||
cdfee50a NS |
6266 | # Enable --enable-host-shared. |
6267 | # Checked early to determine whether jit is an 'all' language | |
6268 | # Check whether --enable-host-shared was given. | |
6269 | if test "${enable_host_shared+set}" = set; then : | |
6270 | enableval=$enable_host_shared; host_shared=$enableval | |
6271 | else | |
6272 | host_shared=no | |
6273 | fi | |
6274 | ||
6275 | ||
f8bf9252 | 6276 | |
0823efed | 6277 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6278 | stage1_languages=,c, |
2805b53a | 6279 | |
00020c16 | 6280 | # Target libraries that we bootstrap. |
ad1e5170 | 6281 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6282 | |
55ffb5ed NN |
6283 | # Figure out what language subdirectories are present. |
6284 | # Look if the user specified --enable-languages="..."; if not, use | |
6285 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6286 | # go away some day. | |
6287 | # NB: embedded tabs in this IF block -- do not untabify | |
6288 | if test -d ${srcdir}/gcc; then | |
6289 | if test x"${enable_languages+set}" != xset; then | |
6290 | if test x"${LANGUAGES+set}" = xset; then | |
6291 | enable_languages="${LANGUAGES}" | |
6b1786aa | 6292 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 6293 | else |
cdfee50a | 6294 | enable_languages=default |
55ffb5ed NN |
6295 | fi |
6296 | else | |
6297 | if test x"${enable_languages}" = x || | |
6298 | test x"${enable_languages}" = xyes; | |
6299 | then | |
6b1786aa | 6300 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
6301 | exit 1 |
6302 | fi | |
6303 | fi | |
6304 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6305 | ||
7f26dfa3 FXC |
6306 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6307 | # and make the substitution. | |
6308 | case ,${enable_languages}, in | |
6309 | *,f95,*) | |
6b1786aa | 6310 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
6311 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6312 | ;; | |
6313 | esac | |
6314 | ||
0823efed DN |
6315 | # If bootstrapping, C++ must be enabled. |
6316 | case ",$enable_languages,:$enable_bootstrap" in | |
6317 | *,c++,*:*) ;; | |
6318 | *:yes) | |
ff3ac0f4 ILT |
6319 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6320 | enable_languages="${enable_languages},c++" | |
6321 | else | |
22e05272 | 6322 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6323 | fi |
6324 | ;; | |
6325 | esac | |
6326 | ||
55ffb5ed NN |
6327 | # First scan to see if an enabled language requires some other language. |
6328 | # We assume that a given config-lang.in will list all the language | |
6329 | # front ends it requires, even if some are required indirectly. | |
6330 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6331 | case ${lang_frag} in | |
6332 | ..) ;; | |
6333 | # The odd quoting in the next line works around | |
6334 | # an apparent bug in bash 1.12 on linux. | |
6335 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6336 | *) | |
69ecd18f ILT |
6337 | # From the config-lang.in, get $language, $lang_requires, and |
6338 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6339 | language= |
6340 | lang_requires= | |
69ecd18f | 6341 | lang_requires_boot_languages= |
d4360477 NS |
6342 | # set srcdir during sourcing lang_frag to the gcc dir. |
6343 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6344 | # polutes this shell | |
6345 | saved_srcdir=${srcdir} | |
6346 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6347 | srcdir=${saved_srcdir} | |
69ecd18f | 6348 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6349 | case ,${enable_languages}, in |
6350 | *,$other,*) ;; | |
cdfee50a | 6351 | *,default,*) ;; |
55ffb5ed NN |
6352 | *,all,*) ;; |
6353 | *,$language,*) | |
6354 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6355 | enable_languages="${enable_languages},${other}" | |
6356 | ;; | |
6357 | esac | |
6358 | done | |
69ecd18f ILT |
6359 | for other in ${lang_requires_boot_languages} ; do |
6360 | if test "$other" != "c"; then | |
6361 | case ,${enable_stage1_languages}, in | |
6362 | *,$other,*) ;; | |
cdfee50a | 6363 | *,default,*) ;; |
69ecd18f ILT |
6364 | *,all,*) ;; |
6365 | *) | |
6366 | case ,${enable_languages}, in | |
6367 | *,$language,*) | |
6368 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6369 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6370 | ;; | |
6371 | esac | |
6372 | ;; | |
6373 | esac | |
6374 | fi | |
6375 | done | |
55ffb5ed NN |
6376 | ;; |
6377 | esac | |
6378 | done | |
6379 | ||
e1888513 | 6380 | new_enable_languages=,c, |
d7f09764 DN |
6381 | |
6382 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6383 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6384 | case ,${enable_languages}, in |
6385 | *,lto,*) ;; | |
6386 | *) enable_languages="${enable_languages},lto" ;; | |
6387 | esac | |
1cd0b716 | 6388 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6389 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6390 | fi |
6391 | fi | |
6392 | ||
426c1eb0 TS |
6393 | # If we're building an offloading compiler, add the LTO front end. |
6394 | if test x"$enable_as_accelerator_for" != x ; then | |
6395 | case ,${enable_languages}, in | |
6396 | *,lto,*) ;; | |
6397 | *) enable_languages="${enable_languages},lto" ;; | |
6398 | esac | |
6399 | fi | |
6400 | ||
cdfee50a | 6401 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6402 | potential_languages=,c, |
55ffb5ed | 6403 | |
4da3b0f8 ILT |
6404 | enabled_target_libs= |
6405 | disabled_target_libs= | |
6406 | ||
55ffb5ed NN |
6407 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6408 | case ${lang_frag} in | |
6409 | ..) ;; | |
6410 | # The odd quoting in the next line works around | |
6411 | # an apparent bug in bash 1.12 on linux. | |
6412 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6413 | *) | |
1c710c3c | 6414 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6415 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6416 | language= |
6417 | target_libs= | |
6418 | lang_dirs= | |
1546bb64 | 6419 | subdir_requires= |
e1888513 PB |
6420 | boot_language=no |
6421 | build_by_default=yes | |
d4360477 NS |
6422 | # set srcdir during sourcing. See above about save & restore |
6423 | saved_srcdir=${srcdir} | |
6424 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6425 | srcdir=${saved_srcdir} | |
e1888513 PB |
6426 | if test x${language} = x; then |
6427 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6428 | exit 1 | |
6429 | fi | |
6430 | ||
78767fd9 | 6431 | if test "$language" = "c++"; then |
0823efed | 6432 | boot_language=yes |
00020c16 ILT |
6433 | fi |
6434 | ||
178f875a | 6435 | add_this_lang=no |
cdfee50a NS |
6436 | # C is always enabled, so no need to add it again |
6437 | if test "$language" != "c"; then | |
6438 | case ,${enable_languages}, in | |
6439 | *,${language},*) | |
6440 | # Language was explicitly selected; include it | |
d4a10d0a | 6441 | add_this_lang=yes |
cdfee50a NS |
6442 | ;; |
6443 | *,all,*) | |
6444 | # All languages are enabled | |
6445 | add_this_lang=all | |
6446 | ;; | |
6447 | *,default,*) | |
6448 | # 'default' was selected, select it if it is a default language | |
178f875a | 6449 | add_this_lang=${build_by_default} |
cdfee50a NS |
6450 | ;; |
6451 | esac | |
6452 | fi | |
6de9cd9a | 6453 | |
1546bb64 | 6454 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6455 | for i in $subdir_requires; do |
b6348cb3 | 6456 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
6457 | case ${add_this_lang} in |
6458 | yes) | |
1546bb64 | 6459 | # Specifically requested language; tell them. |
22e05272 | 6460 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 6461 | ;; |
cdfee50a NS |
6462 | all) |
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6464 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6465 | add_this_lang=unsupported | |
6466 | ;; | |
1546bb64 PB |
6467 | *) |
6468 | # Silently disable. | |
e1888513 | 6469 | add_this_lang=unsupported |
1546bb64 PB |
6470 | ;; |
6471 | esac | |
6472 | done | |
6473 | ||
e1888513 | 6474 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
6475 | case ${add_this_lang}:${language}:${have_gnat} in |
6476 | yes:ada:no) | |
e1888513 | 6477 | # Specifically requested language; tell them. |
22e05272 | 6478 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 6479 | ;; |
cdfee50a NS |
6480 | all:ada:no) |
6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6482 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6483 | add_this_lang=unsupported | |
6484 | ;; | |
e1888513 PB |
6485 | *:ada:no) |
6486 | # Silently disable. | |
6487 | add_this_lang=unsupported | |
6488 | ;; | |
6489 | esac | |
6490 | ||
cdfee50a NS |
6491 | # Disable jit if -enable-host-shared not specified |
6492 | case ${add_this_lang}:${language}:${host_shared} in | |
6493 | yes:jit:no) | |
6494 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 6495 | as_fn_error $? " |
cdfee50a NS |
6496 | Enabling language \"jit\" requires --enable-host-shared. |
6497 | ||
6498 | --enable-host-shared typically slows the rest of the compiler down by | |
6499 | a few %, so you must explicitly enable it. | |
6500 | ||
6501 | If you want to build both the jit and the regular compiler, it is often | |
6502 | best to do this via two separate configure/builds, in separate | |
6503 | directories, to avoid imposing the performance cost of | |
6504 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6505 | ;; | |
6506 | all:jit:no) | |
6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6508 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6509 | add_this_lang=unsupported | |
6510 | ;; | |
6511 | *:jit:no) | |
6512 | # Silently disable. | |
6513 | add_this_lang=unsupported | |
6514 | ;; | |
6515 | esac | |
6516 | ||
6517 | # Disable a language that is unsupported by the target. | |
6518 | case "${add_this_lang}: $unsupported_languages " in | |
6519 | no:*) ;; | |
6520 | unsupported:*) ;; | |
6521 | *:*" $language "*) | |
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6523 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 6524 | add_this_lang=unsupported |
4fab7234 HPN |
6525 | ;; |
6526 | esac | |
6527 | ||
6de9cd9a | 6528 | case $add_this_lang in |
e1888513 | 6529 | unsupported) |
55ffb5ed | 6530 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6531 | disabled_target_libs="$disabled_target_libs $target_libs" |
6532 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6533 | ;; |
e1888513 PB |
6534 | no) |
6535 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6536 | disabled_target_libs="$disabled_target_libs $target_libs" |
6537 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6538 | potential_languages="${potential_languages}${language}," |
6539 | ;; | |
cdfee50a | 6540 | all|yes) |
e1888513 PB |
6541 | new_enable_languages="${new_enable_languages}${language}," |
6542 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6543 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6544 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6545 | case "${boot_language}:,$enable_stage1_languages," in |
6546 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6547 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6548 | case ",$stage1_languages," in |
6549 | *,$language,* | ,yes, | ,all,) ;; | |
6550 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6551 | esac | |
00020c16 ILT |
6552 | # We need to bootstrap any supporting libraries. |
6553 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6554 | ;; |
6555 | esac | |
6556 | ;; | |
55ffb5ed NN |
6557 | esac |
6558 | ;; | |
6559 | esac | |
6560 | done | |
6561 | ||
4da3b0f8 ILT |
6562 | # Add target libraries which are only needed for disabled languages |
6563 | # to noconfigdirs. | |
6564 | if test -n "$disabled_target_libs"; then | |
6565 | for dir in $disabled_target_libs; do | |
6566 | case " $enabled_target_libs " in | |
6567 | *" ${dir} "*) ;; | |
6568 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6569 | esac | |
6570 | done | |
6571 | fi | |
6572 | ||
5213506e RW |
6573 | # Check whether --enable-stage1-languages was given. |
6574 | if test "${enable_stage1_languages+set}" = set; then : | |
6575 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6576 | ,no,|,,) |
6577 | # Set it to something that will have no effect in the loop below | |
6578 | enable_stage1_languages=c ;; | |
6579 | ,yes,) | |
6580 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6581 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6582 | *,all,*) | |
6583 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6584 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6585 | esac | |
6586 | ||
6587 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6588 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6589 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6590 | case $potential_languages in | |
6591 | *,$i,*) | |
6592 | case $stage1_languages in | |
6593 | *,$i,*) ;; | |
6594 | *) stage1_languages="$stage1_languages$i," ;; | |
6595 | esac ;; | |
6596 | *) | |
6597 | case $missing_languages in | |
6598 | *,$i,*) ;; | |
6599 | *) missing_languages="$missing_languages$i," ;; | |
6600 | esac ;; | |
6601 | esac | |
6602 | done | |
5213506e RW |
6603 | fi |
6604 | ||
e1888513 PB |
6605 | |
6606 | # Remove leading/trailing commas that were added for simplicity | |
6607 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6608 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6609 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6610 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6611 | ||
55ffb5ed | 6612 | if test "x$missing_languages" != x; then |
22e05272 | 6613 | as_fn_error $? " |
0cf085e4 | 6614 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6615 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6616 | fi |
55ffb5ed NN |
6617 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6618 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6619 | enable_languages="$new_enable_languages" |
55ffb5ed | 6620 | fi |
e1888513 | 6621 | |
1c710c3c | 6622 | |
b2eaac4a | 6623 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6624 | fi |
6625 | ||
27079765 AH |
6626 | # Handle --disable-<component> generically. |
6627 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6628 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6629 | varname=`echo $dirname | sed -e s/+/_/g` |
6630 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6631 | noconfigdirs="$noconfigdirs $dir" |
6632 | fi | |
6633 | done | |
6634 | ||
43c40f3e RO |
6635 | # Check for Boehm's garbage collector |
6636 | # Check whether --enable-objc-gc was given. | |
6637 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
6638 | enableval=$enable_objc_gc; |
6639 | fi | |
6640 | ||
6641 | ||
6642 | # Check whether --with-target-bdw-gc was given. | |
6643 | if test "${with_target_bdw_gc+set}" = set; then : | |
6644 | withval=$with_target_bdw_gc; | |
6645 | fi | |
6646 | ||
6647 | ||
6648 | # Check whether --with-target-bdw-gc-include was given. | |
6649 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6650 | withval=$with_target_bdw_gc_include; | |
6651 | fi | |
6652 | ||
6653 | ||
6654 | # Check whether --with-target-bdw-gc-lib was given. | |
6655 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6656 | withval=$with_target_bdw_gc_lib; | |
6657 | fi | |
6658 | ||
6659 | ||
6660 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6662 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6663 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6665 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
6666 | else |
6667 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 6668 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 6669 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 6670 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
6671 | else |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6673 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6674 | fi | |
6675 | fi | |
43c40f3e RO |
6676 | esac |
6677 | ||
5e9d6aa4 | 6678 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6679 | case ,${enable_languages}, in |
1007a55c | 6680 | *,c++,*) |
5e9d6aa4 | 6681 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
6682 | case "${noconfigdirs}" in |
6683 | *target-libstdc++-v3*) | |
5e9d6aa4 | 6684 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
6685 | ;; |
6686 | *) ;; | |
6687 | esac | |
6688 | ;; | |
99776ebd | 6689 | *) |
5e9d6aa4 | 6690 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6691 | ;; |
6692 | esac | |
6693 | ||
ee6a22df L |
6694 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6695 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6696 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6697 | ||
6698 | notsupp="" | |
6699 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6700 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6701 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6702 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6703 | if test -r $srcdir/$dirname/configure ; then | |
6704 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6705 | true | |
6706 | else | |
6707 | notsupp="$notsupp $dir" | |
6708 | fi | |
6709 | fi | |
6710 | fi | |
ee6a22df L |
6711 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6712 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6713 | if test -r $srcdir/$dirname/configure ; then | |
6714 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6715 | true | |
6716 | else | |
6717 | notsupp="$notsupp $dir" | |
6718 | fi | |
6719 | fi | |
6720 | fi | |
55ffb5ed NN |
6721 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6722 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6723 | if test -r $srcdir/$dirname/configure ; then | |
6724 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6725 | true | |
6726 | else | |
6727 | notsupp="$notsupp $dir" | |
6728 | fi | |
6729 | fi | |
6730 | fi | |
6731 | done | |
6732 | ||
55ffb5ed NN |
6733 | # Quietly strip out all directories which aren't configurable in this tree. |
6734 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6735 | # is now the case. | |
23f6b2f9 PB |
6736 | build_configdirs_all="$build_configdirs" |
6737 | build_configdirs= | |
6738 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6739 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6740 | if test -f ${srcdir}/$j/configure ; then |
6741 | build_configdirs="${build_configdirs} $i" | |
6742 | fi | |
6743 | done | |
6744 | ||
55ffb5ed NN |
6745 | configdirs_all="$configdirs" |
6746 | configdirs= | |
6747 | for i in ${configdirs_all} ; do | |
6748 | if test -f ${srcdir}/$i/configure ; then | |
6749 | configdirs="${configdirs} $i" | |
6750 | fi | |
6751 | done | |
23f6b2f9 | 6752 | |
55ffb5ed NN |
6753 | target_configdirs_all="$target_configdirs" |
6754 | target_configdirs= | |
6755 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6756 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6757 | if test -f ${srcdir}/$j/configure ; then |
6758 | target_configdirs="${target_configdirs} $i" | |
6759 | fi | |
6760 | done | |
6761 | ||
45b3824d TS |
6762 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6763 | # so we have to add it after the preceding checks. | |
6764 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6765 | then | |
6766 | case " $configdirs " in | |
6767 | *" libiberty "*) | |
6768 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6769 | configdirs="$configdirs libiberty-linker-plugin" | |
6770 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6771 | --with-libiberty=../libiberty-linker-plugin";; | |
6772 | *) | |
22e05272 | 6773 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
6774 | esac |
6775 | fi | |
6776 | ||
fca38047 TS |
6777 | # Sometimes we have special requirements for the host libiberty. |
6778 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6779 | extra_host_zlib_configure_flags= |
fca38047 TS |
6780 | case " $configdirs " in |
6781 | *" lto-plugin "* | *" libcc1 "*) | |
6782 | # When these are to be built as shared libraries, the same applies to | |
6783 | # libiberty. | |
6784 | extra_host_libiberty_configure_flags=--enable-shared | |
6785 | ;; | |
1c01ebf6 L |
6786 | *" bfd "*) |
6787 | # When bfd is to be built as a shared library, the same applies to | |
6788 | # zlib. | |
6789 | if test "$enable_shared" = "yes"; then | |
6790 | extra_host_zlib_configure_flags=--enable-host-shared | |
6791 | fi | |
6792 | ;; | |
fca38047 TS |
6793 | esac |
6794 | ||
6795 | ||
1c01ebf6 | 6796 | |
55ffb5ed NN |
6797 | # Produce a warning message for the subdirs we can't configure. |
6798 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6799 | # FSF releases, it's important to let people know when their machine isn't | |
6800 | # supported by the one or two programs in a package. | |
6801 | ||
6802 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6803 | # If $appdirs is non-empty, at least one of those directories must still | |
6804 | # be configured, or we error out. (E.g., if the gas release supports a | |
6805 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6806 | # pretend that all is well.) | |
6807 | if test -n "$appdirs" ; then | |
6808 | for dir in $appdirs ; do | |
6809 | if test -r $dir/Makefile.in ; then | |
6810 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6811 | appdirs="" | |
6812 | break | |
6813 | fi | |
23f6b2f9 | 6814 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6815 | appdirs="" |
6816 | break | |
6817 | fi | |
6818 | fi | |
6819 | done | |
6820 | if test -n "$appdirs" ; then | |
6821 | echo "*** This configuration is not supported by this package." 1>&2 | |
6822 | exit 1 | |
6823 | fi | |
6824 | fi | |
6825 | # Okay, some application will build, or we don't care to check. Still | |
6826 | # notify of subdirs not getting built. | |
6827 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6828 | echo " ${notsupp}" 1>&2 | |
6829 | echo " (Any other directories should still work fine.)" 1>&2 | |
6830 | fi | |
6831 | ||
6832 | case "$host" in | |
6833 | *msdosdjgpp*) | |
6834 | enable_gdbtk=no ;; | |
6835 | esac | |
6836 | ||
c3a86da9 DJ |
6837 | # To find our prefix, in gcc_cv_tool_prefix. |
6838 | ||
6839 | # The user is always right. | |
6840 | if test "${PATH_SEPARATOR+set}" != set; then | |
6841 | echo "#! /bin/sh" >conf$$.sh | |
6842 | echo "exit 0" >>conf$$.sh | |
6843 | chmod +x conf$$.sh | |
6844 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6845 | PATH_SEPARATOR=';' | |
6846 | else | |
6847 | PATH_SEPARATOR=: | |
6848 | fi | |
6849 | rm -f conf$$.sh | |
6850 | fi | |
6851 | ||
6852 | ||
3c36aa6b JJ |
6853 | get_gcc_base_ver="cat" |
6854 | ||
6855 | # Check whether --with-gcc-major-version-only was given. | |
6856 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6857 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 6858 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
6859 | fi |
6860 | ||
6861 | fi | |
6862 | ||
6863 | ||
6864 | ||
6865 | ||
6866 | ||
c3a86da9 DJ |
6867 | |
6868 | if test "x$exec_prefix" = xNONE; then | |
6869 | if test "x$prefix" = xNONE; then | |
6870 | gcc_cv_tool_prefix=$ac_default_prefix | |
6871 | else | |
6872 | gcc_cv_tool_prefix=$prefix | |
6873 | fi | |
6874 | else | |
6875 | gcc_cv_tool_prefix=$exec_prefix | |
6876 | fi | |
6877 | ||
6878 | # If there is no compiler in the tree, use the PATH only. In any | |
6879 | # case, if there is no compiler in the tree nobody should use | |
6880 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6881 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
6882 | if test x$with_gcc_major_version_only = xyes ; then |
6883 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6884 | else | |
6885 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6886 | fi | |
c3a86da9 DJ |
6887 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6888 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6889 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6890 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6891 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6892 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6893 | else | |
6894 | gcc_cv_tool_dirs= | |
6895 | fi | |
6896 | ||
6897 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6898 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6899 | fi | |
6900 | ||
6901 | ||
6902 | ||
55ffb5ed NN |
6903 | copy_dirs= |
6904 | ||
1c710c3c | 6905 | |
5213506e RW |
6906 | # Check whether --with-build-sysroot was given. |
6907 | if test "${with_build_sysroot+set}" = set; then : | |
6908 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6909 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6910 | fi | |
6911 | else | |
6912 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6913 | fi |
526635cb MM |
6914 | |
6915 | ||
c8aea42c | 6916 | |
5213506e RW |
6917 | |
6918 | # Check whether --with-debug-prefix-map was given. | |
6919 | if test "${with_debug_prefix_map+set}" = set; then : | |
6920 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6921 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6922 | for debug_map in $withval; do | |
6923 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6924 | done | |
6925 | fi | |
6926 | else | |
6927 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6928 | fi |
6929 | ||
c8aea42c PB |
6930 | |
6931 | ||
1c8bd6a3 PB |
6932 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6933 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6934 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6935 | # We want to ensure that TARGET libraries (which we know are built with | |
6936 | # gcc) are built with "-O2 -g", so include those options when setting | |
6937 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6938 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6939 | if test "x${is_cross_compiler}" = xyes; then |
6940 | CFLAGS_FOR_TARGET="-g -O2" | |
6941 | else | |
6942 | CFLAGS_FOR_TARGET=$CFLAGS | |
6943 | case " $CFLAGS " in | |
6944 | *" -O2 "*) ;; | |
6945 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6946 | esac | |
6947 | case " $CFLAGS " in | |
6948 | *" -g "* | *" -g3 "*) ;; | |
6949 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6950 | esac | |
6951 | fi | |
1c8bd6a3 PB |
6952 | fi |
6953 | ||
6954 | ||
6955 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6956 | if test "x${is_cross_compiler}" = xyes; then |
6957 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6958 | else | |
6959 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6960 | case " $CXXFLAGS " in | |
6961 | *" -O2 "*) ;; | |
6962 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6963 | esac | |
6964 | case " $CXXFLAGS " in | |
6965 | *" -g "* | *" -g3 "*) ;; | |
6966 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6967 | esac | |
6968 | fi | |
1c8bd6a3 PB |
6969 | fi |
6970 | ||
6971 | ||
6f57bdf6 DK |
6972 | |
6973 | ||
55ffb5ed NN |
6974 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6975 | # the named directory are copied to $(tooldir)/sys-include. | |
6976 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6977 | if test x${is_cross_compiler} = xno ; then | |
6978 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6979 | exit 1 | |
6980 | fi | |
6981 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6982 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6983 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6984 | fi |
6985 | fi | |
6986 | ||
6987 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6988 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6989 | # are permitted. | |
6990 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6991 | if test x${is_cross_compiler} = xno ; then | |
6992 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6993 | exit 1 | |
6994 | fi | |
6995 | if test x"${with_libs}" != xyes ; then | |
6996 | # Copy the libraries in reverse order, so that files in the first named | |
6997 | # library override files in subsequent libraries. | |
c3a86da9 | 6998 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6999 | for l in ${with_libs}; do |
1c710c3c | 7000 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
7001 | done |
7002 | fi | |
7003 | fi | |
7004 | ||
d7f09764 | 7005 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
7006 | # |
7007 | # This is done by determining whether or not the appropriate directory | |
7008 | # is available, and by checking whether or not specific configurations | |
7009 | # have requested that this magic not happen. | |
1c710c3c DJ |
7010 | # |
7011 | # The command line options always override the explicit settings in | |
6b1786aa | 7012 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 7013 | # |
1c710c3c | 7014 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 7015 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
7016 | # --without-gnu-ld options for the configure script. Similarly, if |
7017 | # the default is to use the included zlib and you don't want to do that, | |
7018 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
7019 | |
7020 | if test x${use_gnu_as} = x && | |
7021 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
7022 | with_gnu_as=yes | |
7023 | extra_host_args="$extra_host_args --with-gnu-as" | |
7024 | fi | |
7025 | ||
7026 | if test x${use_gnu_ld} = x && | |
5afab7ad | 7027 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
7028 | with_gnu_ld=yes |
7029 | extra_host_args="$extra_host_args --with-gnu-ld" | |
7030 | fi | |
7031 | ||
d7f09764 DN |
7032 | if test x${use_included_zlib} = x && |
7033 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
7034 | : | |
7035 | else | |
7036 | with_system_zlib=yes | |
7037 | extra_host_args="$extra_host_args --with-system-zlib" | |
7038 | fi | |
7039 | ||
e8b05380 PB |
7040 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
7041 | # can detect this case. | |
7042 | ||
7043 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
7044 | with_newlib=yes | |
7045 | extra_host_args="$extra_host_args --with-newlib" | |
7046 | fi | |
7047 | ||
55ffb5ed NN |
7048 | # Handle ${copy_dirs} |
7049 | set fnord ${copy_dirs} | |
7050 | shift | |
7051 | while test $# != 0 ; do | |
7052 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
7053 | : | |
7054 | else | |
7055 | echo Copying $1 to $2 | |
7056 | ||
7057 | # Use the install script to create the directory and all required | |
7058 | # parent directories. | |
7059 | if test -d $2 ; then | |
7060 | : | |
7061 | else | |
7062 | echo >config.temp | |
7063 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
7064 | fi | |
7065 | ||
7066 | # Copy the directory, assuming we have tar. | |
7067 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
7068 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
7069 | ||
7070 | # It is the responsibility of the user to correctly adjust all | |
7071 | # symlinks. If somebody can figure out how to handle them correctly | |
7072 | # here, feel free to add the code. | |
7073 | ||
7074 | echo $1 > $2/COPIED | |
7075 | fi | |
7076 | shift; shift | |
7077 | done | |
7078 | ||
e8b05380 PB |
7079 | # Determine a target-dependent exec_prefix that the installed |
7080 | # gcc will search in. Keep this list sorted by triplet, with | |
7081 | # the *-*-osname triplets last. | |
7082 | md_exec_prefix= | |
7083 | case "${target}" in | |
30b74385 | 7084 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
7085 | md_exec_prefix=/dev/env/DJDIR/bin |
7086 | ;; | |
e8b05380 | 7087 | *-*-hpux* | \ |
e8b05380 | 7088 | *-*-nto-qnx* | \ |
6de66370 | 7089 | *-*-solaris2*) |
e8b05380 PB |
7090 | md_exec_prefix=/usr/ccs/bin |
7091 | ;; | |
7092 | esac | |
7093 | ||
671aa708 NN |
7094 | extra_arflags_for_target= |
7095 | extra_nmflags_for_target= | |
7096 | extra_ranlibflags_for_target= | |
7097 | target_makefile_frag=/dev/null | |
7098 | case "${target}" in | |
58e24147 AM |
7099 | spu-*-*) |
7100 | target_makefile_frag="config/mt-spu" | |
7101 | ;; | |
d896cc4d | 7102 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
7103 | target_makefile_frag="config/mt-sde" |
7104 | ;; | |
1ec3b87b RS |
7105 | mipsisa*-*-elfoabi*) |
7106 | target_makefile_frag="config/mt-mips-elfoabi" | |
7107 | ;; | |
08d0963a RS |
7108 | mips*-*-*linux* | mips*-*-gnu*) |
7109 | target_makefile_frag="config/mt-mips-gnu" | |
7110 | ;; | |
707f1839 SL |
7111 | nios2-*-elf*) |
7112 | target_makefile_frag="config/mt-nios2-elf" | |
7113 | ;; | |
76052545 EB |
7114 | *-*-linux-android*) |
7115 | target_makefile_frag="config/mt-android" | |
7116 | ;; | |
416ac4d4 | 7117 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 7118 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
7119 | ;; |
7120 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 7121 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
7122 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7123 | # harmless if we're using GNU nm or ar. | |
7124 | extra_arflags_for_target=" -X32_64" | |
7125 | extra_nmflags_for_target=" -B -X32_64" | |
7126 | ;; | |
671aa708 NN |
7127 | esac |
7128 | ||
7129 | alphaieee_frag=/dev/null | |
7130 | case $target in | |
7131 | alpha*-*-*) | |
7132 | # This just makes sure to use the -mieee option to build target libs. | |
7133 | # This should probably be set individually by each library. | |
7134 | alphaieee_frag="config/mt-alphaieee" | |
7135 | ;; | |
7136 | esac | |
7137 | ||
7138 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7139 | # the target libraries, similarly if it is not specified, use -Os | |
7140 | # on selected platforms. | |
7141 | ospace_frag=/dev/null | |
7142 | case "${enable_target_optspace}:${target}" in | |
7143 | yes:*) | |
7144 | ospace_frag="config/mt-ospace" | |
7145 | ;; | |
7146 | :d30v-*) | |
7147 | ospace_frag="config/mt-d30v" | |
7148 | ;; | |
d9063947 | 7149 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
7150 | ospace_frag="config/mt-ospace" |
7151 | ;; | |
7152 | no:* | :*) | |
7153 | ;; | |
7154 | *) | |
7155 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7156 | ;; | |
7157 | esac | |
7158 | ||
671aa708 NN |
7159 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7160 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 7161 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
7162 | build_tooldir=${tooldir} |
7163 | ||
671aa708 NN |
7164 | # Create a .gdbinit file which runs the one in srcdir |
7165 | # and tells GDB to look there for source files. | |
7166 | ||
7167 | if test -r ${srcdir}/.gdbinit ; then | |
7168 | case ${srcdir} in | |
7169 | .) ;; | |
7170 | *) cat > ./.gdbinit <<EOF | |
7171 | # ${NO_EDIT} | |
7172 | dir ${srcdir} | |
7173 | dir . | |
7174 | source ${srcdir}/.gdbinit | |
7175 | EOF | |
7176 | ;; | |
7177 | esac | |
7178 | fi | |
7179 | ||
671aa708 NN |
7180 | # Make sure that the compiler is able to generate an executable. If it |
7181 | # can't, we are probably in trouble. We don't care whether we can run the | |
7182 | # executable--we might be using a cross compiler--we only care whether it | |
7183 | # can be created. At this point the main configure script has set CC. | |
7184 | we_are_ok=no | |
7185 | echo "int main () { return 0; }" > conftest.c | |
7186 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7187 | if test $? = 0 ; then | |
7188 | if test -s conftest || test -s conftest.exe ; then | |
7189 | we_are_ok=yes | |
7190 | fi | |
1c710c3c | 7191 | fi |
671aa708 NN |
7192 | case $we_are_ok in |
7193 | no) | |
7194 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7195 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7196 | rm -f conftest* | |
7197 | exit 1 | |
7198 | ;; | |
7199 | esac | |
7200 | rm -f conftest* | |
7201 | ||
d89f0ad6 | 7202 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
7203 | case "${host}" in |
7204 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 7205 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 7206 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
7207 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7208 | esac | |
7209 | ||
d89f0ad6 AL |
7210 | # On systems where the dynamic library environment variable is PATH, |
7211 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7212 | # built executables to PATH. | |
7213 | if test "$RPATH_ENVVAR" = PATH; then | |
7214 | GCC_SHLIB_SUBDIR=/shlib | |
7215 | else | |
7216 | GCC_SHLIB_SUBDIR= | |
7217 | fi | |
7218 | ||
beeda1d9 JJ |
7219 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7220 | case $enable_bootstrap in | |
7221 | yes) | |
7222 | bootstrap_suffix=bootstrap | |
7223 | BUILD_CONFIG=bootstrap-debug | |
7224 | ;; | |
7225 | no) | |
7226 | bootstrap_suffix=no-bootstrap | |
7227 | BUILD_CONFIG= | |
7228 | ;; | |
7229 | esac | |
7230 | ||
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7232 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7233 | ||
7234 | ||
7235 | # Check whether --with-build-config was given. | |
7236 | if test "${with_build_config+set}" = set; then : | |
7237 | withval=$with_build_config; case $with_build_config in | |
7238 | yes) with_build_config= ;; | |
7239 | no) with_build_config= BUILD_CONFIG= ;; | |
7240 | esac | |
7241 | fi | |
7242 | ||
7243 | ||
7244 | if test "x${with_build_config}" != x; then | |
7245 | BUILD_CONFIG=$with_build_config | |
7246 | else | |
7247 | case $BUILD_CONFIG in | |
7248 | bootstrap-debug) | |
7249 | if echo "int f (void) { return 0; }" > conftest.c && | |
7250 | ${CC} -c conftest.c && | |
7251 | mv conftest.o conftest.o.g0 && | |
7252 | ${CC} -c -g conftest.c && | |
7253 | mv conftest.o conftest.o.g && | |
7254 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7255 | : | |
7256 | else | |
7257 | BUILD_CONFIG= | |
7258 | fi | |
7259 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7260 | ;; | |
7261 | esac | |
7262 | fi | |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7264 | $as_echo "$BUILD_CONFIG" >&6; } | |
7265 | ||
7266 | ||
7267 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7269 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7270 | # Check whether --enable-vtable-verify was given. | |
7271 | if test "${enable_vtable_verify+set}" = set; then : | |
7272 | enableval=$enable_vtable_verify; case "$enableval" in | |
7273 | yes) enable_vtable_verify=yes ;; | |
7274 | no) enable_vtable_verify=no ;; | |
7275 | *) enable_vtable_verify=no;; | |
7276 | esac | |
7277 | else | |
7278 | enable_vtable_verify=no | |
7279 | fi | |
7280 | ||
7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7282 | $as_echo "$enable_vtable_verify" >&6; } | |
7283 | ||
671aa708 NN |
7284 | # Record target_configdirs and the configure arguments for target and |
7285 | # build configuration in Makefile. | |
7286 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7287 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7288 | bootstrap_fixincludes=no |
671aa708 | 7289 | |
ad1e5170 JR |
7290 | # If we are building libgomp, bootstrap it. |
7291 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7292 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7293 | fi | |
7294 | ||
beeda1d9 JJ |
7295 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7296 | # or bootstrap-ubsan, bootstrap it. | |
7297 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7298 | case "$BUILD_CONFIG" in | |
7299 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7300 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7301 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7302 | ;; |
7303 | esac | |
ac8701fe L |
7304 | fi |
7305 | ||
beeda1d9 JJ |
7306 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7307 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7308 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7309 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7310 | fi | |
7311 | ||
671aa708 NN |
7312 | # Determine whether gdb needs tk/tcl or not. |
7313 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7314 | # and in that case we want gdb to be built without tk. Ugh! | |
7315 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7316 | # so we should be able to put the 'maybe's in unconditionally and | |
7317 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7318 | # 100% sure that that's safe though. | |
e914a571 | 7319 | |
b4f96efe | 7320 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7321 | case "$enable_gdbtk" in |
7322 | no) | |
7323 | GDB_TK="" ;; | |
e914a571 AC |
7324 | yes) |
7325 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7326 | *) |
e914a571 AC |
7327 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7328 | # distro. Eventually someone will fix this and move Insight, nee | |
7329 | # gdbtk to a separate directory. | |
7330 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7331 | GDB_TK="${gdb_tk}" | |
7332 | else | |
7333 | GDB_TK="" | |
7334 | fi | |
7335 | ;; | |
671aa708 | 7336 | esac |
ef9db8d5 DJ |
7337 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7338 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7339 | |
f9d09df0 TT |
7340 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
7341 | # else does, only include them if one of these is built. The Makefile | |
7342 | # provides the ordering, so it's enough here to add to the list. | |
7343 | case " ${configdirs} " in | |
7344 | *\ gdb\ *) | |
7345 | configdirs="${configdirs} gnulib gdbsupport" | |
7346 | ;; | |
7347 | *\ gdbserver\ *) | |
7348 | configdirs="${configdirs} gnulib gdbsupport" | |
7349 | ;; | |
7350 | esac | |
98e5be21 | 7351 | |
60975492 | 7352 | # Strip out unwanted targets. |
8b87bb96 NN |
7353 | |
7354 | # While at that, we remove Makefiles if we were started for recursive | |
7355 | # configuration, so that the top-level Makefile reconfigures them, | |
7356 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7357 | |
3e54529c RW |
7358 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7359 | # but now we're fixing up the Makefile ourselves with the additional | |
7360 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7361 | # extrasub-{build,host,target} not because there is any reason to split | |
7362 | # the substitutions up that way, but only to remain below the limit of | |
7363 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
7364 | |
7365 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7366 | # configure will not warn you at all. | |
8b87bb96 | 7367 | |
79cd2b23 RW |
7368 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7369 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7370 | yes:yes:*\ gold\ *:*) | |
22e05272 | 7371 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
7372 | ;; |
7373 | esac | |
7374 | ||
3e54529c | 7375 | extrasub_build= |
23f6b2f9 | 7376 | for module in ${build_configdirs} ; do |
5607edfd PB |
7377 | if test -z "${no_recursion}" \ |
7378 | && test -f ${build_subdir}/${module}/Makefile; then | |
7379 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7380 | rm -f ${build_subdir}/${module}/Makefile | |
7381 | fi | |
3e54529c | 7382 | extrasub_build="$extrasub_build |
5607edfd PB |
7383 | /^@if build-$module\$/d |
7384 | /^@endif build-$module\$/d | |
da34ca3f | 7385 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 7386 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
7387 | /^@endif build-$module-$bootstrap_suffix\$/d |
7388 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 7389 | done |
3e54529c | 7390 | extrasub_host= |
5607edfd | 7391 | for module in ${configdirs} ; do |
a6fbc1e2 | 7392 | if test -z "${no_recursion}"; then |
f063a9ed | 7393 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7394 | if test -f ${file}; then |
7395 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7396 | rm -f ${file} | |
7397 | fi | |
7398 | done | |
5607edfd | 7399 | fi |
9e1c8fc1 JJ |
7400 | case ${module},${bootstrap_fixincludes} in |
7401 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7402 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7403 | esac | |
3e54529c | 7404 | extrasub_host="$extrasub_host |
5607edfd PB |
7405 | /^@if $module\$/d |
7406 | /^@endif $module\$/d | |
da34ca3f | 7407 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 7408 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
7409 | /^@endif $module-$host_bootstrap_suffix\$/d |
7410 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7411 | done |
3e54529c | 7412 | extrasub_target= |
5607edfd PB |
7413 | for module in ${target_configdirs} ; do |
7414 | if test -z "${no_recursion}" \ | |
7415 | && test -f ${target_subdir}/${module}/Makefile; then | |
7416 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7417 | rm -f ${target_subdir}/${module}/Makefile | |
7418 | fi | |
00020c16 ILT |
7419 | |
7420 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7421 | case $bootstrap_target_libs in | |
7422 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7423 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7424 | esac | |
7425 | ||
3e54529c | 7426 | extrasub_target="$extrasub_target |
5607edfd PB |
7427 | /^@if target-$module\$/d |
7428 | /^@endif target-$module\$/d | |
da34ca3f | 7429 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 7430 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
7431 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7432 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7433 | done |
7434 | ||
3e54529c RW |
7435 | # Do the final fixup along with target modules. |
7436 | extrasub_target="$extrasub_target | |
da34ca3f AO |
7437 | /^@if /,/^@endif /d |
7438 | /^@unless /d | |
7439 | /^@endunless /d" | |
671aa708 NN |
7440 | |
7441 | # Create the serialization dependencies. This uses a temporary file. | |
7442 | ||
5213506e RW |
7443 | # Check whether --enable-serial-configure was given. |
7444 | if test "${enable_serial_configure+set}" = set; then : | |
7445 | enableval=$enable_serial_configure; | |
7446 | fi | |
ade82b16 AO |
7447 | |
7448 | ||
bf1d3e81 NN |
7449 | case ${enable_serial_configure} in |
7450 | yes) | |
7451 | enable_serial_build_configure=yes | |
7452 | enable_serial_host_configure=yes | |
7453 | enable_serial_target_configure=yes | |
7454 | ;; | |
7455 | esac | |
7456 | ||
671aa708 NN |
7457 | # These force 'configure's to be done one at a time, to avoid problems |
7458 | # with contention over a shared config.cache. | |
7459 | rm -f serdep.tmp | |
ade82b16 | 7460 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7461 | olditem= |
bf1d3e81 | 7462 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7463 | for item in ${build_configdirs} ; do |
7464 | case ${olditem} in | |
7465 | "") ;; | |
ade82b16 | 7466 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7467 | esac |
7468 | olditem=${item} | |
7469 | done | |
7470 | olditem= | |
bf1d3e81 | 7471 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7472 | for item in ${configdirs} ; do |
7473 | case ${olditem} in | |
7474 | "") ;; | |
ade82b16 | 7475 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7476 | esac |
7477 | olditem=${item} | |
7478 | done | |
7479 | olditem= | |
bf1d3e81 | 7480 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7481 | for item in ${target_configdirs} ; do |
7482 | case ${olditem} in | |
7483 | "") ;; | |
ade82b16 | 7484 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7485 | esac |
7486 | olditem=${item} | |
7487 | done | |
7488 | serialization_dependencies=serdep.tmp | |
7489 | ||
7490 | ||
ade82b16 | 7491 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7492 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7493 | # might not want to pass down to subconfigures. The exception being |
7494 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7495 | # files altogether, and which should be passed on to subconfigures. | |
7496 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7497 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7498 | baseargs= |
29a63921 | 7499 | tbaseargs= |
1c710c3c DJ |
7500 | keep_next=no |
7501 | skip_next=no | |
7502 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7503 | for ac_arg |
7504 | do | |
1c710c3c DJ |
7505 | if test X"$skip_next" = X"yes"; then |
7506 | skip_next=no | |
7507 | continue | |
7508 | fi | |
7509 | if test X"$keep_next" = X"yes"; then | |
7510 | case $ac_arg in | |
7511 | *\'*) | |
7512 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7513 | esac | |
7514 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7515 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7516 | keep_next=no |
7517 | continue | |
7518 | fi | |
7519 | ||
7520 | # Handle separated arguments. Based on the logic generated by | |
7521 | # autoconf 2.59. | |
7522 | case $ac_arg in | |
7523 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7524 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7525 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7526 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7527 | separate_arg=no | |
7528 | ;; | |
7529 | -*) | |
7530 | separate_arg=yes | |
7531 | ;; | |
7532 | *) | |
7533 | separate_arg=no | |
7534 | ;; | |
7535 | esac | |
7536 | ||
29a63921 AO |
7537 | skip_targ=no |
7538 | case $ac_arg in | |
7539 | ||
7540 | --with-* | --without-*) | |
7541 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7542 | ||
7543 | case $libopt in | |
7544 | *[-_]include) | |
7545 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7546 | ;; | |
7547 | *[-_]lib) | |
7548 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7549 | ;; | |
7550 | *) | |
7551 | lib=$libopt | |
7552 | ;; | |
7553 | esac | |
7554 | ||
7555 | ||
7556 | case $lib in | |
4a9bb2aa | 7557 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7558 | # If we're processing --with-$lib, --with-$lib-include or |
7559 | # --with-$lib-lib, for one of the libs above, and target is | |
7560 | # different from host, don't pass the current argument to any | |
7561 | # target library's configure. | |
7562 | if test x$is_cross_compiler = xyes; then | |
7563 | skip_targ=yes | |
7564 | fi | |
7565 | ;; | |
7566 | esac | |
7567 | ;; | |
7568 | esac | |
7569 | ||
1c710c3c | 7570 | case "$ac_arg" in |
f1a036e4 NC |
7571 | --cache-file=/dev/null | \ |
7572 | -cache-file=/dev/null ) | |
7573 | # Handled here to avoid the test to skip args below. | |
7574 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7575 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7576 | # Assert: $separate_arg should always be no. |
7577 | keep_next=$separate_arg | |
7578 | ;; | |
1c710c3c DJ |
7579 | --no*) |
7580 | continue | |
7581 | ;; | |
7582 | --c* | \ | |
7583 | --sr* | \ | |
7584 | --ho* | \ | |
7585 | --bu* | \ | |
7586 | --t* | \ | |
7587 | --program-* | \ | |
7588 | -cache_file* | \ | |
7589 | -srcdir* | \ | |
7590 | -host* | \ | |
7591 | -build* | \ | |
7592 | -target* | \ | |
7593 | -program-prefix* | \ | |
7594 | -program-suffix* | \ | |
7595 | -program-transform-name* ) | |
7596 | skip_next=$separate_arg | |
7597 | continue | |
7598 | ;; | |
7599 | -*) | |
7600 | # An option. Add it. | |
7601 | case $ac_arg in | |
7602 | *\'*) | |
7603 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7604 | esac | |
7605 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7606 | if test X"$skip_targ" = Xno; then |
7607 | tbaseargs="$tbaseargs '$ac_arg'" | |
7608 | fi | |
1c710c3c DJ |
7609 | keep_next=$separate_arg |
7610 | ;; | |
7611 | *) | |
7612 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7613 | # pass it down; let the Makefile handle this. | |
7614 | continue | |
7615 | ;; | |
7616 | esac | |
7617 | done | |
7618 | # Remove the initial space we just introduced and, as these will be | |
7619 | # expanded by make, quote '$'. | |
7620 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7621 | |
43bb47c2 DJ |
7622 | # Add in --program-transform-name, after --program-prefix and |
7623 | # --program-suffix have been applied to it. Autoconf has already | |
7624 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7625 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7626 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7627 | # Also, because we want to override the logic in subdir configure scripts to |
7628 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7629 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7630 | ${program_transform_name} | |
7631 | EOF_SED | |
7632 | gcc_transform_name=`cat conftestsed.out` | |
7633 | rm -f conftestsed.out | |
7634 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7635 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7636 | if test "$silent" = yes; then |
7637 | baseargs="$baseargs --silent" | |
29a63921 | 7638 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7639 | fi |
0115d4a3 | 7640 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7641 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7642 | |
ffedf511 RW |
7643 | # Record and document user additions to sub configure arguments. |
7644 | ||
7645 | ||
7646 | ||
7647 | ||
671aa708 NN |
7648 | # For the build-side libraries, we just need to pretend we're native, |
7649 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7650 | # desired. We can't even use the same cache file for all build-side |
7651 | # libraries, as they're compiled differently; some with C, some with | |
7652 | # C++ or with different feature-enabling options. | |
7653 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7654 | |
7655 | # For host modules, accept cache file option, or specification as blank. | |
7656 | case "${cache_file}" in | |
7657 | "") # empty | |
7658 | cache_file_option="" ;; | |
7659 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7660 | cache_file_option="--cache-file=${cache_file}" ;; | |
7661 | *) # relative path | |
7662 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7663 | esac | |
7664 | ||
09438bde NN |
7665 | # Host dirs don't like to share a cache file either, horribly enough. |
7666 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7667 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7668 | |
29a63921 | 7669 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7670 | |
7671 | # Passing a --with-cross-host argument lets the target libraries know | |
7672 | # whether they are being built with a cross-compiler or being built | |
7673 | # native. However, it would be better to use other mechanisms to make the | |
7674 | # sorts of decisions they want to make on this basis. Please consider | |
7675 | # this option to be deprecated. FIXME. | |
7676 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7677 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7678 | fi |
7679 | ||
79e0604d FXC |
7680 | # Special user-friendly check for native x86_64-linux build, if |
7681 | # multilib is not explicitly enabled. | |
7682 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7683 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7684 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7685 | dev64=no |
7686 | echo "int main () { return 0; }" > conftest.c | |
7687 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7688 | if test $? = 0 ; then | |
7689 | if test -s conftest || test -s conftest.exe ; then | |
7690 | dev64=yes | |
7691 | fi | |
7692 | fi | |
7693 | rm -f conftest* | |
7694 | if test x${dev64} != xyes ; then | |
22e05272 | 7695 | 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 |
79e0604d FXC |
7696 | fi |
7697 | ;; | |
7698 | esac | |
7699 | ||
dc683a3f RW |
7700 | # Default to --enable-multilib. |
7701 | if test x${enable_multilib} = x ; then | |
671aa708 | 7702 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7703 | fi |
671aa708 NN |
7704 | |
7705 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7706 | # changed from the earlier setting of with_newlib. | |
7707 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7708 | target_configargs="--with-newlib ${target_configargs}" | |
7709 | fi | |
7710 | ||
6b9eb62c NN |
7711 | # Different target subdirs use different values of certain variables |
7712 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7713 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7714 | # it doesn't automatically accept command-line overrides of them. | |
7715 | # This means it's not safe for target subdirs to share a cache file, | |
7716 | # which is disgusting, but there you have it. Hopefully this can be | |
7717 | # fixed in future. It's still worthwhile to use a cache file for each | |
7718 | # directory. I think. | |
7719 | ||
bebcd931 MS |
7720 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7721 | # We need to pass --target, as newer autoconf's requires consistency | |
7722 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7723 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7724 | |
671aa708 NN |
7725 | FLAGS_FOR_TARGET= |
7726 | case " $target_configdirs " in | |
7727 | *" newlib "*) | |
7728 | case " $target_configargs " in | |
7729 | *" --with-newlib "*) | |
7730 | case "$target" in | |
5d571eaa | 7731 | *-cygwin*) |
443e6238 | 7732 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7733 | ;; |
671aa708 NN |
7734 | esac |
7735 | ||
7736 | # If we're not building GCC, don't discard standard headers. | |
7737 | if test -d ${srcdir}/gcc; then | |
7738 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7739 | ||
7740 | if test "${build}" != "${host}"; then | |
7741 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7742 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7743 | # to it. This is right: we don't want to search that directory | |
7744 | # for binaries, but we want the header files in there, so add | |
7745 | # them explicitly. | |
0463992b | 7746 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7747 | |
7748 | # Someone might think of using the pre-installed headers on | |
7749 | # Canadian crosses, in case the installed compiler is not fully | |
7750 | # compatible with the compiler being built. In this case, it | |
7751 | # would be better to flag an error than risking having | |
7752 | # incompatible object files being constructed. We can't | |
7753 | # guarantee that an error will be flagged, but let's hope the | |
7754 | # compiler will do it, when presented with incompatible header | |
7755 | # files. | |
7756 | fi | |
7757 | fi | |
7758 | ||
7759 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7760 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7761 | # Here host == target, so we don't need to build gcc, |
7762 | # so we don't want to discard standard headers. | |
7763 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7764 | ;; | |
7765 | *) | |
7766 | # If we're building newlib, use its generic headers last, but search | |
7767 | # for any libc-related directories first (so make it the last -B | |
7768 | # switch). | |
7769 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
7770 | |
7771 | # If we're building libgloss, find the startup file, simulator library | |
7772 | # and linker script. | |
7773 | case " $target_configdirs " in | |
7774 | *" libgloss "*) | |
7775 | # Look for startup file, simulator library and maybe linker script. | |
7776 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7777 | # Look for libnosys.a in case the target needs it. | |
7778 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7779 | # Most targets have the linker script in the source directory. | |
7780 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7781 | ;; | |
7782 | esac | |
671aa708 NN |
7783 | ;; |
7784 | esac | |
7785 | ;; | |
7786 | esac | |
7787 | ;; | |
7788 | esac | |
5d571eaa | 7789 | |
b91f0a41 | 7790 | case "$target" in |
5d571eaa OS |
7791 | x86_64-*mingw* | *-w64-mingw*) |
7792 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7793 | # however, use a symlink named 'mingw' in ${prefix} . | |
7794 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7795 | ;; | |
7796 | *-mingw*) | |
7797 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7798 | 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' | |
7799 | ;; | |
b91f0a41 | 7800 | esac |
671aa708 | 7801 | |
6691a79e ME |
7802 | # Allow the user to override the flags for |
7803 | # our build compiler if desired. | |
f019adc1 MF |
7804 | if test x"${build}" = x"${host}" ; then |
7805 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7806 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7807 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7808 | fi | |
6691a79e | 7809 | |
671aa708 NN |
7810 | # On Canadian crosses, we'll be searching the right directories for |
7811 | # the previously-installed cross compiler, so don't bother to add | |
7812 | # flags for directories within the install tree of the compiler | |
7813 | # being built; programs in there won't even run. | |
7814 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7815 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7816 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
7817 | fi |
7818 | ||
7819 | if test "x${use_gnu_ld}" = x && | |
7820 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7821 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7822 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7823 | fi |
7824 | ||
e88a2c09 DD |
7825 | # Search for other target-specific linker scripts and such. |
7826 | case "${target}" in | |
3e19841a PB |
7827 | mep*) |
7828 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7829 | ;; | |
e88a2c09 DD |
7830 | esac |
7831 | ||
671aa708 | 7832 | # Makefile fragments. |
7b61653a PE |
7833 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7834 | do | |
7835 | eval fragval=\$$frag | |
7836 | if test $fragval != /dev/null; then | |
7837 | eval $frag=${srcdir}/$fragval | |
7838 | fi | |
7839 | done | |
671aa708 NN |
7840 | |
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | # Miscellanea: directories, flags, etc. | |
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | ||
7851 | ||
7852 | ||
d89f0ad6 | 7853 | |
23f6b2f9 | 7854 | # Build module lists & subconfigure args. |
671aa708 NN |
7855 | |
7856 | ||
7857 | ||
2abefe3d PB |
7858 | # Host module lists & subconfigure args. |
7859 | ||
7860 | ||
7861 | ||
aae29963 | 7862 | |
2abefe3d PB |
7863 | # Target module lists & subconfigure args. |
7864 | ||
7865 | ||
7866 | ||
7867 | # Build tools. | |
7868 | ||
7869 | ||
7870 | ||
0999159b PB |
7871 | |
7872 | ||
7873 | ||
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | ||
7880 | ||
7881 | ||
7882 | ||
7883 | ||
b4c522fa | 7884 | |
2abefe3d PB |
7885 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7886 | # on the build machine. These are used if the Makefile can't locate these | |
7887 | # programs in objdir. | |
7888 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7889 | ||
7890 | for ac_prog in 'bison -y' byacc yacc | |
7891 | do | |
1c710c3c | 7892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7893 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7895 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7896 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 7897 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7898 | else |
7899 | if test -n "$YACC"; then | |
7900 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7901 | else | |
1c710c3c DJ |
7902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7903 | for as_dir in $PATH | |
7904 | do | |
7905 | IFS=$as_save_IFS | |
7906 | test -z "$as_dir" && as_dir=. | |
5213506e | 7907 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7909 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7911 | break 2 |
7912 | fi | |
7913 | done | |
5213506e RW |
7914 | done |
7915 | IFS=$as_save_IFS | |
1c710c3c | 7916 | |
2abefe3d PB |
7917 | fi |
7918 | fi | |
1c710c3c | 7919 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7920 | if test -n "$YACC"; then |
5213506e RW |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7922 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7923 | else |
5213506e RW |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7925 | $as_echo "no" >&6; } | |
2abefe3d PB |
7926 | fi |
7927 | ||
5213506e | 7928 | |
1c710c3c | 7929 | test -n "$YACC" && break |
2abefe3d PB |
7930 | done |
7931 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7932 | ||
7933 | case " $build_configdirs " in | |
7934 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7935 | esac |
7936 | ||
7937 | for ac_prog in bison | |
7938 | do | |
1c710c3c | 7939 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7940 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7942 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7943 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 7944 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7945 | else |
7946 | if test -n "$BISON"; then | |
7947 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7948 | else | |
1c710c3c DJ |
7949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7950 | for as_dir in $PATH | |
7951 | do | |
7952 | IFS=$as_save_IFS | |
7953 | test -z "$as_dir" && as_dir=. | |
5213506e | 7954 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 7956 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7958 | break 2 |
7959 | fi | |
7960 | done | |
5213506e RW |
7961 | done |
7962 | IFS=$as_save_IFS | |
1c710c3c | 7963 | |
2abefe3d PB |
7964 | fi |
7965 | fi | |
1c710c3c | 7966 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7967 | if test -n "$BISON"; then |
5213506e RW |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7969 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7970 | else |
5213506e RW |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7972 | $as_echo "no" >&6; } | |
2abefe3d PB |
7973 | fi |
7974 | ||
5213506e | 7975 | |
1c710c3c | 7976 | test -n "$BISON" && break |
2abefe3d PB |
7977 | done |
7978 | test -n "$BISON" || BISON="$MISSING bison" | |
7979 | ||
7980 | case " $build_configdirs " in | |
7981 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7982 | esac | |
7983 | ||
7984 | for ac_prog in gm4 gnum4 m4 | |
7985 | do | |
1c710c3c | 7986 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7987 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7989 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7990 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 7991 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
7992 | else |
7993 | if test -n "$M4"; then | |
7994 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7995 | else | |
1c710c3c DJ |
7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7997 | for as_dir in $PATH | |
7998 | do | |
7999 | IFS=$as_save_IFS | |
8000 | test -z "$as_dir" && as_dir=. | |
5213506e | 8001 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8003 | ac_cv_prog_M4="$ac_prog" |
5213506e | 8004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8005 | break 2 |
8006 | fi | |
8007 | done | |
5213506e RW |
8008 | done |
8009 | IFS=$as_save_IFS | |
1c710c3c | 8010 | |
2abefe3d PB |
8011 | fi |
8012 | fi | |
1c710c3c | 8013 | M4=$ac_cv_prog_M4 |
2abefe3d | 8014 | if test -n "$M4"; then |
5213506e RW |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
8016 | $as_echo "$M4" >&6; } | |
2abefe3d | 8017 | else |
5213506e RW |
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8019 | $as_echo "no" >&6; } | |
2abefe3d PB |
8020 | fi |
8021 | ||
5213506e | 8022 | |
1c710c3c | 8023 | test -n "$M4" && break |
2abefe3d PB |
8024 | done |
8025 | test -n "$M4" || M4="$MISSING m4" | |
8026 | ||
8027 | case " $build_configdirs " in | |
8028 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
8029 | esac | |
8030 | ||
8031 | for ac_prog in flex lex | |
8032 | do | |
1c710c3c | 8033 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8034 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8036 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8037 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 8038 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8039 | else |
8040 | if test -n "$LEX"; then | |
8041 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8042 | else | |
1c710c3c DJ |
8043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8044 | for as_dir in $PATH | |
8045 | do | |
8046 | IFS=$as_save_IFS | |
8047 | test -z "$as_dir" && as_dir=. | |
5213506e | 8048 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8049 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8050 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 8051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8052 | break 2 |
8053 | fi | |
8054 | done | |
5213506e RW |
8055 | done |
8056 | IFS=$as_save_IFS | |
1c710c3c | 8057 | |
2abefe3d PB |
8058 | fi |
8059 | fi | |
1c710c3c | 8060 | LEX=$ac_cv_prog_LEX |
2abefe3d | 8061 | if test -n "$LEX"; then |
5213506e RW |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
8063 | $as_echo "$LEX" >&6; } | |
2abefe3d | 8064 | else |
5213506e RW |
8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8066 | $as_echo "no" >&6; } | |
2abefe3d PB |
8067 | fi |
8068 | ||
5213506e | 8069 | |
1c710c3c | 8070 | test -n "$LEX" && break |
2abefe3d PB |
8071 | done |
8072 | test -n "$LEX" || LEX="$MISSING flex" | |
8073 | ||
8074 | case " $build_configdirs " in | |
8075 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8076 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
8077 | esac | |
8078 | ||
8079 | for ac_prog in flex | |
8080 | do | |
1c710c3c | 8081 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8082 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8084 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8085 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 8086 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8087 | else |
8088 | if test -n "$FLEX"; then | |
8089 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
8090 | else | |
1c710c3c DJ |
8091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8092 | for as_dir in $PATH | |
8093 | do | |
8094 | IFS=$as_save_IFS | |
8095 | test -z "$as_dir" && as_dir=. | |
5213506e | 8096 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8098 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 8099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8100 | break 2 |
8101 | fi | |
8102 | done | |
5213506e RW |
8103 | done |
8104 | IFS=$as_save_IFS | |
1c710c3c | 8105 | |
2abefe3d PB |
8106 | fi |
8107 | fi | |
1c710c3c | 8108 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 8109 | if test -n "$FLEX"; then |
5213506e RW |
8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8111 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 8112 | else |
5213506e RW |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8114 | $as_echo "no" >&6; } | |
2abefe3d PB |
8115 | fi |
8116 | ||
5213506e | 8117 | |
1c710c3c | 8118 | test -n "$FLEX" && break |
2abefe3d PB |
8119 | done |
8120 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8121 | ||
8122 | case " $build_configdirs " in | |
8123 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8124 | esac | |
8125 | ||
8126 | for ac_prog in makeinfo | |
8127 | do | |
1c710c3c | 8128 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8129 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8131 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8132 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 8133 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8134 | else |
8135 | if test -n "$MAKEINFO"; then | |
8136 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8137 | else | |
1c710c3c DJ |
8138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8139 | for as_dir in $PATH | |
8140 | do | |
8141 | IFS=$as_save_IFS | |
8142 | test -z "$as_dir" && as_dir=. | |
5213506e | 8143 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8145 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 8146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8147 | break 2 |
8148 | fi | |
8149 | done | |
5213506e RW |
8150 | done |
8151 | IFS=$as_save_IFS | |
1c710c3c | 8152 | |
2abefe3d PB |
8153 | fi |
8154 | fi | |
1c710c3c | 8155 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 8156 | if test -n "$MAKEINFO"; then |
5213506e RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8158 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 8159 | else |
5213506e RW |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8161 | $as_echo "no" >&6; } | |
2abefe3d PB |
8162 | fi |
8163 | ||
5213506e | 8164 | |
1c710c3c | 8165 | test -n "$MAKEINFO" && break |
2abefe3d PB |
8166 | done |
8167 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8168 | ||
8169 | case " $build_configdirs " in | |
8170 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8171 | *) | |
8172 | ||
d18ff35a | 8173 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
8174 | # higher, else we use the "missing" dummy. |
8175 | if ${MAKEINFO} --version \ | |
d18ff35a | 8176 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
8177 | : |
8178 | else | |
8179 | MAKEINFO="$MISSING makeinfo" | |
8180 | fi | |
8181 | ;; | |
8182 | ||
8183 | esac | |
671aa708 | 8184 | |
2abefe3d | 8185 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 8186 | |
2abefe3d PB |
8187 | for ac_prog in expect |
8188 | do | |
1c710c3c | 8189 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8190 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8192 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8193 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 8194 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8195 | else |
8196 | if test -n "$EXPECT"; then | |
8197 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8198 | else | |
1c710c3c DJ |
8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8200 | for as_dir in $PATH | |
8201 | do | |
8202 | IFS=$as_save_IFS | |
8203 | test -z "$as_dir" && as_dir=. | |
5213506e | 8204 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8206 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 8207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8208 | break 2 |
8209 | fi | |
8210 | done | |
5213506e RW |
8211 | done |
8212 | IFS=$as_save_IFS | |
1c710c3c | 8213 | |
2abefe3d PB |
8214 | fi |
8215 | fi | |
1c710c3c | 8216 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 8217 | if test -n "$EXPECT"; then |
5213506e RW |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8219 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 8220 | else |
5213506e RW |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8222 | $as_echo "no" >&6; } | |
2abefe3d | 8223 | fi |
671aa708 | 8224 | |
5213506e | 8225 | |
1c710c3c | 8226 | test -n "$EXPECT" && break |
2abefe3d PB |
8227 | done |
8228 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 8229 | |
2abefe3d PB |
8230 | case " $configdirs " in |
8231 | *" expect "*) | |
8232 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8233 | ;; | |
8234 | esac | |
671aa708 | 8235 | |
2abefe3d PB |
8236 | for ac_prog in runtest |
8237 | do | |
1c710c3c | 8238 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8239 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8241 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8242 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 8243 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8244 | else |
8245 | if test -n "$RUNTEST"; then | |
8246 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 8247 | else |
1c710c3c DJ |
8248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8249 | for as_dir in $PATH | |
8250 | do | |
8251 | IFS=$as_save_IFS | |
8252 | test -z "$as_dir" && as_dir=. | |
5213506e | 8253 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8255 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 8256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8257 | break 2 |
8258 | fi | |
8259 | done | |
5213506e RW |
8260 | done |
8261 | IFS=$as_save_IFS | |
1c710c3c | 8262 | |
2abefe3d PB |
8263 | fi |
8264 | fi | |
1c710c3c | 8265 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 8266 | if test -n "$RUNTEST"; then |
5213506e RW |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8268 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 8269 | else |
5213506e RW |
8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8271 | $as_echo "no" >&6; } | |
2abefe3d | 8272 | fi |
671aa708 | 8273 | |
5213506e | 8274 | |
1c710c3c | 8275 | test -n "$RUNTEST" && break |
2abefe3d PB |
8276 | done |
8277 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 8278 | |
2abefe3d PB |
8279 | case " $configdirs " in |
8280 | *" dejagnu "*) | |
c394e891 | 8281 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
8282 | ;; |
8283 | esac | |
671aa708 NN |
8284 | |
8285 | ||
671aa708 | 8286 | # Host tools. |
ca9f4b81 AO |
8287 | ncn_tool_prefix= |
8288 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8289 | ncn_target_tool_prefix= | |
8290 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8291 | ||
278a7a38 AO |
8292 | |
8293 | ||
8294 | if test -n "$AR"; then | |
8295 | ac_cv_prog_AR=$AR | |
8296 | elif test -n "$ac_cv_prog_AR"; then | |
8297 | AR=$ac_cv_prog_AR | |
8298 | fi | |
8299 | ||
8300 | if test -n "$ac_cv_prog_AR"; then | |
8301 | for ncn_progname in ar; do | |
8302 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8303 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8305 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8306 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8307 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8308 | else |
8309 | if test -n "$AR"; then | |
8310 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8311 | else | |
8312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8313 | for as_dir in $PATH | |
8314 | do | |
8315 | IFS=$as_save_IFS | |
8316 | test -z "$as_dir" && as_dir=. | |
5213506e | 8317 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8319 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8321 | break 2 |
8322 | fi | |
8323 | done | |
5213506e RW |
8324 | done |
8325 | IFS=$as_save_IFS | |
278a7a38 AO |
8326 | |
8327 | fi | |
8328 | fi | |
8329 | AR=$ac_cv_prog_AR | |
8330 | if test -n "$AR"; then | |
5213506e RW |
8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8332 | $as_echo "$AR" >&6; } | |
278a7a38 | 8333 | else |
5213506e RW |
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8335 | $as_echo "no" >&6; } | |
278a7a38 AO |
8336 | fi |
8337 | ||
5213506e | 8338 | |
278a7a38 AO |
8339 | done |
8340 | fi | |
8341 | ||
8342 | for ncn_progname in ar; do | |
2693c0b0 PB |
8343 | if test -n "$ncn_tool_prefix"; then |
8344 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8345 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8347 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8348 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8349 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8350 | else |
8351 | if test -n "$AR"; then | |
8352 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8353 | else | |
1c710c3c DJ |
8354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8355 | for as_dir in $PATH | |
8356 | do | |
8357 | IFS=$as_save_IFS | |
8358 | test -z "$as_dir" && as_dir=. | |
5213506e | 8359 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8361 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8363 | break 2 |
8364 | fi | |
8365 | done | |
5213506e RW |
8366 | done |
8367 | IFS=$as_save_IFS | |
1c710c3c | 8368 | |
ca9f4b81 AO |
8369 | fi |
8370 | fi | |
1c710c3c | 8371 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8372 | if test -n "$AR"; then |
5213506e RW |
8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8374 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8375 | else |
5213506e RW |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8377 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8378 | fi |
8379 | ||
5213506e | 8380 | |
2693c0b0 PB |
8381 | fi |
8382 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8383 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8384 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8386 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8387 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 8388 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8389 | else |
2693c0b0 | 8390 | if test -n "$AR"; then |
af71363e AS |
8391 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8392 | else | |
1c710c3c DJ |
8393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8394 | for as_dir in $PATH | |
8395 | do | |
8396 | IFS=$as_save_IFS | |
8397 | test -z "$as_dir" && as_dir=. | |
5213506e | 8398 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8399 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8400 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8402 | break 2 |
8403 | fi | |
8404 | done | |
5213506e RW |
8405 | done |
8406 | IFS=$as_save_IFS | |
1c710c3c | 8407 | |
ca9f4b81 AO |
8408 | fi |
8409 | fi | |
1c710c3c | 8410 | AR=$ac_cv_prog_AR |
2693c0b0 | 8411 | if test -n "$AR"; then |
5213506e RW |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8413 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8414 | else |
5213506e RW |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8416 | $as_echo "no" >&6; } | |
ca9f4b81 | 8417 | fi |
1c710c3c | 8418 | |
5213506e | 8419 | |
2693c0b0 PB |
8420 | fi |
8421 | test -n "$ac_cv_prog_AR" && break | |
8422 | done | |
8423 | ||
8424 | if test -z "$ac_cv_prog_AR" ; then | |
8425 | set dummy ar | |
8426 | if test $build = $host ; then | |
8427 | AR="$2" | |
ca9f4b81 | 8428 | else |
2693c0b0 | 8429 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8430 | fi |
ca9f4b81 AO |
8431 | fi |
8432 | ||
278a7a38 AO |
8433 | |
8434 | ||
8435 | if test -n "$AS"; then | |
8436 | ac_cv_prog_AS=$AS | |
8437 | elif test -n "$ac_cv_prog_AS"; then | |
8438 | AS=$ac_cv_prog_AS | |
8439 | fi | |
8440 | ||
8441 | if test -n "$ac_cv_prog_AS"; then | |
8442 | for ncn_progname in as; do | |
8443 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8444 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8446 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8447 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8448 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8449 | else |
8450 | if test -n "$AS"; then | |
8451 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8452 | else | |
8453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8454 | for as_dir in $PATH | |
8455 | do | |
8456 | IFS=$as_save_IFS | |
8457 | test -z "$as_dir" && as_dir=. | |
5213506e | 8458 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8459 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8460 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8462 | break 2 |
8463 | fi | |
8464 | done | |
5213506e RW |
8465 | done |
8466 | IFS=$as_save_IFS | |
278a7a38 AO |
8467 | |
8468 | fi | |
8469 | fi | |
8470 | AS=$ac_cv_prog_AS | |
8471 | if test -n "$AS"; then | |
5213506e RW |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8473 | $as_echo "$AS" >&6; } | |
278a7a38 | 8474 | else |
5213506e RW |
8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8476 | $as_echo "no" >&6; } | |
278a7a38 AO |
8477 | fi |
8478 | ||
5213506e | 8479 | |
278a7a38 AO |
8480 | done |
8481 | fi | |
8482 | ||
8483 | for ncn_progname in as; do | |
2693c0b0 PB |
8484 | if test -n "$ncn_tool_prefix"; then |
8485 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8486 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8488 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8489 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8490 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8491 | else |
8492 | if test -n "$AS"; then | |
8493 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8494 | else |
1c710c3c DJ |
8495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8496 | for as_dir in $PATH | |
8497 | do | |
8498 | IFS=$as_save_IFS | |
8499 | test -z "$as_dir" && as_dir=. | |
5213506e | 8500 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8502 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8504 | break 2 |
8505 | fi | |
8506 | done | |
5213506e RW |
8507 | done |
8508 | IFS=$as_save_IFS | |
1c710c3c | 8509 | |
ca9f4b81 AO |
8510 | fi |
8511 | fi | |
1c710c3c | 8512 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8513 | if test -n "$AS"; then |
5213506e RW |
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8515 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8516 | else |
5213506e RW |
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8518 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8519 | fi |
8520 | ||
5213506e | 8521 | |
2693c0b0 PB |
8522 | fi |
8523 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8524 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8525 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8527 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8528 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 8529 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8530 | else |
2693c0b0 PB |
8531 | if test -n "$AS"; then |
8532 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8533 | else |
1c710c3c DJ |
8534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8535 | for as_dir in $PATH | |
8536 | do | |
8537 | IFS=$as_save_IFS | |
8538 | test -z "$as_dir" && as_dir=. | |
5213506e | 8539 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8541 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8543 | break 2 |
8544 | fi | |
8545 | done | |
5213506e RW |
8546 | done |
8547 | IFS=$as_save_IFS | |
1c710c3c | 8548 | |
ca9f4b81 AO |
8549 | fi |
8550 | fi | |
1c710c3c | 8551 | AS=$ac_cv_prog_AS |
2693c0b0 | 8552 | if test -n "$AS"; then |
5213506e RW |
8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8554 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8555 | else |
5213506e RW |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8557 | $as_echo "no" >&6; } | |
ca9f4b81 | 8558 | fi |
1c710c3c | 8559 | |
5213506e | 8560 | |
2693c0b0 PB |
8561 | fi |
8562 | test -n "$ac_cv_prog_AS" && break | |
8563 | done | |
8564 | ||
8565 | if test -z "$ac_cv_prog_AS" ; then | |
8566 | set dummy as | |
8567 | if test $build = $host ; then | |
8568 | AS="$2" | |
ca9f4b81 | 8569 | else |
2693c0b0 | 8570 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8571 | fi |
ca9f4b81 AO |
8572 | fi |
8573 | ||
278a7a38 AO |
8574 | |
8575 | ||
8576 | if test -n "$DLLTOOL"; then | |
8577 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8578 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8579 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8580 | fi | |
8581 | ||
8582 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8583 | for ncn_progname in dlltool; do | |
8584 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8585 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8587 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8588 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8589 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8590 | else |
8591 | if test -n "$DLLTOOL"; then | |
8592 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8593 | else | |
8594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8595 | for as_dir in $PATH | |
8596 | do | |
8597 | IFS=$as_save_IFS | |
8598 | test -z "$as_dir" && as_dir=. | |
5213506e | 8599 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8601 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8603 | break 2 |
8604 | fi | |
8605 | done | |
5213506e RW |
8606 | done |
8607 | IFS=$as_save_IFS | |
278a7a38 AO |
8608 | |
8609 | fi | |
8610 | fi | |
8611 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8612 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8614 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8615 | else |
5213506e RW |
8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8617 | $as_echo "no" >&6; } | |
278a7a38 AO |
8618 | fi |
8619 | ||
5213506e | 8620 | |
278a7a38 AO |
8621 | done |
8622 | fi | |
8623 | ||
8624 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8625 | if test -n "$ncn_tool_prefix"; then |
8626 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8627 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8629 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8630 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8631 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8632 | else |
8633 | if test -n "$DLLTOOL"; then | |
8634 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8635 | else | |
1c710c3c DJ |
8636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8637 | for as_dir in $PATH | |
8638 | do | |
8639 | IFS=$as_save_IFS | |
8640 | test -z "$as_dir" && as_dir=. | |
5213506e | 8641 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8643 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8645 | break 2 |
8646 | fi | |
8647 | done | |
5213506e RW |
8648 | done |
8649 | IFS=$as_save_IFS | |
1c710c3c | 8650 | |
ca9f4b81 AO |
8651 | fi |
8652 | fi | |
1c710c3c | 8653 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8654 | if test -n "$DLLTOOL"; then |
5213506e RW |
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8656 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8657 | else |
5213506e RW |
8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8659 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8660 | fi |
8661 | ||
5213506e | 8662 | |
2693c0b0 PB |
8663 | fi |
8664 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8665 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8666 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8668 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8669 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 8670 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8671 | else |
2693c0b0 PB |
8672 | if test -n "$DLLTOOL"; then |
8673 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8674 | else |
1c710c3c DJ |
8675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8676 | for as_dir in $PATH | |
8677 | do | |
8678 | IFS=$as_save_IFS | |
8679 | test -z "$as_dir" && as_dir=. | |
5213506e | 8680 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8682 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8684 | break 2 |
8685 | fi | |
8686 | done | |
5213506e RW |
8687 | done |
8688 | IFS=$as_save_IFS | |
1c710c3c | 8689 | |
ca9f4b81 AO |
8690 | fi |
8691 | fi | |
1c710c3c | 8692 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8693 | if test -n "$DLLTOOL"; then |
5213506e RW |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8695 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8696 | else |
5213506e RW |
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8698 | $as_echo "no" >&6; } | |
ca9f4b81 | 8699 | fi |
1c710c3c | 8700 | |
5213506e | 8701 | |
2693c0b0 PB |
8702 | fi |
8703 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8704 | done | |
8705 | ||
8706 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8707 | set dummy dlltool | |
8708 | if test $build = $host ; then | |
8709 | DLLTOOL="$2" | |
ca9f4b81 | 8710 | else |
2693c0b0 | 8711 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8712 | fi |
ca9f4b81 AO |
8713 | fi |
8714 | ||
278a7a38 AO |
8715 | |
8716 | ||
8717 | if test -n "$LD"; then | |
8718 | ac_cv_prog_LD=$LD | |
8719 | elif test -n "$ac_cv_prog_LD"; then | |
8720 | LD=$ac_cv_prog_LD | |
8721 | fi | |
8722 | ||
8723 | if test -n "$ac_cv_prog_LD"; then | |
8724 | for ncn_progname in ld; do | |
8725 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8726 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8728 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8729 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8730 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8731 | else |
8732 | if test -n "$LD"; then | |
8733 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8734 | else | |
8735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8736 | for as_dir in $PATH | |
8737 | do | |
8738 | IFS=$as_save_IFS | |
8739 | test -z "$as_dir" && as_dir=. | |
5213506e | 8740 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8742 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8744 | break 2 |
8745 | fi | |
8746 | done | |
5213506e RW |
8747 | done |
8748 | IFS=$as_save_IFS | |
278a7a38 AO |
8749 | |
8750 | fi | |
8751 | fi | |
8752 | LD=$ac_cv_prog_LD | |
8753 | if test -n "$LD"; then | |
5213506e RW |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8755 | $as_echo "$LD" >&6; } | |
278a7a38 | 8756 | else |
5213506e RW |
8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8758 | $as_echo "no" >&6; } | |
278a7a38 AO |
8759 | fi |
8760 | ||
5213506e | 8761 | |
278a7a38 AO |
8762 | done |
8763 | fi | |
8764 | ||
8765 | for ncn_progname in ld; do | |
2693c0b0 PB |
8766 | if test -n "$ncn_tool_prefix"; then |
8767 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8768 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8770 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8771 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8772 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
8773 | else |
8774 | if test -n "$LD"; then | |
8775 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8776 | else | |
1c710c3c DJ |
8777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8778 | for as_dir in $PATH | |
8779 | do | |
8780 | IFS=$as_save_IFS | |
8781 | test -z "$as_dir" && as_dir=. | |
5213506e | 8782 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8784 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8786 | break 2 |
8787 | fi | |
8788 | done | |
5213506e RW |
8789 | done |
8790 | IFS=$as_save_IFS | |
1c710c3c | 8791 | |
ca9f4b81 AO |
8792 | fi |
8793 | fi | |
1c710c3c | 8794 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8795 | if test -n "$LD"; then |
5213506e RW |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8797 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8798 | else |
5213506e RW |
8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8800 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8801 | fi |
8802 | ||
5213506e | 8803 | |
2693c0b0 PB |
8804 | fi |
8805 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8806 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8807 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8809 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8810 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 8811 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 8812 | else |
2693c0b0 PB |
8813 | if test -n "$LD"; then |
8814 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8815 | else |
1c710c3c DJ |
8816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8817 | for as_dir in $PATH | |
8818 | do | |
8819 | IFS=$as_save_IFS | |
8820 | test -z "$as_dir" && as_dir=. | |
5213506e | 8821 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8823 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8825 | break 2 |
8826 | fi | |
8827 | done | |
5213506e RW |
8828 | done |
8829 | IFS=$as_save_IFS | |
1c710c3c | 8830 | |
ca9f4b81 AO |
8831 | fi |
8832 | fi | |
1c710c3c | 8833 | LD=$ac_cv_prog_LD |
2693c0b0 | 8834 | if test -n "$LD"; then |
5213506e RW |
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8836 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8837 | else |
5213506e RW |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8839 | $as_echo "no" >&6; } | |
ca9f4b81 | 8840 | fi |
1c710c3c | 8841 | |
5213506e | 8842 | |
2693c0b0 PB |
8843 | fi |
8844 | test -n "$ac_cv_prog_LD" && break | |
8845 | done | |
8846 | ||
8847 | if test -z "$ac_cv_prog_LD" ; then | |
8848 | set dummy ld | |
8849 | if test $build = $host ; then | |
8850 | LD="$2" | |
ca9f4b81 | 8851 | else |
2693c0b0 | 8852 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8853 | fi |
ca9f4b81 AO |
8854 | fi |
8855 | ||
278a7a38 AO |
8856 | |
8857 | ||
8858 | if test -n "$LIPO"; then | |
8859 | ac_cv_prog_LIPO=$LIPO | |
8860 | elif test -n "$ac_cv_prog_LIPO"; then | |
8861 | LIPO=$ac_cv_prog_LIPO | |
8862 | fi | |
8863 | ||
8864 | if test -n "$ac_cv_prog_LIPO"; then | |
8865 | for ncn_progname in lipo; do | |
8866 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8867 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8869 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8870 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8871 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
8872 | else |
8873 | if test -n "$LIPO"; then | |
8874 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8875 | else | |
8876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8877 | for as_dir in $PATH | |
8878 | do | |
8879 | IFS=$as_save_IFS | |
8880 | test -z "$as_dir" && as_dir=. | |
5213506e | 8881 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 8883 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8885 | break 2 |
8886 | fi | |
8887 | done | |
5213506e RW |
8888 | done |
8889 | IFS=$as_save_IFS | |
278a7a38 AO |
8890 | |
8891 | fi | |
8892 | fi | |
8893 | LIPO=$ac_cv_prog_LIPO | |
8894 | if test -n "$LIPO"; then | |
5213506e RW |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8896 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8897 | else |
5213506e RW |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8899 | $as_echo "no" >&6; } | |
278a7a38 AO |
8900 | fi |
8901 | ||
5213506e | 8902 | |
278a7a38 AO |
8903 | done |
8904 | fi | |
8905 | ||
8906 | for ncn_progname in lipo; do | |
2abefe3d PB |
8907 | if test -n "$ncn_tool_prefix"; then |
8908 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8909 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8911 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8912 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8913 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8914 | else |
8915 | if test -n "$LIPO"; then | |
8916 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8917 | else | |
1c710c3c DJ |
8918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8919 | for as_dir in $PATH | |
8920 | do | |
8921 | IFS=$as_save_IFS | |
8922 | test -z "$as_dir" && as_dir=. | |
5213506e | 8923 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8925 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8927 | break 2 |
8928 | fi | |
8929 | done | |
5213506e RW |
8930 | done |
8931 | IFS=$as_save_IFS | |
1c710c3c | 8932 | |
2abefe3d PB |
8933 | fi |
8934 | fi | |
1c710c3c | 8935 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8936 | if test -n "$LIPO"; then |
5213506e RW |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8938 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8939 | else |
5213506e RW |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8941 | $as_echo "no" >&6; } | |
2abefe3d PB |
8942 | fi |
8943 | ||
5213506e | 8944 | |
2abefe3d PB |
8945 | fi |
8946 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8947 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8948 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8950 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8951 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8952 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8953 | else |
8954 | if test -n "$LIPO"; then | |
8955 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8956 | else | |
1c710c3c DJ |
8957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8958 | for as_dir in $PATH | |
8959 | do | |
8960 | IFS=$as_save_IFS | |
8961 | test -z "$as_dir" && as_dir=. | |
5213506e | 8962 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8964 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8966 | break 2 |
8967 | fi | |
8968 | done | |
5213506e RW |
8969 | done |
8970 | IFS=$as_save_IFS | |
1c710c3c | 8971 | |
2abefe3d PB |
8972 | fi |
8973 | fi | |
1c710c3c | 8974 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8975 | if test -n "$LIPO"; then |
5213506e RW |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8977 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8978 | else |
5213506e RW |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8980 | $as_echo "no" >&6; } | |
2abefe3d | 8981 | fi |
1c710c3c | 8982 | |
5213506e | 8983 | |
2abefe3d PB |
8984 | fi |
8985 | test -n "$ac_cv_prog_LIPO" && break | |
8986 | done | |
8987 | ||
8988 | if test -z "$ac_cv_prog_LIPO" ; then | |
8989 | set dummy lipo | |
8990 | if test $build = $host ; then | |
8991 | LIPO="$2" | |
8992 | else | |
8993 | LIPO="${ncn_tool_prefix}$2" | |
8994 | fi | |
8995 | fi | |
8996 | ||
278a7a38 AO |
8997 | |
8998 | ||
8999 | if test -n "$NM"; then | |
9000 | ac_cv_prog_NM=$NM | |
9001 | elif test -n "$ac_cv_prog_NM"; then | |
9002 | NM=$ac_cv_prog_NM | |
9003 | fi | |
9004 | ||
9005 | if test -n "$ac_cv_prog_NM"; then | |
9006 | for ncn_progname in nm; do | |
9007 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9008 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9010 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9011 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 9012 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9013 | else |
9014 | if test -n "$NM"; then | |
9015 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9016 | else | |
1c710c3c DJ |
9017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9018 | for as_dir in $PATH | |
9019 | do | |
9020 | IFS=$as_save_IFS | |
9021 | test -z "$as_dir" && as_dir=. | |
5213506e | 9022 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9024 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 9025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9026 | break 2 |
9027 | fi | |
9028 | done | |
5213506e RW |
9029 | done |
9030 | IFS=$as_save_IFS | |
1c710c3c | 9031 | |
ca9f4b81 AO |
9032 | fi |
9033 | fi | |
1c710c3c | 9034 | NM=$ac_cv_prog_NM |
ca9f4b81 | 9035 | if test -n "$NM"; then |
5213506e RW |
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9037 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 9038 | else |
5213506e RW |
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9040 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9041 | fi |
9042 | ||
5213506e | 9043 | |
278a7a38 AO |
9044 | done |
9045 | fi | |
9046 | ||
9047 | for ncn_progname in nm; do | |
9048 | if test -n "$ncn_tool_prefix"; then | |
9049 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9050 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9052 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9053 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 9054 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9055 | else |
2693c0b0 PB |
9056 | if test -n "$NM"; then |
9057 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 9058 | else |
1c710c3c DJ |
9059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9060 | for as_dir in $PATH | |
9061 | do | |
9062 | IFS=$as_save_IFS | |
9063 | test -z "$as_dir" && as_dir=. | |
5213506e | 9064 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9066 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9068 | break 2 |
9069 | fi | |
9070 | done | |
5213506e RW |
9071 | done |
9072 | IFS=$as_save_IFS | |
1c710c3c | 9073 | |
ca9f4b81 AO |
9074 | fi |
9075 | fi | |
1c710c3c | 9076 | NM=$ac_cv_prog_NM |
2693c0b0 | 9077 | if test -n "$NM"; then |
5213506e RW |
9078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9079 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 9080 | else |
5213506e RW |
9081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9082 | $as_echo "no" >&6; } | |
ca9f4b81 | 9083 | fi |
1c710c3c | 9084 | |
5213506e | 9085 | |
2693c0b0 | 9086 | fi |
278a7a38 AO |
9087 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
9088 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9089 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9091 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9092 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 9093 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9094 | else |
9095 | if test -n "$NM"; then | |
9096 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
9097 | else | |
9098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9099 | for as_dir in $PATH | |
9100 | do | |
9101 | IFS=$as_save_IFS | |
9102 | test -z "$as_dir" && as_dir=. | |
5213506e | 9103 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9105 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 9106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9107 | break 2 |
9108 | fi | |
9109 | done | |
5213506e RW |
9110 | done |
9111 | IFS=$as_save_IFS | |
278a7a38 AO |
9112 | |
9113 | fi | |
9114 | fi | |
9115 | NM=$ac_cv_prog_NM | |
9116 | if test -n "$NM"; then | |
5213506e RW |
9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9118 | $as_echo "$NM" >&6; } | |
278a7a38 | 9119 | else |
5213506e RW |
9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9121 | $as_echo "no" >&6; } | |
278a7a38 AO |
9122 | fi |
9123 | ||
5213506e | 9124 | |
278a7a38 AO |
9125 | fi |
9126 | test -n "$ac_cv_prog_NM" && break | |
9127 | done | |
9128 | ||
9129 | if test -z "$ac_cv_prog_NM" ; then | |
9130 | set dummy nm | |
9131 | if test $build = $host ; then | |
9132 | NM="$2" | |
9133 | else | |
9134 | NM="${ncn_tool_prefix}$2" | |
9135 | fi | |
9136 | fi | |
9137 | ||
9138 | ||
9139 | ||
9140 | if test -n "$RANLIB"; then | |
9141 | ac_cv_prog_RANLIB=$RANLIB | |
9142 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9143 | RANLIB=$ac_cv_prog_RANLIB | |
9144 | fi | |
9145 | ||
9146 | if test -n "$ac_cv_prog_RANLIB"; then | |
9147 | for ncn_progname in ranlib; do | |
9148 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9149 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9151 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9152 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9153 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9154 | else |
9155 | if test -n "$RANLIB"; then | |
9156 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9157 | else | |
9158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9159 | for as_dir in $PATH | |
9160 | do | |
9161 | IFS=$as_save_IFS | |
9162 | test -z "$as_dir" && as_dir=. | |
5213506e | 9163 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9165 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9167 | break 2 |
9168 | fi | |
9169 | done | |
5213506e RW |
9170 | done |
9171 | IFS=$as_save_IFS | |
278a7a38 AO |
9172 | |
9173 | fi | |
9174 | fi | |
9175 | RANLIB=$ac_cv_prog_RANLIB | |
9176 | if test -n "$RANLIB"; then | |
5213506e RW |
9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9178 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 9179 | else |
5213506e RW |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9181 | $as_echo "no" >&6; } | |
278a7a38 AO |
9182 | fi |
9183 | ||
5213506e | 9184 | |
278a7a38 AO |
9185 | done |
9186 | fi | |
ca9f4b81 | 9187 | |
278a7a38 | 9188 | for ncn_progname in ranlib; do |
2693c0b0 PB |
9189 | if test -n "$ncn_tool_prefix"; then |
9190 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9191 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9193 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9194 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9195 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9196 | else |
9197 | if test -n "$RANLIB"; then | |
9198 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9199 | else | |
1c710c3c DJ |
9200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9201 | for as_dir in $PATH | |
9202 | do | |
9203 | IFS=$as_save_IFS | |
9204 | test -z "$as_dir" && as_dir=. | |
5213506e | 9205 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9207 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9209 | break 2 |
9210 | fi | |
9211 | done | |
5213506e RW |
9212 | done |
9213 | IFS=$as_save_IFS | |
1c710c3c | 9214 | |
ca9f4b81 AO |
9215 | fi |
9216 | fi | |
1c710c3c | 9217 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 9218 | if test -n "$RANLIB"; then |
5213506e RW |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9220 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9221 | else |
5213506e RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9223 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9224 | fi |
9225 | ||
5213506e | 9226 | |
2693c0b0 PB |
9227 | fi |
9228 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9229 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9230 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9232 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9233 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 9234 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9235 | else |
2693c0b0 PB |
9236 | if test -n "$RANLIB"; then |
9237 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 9238 | else |
1c710c3c DJ |
9239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9240 | for as_dir in $PATH | |
9241 | do | |
9242 | IFS=$as_save_IFS | |
9243 | test -z "$as_dir" && as_dir=. | |
5213506e | 9244 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9246 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9248 | break 2 |
9249 | fi | |
9250 | done | |
5213506e RW |
9251 | done |
9252 | IFS=$as_save_IFS | |
1c710c3c | 9253 | |
ca9f4b81 AO |
9254 | fi |
9255 | fi | |
1c710c3c | 9256 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 9257 | if test -n "$RANLIB"; then |
5213506e RW |
9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9259 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9260 | else |
5213506e RW |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9262 | $as_echo "no" >&6; } | |
ca9f4b81 | 9263 | fi |
1c710c3c | 9264 | |
5213506e | 9265 | |
ca9f4b81 | 9266 | fi |
2693c0b0 PB |
9267 | test -n "$ac_cv_prog_RANLIB" && break |
9268 | done | |
9269 | ||
9270 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 9271 | RANLIB="true" |
ca9f4b81 AO |
9272 | fi |
9273 | ||
278a7a38 AO |
9274 | |
9275 | ||
9276 | if test -n "$STRIP"; then | |
9277 | ac_cv_prog_STRIP=$STRIP | |
9278 | elif test -n "$ac_cv_prog_STRIP"; then | |
9279 | STRIP=$ac_cv_prog_STRIP | |
9280 | fi | |
9281 | ||
9282 | if test -n "$ac_cv_prog_STRIP"; then | |
9283 | for ncn_progname in strip; do | |
9284 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9285 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9287 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9288 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9289 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9290 | else |
9291 | if test -n "$STRIP"; then | |
9292 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9293 | else | |
9294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9295 | for as_dir in $PATH | |
9296 | do | |
9297 | IFS=$as_save_IFS | |
9298 | test -z "$as_dir" && as_dir=. | |
5213506e | 9299 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9300 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9301 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9302 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9303 | break 2 |
9304 | fi | |
9305 | done | |
5213506e RW |
9306 | done |
9307 | IFS=$as_save_IFS | |
278a7a38 AO |
9308 | |
9309 | fi | |
9310 | fi | |
9311 | STRIP=$ac_cv_prog_STRIP | |
9312 | if test -n "$STRIP"; then | |
5213506e RW |
9313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9314 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9315 | else |
5213506e RW |
9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9317 | $as_echo "no" >&6; } | |
278a7a38 AO |
9318 | fi |
9319 | ||
5213506e | 9320 | |
278a7a38 AO |
9321 | done |
9322 | fi | |
9323 | ||
9324 | for ncn_progname in strip; do | |
2abefe3d PB |
9325 | if test -n "$ncn_tool_prefix"; then |
9326 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9327 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9329 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9330 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9331 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9332 | else |
9333 | if test -n "$STRIP"; then | |
9334 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9335 | else | |
1c710c3c DJ |
9336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9337 | for as_dir in $PATH | |
9338 | do | |
9339 | IFS=$as_save_IFS | |
9340 | test -z "$as_dir" && as_dir=. | |
5213506e | 9341 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9343 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9345 | break 2 |
9346 | fi | |
9347 | done | |
5213506e RW |
9348 | done |
9349 | IFS=$as_save_IFS | |
1c710c3c | 9350 | |
2abefe3d PB |
9351 | fi |
9352 | fi | |
1c710c3c | 9353 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9354 | if test -n "$STRIP"; then |
5213506e RW |
9355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9356 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9357 | else |
5213506e RW |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9359 | $as_echo "no" >&6; } | |
2abefe3d PB |
9360 | fi |
9361 | ||
5213506e | 9362 | |
2abefe3d PB |
9363 | fi |
9364 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9365 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9366 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9368 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9369 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 9370 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9371 | else |
9372 | if test -n "$STRIP"; then | |
9373 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9374 | else | |
1c710c3c DJ |
9375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9376 | for as_dir in $PATH | |
9377 | do | |
9378 | IFS=$as_save_IFS | |
9379 | test -z "$as_dir" && as_dir=. | |
5213506e | 9380 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9382 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9384 | break 2 |
9385 | fi | |
9386 | done | |
5213506e RW |
9387 | done |
9388 | IFS=$as_save_IFS | |
1c710c3c | 9389 | |
2abefe3d PB |
9390 | fi |
9391 | fi | |
1c710c3c | 9392 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9393 | if test -n "$STRIP"; then |
5213506e RW |
9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9395 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9396 | else |
5213506e RW |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9398 | $as_echo "no" >&6; } | |
2abefe3d | 9399 | fi |
1c710c3c | 9400 | |
5213506e | 9401 | |
2abefe3d PB |
9402 | fi |
9403 | test -n "$ac_cv_prog_STRIP" && break | |
9404 | done | |
9405 | ||
9406 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9407 | STRIP="true" |
2abefe3d PB |
9408 | fi |
9409 | ||
278a7a38 AO |
9410 | |
9411 | ||
9412 | if test -n "$WINDRES"; then | |
9413 | ac_cv_prog_WINDRES=$WINDRES | |
9414 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9415 | WINDRES=$ac_cv_prog_WINDRES | |
9416 | fi | |
9417 | ||
9418 | if test -n "$ac_cv_prog_WINDRES"; then | |
9419 | for ncn_progname in windres; do | |
9420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9421 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9423 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9424 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9425 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9426 | else |
9427 | if test -n "$WINDRES"; then | |
9428 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9429 | else | |
9430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9431 | for as_dir in $PATH | |
9432 | do | |
9433 | IFS=$as_save_IFS | |
9434 | test -z "$as_dir" && as_dir=. | |
5213506e | 9435 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9436 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9437 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9439 | break 2 |
9440 | fi | |
9441 | done | |
5213506e RW |
9442 | done |
9443 | IFS=$as_save_IFS | |
278a7a38 AO |
9444 | |
9445 | fi | |
9446 | fi | |
9447 | WINDRES=$ac_cv_prog_WINDRES | |
9448 | if test -n "$WINDRES"; then | |
5213506e RW |
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9450 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9451 | else |
5213506e RW |
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9453 | $as_echo "no" >&6; } | |
278a7a38 AO |
9454 | fi |
9455 | ||
5213506e | 9456 | |
278a7a38 AO |
9457 | done |
9458 | fi | |
9459 | ||
9460 | for ncn_progname in windres; do | |
2693c0b0 PB |
9461 | if test -n "$ncn_tool_prefix"; then |
9462 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9463 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9465 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9466 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9467 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9468 | else |
9469 | if test -n "$WINDRES"; then | |
9470 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9471 | else | |
1c710c3c DJ |
9472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9473 | for as_dir in $PATH | |
9474 | do | |
9475 | IFS=$as_save_IFS | |
9476 | test -z "$as_dir" && as_dir=. | |
5213506e | 9477 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9479 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9481 | break 2 |
9482 | fi | |
9483 | done | |
5213506e RW |
9484 | done |
9485 | IFS=$as_save_IFS | |
1c710c3c | 9486 | |
ca9f4b81 AO |
9487 | fi |
9488 | fi | |
1c710c3c | 9489 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9490 | if test -n "$WINDRES"; then |
5213506e RW |
9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9492 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9493 | else |
5213506e RW |
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9495 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9496 | fi |
9497 | ||
5213506e | 9498 | |
2693c0b0 PB |
9499 | fi |
9500 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9501 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9502 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9504 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9505 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 9506 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9507 | else |
2693c0b0 PB |
9508 | if test -n "$WINDRES"; then |
9509 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9510 | else |
1c710c3c DJ |
9511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9512 | for as_dir in $PATH | |
9513 | do | |
9514 | IFS=$as_save_IFS | |
9515 | test -z "$as_dir" && as_dir=. | |
5213506e | 9516 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9518 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9520 | break 2 |
9521 | fi | |
9522 | done | |
5213506e RW |
9523 | done |
9524 | IFS=$as_save_IFS | |
1c710c3c | 9525 | |
ca9f4b81 AO |
9526 | fi |
9527 | fi | |
1c710c3c | 9528 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9529 | if test -n "$WINDRES"; then |
5213506e RW |
9530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9531 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9532 | else |
5213506e RW |
9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9534 | $as_echo "no" >&6; } | |
ca9f4b81 | 9535 | fi |
1c710c3c | 9536 | |
5213506e | 9537 | |
2693c0b0 PB |
9538 | fi |
9539 | test -n "$ac_cv_prog_WINDRES" && break | |
9540 | done | |
9541 | ||
9542 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9543 | set dummy windres | |
9544 | if test $build = $host ; then | |
9545 | WINDRES="$2" | |
ca9f4b81 | 9546 | else |
2693c0b0 | 9547 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9548 | fi |
ca9f4b81 AO |
9549 | fi |
9550 | ||
278a7a38 AO |
9551 | |
9552 | ||
901119ae KT |
9553 | if test -n "$WINDMC"; then |
9554 | ac_cv_prog_WINDMC=$WINDMC | |
9555 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9556 | WINDMC=$ac_cv_prog_WINDMC | |
9557 | fi | |
9558 | ||
9559 | if test -n "$ac_cv_prog_WINDMC"; then | |
9560 | for ncn_progname in windmc; do | |
9561 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9562 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9564 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9565 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9566 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9567 | else |
9568 | if test -n "$WINDMC"; then | |
9569 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9570 | else | |
9571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9572 | for as_dir in $PATH | |
9573 | do | |
9574 | IFS=$as_save_IFS | |
9575 | test -z "$as_dir" && as_dir=. | |
5213506e | 9576 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9578 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9580 | break 2 |
9581 | fi | |
9582 | done | |
5213506e RW |
9583 | done |
9584 | IFS=$as_save_IFS | |
901119ae KT |
9585 | |
9586 | fi | |
9587 | fi | |
9588 | WINDMC=$ac_cv_prog_WINDMC | |
9589 | if test -n "$WINDMC"; then | |
5213506e RW |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9591 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9592 | else |
5213506e RW |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9594 | $as_echo "no" >&6; } | |
901119ae KT |
9595 | fi |
9596 | ||
5213506e | 9597 | |
901119ae KT |
9598 | done |
9599 | fi | |
9600 | ||
9601 | for ncn_progname in windmc; do | |
9602 | if test -n "$ncn_tool_prefix"; then | |
9603 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9604 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9606 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9607 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9608 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9609 | else |
9610 | if test -n "$WINDMC"; then | |
9611 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9612 | else | |
9613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9614 | for as_dir in $PATH | |
9615 | do | |
9616 | IFS=$as_save_IFS | |
9617 | test -z "$as_dir" && as_dir=. | |
5213506e | 9618 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9620 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9622 | break 2 |
9623 | fi | |
9624 | done | |
5213506e RW |
9625 | done |
9626 | IFS=$as_save_IFS | |
901119ae KT |
9627 | |
9628 | fi | |
9629 | fi | |
9630 | WINDMC=$ac_cv_prog_WINDMC | |
9631 | if test -n "$WINDMC"; then | |
5213506e RW |
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9633 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9634 | else |
5213506e RW |
9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9636 | $as_echo "no" >&6; } | |
901119ae KT |
9637 | fi |
9638 | ||
5213506e | 9639 | |
901119ae KT |
9640 | fi |
9641 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9642 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9643 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9645 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9646 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 9647 | $as_echo_n "(cached) " >&6 |
901119ae KT |
9648 | else |
9649 | if test -n "$WINDMC"; then | |
9650 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9651 | else | |
9652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9653 | for as_dir in $PATH | |
9654 | do | |
9655 | IFS=$as_save_IFS | |
9656 | test -z "$as_dir" && as_dir=. | |
5213506e | 9657 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 9659 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9661 | break 2 |
9662 | fi | |
9663 | done | |
5213506e RW |
9664 | done |
9665 | IFS=$as_save_IFS | |
901119ae KT |
9666 | |
9667 | fi | |
9668 | fi | |
9669 | WINDMC=$ac_cv_prog_WINDMC | |
9670 | if test -n "$WINDMC"; then | |
5213506e RW |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9672 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9673 | else |
5213506e RW |
9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9675 | $as_echo "no" >&6; } | |
901119ae KT |
9676 | fi |
9677 | ||
5213506e | 9678 | |
901119ae KT |
9679 | fi |
9680 | test -n "$ac_cv_prog_WINDMC" && break | |
9681 | done | |
9682 | ||
9683 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9684 | set dummy windmc | |
9685 | if test $build = $host ; then | |
9686 | WINDMC="$2" | |
9687 | else | |
9688 | WINDMC="${ncn_tool_prefix}$2" | |
9689 | fi | |
9690 | fi | |
9691 | ||
9692 | ||
9693 | ||
278a7a38 AO |
9694 | if test -n "$OBJCOPY"; then |
9695 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9696 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9697 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9698 | fi | |
9699 | ||
9700 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9701 | for ncn_progname in objcopy; do | |
9702 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9703 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9705 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9706 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9707 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9708 | else |
9709 | if test -n "$OBJCOPY"; then | |
9710 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9711 | else | |
9712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9713 | for as_dir in $PATH | |
9714 | do | |
9715 | IFS=$as_save_IFS | |
9716 | test -z "$as_dir" && as_dir=. | |
5213506e | 9717 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9719 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9721 | break 2 |
9722 | fi | |
9723 | done | |
5213506e RW |
9724 | done |
9725 | IFS=$as_save_IFS | |
278a7a38 AO |
9726 | |
9727 | fi | |
9728 | fi | |
9729 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9730 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9732 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9733 | else |
5213506e RW |
9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9735 | $as_echo "no" >&6; } | |
278a7a38 AO |
9736 | fi |
9737 | ||
5213506e | 9738 | |
278a7a38 AO |
9739 | done |
9740 | fi | |
9741 | ||
9742 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9743 | if test -n "$ncn_tool_prefix"; then |
9744 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9745 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9747 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9748 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9749 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9750 | else |
9751 | if test -n "$OBJCOPY"; then | |
9752 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9753 | else | |
1c710c3c DJ |
9754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9755 | for as_dir in $PATH | |
9756 | do | |
9757 | IFS=$as_save_IFS | |
9758 | test -z "$as_dir" && as_dir=. | |
5213506e | 9759 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9761 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9763 | break 2 |
9764 | fi | |
9765 | done | |
5213506e RW |
9766 | done |
9767 | IFS=$as_save_IFS | |
1c710c3c | 9768 | |
ca9f4b81 AO |
9769 | fi |
9770 | fi | |
1c710c3c | 9771 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9772 | if test -n "$OBJCOPY"; then |
5213506e RW |
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9774 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9775 | else |
5213506e RW |
9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9777 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9778 | fi |
9779 | ||
5213506e | 9780 | |
2693c0b0 PB |
9781 | fi |
9782 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9784 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9786 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9787 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 9788 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9789 | else |
2693c0b0 PB |
9790 | if test -n "$OBJCOPY"; then |
9791 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9792 | else |
1c710c3c DJ |
9793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9794 | for as_dir in $PATH | |
9795 | do | |
9796 | IFS=$as_save_IFS | |
9797 | test -z "$as_dir" && as_dir=. | |
5213506e | 9798 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9800 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9802 | break 2 |
9803 | fi | |
9804 | done | |
5213506e RW |
9805 | done |
9806 | IFS=$as_save_IFS | |
1c710c3c | 9807 | |
ca9f4b81 AO |
9808 | fi |
9809 | fi | |
1c710c3c | 9810 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9811 | if test -n "$OBJCOPY"; then |
5213506e RW |
9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9813 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9814 | else |
5213506e RW |
9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9816 | $as_echo "no" >&6; } | |
ca9f4b81 | 9817 | fi |
1c710c3c | 9818 | |
5213506e | 9819 | |
2693c0b0 PB |
9820 | fi |
9821 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9822 | done | |
9823 | ||
9824 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9825 | set dummy objcopy | |
9826 | if test $build = $host ; then | |
9827 | OBJCOPY="$2" | |
ca9f4b81 | 9828 | else |
2693c0b0 | 9829 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9830 | fi |
ca9f4b81 AO |
9831 | fi |
9832 | ||
278a7a38 AO |
9833 | |
9834 | ||
9835 | if test -n "$OBJDUMP"; then | |
9836 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9837 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9838 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9839 | fi | |
9840 | ||
9841 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9842 | for ncn_progname in objdump; do | |
9843 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9844 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9846 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9847 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 9848 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9849 | else |
9850 | if test -n "$OBJDUMP"; then | |
9851 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9852 | else | |
9853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9854 | for as_dir in $PATH | |
9855 | do | |
9856 | IFS=$as_save_IFS | |
9857 | test -z "$as_dir" && as_dir=. | |
5213506e | 9858 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9860 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9862 | break 2 |
9863 | fi | |
9864 | done | |
5213506e RW |
9865 | done |
9866 | IFS=$as_save_IFS | |
278a7a38 AO |
9867 | |
9868 | fi | |
9869 | fi | |
9870 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9871 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9873 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9874 | else |
5213506e RW |
9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9876 | $as_echo "no" >&6; } | |
278a7a38 AO |
9877 | fi |
9878 | ||
5213506e | 9879 | |
278a7a38 AO |
9880 | done |
9881 | fi | |
9882 | ||
9883 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9884 | if test -n "$ncn_tool_prefix"; then |
9885 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9886 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9888 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9889 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 9890 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9891 | else |
9892 | if test -n "$OBJDUMP"; then | |
9893 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9894 | else | |
1c710c3c DJ |
9895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9896 | for as_dir in $PATH | |
9897 | do | |
9898 | IFS=$as_save_IFS | |
9899 | test -z "$as_dir" && as_dir=. | |
5213506e | 9900 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9902 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9904 | break 2 |
9905 | fi | |
9906 | done | |
5213506e RW |
9907 | done |
9908 | IFS=$as_save_IFS | |
1c710c3c | 9909 | |
ca9f4b81 AO |
9910 | fi |
9911 | fi | |
1c710c3c | 9912 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9913 | if test -n "$OBJDUMP"; then |
5213506e RW |
9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9915 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9916 | else |
5213506e RW |
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9918 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9919 | fi |
9920 | ||
5213506e | 9921 | |
2693c0b0 PB |
9922 | fi |
9923 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9924 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9925 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9927 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9928 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 9929 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9930 | else |
2693c0b0 PB |
9931 | if test -n "$OBJDUMP"; then |
9932 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9933 | else |
1c710c3c DJ |
9934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9935 | for as_dir in $PATH | |
9936 | do | |
9937 | IFS=$as_save_IFS | |
9938 | test -z "$as_dir" && as_dir=. | |
5213506e | 9939 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9941 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9943 | break 2 |
9944 | fi | |
9945 | done | |
5213506e RW |
9946 | done |
9947 | IFS=$as_save_IFS | |
1c710c3c | 9948 | |
ca9f4b81 AO |
9949 | fi |
9950 | fi | |
1c710c3c | 9951 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9952 | if test -n "$OBJDUMP"; then |
5213506e RW |
9953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9954 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9955 | else |
5213506e RW |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9957 | $as_echo "no" >&6; } | |
ca9f4b81 | 9958 | fi |
1c710c3c | 9959 | |
5213506e | 9960 | |
2693c0b0 PB |
9961 | fi |
9962 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9963 | done | |
9964 | ||
9965 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9966 | set dummy objdump | |
9967 | if test $build = $host ; then | |
9968 | OBJDUMP="$2" | |
ca9f4b81 | 9969 | else |
2693c0b0 | 9970 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9971 | fi |
ca9f4b81 AO |
9972 | fi |
9973 | ||
671aa708 NN |
9974 | |
9975 | ||
e4a9a572 IS |
9976 | if test -n "$OTOOL"; then |
9977 | ac_cv_prog_OTOOL=$OTOOL | |
9978 | elif test -n "$ac_cv_prog_OTOOL"; then | |
9979 | OTOOL=$ac_cv_prog_OTOOL | |
9980 | fi | |
9981 | ||
9982 | if test -n "$ac_cv_prog_OTOOL"; then | |
9983 | for ncn_progname in otool; do | |
9984 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9985 | set dummy ${ncn_progname}; ac_word=$2 | |
9986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9987 | $as_echo_n "checking for $ac_word... " >&6; } | |
9988 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9989 | $as_echo_n "(cached) " >&6 | |
9990 | else | |
9991 | if test -n "$OTOOL"; then | |
9992 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9993 | else | |
9994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9995 | for as_dir in $PATH | |
9996 | do | |
9997 | IFS=$as_save_IFS | |
9998 | test -z "$as_dir" && as_dir=. | |
9999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10001 | ac_cv_prog_OTOOL="${ncn_progname}" | |
10002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10003 | break 2 | |
10004 | fi | |
10005 | done | |
10006 | done | |
10007 | IFS=$as_save_IFS | |
10008 | ||
10009 | fi | |
10010 | fi | |
10011 | OTOOL=$ac_cv_prog_OTOOL | |
10012 | if test -n "$OTOOL"; then | |
10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10014 | $as_echo "$OTOOL" >&6; } | |
10015 | else | |
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10017 | $as_echo "no" >&6; } | |
10018 | fi | |
10019 | ||
10020 | ||
10021 | done | |
10022 | fi | |
10023 | ||
10024 | for ncn_progname in otool; do | |
10025 | if test -n "$ncn_tool_prefix"; then | |
10026 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10027 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10029 | $as_echo_n "checking for $ac_word... " >&6; } | |
10030 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10031 | $as_echo_n "(cached) " >&6 | |
10032 | else | |
10033 | if test -n "$OTOOL"; then | |
10034 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10035 | else | |
10036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10037 | for as_dir in $PATH | |
10038 | do | |
10039 | IFS=$as_save_IFS | |
10040 | test -z "$as_dir" && as_dir=. | |
10041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10043 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
10044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10045 | break 2 | |
10046 | fi | |
10047 | done | |
10048 | done | |
10049 | IFS=$as_save_IFS | |
10050 | ||
10051 | fi | |
10052 | fi | |
10053 | OTOOL=$ac_cv_prog_OTOOL | |
10054 | if test -n "$OTOOL"; then | |
10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10056 | $as_echo "$OTOOL" >&6; } | |
10057 | else | |
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10059 | $as_echo "no" >&6; } | |
10060 | fi | |
10061 | ||
10062 | ||
10063 | fi | |
10064 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
10065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10066 | set dummy ${ncn_progname}; ac_word=$2 | |
10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10068 | $as_echo_n "checking for $ac_word... " >&6; } | |
10069 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10070 | $as_echo_n "(cached) " >&6 | |
10071 | else | |
10072 | if test -n "$OTOOL"; then | |
10073 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10074 | else | |
10075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10076 | for as_dir in $PATH | |
10077 | do | |
10078 | IFS=$as_save_IFS | |
10079 | test -z "$as_dir" && as_dir=. | |
10080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10082 | ac_cv_prog_OTOOL="${ncn_progname}" | |
10083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10084 | break 2 | |
10085 | fi | |
10086 | done | |
10087 | done | |
10088 | IFS=$as_save_IFS | |
10089 | ||
10090 | fi | |
10091 | fi | |
10092 | OTOOL=$ac_cv_prog_OTOOL | |
10093 | if test -n "$OTOOL"; then | |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
10095 | $as_echo "$OTOOL" >&6; } | |
10096 | else | |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10098 | $as_echo "no" >&6; } | |
10099 | fi | |
10100 | ||
10101 | ||
10102 | fi | |
10103 | test -n "$ac_cv_prog_OTOOL" && break | |
10104 | done | |
10105 | ||
10106 | if test -z "$ac_cv_prog_OTOOL" ; then | |
10107 | set dummy otool | |
10108 | if test $build = $host ; then | |
10109 | OTOOL="$2" | |
10110 | else | |
10111 | OTOOL="${ncn_tool_prefix}$2" | |
10112 | fi | |
10113 | fi | |
10114 | ||
10115 | ||
10116 | ||
e7a82751 RM |
10117 | if test -n "$READELF"; then |
10118 | ac_cv_prog_READELF=$READELF | |
10119 | elif test -n "$ac_cv_prog_READELF"; then | |
10120 | READELF=$ac_cv_prog_READELF | |
10121 | fi | |
10122 | ||
10123 | if test -n "$ac_cv_prog_READELF"; then | |
10124 | for ncn_progname in readelf; do | |
10125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10126 | set dummy ${ncn_progname}; ac_word=$2 | |
10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10128 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10129 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10130 | $as_echo_n "(cached) " >&6 |
10131 | else | |
10132 | if test -n "$READELF"; then | |
10133 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10134 | else | |
10135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10136 | for as_dir in $PATH | |
10137 | do | |
10138 | IFS=$as_save_IFS | |
10139 | test -z "$as_dir" && as_dir=. | |
10140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10142 | ac_cv_prog_READELF="${ncn_progname}" |
10143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10144 | break 2 | |
10145 | fi | |
10146 | done | |
10147 | done | |
10148 | IFS=$as_save_IFS | |
10149 | ||
10150 | fi | |
10151 | fi | |
10152 | READELF=$ac_cv_prog_READELF | |
10153 | if test -n "$READELF"; then | |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10155 | $as_echo "$READELF" >&6; } | |
10156 | else | |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10158 | $as_echo "no" >&6; } | |
10159 | fi | |
10160 | ||
10161 | ||
10162 | done | |
10163 | fi | |
10164 | ||
10165 | for ncn_progname in readelf; do | |
10166 | if test -n "$ncn_tool_prefix"; then | |
10167 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10168 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10170 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10171 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10172 | $as_echo_n "(cached) " >&6 |
10173 | else | |
10174 | if test -n "$READELF"; then | |
10175 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10176 | else | |
10177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10178 | for as_dir in $PATH | |
10179 | do | |
10180 | IFS=$as_save_IFS | |
10181 | test -z "$as_dir" && as_dir=. | |
10182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10184 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10186 | break 2 | |
10187 | fi | |
10188 | done | |
10189 | done | |
10190 | IFS=$as_save_IFS | |
10191 | ||
10192 | fi | |
10193 | fi | |
10194 | READELF=$ac_cv_prog_READELF | |
10195 | if test -n "$READELF"; then | |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10197 | $as_echo "$READELF" >&6; } | |
10198 | else | |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10200 | $as_echo "no" >&6; } | |
10201 | fi | |
10202 | ||
10203 | ||
10204 | fi | |
10205 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10206 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10207 | set dummy ${ncn_progname}; ac_word=$2 | |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10209 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10210 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
10211 | $as_echo_n "(cached) " >&6 |
10212 | else | |
10213 | if test -n "$READELF"; then | |
10214 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10215 | else | |
10216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10217 | for as_dir in $PATH | |
10218 | do | |
10219 | IFS=$as_save_IFS | |
10220 | test -z "$as_dir" && as_dir=. | |
10221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
10223 | ac_cv_prog_READELF="${ncn_progname}" |
10224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10225 | break 2 | |
10226 | fi | |
10227 | done | |
10228 | done | |
10229 | IFS=$as_save_IFS | |
10230 | ||
10231 | fi | |
10232 | fi | |
10233 | READELF=$ac_cv_prog_READELF | |
10234 | if test -n "$READELF"; then | |
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10236 | $as_echo "$READELF" >&6; } | |
10237 | else | |
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10239 | $as_echo "no" >&6; } | |
10240 | fi | |
10241 | ||
10242 | ||
10243 | fi | |
10244 | test -n "$ac_cv_prog_READELF" && break | |
10245 | done | |
10246 | ||
10247 | if test -z "$ac_cv_prog_READELF" ; then | |
10248 | set dummy readelf | |
10249 | if test $build = $host ; then | |
10250 | READELF="$2" | |
10251 | else | |
10252 | READELF="${ncn_tool_prefix}$2" | |
10253 | fi | |
10254 | fi | |
10255 | ||
10256 | ||
10257 | ||
671aa708 NN |
10258 | |
10259 | ||
10260 | ||
2abefe3d | 10261 | # Target tools. |
1c710c3c | 10262 | |
5213506e RW |
10263 | # Check whether --with-build-time-tools was given. |
10264 | if test "${with_build_time_tools+set}" = set; then : | |
10265 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
10266 | x/*) ;; |
10267 | *) | |
10268 | with_build_time_tools= | |
5213506e RW |
10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10270 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
10271 | ;; |
10272 | esac | |
ca9f4b81 | 10273 | else |
e8b05380 | 10274 | with_build_time_tools= |
5213506e RW |
10275 | fi |
10276 | ||
ca9f4b81 | 10277 | |
278a7a38 AO |
10278 | |
10279 | ||
10280 | if test -n "$CC_FOR_TARGET"; then | |
10281 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10282 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10283 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10284 | fi | |
10285 | ||
10286 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10287 | for ncn_progname in cc gcc; do | |
10288 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10289 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10291 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10292 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10293 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10294 | else |
10295 | if test -n "$CC_FOR_TARGET"; then | |
10296 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10297 | else | |
10298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10299 | for as_dir in $PATH | |
10300 | do | |
10301 | IFS=$as_save_IFS | |
10302 | test -z "$as_dir" && as_dir=. | |
5213506e | 10303 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10304 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10305 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10307 | break 2 |
10308 | fi | |
10309 | done | |
5213506e RW |
10310 | done |
10311 | IFS=$as_save_IFS | |
278a7a38 AO |
10312 | |
10313 | fi | |
10314 | fi | |
10315 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10316 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10318 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 10319 | else |
5213506e RW |
10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10321 | $as_echo "no" >&6; } | |
278a7a38 AO |
10322 | fi |
10323 | ||
5213506e | 10324 | |
278a7a38 AO |
10325 | done |
10326 | fi | |
10327 | ||
10328 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10329 | for ncn_progname in cc gcc; do |
5213506e RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10331 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10332 | if test -x $with_build_time_tools/${ncn_progname}; then |
10333 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10335 | $as_echo "yes" >&6; } | |
72a7ab82 | 10336 | break |
e8b05380 | 10337 | else |
5213506e RW |
10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10339 | $as_echo "no" >&6; } | |
72a7ab82 AP |
10340 | fi |
10341 | done | |
4de997d1 PB |
10342 | fi |
10343 | ||
e8b05380 PB |
10344 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10345 | for ncn_progname in cc gcc; do | |
10346 | if test -n "$ncn_target_tool_prefix"; then | |
10347 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10348 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10350 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10351 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10352 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
10353 | else |
10354 | if test -n "$CC_FOR_TARGET"; then | |
10355 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10356 | else | |
1c710c3c DJ |
10357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10358 | for as_dir in $PATH | |
10359 | do | |
10360 | IFS=$as_save_IFS | |
10361 | test -z "$as_dir" && as_dir=. | |
5213506e | 10362 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10364 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10366 | break 2 |
10367 | fi | |
10368 | done | |
5213506e RW |
10369 | done |
10370 | IFS=$as_save_IFS | |
1c710c3c | 10371 | |
4de997d1 PB |
10372 | fi |
10373 | fi | |
1c710c3c | 10374 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 10375 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10377 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10378 | else |
5213506e RW |
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10380 | $as_echo "no" >&6; } | |
4de997d1 PB |
10381 | fi |
10382 | ||
5213506e | 10383 | |
e8b05380 PB |
10384 | fi |
10385 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10386 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10387 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10389 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10390 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 10391 | $as_echo_n "(cached) " >&6 |
4de997d1 | 10392 | else |
2693c0b0 PB |
10393 | if test -n "$CC_FOR_TARGET"; then |
10394 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10395 | else |
1c710c3c DJ |
10396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10397 | for as_dir in $PATH | |
10398 | do | |
10399 | IFS=$as_save_IFS | |
10400 | test -z "$as_dir" && as_dir=. | |
5213506e | 10401 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10402 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10403 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10405 | break 2 |
10406 | fi | |
10407 | done | |
5213506e RW |
10408 | done |
10409 | IFS=$as_save_IFS | |
1c710c3c | 10410 | |
4de997d1 PB |
10411 | fi |
10412 | fi | |
1c710c3c | 10413 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 10414 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10416 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10417 | else |
5213506e RW |
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10419 | $as_echo "no" >&6; } | |
4de997d1 | 10420 | fi |
1c710c3c | 10421 | |
5213506e | 10422 | |
e8b05380 PB |
10423 | fi |
10424 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10425 | done | |
10426 | fi | |
1c710c3c | 10427 | |
2693c0b0 PB |
10428 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10429 | set dummy cc gcc | |
10430 | if test $build = $target ; then | |
10431 | CC_FOR_TARGET="$2" | |
4de997d1 | 10432 | else |
2693c0b0 | 10433 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10434 | fi |
1c00b503 PB |
10435 | else |
10436 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
10437 | fi |
10438 | ||
278a7a38 AO |
10439 | |
10440 | ||
10441 | if test -n "$CXX_FOR_TARGET"; then | |
10442 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10443 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10444 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10445 | fi | |
10446 | ||
10447 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10448 | for ncn_progname in c++ g++ cxx gxx; do | |
10449 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10450 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10452 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10453 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10454 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10455 | else |
10456 | if test -n "$CXX_FOR_TARGET"; then | |
10457 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10458 | else | |
10459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10460 | for as_dir in $PATH | |
10461 | do | |
10462 | IFS=$as_save_IFS | |
10463 | test -z "$as_dir" && as_dir=. | |
5213506e | 10464 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10466 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10468 | break 2 |
10469 | fi | |
10470 | done | |
5213506e RW |
10471 | done |
10472 | IFS=$as_save_IFS | |
278a7a38 AO |
10473 | |
10474 | fi | |
10475 | fi | |
10476 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10477 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10479 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10480 | else |
5213506e RW |
10481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10482 | $as_echo "no" >&6; } | |
278a7a38 AO |
10483 | fi |
10484 | ||
5213506e | 10485 | |
278a7a38 AO |
10486 | done |
10487 | fi | |
10488 | ||
10489 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10490 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10492 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10493 | if test -x $with_build_time_tools/${ncn_progname}; then |
10494 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10496 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10497 | break |
10498 | else | |
5213506e RW |
10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10500 | $as_echo "no" >&6; } | |
e8b05380 PB |
10501 | fi |
10502 | done | |
10503 | fi | |
10504 | ||
10505 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10506 | for ncn_progname in c++ g++ cxx gxx; do | |
10507 | if test -n "$ncn_target_tool_prefix"; then | |
10508 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10509 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10511 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10512 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10513 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
10514 | else |
10515 | if test -n "$CXX_FOR_TARGET"; then | |
10516 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10517 | else | |
1c710c3c DJ |
10518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10519 | for as_dir in $PATH | |
10520 | do | |
10521 | IFS=$as_save_IFS | |
10522 | test -z "$as_dir" && as_dir=. | |
5213506e | 10523 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10524 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10525 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10527 | break 2 |
10528 | fi | |
10529 | done | |
5213506e RW |
10530 | done |
10531 | IFS=$as_save_IFS | |
1c710c3c | 10532 | |
4de997d1 PB |
10533 | fi |
10534 | fi | |
1c710c3c | 10535 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10536 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10538 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10539 | else |
5213506e RW |
10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10541 | $as_echo "no" >&6; } | |
4de997d1 PB |
10542 | fi |
10543 | ||
5213506e | 10544 | |
e8b05380 PB |
10545 | fi |
10546 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10547 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10548 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10550 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10551 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 10552 | $as_echo_n "(cached) " >&6 |
4de997d1 | 10553 | else |
2693c0b0 PB |
10554 | if test -n "$CXX_FOR_TARGET"; then |
10555 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10556 | else |
1c710c3c DJ |
10557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10558 | for as_dir in $PATH | |
10559 | do | |
10560 | IFS=$as_save_IFS | |
10561 | test -z "$as_dir" && as_dir=. | |
5213506e | 10562 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10563 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10564 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10566 | break 2 |
10567 | fi | |
10568 | done | |
5213506e RW |
10569 | done |
10570 | IFS=$as_save_IFS | |
1c710c3c | 10571 | |
4de997d1 PB |
10572 | fi |
10573 | fi | |
1c710c3c | 10574 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10575 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10577 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10578 | else |
5213506e RW |
10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10580 | $as_echo "no" >&6; } | |
4de997d1 | 10581 | fi |
1c710c3c | 10582 | |
5213506e | 10583 | |
e8b05380 PB |
10584 | fi |
10585 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10586 | done | |
10587 | fi | |
1c710c3c | 10588 | |
2693c0b0 PB |
10589 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10590 | set dummy c++ g++ cxx gxx | |
10591 | if test $build = $target ; then | |
10592 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10593 | else |
2693c0b0 | 10594 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10595 | fi |
1c00b503 PB |
10596 | else |
10597 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10598 | fi |
10599 | ||
278a7a38 AO |
10600 | |
10601 | ||
10602 | if test -n "$GCC_FOR_TARGET"; then | |
10603 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10604 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10605 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10606 | fi | |
10607 | ||
10608 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10609 | for ncn_progname in gcc; do | |
10610 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10611 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10613 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10614 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10615 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10616 | else |
10617 | if test -n "$GCC_FOR_TARGET"; then | |
10618 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10619 | else | |
10620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10621 | for as_dir in $PATH | |
10622 | do | |
10623 | IFS=$as_save_IFS | |
10624 | test -z "$as_dir" && as_dir=. | |
5213506e | 10625 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10627 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10629 | break 2 |
10630 | fi | |
10631 | done | |
5213506e RW |
10632 | done |
10633 | IFS=$as_save_IFS | |
278a7a38 AO |
10634 | |
10635 | fi | |
10636 | fi | |
10637 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10638 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10640 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10641 | else |
5213506e RW |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10643 | $as_echo "no" >&6; } | |
278a7a38 AO |
10644 | fi |
10645 | ||
5213506e | 10646 | |
278a7a38 AO |
10647 | done |
10648 | fi | |
10649 | ||
10650 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10651 | for ncn_progname in gcc; do |
5213506e RW |
10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10653 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10654 | if test -x $with_build_time_tools/${ncn_progname}; then |
10655 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10657 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10658 | break |
10659 | else | |
5213506e RW |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10661 | $as_echo "no" >&6; } | |
e8b05380 PB |
10662 | fi |
10663 | done | |
10664 | fi | |
10665 | ||
10666 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10667 | for ncn_progname in gcc; do | |
10668 | if test -n "$ncn_target_tool_prefix"; then | |
10669 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10670 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10672 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10673 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10674 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10675 | else |
e8b05380 PB |
10676 | if test -n "$GCC_FOR_TARGET"; then |
10677 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10678 | else |
1c710c3c DJ |
10679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10680 | for as_dir in $PATH | |
10681 | do | |
10682 | IFS=$as_save_IFS | |
10683 | test -z "$as_dir" && as_dir=. | |
5213506e | 10684 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10686 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10688 | break 2 |
10689 | fi | |
10690 | done | |
5213506e RW |
10691 | done |
10692 | IFS=$as_save_IFS | |
1c710c3c | 10693 | |
ca9f4b81 AO |
10694 | fi |
10695 | fi | |
1c710c3c | 10696 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10697 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10699 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10700 | else |
5213506e RW |
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10702 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10703 | fi |
10704 | ||
5213506e | 10705 | |
e8b05380 PB |
10706 | fi |
10707 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10708 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10709 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10711 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10712 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 10713 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10714 | else |
e8b05380 PB |
10715 | if test -n "$GCC_FOR_TARGET"; then |
10716 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10717 | else |
1c710c3c DJ |
10718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10719 | for as_dir in $PATH | |
10720 | do | |
10721 | IFS=$as_save_IFS | |
10722 | test -z "$as_dir" && as_dir=. | |
5213506e | 10723 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10725 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10727 | break 2 |
10728 | fi | |
10729 | done | |
5213506e RW |
10730 | done |
10731 | IFS=$as_save_IFS | |
1c710c3c | 10732 | |
ca9f4b81 AO |
10733 | fi |
10734 | fi | |
1c710c3c | 10735 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10736 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10738 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10739 | else |
5213506e RW |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10741 | $as_echo "no" >&6; } | |
ca9f4b81 | 10742 | fi |
1c710c3c | 10743 | |
5213506e | 10744 | |
e8b05380 PB |
10745 | fi |
10746 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10747 | done | |
10748 | fi | |
1c710c3c | 10749 | |
e8b05380 PB |
10750 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10751 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10752 | else |
10753 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10754 | fi |
10755 | ||
278a7a38 AO |
10756 | |
10757 | ||
278a7a38 AO |
10758 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10759 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10760 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10761 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10762 | fi |
10763 | ||
278a7a38 AO |
10764 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10765 | for ncn_progname in gfortran; do | |
10766 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10767 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10769 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10770 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10771 | $as_echo_n "(cached) " >&6 |
e8b05380 | 10772 | else |
278a7a38 AO |
10773 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10774 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10775 | else |
1c710c3c DJ |
10776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10777 | for as_dir in $PATH | |
10778 | do | |
10779 | IFS=$as_save_IFS | |
10780 | test -z "$as_dir" && as_dir=. | |
5213506e | 10781 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10783 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10785 | break 2 |
10786 | fi | |
10787 | done | |
5213506e RW |
10788 | done |
10789 | IFS=$as_save_IFS | |
1c710c3c | 10790 | |
e8b05380 PB |
10791 | fi |
10792 | fi | |
278a7a38 AO |
10793 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10794 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10796 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10797 | else |
5213506e RW |
10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10799 | $as_echo "no" >&6; } | |
e8b05380 | 10800 | fi |
1c710c3c | 10801 | |
5213506e | 10802 | |
e8b05380 PB |
10803 | done |
10804 | fi | |
1c710c3c | 10805 | |
278a7a38 | 10806 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10807 | for ncn_progname in gfortran; do |
5213506e RW |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10809 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10810 | if test -x $with_build_time_tools/${ncn_progname}; then |
10811 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10813 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10814 | break |
10815 | else | |
5213506e RW |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10817 | $as_echo "no" >&6; } | |
e8b05380 PB |
10818 | fi |
10819 | done | |
10820 | fi | |
10821 | ||
10822 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10823 | for ncn_progname in gfortran; do | |
10824 | if test -n "$ncn_target_tool_prefix"; then | |
10825 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10826 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10828 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10829 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10830 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
10831 | else |
10832 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10833 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10834 | else | |
10835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10836 | for as_dir in $PATH | |
10837 | do | |
10838 | IFS=$as_save_IFS | |
10839 | test -z "$as_dir" && as_dir=. | |
5213506e | 10840 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10841 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10842 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10844 | break 2 |
10845 | fi | |
10846 | done | |
5213506e RW |
10847 | done |
10848 | IFS=$as_save_IFS | |
1c710c3c | 10849 | |
e8b05380 PB |
10850 | fi |
10851 | fi | |
1c710c3c | 10852 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10853 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10855 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10856 | else |
5213506e RW |
10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10858 | $as_echo "no" >&6; } | |
e8b05380 PB |
10859 | fi |
10860 | ||
5213506e | 10861 | |
e8b05380 PB |
10862 | fi |
10863 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10864 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10865 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10867 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10868 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 10869 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
10870 | else |
10871 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10872 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10873 | else | |
1c710c3c DJ |
10874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10875 | for as_dir in $PATH | |
10876 | do | |
10877 | IFS=$as_save_IFS | |
10878 | test -z "$as_dir" && as_dir=. | |
5213506e | 10879 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10880 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10881 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10883 | break 2 |
10884 | fi | |
10885 | done | |
5213506e RW |
10886 | done |
10887 | IFS=$as_save_IFS | |
1c710c3c | 10888 | |
e8b05380 PB |
10889 | fi |
10890 | fi | |
1c710c3c | 10891 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10892 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10894 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10895 | else |
5213506e RW |
10896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10897 | $as_echo "no" >&6; } | |
e8b05380 | 10898 | fi |
1c710c3c | 10899 | |
5213506e | 10900 | |
e8b05380 PB |
10901 | fi |
10902 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10903 | done | |
10904 | fi | |
1c710c3c | 10905 | |
e8b05380 PB |
10906 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10907 | set dummy gfortran | |
2693c0b0 | 10908 | if test $build = $target ; then |
e8b05380 | 10909 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10910 | else |
e8b05380 PB |
10911 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10912 | fi | |
1c00b503 PB |
10913 | else |
10914 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10915 | fi |
10916 | ||
10917 | ||
10918 | ||
632e2a07 ILT |
10919 | if test -n "$GOC_FOR_TARGET"; then |
10920 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10921 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10922 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10923 | fi | |
10924 | ||
10925 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10926 | for ncn_progname in gccgo; do | |
10927 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10928 | set dummy ${ncn_progname}; ac_word=$2 | |
10929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10930 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10931 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
10932 | $as_echo_n "(cached) " >&6 |
10933 | else | |
10934 | if test -n "$GOC_FOR_TARGET"; then | |
10935 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10936 | else | |
10937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10938 | for as_dir in $PATH | |
10939 | do | |
10940 | IFS=$as_save_IFS | |
10941 | test -z "$as_dir" && as_dir=. | |
10942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 10943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
10944 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10946 | break 2 | |
10947 | fi | |
10948 | done | |
10949 | done | |
10950 | IFS=$as_save_IFS | |
10951 | ||
10952 | fi | |
10953 | fi | |
10954 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10955 | if test -n "$GOC_FOR_TARGET"; then | |
10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10957 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10958 | else | |
10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10960 | $as_echo "no" >&6; } | |
10961 | fi | |
10962 | ||
10963 | ||
10964 | done | |
10965 | fi | |
10966 | ||
10967 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10968 | for ncn_progname in gccgo; do | |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10970 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10971 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10972 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10974 | $as_echo "yes" >&6; } | |
10975 | break | |
10976 | else | |
10977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10978 | $as_echo "no" >&6; } | |
10979 | fi | |
10980 | done | |
10981 | fi | |
10982 | ||
10983 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10984 | for ncn_progname in gccgo; do | |
10985 | if test -n "$ncn_target_tool_prefix"; then | |
10986 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10987 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10989 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10990 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
10991 | $as_echo_n "(cached) " >&6 |
10992 | else | |
10993 | if test -n "$GOC_FOR_TARGET"; then | |
10994 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10995 | else | |
10996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10997 | for as_dir in $PATH | |
10998 | do | |
10999 | IFS=$as_save_IFS | |
11000 | test -z "$as_dir" && as_dir=. | |
11001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
11003 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11005 | break 2 | |
11006 | fi | |
11007 | done | |
11008 | done | |
11009 | IFS=$as_save_IFS | |
11010 | ||
11011 | fi | |
11012 | fi | |
11013 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11014 | if test -n "$GOC_FOR_TARGET"; then | |
11015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11016 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11017 | else | |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11019 | $as_echo "no" >&6; } | |
11020 | fi | |
11021 | ||
11022 | ||
11023 | fi | |
11024 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
11025 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11026 | set dummy ${ncn_progname}; ac_word=$2 | |
11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11028 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11029 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
11030 | $as_echo_n "(cached) " >&6 |
11031 | else | |
11032 | if test -n "$GOC_FOR_TARGET"; then | |
11033 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11034 | else | |
11035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11036 | for as_dir in $PATH | |
11037 | do | |
11038 | IFS=$as_save_IFS | |
11039 | test -z "$as_dir" && as_dir=. | |
11040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
11042 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11044 | break 2 | |
11045 | fi | |
11046 | done | |
11047 | done | |
11048 | IFS=$as_save_IFS | |
11049 | ||
11050 | fi | |
11051 | fi | |
11052 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11053 | if test -n "$GOC_FOR_TARGET"; then | |
11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11055 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11056 | else | |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11058 | $as_echo "no" >&6; } | |
11059 | fi | |
11060 | ||
11061 | ||
11062 | fi | |
11063 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
11064 | done | |
11065 | fi | |
11066 | ||
11067 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
11068 | set dummy gccgo | |
11069 | if test $build = $target ; then | |
11070 | GOC_FOR_TARGET="$2" | |
11071 | else | |
11072 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11073 | fi | |
11074 | else | |
11075 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
11076 | fi | |
11077 | ||
11078 | ||
11079 | ||
b4c522fa IB |
11080 | if test -n "$GDC_FOR_TARGET"; then |
11081 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
11082 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11083 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11084 | fi | |
11085 | ||
11086 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11087 | for ncn_progname in gdc; do | |
11088 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11089 | set dummy ${ncn_progname}; ac_word=$2 | |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11091 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11092 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11093 | $as_echo_n "(cached) " >&6 |
11094 | else | |
11095 | if test -n "$GDC_FOR_TARGET"; then | |
11096 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11097 | else | |
11098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11099 | for as_dir in $PATH | |
11100 | do | |
11101 | IFS=$as_save_IFS | |
11102 | test -z "$as_dir" && as_dir=. | |
11103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11105 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11107 | break 2 | |
11108 | fi | |
11109 | done | |
11110 | done | |
11111 | IFS=$as_save_IFS | |
11112 | ||
11113 | fi | |
11114 | fi | |
11115 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11116 | if test -n "$GDC_FOR_TARGET"; then | |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11118 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11119 | else | |
11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11121 | $as_echo "no" >&6; } | |
11122 | fi | |
11123 | ||
11124 | ||
11125 | done | |
11126 | fi | |
11127 | ||
11128 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11129 | for ncn_progname in gdc; do | |
11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11131 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11132 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11133 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11135 | $as_echo "yes" >&6; } | |
11136 | break | |
11137 | else | |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11139 | $as_echo "no" >&6; } | |
11140 | fi | |
11141 | done | |
11142 | fi | |
11143 | ||
11144 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11145 | for ncn_progname in gdc; do | |
11146 | if test -n "$ncn_target_tool_prefix"; then | |
11147 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11148 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11150 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11151 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11152 | $as_echo_n "(cached) " >&6 |
11153 | else | |
11154 | if test -n "$GDC_FOR_TARGET"; then | |
11155 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11156 | else | |
11157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11158 | for as_dir in $PATH | |
11159 | do | |
11160 | IFS=$as_save_IFS | |
11161 | test -z "$as_dir" && as_dir=. | |
11162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11164 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11166 | break 2 | |
11167 | fi | |
11168 | done | |
11169 | done | |
11170 | IFS=$as_save_IFS | |
11171 | ||
11172 | fi | |
11173 | fi | |
11174 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11175 | if test -n "$GDC_FOR_TARGET"; then | |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11177 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11178 | else | |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11180 | $as_echo "no" >&6; } | |
11181 | fi | |
11182 | ||
11183 | ||
11184 | fi | |
11185 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
11186 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11187 | set dummy ${ncn_progname}; ac_word=$2 | |
11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11189 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11190 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
11191 | $as_echo_n "(cached) " >&6 |
11192 | else | |
11193 | if test -n "$GDC_FOR_TARGET"; then | |
11194 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11195 | else | |
11196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11197 | for as_dir in $PATH | |
11198 | do | |
11199 | IFS=$as_save_IFS | |
11200 | test -z "$as_dir" && as_dir=. | |
11201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
11203 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11205 | break 2 | |
11206 | fi | |
11207 | done | |
11208 | done | |
11209 | IFS=$as_save_IFS | |
11210 | ||
11211 | fi | |
11212 | fi | |
11213 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11214 | if test -n "$GDC_FOR_TARGET"; then | |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11216 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11217 | else | |
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11219 | $as_echo "no" >&6; } | |
11220 | fi | |
11221 | ||
11222 | ||
11223 | fi | |
11224 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
11225 | done | |
11226 | fi | |
11227 | ||
11228 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
11229 | set dummy gdc | |
11230 | if test $build = $target ; then | |
11231 | GDC_FOR_TARGET="$2" | |
11232 | else | |
11233 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11234 | fi | |
11235 | else | |
11236 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
11237 | fi | |
11238 | ||
11239 | ||
11240 | ||
e8b05380 PB |
11241 | cat > conftest.c << \EOF |
11242 | #ifdef __GNUC__ | |
11243 | gcc_yay; | |
11244 | #endif | |
11245 | EOF | |
11246 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11247 | have_gcc_for_target=yes | |
11248 | else | |
11249 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
11250 | have_gcc_for_target=no | |
11251 | fi | |
11252 | rm conftest.c | |
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
11258 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11260 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11261 | if test -x $with_build_time_tools/ar; then |
11262 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11263 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11265 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 11266 | else |
5213506e RW |
11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11268 | $as_echo "no" >&6; } | |
d1f8db0c | 11269 | fi |
e8b05380 PB |
11270 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11271 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
11272 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11273 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
11274 | fi |
11275 | fi | |
3e19841a | 11276 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11277 | # Extract the first word of "ar", so it can be a program name with args. |
11278 | set dummy ar; ac_word=$2 | |
5213506e RW |
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11280 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11281 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 11282 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11283 | else |
1c710c3c DJ |
11284 | case $AR_FOR_TARGET in |
11285 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11286 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11287 | ;; | |
e8b05380 | 11288 | *) |
1c710c3c DJ |
11289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11290 | for as_dir in $gcc_cv_tool_dirs | |
11291 | do | |
11292 | IFS=$as_save_IFS | |
11293 | test -z "$as_dir" && as_dir=. | |
5213506e | 11294 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11296 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11298 | break 2 |
11299 | fi | |
11300 | done | |
5213506e RW |
11301 | done |
11302 | IFS=$as_save_IFS | |
1c710c3c | 11303 | |
e8b05380 PB |
11304 | ;; |
11305 | esac | |
11306 | fi | |
1c710c3c | 11307 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 11308 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11310 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11311 | else |
5213506e RW |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11313 | $as_echo "no" >&6; } | |
4de997d1 PB |
11314 | fi |
11315 | ||
5213506e | 11316 | |
e8b05380 PB |
11317 | fi |
11318 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
11319 | |
11320 | ||
11321 | if test -n "$AR_FOR_TARGET"; then | |
11322 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11323 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11324 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11325 | fi | |
11326 | ||
11327 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11328 | for ncn_progname in ar; do | |
11329 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11330 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11332 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11333 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11334 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11335 | else |
11336 | if test -n "$AR_FOR_TARGET"; then | |
11337 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11338 | else | |
11339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11340 | for as_dir in $PATH | |
11341 | do | |
11342 | IFS=$as_save_IFS | |
11343 | test -z "$as_dir" && as_dir=. | |
5213506e | 11344 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11346 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11348 | break 2 |
11349 | fi | |
11350 | done | |
5213506e RW |
11351 | done |
11352 | IFS=$as_save_IFS | |
278a7a38 AO |
11353 | |
11354 | fi | |
11355 | fi | |
11356 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11357 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11359 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 11360 | else |
5213506e RW |
11361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11362 | $as_echo "no" >&6; } | |
278a7a38 AO |
11363 | fi |
11364 | ||
5213506e | 11365 | |
278a7a38 AO |
11366 | done |
11367 | fi | |
11368 | ||
11369 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11370 | for ncn_progname in ar; do |
5213506e RW |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11372 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11373 | if test -x $with_build_time_tools/${ncn_progname}; then |
11374 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11376 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11377 | break |
11378 | else | |
5213506e RW |
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11380 | $as_echo "no" >&6; } | |
e8b05380 PB |
11381 | fi |
11382 | done | |
11383 | fi | |
11384 | ||
11385 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11386 | for ncn_progname in ar; do | |
11387 | if test -n "$ncn_target_tool_prefix"; then | |
11388 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11389 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11391 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11392 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11393 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11394 | else |
e8b05380 PB |
11395 | if test -n "$AR_FOR_TARGET"; then |
11396 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11397 | else |
1c710c3c DJ |
11398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11399 | for as_dir in $PATH | |
11400 | do | |
11401 | IFS=$as_save_IFS | |
11402 | test -z "$as_dir" && as_dir=. | |
5213506e | 11403 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11405 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11407 | break 2 |
11408 | fi | |
11409 | done | |
5213506e RW |
11410 | done |
11411 | IFS=$as_save_IFS | |
1c710c3c | 11412 | |
4de997d1 PB |
11413 | fi |
11414 | fi | |
1c710c3c | 11415 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11416 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11418 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 11419 | else |
5213506e RW |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11421 | $as_echo "no" >&6; } | |
4de997d1 PB |
11422 | fi |
11423 | ||
5213506e | 11424 | |
e8b05380 PB |
11425 | fi |
11426 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11427 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11428 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11430 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11431 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 11432 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11433 | else |
11434 | if test -n "$AR_FOR_TARGET"; then | |
11435 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11436 | else | |
1c710c3c DJ |
11437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11438 | for as_dir in $PATH | |
11439 | do | |
11440 | IFS=$as_save_IFS | |
11441 | test -z "$as_dir" && as_dir=. | |
5213506e | 11442 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11444 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 11445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11446 | break 2 |
11447 | fi | |
11448 | done | |
5213506e RW |
11449 | done |
11450 | IFS=$as_save_IFS | |
1c710c3c | 11451 | |
e8b05380 PB |
11452 | fi |
11453 | fi | |
1c710c3c | 11454 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 11455 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11457 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 11458 | else |
5213506e RW |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11460 | $as_echo "no" >&6; } | |
e8b05380 | 11461 | fi |
1c710c3c | 11462 | |
5213506e | 11463 | |
e8b05380 PB |
11464 | fi |
11465 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11466 | done | |
11467 | fi | |
1c710c3c | 11468 | |
e8b05380 PB |
11469 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11470 | set dummy ar | |
11471 | if test $build = $target ; then | |
11472 | AR_FOR_TARGET="$2" | |
11473 | else | |
11474 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 11475 | fi |
1c00b503 PB |
11476 | else |
11477 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
11478 | fi |
11479 | ||
d1f8db0c PB |
11480 | else |
11481 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
11482 | fi |
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11488 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11490 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11491 | if test -x $with_build_time_tools/as; then |
11492 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11493 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11495 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 11496 | else |
5213506e RW |
11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11498 | $as_echo "no" >&6; } | |
d1f8db0c | 11499 | fi |
e8b05380 PB |
11500 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11501 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
11502 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11503 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
11504 | fi |
11505 | fi | |
3e19841a | 11506 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11507 | # Extract the first word of "as", so it can be a program name with args. |
11508 | set dummy as; ac_word=$2 | |
5213506e RW |
11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11510 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11511 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 11512 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11513 | else |
1c710c3c DJ |
11514 | case $AS_FOR_TARGET in |
11515 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11516 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11517 | ;; | |
e8b05380 | 11518 | *) |
1c710c3c DJ |
11519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11520 | for as_dir in $gcc_cv_tool_dirs | |
11521 | do | |
11522 | IFS=$as_save_IFS | |
11523 | test -z "$as_dir" && as_dir=. | |
5213506e | 11524 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11526 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11528 | break 2 |
11529 | fi | |
11530 | done | |
5213506e RW |
11531 | done |
11532 | IFS=$as_save_IFS | |
1c710c3c | 11533 | |
e8b05380 PB |
11534 | ;; |
11535 | esac | |
11536 | fi | |
1c710c3c | 11537 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 11538 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11540 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11541 | else |
5213506e RW |
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11543 | $as_echo "no" >&6; } | |
e8b05380 PB |
11544 | fi |
11545 | ||
5213506e | 11546 | |
e8b05380 PB |
11547 | fi |
11548 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11549 | |
11550 | ||
11551 | if test -n "$AS_FOR_TARGET"; then | |
11552 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11553 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11554 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11555 | fi | |
11556 | ||
11557 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11558 | for ncn_progname in as; do | |
11559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11560 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11562 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11563 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11564 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11565 | else |
11566 | if test -n "$AS_FOR_TARGET"; then | |
11567 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11568 | else | |
11569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11570 | for as_dir in $PATH | |
11571 | do | |
11572 | IFS=$as_save_IFS | |
11573 | test -z "$as_dir" && as_dir=. | |
5213506e | 11574 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11576 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11578 | break 2 |
11579 | fi | |
11580 | done | |
5213506e RW |
11581 | done |
11582 | IFS=$as_save_IFS | |
278a7a38 AO |
11583 | |
11584 | fi | |
11585 | fi | |
11586 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11587 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11589 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11590 | else |
5213506e RW |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11592 | $as_echo "no" >&6; } | |
278a7a38 AO |
11593 | fi |
11594 | ||
5213506e | 11595 | |
278a7a38 AO |
11596 | done |
11597 | fi | |
11598 | ||
11599 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11600 | for ncn_progname in as; do |
5213506e RW |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11602 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11603 | if test -x $with_build_time_tools/${ncn_progname}; then |
11604 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11606 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11607 | break |
11608 | else | |
5213506e RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11610 | $as_echo "no" >&6; } | |
e8b05380 PB |
11611 | fi |
11612 | done | |
11613 | fi | |
11614 | ||
11615 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11616 | for ncn_progname in as; do | |
11617 | if test -n "$ncn_target_tool_prefix"; then | |
11618 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11619 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11621 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11622 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11623 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11624 | else |
11625 | if test -n "$AS_FOR_TARGET"; then | |
11626 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11627 | else | |
1c710c3c DJ |
11628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11629 | for as_dir in $PATH | |
11630 | do | |
11631 | IFS=$as_save_IFS | |
11632 | test -z "$as_dir" && as_dir=. | |
5213506e | 11633 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11635 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11637 | break 2 |
11638 | fi | |
11639 | done | |
5213506e RW |
11640 | done |
11641 | IFS=$as_save_IFS | |
1c710c3c | 11642 | |
e8b05380 PB |
11643 | fi |
11644 | fi | |
1c710c3c | 11645 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11646 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11648 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11649 | else |
5213506e RW |
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11651 | $as_echo "no" >&6; } | |
e8b05380 PB |
11652 | fi |
11653 | ||
5213506e | 11654 | |
e8b05380 PB |
11655 | fi |
11656 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11657 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11658 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11660 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11661 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 11662 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11663 | else |
e8b05380 PB |
11664 | if test -n "$AS_FOR_TARGET"; then |
11665 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11666 | else |
1c710c3c DJ |
11667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11668 | for as_dir in $PATH | |
11669 | do | |
11670 | IFS=$as_save_IFS | |
11671 | test -z "$as_dir" && as_dir=. | |
5213506e | 11672 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11674 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11676 | break 2 |
11677 | fi | |
11678 | done | |
5213506e RW |
11679 | done |
11680 | IFS=$as_save_IFS | |
1c710c3c | 11681 | |
4de997d1 PB |
11682 | fi |
11683 | fi | |
1c710c3c | 11684 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11685 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11687 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11688 | else |
5213506e RW |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11690 | $as_echo "no" >&6; } | |
4de997d1 | 11691 | fi |
1c710c3c | 11692 | |
5213506e | 11693 | |
e8b05380 PB |
11694 | fi |
11695 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11696 | done | |
11697 | fi | |
1c710c3c | 11698 | |
e8b05380 PB |
11699 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11700 | set dummy as | |
11701 | if test $build = $target ; then | |
11702 | AS_FOR_TARGET="$2" | |
11703 | else | |
11704 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11705 | fi |
1c00b503 PB |
11706 | else |
11707 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11708 | fi |
2693c0b0 | 11709 | |
d1f8db0c PB |
11710 | else |
11711 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11712 | fi |
11713 | ||
e8b05380 PB |
11714 | |
11715 | ||
11716 | ||
11717 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11718 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11720 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11721 | if test -x $with_build_time_tools/dlltool; then |
11722 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11723 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11725 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11726 | else |
5213506e RW |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11728 | $as_echo "no" >&6; } | |
d1f8db0c | 11729 | fi |
e8b05380 PB |
11730 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11731 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11732 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11733 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11734 | fi |
11735 | fi | |
3e19841a | 11736 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11737 | # Extract the first word of "dlltool", so it can be a program name with args. |
11738 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11740 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11741 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11742 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11743 | else |
1c710c3c DJ |
11744 | case $DLLTOOL_FOR_TARGET in |
11745 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11746 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11747 | ;; | |
e8b05380 | 11748 | *) |
1c710c3c DJ |
11749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11750 | for as_dir in $gcc_cv_tool_dirs | |
11751 | do | |
11752 | IFS=$as_save_IFS | |
11753 | test -z "$as_dir" && as_dir=. | |
5213506e | 11754 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11756 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11758 | break 2 |
11759 | fi | |
11760 | done | |
5213506e RW |
11761 | done |
11762 | IFS=$as_save_IFS | |
1c710c3c | 11763 | |
e8b05380 PB |
11764 | ;; |
11765 | esac | |
4de997d1 | 11766 | fi |
1c710c3c | 11767 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11768 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11770 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11771 | else |
5213506e RW |
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11773 | $as_echo "no" >&6; } | |
4de997d1 PB |
11774 | fi |
11775 | ||
5213506e | 11776 | |
e8b05380 PB |
11777 | fi |
11778 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11779 | |
11780 | ||
11781 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11782 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11783 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11784 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11785 | fi | |
11786 | ||
11787 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11788 | for ncn_progname in dlltool; do | |
11789 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11790 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11792 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11793 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11794 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11795 | else |
11796 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11797 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11798 | else | |
11799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11800 | for as_dir in $PATH | |
11801 | do | |
11802 | IFS=$as_save_IFS | |
11803 | test -z "$as_dir" && as_dir=. | |
5213506e | 11804 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11806 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11808 | break 2 |
11809 | fi | |
11810 | done | |
5213506e RW |
11811 | done |
11812 | IFS=$as_save_IFS | |
278a7a38 AO |
11813 | |
11814 | fi | |
11815 | fi | |
11816 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11817 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11819 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11820 | else |
5213506e RW |
11821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11822 | $as_echo "no" >&6; } | |
278a7a38 AO |
11823 | fi |
11824 | ||
5213506e | 11825 | |
278a7a38 AO |
11826 | done |
11827 | fi | |
11828 | ||
11829 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11830 | for ncn_progname in dlltool; do |
5213506e RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11832 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11833 | if test -x $with_build_time_tools/${ncn_progname}; then |
11834 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11836 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11837 | break |
11838 | else | |
5213506e RW |
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11840 | $as_echo "no" >&6; } | |
e8b05380 PB |
11841 | fi |
11842 | done | |
11843 | fi | |
11844 | ||
11845 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11846 | for ncn_progname in dlltool; do | |
11847 | if test -n "$ncn_target_tool_prefix"; then | |
11848 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11849 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11851 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11852 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11853 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11854 | else |
e8b05380 PB |
11855 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11856 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11857 | else |
1c710c3c DJ |
11858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11859 | for as_dir in $PATH | |
11860 | do | |
11861 | IFS=$as_save_IFS | |
11862 | test -z "$as_dir" && as_dir=. | |
5213506e | 11863 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11865 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11867 | break 2 |
11868 | fi | |
11869 | done | |
5213506e RW |
11870 | done |
11871 | IFS=$as_save_IFS | |
1c710c3c | 11872 | |
4de997d1 PB |
11873 | fi |
11874 | fi | |
1c710c3c | 11875 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11876 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11878 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11879 | else |
5213506e RW |
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11881 | $as_echo "no" >&6; } | |
4de997d1 | 11882 | fi |
4de997d1 | 11883 | |
5213506e | 11884 | |
e8b05380 PB |
11885 | fi |
11886 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11888 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11890 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11891 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 11892 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11893 | else |
e8b05380 PB |
11894 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11895 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11896 | else |
1c710c3c DJ |
11897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11898 | for as_dir in $PATH | |
11899 | do | |
11900 | IFS=$as_save_IFS | |
11901 | test -z "$as_dir" && as_dir=. | |
5213506e | 11902 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11904 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11906 | break 2 |
11907 | fi | |
11908 | done | |
5213506e RW |
11909 | done |
11910 | IFS=$as_save_IFS | |
1c710c3c | 11911 | |
4de997d1 PB |
11912 | fi |
11913 | fi | |
1c710c3c | 11914 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11915 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11917 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11918 | else |
5213506e RW |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11920 | $as_echo "no" >&6; } | |
4de997d1 | 11921 | fi |
1c710c3c | 11922 | |
5213506e | 11923 | |
e8b05380 PB |
11924 | fi |
11925 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11926 | done | |
11927 | fi | |
1c710c3c | 11928 | |
e8b05380 PB |
11929 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11930 | set dummy dlltool | |
11931 | if test $build = $target ; then | |
11932 | DLLTOOL_FOR_TARGET="$2" | |
11933 | else | |
11934 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11935 | fi | |
1c00b503 PB |
11936 | else |
11937 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11938 | fi |
11939 | ||
d1f8db0c PB |
11940 | else |
11941 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11942 | fi |
11943 | ||
4de997d1 | 11944 | |
e8b05380 PB |
11945 | |
11946 | ||
11947 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11948 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11950 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11951 | if test -x $with_build_time_tools/ld; then |
11952 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11953 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11955 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11956 | else |
5213506e RW |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11958 | $as_echo "no" >&6; } | |
d1f8db0c | 11959 | fi |
e8b05380 PB |
11960 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11961 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11962 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11963 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11964 | fi |
e8b05380 | 11965 | fi |
3e19841a | 11966 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11967 | # Extract the first word of "ld", so it can be a program name with args. |
11968 | set dummy ld; ac_word=$2 | |
5213506e RW |
11969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11970 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11971 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 11972 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11973 | else |
1c710c3c DJ |
11974 | case $LD_FOR_TARGET in |
11975 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11976 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11977 | ;; | |
e8b05380 | 11978 | *) |
1c710c3c DJ |
11979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11980 | for as_dir in $gcc_cv_tool_dirs | |
11981 | do | |
11982 | IFS=$as_save_IFS | |
11983 | test -z "$as_dir" && as_dir=. | |
5213506e | 11984 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11986 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11988 | break 2 |
11989 | fi | |
11990 | done | |
5213506e RW |
11991 | done |
11992 | IFS=$as_save_IFS | |
1c710c3c | 11993 | |
e8b05380 PB |
11994 | ;; |
11995 | esac | |
4de997d1 | 11996 | fi |
1c710c3c | 11997 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11998 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12000 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 12001 | else |
5213506e RW |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12003 | $as_echo "no" >&6; } | |
4de997d1 | 12004 | fi |
2693c0b0 | 12005 | |
5213506e | 12006 | |
e8b05380 PB |
12007 | fi |
12008 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
12009 | |
12010 | ||
12011 | if test -n "$LD_FOR_TARGET"; then | |
12012 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
12013 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
12014 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
12015 | fi | |
12016 | ||
12017 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
12018 | for ncn_progname in ld; do | |
12019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12020 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12022 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12023 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12024 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12025 | else |
12026 | if test -n "$LD_FOR_TARGET"; then | |
12027 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
12028 | else | |
12029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12030 | for as_dir in $PATH | |
12031 | do | |
12032 | IFS=$as_save_IFS | |
12033 | test -z "$as_dir" && as_dir=. | |
5213506e | 12034 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12036 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 12037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12038 | break 2 |
12039 | fi | |
12040 | done | |
5213506e RW |
12041 | done |
12042 | IFS=$as_save_IFS | |
278a7a38 AO |
12043 | |
12044 | fi | |
12045 | fi | |
12046 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
12047 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12049 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 12050 | else |
5213506e RW |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12052 | $as_echo "no" >&6; } | |
278a7a38 AO |
12053 | fi |
12054 | ||
5213506e | 12055 | |
278a7a38 AO |
12056 | done |
12057 | fi | |
12058 | ||
12059 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12060 | for ncn_progname in ld; do |
5213506e RW |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12062 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12063 | if test -x $with_build_time_tools/${ncn_progname}; then |
12064 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12066 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12067 | break |
12068 | else | |
5213506e RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12070 | $as_echo "no" >&6; } | |
e8b05380 PB |
12071 | fi |
12072 | done | |
ca9f4b81 AO |
12073 | fi |
12074 | ||
e8b05380 PB |
12075 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
12076 | for ncn_progname in ld; do | |
12077 | if test -n "$ncn_target_tool_prefix"; then | |
12078 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12079 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12081 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12082 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12083 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12084 | else |
4de997d1 PB |
12085 | if test -n "$LD_FOR_TARGET"; then |
12086 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12087 | else |
1c710c3c DJ |
12088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12089 | for as_dir in $PATH | |
12090 | do | |
12091 | IFS=$as_save_IFS | |
12092 | test -z "$as_dir" && as_dir=. | |
5213506e | 12093 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12095 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12097 | break 2 |
12098 | fi | |
12099 | done | |
5213506e RW |
12100 | done |
12101 | IFS=$as_save_IFS | |
1c710c3c | 12102 | |
ca9f4b81 AO |
12103 | fi |
12104 | fi | |
1c710c3c | 12105 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 12106 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12108 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 12109 | else |
5213506e RW |
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12111 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12112 | fi |
12113 | ||
5213506e | 12114 | |
e8b05380 PB |
12115 | fi |
12116 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
12117 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12118 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12120 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12121 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 12122 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12123 | else |
2693c0b0 PB |
12124 | if test -n "$LD_FOR_TARGET"; then |
12125 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12126 | else |
1c710c3c DJ |
12127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12128 | for as_dir in $PATH | |
12129 | do | |
12130 | IFS=$as_save_IFS | |
12131 | test -z "$as_dir" && as_dir=. | |
5213506e | 12132 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12134 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 12135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12136 | break 2 |
12137 | fi | |
12138 | done | |
5213506e RW |
12139 | done |
12140 | IFS=$as_save_IFS | |
1c710c3c | 12141 | |
ca9f4b81 AO |
12142 | fi |
12143 | fi | |
1c710c3c | 12144 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 12145 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12147 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 12148 | else |
5213506e RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12150 | $as_echo "no" >&6; } | |
ca9f4b81 | 12151 | fi |
1c710c3c | 12152 | |
5213506e | 12153 | |
e8b05380 PB |
12154 | fi |
12155 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12156 | done | |
12157 | fi | |
1c710c3c | 12158 | |
2693c0b0 PB |
12159 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12160 | set dummy ld | |
12161 | if test $build = $target ; then | |
12162 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 12163 | else |
2693c0b0 | 12164 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12165 | fi |
1c00b503 PB |
12166 | else |
12167 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
12168 | fi |
12169 | ||
d1f8db0c PB |
12170 | else |
12171 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
12172 | fi |
12173 | ||
12174 | ||
12175 | ||
12176 | ||
12177 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12178 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12180 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12181 | if test -x $with_build_time_tools/lipo; then |
12182 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12183 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12185 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 12186 | else |
5213506e RW |
12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12188 | $as_echo "no" >&6; } | |
d1f8db0c | 12189 | fi |
e8b05380 PB |
12190 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12191 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
12192 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12193 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
12194 | fi |
12195 | fi | |
278a7a38 AO |
12196 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12197 | # Extract the first word of "lipo", so it can be a program name with args. | |
12198 | set dummy lipo; ac_word=$2 | |
5213506e RW |
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12200 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12201 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12202 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12203 | else |
12204 | case $LIPO_FOR_TARGET in | |
12205 | [\\/]* | ?:[\\/]*) | |
12206 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12207 | ;; | |
12208 | *) | |
12209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12210 | for as_dir in $gcc_cv_tool_dirs | |
12211 | do | |
12212 | IFS=$as_save_IFS | |
12213 | test -z "$as_dir" && as_dir=. | |
5213506e | 12214 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12216 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12218 | break 2 |
12219 | fi | |
12220 | done | |
5213506e RW |
12221 | done |
12222 | IFS=$as_save_IFS | |
278a7a38 AO |
12223 | |
12224 | ;; | |
12225 | esac | |
12226 | fi | |
12227 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 12228 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12230 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 12231 | else |
5213506e RW |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12233 | $as_echo "no" >&6; } | |
278a7a38 AO |
12234 | fi |
12235 | ||
5213506e | 12236 | |
278a7a38 AO |
12237 | fi |
12238 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12239 | ||
12240 | ||
12241 | if test -n "$LIPO_FOR_TARGET"; then | |
12242 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12243 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12244 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12245 | fi | |
12246 | ||
12247 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12248 | for ncn_progname in lipo; do | |
12249 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12250 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12252 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12253 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12254 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12255 | else |
278a7a38 AO |
12256 | if test -n "$LIPO_FOR_TARGET"; then |
12257 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12258 | else | |
12259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12260 | for as_dir in $PATH | |
1c710c3c DJ |
12261 | do |
12262 | IFS=$as_save_IFS | |
12263 | test -z "$as_dir" && as_dir=. | |
5213506e | 12264 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12265 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12266 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12268 | break 2 |
12269 | fi | |
12270 | done | |
5213506e RW |
12271 | done |
12272 | IFS=$as_save_IFS | |
1c710c3c | 12273 | |
e8b05380 | 12274 | fi |
278a7a38 AO |
12275 | fi |
12276 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 12277 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12279 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 12280 | else |
5213506e RW |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12282 | $as_echo "no" >&6; } | |
e8b05380 PB |
12283 | fi |
12284 | ||
5213506e | 12285 | |
278a7a38 | 12286 | done |
e8b05380 | 12287 | fi |
278a7a38 AO |
12288 | |
12289 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12290 | for ncn_progname in lipo; do |
5213506e RW |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12292 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12293 | if test -x $with_build_time_tools/${ncn_progname}; then |
12294 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12296 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12297 | break |
12298 | else | |
5213506e RW |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12300 | $as_echo "no" >&6; } | |
e8b05380 PB |
12301 | fi |
12302 | done | |
12303 | fi | |
12304 | ||
12305 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12306 | for ncn_progname in lipo; do | |
12307 | if test -n "$ncn_target_tool_prefix"; then | |
12308 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12309 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12311 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12312 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12313 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
12314 | else |
12315 | if test -n "$LIPO_FOR_TARGET"; then | |
12316 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12317 | else | |
1c710c3c DJ |
12318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12319 | for as_dir in $PATH | |
12320 | do | |
12321 | IFS=$as_save_IFS | |
12322 | test -z "$as_dir" && as_dir=. | |
5213506e | 12323 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12325 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12327 | break 2 |
12328 | fi | |
12329 | done | |
5213506e RW |
12330 | done |
12331 | IFS=$as_save_IFS | |
1c710c3c | 12332 | |
040b1c5a GK |
12333 | fi |
12334 | fi | |
1c710c3c | 12335 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12336 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12338 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12339 | else |
5213506e RW |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12341 | $as_echo "no" >&6; } | |
040b1c5a GK |
12342 | fi |
12343 | ||
5213506e | 12344 | |
e8b05380 PB |
12345 | fi |
12346 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12347 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12348 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12350 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12351 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 12352 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
12353 | else |
12354 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
12355 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12356 | else | |
1c710c3c DJ |
12357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12358 | for as_dir in $PATH | |
12359 | do | |
12360 | IFS=$as_save_IFS | |
12361 | test -z "$as_dir" && as_dir=. | |
5213506e | 12362 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12364 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 12365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12366 | break 2 |
12367 | fi | |
12368 | done | |
5213506e RW |
12369 | done |
12370 | IFS=$as_save_IFS | |
1c710c3c | 12371 | |
040b1c5a GK |
12372 | fi |
12373 | fi | |
1c710c3c | 12374 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 12375 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12377 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 12378 | else |
5213506e RW |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12380 | $as_echo "no" >&6; } | |
040b1c5a | 12381 | fi |
1c710c3c | 12382 | |
5213506e | 12383 | |
e8b05380 PB |
12384 | fi |
12385 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12386 | done | |
12387 | fi | |
1c710c3c | 12388 | |
040b1c5a GK |
12389 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12390 | set dummy lipo | |
12391 | if test $build = $target ; then | |
12392 | LIPO_FOR_TARGET="$2" | |
12393 | else | |
12394 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12395 | fi | |
1c00b503 PB |
12396 | else |
12397 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
12398 | fi |
12399 | ||
d1f8db0c PB |
12400 | else |
12401 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
12402 | fi |
12403 | ||
12404 | ||
12405 | ||
12406 | ||
12407 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12408 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12410 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12411 | if test -x $with_build_time_tools/nm; then |
12412 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12413 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12415 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 12416 | else |
5213506e RW |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12418 | $as_echo "no" >&6; } | |
d1f8db0c | 12419 | fi |
e8b05380 PB |
12420 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12421 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
12422 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12423 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
12424 | fi |
12425 | fi | |
3e19841a | 12426 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12427 | # Extract the first word of "nm", so it can be a program name with args. |
12428 | set dummy nm; ac_word=$2 | |
5213506e RW |
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12430 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12431 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 12432 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12433 | else |
1c710c3c DJ |
12434 | case $NM_FOR_TARGET in |
12435 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12436 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12437 | ;; | |
e8b05380 | 12438 | *) |
1c710c3c DJ |
12439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12440 | for as_dir in $gcc_cv_tool_dirs | |
12441 | do | |
12442 | IFS=$as_save_IFS | |
12443 | test -z "$as_dir" && as_dir=. | |
5213506e | 12444 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12445 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12446 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12448 | break 2 |
12449 | fi | |
12450 | done | |
5213506e RW |
12451 | done |
12452 | IFS=$as_save_IFS | |
1c710c3c | 12453 | |
e8b05380 PB |
12454 | ;; |
12455 | esac | |
12456 | fi | |
1c710c3c | 12457 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 12458 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12460 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 12461 | else |
5213506e RW |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12463 | $as_echo "no" >&6; } | |
e8b05380 PB |
12464 | fi |
12465 | ||
5213506e | 12466 | |
e8b05380 PB |
12467 | fi |
12468 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
12469 | |
12470 | ||
12471 | if test -n "$NM_FOR_TARGET"; then | |
12472 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12473 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12474 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12475 | fi | |
12476 | ||
12477 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12478 | for ncn_progname in nm; do | |
12479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12480 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12482 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12483 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12484 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12485 | else |
12486 | if test -n "$NM_FOR_TARGET"; then | |
12487 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12488 | else | |
12489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12490 | for as_dir in $PATH | |
12491 | do | |
12492 | IFS=$as_save_IFS | |
12493 | test -z "$as_dir" && as_dir=. | |
5213506e | 12494 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12496 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12498 | break 2 |
12499 | fi | |
12500 | done | |
5213506e RW |
12501 | done |
12502 | IFS=$as_save_IFS | |
278a7a38 AO |
12503 | |
12504 | fi | |
12505 | fi | |
12506 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12507 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12509 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 12510 | else |
5213506e RW |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12512 | $as_echo "no" >&6; } | |
278a7a38 AO |
12513 | fi |
12514 | ||
5213506e | 12515 | |
278a7a38 AO |
12516 | done |
12517 | fi | |
12518 | ||
12519 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12520 | for ncn_progname in nm; do |
5213506e RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12522 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12523 | if test -x $with_build_time_tools/${ncn_progname}; then |
12524 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12526 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12527 | break |
12528 | else | |
5213506e RW |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12530 | $as_echo "no" >&6; } | |
e8b05380 PB |
12531 | fi |
12532 | done | |
12533 | fi | |
12534 | ||
12535 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12536 | for ncn_progname in nm; do | |
12537 | if test -n "$ncn_target_tool_prefix"; then | |
12538 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12539 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12541 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12542 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12543 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12544 | else |
4de997d1 PB |
12545 | if test -n "$NM_FOR_TARGET"; then |
12546 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12547 | else |
1c710c3c DJ |
12548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12549 | for as_dir in $PATH | |
12550 | do | |
12551 | IFS=$as_save_IFS | |
12552 | test -z "$as_dir" && as_dir=. | |
5213506e | 12553 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12555 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12557 | break 2 |
12558 | fi | |
12559 | done | |
5213506e RW |
12560 | done |
12561 | IFS=$as_save_IFS | |
1c710c3c | 12562 | |
ca9f4b81 AO |
12563 | fi |
12564 | fi | |
1c710c3c | 12565 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12566 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12568 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12569 | else |
5213506e RW |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12571 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12572 | fi |
12573 | ||
5213506e | 12574 | |
e8b05380 PB |
12575 | fi |
12576 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12577 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12578 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12580 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12581 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 12582 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12583 | else |
2693c0b0 PB |
12584 | if test -n "$NM_FOR_TARGET"; then |
12585 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12586 | else |
1c710c3c DJ |
12587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12588 | for as_dir in $PATH | |
12589 | do | |
12590 | IFS=$as_save_IFS | |
12591 | test -z "$as_dir" && as_dir=. | |
5213506e | 12592 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12594 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12596 | break 2 |
12597 | fi | |
12598 | done | |
5213506e RW |
12599 | done |
12600 | IFS=$as_save_IFS | |
1c710c3c | 12601 | |
ca9f4b81 AO |
12602 | fi |
12603 | fi | |
1c710c3c | 12604 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12605 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12607 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12608 | else |
5213506e RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12610 | $as_echo "no" >&6; } | |
ca9f4b81 | 12611 | fi |
1c710c3c | 12612 | |
5213506e | 12613 | |
e8b05380 PB |
12614 | fi |
12615 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12616 | done | |
12617 | fi | |
1c710c3c | 12618 | |
2693c0b0 PB |
12619 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12620 | set dummy nm | |
12621 | if test $build = $target ; then | |
12622 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12623 | else |
2693c0b0 | 12624 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12625 | fi |
1c00b503 PB |
12626 | else |
12627 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12628 | fi |
12629 | ||
d1f8db0c PB |
12630 | else |
12631 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12632 | fi |
12633 | ||
12634 | ||
12635 | ||
12636 | ||
9bccfdf5 AP |
12637 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12638 | if test -n "$with_build_time_tools"; then | |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12640 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12641 | if test -x $with_build_time_tools/objcopy; then | |
12642 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12643 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12645 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12646 | else | |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12648 | $as_echo "no" >&6; } | |
12649 | fi | |
12650 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12651 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12652 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12653 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12654 | fi | |
12655 | fi | |
12656 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12657 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12658 | set dummy objcopy; ac_word=$2 | |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12660 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12661 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12662 | $as_echo_n "(cached) " >&6 |
12663 | else | |
12664 | case $OBJCOPY_FOR_TARGET in | |
12665 | [\\/]* | ?:[\\/]*) | |
12666 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12667 | ;; | |
12668 | *) | |
12669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12670 | for as_dir in $gcc_cv_tool_dirs | |
12671 | do | |
12672 | IFS=$as_save_IFS | |
12673 | test -z "$as_dir" && as_dir=. | |
12674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12675 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12676 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12678 | break 2 | |
12679 | fi | |
12680 | done | |
12681 | done | |
12682 | IFS=$as_save_IFS | |
12683 | ||
12684 | ;; | |
12685 | esac | |
12686 | fi | |
12687 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12688 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12690 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12691 | else | |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12693 | $as_echo "no" >&6; } | |
12694 | fi | |
12695 | ||
12696 | ||
12697 | fi | |
12698 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12699 | ||
12700 | ||
12701 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12702 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12703 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12704 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12705 | fi | |
12706 | ||
12707 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12708 | for ncn_progname in objcopy; do | |
12709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12710 | set dummy ${ncn_progname}; ac_word=$2 | |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12712 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12713 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12714 | $as_echo_n "(cached) " >&6 |
12715 | else | |
12716 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12717 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12718 | else | |
12719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12720 | for as_dir in $PATH | |
12721 | do | |
12722 | IFS=$as_save_IFS | |
12723 | test -z "$as_dir" && as_dir=. | |
12724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12726 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12728 | break 2 | |
12729 | fi | |
12730 | done | |
12731 | done | |
12732 | IFS=$as_save_IFS | |
12733 | ||
12734 | fi | |
12735 | fi | |
12736 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12737 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12739 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12740 | else | |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12742 | $as_echo "no" >&6; } | |
12743 | fi | |
12744 | ||
12745 | ||
12746 | done | |
12747 | fi | |
12748 | ||
12749 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12750 | for ncn_progname in objcopy; do | |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12752 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12753 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12754 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12756 | $as_echo "yes" >&6; } | |
12757 | break | |
12758 | else | |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12760 | $as_echo "no" >&6; } | |
12761 | fi | |
12762 | done | |
12763 | fi | |
12764 | ||
12765 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12766 | for ncn_progname in objcopy; do | |
12767 | if test -n "$ncn_target_tool_prefix"; then | |
12768 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12769 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12771 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12772 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12773 | $as_echo_n "(cached) " >&6 |
12774 | else | |
12775 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12776 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12777 | else | |
12778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12779 | for as_dir in $PATH | |
12780 | do | |
12781 | IFS=$as_save_IFS | |
12782 | test -z "$as_dir" && as_dir=. | |
12783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12785 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12787 | break 2 | |
12788 | fi | |
12789 | done | |
12790 | done | |
12791 | IFS=$as_save_IFS | |
12792 | ||
12793 | fi | |
12794 | fi | |
12795 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12796 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12798 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12799 | else | |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12801 | $as_echo "no" >&6; } | |
12802 | fi | |
12803 | ||
12804 | ||
12805 | fi | |
12806 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12808 | set dummy ${ncn_progname}; ac_word=$2 | |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12810 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12811 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
12812 | $as_echo_n "(cached) " >&6 |
12813 | else | |
12814 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12815 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12816 | else | |
12817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12818 | for as_dir in $PATH | |
12819 | do | |
12820 | IFS=$as_save_IFS | |
12821 | test -z "$as_dir" && as_dir=. | |
12822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
12824 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12826 | break 2 | |
12827 | fi | |
12828 | done | |
12829 | done | |
12830 | IFS=$as_save_IFS | |
12831 | ||
12832 | fi | |
12833 | fi | |
12834 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12835 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12837 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12838 | else | |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12840 | $as_echo "no" >&6; } | |
12841 | fi | |
12842 | ||
12843 | ||
12844 | fi | |
12845 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12846 | done | |
12847 | fi | |
12848 | ||
12849 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12850 | set dummy objcopy | |
12851 | if test $build = $target ; then | |
12852 | OBJCOPY_FOR_TARGET="$2" | |
12853 | else | |
12854 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12855 | fi | |
12856 | else | |
12857 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12858 | fi | |
12859 | ||
12860 | else | |
12861 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12862 | fi | |
12863 | ||
12864 | ||
12865 | ||
12866 | ||
e8b05380 PB |
12867 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12868 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12870 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12871 | if test -x $with_build_time_tools/objdump; then |
12872 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12873 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12875 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12876 | else |
5213506e RW |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12878 | $as_echo "no" >&6; } | |
d1f8db0c | 12879 | fi |
e8b05380 PB |
12880 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12881 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12882 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12883 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12884 | fi |
12885 | fi | |
3e19841a | 12886 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12887 | # Extract the first word of "objdump", so it can be a program name with args. |
12888 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12890 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12891 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 12892 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12893 | else |
1c710c3c DJ |
12894 | case $OBJDUMP_FOR_TARGET in |
12895 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12896 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12897 | ;; | |
e8b05380 | 12898 | *) |
1c710c3c DJ |
12899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12900 | for as_dir in $gcc_cv_tool_dirs | |
12901 | do | |
12902 | IFS=$as_save_IFS | |
12903 | test -z "$as_dir" && as_dir=. | |
5213506e | 12904 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12906 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12908 | break 2 |
12909 | fi | |
12910 | done | |
5213506e RW |
12911 | done |
12912 | IFS=$as_save_IFS | |
1c710c3c | 12913 | |
e8b05380 PB |
12914 | ;; |
12915 | esac | |
12916 | fi | |
1c710c3c | 12917 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12918 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12920 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12921 | else |
5213506e RW |
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12923 | $as_echo "no" >&6; } | |
e8b05380 PB |
12924 | fi |
12925 | ||
5213506e | 12926 | |
e8b05380 PB |
12927 | fi |
12928 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12929 | |
12930 | ||
12931 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12932 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12933 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12934 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12935 | fi | |
12936 | ||
12937 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12938 | for ncn_progname in objdump; do | |
12939 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12940 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12942 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12943 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 12944 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12945 | else |
12946 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12947 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12948 | else | |
12949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12950 | for as_dir in $PATH | |
12951 | do | |
12952 | IFS=$as_save_IFS | |
12953 | test -z "$as_dir" && as_dir=. | |
5213506e | 12954 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12956 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12958 | break 2 |
12959 | fi | |
12960 | done | |
5213506e RW |
12961 | done |
12962 | IFS=$as_save_IFS | |
278a7a38 AO |
12963 | |
12964 | fi | |
12965 | fi | |
12966 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12967 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12969 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12970 | else |
5213506e RW |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12972 | $as_echo "no" >&6; } | |
278a7a38 AO |
12973 | fi |
12974 | ||
5213506e | 12975 | |
278a7a38 AO |
12976 | done |
12977 | fi | |
12978 | ||
12979 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12980 | for ncn_progname in objdump; do |
5213506e RW |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12982 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12983 | if test -x $with_build_time_tools/${ncn_progname}; then |
12984 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12986 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12987 | break |
12988 | else | |
5213506e RW |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12990 | $as_echo "no" >&6; } | |
e8b05380 PB |
12991 | fi |
12992 | done | |
12993 | fi | |
12994 | ||
12995 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12996 | for ncn_progname in objdump; do | |
12997 | if test -n "$ncn_target_tool_prefix"; then | |
12998 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12999 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13001 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13002 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13003 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
13004 | else |
13005 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13006 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13007 | else | |
1c710c3c DJ |
13008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13009 | for as_dir in $PATH | |
13010 | do | |
13011 | IFS=$as_save_IFS | |
13012 | test -z "$as_dir" && as_dir=. | |
5213506e | 13013 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13015 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13017 | break 2 |
13018 | fi | |
13019 | done | |
5213506e RW |
13020 | done |
13021 | IFS=$as_save_IFS | |
1c710c3c | 13022 | |
d739199a DJ |
13023 | fi |
13024 | fi | |
1c710c3c | 13025 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 13026 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13028 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 13029 | else |
5213506e RW |
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13031 | $as_echo "no" >&6; } | |
d739199a DJ |
13032 | fi |
13033 | ||
5213506e | 13034 | |
e8b05380 PB |
13035 | fi |
13036 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
13037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 13038 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13040 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13041 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13042 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
13043 | else |
13044 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13045 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13046 | else | |
1c710c3c DJ |
13047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13048 | for as_dir in $PATH | |
13049 | do | |
13050 | IFS=$as_save_IFS | |
13051 | test -z "$as_dir" && as_dir=. | |
5213506e | 13052 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13054 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 13055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13056 | break 2 |
13057 | fi | |
13058 | done | |
5213506e RW |
13059 | done |
13060 | IFS=$as_save_IFS | |
1c710c3c | 13061 | |
d739199a DJ |
13062 | fi |
13063 | fi | |
1c710c3c | 13064 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 13065 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13067 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 13068 | else |
5213506e RW |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13070 | $as_echo "no" >&6; } | |
d739199a | 13071 | fi |
1c710c3c | 13072 | |
5213506e | 13073 | |
e8b05380 PB |
13074 | fi |
13075 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
13076 | done | |
13077 | fi | |
1c710c3c | 13078 | |
d739199a DJ |
13079 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
13080 | set dummy objdump | |
13081 | if test $build = $target ; then | |
13082 | OBJDUMP_FOR_TARGET="$2" | |
13083 | else | |
13084 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13085 | fi | |
1c00b503 PB |
13086 | else |
13087 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
13088 | fi |
13089 | ||
d1f8db0c PB |
13090 | else |
13091 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
13092 | fi |
13093 | ||
13094 | ||
13095 | ||
13096 | ||
e4a9a572 IS |
13097 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
13098 | if test -n "$with_build_time_tools"; then | |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
13100 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
13101 | if test -x $with_build_time_tools/otool; then | |
13102 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
13103 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
13105 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
13106 | else | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13108 | $as_echo "no" >&6; } | |
13109 | fi | |
13110 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13111 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
13112 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
13113 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13114 | fi | |
13115 | fi | |
13116 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13117 | # Extract the first word of "otool", so it can be a program name with args. | |
13118 | set dummy otool; ac_word=$2 | |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13120 | $as_echo_n "checking for $ac_word... " >&6; } | |
13121 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
13122 | $as_echo_n "(cached) " >&6 | |
13123 | else | |
13124 | case $OTOOL_FOR_TARGET in | |
13125 | [\\/]* | ?:[\\/]*) | |
13126 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
13127 | ;; | |
13128 | *) | |
13129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13130 | for as_dir in $gcc_cv_tool_dirs | |
13131 | do | |
13132 | IFS=$as_save_IFS | |
13133 | test -z "$as_dir" && as_dir=. | |
13134 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13136 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13138 | break 2 | |
13139 | fi | |
13140 | done | |
13141 | done | |
13142 | IFS=$as_save_IFS | |
13143 | ||
13144 | ;; | |
13145 | esac | |
13146 | fi | |
13147 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13148 | if test -n "$OTOOL_FOR_TARGET"; then | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13150 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13151 | else | |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13153 | $as_echo "no" >&6; } | |
13154 | fi | |
13155 | ||
13156 | ||
13157 | fi | |
13158 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
13159 | ||
13160 | ||
13161 | if test -n "$OTOOL_FOR_TARGET"; then | |
13162 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13163 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13164 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13165 | fi | |
13166 | ||
13167 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13168 | for ncn_progname in otool; do | |
13169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13170 | set dummy ${ncn_progname}; ac_word=$2 | |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13172 | $as_echo_n "checking for $ac_word... " >&6; } | |
13173 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13174 | $as_echo_n "(cached) " >&6 | |
13175 | else | |
13176 | if test -n "$OTOOL_FOR_TARGET"; then | |
13177 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13178 | else | |
13179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13180 | for as_dir in $PATH | |
13181 | do | |
13182 | IFS=$as_save_IFS | |
13183 | test -z "$as_dir" && as_dir=. | |
13184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13186 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13188 | break 2 | |
13189 | fi | |
13190 | done | |
13191 | done | |
13192 | IFS=$as_save_IFS | |
13193 | ||
13194 | fi | |
13195 | fi | |
13196 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13197 | if test -n "$OTOOL_FOR_TARGET"; then | |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13199 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13200 | else | |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13202 | $as_echo "no" >&6; } | |
13203 | fi | |
13204 | ||
13205 | ||
13206 | done | |
13207 | fi | |
13208 | ||
13209 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13210 | for ncn_progname in otool; do | |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13212 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13213 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13214 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13216 | $as_echo "yes" >&6; } | |
13217 | break | |
13218 | else | |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13220 | $as_echo "no" >&6; } | |
13221 | fi | |
13222 | done | |
13223 | fi | |
13224 | ||
13225 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13226 | for ncn_progname in otool; do | |
13227 | if test -n "$ncn_target_tool_prefix"; then | |
13228 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13229 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13231 | $as_echo_n "checking for $ac_word... " >&6; } | |
13232 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13233 | $as_echo_n "(cached) " >&6 | |
13234 | else | |
13235 | if test -n "$OTOOL_FOR_TARGET"; then | |
13236 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13237 | else | |
13238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13239 | for as_dir in $PATH | |
13240 | do | |
13241 | IFS=$as_save_IFS | |
13242 | test -z "$as_dir" && as_dir=. | |
13243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13244 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13245 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13247 | break 2 | |
13248 | fi | |
13249 | done | |
13250 | done | |
13251 | IFS=$as_save_IFS | |
13252 | ||
13253 | fi | |
13254 | fi | |
13255 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13256 | if test -n "$OTOOL_FOR_TARGET"; then | |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13258 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13259 | else | |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13261 | $as_echo "no" >&6; } | |
13262 | fi | |
13263 | ||
13264 | ||
13265 | fi | |
13266 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
13267 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13268 | set dummy ${ncn_progname}; ac_word=$2 | |
13269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13270 | $as_echo_n "checking for $ac_word... " >&6; } | |
13271 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13272 | $as_echo_n "(cached) " >&6 | |
13273 | else | |
13274 | if test -n "$OTOOL_FOR_TARGET"; then | |
13275 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13276 | else | |
13277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13278 | for as_dir in $PATH | |
13279 | do | |
13280 | IFS=$as_save_IFS | |
13281 | test -z "$as_dir" && as_dir=. | |
13282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13284 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13286 | break 2 | |
13287 | fi | |
13288 | done | |
13289 | done | |
13290 | IFS=$as_save_IFS | |
13291 | ||
13292 | fi | |
13293 | fi | |
13294 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13295 | if test -n "$OTOOL_FOR_TARGET"; then | |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13297 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13298 | else | |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13300 | $as_echo "no" >&6; } | |
13301 | fi | |
13302 | ||
13303 | ||
13304 | fi | |
13305 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
13306 | done | |
13307 | fi | |
13308 | ||
13309 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
13310 | set dummy otool | |
13311 | if test $build = $target ; then | |
13312 | OTOOL_FOR_TARGET="$2" | |
13313 | else | |
13314 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13315 | fi | |
13316 | else | |
13317 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
13318 | fi | |
13319 | ||
13320 | else | |
13321 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13322 | fi | |
13323 | ||
13324 | ||
13325 | ||
13326 | ||
e8b05380 PB |
13327 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
13328 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13330 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13331 | if test -x $with_build_time_tools/ranlib; then |
13332 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13333 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13335 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 13336 | else |
5213506e RW |
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13338 | $as_echo "no" >&6; } | |
d1f8db0c | 13339 | fi |
e8b05380 PB |
13340 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13341 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
13342 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13343 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
13344 | fi |
13345 | fi | |
3e19841a | 13346 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13347 | # Extract the first word of "ranlib", so it can be a program name with args. |
13348 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13350 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13351 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13352 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13353 | else |
1c710c3c DJ |
13354 | case $RANLIB_FOR_TARGET in |
13355 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13356 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13357 | ;; | |
e8b05380 | 13358 | *) |
1c710c3c DJ |
13359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13360 | for as_dir in $gcc_cv_tool_dirs | |
13361 | do | |
13362 | IFS=$as_save_IFS | |
13363 | test -z "$as_dir" && as_dir=. | |
5213506e | 13364 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13366 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13368 | break 2 |
13369 | fi | |
13370 | done | |
5213506e RW |
13371 | done |
13372 | IFS=$as_save_IFS | |
1c710c3c | 13373 | |
e8b05380 PB |
13374 | ;; |
13375 | esac | |
13376 | fi | |
1c710c3c | 13377 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 13378 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13380 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 13381 | else |
5213506e RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13383 | $as_echo "no" >&6; } | |
e8b05380 PB |
13384 | fi |
13385 | ||
5213506e | 13386 | |
e8b05380 PB |
13387 | fi |
13388 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
13389 | |
13390 | ||
13391 | if test -n "$RANLIB_FOR_TARGET"; then | |
13392 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13393 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13394 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13395 | fi | |
13396 | ||
13397 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13398 | for ncn_progname in ranlib; do | |
13399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13400 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13402 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13403 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13404 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13405 | else |
13406 | if test -n "$RANLIB_FOR_TARGET"; then | |
13407 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13408 | else | |
13409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13410 | for as_dir in $PATH | |
13411 | do | |
13412 | IFS=$as_save_IFS | |
13413 | test -z "$as_dir" && as_dir=. | |
5213506e | 13414 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13416 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 13417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13418 | break 2 |
13419 | fi | |
13420 | done | |
5213506e RW |
13421 | done |
13422 | IFS=$as_save_IFS | |
278a7a38 AO |
13423 | |
13424 | fi | |
13425 | fi | |
13426 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13427 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13429 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 13430 | else |
5213506e RW |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13432 | $as_echo "no" >&6; } | |
278a7a38 AO |
13433 | fi |
13434 | ||
5213506e | 13435 | |
278a7a38 AO |
13436 | done |
13437 | fi | |
13438 | ||
13439 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13440 | for ncn_progname in ranlib; do |
5213506e RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13442 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13443 | if test -x $with_build_time_tools/${ncn_progname}; then |
13444 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13446 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13447 | break |
13448 | else | |
5213506e RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13450 | $as_echo "no" >&6; } | |
e8b05380 PB |
13451 | fi |
13452 | done | |
13453 | fi | |
13454 | ||
13455 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13456 | for ncn_progname in ranlib; do | |
13457 | if test -n "$ncn_target_tool_prefix"; then | |
13458 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 13459 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13461 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13462 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13463 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13464 | else |
4de997d1 PB |
13465 | if test -n "$RANLIB_FOR_TARGET"; then |
13466 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13467 | else |
1c710c3c DJ |
13468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13469 | for as_dir in $PATH | |
13470 | do | |
13471 | IFS=$as_save_IFS | |
13472 | test -z "$as_dir" && as_dir=. | |
5213506e | 13473 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13475 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13477 | break 2 |
13478 | fi | |
13479 | done | |
5213506e RW |
13480 | done |
13481 | IFS=$as_save_IFS | |
1c710c3c | 13482 | |
ca9f4b81 AO |
13483 | fi |
13484 | fi | |
1c710c3c | 13485 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 13486 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13488 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 13489 | else |
5213506e RW |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13491 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13492 | fi |
13493 | ||
5213506e | 13494 | |
e8b05380 PB |
13495 | fi |
13496 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13497 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13498 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13500 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13501 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 13502 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13503 | else |
2693c0b0 PB |
13504 | if test -n "$RANLIB_FOR_TARGET"; then |
13505 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13506 | else |
1c710c3c DJ |
13507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13508 | for as_dir in $PATH | |
13509 | do | |
13510 | IFS=$as_save_IFS | |
13511 | test -z "$as_dir" && as_dir=. | |
5213506e | 13512 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13514 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 13515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13516 | break 2 |
13517 | fi | |
13518 | done | |
5213506e RW |
13519 | done |
13520 | IFS=$as_save_IFS | |
1c710c3c | 13521 | |
ca9f4b81 AO |
13522 | fi |
13523 | fi | |
1c710c3c | 13524 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 13525 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13527 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 13528 | else |
5213506e RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13530 | $as_echo "no" >&6; } | |
ca9f4b81 | 13531 | fi |
1c710c3c | 13532 | |
5213506e | 13533 | |
e8b05380 PB |
13534 | fi |
13535 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13536 | done | |
13537 | fi | |
1c710c3c | 13538 | |
e8b05380 PB |
13539 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13540 | set dummy ranlib | |
13541 | if test $build = $target ; then | |
13542 | RANLIB_FOR_TARGET="$2" | |
13543 | else | |
13544 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 13545 | fi |
1c00b503 PB |
13546 | else |
13547 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 13548 | fi |
2693c0b0 | 13549 | |
d1f8db0c PB |
13550 | else |
13551 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
13552 | fi |
13553 | ||
e8b05380 PB |
13554 | |
13555 | ||
13556 | ||
e7a82751 RM |
13557 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13558 | if test -n "$with_build_time_tools"; then | |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13560 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13561 | if test -x $with_build_time_tools/readelf; then | |
13562 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13563 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13565 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13566 | else | |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13568 | $as_echo "no" >&6; } | |
13569 | fi | |
13570 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13571 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13572 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13573 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13574 | fi | |
13575 | fi | |
13576 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13577 | # Extract the first word of "readelf", so it can be a program name with args. | |
13578 | set dummy readelf; ac_word=$2 | |
13579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13580 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13581 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13582 | $as_echo_n "(cached) " >&6 |
13583 | else | |
13584 | case $READELF_FOR_TARGET in | |
13585 | [\\/]* | ?:[\\/]*) | |
13586 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13587 | ;; | |
13588 | *) | |
13589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13590 | for as_dir in $gcc_cv_tool_dirs | |
13591 | do | |
13592 | IFS=$as_save_IFS | |
13593 | test -z "$as_dir" && as_dir=. | |
13594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13596 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13598 | break 2 | |
13599 | fi | |
13600 | done | |
13601 | done | |
13602 | IFS=$as_save_IFS | |
13603 | ||
13604 | ;; | |
13605 | esac | |
13606 | fi | |
13607 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13608 | if test -n "$READELF_FOR_TARGET"; then | |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13610 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13611 | else | |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13613 | $as_echo "no" >&6; } | |
13614 | fi | |
13615 | ||
13616 | ||
13617 | fi | |
13618 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13619 | ||
13620 | ||
13621 | if test -n "$READELF_FOR_TARGET"; then | |
13622 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13623 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13624 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13625 | fi | |
13626 | ||
13627 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13628 | for ncn_progname in readelf; do | |
13629 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13630 | set dummy ${ncn_progname}; ac_word=$2 | |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13632 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13633 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13634 | $as_echo_n "(cached) " >&6 |
13635 | else | |
13636 | if test -n "$READELF_FOR_TARGET"; then | |
13637 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13638 | else | |
13639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13640 | for as_dir in $PATH | |
13641 | do | |
13642 | IFS=$as_save_IFS | |
13643 | test -z "$as_dir" && as_dir=. | |
13644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13646 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13648 | break 2 | |
13649 | fi | |
13650 | done | |
13651 | done | |
13652 | IFS=$as_save_IFS | |
13653 | ||
13654 | fi | |
13655 | fi | |
13656 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13657 | if test -n "$READELF_FOR_TARGET"; then | |
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13659 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13660 | else | |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13662 | $as_echo "no" >&6; } | |
13663 | fi | |
13664 | ||
13665 | ||
13666 | done | |
13667 | fi | |
13668 | ||
13669 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13670 | for ncn_progname in readelf; do | |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13672 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13673 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13674 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13676 | $as_echo "yes" >&6; } | |
13677 | break | |
13678 | else | |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13680 | $as_echo "no" >&6; } | |
13681 | fi | |
13682 | done | |
13683 | fi | |
13684 | ||
13685 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13686 | for ncn_progname in readelf; do | |
13687 | if test -n "$ncn_target_tool_prefix"; then | |
13688 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13689 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13691 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13692 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13693 | $as_echo_n "(cached) " >&6 |
13694 | else | |
13695 | if test -n "$READELF_FOR_TARGET"; then | |
13696 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13697 | else | |
13698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13699 | for as_dir in $PATH | |
13700 | do | |
13701 | IFS=$as_save_IFS | |
13702 | test -z "$as_dir" && as_dir=. | |
13703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13705 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13707 | break 2 | |
13708 | fi | |
13709 | done | |
13710 | done | |
13711 | IFS=$as_save_IFS | |
13712 | ||
13713 | fi | |
13714 | fi | |
13715 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13716 | if test -n "$READELF_FOR_TARGET"; then | |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13718 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13719 | else | |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13721 | $as_echo "no" >&6; } | |
13722 | fi | |
13723 | ||
13724 | ||
13725 | fi | |
13726 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13727 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13728 | set dummy ${ncn_progname}; ac_word=$2 | |
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13730 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13731 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
13732 | $as_echo_n "(cached) " >&6 |
13733 | else | |
13734 | if test -n "$READELF_FOR_TARGET"; then | |
13735 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13736 | else | |
13737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13738 | for as_dir in $PATH | |
13739 | do | |
13740 | IFS=$as_save_IFS | |
13741 | test -z "$as_dir" && as_dir=. | |
13742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13744 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13746 | break 2 | |
13747 | fi | |
13748 | done | |
13749 | done | |
13750 | IFS=$as_save_IFS | |
13751 | ||
13752 | fi | |
13753 | fi | |
13754 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13755 | if test -n "$READELF_FOR_TARGET"; then | |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13757 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13758 | else | |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13760 | $as_echo "no" >&6; } | |
13761 | fi | |
13762 | ||
13763 | ||
13764 | fi | |
13765 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13766 | done | |
13767 | fi | |
13768 | ||
13769 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13770 | set dummy readelf | |
13771 | if test $build = $target ; then | |
13772 | READELF_FOR_TARGET="$2" | |
13773 | else | |
13774 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13775 | fi | |
13776 | else | |
13777 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13778 | fi | |
13779 | ||
13780 | else | |
13781 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13782 | fi | |
13783 | ||
13784 | ||
13785 | ||
13786 | ||
e8b05380 PB |
13787 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13788 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13790 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13791 | if test -x $with_build_time_tools/strip; then |
13792 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13793 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13795 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 13796 | else |
5213506e RW |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13798 | $as_echo "no" >&6; } | |
d1f8db0c | 13799 | fi |
e8b05380 PB |
13800 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13801 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
13802 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13803 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
13804 | fi |
13805 | fi | |
3e19841a | 13806 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13807 | # Extract the first word of "strip", so it can be a program name with args. |
13808 | set dummy strip; ac_word=$2 | |
5213506e RW |
13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13810 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13811 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13812 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13813 | else |
1c710c3c DJ |
13814 | case $STRIP_FOR_TARGET in |
13815 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13816 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13817 | ;; | |
e8b05380 | 13818 | *) |
1c710c3c DJ |
13819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13820 | for as_dir in $gcc_cv_tool_dirs | |
13821 | do | |
13822 | IFS=$as_save_IFS | |
13823 | test -z "$as_dir" && as_dir=. | |
5213506e | 13824 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13825 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13826 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13828 | break 2 |
13829 | fi | |
13830 | done | |
5213506e RW |
13831 | done |
13832 | IFS=$as_save_IFS | |
1c710c3c | 13833 | |
e8b05380 PB |
13834 | ;; |
13835 | esac | |
13836 | fi | |
1c710c3c | 13837 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 13838 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13840 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 13841 | else |
5213506e RW |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13843 | $as_echo "no" >&6; } | |
e8b05380 PB |
13844 | fi |
13845 | ||
5213506e | 13846 | |
e8b05380 PB |
13847 | fi |
13848 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
13849 | |
13850 | ||
13851 | if test -n "$STRIP_FOR_TARGET"; then | |
13852 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13853 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13854 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13855 | fi | |
13856 | ||
13857 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13858 | for ncn_progname in strip; do | |
13859 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13860 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13862 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13863 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13864 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13865 | else |
13866 | if test -n "$STRIP_FOR_TARGET"; then | |
13867 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13868 | else | |
13869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13870 | for as_dir in $PATH | |
13871 | do | |
13872 | IFS=$as_save_IFS | |
13873 | test -z "$as_dir" && as_dir=. | |
5213506e | 13874 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13876 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13878 | break 2 |
13879 | fi | |
13880 | done | |
5213506e RW |
13881 | done |
13882 | IFS=$as_save_IFS | |
278a7a38 AO |
13883 | |
13884 | fi | |
13885 | fi | |
13886 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13887 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
13888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13889 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 13890 | else |
5213506e RW |
13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13892 | $as_echo "no" >&6; } | |
278a7a38 AO |
13893 | fi |
13894 | ||
5213506e | 13895 | |
278a7a38 AO |
13896 | done |
13897 | fi | |
13898 | ||
13899 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13900 | for ncn_progname in strip; do |
5213506e RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13902 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13903 | if test -x $with_build_time_tools/${ncn_progname}; then |
13904 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13906 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13907 | break |
13908 | else | |
5213506e RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13910 | $as_echo "no" >&6; } | |
e8b05380 PB |
13911 | fi |
13912 | done | |
13913 | fi | |
13914 | ||
13915 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13916 | for ncn_progname in strip; do | |
13917 | if test -n "$ncn_target_tool_prefix"; then | |
13918 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13919 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13921 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13922 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13923 | $as_echo_n "(cached) " >&6 |
af71363e AS |
13924 | else |
13925 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13926 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13927 | else | |
13928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13929 | for as_dir in $PATH | |
13930 | do | |
13931 | IFS=$as_save_IFS | |
13932 | test -z "$as_dir" && as_dir=. | |
5213506e | 13933 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13935 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13937 | break 2 |
13938 | fi | |
13939 | done | |
5213506e RW |
13940 | done |
13941 | IFS=$as_save_IFS | |
1c710c3c | 13942 | |
040b1c5a GK |
13943 | fi |
13944 | fi | |
1c710c3c | 13945 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13946 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13948 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13949 | else |
5213506e RW |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13951 | $as_echo "no" >&6; } | |
040b1c5a GK |
13952 | fi |
13953 | ||
5213506e | 13954 | |
e8b05380 PB |
13955 | fi |
13956 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13957 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13958 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13960 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13961 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 13962 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
13963 | else |
13964 | if test -n "$STRIP_FOR_TARGET"; then | |
13965 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13966 | else | |
1c710c3c DJ |
13967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13968 | for as_dir in $PATH | |
13969 | do | |
13970 | IFS=$as_save_IFS | |
13971 | test -z "$as_dir" && as_dir=. | |
5213506e | 13972 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13974 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13976 | break 2 |
13977 | fi | |
13978 | done | |
5213506e RW |
13979 | done |
13980 | IFS=$as_save_IFS | |
1c710c3c | 13981 | |
040b1c5a GK |
13982 | fi |
13983 | fi | |
1c710c3c | 13984 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13985 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13987 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13988 | else |
5213506e RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13990 | $as_echo "no" >&6; } | |
040b1c5a | 13991 | fi |
1c710c3c | 13992 | |
5213506e | 13993 | |
e8b05380 PB |
13994 | fi |
13995 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13996 | done | |
13997 | fi | |
1c710c3c | 13998 | |
040b1c5a GK |
13999 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
14000 | set dummy strip | |
14001 | if test $build = $target ; then | |
14002 | STRIP_FOR_TARGET="$2" | |
14003 | else | |
14004 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14005 | fi | |
1c00b503 PB |
14006 | else |
14007 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
14008 | fi |
14009 | ||
d1f8db0c PB |
14010 | else |
14011 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
14012 | fi |
14013 | ||
14014 | ||
14015 | ||
14016 | ||
14017 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
14018 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
14020 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14021 | if test -x $with_build_time_tools/windres; then |
14022 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
14023 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
14025 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 14026 | else |
5213506e RW |
14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14028 | $as_echo "no" >&6; } | |
d1f8db0c | 14029 | fi |
e8b05380 PB |
14030 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14031 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
14032 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
14033 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
14034 | fi |
14035 | fi | |
3e19841a | 14036 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14037 | # Extract the first word of "windres", so it can be a program name with args. |
14038 | set dummy windres; ac_word=$2 | |
5213506e RW |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14040 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14041 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14042 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14043 | else |
1c710c3c DJ |
14044 | case $WINDRES_FOR_TARGET in |
14045 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14046 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
14047 | ;; | |
e8b05380 | 14048 | *) |
1c710c3c DJ |
14049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14050 | for as_dir in $gcc_cv_tool_dirs | |
14051 | do | |
14052 | IFS=$as_save_IFS | |
14053 | test -z "$as_dir" && as_dir=. | |
5213506e | 14054 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14056 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14058 | break 2 |
14059 | fi | |
14060 | done | |
5213506e RW |
14061 | done |
14062 | IFS=$as_save_IFS | |
1c710c3c | 14063 | |
e8b05380 PB |
14064 | ;; |
14065 | esac | |
14066 | fi | |
1c710c3c | 14067 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 14068 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14070 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 14071 | else |
5213506e RW |
14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14073 | $as_echo "no" >&6; } | |
e8b05380 PB |
14074 | fi |
14075 | ||
5213506e | 14076 | |
e8b05380 PB |
14077 | fi |
14078 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
14079 | |
14080 | ||
14081 | if test -n "$WINDRES_FOR_TARGET"; then | |
14082 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
14083 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14084 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
14085 | fi | |
14086 | ||
14087 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14088 | for ncn_progname in windres; do | |
14089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14090 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14092 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14093 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14094 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14095 | else |
14096 | if test -n "$WINDRES_FOR_TARGET"; then | |
14097 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
14098 | else | |
14099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14100 | for as_dir in $PATH | |
14101 | do | |
14102 | IFS=$as_save_IFS | |
14103 | test -z "$as_dir" && as_dir=. | |
5213506e | 14104 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14106 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 14107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14108 | break 2 |
14109 | fi | |
14110 | done | |
5213506e RW |
14111 | done |
14112 | IFS=$as_save_IFS | |
278a7a38 AO |
14113 | |
14114 | fi | |
14115 | fi | |
14116 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
14117 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14119 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 14120 | else |
5213506e RW |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14122 | $as_echo "no" >&6; } | |
278a7a38 AO |
14123 | fi |
14124 | ||
5213506e | 14125 | |
278a7a38 AO |
14126 | done |
14127 | fi | |
14128 | ||
14129 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14130 | for ncn_progname in windres; do |
5213506e RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14132 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14133 | if test -x $with_build_time_tools/${ncn_progname}; then |
14134 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14136 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14137 | break |
14138 | else | |
5213506e RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14140 | $as_echo "no" >&6; } | |
e8b05380 PB |
14141 | fi |
14142 | done | |
14143 | fi | |
14144 | ||
14145 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14146 | for ncn_progname in windres; do | |
14147 | if test -n "$ncn_target_tool_prefix"; then | |
14148 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14149 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14151 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14152 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14153 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14154 | else |
4de997d1 PB |
14155 | if test -n "$WINDRES_FOR_TARGET"; then |
14156 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14157 | else |
1c710c3c DJ |
14158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14159 | for as_dir in $PATH | |
14160 | do | |
14161 | IFS=$as_save_IFS | |
14162 | test -z "$as_dir" && as_dir=. | |
5213506e | 14163 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14165 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14167 | break 2 |
14168 | fi | |
14169 | done | |
5213506e RW |
14170 | done |
14171 | IFS=$as_save_IFS | |
1c710c3c | 14172 | |
ca9f4b81 AO |
14173 | fi |
14174 | fi | |
1c710c3c | 14175 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 14176 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14178 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 14179 | else |
5213506e RW |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14181 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14182 | fi |
14183 | ||
5213506e | 14184 | |
e8b05380 PB |
14185 | fi |
14186 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
14187 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14188 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14190 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14191 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 14192 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14193 | else |
2693c0b0 PB |
14194 | if test -n "$WINDRES_FOR_TARGET"; then |
14195 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14196 | else |
1c710c3c DJ |
14197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14198 | for as_dir in $PATH | |
14199 | do | |
14200 | IFS=$as_save_IFS | |
14201 | test -z "$as_dir" && as_dir=. | |
5213506e | 14202 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14204 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 14205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14206 | break 2 |
14207 | fi | |
14208 | done | |
5213506e RW |
14209 | done |
14210 | IFS=$as_save_IFS | |
1c710c3c | 14211 | |
ca9f4b81 AO |
14212 | fi |
14213 | fi | |
1c710c3c | 14214 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 14215 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14217 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 14218 | else |
5213506e RW |
14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14220 | $as_echo "no" >&6; } | |
ca9f4b81 | 14221 | fi |
1c710c3c | 14222 | |
5213506e | 14223 | |
e8b05380 PB |
14224 | fi |
14225 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
14226 | done | |
14227 | fi | |
1c710c3c | 14228 | |
2693c0b0 PB |
14229 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
14230 | set dummy windres | |
14231 | if test $build = $target ; then | |
14232 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 14233 | else |
2693c0b0 | 14234 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14235 | fi |
1c00b503 PB |
14236 | else |
14237 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
14238 | fi |
14239 | ||
d1f8db0c PB |
14240 | else |
14241 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
14242 | fi |
14243 | ||
4977bab6 | 14244 | |
901119ae KT |
14245 | |
14246 | ||
14247 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14248 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
14250 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
14251 | if test -x $with_build_time_tools/windmc; then |
14252 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
14253 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
14255 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14256 | else |
5213506e RW |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14258 | $as_echo "no" >&6; } | |
901119ae KT |
14259 | fi |
14260 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14261 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
14262 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
14263 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
14264 | fi |
14265 | fi | |
14266 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14267 | # Extract the first word of "windmc", so it can be a program name with args. | |
14268 | set dummy windmc; ac_word=$2 | |
5213506e RW |
14269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14270 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14271 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14272 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14273 | else |
14274 | case $WINDMC_FOR_TARGET in | |
14275 | [\\/]* | ?:[\\/]*) | |
14276 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
14277 | ;; | |
14278 | *) | |
14279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14280 | for as_dir in $gcc_cv_tool_dirs | |
14281 | do | |
14282 | IFS=$as_save_IFS | |
14283 | test -z "$as_dir" && as_dir=. | |
5213506e | 14284 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14286 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14288 | break 2 |
14289 | fi | |
14290 | done | |
5213506e RW |
14291 | done |
14292 | IFS=$as_save_IFS | |
901119ae KT |
14293 | |
14294 | ;; | |
14295 | esac | |
14296 | fi | |
14297 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 14298 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14300 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14301 | else |
5213506e RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14303 | $as_echo "no" >&6; } | |
901119ae KT |
14304 | fi |
14305 | ||
5213506e | 14306 | |
901119ae KT |
14307 | fi |
14308 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14309 | ||
14310 | ||
14311 | if test -n "$WINDMC_FOR_TARGET"; then | |
14312 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14313 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14314 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14315 | fi | |
14316 | ||
14317 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14318 | for ncn_progname in windmc; do | |
14319 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14320 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14322 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14323 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14324 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14325 | else |
14326 | if test -n "$WINDMC_FOR_TARGET"; then | |
14327 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14328 | else | |
14329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14330 | for as_dir in $PATH | |
14331 | do | |
14332 | IFS=$as_save_IFS | |
14333 | test -z "$as_dir" && as_dir=. | |
5213506e | 14334 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14336 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 14337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14338 | break 2 |
14339 | fi | |
14340 | done | |
5213506e RW |
14341 | done |
14342 | IFS=$as_save_IFS | |
901119ae KT |
14343 | |
14344 | fi | |
14345 | fi | |
14346 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14347 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14349 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14350 | else |
5213506e RW |
14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14352 | $as_echo "no" >&6; } | |
901119ae KT |
14353 | fi |
14354 | ||
5213506e | 14355 | |
901119ae KT |
14356 | done |
14357 | fi | |
14358 | ||
14359 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14360 | for ncn_progname in windmc; do | |
5213506e RW |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14362 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
14363 | if test -x $with_build_time_tools/${ncn_progname}; then |
14364 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14366 | $as_echo "yes" >&6; } | |
901119ae KT |
14367 | break |
14368 | else | |
5213506e RW |
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14370 | $as_echo "no" >&6; } | |
901119ae KT |
14371 | fi |
14372 | done | |
14373 | fi | |
14374 | ||
14375 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14376 | for ncn_progname in windmc; do | |
14377 | if test -n "$ncn_target_tool_prefix"; then | |
14378 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14379 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14381 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14382 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14383 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14384 | else |
14385 | if test -n "$WINDMC_FOR_TARGET"; then | |
14386 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14387 | else | |
14388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14389 | for as_dir in $PATH | |
14390 | do | |
14391 | IFS=$as_save_IFS | |
14392 | test -z "$as_dir" && as_dir=. | |
5213506e | 14393 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14394 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14395 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14397 | break 2 |
14398 | fi | |
14399 | done | |
5213506e RW |
14400 | done |
14401 | IFS=$as_save_IFS | |
901119ae KT |
14402 | |
14403 | fi | |
14404 | fi | |
14405 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14406 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14408 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14409 | else |
5213506e RW |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14411 | $as_echo "no" >&6; } | |
901119ae KT |
14412 | fi |
14413 | ||
5213506e | 14414 | |
901119ae KT |
14415 | fi |
14416 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14417 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14418 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14420 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14421 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 14422 | $as_echo_n "(cached) " >&6 |
901119ae KT |
14423 | else |
14424 | if test -n "$WINDMC_FOR_TARGET"; then | |
14425 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14426 | else | |
14427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14428 | for as_dir in $PATH | |
14429 | do | |
14430 | IFS=$as_save_IFS | |
14431 | test -z "$as_dir" && as_dir=. | |
5213506e | 14432 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 14434 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 14435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
14436 | break 2 |
14437 | fi | |
14438 | done | |
5213506e RW |
14439 | done |
14440 | IFS=$as_save_IFS | |
901119ae KT |
14441 | |
14442 | fi | |
14443 | fi | |
14444 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14445 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14447 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 14448 | else |
5213506e RW |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14450 | $as_echo "no" >&6; } | |
901119ae KT |
14451 | fi |
14452 | ||
5213506e | 14453 | |
901119ae KT |
14454 | fi |
14455 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14456 | done | |
14457 | fi | |
14458 | ||
14459 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14460 | set dummy windmc | |
14461 | if test $build = $target ; then | |
14462 | WINDMC_FOR_TARGET="$2" | |
14463 | else | |
14464 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14465 | fi | |
1c00b503 PB |
14466 | else |
14467 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
14468 | fi |
14469 | ||
14470 | else | |
14471 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14472 | fi | |
14473 | ||
14474 | ||
2abefe3d PB |
14475 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14476 | ||
5213506e RW |
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14478 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 14479 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14480 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14481 | # We already found the complete path | |
172e41aa | 14482 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14484 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14485 | else |
14486 | # Canadian cross, just use what we found | |
5213506e RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14488 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14489 | fi |
2abefe3d PB |
14490 | else |
14491 | ok=yes | |
14492 | case " ${configdirs} " in | |
14493 | *" binutils "*) ;; | |
14494 | *) ok=no ;; | |
14495 | esac | |
1c710c3c | 14496 | |
2abefe3d PB |
14497 | if test $ok = yes; then |
14498 | # An in-tree tool is available and we can use it | |
14499 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
14500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14501 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14502 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14503 | # We already found the complete path | |
172e41aa | 14504 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14506 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14507 | elif test "x$target" = "x$host"; then |
14508 | # We can use an host tool | |
14509 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14511 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14512 | else |
14513 | # We need a cross tool | |
5213506e RW |
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14515 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14516 | fi |
14517 | fi | |
0b0dc272 | 14518 | |
5213506e RW |
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14520 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 14521 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14522 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14523 | # We already found the complete path | |
172e41aa | 14524 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14526 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14527 | else |
14528 | # Canadian cross, just use what we found | |
5213506e RW |
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14530 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14531 | fi |
2abefe3d PB |
14532 | else |
14533 | ok=yes | |
14534 | case " ${configdirs} " in | |
14535 | *" gas "*) ;; | |
14536 | *) ok=no ;; | |
14537 | esac | |
1c710c3c | 14538 | |
2abefe3d PB |
14539 | if test $ok = yes; then |
14540 | # An in-tree tool is available and we can use it | |
14541 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14543 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14544 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14545 | # We already found the complete path | |
172e41aa | 14546 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
14547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14548 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14549 | elif test "x$target" = "x$host"; then |
14550 | # We can use an host tool | |
14551 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14553 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14554 | else |
14555 | # We need a cross tool | |
5213506e RW |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14557 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14558 | fi |
14559 | fi | |
0b0dc272 | 14560 | |
5213506e RW |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14562 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 14563 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14564 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14565 | # We already found the complete path | |
172e41aa | 14566 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14568 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14569 | else |
14570 | # Canadian cross, just use what we found | |
5213506e RW |
14571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14572 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14573 | fi |
2abefe3d PB |
14574 | else |
14575 | ok=yes | |
14576 | case " ${configdirs} " in | |
14577 | *" gcc "*) ;; | |
14578 | *) ok=no ;; | |
14579 | esac | |
1c710c3c | 14580 | |
2abefe3d PB |
14581 | if test $ok = yes; then |
14582 | # An in-tree tool is available and we can use it | |
14583 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14585 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14586 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14587 | # We already found the complete path | |
172e41aa | 14588 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14590 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14591 | elif test "x$target" = "x$host"; then |
14592 | # We can use an host tool | |
14593 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14595 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14596 | else |
14597 | # We need a cross tool | |
5213506e RW |
14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14599 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14600 | fi |
14601 | fi | |
0b0dc272 | 14602 | |
5213506e RW |
14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14604 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 14605 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14606 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14607 | # We already found the complete path | |
172e41aa | 14608 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14610 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14611 | else |
14612 | # Canadian cross, just use what we found | |
5213506e RW |
14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14614 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14615 | fi |
2abefe3d PB |
14616 | else |
14617 | ok=yes | |
14618 | case " ${configdirs} " in | |
14619 | *" gcc "*) ;; | |
14620 | *) ok=no ;; | |
14621 | esac | |
14622 | case ,${enable_languages}, in | |
14623 | *,c++,*) ;; | |
14624 | *) ok=no ;; | |
14625 | esac | |
14626 | if test $ok = yes; then | |
14627 | # An in-tree tool is available and we can use it | |
2077db1b | 14628 | 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' |
5213506e RW |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14630 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14631 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14632 | # We already found the complete path | |
172e41aa | 14633 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14635 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14636 | elif test "x$target" = "x$host"; then |
14637 | # We can use an host tool | |
14638 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14640 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14641 | else |
14642 | # We need a cross tool | |
5213506e RW |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14644 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14645 | fi |
14646 | fi | |
0b0dc272 | 14647 | |
5213506e RW |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14649 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 14650 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14651 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14652 | # We already found the complete path | |
172e41aa | 14653 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14655 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14656 | else |
14657 | # Canadian cross, just use what we found | |
5213506e RW |
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14659 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14660 | fi |
2abefe3d PB |
14661 | else |
14662 | ok=yes | |
14663 | case " ${configdirs} " in | |
14664 | *" gcc "*) ;; | |
14665 | *) ok=no ;; | |
14666 | esac | |
14667 | case ,${enable_languages}, in | |
14668 | *,c++,*) ;; | |
14669 | *) ok=no ;; | |
14670 | esac | |
14671 | if test $ok = yes; then | |
14672 | # An in-tree tool is available and we can use it | |
2077db1b | 14673 | 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' |
5213506e RW |
14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14675 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14676 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14677 | # We already found the complete path | |
172e41aa | 14678 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
14679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14680 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14681 | elif test "x$target" = "x$host"; then |
14682 | # We can use an host tool | |
14683 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
14684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14685 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14686 | else |
14687 | # We need a cross tool | |
5213506e RW |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14689 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14690 | fi |
14691 | fi | |
0b0dc272 | 14692 | |
5213506e RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14694 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 14695 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14696 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14697 | # We already found the complete path | |
172e41aa | 14698 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14700 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14701 | else |
14702 | # Canadian cross, just use what we found | |
5213506e RW |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14704 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14705 | fi |
2abefe3d PB |
14706 | else |
14707 | ok=yes | |
14708 | case " ${configdirs} " in | |
14709 | *" binutils "*) ;; | |
14710 | *) ok=no ;; | |
14711 | esac | |
1c710c3c | 14712 | |
2abefe3d PB |
14713 | if test $ok = yes; then |
14714 | # An in-tree tool is available and we can use it | |
14715 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14717 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14718 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14719 | # We already found the complete path | |
172e41aa | 14720 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
14721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14722 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14723 | elif test "x$target" = "x$host"; then |
14724 | # We can use an host tool | |
14725 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
14726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14727 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14728 | else |
14729 | # We need a cross tool | |
5213506e RW |
14730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14731 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14732 | fi |
14733 | fi | |
0b0dc272 | 14734 | |
5213506e RW |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14736 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 14737 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14738 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14739 | # We already found the complete path | |
172e41aa | 14740 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14742 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14743 | else |
14744 | # Canadian cross, just use what we found | |
5213506e RW |
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14746 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14747 | fi |
2abefe3d PB |
14748 | else |
14749 | ok=yes | |
14750 | case " ${configdirs} " in | |
14751 | *" gcc "*) ;; | |
14752 | *) ok=no ;; | |
14753 | esac | |
1c710c3c | 14754 | |
2abefe3d PB |
14755 | if test $ok = yes; then |
14756 | # An in-tree tool is available and we can use it | |
14757 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14759 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14760 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14761 | # We already found the complete path | |
172e41aa | 14762 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14764 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14765 | elif test "x$target" = "x$host"; then |
14766 | # We can use an host tool | |
14767 | GCC_FOR_TARGET='$()' | |
5213506e RW |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14769 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14770 | else |
14771 | # We need a cross tool | |
5213506e RW |
14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14773 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14774 | fi |
14775 | fi | |
0b0dc272 | 14776 | |
5213506e RW |
14777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14778 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 14779 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14780 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14781 | # We already found the complete path | |
172e41aa | 14782 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14784 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14785 | else |
14786 | # Canadian cross, just use what we found | |
5213506e RW |
14787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14788 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14789 | fi |
2abefe3d PB |
14790 | else |
14791 | ok=yes | |
14792 | case " ${configdirs} " in | |
14793 | *" gcc "*) ;; | |
14794 | *) ok=no ;; | |
14795 | esac | |
14796 | case ,${enable_languages}, in | |
14797 | *,fortran,*) ;; | |
14798 | *) ok=no ;; | |
14799 | esac | |
14800 | if test $ok = yes; then | |
14801 | # An in-tree tool is available and we can use it | |
14802 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14804 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14805 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14806 | # We already found the complete path | |
172e41aa | 14807 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14809 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14810 | elif test "x$target" = "x$host"; then |
14811 | # We can use an host tool | |
14812 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14814 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14815 | else |
14816 | # We need a cross tool | |
5213506e RW |
14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14818 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14819 | fi |
14820 | fi | |
0b0dc272 | 14821 | |
632e2a07 ILT |
14822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14823 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14824 | if test "x${build}" != "x${host}" ; then | |
14825 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14826 | # We already found the complete path | |
14827 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14829 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14830 | else | |
14831 | # Canadian cross, just use what we found | |
14832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14833 | $as_echo "pre-installed" >&6; } | |
14834 | fi | |
14835 | else | |
14836 | ok=yes | |
14837 | case " ${configdirs} " in | |
14838 | *" gcc "*) ;; | |
14839 | *) ok=no ;; | |
14840 | esac | |
14841 | case ,${enable_languages}, in | |
14842 | *,go,*) ;; | |
14843 | *) ok=no ;; | |
14844 | esac | |
14845 | if test $ok = yes; then | |
14846 | # An in-tree tool is available and we can use it | |
14847 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14849 | $as_echo "just compiled" >&6; } | |
14850 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14851 | # We already found the complete path | |
14852 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14854 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14855 | elif test "x$target" = "x$host"; then | |
14856 | # We can use an host tool | |
14857 | GOC_FOR_TARGET='$(GOC)' | |
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14859 | $as_echo "host tool" >&6; } | |
14860 | else | |
14861 | # We need a cross tool | |
14862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14863 | $as_echo "pre-installed" >&6; } | |
14864 | fi | |
14865 | fi | |
14866 | ||
b4c522fa IB |
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
14868 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
14869 | if test "x${build}" != "x${host}" ; then | |
14870 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14871 | # We already found the complete path | |
14872 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14874 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14875 | else | |
14876 | # Canadian cross, just use what we found | |
14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14878 | $as_echo "pre-installed" >&6; } | |
14879 | fi | |
14880 | else | |
14881 | ok=yes | |
14882 | case " ${configdirs} " in | |
14883 | *" gcc "*) ;; | |
14884 | *) ok=no ;; | |
14885 | esac | |
14886 | case ,${enable_languages}, in | |
14887 | *,d,*) ;; | |
14888 | *) ok=no ;; | |
14889 | esac | |
14890 | if test $ok = yes; then | |
14891 | # An in-tree tool is available and we can use it | |
14892 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14894 | $as_echo "just compiled" >&6; } | |
14895 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14896 | # We already found the complete path | |
14897 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14899 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14900 | elif test "x$target" = "x$host"; then | |
14901 | # We can use an host tool | |
14902 | GDC_FOR_TARGET='$(GDC)' | |
14903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14904 | $as_echo "host tool" >&6; } | |
14905 | else | |
14906 | # We need a cross tool | |
14907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14908 | $as_echo "pre-installed" >&6; } | |
14909 | fi | |
14910 | fi | |
14911 | ||
5213506e RW |
14912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14913 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 14914 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14915 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14916 | # We already found the complete path | |
172e41aa | 14917 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14919 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14920 | else |
14921 | # Canadian cross, just use what we found | |
5213506e RW |
14922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14923 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14924 | fi |
2abefe3d PB |
14925 | else |
14926 | ok=yes | |
14927 | case " ${configdirs} " in | |
14928 | *" ld "*) ;; | |
14929 | *) ok=no ;; | |
14930 | esac | |
1c710c3c | 14931 | |
2abefe3d PB |
14932 | if test $ok = yes; then |
14933 | # An in-tree tool is available and we can use it | |
14934 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14936 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14937 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14938 | # We already found the complete path | |
172e41aa | 14939 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14941 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14942 | elif test "x$target" = "x$host"; then |
14943 | # We can use an host tool | |
14944 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14946 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14947 | else |
14948 | # We need a cross tool | |
5213506e RW |
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14950 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14951 | fi |
14952 | fi | |
0b0dc272 | 14953 | |
5213506e RW |
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14955 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14956 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14957 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14958 | # We already found the complete path | |
172e41aa | 14959 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14961 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14962 | else |
14963 | # Canadian cross, just use what we found | |
5213506e RW |
14964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14965 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14966 | fi |
2abefe3d | 14967 | else |
e8b05380 PB |
14968 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14969 | # We already found the complete path | |
172e41aa | 14970 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14972 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 14973 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14974 | # We can use an host tool |
14975 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14977 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14978 | else |
14979 | # We need a cross tool | |
5213506e RW |
14980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14981 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14982 | fi |
14983 | fi | |
0b0dc272 | 14984 | |
5213506e RW |
14985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14986 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14987 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14988 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14989 | # We already found the complete path | |
172e41aa | 14990 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14992 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14993 | else |
14994 | # Canadian cross, just use what we found | |
5213506e RW |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14996 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14997 | fi |
2abefe3d PB |
14998 | else |
14999 | ok=yes | |
15000 | case " ${configdirs} " in | |
15001 | *" binutils "*) ;; | |
15002 | *) ok=no ;; | |
15003 | esac | |
1c710c3c | 15004 | |
2abefe3d PB |
15005 | if test $ok = yes; then |
15006 | # An in-tree tool is available and we can use it | |
15007 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15009 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15010 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
15011 | # We already found the complete path | |
172e41aa | 15012 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15014 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15015 | elif test "x$target" = "x$host"; then |
15016 | # We can use an host tool | |
15017 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
15018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15019 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15020 | else |
15021 | # We need a cross tool | |
5213506e RW |
15022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15023 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15024 | fi |
15025 | fi | |
0b0dc272 | 15026 | |
9bccfdf5 AP |
15027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
15028 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
15029 | if test "x${build}" != "x${host}" ; then | |
15030 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
15031 | # We already found the complete path | |
15032 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
15033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15034 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15035 | else | |
15036 | # Canadian cross, just use what we found | |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15038 | $as_echo "pre-installed" >&6; } | |
15039 | fi | |
15040 | else | |
15041 | ok=yes | |
15042 | case " ${configdirs} " in | |
15043 | *" binutils "*) ;; | |
15044 | *) ok=no ;; | |
15045 | esac | |
15046 | ||
15047 | if test $ok = yes; then | |
15048 | # An in-tree tool is available and we can use it | |
15049 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
15050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15051 | $as_echo "just compiled" >&6; } | |
15052 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
15053 | # We already found the complete path | |
15054 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15056 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15057 | elif test "x$target" = "x$host"; then | |
15058 | # We can use an host tool | |
ec8fd1c0 | 15059 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
15060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15061 | $as_echo "host tool" >&6; } | |
15062 | else | |
15063 | # We need a cross tool | |
15064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15065 | $as_echo "pre-installed" >&6; } | |
15066 | fi | |
15067 | fi | |
15068 | ||
5213506e RW |
15069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
15070 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 15071 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15072 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
15073 | # We already found the complete path | |
172e41aa | 15074 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15076 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15077 | else |
15078 | # Canadian cross, just use what we found | |
5213506e RW |
15079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15080 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15081 | fi |
2abefe3d PB |
15082 | else |
15083 | ok=yes | |
15084 | case " ${configdirs} " in | |
15085 | *" binutils "*) ;; | |
15086 | *) ok=no ;; | |
15087 | esac | |
1c710c3c | 15088 | |
2abefe3d PB |
15089 | if test $ok = yes; then |
15090 | # An in-tree tool is available and we can use it | |
15091 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15093 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15094 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
15095 | # We already found the complete path | |
172e41aa | 15096 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
15097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15098 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15099 | elif test "x$target" = "x$host"; then |
15100 | # We can use an host tool | |
15101 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
15102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15103 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15104 | else |
15105 | # We need a cross tool | |
5213506e RW |
15106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15107 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15108 | fi |
15109 | fi | |
0b0dc272 | 15110 | |
e4a9a572 IS |
15111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
15112 | $as_echo_n "checking where to find the target otool... " >&6; } | |
15113 | if test "x${build}" != "x${host}" ; then | |
15114 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15115 | # We already found the complete path | |
15116 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15118 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15119 | else | |
15120 | # Canadian cross, just use what we found | |
15121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15122 | $as_echo "pre-installed" >&6; } | |
15123 | fi | |
15124 | else | |
15125 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15126 | # We already found the complete path | |
15127 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15129 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15130 | elif test "x$target" = "x$host"; then | |
15131 | # We can use an host tool | |
15132 | OTOOL_FOR_TARGET='$(OTOOL)' | |
15133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15134 | $as_echo "host tool" >&6; } | |
15135 | else | |
15136 | # We need a cross tool | |
15137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15138 | $as_echo "pre-installed" >&6; } | |
15139 | fi | |
15140 | fi | |
15141 | ||
5213506e RW |
15142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
15143 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 15144 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15145 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15146 | # We already found the complete path | |
172e41aa | 15147 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15149 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15150 | else |
15151 | # Canadian cross, just use what we found | |
5213506e RW |
15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15153 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15154 | fi |
2abefe3d PB |
15155 | else |
15156 | ok=yes | |
15157 | case " ${configdirs} " in | |
15158 | *" binutils "*) ;; | |
15159 | *) ok=no ;; | |
15160 | esac | |
1c710c3c | 15161 | |
2abefe3d PB |
15162 | if test $ok = yes; then |
15163 | # An in-tree tool is available and we can use it | |
15164 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
15165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15166 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15167 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15168 | # We already found the complete path | |
172e41aa | 15169 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15171 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15172 | elif test "x$target" = "x$host"; then |
15173 | # We can use an host tool | |
15174 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15176 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15177 | else |
15178 | # We need a cross tool | |
5213506e RW |
15179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15180 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15181 | fi |
15182 | fi | |
0b0dc272 | 15183 | |
e7a82751 RM |
15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
15185 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
15186 | if test "x${build}" != "x${host}" ; then | |
15187 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15188 | # We already found the complete path | |
15189 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15191 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15192 | else | |
15193 | # Canadian cross, just use what we found | |
15194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15195 | $as_echo "pre-installed" >&6; } | |
15196 | fi | |
15197 | else | |
15198 | ok=yes | |
15199 | case " ${configdirs} " in | |
15200 | *" binutils "*) ;; | |
15201 | *) ok=no ;; | |
15202 | esac | |
15203 | ||
15204 | if test $ok = yes; then | |
15205 | # An in-tree tool is available and we can use it | |
15206 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15208 | $as_echo "just compiled" >&6; } | |
15209 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15210 | # We already found the complete path | |
15211 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15213 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15214 | elif test "x$target" = "x$host"; then | |
15215 | # We can use an host tool | |
15216 | READELF_FOR_TARGET='$(READELF)' | |
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15218 | $as_echo "host tool" >&6; } | |
15219 | else | |
15220 | # We need a cross tool | |
15221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15222 | $as_echo "pre-installed" >&6; } | |
15223 | fi | |
15224 | fi | |
15225 | ||
5213506e RW |
15226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
15227 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 15228 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15229 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15230 | # We already found the complete path | |
172e41aa | 15231 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
15232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15233 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15234 | else |
15235 | # Canadian cross, just use what we found | |
5213506e RW |
15236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15237 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15238 | fi |
2abefe3d PB |
15239 | else |
15240 | ok=yes | |
15241 | case " ${configdirs} " in | |
15242 | *" binutils "*) ;; | |
15243 | *) ok=no ;; | |
15244 | esac | |
1c710c3c | 15245 | |
2abefe3d PB |
15246 | if test $ok = yes; then |
15247 | # An in-tree tool is available and we can use it | |
455c8f48 | 15248 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
15249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15250 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15251 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15252 | # We already found the complete path | |
172e41aa | 15253 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
15254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15255 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15256 | elif test "x$target" = "x$host"; then |
15257 | # We can use an host tool | |
15258 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
15259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15260 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15261 | else |
15262 | # We need a cross tool | |
5213506e RW |
15263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15264 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15265 | fi |
15266 | fi | |
0b0dc272 | 15267 | |
5213506e RW |
15268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
15269 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 15270 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15271 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15272 | # We already found the complete path | |
172e41aa | 15273 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15275 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15276 | else |
15277 | # Canadian cross, just use what we found | |
5213506e RW |
15278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15279 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15280 | fi |
2abefe3d PB |
15281 | else |
15282 | ok=yes | |
15283 | case " ${configdirs} " in | |
15284 | *" binutils "*) ;; | |
15285 | *) ok=no ;; | |
15286 | esac | |
1c710c3c | 15287 | |
2abefe3d PB |
15288 | if test $ok = yes; then |
15289 | # An in-tree tool is available and we can use it | |
15290 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
15291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15292 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15293 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15294 | # We already found the complete path | |
172e41aa | 15295 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15297 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15298 | elif test "x$target" = "x$host"; then |
15299 | # We can use an host tool | |
15300 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
15301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15302 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15303 | else |
15304 | # We need a cross tool | |
5213506e RW |
15305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15306 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 15307 | fi |
671aa708 | 15308 | fi |
be912515 | 15309 | |
5213506e RW |
15310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
15311 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
15312 | if test "x${build}" != "x${host}" ; then |
15313 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
15314 | # We already found the complete path | |
15315 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15317 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
15318 | else |
15319 | # Canadian cross, just use what we found | |
5213506e RW |
15320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15321 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
15322 | fi |
15323 | else | |
15324 | ok=yes | |
15325 | case " ${configdirs} " in | |
15326 | *" binutils "*) ;; | |
15327 | *) ok=no ;; | |
15328 | esac | |
15329 | ||
15330 | if test $ok = yes; then | |
15331 | # An in-tree tool is available and we can use it | |
15332 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
15333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15334 | $as_echo "just compiled" >&6; } | |
901119ae KT |
15335 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
15336 | # We already found the complete path | |
15337 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
15338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15339 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
15340 | elif test "x$target" = "x$host"; then |
15341 | # We can use an host tool | |
15342 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15344 | $as_echo "host tool" >&6; } | |
901119ae KT |
15345 | else |
15346 | # We need a cross tool | |
5213506e RW |
15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15348 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
15349 | fi |
15350 | fi | |
15351 | ||
be912515 NN |
15352 | |
15353 | ||
2abefe3d | 15354 | |
0b0dc272 | 15355 | |
671aa708 NN |
15356 | # Certain tools may need extra flags. |
15357 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15358 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15359 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15360 | ||
2abefe3d PB |
15361 | # When building target libraries, except in a Canadian cross, we use |
15362 | # the same toolchain as the compiler we just built. | |
15363 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15364 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15365 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15366 | if test $host = $build; then | |
15367 | case " $configdirs " in | |
15368 | *" gcc "*) | |
15369 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15370 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15371 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15372 | ;; | |
15373 | esac | |
15374 | fi | |
15375 | ||
15376 | ||
15377 | ||
15378 | ||
15379 | ||
5213506e RW |
15380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15381 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15382 | # Check whether --enable-maintainer-mode was given. | |
15383 | if test "${enable_maintainer_mode+set}" = set; then : | |
15384 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
15385 | else |
15386 | USE_MAINTAINER_MODE=no | |
5213506e RW |
15387 | fi |
15388 | ||
15389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15390 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
15391 | |
15392 | ||
15393 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15394 | MAINTAINER_MODE_TRUE= | |
15395 | MAINTAINER_MODE_FALSE='#' | |
15396 | else | |
15397 | MAINTAINER_MODE_TRUE='#' | |
15398 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 15399 | fi |
ee03dc5e AO |
15400 | MAINT=$MAINTAINER_MODE_TRUE |
15401 | ||
2805b53a NN |
15402 | # --------------------- |
15403 | # GCC bootstrap support | |
15404 | # --------------------- | |
15405 | ||
15406 | # Stage specific cflags for build. | |
15407 | stage1_cflags="-g" | |
15408 | case $build in | |
15409 | vax-*-*) | |
15410 | case ${GCC} in | |
15411 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15412 | *) stage1_cflags="-g -J" ;; | |
15413 | esac ;; | |
2805b53a NN |
15414 | esac |
15415 | ||
0b50988a | 15416 | |
2805b53a | 15417 | |
8efea775 | 15418 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
15419 | # Check whether --enable-stage1-checking was given. |
15420 | if test "${enable_stage1_checking+set}" = set; then : | |
15421 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 15422 | else |
e643dc23 | 15423 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
15424 | # For --disable-checking or implicit --enable-checking=release, avoid |
15425 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15426 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
15427 | case $BUILD_CONFIG in |
15428 | *lto*) | |
7db11a5a JJ |
15429 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15430 | *) | |
15431 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 15432 | esac |
7db11a5a JJ |
15433 | if test "x$enable_checking" = x && \ |
15434 | test -d ${srcdir}/gcc && \ | |
15435 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 15436 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 15437 | fi |
8efea775 | 15438 | else |
e643dc23 | 15439 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 15440 | fi |
5213506e | 15441 | fi |
8efea775 PB |
15442 | |
15443 | ||
2aeb72e9 | 15444 | |
5213506e RW |
15445 | # Enable -Werror in bootstrap stage2 and later. |
15446 | # Check whether --enable-werror was given. | |
15447 | if test "${enable_werror+set}" = set; then : | |
15448 | enableval=$enable_werror; | |
09a9c095 NN |
15449 | case ${enable_werror} in |
15450 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15451 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
15452 | esac |
15453 | ||
afd88efc ML |
15454 | else |
15455 | ||
01c712cb ML |
15456 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
15457 | case $BUILD_CONFIG in | |
15458 | bootstrap-debug) | |
15459 | stage2_werror_flag="--enable-werror-always" ;; | |
15460 | "") | |
15461 | stage2_werror_flag="--enable-werror-always" ;; | |
15462 | esac | |
15463 | fi | |
15464 | ||
afd88efc ML |
15465 | fi |
15466 | ||
15467 | ||
01c712cb | 15468 | |
2805b53a | 15469 | |
f2689b09 SE |
15470 | # Specify what files to not compare during bootstrap. |
15471 | ||
15472 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15473 | case "$target" in | |
15474 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
15475 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
15476 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
15477 | esac |
15478 | ||
15479 | ||
5213506e RW |
15480 | ac_config_files="$ac_config_files Makefile" |
15481 | ||
1c710c3c | 15482 | cat >confcache <<\_ACEOF |
671aa708 NN |
15483 | # This file is a shell script that caches the results of configure |
15484 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
15485 | # scripts and configure runs, see configure's option --config-cache. |
15486 | # It is not useful on other systems. If it contains results you don't | |
15487 | # want to keep, you may remove or edit it. | |
671aa708 | 15488 | # |
1c710c3c DJ |
15489 | # config.status only pays attention to the cache file if you give it |
15490 | # the --recheck option to rerun configure. | |
671aa708 | 15491 | # |
1c710c3c DJ |
15492 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15493 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15494 | # following values. | |
15495 | ||
15496 | _ACEOF | |
15497 | ||
671aa708 NN |
15498 | # The following way of writing the cache mishandles newlines in values, |
15499 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 15500 | # So, we kill variables containing newlines. |
671aa708 NN |
15501 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15502 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
15503 | ( |
15504 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15505 | eval ac_val=\$$ac_var | |
15506 | case $ac_val in #( | |
15507 | *${as_nl}*) | |
15508 | case $ac_var in #( | |
15509 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15510 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15511 | esac | |
15512 | case $ac_var in #( | |
15513 | _ | IFS | as_nl) ;; #( | |
15514 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15515 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15516 | esac ;; | |
15517 | esac | |
15518 | done | |
15519 | ||
1c710c3c | 15520 | (set) 2>&1 | |
5213506e RW |
15521 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15522 | *${as_nl}ac_space=\ *) | |
15523 | # `set' does not quote correctly, so add quotes: double-quote | |
15524 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
15525 | sed -n \ |
15526 | "s/'/'\\\\''/g; | |
15527 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 15528 | ;; #( |
1c710c3c DJ |
15529 | *) |
15530 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 15531 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 15532 | ;; |
5213506e RW |
15533 | esac | |
15534 | sort | |
15535 | ) | | |
1c710c3c | 15536 | sed ' |
5213506e | 15537 | /^ac_cv_env_/b end |
1c710c3c | 15538 | t clear |
5213506e | 15539 | :clear |
1c710c3c DJ |
15540 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15541 | t end | |
5213506e RW |
15542 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15543 | :end' >>confcache | |
15544 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15545 | if test -w "$cache_file"; then | |
22e05272 | 15546 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
15547 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15548 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
15549 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15550 | cat confcache >"$cache_file" | |
15551 | else | |
15552 | case $cache_file in #( | |
15553 | */* | ?:*) | |
15554 | mv -f confcache "$cache_file"$$ && | |
15555 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15556 | *) | |
15557 | mv -f confcache "$cache_file" ;; | |
15558 | esac | |
15559 | fi | |
15560 | fi | |
671aa708 | 15561 | else |
5213506e RW |
15562 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15563 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 15564 | fi |
4977bab6 | 15565 | fi |
671aa708 | 15566 | rm -f confcache |
79c06341 | 15567 | |
671aa708 NN |
15568 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15569 | # Let make expand exec_prefix. | |
15570 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 15571 | |
671aa708 NN |
15572 | # Transform confdefs.h into DEFS. |
15573 | # Protect against shell expansion while executing Makefile rules. | |
15574 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
15575 | # |
15576 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 15577 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 15578 | # look for a macro that doesn't take arguments. |
5213506e RW |
15579 | ac_script=' |
15580 | :mline | |
15581 | /\\$/{ | |
15582 | N | |
15583 | s,\\\n,, | |
15584 | b mline | |
15585 | } | |
1c710c3c | 15586 | t clear |
5213506e RW |
15587 | :clear |
15588 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 15589 | t quote |
5213506e | 15590 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 15591 | t quote |
5213506e RW |
15592 | b any |
15593 | :quote | |
15594 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15595 | s/\[/\\&/g | |
15596 | s/\]/\\&/g | |
15597 | s/\$/$$/g | |
15598 | H | |
15599 | :any | |
15600 | ${ | |
15601 | g | |
15602 | s/^\n// | |
15603 | s/\n/ /g | |
15604 | p | |
15605 | } | |
15606 | ' | |
15607 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
15608 | |
15609 | ||
15610 | ac_libobjs= | |
15611 | ac_ltlibobjs= | |
22e05272 | 15612 | U= |
1c710c3c DJ |
15613 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15614 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
15615 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15616 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15617 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15618 | # will be set to the directory where LIBOBJS objects are built. | |
15619 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15620 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
15621 | done |
15622 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 15623 | |
1c710c3c | 15624 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 15625 | |
af71363e | 15626 | |
1c710c3c | 15627 | |
22e05272 | 15628 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 15629 | ac_write_fail=0 |
1c710c3c DJ |
15630 | ac_clean_files_save=$ac_clean_files |
15631 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
15632 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15633 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15634 | as_write_fail=0 | |
15635 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
15636 | #! $SHELL |
15637 | # Generated by $as_me. | |
671aa708 | 15638 | # Run this file to recreate the current configuration. |
671aa708 | 15639 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 15640 | # configure, is in config.log if it exists. |
0b0dc272 | 15641 | |
1c710c3c DJ |
15642 | debug=false |
15643 | ac_cs_recheck=false | |
15644 | ac_cs_silent=false | |
1c710c3c | 15645 | |
5213506e RW |
15646 | SHELL=\${CONFIG_SHELL-$SHELL} |
15647 | export SHELL | |
15648 | _ASEOF | |
15649 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15650 | ## -------------------- ## | |
15651 | ## M4sh Initialization. ## | |
15652 | ## -------------------- ## | |
15653 | ||
15654 | # Be more Bourne compatible | |
15655 | DUALCASE=1; export DUALCASE # for MKS sh | |
15656 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
15657 | emulate sh |
15658 | NULLCMD=: | |
5213506e | 15659 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
15660 | # is contrary to our usage. Disable this feature. |
15661 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
15662 | setopt NO_GLOB_SUBST |
15663 | else | |
15664 | case `(set -o) 2>/dev/null` in #( | |
15665 | *posix*) : | |
15666 | set -o posix ;; #( | |
15667 | *) : | |
15668 | ;; | |
15669 | esac | |
1c710c3c | 15670 | fi |
1c710c3c | 15671 | |
5213506e RW |
15672 | |
15673 | as_nl=' | |
15674 | ' | |
15675 | export as_nl | |
15676 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15677 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15678 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15680 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15681 | # but without wasting forks for bash or zsh. | |
15682 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15683 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15684 | as_echo='print -r --' | |
15685 | as_echo_n='print -rn --' | |
15686 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15687 | as_echo='printf %s\n' | |
15688 | as_echo_n='printf %s' | |
15689 | else | |
15690 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15691 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15692 | as_echo_n='/usr/ucb/echo -n' | |
15693 | else | |
15694 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15695 | as_echo_n_body='eval | |
15696 | arg=$1; | |
15697 | case $arg in #( | |
15698 | *"$as_nl"*) | |
15699 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15700 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15701 | esac; | |
15702 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15703 | ' | |
15704 | export as_echo_n_body | |
15705 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15706 | fi | |
15707 | export as_echo_body | |
15708 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
15709 | fi |
15710 | ||
5213506e RW |
15711 | # The user is always right. |
15712 | if test "${PATH_SEPARATOR+set}" != set; then | |
15713 | PATH_SEPARATOR=: | |
15714 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15715 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15716 | PATH_SEPARATOR=';' | |
15717 | } | |
15718 | fi | |
15719 | ||
15720 | ||
15721 | # IFS | |
15722 | # We need space, tab and new line, in precisely that order. Quoting is | |
15723 | # there to prevent editors from complaining about space-tab. | |
15724 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15725 | # splitting by setting IFS to empty value.) | |
15726 | IFS=" "" $as_nl" | |
15727 | ||
15728 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 15729 | as_myself= |
5213506e RW |
15730 | case $0 in #(( |
15731 | *[\\/]* ) as_myself=$0 ;; | |
15732 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15733 | for as_dir in $PATH | |
15734 | do | |
15735 | IFS=$as_save_IFS | |
15736 | test -z "$as_dir" && as_dir=. | |
15737 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15738 | done | |
15739 | IFS=$as_save_IFS | |
15740 | ||
15741 | ;; | |
15742 | esac | |
15743 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15744 | # in which case we are not to be found in the path. | |
15745 | if test "x$as_myself" = x; then | |
15746 | as_myself=$0 | |
15747 | fi | |
15748 | if test ! -f "$as_myself"; then | |
15749 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15750 | exit 1 | |
15751 | fi | |
1c710c3c | 15752 | |
5213506e RW |
15753 | # Unset variables that we do not need and which cause bugs (e.g. in |
15754 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15755 | # suppresses any "Segmentation fault" message there. '((' could | |
15756 | # trigger a bug in pdksh 5.2.14. | |
15757 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15758 | do eval test x\${$as_var+set} = xset \ | |
15759 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15760 | done | |
1c710c3c DJ |
15761 | PS1='$ ' |
15762 | PS2='> ' | |
15763 | PS4='+ ' | |
15764 | ||
15765 | # NLS nuisances. | |
5213506e RW |
15766 | LC_ALL=C |
15767 | export LC_ALL | |
15768 | LANGUAGE=C | |
15769 | export LANGUAGE | |
15770 | ||
15771 | # CDPATH. | |
15772 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15773 | ||
15774 | ||
22e05272 JM |
15775 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15776 | # ---------------------------------------- | |
5213506e RW |
15777 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15778 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 15779 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
15780 | as_fn_error () |
15781 | { | |
22e05272 JM |
15782 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15783 | if test "$4"; then | |
15784 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15785 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 15786 | fi |
22e05272 | 15787 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
15788 | as_fn_exit $as_status |
15789 | } # as_fn_error | |
15790 | ||
15791 | ||
15792 | # as_fn_set_status STATUS | |
15793 | # ----------------------- | |
15794 | # Set $? to STATUS, without forking. | |
15795 | as_fn_set_status () | |
15796 | { | |
15797 | return $1 | |
15798 | } # as_fn_set_status | |
15799 | ||
15800 | # as_fn_exit STATUS | |
15801 | # ----------------- | |
15802 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15803 | as_fn_exit () | |
15804 | { | |
15805 | set +e | |
15806 | as_fn_set_status $1 | |
15807 | exit $1 | |
15808 | } # as_fn_exit | |
15809 | ||
15810 | # as_fn_unset VAR | |
15811 | # --------------- | |
15812 | # Portably unset VAR. | |
15813 | as_fn_unset () | |
15814 | { | |
15815 | { eval $1=; unset $1;} | |
15816 | } | |
15817 | as_unset=as_fn_unset | |
15818 | # as_fn_append VAR VALUE | |
15819 | # ---------------------- | |
15820 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15821 | # advantage of any shell optimizations that allow amortized linear growth over | |
15822 | # repeated appends, instead of the typical quadratic growth present in naive | |
15823 | # implementations. | |
15824 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15825 | eval 'as_fn_append () | |
15826 | { | |
15827 | eval $1+=\$2 | |
15828 | }' | |
15829 | else | |
15830 | as_fn_append () | |
15831 | { | |
15832 | eval $1=\$$1\$2 | |
15833 | } | |
15834 | fi # as_fn_append | |
15835 | ||
15836 | # as_fn_arith ARG... | |
15837 | # ------------------ | |
15838 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15839 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15840 | # must be portable across $(()) and expr. | |
15841 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15842 | eval 'as_fn_arith () | |
15843 | { | |
15844 | as_val=$(( $* )) | |
15845 | }' | |
15846 | else | |
15847 | as_fn_arith () | |
15848 | { | |
15849 | as_val=`expr "$@" || test $? -eq 1` | |
15850 | } | |
15851 | fi # as_fn_arith | |
15852 | ||
1c710c3c | 15853 | |
5213506e RW |
15854 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15855 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
15856 | as_expr=expr |
15857 | else | |
15858 | as_expr=false | |
15859 | fi | |
15860 | ||
5213506e | 15861 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
15862 | as_basename=basename |
15863 | else | |
15864 | as_basename=false | |
15865 | fi | |
15866 | ||
5213506e RW |
15867 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15868 | as_dirname=dirname | |
15869 | else | |
15870 | as_dirname=false | |
15871 | fi | |
1c710c3c | 15872 | |
5213506e | 15873 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
15874 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15875 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
15876 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15877 | $as_echo X/"$0" | | |
15878 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15879 | s//\1/ | |
15880 | q | |
15881 | } | |
15882 | /^X\/\(\/\/\)$/{ | |
15883 | s//\1/ | |
15884 | q | |
15885 | } | |
15886 | /^X\/\(\/\).*/{ | |
15887 | s//\1/ | |
15888 | q | |
15889 | } | |
15890 | s/.*/./; q'` | |
2aeb72e9 | 15891 | |
2aeb72e9 DD |
15892 | # Avoid depending upon Character Ranges. |
15893 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15894 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15895 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15896 | as_cr_digits='0123456789' | |
15897 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15898 | ||
5213506e RW |
15899 | ECHO_C= ECHO_N= ECHO_T= |
15900 | case `echo -n x` in #((((( | |
15901 | -n*) | |
15902 | case `echo 'xy\c'` in | |
15903 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15904 | xy) ECHO_C='\c';; | |
15905 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15906 | ECHO_T=' ';; | |
15907 | esac;; | |
15908 | *) | |
15909 | ECHO_N='-n';; | |
1c710c3c DJ |
15910 | esac |
15911 | ||
5213506e RW |
15912 | rm -f conf$$ conf$$.exe conf$$.file |
15913 | if test -d conf$$.dir; then | |
15914 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 15915 | else |
5213506e RW |
15916 | rm -f conf$$.dir |
15917 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 15918 | fi |
5213506e RW |
15919 | if (echo >conf$$.file) 2>/dev/null; then |
15920 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 15921 | as_ln_s='ln -s' |
5213506e RW |
15922 | # ... but there are two gotchas: |
15923 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15924 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 15925 | # In both cases, we have to default to `cp -pR'. |
5213506e | 15926 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 15927 | as_ln_s='cp -pR' |
5213506e RW |
15928 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15929 | as_ln_s=ln | |
15930 | else | |
22e05272 | 15931 | as_ln_s='cp -pR' |
2aeb72e9 | 15932 | fi |
1c710c3c | 15933 | else |
22e05272 | 15934 | as_ln_s='cp -pR' |
1c710c3c | 15935 | fi |
5213506e RW |
15936 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15937 | rmdir conf$$.dir 2>/dev/null | |
15938 | ||
15939 | ||
15940 | # as_fn_mkdir_p | |
15941 | # ------------- | |
15942 | # Create "$as_dir" as a directory, including parents if necessary. | |
15943 | as_fn_mkdir_p () | |
15944 | { | |
15945 | ||
15946 | case $as_dir in #( | |
15947 | -*) as_dir=./$as_dir;; | |
15948 | esac | |
15949 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15950 | as_dirs= | |
15951 | while :; do | |
15952 | case $as_dir in #( | |
15953 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15954 | *) as_qdir=$as_dir;; | |
15955 | esac | |
15956 | as_dirs="'$as_qdir' $as_dirs" | |
15957 | as_dir=`$as_dirname -- "$as_dir" || | |
15958 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15959 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15960 | X"$as_dir" : 'X\(//\)$' \| \ | |
15961 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15962 | $as_echo X"$as_dir" | | |
15963 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15964 | s//\1/ | |
15965 | q | |
15966 | } | |
15967 | /^X\(\/\/\)[^/].*/{ | |
15968 | s//\1/ | |
15969 | q | |
15970 | } | |
15971 | /^X\(\/\/\)$/{ | |
15972 | s//\1/ | |
15973 | q | |
15974 | } | |
15975 | /^X\(\/\).*/{ | |
15976 | s//\1/ | |
15977 | q | |
15978 | } | |
15979 | s/.*/./; q'` | |
15980 | test -d "$as_dir" && break | |
15981 | done | |
15982 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 15983 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 15984 | |
1c710c3c | 15985 | |
5213506e | 15986 | } # as_fn_mkdir_p |
1c710c3c | 15987 | if mkdir -p . 2>/dev/null; then |
5213506e | 15988 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
15989 | else |
15990 | test -d ./-p && rmdir ./-p | |
15991 | as_mkdir_p=false | |
15992 | fi | |
15993 | ||
22e05272 JM |
15994 | |
15995 | # as_fn_executable_p FILE | |
15996 | # ----------------------- | |
15997 | # Test if FILE is an executable regular file. | |
15998 | as_fn_executable_p () | |
15999 | { | |
16000 | test -f "$1" && test -x "$1" | |
16001 | } # as_fn_executable_p | |
16002 | as_test_x='test -x' | |
16003 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
16004 | |
16005 | # Sed expression to map a string onto a valid CPP name. | |
16006 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16007 | ||
16008 | # Sed expression to map a string onto a valid variable name. | |
16009 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16010 | ||
16011 | ||
1c710c3c | 16012 | exec 6>&1 |
5213506e RW |
16013 | ## ----------------------------------- ## |
16014 | ## Main body of $CONFIG_STATUS script. ## | |
16015 | ## ----------------------------------- ## | |
16016 | _ASEOF | |
16017 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16018 | ||
16019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16020 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 16021 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
16022 | # values after options handling. |
16023 | ac_log=" | |
1c710c3c | 16024 | This file was extended by $as_me, which was |
22e05272 | 16025 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
16026 | |
16027 | CONFIG_FILES = $CONFIG_FILES | |
16028 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16029 | CONFIG_LINKS = $CONFIG_LINKS | |
16030 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16031 | $ $0 $@ | |
16032 | ||
5213506e RW |
16033 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16034 | " | |
16035 | ||
1c710c3c DJ |
16036 | _ACEOF |
16037 | ||
5213506e RW |
16038 | case $ac_config_files in *" |
16039 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16040 | esac | |
1c710c3c | 16041 | |
2aeb72e9 | 16042 | |
2aeb72e9 | 16043 | |
5213506e RW |
16044 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16045 | # Files that config.status was made for. | |
16046 | config_files="$ac_config_files" | |
1c710c3c | 16047 | |
5213506e | 16048 | _ACEOF |
2aeb72e9 | 16049 | |
5213506e | 16050 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 16051 | ac_cs_usage="\ |
5213506e RW |
16052 | \`$as_me' instantiates files and other configuration actions |
16053 | from templates according to the current configuration. Unless the files | |
16054 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 16055 | |
5213506e | 16056 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
16057 | |
16058 | -h, --help print this help, then exit | |
5213506e | 16059 | -V, --version print version number and configuration settings, then exit |
22e05272 | 16060 | --config print configuration, then exit |
5213506e RW |
16061 | -q, --quiet, --silent |
16062 | do not print progress messages | |
1c710c3c DJ |
16063 | -d, --debug don't remove temporary files |
16064 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
16065 | --file=FILE[:TEMPLATE] |
16066 | instantiate the configuration file FILE | |
1c710c3c DJ |
16067 | |
16068 | Configuration files: | |
16069 | $config_files | |
16070 | ||
5213506e | 16071 | Report bugs to the package provider." |
2aeb72e9 | 16072 | |
5213506e RW |
16073 | _ACEOF |
16074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16075 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
16076 | ac_cs_version="\\ |
16077 | config.status | |
22e05272 JM |
16078 | configured by $0, generated by GNU Autoconf 2.69, |
16079 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 16080 | |
22e05272 | 16081 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
16082 | This config.status script is free software; the Free Software Foundation |
16083 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
16084 | |
16085 | ac_pwd='$ac_pwd' | |
16086 | srcdir='$srcdir' | |
16087 | INSTALL='$INSTALL' | |
87264276 | 16088 | AWK='$AWK' |
5213506e | 16089 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
16090 | _ACEOF |
16091 | ||
5213506e RW |
16092 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16093 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
16094 | ac_need_defaults=: |
16095 | while test $# != 0 | |
a4b9e93e | 16096 | do |
1c710c3c | 16097 | case $1 in |
22e05272 | 16098 | --*=?*) |
5213506e RW |
16099 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16100 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
16101 | ac_shift=: |
16102 | ;; | |
22e05272 JM |
16103 | --*=) |
16104 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16105 | ac_optarg= | |
16106 | ac_shift=: | |
16107 | ;; | |
5213506e | 16108 | *) |
1c710c3c DJ |
16109 | ac_option=$1 |
16110 | ac_optarg=$2 | |
16111 | ac_shift=shift | |
16112 | ;; | |
1c710c3c DJ |
16113 | esac |
16114 | ||
16115 | case $ac_option in | |
16116 | # Handling of the options. | |
671aa708 | 16117 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 16118 | ac_cs_recheck=: ;; |
5213506e RW |
16119 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
16120 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
16121 | --config | --confi | --conf | --con | --co | --c ) |
16122 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 16123 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
16124 | debug=: ;; |
16125 | --file | --fil | --fi | --f ) | |
16126 | $ac_shift | |
5213506e RW |
16127 | case $ac_optarg in |
16128 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 16129 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
16130 | esac |
16131 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 16132 | ac_need_defaults=false;; |
5213506e RW |
16133 | --he | --h | --help | --hel | -h ) |
16134 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
16135 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16136 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16137 | ac_cs_silent=: ;; | |
16138 | ||
16139 | # This is an error. | |
22e05272 | 16140 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 16141 | Try \`$0 --help' for more information." ;; |
1c710c3c | 16142 | |
5213506e RW |
16143 | *) as_fn_append ac_config_targets " $1" |
16144 | ac_need_defaults=false ;; | |
1c710c3c | 16145 | |
0b0dc272 | 16146 | esac |
1c710c3c | 16147 | shift |
0b0dc272 AM |
16148 | done |
16149 | ||
1c710c3c | 16150 | ac_configure_extra_args= |
0b0dc272 | 16151 | |
1c710c3c DJ |
16152 | if $ac_cs_silent; then |
16153 | exec 6>/dev/null | |
16154 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16155 | fi | |
0b0dc272 | 16156 | |
1c710c3c | 16157 | _ACEOF |
5213506e | 16158 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 16159 | if \$ac_cs_recheck; then |
22e05272 | 16160 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
16161 | shift |
16162 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16163 | CONFIG_SHELL='$SHELL' | |
16164 | export CONFIG_SHELL | |
16165 | exec "\$@" | |
1c710c3c DJ |
16166 | fi |
16167 | ||
16168 | _ACEOF | |
5213506e RW |
16169 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16170 | exec 5>>config.log | |
16171 | { | |
16172 | echo | |
16173 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16174 | ## Running $as_me. ## | |
16175 | _ASBOX | |
16176 | $as_echo "$ac_log" | |
16177 | } >&5 | |
1c710c3c | 16178 | |
5213506e RW |
16179 | _ACEOF |
16180 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
16181 | # |
16182 | # INIT-COMMANDS | |
16183 | # | |
16184 | extrasub_build="$extrasub_build" | |
16185 | extrasub_host="$extrasub_host" | |
16186 | extrasub_target="$extrasub_target" | |
16187 | ||
5213506e | 16188 | _ACEOF |
1c710c3c | 16189 | |
5213506e | 16190 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 16191 | |
5213506e | 16192 | # Handling of arguments. |
1c710c3c DJ |
16193 | for ac_config_target in $ac_config_targets |
16194 | do | |
5213506e RW |
16195 | case $ac_config_target in |
16196 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16197 | ||
22e05272 | 16198 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
16199 | esac |
16200 | done | |
16201 | ||
5213506e | 16202 | |
1c710c3c DJ |
16203 | # If the user did not use the arguments to specify the items to instantiate, |
16204 | # then the envvar interface is used. Set only those that are not. | |
16205 | # We use the long form for the default assignment because of an extremely | |
16206 | # bizarre bug on SunOS 4.1.3. | |
16207 | if $ac_need_defaults; then | |
16208 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16209 | fi | |
16210 | ||
16211 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 16212 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 16213 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
16214 | # Hook for its removal unless debugging. |
16215 | # Note that there is a small window in which the directory will not be cleaned: | |
16216 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
16217 | $debug || |
16218 | { | |
22e05272 | 16219 | tmp= ac_tmp= |
5213506e | 16220 | trap 'exit_status=$? |
22e05272 JM |
16221 | : "${ac_tmp:=$tmp}" |
16222 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
16223 | ' 0 |
16224 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 16225 | } |
1c710c3c DJ |
16226 | # Create a (secure) tmp directory for tmp files. |
16227 | ||
16228 | { | |
5213506e | 16229 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 16230 | test -d "$tmp" |
1c710c3c DJ |
16231 | } || |
16232 | { | |
5213506e RW |
16233 | tmp=./conf$$-$RANDOM |
16234 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
16235 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16236 | ac_tmp=$tmp | |
5213506e RW |
16237 | |
16238 | # Set up the scripts for CONFIG_FILES section. | |
16239 | # No need to generate them if there are no CONFIG_FILES. | |
16240 | # This happens for instance with `./config.status config.h'. | |
16241 | if test -n "$CONFIG_FILES"; then | |
16242 | ||
16243 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
16244 | ac_cs_awk_getline=: | |
16245 | ac_cs_awk_pipe_init= | |
16246 | ac_cs_awk_read_file=' | |
16247 | while ((getline aline < (F[key])) > 0) | |
16248 | print(aline) | |
16249 | close(F[key])' | |
16250 | ac_cs_awk_pipe_fini= | |
16251 | else | |
16252 | ac_cs_awk_getline=false | |
16253 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16254 | ac_cs_awk_read_file=' | |
16255 | print "|#_!!_#|" | |
16256 | print "cat " F[key] " &&" | |
16257 | '$ac_cs_awk_pipe_init | |
16258 | # The final `:' finishes the AND list. | |
16259 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16260 | fi | |
16261 | ac_cr=`echo X | tr X '\015'` | |
16262 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16263 | # But we know of no other shell where ac_cr would be empty at this | |
16264 | # point, so we can use a bashism as a fallback. | |
16265 | if test "x$ac_cr" = x; then | |
16266 | eval ac_cr=\$\'\\r\' | |
16267 | fi | |
16268 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16269 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 16270 | ac_cs_awk_cr='\\r' |
5213506e RW |
16271 | else |
16272 | ac_cs_awk_cr=$ac_cr | |
16273 | fi | |
16274 | ||
22e05272 | 16275 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
16276 | _ACEOF |
16277 | ||
16278 | # Create commands to substitute file output variables. | |
1c710c3c | 16279 | { |
5213506e | 16280 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 16281 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
16282 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16283 | echo "_ACAWK" && | |
16284 | echo "_ACEOF" | |
16285 | } >conf$$files.sh && | |
16286 | . ./conf$$files.sh || | |
22e05272 | 16287 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 16288 | rm -f conf$$files.sh |
1c710c3c | 16289 | |
5213506e RW |
16290 | { |
16291 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16292 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16293 | echo "_ACEOF" | |
16294 | } >conf$$subs.sh || | |
22e05272 JM |
16295 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16296 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
16297 | ac_delim='%!_!# ' |
16298 | for ac_last_try in false false false false false :; do | |
16299 | . ./conf$$subs.sh || | |
22e05272 | 16300 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
16301 | |
16302 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16303 | if test $ac_delim_n = $ac_delim_num; then | |
16304 | break | |
16305 | elif $ac_last_try; then | |
22e05272 | 16306 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
16307 | else |
16308 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16309 | fi | |
16310 | done | |
16311 | rm -f conf$$subs.sh | |
16312 | ||
16313 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16314 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 16315 | _ACEOF |
5213506e RW |
16316 | sed -n ' |
16317 | h | |
16318 | s/^/S["/; s/!.*/"]=/ | |
16319 | p | |
16320 | g | |
16321 | s/^[^!]*!// | |
16322 | :repl | |
16323 | t repl | |
16324 | s/'"$ac_delim"'$// | |
16325 | t delim | |
16326 | :nl | |
16327 | h | |
22e05272 | 16328 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
16329 | t more1 |
16330 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16331 | p | |
16332 | n | |
16333 | b repl | |
16334 | :more1 | |
16335 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16336 | p | |
16337 | g | |
16338 | s/.\{148\}// | |
16339 | t nl | |
16340 | :delim | |
16341 | h | |
22e05272 | 16342 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
16343 | t more2 |
16344 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16345 | p | |
16346 | b | |
16347 | :more2 | |
16348 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16349 | p | |
16350 | g | |
16351 | s/.\{148\}// | |
16352 | t delim | |
16353 | ' <conf$$subs.awk | sed ' | |
16354 | /^[^""]/{ | |
16355 | N | |
16356 | s/\n// | |
16357 | } | |
16358 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16359 | rm -f conf$$subs.awk | |
16360 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16361 | _ACAWK | |
22e05272 | 16362 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
16363 | for (key in S) S_is_set[key] = 1 |
16364 | FS = "\a" | |
16365 | \$ac_cs_awk_pipe_init | |
16366 | } | |
16367 | { | |
16368 | line = $ 0 | |
16369 | nfields = split(line, field, "@") | |
16370 | substed = 0 | |
16371 | len = length(field[1]) | |
16372 | for (i = 2; i < nfields; i++) { | |
16373 | key = field[i] | |
16374 | keylen = length(key) | |
16375 | if (S_is_set[key]) { | |
16376 | value = S[key] | |
16377 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16378 | len += length(value) + length(field[++i]) | |
16379 | substed = 1 | |
16380 | } else | |
16381 | len += 1 + keylen | |
16382 | } | |
16383 | if (nfields == 3 && !substed) { | |
16384 | key = field[2] | |
16385 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16386 | \$ac_cs_awk_read_file | |
16387 | next | |
16388 | } | |
16389 | } | |
16390 | print line | |
16391 | } | |
16392 | \$ac_cs_awk_pipe_fini | |
16393 | _ACAWK | |
16394 | _ACEOF | |
16395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16396 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16397 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16398 | else | |
16399 | cat | |
22e05272 JM |
16400 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16401 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
16402 | _ACEOF |
16403 | ||
22e05272 JM |
16404 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16405 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
16406 | # trailing colons and then remove the whole line if VPATH becomes empty |
16407 | # (actually we leave an empty line to preserve line numbers). | |
16408 | if test "x$srcdir" = x.; then | |
22e05272 JM |
16409 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16410 | h | |
16411 | s/// | |
16412 | s/^/:/ | |
16413 | s/[ ]*$/:/ | |
16414 | s/:\$(srcdir):/:/g | |
16415 | s/:\${srcdir}:/:/g | |
16416 | s/:@srcdir@:/:/g | |
16417 | s/^:*// | |
5213506e | 16418 | s/:*$// |
22e05272 JM |
16419 | x |
16420 | s/\(=[ ]*\).*/\1/ | |
16421 | G | |
16422 | s/\n// | |
5213506e RW |
16423 | s/^[^=]*=[ ]*$// |
16424 | }' | |
16425 | fi | |
2aeb72e9 | 16426 | |
5213506e RW |
16427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16428 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 16429 | |
1c710c3c | 16430 | |
5213506e RW |
16431 | eval set X " :F $CONFIG_FILES " |
16432 | shift | |
16433 | for ac_tag | |
16434 | do | |
16435 | case $ac_tag in | |
16436 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16437 | esac | |
16438 | case $ac_mode$ac_tag in | |
16439 | :[FHL]*:*);; | |
22e05272 | 16440 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
16441 | :[FH]-) ac_tag=-:-;; |
16442 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16443 | esac | |
16444 | ac_save_IFS=$IFS | |
16445 | IFS=: | |
16446 | set x $ac_tag | |
16447 | IFS=$ac_save_IFS | |
16448 | shift | |
16449 | ac_file=$1 | |
16450 | shift | |
79c06341 | 16451 | |
5213506e RW |
16452 | case $ac_mode in |
16453 | :L) ac_source=$1;; | |
16454 | :[FH]) | |
16455 | ac_file_inputs= | |
16456 | for ac_f | |
16457 | do | |
16458 | case $ac_f in | |
22e05272 | 16459 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
16460 | *) # Look for the file first in the build tree, then in the source tree |
16461 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16462 | # because $ac_f cannot contain `:'. | |
16463 | test -f "$ac_f" || | |
16464 | case $ac_f in | |
16465 | [\\/$]*) false;; | |
16466 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16467 | esac || | |
22e05272 | 16468 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
16469 | esac |
16470 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16471 | as_fn_append ac_file_inputs " '$ac_f'" | |
16472 | done | |
1c710c3c | 16473 | |
5213506e RW |
16474 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16475 | # use $as_me), people would be surprised to read: | |
16476 | # /* config.h. Generated by config.status. */ | |
16477 | configure_input='Generated from '` | |
16478 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16479 | `' by configure.' | |
16480 | if test x"$ac_file" != x-; then | |
16481 | configure_input="$ac_file. $configure_input" | |
16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16483 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 16484 | fi |
5213506e RW |
16485 | # Neutralize special characters interpreted by sed in replacement strings. |
16486 | case $configure_input in #( | |
16487 | *\&* | *\|* | *\\* ) | |
16488 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16489 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16490 | *) ac_sed_conf_input=$configure_input;; | |
16491 | esac | |
11a67599 | 16492 | |
5213506e | 16493 | case $ac_tag in |
22e05272 JM |
16494 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16495 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
16496 | esac |
16497 | ;; | |
11a67599 ZW |
16498 | esac |
16499 | ||
5213506e | 16500 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
16501 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16502 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16503 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
16504 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16505 | $as_echo X"$ac_file" | | |
16506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16507 | s//\1/ | |
16508 | q | |
16509 | } | |
16510 | /^X\(\/\/\)[^/].*/{ | |
16511 | s//\1/ | |
16512 | q | |
16513 | } | |
16514 | /^X\(\/\/\)$/{ | |
16515 | s//\1/ | |
16516 | q | |
16517 | } | |
16518 | /^X\(\/\).*/{ | |
16519 | s//\1/ | |
16520 | q | |
16521 | } | |
16522 | s/.*/./; q'` | |
16523 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 16524 | ac_builddir=. |
0b0dc272 | 16525 | |
5213506e RW |
16526 | case "$ac_dir" in |
16527 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16528 | *) | |
16529 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16530 | # A ".." for each directory in $ac_dir_suffix. | |
16531 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16532 | case $ac_top_builddir_sub in | |
16533 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16534 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16535 | esac ;; | |
16536 | esac | |
16537 | ac_abs_top_builddir=$ac_pwd | |
16538 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16539 | # for backward compatibility: | |
16540 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
16541 | |
16542 | case $srcdir in | |
5213506e | 16543 | .) # We are building in place. |
1c710c3c | 16544 | ac_srcdir=. |
5213506e RW |
16545 | ac_top_srcdir=$ac_top_builddir_sub |
16546 | ac_abs_top_srcdir=$ac_pwd ;; | |
16547 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 16548 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
16549 | ac_top_srcdir=$srcdir |
16550 | ac_abs_top_srcdir=$srcdir ;; | |
16551 | *) # Relative name. | |
16552 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16553 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16554 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 16555 | esac |
5213506e | 16556 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 16557 | |
0b0dc272 | 16558 | |
5213506e RW |
16559 | case $ac_mode in |
16560 | :F) | |
16561 | # | |
16562 | # CONFIG_FILE | |
16563 | # | |
1c710c3c DJ |
16564 | |
16565 | case $INSTALL in | |
16566 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 16567 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 16568 | esac |
5213506e | 16569 | _ACEOF |
11a67599 | 16570 | |
5213506e RW |
16571 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16572 | # If the template does not know about datarootdir, expand it. | |
16573 | # FIXME: This hack should be removed a few years after 2.60. | |
16574 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16575 | ac_sed_dataroot=' | |
16576 | /datarootdir/ { | |
16577 | p | |
16578 | q | |
16579 | } | |
16580 | /@datadir@/p | |
16581 | /@docdir@/p | |
16582 | /@infodir@/p | |
16583 | /@localedir@/p | |
16584 | /@mandir@/p' | |
16585 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16586 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16587 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16589 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 16590 | _ACEOF |
5213506e RW |
16591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16592 | ac_datarootdir_hack=' | |
16593 | s&@datadir@&$datadir&g | |
16594 | s&@docdir@&$docdir&g | |
16595 | s&@infodir@&$infodir&g | |
16596 | s&@localedir@&$localedir&g | |
16597 | s&@mandir@&$mandir&g | |
16598 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16599 | esac | |
16600 | _ACEOF | |
16601 | ||
16602 | # Neutralize VPATH when `$srcdir' = `.'. | |
16603 | # Shell code in configure.ac might set extrasub. | |
16604 | # FIXME: do we really want to maintain this feature? | |
16605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16606 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
16607 | $extrasub |
16608 | _ACEOF | |
5213506e | 16609 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
16610 | :t |
16611 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
16612 | s|@configure_input@|$ac_sed_conf_input|;t t |
16613 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16614 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16615 | s&@srcdir@&$ac_srcdir&;t t | |
16616 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16617 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16618 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16619 | s&@builddir@&$ac_builddir&;t t | |
16620 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16621 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16622 | s&@INSTALL@&$ac_INSTALL&;t t | |
16623 | $ac_datarootdir_hack | |
16624 | " | |
16625 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16626 | if $ac_cs_awk_getline; then | |
22e05272 | 16627 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 16628 | else |
22e05272 JM |
16629 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16630 | fi \ | |
16631 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
16632 | |
16633 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
16634 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16635 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16636 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 16637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 16638 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 16639 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 16640 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 16641 | |
22e05272 | 16642 | rm -f "$ac_tmp/stdin" |
5213506e | 16643 | case $ac_file in |
22e05272 JM |
16644 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16645 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 16646 | esac \ |
22e05272 | 16647 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 16648 | ;; |
11a67599 | 16649 | |
11a67599 | 16650 | |
79c06341 | 16651 | |
5213506e RW |
16652 | esac |
16653 | ||
3e54529c RW |
16654 | |
16655 | case $ac_file$ac_mode in | |
16656 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16657 | sed "$extrasub_host" | | |
16658 | sed "$extrasub_target" > mf$$ | |
16659 | mv -f mf$$ Makefile ;; | |
16660 | ||
16661 | esac | |
5213506e RW |
16662 | done # for ac_tag |
16663 | ||
16664 | ||
16665 | as_fn_exit 0 | |
1c710c3c | 16666 | _ACEOF |
1c710c3c DJ |
16667 | ac_clean_files=$ac_clean_files_save |
16668 | ||
5213506e | 16669 | test $ac_write_fail = 0 || |
22e05272 | 16670 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 16671 | |
1c710c3c DJ |
16672 | |
16673 | # configure is writing to config.log, and then calls config.status. | |
16674 | # config.status does its own redirection, appending to config.log. | |
16675 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16676 | # by configure, so config.status won't be able to write to it; its | |
16677 | # output is simply discarded. So we exec the FD to /dev/null, | |
16678 | # effectively closing config.log, so it can be properly (re)opened and | |
16679 | # appended to by config.status. When coming back to configure, we | |
16680 | # need to make the FD available again. | |
16681 | if test "$no_create" != yes; then | |
16682 | ac_cs_success=: | |
16683 | ac_config_status_args= | |
16684 | test "$silent" = yes && | |
16685 | ac_config_status_args="$ac_config_status_args --quiet" | |
16686 | exec 5>/dev/null | |
16687 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16688 | exec 5>>config.log | |
16689 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16690 | # would make configure fail if this is the last instruction. | |
22e05272 | 16691 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
16692 | fi |
16693 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16695 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 16696 | fi |
79c06341 | 16697 |