]>
Commit | Line | Data |
---|---|---|
71ab34df | 1 | #! /bin/sh |
71ab34df | 2 | # Guess values for system-dependent variables and create Makefiles. |
f00f02a3 | 3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
cd9a469c | 7 | # |
71ab34df | 8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b30fcfae | 14 | |
cd9a469c | 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 : | |
b30fcfae | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 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 | |
b30fcfae | 31 | fi |
b30fcfae | 32 | |
cd9a469c | 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 | } | |
b30fcfae | 79 | fi |
80 | ||
81 | ||
cd9a469c | 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. | |
f00f02a3 | 90 | as_myself= |
cd9a469c | 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 | |
b30fcfae | 122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
cd9a469c | 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 | ||
f00f02a3 | 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;} | |
cd9a469c | 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 | |
f00f02a3 | 193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
cd9a469c | 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'\" && | |
b181f265 | 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" | |
cd9a469c | 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 | |
b30fcfae | 211 | do |
cd9a469c | 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 : | |
f00f02a3 | 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 | |
cd9a469c | 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." | |
b30fcfae | 266 | else |
cd9a469c | 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." | |
b30fcfae | 271 | fi |
cd9a469c | 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 | |
b30fcfae | 301 | |
cd9a469c | 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" | |
f00f02a3 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
f00f02a3 | 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 | |
cd9a469c | 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 | ||
f00f02a3 | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
cd9a469c | 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 | |
f00f02a3 | 407 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 408 | as_fn_error () |
409 | { | |
f00f02a3 | 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 | |
cd9a469c | 414 | fi |
f00f02a3 | 415 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 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 | |
b30fcfae | 421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
cd9a469c | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
cd9a469c | 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 | |
b30fcfae | 437 | |
cd9a469c | 438 | as_me=`$as_basename -- "$0" || |
b30fcfae | 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 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'` | |
b30fcfae | 456 | |
5084f823 | 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 | |
570af75a | 463 | |
b30fcfae | 464 | |
cd9a469c | 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 | | |
b30fcfae | 474 | sed ' |
cd9a469c | 475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
b30fcfae | 479 | N |
cd9a469c | 480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b30fcfae | 482 | t loop |
cd9a469c | 483 | s/-\n.*// |
b30fcfae | 484 | ' >$as_me.lineno && |
cd9a469c | 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; } | |
b30fcfae | 487 | |
f00f02a3 | 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 | |
b30fcfae | 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 | |
cd9a469c | 494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
b30fcfae | 496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
cd9a469c | 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';; | |
b30fcfae | 511 | esac |
512 | ||
cd9a469c | 513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 516 | else |
cd9a469c | 517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 519 | fi |
cd9a469c | 520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 522 | as_ln_s='ln -s' |
cd9a469c | 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. | |
f00f02a3 | 526 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 528 | as_ln_s='cp -pR' |
cd9a469c | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
f00f02a3 | 532 | as_ln_s='cp -pR' |
5084f823 | 533 | fi |
b30fcfae | 534 | else |
f00f02a3 | 535 | as_ln_s='cp -pR' |
b30fcfae | 536 | fi |
cd9a469c | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
b30fcfae | 539 | |
540 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
f00f02a3 | 547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
a83ffacf | 549 | |
b30fcfae | 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 | ||
f00f02a3 | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
b30fcfae | 559 | |
560 | # Name of the host. | |
f00f02a3 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b30fcfae | 562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
b30fcfae | 565 | # |
566 | # Initializations. | |
567 | # | |
71ab34df | 568 | ac_default_prefix=/usr/local |
cd9a469c | 569 | ac_clean_files= |
b30fcfae | 570 | ac_config_libobj_dir=. |
cd9a469c | 571 | LIBOBJS= |
b30fcfae | 572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
5084f823 | 576 | |
b30fcfae | 577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
cd9a469c | 583 | PACKAGE_URL= |
b30fcfae | 584 | |
585 | ac_unique_file="move-if-change" | |
cd9a469c | 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 | |
3f71364d | 604 | READELF_FOR_TARGET |
cd9a469c | 605 | RANLIB_FOR_TARGET |
16706a2e | 606 | OTOOL_FOR_TARGET |
cd9a469c | 607 | OBJDUMP_FOR_TARGET |
fc740d70 | 608 | OBJCOPY_FOR_TARGET |
cd9a469c | 609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
03385ed3 | 615 | GDC_FOR_TARGET |
5ff5b630 | 616 | GOC_FOR_TARGET |
cd9a469c | 617 | GFORTRAN_FOR_TARGET |
cd9a469c | 618 | GCC_FOR_TARGET |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
3f71364d | 621 | READELF |
16706a2e | 622 | OTOOL |
cd9a469c | 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 | |
cd9a469c | 643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
03385ed3 | 649 | GDC_FOR_BUILD |
5ff5b630 | 650 | GOC_FOR_BUILD |
cd9a469c | 651 | GFORTRAN_FOR_BUILD |
cd9a469c | 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 | |
1fda3360 | 659 | target_configdirs |
cd9a469c | 660 | configdirs |
cd9a469c | 661 | build_configdirs |
cd9a469c | 662 | INSTALL_GDB_TK |
663 | GDB_TK | |
664 | CONFIGURE_GDB_TK | |
665 | build_tooldir | |
666 | tooldir | |
667 | GCC_SHLIB_SUBDIR | |
668 | RPATH_ENVVAR | |
372a3f1e | 669 | target_configargs |
670 | host_configargs | |
671 | build_configargs | |
719faf1c | 672 | BUILD_CONFIG |
ed9516f5 | 673 | LDFLAGS_FOR_TARGET |
cd9a469c | 674 | CXXFLAGS_FOR_TARGET |
675 | CFLAGS_FOR_TARGET | |
676 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
677 | SYSROOT_CFLAGS_FOR_TARGET | |
0812bb06 | 678 | get_gcc_base_ver |
c850ece7 | 679 | extra_host_zlib_configure_flags |
7bfefa9d | 680 | extra_host_libiberty_configure_flags |
944792ef | 681 | stage1_languages |
01b4453c | 682 | host_shared |
1015a063 | 683 | extra_linker_plugin_flags |
684 | extra_linker_plugin_configure_flags | |
87e20041 | 685 | islinc |
429cca51 | 686 | isllibs |
cd9a469c | 687 | poststage1_ldflags |
d6dfe18a | 688 | poststage1_libs |
cd9a469c | 689 | stage1_ldflags |
13687c85 | 690 | stage1_libs |
e4128452 | 691 | extra_isl_gmp_configure_flags |
cd9a469c | 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 | |
d3a7dd32 | 710 | extra_liboffloadmic_configure_flags |
cd9a469c | 711 | target_subdir |
712 | host_subdir | |
713 | build_subdir | |
714 | build_libsubdir | |
b181f265 | 715 | AWK |
716 | SED | |
cd9a469c | 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 | |
6406d366 | 784 | with_system_zlib |
a3d93be3 | 785 | enable_as_accelerator_for |
786 | enable_offload_targets | |
cd9a469c | 787 | enable_gold |
1e369e5f | 788 | enable_ld |
afb6adb9 | 789 | enable_compressed_debug_sections |
d9d975ae | 790 | enable_libquadmath |
791 | enable_libquadmath_support | |
cd9a469c | 792 | enable_libada |
793 | enable_libssp | |
a3ba808f | 794 | enable_libstdcxx |
d3a7dd32 | 795 | enable_liboffloadmic |
6c59dfa4 | 796 | enable_bootstrap |
cd9a469c | 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 | |
cd9a469c | 808 | with_stage1_libs |
13687c85 | 809 | with_stage1_ldflags |
cd9a469c | 810 | with_boot_libs |
d6dfe18a | 811 | with_boot_ldflags |
87e20041 | 812 | with_isl |
813 | with_isl_include | |
814 | with_isl_lib | |
815 | enable_isl_version_check | |
7bfefa9d | 816 | enable_lto |
1015a063 | 817 | enable_linker_plugin_configure_flags |
818 | enable_linker_plugin_flags | |
01b4453c | 819 | enable_host_shared |
cd9a469c | 820 | enable_stage1_languages |
03869f98 | 821 | enable_objc_gc |
baf71228 | 822 | with_target_bdw_gc |
823 | with_target_bdw_gc_include | |
824 | with_target_bdw_gc_lib | |
0812bb06 | 825 | with_gcc_major_version_only |
cd9a469c | 826 | with_build_sysroot |
827 | with_debug_prefix_map | |
a2059f7a | 828 | with_build_config |
ee055341 | 829 | enable_vtable_verify |
cd9a469c | 830 | enable_serial_configure |
831 | with_build_time_tools | |
832 | enable_maintainer_mode | |
833 | enable_stage1_checking | |
834 | enable_werror | |
cd9a469c | 835 | ' |
836 | ac_precious_vars='build_alias | |
837 | host_alias | |
838 | target_alias | |
839 | CC | |
840 | CFLAGS | |
841 | LDFLAGS | |
842 | LIBS | |
843 | CPPFLAGS | |
844 | CXX | |
845 | CXXFLAGS | |
846 | CCC | |
372a3f1e | 847 | build_configargs |
848 | host_configargs | |
849 | target_configargs | |
cd9a469c | 850 | AR |
851 | AS | |
852 | DLLTOOL | |
853 | LD | |
854 | LIPO | |
855 | NM | |
856 | RANLIB | |
857 | STRIP | |
858 | WINDRES | |
859 | WINDMC | |
860 | OBJCOPY | |
861 | OBJDUMP | |
16706a2e | 862 | OTOOL |
3f71364d | 863 | READELF |
cd9a469c | 864 | CC_FOR_TARGET |
865 | CXX_FOR_TARGET | |
866 | GCC_FOR_TARGET | |
cd9a469c | 867 | GFORTRAN_FOR_TARGET |
5ff5b630 | 868 | GOC_FOR_TARGET |
03385ed3 | 869 | GDC_FOR_TARGET |
cd9a469c | 870 | AR_FOR_TARGET |
871 | AS_FOR_TARGET | |
872 | DLLTOOL_FOR_TARGET | |
873 | LD_FOR_TARGET | |
874 | LIPO_FOR_TARGET | |
875 | NM_FOR_TARGET | |
fc740d70 | 876 | OBJCOPY_FOR_TARGET |
cd9a469c | 877 | OBJDUMP_FOR_TARGET |
16706a2e | 878 | OTOOL_FOR_TARGET |
cd9a469c | 879 | RANLIB_FOR_TARGET |
3f71364d | 880 | READELF_FOR_TARGET |
cd9a469c | 881 | STRIP_FOR_TARGET |
882 | WINDRES_FOR_TARGET | |
883 | WINDMC_FOR_TARGET' | |
884 | ||
71ab34df | 885 | |
886 | # Initialize some variables set by options. | |
b30fcfae | 887 | ac_init_help= |
888 | ac_init_version=false | |
cd9a469c | 889 | ac_unrecognized_opts= |
890 | ac_unrecognized_sep= | |
71ab34df | 891 | # The variables have the same names as the options, with |
892 | # dashes changed to underlines. | |
b30fcfae | 893 | cache_file=/dev/null |
71ab34df | 894 | exec_prefix=NONE |
71ab34df | 895 | no_create= |
71ab34df | 896 | no_recursion= |
897 | prefix=NONE | |
898 | program_prefix=NONE | |
899 | program_suffix=NONE | |
900 | program_transform_name=s,x,x, | |
901 | silent= | |
902 | site= | |
903 | srcdir= | |
71ab34df | 904 | verbose= |
905 | x_includes=NONE | |
906 | x_libraries=NONE | |
b30fcfae | 907 | |
908 | # Installation directory options. | |
909 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
910 | # and all the variables that are supposed to be based on exec_prefix | |
911 | # by default will actually change. | |
912 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 913 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 914 | bindir='${exec_prefix}/bin' |
915 | sbindir='${exec_prefix}/sbin' | |
916 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 917 | datarootdir='${prefix}/share' |
918 | datadir='${datarootdir}' | |
71ab34df | 919 | sysconfdir='${prefix}/etc' |
920 | sharedstatedir='${prefix}/com' | |
921 | localstatedir='${prefix}/var' | |
71ab34df | 922 | includedir='${prefix}/include' |
923 | oldincludedir='/usr/include' | |
cd9a469c | 924 | docdir='${datarootdir}/doc/${PACKAGE}' |
925 | infodir='${datarootdir}/info' | |
926 | htmldir='${docdir}' | |
927 | dvidir='${docdir}' | |
928 | pdfdir='${docdir}' | |
929 | psdir='${docdir}' | |
930 | libdir='${exec_prefix}/lib' | |
931 | localedir='${datarootdir}/locale' | |
932 | mandir='${datarootdir}/man' | |
a8298541 | 933 | |
71ab34df | 934 | ac_prev= |
cd9a469c | 935 | ac_dashdash= |
71ab34df | 936 | for ac_option |
937 | do | |
71ab34df | 938 | # If the previous option needs an argument, assign it. |
939 | if test -n "$ac_prev"; then | |
cd9a469c | 940 | eval $ac_prev=\$ac_option |
71ab34df | 941 | ac_prev= |
942 | continue | |
943 | fi | |
a8298541 | 944 | |
cd9a469c | 945 | case $ac_option in |
f00f02a3 | 946 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
947 | *=) ac_optarg= ;; | |
948 | *) ac_optarg=yes ;; | |
cd9a469c | 949 | esac |
71ab34df | 950 | |
951 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
952 | ||
cd9a469c | 953 | case $ac_dashdash$ac_option in |
954 | --) | |
955 | ac_dashdash=yes ;; | |
71ab34df | 956 | |
957 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
958 | ac_prev=bindir ;; | |
959 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 960 | bindir=$ac_optarg ;; |
71ab34df | 961 | |
962 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 963 | ac_prev=build_alias ;; |
71ab34df | 964 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 965 | build_alias=$ac_optarg ;; |
71ab34df | 966 | |
967 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
968 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
969 | ac_prev=cache_file ;; | |
970 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
971 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 972 | cache_file=$ac_optarg ;; |
973 | ||
974 | --config-cache | -C) | |
975 | cache_file=config.cache ;; | |
71ab34df | 976 | |
cd9a469c | 977 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 978 | ac_prev=datadir ;; |
cd9a469c | 979 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 980 | datadir=$ac_optarg ;; |
71ab34df | 981 | |
cd9a469c | 982 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
983 | | --dataroo | --dataro | --datar) | |
984 | ac_prev=datarootdir ;; | |
985 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
986 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
987 | datarootdir=$ac_optarg ;; | |
988 | ||
71ab34df | 989 | -disable-* | --disable-*) |
cd9a469c | 990 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 991 | # Reject names that are not valid shell variable names. |
cd9a469c | 992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 994 | ac_useropt_orig=$ac_useropt |
995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
996 | case $ac_user_opts in | |
997 | *" | |
998 | "enable_$ac_useropt" | |
999 | "*) ;; | |
1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1001 | ac_unrecognized_sep=', ';; | |
1002 | esac | |
1003 | eval enable_$ac_useropt=no ;; | |
1004 | ||
1005 | -docdir | --docdir | --docdi | --doc | --do) | |
1006 | ac_prev=docdir ;; | |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1008 | docdir=$ac_optarg ;; | |
1009 | ||
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1011 | ac_prev=dvidir ;; | |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1013 | dvidir=$ac_optarg ;; | |
71ab34df | 1014 | |
1015 | -enable-* | --enable-*) | |
cd9a469c | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 1017 | # Reject names that are not valid shell variable names. |
cd9a469c | 1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1019 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 1020 | ac_useropt_orig=$ac_useropt |
1021 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1022 | case $ac_user_opts in | |
1023 | *" | |
1024 | "enable_$ac_useropt" | |
1025 | "*) ;; | |
1026 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1027 | ac_unrecognized_sep=', ';; | |
5084f823 | 1028 | esac |
cd9a469c | 1029 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1030 | |
1031 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1032 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1033 | | --exec | --exe | --ex) | |
1034 | ac_prev=exec_prefix ;; | |
1035 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1036 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1037 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 1038 | exec_prefix=$ac_optarg ;; |
71ab34df | 1039 | |
1040 | -gas | --gas | --ga | --g) | |
1041 | # Obsolete; use --with-gas. | |
1042 | with_gas=yes ;; | |
1043 | ||
b30fcfae | 1044 | -help | --help | --hel | --he | -h) |
1045 | ac_init_help=long ;; | |
1046 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1047 | ac_init_help=recursive ;; | |
1048 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1049 | ac_init_help=short ;; | |
71ab34df | 1050 | |
1051 | -host | --host | --hos | --ho) | |
b30fcfae | 1052 | ac_prev=host_alias ;; |
71ab34df | 1053 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1054 | host_alias=$ac_optarg ;; |
71ab34df | 1055 | |
cd9a469c | 1056 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1057 | ac_prev=htmldir ;; | |
1058 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1059 | | --ht=*) | |
1060 | htmldir=$ac_optarg ;; | |
1061 | ||
71ab34df | 1062 | -includedir | --includedir | --includedi | --included | --include \ |
1063 | | --includ | --inclu | --incl | --inc) | |
1064 | ac_prev=includedir ;; | |
1065 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1066 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1067 | includedir=$ac_optarg ;; |
71ab34df | 1068 | |
1069 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1070 | ac_prev=infodir ;; | |
1071 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1072 | infodir=$ac_optarg ;; |
71ab34df | 1073 | |
1074 | -libdir | --libdir | --libdi | --libd) | |
1075 | ac_prev=libdir ;; | |
1076 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1077 | libdir=$ac_optarg ;; |
71ab34df | 1078 | |
1079 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1080 | | --libexe | --libex | --libe) | |
1081 | ac_prev=libexecdir ;; | |
1082 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1083 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1084 | libexecdir=$ac_optarg ;; |
71ab34df | 1085 | |
cd9a469c | 1086 | -localedir | --localedir | --localedi | --localed | --locale) |
1087 | ac_prev=localedir ;; | |
1088 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1089 | localedir=$ac_optarg ;; | |
1090 | ||
71ab34df | 1091 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1092 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1093 | ac_prev=localstatedir ;; |
1094 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1095 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1096 | localstatedir=$ac_optarg ;; |
71ab34df | 1097 | |
1098 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1099 | ac_prev=mandir ;; | |
1100 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1101 | mandir=$ac_optarg ;; |
71ab34df | 1102 | |
1103 | -nfp | --nfp | --nf) | |
1104 | # Obsolete; use --without-fp. | |
1105 | with_fp=no ;; | |
1106 | ||
1107 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1108 | | --no-cr | --no-c | -n) |
71ab34df | 1109 | no_create=yes ;; |
1110 | ||
1111 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1112 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1113 | no_recursion=yes ;; | |
1114 | ||
1115 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1116 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1117 | | --oldin | --oldi | --old | --ol | --o) | |
1118 | ac_prev=oldincludedir ;; | |
1119 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1120 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1121 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1122 | oldincludedir=$ac_optarg ;; |
71ab34df | 1123 | |
1124 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1125 | ac_prev=prefix ;; | |
1126 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1127 | prefix=$ac_optarg ;; |
71ab34df | 1128 | |
1129 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1130 | | --program-pre | --program-pr | --program-p) | |
1131 | ac_prev=program_prefix ;; | |
1132 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1133 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1134 | program_prefix=$ac_optarg ;; |
71ab34df | 1135 | |
1136 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1137 | | --program-suf | --program-su | --program-s) | |
1138 | ac_prev=program_suffix ;; | |
1139 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1140 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1141 | program_suffix=$ac_optarg ;; |
71ab34df | 1142 | |
1143 | -program-transform-name | --program-transform-name \ | |
1144 | | --program-transform-nam | --program-transform-na \ | |
1145 | | --program-transform-n | --program-transform- \ | |
1146 | | --program-transform | --program-transfor \ | |
1147 | | --program-transfo | --program-transf \ | |
1148 | | --program-trans | --program-tran \ | |
1149 | | --progr-tra | --program-tr | --program-t) | |
1150 | ac_prev=program_transform_name ;; | |
1151 | -program-transform-name=* | --program-transform-name=* \ | |
1152 | | --program-transform-nam=* | --program-transform-na=* \ | |
1153 | | --program-transform-n=* | --program-transform-=* \ | |
1154 | | --program-transform=* | --program-transfor=* \ | |
1155 | | --program-transfo=* | --program-transf=* \ | |
1156 | | --program-trans=* | --program-tran=* \ | |
1157 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1158 | program_transform_name=$ac_optarg ;; |
71ab34df | 1159 | |
cd9a469c | 1160 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1161 | ac_prev=pdfdir ;; | |
1162 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1163 | pdfdir=$ac_optarg ;; | |
1164 | ||
1165 | -psdir | --psdir | --psdi | --psd | --ps) | |
1166 | ac_prev=psdir ;; | |
1167 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1168 | psdir=$ac_optarg ;; | |
1169 | ||
71ab34df | 1170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1171 | | -silent | --silent | --silen | --sile | --sil) | |
1172 | silent=yes ;; | |
1173 | ||
1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1175 | ac_prev=sbindir ;; | |
1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1177 | | --sbi=* | --sb=*) | |
b30fcfae | 1178 | sbindir=$ac_optarg ;; |
71ab34df | 1179 | |
1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1182 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1183 | | --sha | --sh) | |
1184 | ac_prev=sharedstatedir ;; | |
1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1188 | | --sha=* | --sh=*) | |
b30fcfae | 1189 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1190 | |
1191 | -site | --site | --sit) | |
1192 | ac_prev=site ;; | |
1193 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1194 | site=$ac_optarg ;; |
71ab34df | 1195 | |
1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1197 | ac_prev=srcdir ;; | |
1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1199 | srcdir=$ac_optarg ;; |
71ab34df | 1200 | |
1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1202 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1203 | ac_prev=sysconfdir ;; | |
1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1206 | sysconfdir=$ac_optarg ;; |
71ab34df | 1207 | |
1208 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1209 | ac_prev=target_alias ;; |
71ab34df | 1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1211 | target_alias=$ac_optarg ;; |
71ab34df | 1212 | |
1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1214 | verbose=yes ;; | |
1215 | ||
b30fcfae | 1216 | -version | --version | --versio | --versi | --vers | -V) |
1217 | ac_init_version=: ;; | |
71ab34df | 1218 | |
1219 | -with-* | --with-*) | |
cd9a469c | 1220 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1221 | # Reject names that are not valid shell variable names. |
cd9a469c | 1222 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1223 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1224 | ac_useropt_orig=$ac_useropt |
1225 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1226 | case $ac_user_opts in | |
1227 | *" | |
1228 | "with_$ac_useropt" | |
1229 | "*) ;; | |
1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1231 | ac_unrecognized_sep=', ';; | |
5084f823 | 1232 | esac |
cd9a469c | 1233 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1234 | |
1235 | -without-* | --without-*) | |
cd9a469c | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1237 | # Reject names that are not valid shell variable names. |
cd9a469c | 1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1239 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1240 | ac_useropt_orig=$ac_useropt |
1241 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1242 | case $ac_user_opts in | |
1243 | *" | |
1244 | "with_$ac_useropt" | |
1245 | "*) ;; | |
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1247 | ac_unrecognized_sep=', ';; | |
1248 | esac | |
1249 | eval with_$ac_useropt=no ;; | |
71ab34df | 1250 | |
1251 | --x) | |
1252 | # Obsolete; use --with-x. | |
1253 | with_x=yes ;; | |
1254 | ||
1255 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1256 | | --x-incl | --x-inc | --x-in | --x-i) | |
1257 | ac_prev=x_includes ;; | |
1258 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1259 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1260 | x_includes=$ac_optarg ;; |
71ab34df | 1261 | |
1262 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1263 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1264 | ac_prev=x_libraries ;; | |
1265 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1266 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1267 | x_libraries=$ac_optarg ;; |
71ab34df | 1268 | |
f00f02a3 | 1269 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1270 | Try \`$0 --help' for more information" | |
71ab34df | 1271 | ;; |
1272 | ||
b30fcfae | 1273 | *=*) |
1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1275 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1276 | case $ac_envvar in #( |
1277 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
f00f02a3 | 1278 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
cd9a469c | 1279 | esac |
1280 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1281 | export $ac_envvar ;; |
1282 | ||
71ab34df | 1283 | *) |
b30fcfae | 1284 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1285 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1286 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1287 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f00f02a3 | 1288 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
71ab34df | 1289 | ;; |
1290 | ||
1291 | esac | |
1292 | done | |
1293 | ||
1294 | if test -n "$ac_prev"; then | |
b30fcfae | 1295 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f00f02a3 | 1296 | as_fn_error $? "missing argument to $ac_option" |
ae48753c | 1297 | fi |
ae48753c | 1298 | |
cd9a469c | 1299 | if test -n "$ac_unrecognized_opts"; then |
1300 | case $enable_option_checking in | |
1301 | no) ;; | |
f00f02a3 | 1302 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
cd9a469c | 1303 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
5084f823 | 1304 | esac |
cd9a469c | 1305 | fi |
5084f823 | 1306 | |
cd9a469c | 1307 | # Check all directory arguments for consistency. |
1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1311 | libdir localedir mandir | |
5084f823 | 1312 | do |
cd9a469c | 1313 | eval ac_val=\$$ac_var |
1314 | # Remove trailing slashes. | |
1315 | case $ac_val in | |
1316 | */ ) | |
1317 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1318 | eval $ac_var=\$ac_val;; | |
1319 | esac | |
1320 | # Be sure to have absolute directory names. | |
5084f823 | 1321 | case $ac_val in |
cd9a469c | 1322 | [\\/$]* | ?:[\\/]* ) continue;; |
1323 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1324 | esac |
f00f02a3 | 1325 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1326 | done |
1327 | ||
b30fcfae | 1328 | # There might be people who depend on the old broken behavior: `$host' |
1329 | # used to hold the argument of --host etc. | |
1330 | # FIXME: To remove some day. | |
1331 | build=$build_alias | |
1332 | host=$host_alias | |
1333 | target=$target_alias | |
a83ffacf | 1334 | |
b30fcfae | 1335 | # FIXME: To remove some day. |
1336 | if test "x$host_alias" != x; then | |
1337 | if test "x$build_alias" = x; then | |
1338 | cross_compiling=maybe | |
b30fcfae | 1339 | elif test "x$build_alias" != "x$host_alias"; then |
1340 | cross_compiling=yes | |
1341 | fi | |
1342 | fi | |
1343 | ||
1344 | ac_tool_prefix= | |
1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1346 | ||
1347 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1348 | |
71ab34df | 1349 | |
cd9a469c | 1350 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1351 | ac_ls_di=`ls -di .` && | |
1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f00f02a3 | 1353 | as_fn_error $? "working directory cannot be determined" |
cd9a469c | 1354 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f00f02a3 | 1355 | as_fn_error $? "pwd does not report name of working directory" |
cd9a469c | 1356 | |
1357 | ||
71ab34df | 1358 | # Find the source files, if location was not specified. |
1359 | if test -z "$srcdir"; then | |
1360 | ac_srcdir_defaulted=yes | |
cd9a469c | 1361 | # Try the directory containing this script, then the parent directory. |
1362 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1363 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1364 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1365 | X"$as_myself" : 'X\(//\)$' \| \ | |
1366 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1367 | $as_echo X"$as_myself" | | |
1368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)[^/].*/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\/\)$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\).*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | s/.*/./; q'` | |
71ab34df | 1385 | srcdir=$ac_confdir |
cd9a469c | 1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1387 | srcdir=.. |
1388 | fi | |
1389 | else | |
1390 | ac_srcdir_defaulted=no | |
1391 | fi | |
cd9a469c | 1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
1393 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f00f02a3 | 1394 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd9a469c | 1395 | fi |
1396 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1397 | ac_abs_confdir=`( | |
f00f02a3 | 1398 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
cd9a469c | 1399 | pwd)` |
1400 | # When building in place, set srcdir=. | |
1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1402 | srcdir=. | |
1403 | fi | |
1404 | # Remove unnecessary trailing slashes from srcdir. | |
1405 | # Double slashes in file names in object file debugging info | |
1406 | # mess up M-x gdb in Emacs. | |
1407 | case $srcdir in | |
1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1409 | esac | |
13d2f2b2 | 1410 | case $srcdir in |
1411 | *" "*) | |
f00f02a3 | 1412 | as_fn_error $? "path to source, $srcdir, contains spaces" |
13d2f2b2 | 1413 | ;; |
1414 | esac | |
d2d2630b | 1415 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1416 | ||
cd9a469c | 1417 | for ac_var in $ac_precious_vars; do |
1418 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1419 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1420 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1421 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1422 | done | |
b30fcfae | 1423 | |
1424 | # | |
1425 | # Report the --help message. | |
1426 | # | |
1427 | if test "$ac_init_help" = "long"; then | |
1428 | # Omit some internal or obsolete options to make the list less imposing. | |
1429 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1430 | cat <<_ACEOF | |
1431 | \`configure' configures this package to adapt to many kinds of systems. | |
1432 | ||
1433 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1434 | ||
1435 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1436 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1437 | ||
1438 | Defaults for the options are specified in brackets. | |
1439 | ||
1440 | Configuration: | |
1441 | -h, --help display this help and exit | |
1442 | --help=short display options specific to this package | |
1443 | --help=recursive display the short help of all the included packages | |
1444 | -V, --version display version information and exit | |
f00f02a3 | 1445 | -q, --quiet, --silent do not print \`checking ...' messages |
b30fcfae | 1446 | --cache-file=FILE cache test results in FILE [disabled] |
1447 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1448 | -n, --no-create do not create output files | |
1449 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1450 | ||
b30fcfae | 1451 | Installation directories: |
1452 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1453 | [$ac_default_prefix] |
b30fcfae | 1454 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1455 | [PREFIX] |
b30fcfae | 1456 | |
1457 | By default, \`make install' will install all the files in | |
1458 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1459 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1460 | for instance \`--prefix=\$HOME'. | |
1461 | ||
1462 | For better control, use the options below. | |
1463 | ||
1464 | Fine tuning of the installation directories: | |
cd9a469c | 1465 | --bindir=DIR user executables [EPREFIX/bin] |
1466 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1467 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1468 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1469 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1470 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1471 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1472 | --includedir=DIR C header files [PREFIX/include] | |
1473 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1474 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1475 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1476 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1477 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1478 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1479 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1480 | --htmldir=DIR html documentation [DOCDIR] | |
1481 | --dvidir=DIR dvi documentation [DOCDIR] | |
1482 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1483 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1484 | _ACEOF |
1485 | ||
1486 | cat <<\_ACEOF | |
1487 | ||
1488 | Program names: | |
1489 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1490 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1491 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1492 | ||
1493 | System types: | |
1494 | --build=BUILD configure for building on BUILD [guessed] | |
1495 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1496 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1497 | _ACEOF | |
1498 | fi | |
1499 | ||
1500 | if test -n "$ac_init_help"; then | |
1501 | ||
1502 | cat <<\_ACEOF | |
1503 | ||
1504 | Optional Features: | |
cd9a469c | 1505 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1506 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1507 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a3d93be3 | 1508 | --enable-as-accelerator-for=ARG |
1509 | build as offload target compiler. Specify offload | |
1510 | host triple by ARG | |
1511 | --enable-offload-targets=LIST | |
1512 | enable offloading to devices from comma-separated | |
1513 | LIST of TARGET[=DIR]. Use optional path to find | |
1514 | offload target compiler during the build | |
1e369e5f | 1515 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1516 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
325f661b | 1517 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
afb6adb9 | 1518 | Enable compressed debug sections for gas, gold or ld |
1519 | by default | |
d9d975ae | 1520 | --disable-libquadmath do not build libquadmath directory |
1521 | --disable-libquadmath-support | |
1522 | disable libquadmath support for Fortran | |
09c2d953 | 1523 | --enable-libada build libada directory |
1524 | --enable-libssp build libssp directory | |
a3ba808f | 1525 | --disable-libstdcxx do not build libstdc++-v3 directory |
d3a7dd32 | 1526 | --enable-liboffloadmic=ARG |
1527 | build liboffloadmic [ARG={no,host,target}] | |
6c59dfa4 | 1528 | --enable-bootstrap enable bootstrapping [yes if native build] |
87e20041 | 1529 | --disable-isl-version-check |
7458b15a | 1530 | disable check for isl version |
7bfefa9d | 1531 | --enable-lto enable link time optimization support |
1015a063 | 1532 | --enable-linker-plugin-configure-flags=FLAGS |
1533 | additional flags for configuring linker plugins | |
1534 | [none] | |
1535 | --enable-linker-plugin-flags=FLAGS | |
1536 | additional flags for configuring and building linker | |
1537 | plugins [none] | |
01b4453c | 1538 | --enable-host-shared build host code as shared libraries |
8747a938 | 1539 | --enable-stage1-languages[=all] |
1540 | choose additional languages to build during stage1. | |
1541 | Mostly useful for compiler development | |
03869f98 | 1542 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1543 | Objective-C runtime | |
d5f3a33f | 1544 | --enable-vtable-verify Enable vtable verification feature |
09c2d953 | 1545 | --enable-serial-[{host,target,build}-]configure |
8747a938 | 1546 | force sequential configuration of sub-packages for |
1547 | the host, target or build machine, or all | |
1548 | sub-packages | |
1549 | --enable-maintainer-mode | |
1550 | enable make rules and dependencies not useful (and | |
1551 | sometimes confusing) to the casual installer | |
1552 | --enable-stage1-checking[=all] | |
1553 | choose additional checking for stage1 of the | |
1554 | compiler | |
b30fcfae | 1555 | --enable-werror enable -Werror in bootstrap stage2 and later |
1556 | ||
1557 | Optional Packages: | |
1558 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1559 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1560 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
6406d366 | 1561 | --with-system-zlib use installed libz |
8747a938 | 1562 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1563 | Equivalent to --with-mpc-include=PATH/include plus | |
1564 | --with-mpc-lib=PATH/lib | |
1565 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1566 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
09c2d953 | 1567 | --with-mpfr-dir=PATH this option has been REMOVED |
1568 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
8747a938 | 1569 | Equivalent to --with-mpfr-include=PATH/include plus |
1570 | --with-mpfr-lib=PATH/lib | |
b30fcfae | 1571 | --with-mpfr-include=PATH |
09c2d953 | 1572 | specify directory for installed MPFR include files |
1573 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1574 | --with-gmp-dir=PATH this option has been REMOVED | |
8747a938 | 1575 | --with-gmp=PATH specify prefix directory for the installed GMP |
1576 | package. Equivalent to | |
1577 | --with-gmp-include=PATH/include plus | |
1578 | --with-gmp-lib=PATH/lib | |
09c2d953 | 1579 | --with-gmp-include=PATH specify directory for installed GMP include files |
1580 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
13687c85 | 1581 | --with-stage1-libs=LIBS libraries for stage1 |
8747a938 | 1582 | --with-stage1-ldflags=FLAGS |
1583 | linker flags for stage1 | |
8747a938 | 1584 | --with-boot-libs=LIBS libraries for stage2 and later |
1585 | --with-boot-ldflags=FLAGS | |
1586 | linker flags for stage2 and later | |
71130ef8 | 1587 | --with-isl=PATH Specify prefix directory for the installed isl |
8747a938 | 1588 | package. Equivalent to |
87e20041 | 1589 | --with-isl-include=PATH/include plus |
1590 | --with-isl-lib=PATH/lib | |
7458b15a | 1591 | --with-isl-include=PATH Specify directory for installed isl include files |
1592 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
baf71228 | 1593 | --with-target-bdw-gc=PATHLIST |
1594 | specify prefix directory for installed bdw-gc | |
1595 | package. Equivalent to | |
1596 | --with-target-bdw-gc-include=PATH/include plus | |
1597 | --with-target-bdw-gc-lib=PATH/lib | |
1598 | --with-target-bdw-gc-include=PATHLIST | |
1599 | specify directories for installed bdw-gc include | |
1600 | files | |
1601 | --with-target-bdw-gc-lib=PATHLIST | |
1602 | specify directories for installed bdw-gc library | |
0812bb06 | 1603 | --with-gcc-major-version-only |
1604 | use only GCC major number in filesystem paths | |
09c2d953 | 1605 | --with-build-sysroot=SYSROOT |
b30fcfae | 1606 | use sysroot as the system root during the build |
5f1f2de5 | 1607 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1608 | map A to B, C to D ... in debug information |
1609 | --with-build-config='NAME NAME2...' | |
1610 | use config/NAME.mk build configuration | |
09c2d953 | 1611 | --with-build-time-tools=PATH |
b30fcfae | 1612 | use given path to find target tools during the build |
b30fcfae | 1613 | |
1614 | Some influential environment variables: | |
1615 | CC C compiler command | |
1616 | CFLAGS C compiler flags | |
1617 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1618 | nonstandard directory <lib dir> | |
cd9a469c | 1619 | LIBS libraries to pass to the linker, e.g. -l<library> |
f00f02a3 | 1620 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
cd9a469c | 1621 | you have headers in a nonstandard directory <include dir> |
eae5b2bc | 1622 | CXX C++ compiler command |
1623 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1624 | build_configargs |
1625 | additional configure arguments for build directories | |
1626 | host_configargs | |
1627 | additional configure arguments for host directories | |
1628 | target_configargs | |
1629 | additional configure arguments for target directories | |
95a05732 | 1630 | AR AR for the host |
1631 | AS AS for the host | |
1632 | DLLTOOL DLLTOOL for the host | |
1633 | LD LD for the host | |
1634 | LIPO LIPO for the host | |
1635 | NM NM for the host | |
1636 | RANLIB RANLIB for the host | |
1637 | STRIP STRIP for the host | |
1638 | WINDRES WINDRES for the host | |
75d6a0a9 | 1639 | WINDMC WINDMC for the host |
95a05732 | 1640 | OBJCOPY OBJCOPY for the host |
1641 | OBJDUMP OBJDUMP for the host | |
16706a2e | 1642 | OTOOL OTOOL for the host |
3f71364d | 1643 | READELF READELF for the host |
95a05732 | 1644 | CC_FOR_TARGET |
1645 | CC for the target | |
1646 | CXX_FOR_TARGET | |
1647 | CXX for the target | |
1648 | GCC_FOR_TARGET | |
1649 | GCC for the target | |
95a05732 | 1650 | GFORTRAN_FOR_TARGET |
1651 | GFORTRAN for the target | |
5ff5b630 | 1652 | GOC_FOR_TARGET |
1653 | GOC for the target | |
03385ed3 | 1654 | GDC_FOR_TARGET |
1655 | GDC for the target | |
95a05732 | 1656 | AR_FOR_TARGET |
1657 | AR for the target | |
1658 | AS_FOR_TARGET | |
1659 | AS for the target | |
1660 | DLLTOOL_FOR_TARGET | |
1661 | DLLTOOL for the target | |
1662 | LD_FOR_TARGET | |
1663 | LD for the target | |
1664 | LIPO_FOR_TARGET | |
1665 | LIPO for the target | |
1666 | NM_FOR_TARGET | |
1667 | NM for the target | |
fc740d70 | 1668 | OBJCOPY_FOR_TARGET |
1669 | OBJCOPY for the target | |
95a05732 | 1670 | OBJDUMP_FOR_TARGET |
1671 | OBJDUMP for the target | |
16706a2e | 1672 | OTOOL_FOR_TARGET |
1673 | OTOOL for the target | |
95a05732 | 1674 | RANLIB_FOR_TARGET |
1675 | RANLIB for the target | |
3f71364d | 1676 | READELF_FOR_TARGET |
1677 | READELF for the target | |
95a05732 | 1678 | STRIP_FOR_TARGET |
1679 | STRIP for the target | |
1680 | WINDRES_FOR_TARGET | |
1681 | WINDRES for the target | |
75d6a0a9 | 1682 | WINDMC_FOR_TARGET |
1683 | WINDMC for the target | |
b30fcfae | 1684 | |
1685 | Use these variables to override the choices made by `configure' or to help | |
1686 | it to find libraries and programs with nonstandard names/locations. | |
1687 | ||
cd9a469c | 1688 | Report bugs to the package provider. |
b30fcfae | 1689 | _ACEOF |
cd9a469c | 1690 | ac_status=$? |
b30fcfae | 1691 | fi |
1692 | ||
1693 | if test "$ac_init_help" = "recursive"; then | |
1694 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1695 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1696 | test -d "$ac_dir" || |
1697 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1698 | continue | |
b30fcfae | 1699 | ac_builddir=. |
1700 | ||
cd9a469c | 1701 | case "$ac_dir" in |
1702 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1703 | *) | |
1704 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1705 | # A ".." for each directory in $ac_dir_suffix. | |
1706 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1707 | case $ac_top_builddir_sub in | |
1708 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1709 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1710 | esac ;; | |
1711 | esac | |
1712 | ac_abs_top_builddir=$ac_pwd | |
1713 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1714 | # for backward compatibility: | |
1715 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1716 | |
1717 | case $srcdir in | |
cd9a469c | 1718 | .) # We are building in place. |
b30fcfae | 1719 | ac_srcdir=. |
cd9a469c | 1720 | ac_top_srcdir=$ac_top_builddir_sub |
1721 | ac_abs_top_srcdir=$ac_pwd ;; | |
1722 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1723 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1724 | ac_top_srcdir=$srcdir |
1725 | ac_abs_top_srcdir=$srcdir ;; | |
1726 | *) # Relative name. | |
1727 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1728 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1729 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1730 | esac |
cd9a469c | 1731 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1732 | ||
1733 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1734 | # Check for guested configure. | |
1735 | if test -f "$ac_srcdir/configure.gnu"; then | |
1736 | echo && | |
1737 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1738 | elif test -f "$ac_srcdir/configure"; then | |
1739 | echo && | |
1740 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1741 | else |
cd9a469c | 1742 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1743 | fi || ac_status=$? | |
1744 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1745 | done |
1746 | fi | |
1747 | ||
cd9a469c | 1748 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1749 | if $ac_init_version; then |
1750 | cat <<\_ACEOF | |
cd9a469c | 1751 | configure |
f00f02a3 | 1752 | generated by GNU Autoconf 2.69 |
b30fcfae | 1753 | |
f00f02a3 | 1754 | Copyright (C) 2012 Free Software Foundation, Inc. |
b30fcfae | 1755 | This configure script is free software; the Free Software Foundation |
1756 | gives unlimited permission to copy, distribute and modify it. | |
1757 | _ACEOF | |
cd9a469c | 1758 | exit |
a83ffacf | 1759 | fi |
cd9a469c | 1760 | |
1761 | ## ------------------------ ## | |
1762 | ## Autoconf initialization. ## | |
1763 | ## ------------------------ ## | |
1764 | ||
1765 | # ac_fn_c_try_compile LINENO | |
1766 | # -------------------------- | |
1767 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1768 | ac_fn_c_try_compile () | |
1769 | { | |
1770 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1771 | rm -f conftest.$ac_objext | |
1772 | if { { ac_try="$ac_compile" | |
1773 | case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_compile") 2>conftest.err | |
1780 | ac_status=$? | |
1781 | if test -s conftest.err; then | |
1782 | grep -v '^ *+' conftest.err >conftest.er1 | |
1783 | cat conftest.er1 >&5 | |
1784 | mv -f conftest.er1 conftest.err | |
1785 | fi | |
1786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1787 | test $ac_status = 0; } && { | |
1788 | test -z "$ac_c_werror_flag" || | |
1789 | test ! -s conftest.err | |
1790 | } && test -s conftest.$ac_objext; then : | |
1791 | ac_retval=0 | |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1795 | ||
1796 | ac_retval=1 | |
1797 | fi | |
f00f02a3 | 1798 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1799 | as_fn_set_status $ac_retval | |
cd9a469c | 1800 | |
1801 | } # ac_fn_c_try_compile | |
1802 | ||
1803 | # ac_fn_cxx_try_compile LINENO | |
1804 | # ---------------------------- | |
1805 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1806 | ac_fn_cxx_try_compile () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | rm -f conftest.$ac_objext | |
1810 | if { { ac_try="$ac_compile" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_compile") 2>conftest.err | |
1818 | ac_status=$? | |
1819 | if test -s conftest.err; then | |
1820 | grep -v '^ *+' conftest.err >conftest.er1 | |
1821 | cat conftest.er1 >&5 | |
1822 | mv -f conftest.er1 conftest.err | |
1823 | fi | |
1824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1825 | test $ac_status = 0; } && { | |
1826 | test -z "$ac_cxx_werror_flag" || | |
1827 | test ! -s conftest.err | |
1828 | } && test -s conftest.$ac_objext; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_retval=1 | |
1835 | fi | |
f00f02a3 | 1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1837 | as_fn_set_status $ac_retval | |
cd9a469c | 1838 | |
1839 | } # ac_fn_cxx_try_compile | |
1840 | ||
13687c85 | 1841 | # ac_fn_cxx_try_link LINENO |
1842 | # ------------------------- | |
1843 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1844 | ac_fn_cxx_try_link () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1848 | if { { ac_try="$ac_link" | |
1849 | case "(($ac_try" in | |
1850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1851 | *) ac_try_echo=$ac_try;; | |
1852 | esac | |
1853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1854 | $as_echo "$ac_try_echo"; } >&5 | |
1855 | (eval "$ac_link") 2>conftest.err | |
1856 | ac_status=$? | |
1857 | if test -s conftest.err; then | |
1858 | grep -v '^ *+' conftest.err >conftest.er1 | |
1859 | cat conftest.er1 >&5 | |
1860 | mv -f conftest.er1 conftest.err | |
1861 | fi | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { | |
1864 | test -z "$ac_cxx_werror_flag" || | |
1865 | test ! -s conftest.err | |
1866 | } && test -s conftest$ac_exeext && { | |
1867 | test "$cross_compiling" = yes || | |
f00f02a3 | 1868 | test -x conftest$ac_exeext |
13687c85 | 1869 | }; then : |
1870 | ac_retval=0 | |
1871 | else | |
1872 | $as_echo "$as_me: failed program was:" >&5 | |
1873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1874 | ||
1875 | ac_retval=1 | |
1876 | fi | |
1877 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1878 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1879 | # interfere with the next link command; also delete a directory that is | |
1880 | # left behind by Apple's compiler. We do this before executing the actions. | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1883 | as_fn_set_status $ac_retval | |
13687c85 | 1884 | |
1885 | } # ac_fn_cxx_try_link | |
1886 | ||
cd9a469c | 1887 | # ac_fn_c_try_link LINENO |
1888 | # ----------------------- | |
1889 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1890 | ac_fn_c_try_link () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1894 | if { { ac_try="$ac_link" | |
1895 | case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
1901 | (eval "$ac_link") 2>conftest.err | |
1902 | ac_status=$? | |
1903 | if test -s conftest.err; then | |
1904 | grep -v '^ *+' conftest.err >conftest.er1 | |
1905 | cat conftest.er1 >&5 | |
1906 | mv -f conftest.er1 conftest.err | |
1907 | fi | |
1908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1909 | test $ac_status = 0; } && { | |
1910 | test -z "$ac_c_werror_flag" || | |
1911 | test ! -s conftest.err | |
1912 | } && test -s conftest$ac_exeext && { | |
1913 | test "$cross_compiling" = yes || | |
f00f02a3 | 1914 | test -x conftest$ac_exeext |
cd9a469c | 1915 | }; then : |
1916 | ac_retval=0 | |
1917 | else | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1920 | ||
1921 | ac_retval=1 | |
1922 | fi | |
1923 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1924 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1925 | # interfere with the next link command; also delete a directory that is | |
1926 | # left behind by Apple's compiler. We do this before executing the actions. | |
1927 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1929 | as_fn_set_status $ac_retval | |
cd9a469c | 1930 | |
1931 | } # ac_fn_c_try_link | |
1932 | cat >config.log <<_ACEOF | |
b30fcfae | 1933 | This file contains any messages produced by compilers while |
1934 | running configure, to aid debugging if configure makes a mistake. | |
1935 | ||
1936 | It was created by $as_me, which was | |
f00f02a3 | 1937 | generated by GNU Autoconf 2.69. Invocation command line was |
b30fcfae | 1938 | |
1939 | $ $0 $@ | |
1940 | ||
1941 | _ACEOF | |
cd9a469c | 1942 | exec 5>>config.log |
b30fcfae | 1943 | { |
1944 | cat <<_ASUNAME | |
1945 | ## --------- ## | |
1946 | ## Platform. ## | |
1947 | ## --------- ## | |
1948 | ||
1949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1950 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1951 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1952 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1953 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1954 | ||
1955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1957 | ||
1958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1961 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1965 | ||
1966 | _ASUNAME | |
1967 | ||
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1969 | for as_dir in $PATH | |
1970 | do | |
1971 | IFS=$as_save_IFS | |
1972 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1973 | $as_echo "PATH: $as_dir" |
1974 | done | |
1975 | IFS=$as_save_IFS | |
b30fcfae | 1976 | |
1977 | } >&5 | |
1978 | ||
1979 | cat >&5 <<_ACEOF | |
1980 | ||
1981 | ||
1982 | ## ----------- ## | |
1983 | ## Core tests. ## | |
1984 | ## ----------- ## | |
1985 | ||
1986 | _ACEOF | |
1987 | ||
1988 | ||
1989 | # Keep a trace of the command line. | |
1990 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1991 | # Strip out --silent because we don't want to record it for future runs. | |
1992 | # Also quote any args containing shell meta-characters. | |
1993 | # Make two passes to allow for proper duplicate-argument suppression. | |
1994 | ac_configure_args= | |
1995 | ac_configure_args0= | |
1996 | ac_configure_args1= | |
b30fcfae | 1997 | ac_must_keep_next=false |
1998 | for ac_pass in 1 2 | |
1999 | do | |
2000 | for ac_arg | |
2001 | do | |
2002 | case $ac_arg in | |
2003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2005 | | -silent | --silent | --silen | --sile | --sil) | |
2006 | continue ;; | |
cd9a469c | 2007 | *\'*) |
2008 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 2009 | esac |
2010 | case $ac_pass in | |
cd9a469c | 2011 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 2012 | 2) |
cd9a469c | 2013 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 2014 | if test $ac_must_keep_next = true; then |
2015 | ac_must_keep_next=false # Got value, back to normal. | |
2016 | else | |
2017 | case $ac_arg in | |
2018 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2021 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2022 | case "$ac_configure_args0 " in | |
2023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2024 | esac | |
2025 | ;; | |
2026 | -* ) ac_must_keep_next=true ;; | |
2027 | esac | |
2028 | fi | |
cd9a469c | 2029 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 2030 | ;; |
2031 | esac | |
2032 | done | |
2033 | done | |
cd9a469c | 2034 | { ac_configure_args0=; unset ac_configure_args0;} |
2035 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 2036 | |
2037 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2038 | # config.log. We remove comments because anyway the quotes in there | |
2039 | # would cause problems or look ugly. | |
cd9a469c | 2040 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2041 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 2042 | trap 'exit_status=$? |
2043 | # Save into config.log some information that might help in debugging. | |
2044 | { | |
2045 | echo | |
2046 | ||
f00f02a3 | 2047 | $as_echo "## ---------------- ## |
b30fcfae | 2048 | ## Cache variables. ## |
f00f02a3 | 2049 | ## ---------------- ##" |
b30fcfae | 2050 | echo |
2051 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 2052 | ( |
2053 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2054 | eval ac_val=\$$ac_var | |
2055 | case $ac_val in #( | |
2056 | *${as_nl}*) | |
2057 | case $ac_var in #( | |
2058 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2059 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2060 | esac | |
2061 | case $ac_var in #( | |
2062 | _ | IFS | as_nl) ;; #( | |
2063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2064 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2065 | esac ;; | |
2066 | esac | |
2067 | done | |
b30fcfae | 2068 | (set) 2>&1 | |
cd9a469c | 2069 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2070 | *${as_nl}ac_space=\ *) | |
b30fcfae | 2071 | sed -n \ |
cd9a469c | 2072 | "s/'\''/'\''\\\\'\'''\''/g; |
2073 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2074 | ;; #( | |
b30fcfae | 2075 | *) |
cd9a469c | 2076 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 2077 | ;; |
cd9a469c | 2078 | esac | |
2079 | sort | |
2080 | ) | |
b30fcfae | 2081 | echo |
2082 | ||
f00f02a3 | 2083 | $as_echo "## ----------------- ## |
b30fcfae | 2084 | ## Output variables. ## |
f00f02a3 | 2085 | ## ----------------- ##" |
b30fcfae | 2086 | echo |
2087 | for ac_var in $ac_subst_vars | |
2088 | do | |
cd9a469c | 2089 | eval ac_val=\$$ac_var |
2090 | case $ac_val in | |
2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2092 | esac | |
2093 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2094 | done | sort |
2095 | echo | |
2096 | ||
2097 | if test -n "$ac_subst_files"; then | |
f00f02a3 | 2098 | $as_echo "## ------------------- ## |
cd9a469c | 2099 | ## File substitutions. ## |
f00f02a3 | 2100 | ## ------------------- ##" |
b30fcfae | 2101 | echo |
2102 | for ac_var in $ac_subst_files | |
2103 | do | |
cd9a469c | 2104 | eval ac_val=\$$ac_var |
2105 | case $ac_val in | |
2106 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2107 | esac | |
2108 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 2109 | done | sort |
2110 | echo | |
2111 | fi | |
2112 | ||
2113 | if test -s confdefs.h; then | |
f00f02a3 | 2114 | $as_echo "## ----------- ## |
b30fcfae | 2115 | ## confdefs.h. ## |
f00f02a3 | 2116 | ## ----------- ##" |
b30fcfae | 2117 | echo |
cd9a469c | 2118 | cat confdefs.h |
b30fcfae | 2119 | echo |
2120 | fi | |
2121 | test "$ac_signal" != 0 && | |
cd9a469c | 2122 | $as_echo "$as_me: caught signal $ac_signal" |
2123 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2124 | } >&5 |
cd9a469c | 2125 | rm -f core *.core core.conftest.* && |
2126 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2127 | exit $exit_status |
cd9a469c | 2128 | ' 0 |
b30fcfae | 2129 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2130 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2131 | done |
2132 | ac_signal=0 | |
2133 | ||
2134 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2135 | rm -f -r conftest* confdefs.h |
2136 | ||
2137 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2138 | |
2139 | # Predefined preprocessor variables. | |
2140 | ||
2141 | cat >>confdefs.h <<_ACEOF | |
2142 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2143 | _ACEOF | |
2144 | ||
b30fcfae | 2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2147 | _ACEOF | |
2148 | ||
b30fcfae | 2149 | cat >>confdefs.h <<_ACEOF |
2150 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2151 | _ACEOF | |
a83ffacf | 2152 | |
b30fcfae | 2153 | cat >>confdefs.h <<_ACEOF |
2154 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2155 | _ACEOF | |
2156 | ||
b30fcfae | 2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2159 | _ACEOF | |
2160 | ||
cd9a469c | 2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_URL "$PACKAGE_URL" | |
2163 | _ACEOF | |
2164 | ||
b30fcfae | 2165 | |
2166 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2167 | # Prefer an explicitly selected file to automatically selected ones. |
2168 | ac_site_file1=NONE | |
2169 | ac_site_file2=NONE | |
2170 | if test -n "$CONFIG_SITE"; then | |
f00f02a3 | 2171 | # We do not want a PATH search for config.site. |
2172 | case $CONFIG_SITE in #(( | |
2173 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2174 | */*) ac_site_file1=$CONFIG_SITE;; | |
2175 | *) ac_site_file1=./$CONFIG_SITE;; | |
2176 | esac | |
cd9a469c | 2177 | elif test "x$prefix" != xNONE; then |
2178 | ac_site_file1=$prefix/share/config.site | |
2179 | ac_site_file2=$prefix/etc/config.site | |
2180 | else | |
2181 | ac_site_file1=$ac_default_prefix/share/config.site | |
2182 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2183 | fi |
cd9a469c | 2184 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2185 | do | |
2186 | test "x$ac_site_file" = xNONE && continue | |
f00f02a3 | 2187 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
cd9a469c | 2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2189 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2190 | sed 's/^/| /' "$ac_site_file" >&5 |
f00f02a3 | 2191 | . "$ac_site_file" \ |
2192 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2194 | as_fn_error $? "failed to load site script $ac_site_file | |
2195 | See \`config.log' for more details" "$LINENO" 5; } | |
71ab34df | 2196 | fi |
2197 | done | |
2198 | ||
2199 | if test -r "$cache_file"; then | |
f00f02a3 | 2200 | # Some versions of bash will fail to source /dev/null (special files |
2201 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2202 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
cd9a469c | 2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2204 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2205 | case $cache_file in |
cd9a469c | 2206 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2207 | *) . "./$cache_file";; | |
b30fcfae | 2208 | esac |
2209 | fi | |
71ab34df | 2210 | else |
cd9a469c | 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2212 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2213 | >$cache_file |
2214 | fi | |
2215 | ||
2216 | # Check that the precious variables saved in the cache have kept the same | |
2217 | # value. | |
2218 | ac_cache_corrupted=false | |
cd9a469c | 2219 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2221 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2222 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2223 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2224 | case $ac_old_set,$ac_new_set in |
2225 | set,) | |
cd9a469c | 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2227 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2228 | ac_cache_corrupted=: ;; |
2229 | ,set) | |
cd9a469c | 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2231 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2232 | ac_cache_corrupted=: ;; |
2233 | ,);; | |
2234 | *) | |
2235 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2236 | # differences in whitespace do not lead to failure. |
2237 | ac_old_val_w=`echo x $ac_old_val` | |
2238 | ac_new_val_w=`echo x $ac_new_val` | |
2239 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2241 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2242 | ac_cache_corrupted=: | |
2243 | else | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2245 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2246 | eval $ac_var=\$ac_old_val | |
2247 | fi | |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2249 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2251 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2252 | fi;; |
2253 | esac | |
2254 | # Pass precious variables to config.status. | |
2255 | if test "$ac_new_set" = set; then | |
2256 | case $ac_new_val in | |
cd9a469c | 2257 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2258 | *) ac_arg=$ac_var=$ac_new_val ;; |
2259 | esac | |
2260 | case " $ac_configure_args " in | |
2261 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2262 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2263 | esac |
2264 | fi | |
2265 | done | |
2266 | if $ac_cache_corrupted; then | |
cd9a469c | 2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2270 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
f00f02a3 | 2271 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
71ab34df | 2272 | fi |
cd9a469c | 2273 | ## -------------------- ## |
2274 | ## Main body of script. ## | |
2275 | ## -------------------- ## | |
71ab34df | 2276 | |
5084f823 | 2277 | ac_ext=c |
2278 | ac_cpp='$CPP $CPPFLAGS' | |
2279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2282 | ||
b30fcfae | 2283 | |
2284 | ||
2285 | ||
b30fcfae | 2286 | |
2287 | ||
cd2f3773 | 2288 | |
b30fcfae | 2289 | |
4e8a889d | 2290 | progname=$0 |
2291 | # if PWD already has a value, it is probably wrong. | |
2292 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2293 | ||
2294 | # Export original configure arguments for use by sub-configures. | |
2295 | # Quote arguments with shell meta charatcers. | |
2296 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2297 | set -- "$progname" "$@" | |
2298 | for ac_arg | |
2299 | do | |
2300 | case "$ac_arg" in | |
2301 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2302 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2303 | # if the argument is of the form -foo=baz, quote the baz part only | |
2304 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2305 | *) ;; | |
2306 | esac | |
2307 | # Add the quoted argument to the list. | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2309 | done | |
2310 | if test "$silent" = yes; then | |
2311 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2312 | fi | |
2313 | # Remove the initial space we just introduced and, as these will be | |
2314 | # expanded by make, quote '$'. | |
2315 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2316 | ||
b30fcfae | 2317 | |
2318 | # Find the build, host, and target systems. | |
71ab34df | 2319 | ac_aux_dir= |
cd9a469c | 2320 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
f00f02a3 | 2321 | if test -f "$ac_dir/install-sh"; then |
2322 | ac_aux_dir=$ac_dir | |
2323 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2324 | break | |
2325 | elif 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/shtool"; then | |
2330 | ac_aux_dir=$ac_dir | |
2331 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2332 | break | |
2333 | fi | |
71ab34df | 2334 | done |
2335 | if test -z "$ac_aux_dir"; then | |
f00f02a3 | 2336 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2337 | fi |
cd9a469c | 2338 | |
2339 | # These three variables are undocumented and unsupported, | |
2340 | # and are intended to be withdrawn in a future Autoconf release. | |
2341 | # They can cause serious problems if a builder's source tree is in a directory | |
2342 | # whose full name contains unusual characters. | |
2343 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2344 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2345 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2346 | ||
71ab34df | 2347 | |
b30fcfae | 2348 | # Make sure we can run config.sub. |
cd9a469c | 2349 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
f00f02a3 | 2350 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
cd9a469c | 2351 | |
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2353 | $as_echo_n "checking build system type... " >&6; } | |
f00f02a3 | 2354 | if ${ac_cv_build+:} false; then : |
cd9a469c | 2355 | $as_echo_n "(cached) " >&6 |
2356 | else | |
2357 | ac_build_alias=$build_alias | |
2358 | test "x$ac_build_alias" = x && | |
2359 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2360 | test "x$ac_build_alias" = x && | |
f00f02a3 | 2361 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
cd9a469c | 2362 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
f00f02a3 | 2363 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
cd9a469c | 2364 | |
2365 | fi | |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2367 | $as_echo "$ac_cv_build" >&6; } | |
2368 | case $ac_cv_build in | |
2369 | *-*-*) ;; | |
f00f02a3 | 2370 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
cd9a469c | 2371 | esac |
b30fcfae | 2372 | build=$ac_cv_build |
cd9a469c | 2373 | ac_save_IFS=$IFS; IFS='-' |
2374 | set x $ac_cv_build | |
2375 | shift | |
2376 | build_cpu=$1 | |
2377 | build_vendor=$2 | |
2378 | shift; shift | |
2379 | # Remember, the first character of IFS is used to create $*, | |
2380 | # except with old shells: | |
2381 | build_os=$* | |
2382 | IFS=$ac_save_IFS | |
2383 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2384 | |
71ab34df | 2385 | |
b30fcfae | 2386 | case ${build_alias} in |
2387 | "") build_noncanonical=${build} ;; | |
2388 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2389 | esac |
2390 | ||
2391 | ||
ae48753c | 2392 | |
b30fcfae | 2393 | case ${host_alias} in |
2394 | "") host_noncanonical=${build_noncanonical} ;; | |
2395 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2396 | esac |
2397 | ||
ae48753c | 2398 | |
b30fcfae | 2399 | |
2400 | case ${target_alias} in | |
2401 | "") target_noncanonical=${host_noncanonical} ;; | |
2402 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2403 | esac |
2404 | ||
ae48753c | 2405 | |
b30fcfae | 2406 | |
2407 | ||
2408 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2409 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2410 | NONENONEs,x,x, && | |
b30fcfae | 2411 | program_transform_name=s,y,y, |
ae48753c | 2412 | |
cd9a469c | 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2414 | $as_echo_n "checking host system type... " >&6; } | |
f00f02a3 | 2415 | if ${ac_cv_host+:} false; then : |
cd9a469c | 2416 | $as_echo_n "(cached) " >&6 |
ae48753c | 2417 | else |
cd9a469c | 2418 | if test "x$host_alias" = x; then |
2419 | ac_cv_host=$ac_cv_build | |
2420 | else | |
2421 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
f00f02a3 | 2422 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
cd9a469c | 2423 | fi |
b30fcfae | 2424 | |
ae48753c | 2425 | fi |
cd9a469c | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2427 | $as_echo "$ac_cv_host" >&6; } | |
2428 | case $ac_cv_host in | |
2429 | *-*-*) ;; | |
f00f02a3 | 2430 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
cd9a469c | 2431 | esac |
b30fcfae | 2432 | host=$ac_cv_host |
cd9a469c | 2433 | ac_save_IFS=$IFS; IFS='-' |
2434 | set x $ac_cv_host | |
2435 | shift | |
2436 | host_cpu=$1 | |
2437 | host_vendor=$2 | |
2438 | shift; shift | |
2439 | # Remember, the first character of IFS is used to create $*, | |
2440 | # except with old shells: | |
2441 | host_os=$* | |
2442 | IFS=$ac_save_IFS | |
2443 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2444 | |
2445 | ||
cd9a469c | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2447 | $as_echo_n "checking target system type... " >&6; } | |
f00f02a3 | 2448 | if ${ac_cv_target+:} false; then : |
cd9a469c | 2449 | $as_echo_n "(cached) " >&6 |
b30fcfae | 2450 | else |
cd9a469c | 2451 | if test "x$target_alias" = x; then |
2452 | ac_cv_target=$ac_cv_host | |
2453 | else | |
2454 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
f00f02a3 | 2455 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
cd9a469c | 2456 | fi |
b30fcfae | 2457 | |
2458 | fi | |
cd9a469c | 2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2460 | $as_echo "$ac_cv_target" >&6; } | |
2461 | case $ac_cv_target in | |
2462 | *-*-*) ;; | |
f00f02a3 | 2463 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
cd9a469c | 2464 | esac |
b30fcfae | 2465 | target=$ac_cv_target |
cd9a469c | 2466 | ac_save_IFS=$IFS; IFS='-' |
2467 | set x $ac_cv_target | |
2468 | shift | |
2469 | target_cpu=$1 | |
2470 | target_vendor=$2 | |
2471 | shift; shift | |
2472 | # Remember, the first character of IFS is used to create $*, | |
2473 | # except with old shells: | |
2474 | target_os=$* | |
2475 | IFS=$ac_save_IFS | |
2476 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2477 | |
2478 | ||
2479 | # The aliases save the names the user supplied, while $host etc. | |
2480 | # will get canonicalized. | |
2481 | test -n "$target_alias" && | |
2482 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2483 | NONENONEs,x,x, && | |
2484 | program_prefix=${target_alias}- | |
cd9a469c | 2485 | |
71ab34df | 2486 | test "$program_prefix" != NONE && |
cd9a469c | 2487 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2488 | # Use a double $ so make ignores it. |
2489 | test "$program_suffix" != NONE && | |
cd9a469c | 2490 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2491 | # Double any \ or $. | |
b30fcfae | 2492 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2493 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2494 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2495 | |
71ab34df | 2496 | |
2497 | ||
450e6c84 | 2498 | # Get 'install' or 'install-sh' and its variants. |
2499 | # Find a good install program. We prefer a C program (faster), | |
2500 | # so one script is as good as another. But avoid the broken or | |
2501 | # incompatible versions: | |
2502 | # SysV /etc/install, /usr/sbin/install | |
2503 | # SunOS /usr/etc/install | |
2504 | # IRIX /sbin/install | |
2505 | # AIX /bin/install | |
b30fcfae | 2506 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2507 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2508 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2509 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2510 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2511 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2512 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2514 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2515 | if test -z "$INSTALL"; then |
f00f02a3 | 2516 | if ${ac_cv_path_install+:} false; then : |
cd9a469c | 2517 | $as_echo_n "(cached) " >&6 |
b30fcfae | 2518 | else |
2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2520 | for as_dir in $PATH | |
2521 | do | |
2522 | IFS=$as_save_IFS | |
2523 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2524 | # Account for people who put trailing slashes in PATH elements. |
2525 | case $as_dir/ in #(( | |
2526 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2527 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2528 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2529 | /usr/ucb/* ) ;; |
2530 | *) | |
2531 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2532 | # Don't use installbsd from OSF since it installs stuff as root | |
2533 | # by default. | |
2534 | for ac_prog in ginstall scoinst install; do | |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2536 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
450e6c84 | 2537 | if test $ac_prog = install && |
b30fcfae | 2538 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2539 | # AIX install. It has an incompatible calling convention. |
2540 | : | |
b30fcfae | 2541 | elif test $ac_prog = install && |
2542 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2543 | # program-specific install script used by HP pwplus--don't use. | |
2544 | : | |
450e6c84 | 2545 | else |
82eaf560 | 2546 | rm -rf conftest.one conftest.two conftest.dir |
2547 | echo one > conftest.one | |
2548 | echo two > conftest.two | |
2549 | mkdir conftest.dir | |
2550 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2551 | test -s conftest.one && test -s conftest.two && | |
2552 | test -s conftest.dir/conftest.one && | |
2553 | test -s conftest.dir/conftest.two | |
2554 | then | |
2555 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2556 | break 3 | |
2557 | fi | |
450e6c84 | 2558 | fi |
2559 | fi | |
2560 | done | |
b30fcfae | 2561 | done |
2562 | ;; | |
2563 | esac | |
cd9a469c | 2564 | |
2565 | done | |
2566 | IFS=$as_save_IFS | |
b30fcfae | 2567 | |
82eaf560 | 2568 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2569 | |
2570 | fi | |
2571 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2572 | INSTALL=$ac_cv_path_install |
450e6c84 | 2573 | else |
82eaf560 | 2574 | # As a last resort, use the slow shell script. Don't cache a |
2575 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2576 | # break other packages using the cache if that directory is |
82eaf560 | 2577 | # removed, or if the value is a relative name. |
b30fcfae | 2578 | INSTALL=$ac_install_sh |
450e6c84 | 2579 | fi |
2580 | fi | |
cd9a469c | 2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2582 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2583 | |
2584 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2585 | # It thinks the first close brace ends the variable substitution. | |
2586 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2587 | ||
b30fcfae | 2588 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2589 | |
2590 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2591 | ||
cd9a469c | 2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2593 | $as_echo_n "checking whether ln works... " >&6; } | |
f00f02a3 | 2594 | if ${acx_cv_prog_LN+:} false; then : |
cd9a469c | 2595 | $as_echo_n "(cached) " >&6 |
599a3eac | 2596 | else |
2597 | rm -f conftestdata_t | |
2598 | echo >conftestdata_f | |
2599 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2600 | then | |
2601 | acx_cv_prog_LN=ln | |
2602 | else | |
2603 | acx_cv_prog_LN=no | |
2604 | fi | |
2605 | rm -f conftestdata_f conftestdata_t | |
2606 | ||
2607 | fi | |
2608 | if test $acx_cv_prog_LN = no; then | |
2609 | LN="cp" | |
cd9a469c | 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2611 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2612 | else |
2613 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2615 | $as_echo "yes" >&6; } | |
599a3eac | 2616 | fi |
2617 | ||
cd9a469c | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2619 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2620 | LN_S=$as_ln_s |
2621 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2623 | $as_echo "yes" >&6; } | |
a4af6a58 | 2624 | else |
cd9a469c | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2626 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2627 | fi |
2628 | ||
b181f265 | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2630 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
f00f02a3 | 2631 | if ${ac_cv_path_SED+:} false; then : |
b181f265 | 2632 | $as_echo_n "(cached) " >&6 |
2633 | else | |
2634 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2635 | for ac_i in 1 2 3 4 5 6 7; do | |
2636 | ac_script="$ac_script$as_nl$ac_script" | |
2637 | done | |
2638 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2639 | { ac_script=; unset ac_script;} | |
2640 | if test -z "$SED"; then | |
2641 | ac_path_SED_found=false | |
2642 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2644 | for as_dir in $PATH | |
2645 | do | |
2646 | IFS=$as_save_IFS | |
2647 | test -z "$as_dir" && as_dir=. | |
2648 | for ac_prog in sed gsed; do | |
2649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2650 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
f00f02a3 | 2651 | as_fn_executable_p "$ac_path_SED" || continue |
b181f265 | 2652 | # Check for GNU ac_path_SED and select it if it is found. |
2653 | # Check for GNU $ac_path_SED | |
2654 | case `"$ac_path_SED" --version 2>&1` in | |
2655 | *GNU*) | |
2656 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2657 | *) | |
2658 | ac_count=0 | |
2659 | $as_echo_n 0123456789 >"conftest.in" | |
2660 | while : | |
2661 | do | |
2662 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2663 | mv "conftest.tmp" "conftest.in" | |
2664 | cp "conftest.in" "conftest.nl" | |
2665 | $as_echo '' >> "conftest.nl" | |
2666 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2667 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2668 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2669 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2670 | # Best one so far, save it but keep looking for a better one | |
2671 | ac_cv_path_SED="$ac_path_SED" | |
2672 | ac_path_SED_max=$ac_count | |
2673 | fi | |
2674 | # 10*(2^10) chars as input seems more than enough | |
2675 | test $ac_count -gt 10 && break | |
2676 | done | |
2677 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2678 | esac | |
2679 | ||
2680 | $ac_path_SED_found && break 3 | |
2681 | done | |
2682 | done | |
2683 | done | |
2684 | IFS=$as_save_IFS | |
2685 | if test -z "$ac_cv_path_SED"; then | |
f00f02a3 | 2686 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
b181f265 | 2687 | fi |
2688 | else | |
2689 | ac_cv_path_SED=$SED | |
2690 | fi | |
2691 | ||
2692 | fi | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2694 | $as_echo "$ac_cv_path_SED" >&6; } | |
2695 | SED="$ac_cv_path_SED" | |
2696 | rm -f conftest.sed | |
2697 | ||
2698 | for ac_prog in gawk mawk nawk awk | |
2699 | do | |
2700 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2701 | set dummy $ac_prog; ac_word=$2 | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2703 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 2704 | if ${ac_cv_prog_AWK+:} false; then : |
b181f265 | 2705 | $as_echo_n "(cached) " >&6 |
2706 | else | |
2707 | if test -n "$AWK"; then | |
2708 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2709 | else | |
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 2716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b181f265 | 2717 | ac_cv_prog_AWK="$ac_prog" |
2718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2719 | break 2 | |
2720 | fi | |
2721 | done | |
2722 | done | |
2723 | IFS=$as_save_IFS | |
2724 | ||
2725 | fi | |
2726 | fi | |
2727 | AWK=$ac_cv_prog_AWK | |
2728 | if test -n "$AWK"; then | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2730 | $as_echo "$AWK" >&6; } | |
2731 | else | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2733 | $as_echo "no" >&6; } | |
2734 | fi | |
2735 | ||
2736 | ||
2737 | test -n "$AWK" && break | |
2738 | done | |
2739 | ||
450e6c84 | 2740 | |
e8eddfdd | 2741 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2742 | ||
2743 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2744 | # a relative path. | |
2745 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2746 | INSTALL="${srcpwd}/install-sh -c" | |
2747 | fi | |
2748 | ||
71ab34df | 2749 | # Set srcdir to "." if that's what it is. |
2750 | # This is important for multilib support. | |
2751 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2752 | if test "${pwd}" = "${srcpwd}" ; then |
2753 | srcdir=. | |
a8298541 | 2754 | fi |
2755 | ||
71ab34df | 2756 | topsrcdir=$srcpwd |
ed37269d | 2757 | |
71ab34df | 2758 | extra_host_args= |
14ac9144 | 2759 | |
71ab34df | 2760 | ### To add a new directory to the tree, first choose whether it is a target |
2761 | ### or a host dependent tool. Then put it into the appropriate list | |
2762 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2763 | |
b30fcfae | 2764 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2765 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2766 | |
b30fcfae | 2767 | # Dependency sorting is only needed when *configuration* must be done in |
2768 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2769 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2770 | |
71ab34df | 2771 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2772 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2773 | |
2f8725b0 | 2774 | # these library is used by various programs built for the build |
2775 | # environment | |
2776 | # | |
9245d2c5 | 2777 | build_libs="build-libiberty build-libcpp" |
2f8725b0 | 2778 | |
2779 | # these tools are built for the build environment | |
4fc99708 | 2780 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2781 | |
71ab34df | 2782 | # these libraries are used by various programs built for the host environment |
429cca51 | 2783 | #f |
7f6a0bbc | 2784 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
71ab34df | 2785 | |
71ab34df | 2786 | # these tools are built for the host environment |
2787 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2788 | # know that we are building the simulator. | |
2789 | # binutils, gas and ld appear in that order because it makes sense to run | |
2790 | # "make check" in that particular order. | |
af7c5662 | 2791 | # If --enable-gold is used, "gold" may replace "ld". |
dcfe52b6 | 2792 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
71ab34df | 2793 | |
71ab34df | 2794 | # these libraries are built for the target environment, and are built after |
2795 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2796 | # Note that libiberty is not a target library. |
27bfe7b7 | 2797 | target_libraries="target-libgcc \ |
ecd3459e | 2798 | target-libbacktrace \ |
71ab34df | 2799 | target-libgloss \ |
2800 | target-newlib \ | |
a0191bfe | 2801 | target-libgomp \ |
d3a7dd32 | 2802 | target-liboffloadmic \ |
55a56509 | 2803 | target-libhsail-rt \ |
6db1d2ca | 2804 | target-libatomic \ |
4c0315d0 | 2805 | target-libitm \ |
54d7d5f2 | 2806 | target-libstdc++-v3 \ |
549e2197 | 2807 | target-libsanitizer \ |
b710ec85 | 2808 | target-libvtv \ |
0d55f4d0 | 2809 | target-libssp \ |
87969c8c | 2810 | target-libquadmath \ |
4ee9c684 | 2811 | target-libgfortran \ |
38cf534f | 2812 | target-libffi \ |
93341878 | 2813 | target-libobjc \ |
5ff5b630 | 2814 | target-libada \ |
03385ed3 | 2815 | target-libgo \ |
e60a24bd | 2816 | target-libphobos \ |
2817 | target-zlib" | |
71ab34df | 2818 | |
328637e8 | 2819 | # these tools are built using the target libraries, and are intended to |
2820 | # run only in the target environment | |
71ab34df | 2821 | # |
328637e8 | 2822 | # note: any program that *uses* libraries that are in the "target_libraries" |
6c9785b4 | 2823 | # list belongs in this list. |
71ab34df | 2824 | # |
4fc99708 | 2825 | target_tools="target-rda" |
a8298541 | 2826 | |
71ab34df | 2827 | ################################################################################ |
a8298541 | 2828 | |
71ab34df | 2829 | ## All tools belong in one of the four categories, and are assigned above |
2830 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2831 | ## is important because configure will choke if they ever get through. | |
2832 | ## ${configdirs} is directories we build using the host tools. | |
2833 | ## ${target_configdirs} is directories we build using the target tools. | |
71ab34df | 2834 | configdirs=`echo ${host_libs} ${host_tools}` |
328637e8 | 2835 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
2b59cb05 | 2836 | build_configdirs=`echo ${build_libs} ${build_tools}` |
6f4f34a7 | 2837 | |
d2d2630b | 2838 | |
2839 | ||
71ab34df | 2840 | ################################################################################ |
a8298541 | 2841 | |
71ab34df | 2842 | srcname="gnu development package" |
a8298541 | 2843 | |
71ab34df | 2844 | # This gets set non-empty for some net releases of packages. |
2845 | appdirs="" | |
a8298541 | 2846 | |
71ab34df | 2847 | # Define is_cross_compiler to save on calls to 'test'. |
2848 | is_cross_compiler= | |
2849 | if test x"${host}" = x"${target}" ; then | |
2850 | is_cross_compiler=no | |
a8298541 | 2851 | else |
71ab34df | 2852 | is_cross_compiler=yes |
b30fcfae | 2853 | fi |
a8298541 | 2854 | |
2f61b8ca | 2855 | # Find the build and target subdir names. |
6f4f34a7 | 2856 | |
d3e7b04c | 2857 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2858 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2859 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2860 | # However, they still use the build modules, because the corresponding | |
2861 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2862 | # finishes. So: | |
2863 | # - build_subdir is where we find build modules, and never changes. | |
2864 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2865 | ||
2866 | # Prefix 'build-' so this never conflicts with target_subdir. | |
6f4f34a7 | 2867 | build_subdir="build-${build_noncanonical}" |
b30fcfae | 2868 | |
cd9a469c | 2869 | # Check whether --with-build-libsubdir was given. |
2870 | if test "${with_build_libsubdir+set}" = set; then : | |
2871 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
d3e7b04c | 2872 | else |
2873 | build_libsubdir="$build_subdir" | |
cd9a469c | 2874 | fi |
2875 | ||
c1eb9e31 | 2876 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2877 | if ( test $srcdir = . && test -d gcc ) \ | |
2878 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2879 | host_subdir="host-${host_noncanonical}" | |
2880 | else | |
2881 | host_subdir=. | |
2882 | fi | |
6f4f34a7 | 2883 | # No prefix. |
2884 | target_subdir=${target_noncanonical} | |
b30fcfae | 2885 | |
04a2e841 | 2886 | # Be sure to cover against remnants of an in-tree build. |
2887 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
f00f02a3 | 2888 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
04a2e841 | 2889 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2890 | fi | |
a8298541 | 2891 | |
71ab34df | 2892 | # Skipdirs are removed silently. |
2893 | skipdirs= | |
2894 | # Noconfigdirs are removed loudly. | |
2895 | noconfigdirs="" | |
a8298541 | 2896 | |
71ab34df | 2897 | use_gnu_ld= |
2898 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2899 | if test x$with_gnu_ld = xno ; then | |
2900 | use_gnu_ld=no | |
3d47fcf5 | 2901 | noconfigdirs="$noconfigdirs ld gold" |
a8298541 | 2902 | fi |
2903 | ||
71ab34df | 2904 | use_gnu_as= |
2905 | # Make sure we don't let GNU as be added if we didn't want it. | |
2906 | if test x$with_gnu_as = xno ; then | |
2907 | use_gnu_as=no | |
2908 | noconfigdirs="$noconfigdirs gas" | |
a8298541 | 2909 | fi |
2910 | ||
7bfefa9d | 2911 | use_included_zlib= |
6406d366 | 2912 | |
2913 | # Check whether --with-system-zlib was given. | |
2914 | if test "${with_system_zlib+set}" = set; then : | |
2915 | withval=$with_system_zlib; | |
2916 | fi | |
2917 | ||
7bfefa9d | 2918 | # Make sure we don't let ZLIB be added if we didn't want it. |
2919 | if test x$with_system_zlib = xyes ; then | |
2920 | use_included_zlib=no | |
2921 | noconfigdirs="$noconfigdirs zlib" | |
2922 | fi | |
2923 | ||
b30fcfae | 2924 | # some tools are so dependent upon X11 that if we're not building with X, |
71ab34df | 2925 | # it's not even worth trying to configure, much less build, that tool. |
a8298541 | 2926 | |
71ab34df | 2927 | case ${with_x} in |
2928 | yes | "") ;; # the default value for this tree is that X11 is available | |
2929 | no) | |
f843f075 | 2930 | skipdirs="${skipdirs} tk itcl libgui" |
71ab34df | 2931 | # We won't be able to build gdbtk without X. |
b30fcfae | 2932 | enable_gdbtk=no |
71ab34df | 2933 | ;; |
2934 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2935 | esac | |
a8298541 | 2936 | |
6c9785b4 | 2937 | # Some are only suitable for cross toolchains. |
71ab34df | 2938 | # Remove these if host=target. |
2939 | cross_only="target-libgloss target-newlib target-opcodes" | |
2940 | ||
2941 | case $is_cross_compiler in | |
2942 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
71ab34df | 2943 | esac |
a8298541 | 2944 | |
71ab34df | 2945 | # If both --with-headers and --with-libs are specified, default to |
2946 | # --without-newlib. | |
e8eddfdd | 2947 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2948 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
71ab34df | 2949 | if test x"${with_newlib}" = x ; then |
2950 | with_newlib=no | |
2951 | fi | |
a8298541 | 2952 | fi |
2953 | ||
71ab34df | 2954 | # Recognize --with-newlib/--without-newlib. |
2955 | case ${with_newlib} in | |
2956 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2957 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2958 | esac | |
a8298541 | 2959 | |
a3d93be3 | 2960 | # Check whether --enable-as-accelerator-for was given. |
2961 | if test "${enable_as_accelerator_for+set}" = set; then : | |
67cedda8 | 2962 | enableval=$enable_as_accelerator_for; |
a3d93be3 | 2963 | fi |
2964 | ||
2965 | ||
2966 | # Check whether --enable-offload-targets was given. | |
2967 | if test "${enable_offload_targets+set}" = set; then : | |
2968 | enableval=$enable_offload_targets; | |
2969 | if test x"$enable_offload_targets" = x; then | |
f00f02a3 | 2970 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
a3d93be3 | 2971 | fi |
2972 | ||
2973 | else | |
2974 | enable_offload_targets= | |
2975 | fi | |
2976 | ||
2977 | ||
1e369e5f | 2978 | # Handle --enable-gold, --enable-ld. |
2979 | # --disable-gold [--enable-ld] | |
2980 | # Build only ld. Default option. | |
85516948 | 2981 | # --enable-gold [--enable-ld] |
2982 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2983 | # as "ld.bfd" and "ld". | |
2984 | # --enable-gold=default [--enable-ld] | |
1e369e5f | 2985 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2986 | # install ld as "ld.bfd". | |
2987 | # --enable-gold[=default] --disable-ld | |
2988 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2989 | # --enable-gold --enable-ld=default | |
85516948 | 2990 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2991 | # and ld.bfd). | |
1e369e5f | 2992 | # In other words, ld is default |
2993 | # --enable-gold=default --enable-ld=default | |
2994 | # Error. | |
2995 | ||
2996 | default_ld= | |
cd9a469c | 2997 | # Check whether --enable-gold was given. |
2998 | if test "${enable_gold+set}" = set; then : | |
2999 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
3d47fcf5 | 3000 | else |
3001 | ENABLE_GOLD=no | |
cd9a469c | 3002 | fi |
3003 | ||
1e369e5f | 3004 | case "${ENABLE_GOLD}" in |
3005 | yes|default) | |
af7c5662 | 3006 | # Check for ELF target. |
3007 | is_elf=no | |
3008 | case "${target}" in | |
3009 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
e4c33dd2 | 3010 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
e3a1fe08 | 3011 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
9d36d513 | 3012 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
af7c5662 | 3013 | case "${target}" in |
3014 | *-*-linux*aout* | *-*-linux*oldld*) | |
3015 | ;; | |
3016 | *) | |
3017 | is_elf=yes | |
3018 | ;; | |
3019 | esac | |
3020 | esac | |
3021 | ||
3022 | if test "$is_elf" = "yes"; then | |
3023 | # Check for target supported by gold. | |
3d47fcf5 | 3024 | case "${target}" in |
58f62c51 | 3025 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ca7ff757 | 3026 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
1e369e5f | 3027 | configdirs="$configdirs gold" |
3028 | if test x${ENABLE_GOLD} = xdefault; then | |
3029 | default_ld=gold | |
3030 | fi | |
af7c5662 | 3031 | ENABLE_GOLD=yes |
3d47fcf5 | 3032 | ;; |
3033 | esac | |
af7c5662 | 3034 | fi |
3035 | ;; | |
3036 | no) | |
3037 | ;; | |
3038 | *) | |
f00f02a3 | 3039 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
af7c5662 | 3040 | ;; |
1e369e5f | 3041 | esac |
3042 | ||
3043 | # Check whether --enable-ld was given. | |
3044 | if test "${enable_ld+set}" = set; then : | |
3045 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3046 | else | |
3047 | ENABLE_LD=yes | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | case "${ENABLE_LD}" in | |
3052 | default) | |
85516948 | 3053 | if test x${default_ld} != x; then |
f00f02a3 | 3054 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
1e369e5f | 3055 | fi |
3056 | ;; | |
3057 | yes) | |
3058 | ;; | |
3059 | no) | |
3060 | if test x${ENABLE_GOLD} != xyes; then | |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3062 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3063 | fi | |
3064 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3065 | ;; | |
3066 | *) | |
f00f02a3 | 3067 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
1e369e5f | 3068 | ;; |
3069 | esac | |
3d47fcf5 | 3070 | |
afb6adb9 | 3071 | # PR gas/19109 |
3072 | # Decide the default method for compressing debug sections. | |
3073 | # Provide a configure time option to override our default. | |
3074 | # Check whether --enable-compressed_debug_sections was given. | |
3075 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3076 | enableval=$enable_compressed_debug_sections; | |
3077 | if test x"$enable_compressed_debug_sections" = xyes; then | |
f00f02a3 | 3078 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
afb6adb9 | 3079 | fi |
3080 | ||
3081 | else | |
3082 | enable_compressed_debug_sections= | |
3083 | fi | |
3084 | ||
3085 | ||
71ab34df | 3086 | # Configure extra directories which are host specific |
a8298541 | 3087 | |
71ab34df | 3088 | case "${host}" in |
3089 | *-cygwin*) | |
3090 | configdirs="$configdirs libtermcap" ;; | |
3091 | esac | |
a8298541 | 3092 | |
ff7dcf6a | 3093 | # A target can indicate whether a language isn't supported for some reason. |
3094 | # Only spaces may be used in this macro; not newlines or tabs. | |
3095 | unsupported_languages= | |
3096 | ||
b30fcfae | 3097 | # Remove more programs from consideration, based on the host or |
71ab34df | 3098 | # target this usually means that a port of the program doesn't |
3099 | # exist yet. | |
c7879c37 | 3100 | |
71ab34df | 3101 | case "${host}" in |
b2240ff6 | 3102 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 3103 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 3104 | ;; |
71ab34df | 3105 | esac |
c7879c37 | 3106 | |
4ee9c684 | 3107 | |
d9d975ae | 3108 | # Check whether --enable-libquadmath was given. |
3109 | if test "${enable_libquadmath+set}" = set; then : | |
3110 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3111 | else | |
3112 | ENABLE_LIBQUADMATH=yes | |
3113 | fi | |
3114 | ||
3115 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3116 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3117 | fi | |
3118 | ||
3119 | ||
3120 | # Check whether --enable-libquadmath-support was given. | |
3121 | if test "${enable_libquadmath_support+set}" = set; then : | |
3122 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3123 | else | |
3124 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3125 | fi | |
3126 | ||
3127 | enable_libquadmath_support= | |
3128 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3129 | enable_libquadmath_support=no | |
3130 | fi | |
3131 | ||
3132 | ||
cd9a469c | 3133 | # Check whether --enable-libada was given. |
3134 | if test "${enable_libada+set}" = set; then : | |
3135 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 3136 | else |
3137 | ENABLE_LIBADA=yes | |
cd9a469c | 3138 | fi |
3139 | ||
93341878 | 3140 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 3141 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 3142 | fi |
3143 | ||
cd9a469c | 3144 | # Check whether --enable-libssp was given. |
3145 | if test "${enable_libssp+set}" = set; then : | |
3146 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 3147 | else |
3148 | ENABLE_LIBSSP=yes | |
cd9a469c | 3149 | fi |
3150 | ||
07da5214 | 3151 | |
a3ba808f | 3152 | # Check whether --enable-libstdcxx was given. |
3153 | if test "${enable_libstdcxx+set}" = set; then : | |
3154 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3155 | else | |
3156 | ENABLE_LIBSTDCXX=default | |
3157 | fi | |
3158 | ||
3159 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
df148e44 | 3160 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
a3ba808f | 3161 | fi |
3162 | ||
d3a7dd32 | 3163 | # If this is accelerator compiler and its target is intelmic we enable |
3164 | # target liboffloadmic by default. If this is compiler with offloading | |
3165 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3166 | # liboffloadmic is disabled by default. | |
3167 | # Check whether --enable-liboffloadmic was given. | |
3168 | if test "${enable_liboffloadmic+set}" = set; then : | |
3169 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3170 | no | host | target) | |
3171 | enable_liboffloadmic=$enableval ;; | |
3172 | *) | |
f00f02a3 | 3173 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
d3a7dd32 | 3174 | esac |
3175 | else | |
67cedda8 | 3176 | if test x"$enable_as_accelerator_for" != x; then |
d3a7dd32 | 3177 | case "${target}" in |
3178 | *-intelmic-* | *-intelmicemul-*) | |
3179 | enable_liboffloadmic=target | |
3180 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3181 | ;; | |
3182 | *) | |
3183 | enable_liboffloadmic=no | |
3184 | ;; | |
3185 | esac | |
3186 | else | |
3187 | case "${enable_offload_targets}" in | |
3188 | *-intelmic-* | *-intelmicemul-*) | |
3189 | enable_liboffloadmic=host | |
3190 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3191 | ;; | |
3192 | *) | |
3193 | enable_liboffloadmic=no | |
3194 | ;; | |
3195 | esac | |
3196 | fi | |
3197 | fi | |
3198 | ||
3199 | ||
3200 | ||
fdcd05c8 | 3201 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
50996fe5 | 3202 | if test x$enable_libgomp = x ; then |
1e8e9920 | 3203 | case "${target}" in |
3bef4012 | 3204 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3205 | ;; |
e3a1fe08 | 3206 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3207 | ;; |
5641963c | 3208 | *-*-solaris2* | *-*-hpux11*) |
1e8e9920 | 3209 | ;; |
634efbee | 3210 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3211 | ;; |
fdcd05c8 | 3212 | nvptx*-*-*) |
3213 | ;; | |
1e8e9920 | 3214 | *) |
3215 | noconfigdirs="$noconfigdirs target-libgomp" | |
3216 | ;; | |
3217 | esac | |
50996fe5 | 3218 | fi |
1e8e9920 | 3219 | |
6db1d2ca | 3220 | # Disable libatomic on unsupported systems. |
3221 | if test -d ${srcdir}/libatomic; then | |
3222 | if test x$enable_libatomic = x; then | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3224 | $as_echo_n "checking for libatomic support... " >&6; } | |
3225 | if (srcdir=${srcdir}/libatomic; \ | |
3226 | . ${srcdir}/configure.tgt; \ | |
3227 | test -n "$UNSUPPORTED") | |
3228 | then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3230 | $as_echo "no" >&6; } | |
3231 | noconfigdirs="$noconfigdirs target-libatomic" | |
3232 | else | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3234 | $as_echo "yes" >&6; } | |
3235 | fi | |
3236 | fi | |
3237 | fi | |
3238 | ||
d3a7dd32 | 3239 | # Disable liboffloadmic on unsupported systems. |
3240 | if test -d ${srcdir}/liboffloadmic; then | |
3241 | if test x$enable_liboffloadmic != xno; then | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3243 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3244 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3245 | . ${srcdir}/configure.tgt; \ | |
3246 | test -n "$UNSUPPORTED") | |
3247 | then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3249 | $as_echo "no" >&6; } | |
3250 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3251 | else | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3253 | $as_echo "yes" >&6; } | |
3254 | fi | |
3255 | fi | |
3256 | fi | |
3257 | ||
42b15c81 | 3258 | # Disable libitm on unsupported systems. |
3259 | if test -d ${srcdir}/libitm; then | |
3260 | if test x$enable_libitm = x; then | |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3262 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3263 | if (srcdir=${srcdir}/libitm; \ |
3264 | . ${srcdir}/configure.tgt; \ | |
3265 | test -n "$UNSUPPORTED") | |
3266 | then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3268 | $as_echo "no" >&6; } |
42b15c81 | 3269 | noconfigdirs="$noconfigdirs target-libitm" |
3270 | else | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3272 | $as_echo "yes" >&6; } |
42b15c81 | 3273 | fi |
3274 | fi | |
4c0315d0 | 3275 | fi |
3276 | ||
492e75a7 | 3277 | # Disable libsanitizer on unsupported systems. |
3278 | if test -d ${srcdir}/libsanitizer; then | |
3279 | if test x$enable_libsanitizer = x; then | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3281 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3282 | if (srcdir=${srcdir}/libsanitizer; \ | |
3283 | . ${srcdir}/configure.tgt; \ | |
3284 | test -n "$UNSUPPORTED") | |
3285 | then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3287 | $as_echo "no" >&6; } | |
3288 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3289 | else | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3291 | $as_echo "yes" >&6; } | |
3292 | fi | |
3293 | fi | |
3294 | fi | |
3295 | ||
b710ec85 | 3296 | # Disable libvtv on unsupported systems. |
3297 | if test -d ${srcdir}/libvtv; then | |
3298 | if test x$enable_libvtv = x; then | |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3300 | $as_echo_n "checking for libvtv support... " >&6; } | |
3301 | if (srcdir=${srcdir}/libvtv; \ | |
3302 | . ${srcdir}/configure.tgt; \ | |
6d0992e1 | 3303 | test "$VTV_SUPPORTED" != "yes") |
b710ec85 | 3304 | then |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3306 | $as_echo "no" >&6; } | |
3307 | noconfigdirs="$noconfigdirs target-libvtv" | |
3308 | else | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3310 | $as_echo "yes" >&6; } | |
3311 | fi | |
3312 | fi | |
3313 | fi | |
3314 | ||
202baac8 | 3315 | |
645a0bd9 | 3316 | # Disable libhsail-rt on unsupported systems. |
3317 | if test -d ${srcdir}/libhsail-rt; then | |
3318 | if test x$enable_libhsail_rt = x; then | |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3320 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3321 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3322 | . ${srcdir}/configure.tgt; \ | |
3323 | test -n "$UNSUPPORTED") | |
3324 | then | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3326 | $as_echo "no" >&6; } | |
3327 | unsupported_languages="$unsupported_languages brig" | |
3328 | # This implicitly disables also target-libhsail-rt as it won't | |
3329 | # get added to the build without BRIG FE. | |
3330 | else | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3332 | $as_echo "yes" >&6; } | |
3333 | fi | |
3334 | fi | |
3335 | fi | |
202baac8 | 3336 | |
3337 | ||
62f0972f | 3338 | # Disable libquadmath for some systems. |
3339 | case "${target}" in | |
c36ee471 | 3340 | avr-*-*) |
3341 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3342 | ;; | |
62f0972f | 3343 | # libquadmath is unused on AIX and libquadmath build process use of |
3344 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3345 | powerpc-*-aix* | rs6000-*-aix*) | |
3346 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3347 | ;; | |
3348 | esac | |
3349 | ||
d5831552 | 3350 | # Disable libssp for some systems. |
3351 | case "${target}" in | |
3352 | avr-*-*) | |
76c19016 | 3353 | # No hosted I/O support. |
d5831552 | 3354 | noconfigdirs="$noconfigdirs target-libssp" |
3355 | ;; | |
3356 | powerpc-*-aix* | rs6000-*-aix*) | |
3357 | noconfigdirs="$noconfigdirs target-libssp" | |
78e515f7 | 3358 | ;; |
48aa9227 | 3359 | pru-*-*) |
3360 | # No hosted I/O support. | |
3361 | noconfigdirs="$noconfigdirs target-libssp" | |
3362 | ;; | |
78e515f7 | 3363 | rl78-*-*) |
9d5fd7d0 | 3364 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3365 | # doesn't fault for those - instead, it gives a build-time error | |
3366 | # for explicit misaligned loads. | |
78e515f7 | 3367 | noconfigdirs="$noconfigdirs target-libssp" |
d5831552 | 3368 | ;; |
8992df51 | 3369 | visium-*-*) |
3370 | # No hosted I/O support. | |
3371 | noconfigdirs="$noconfigdirs target-libssp" | |
3372 | ;; | |
d5831552 | 3373 | esac |
3374 | ||
d5831552 | 3375 | # Disable libstdc++-v3 for some systems. |
a3ba808f | 3376 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3377 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3378 | case "${target}" in | |
3379 | *-*-vxworks*) | |
3380 | # VxWorks uses the Dinkumware C++ library. | |
3381 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3382 | ;; | |
3383 | arm*-wince-pe*) | |
3384 | # the C++ libraries don't build on top of CE's C libraries | |
3385 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3386 | ;; | |
3387 | avr-*-*) | |
3388 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3389 | ;; | |
b6616c9c | 3390 | ft32-*-*) |
3391 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3392 | ;; | |
a3ba808f | 3393 | esac |
3394 | fi | |
d5831552 | 3395 | |
72a2ce3d | 3396 | # Disable D on systems where it is known to not work. |
3397 | # For testing, you can override this with --enable-languages=d. | |
3398 | case ,${enable_languages}, in | |
3399 | *,d,*) | |
3400 | ;; | |
3401 | *) | |
3402 | case "${target}" in | |
77999887 | 3403 | *-*-darwin*) |
72a2ce3d | 3404 | unsupported_languages="$unsupported_languages d" |
3405 | ;; | |
3406 | esac | |
3407 | ;; | |
3408 | esac | |
3409 | ||
3410 | # Disable libphobos on unsupported systems. | |
3411 | # For testing, you can override this with --enable-libphobos. | |
3412 | if test -d ${srcdir}/libphobos; then | |
3413 | if test x$enable_libphobos = x; then | |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3415 | $as_echo_n "checking for libphobos support... " >&6; } | |
3416 | if (srcdir=${srcdir}/libphobos; \ | |
3417 | . ${srcdir}/configure.tgt; \ | |
20abc61c | 3418 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
72a2ce3d | 3419 | then |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3421 | $as_echo "no" >&6; } | |
3422 | noconfigdirs="$noconfigdirs target-libphobos" | |
3423 | else | |
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3425 | $as_echo "yes" >&6; } | |
3426 | fi | |
3427 | fi | |
3428 | fi | |
3429 | ||
d5831552 | 3430 | # Disable Fortran for some systems. |
3431 | case "${target}" in | |
3432 | mmix-*-*) | |
3433 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3434 | unsupported_languages="$unsupported_languages fortran" | |
3435 | ;; | |
3436 | esac | |
3437 | ||
38cf534f | 3438 | # Disable libffi for some systems. |
3439 | case "${target}" in | |
3440 | powerpc-*-darwin*) | |
3441 | ;; | |
3442 | i[3456789]86-*-darwin*) | |
3443 | ;; | |
3444 | x86_64-*-darwin[912]*) | |
3445 | ;; | |
3446 | *-*-darwin*) | |
3447 | noconfigdirs="$noconfigdirs target-libffi" | |
3448 | ;; | |
3449 | *-*-netware*) | |
3450 | noconfigdirs="$noconfigdirs target-libffi" | |
3451 | ;; | |
3452 | *-*-phoenix*) | |
3453 | noconfigdirs="$noconfigdirs target-libffi" | |
3454 | ;; | |
3455 | *-*-rtems*) | |
3456 | noconfigdirs="$noconfigdirs target-libffi" | |
3457 | ;; | |
3458 | *-*-tpf*) | |
3459 | noconfigdirs="$noconfigdirs target-libffi" | |
3460 | ;; | |
3461 | *-*-uclinux*) | |
3462 | noconfigdirs="$noconfigdirs target-libffi" | |
3463 | ;; | |
3464 | *-*-vxworks*) | |
3465 | noconfigdirs="$noconfigdirs target-libffi" | |
3466 | ;; | |
88afddbc | 3467 | aarch64*-*-freebsd*) |
3468 | noconfigdirs="$noconfigdirs target-libffi" | |
3469 | ;; | |
38cf534f | 3470 | alpha*-*-*vms*) |
3471 | noconfigdirs="$noconfigdirs target-libffi" | |
3472 | ;; | |
3473 | arm*-*-freebsd*) | |
3474 | noconfigdirs="$noconfigdirs target-libffi" | |
3475 | ;; | |
3476 | arm-wince-pe) | |
3477 | noconfigdirs="$noconfigdirs target-libffi" | |
3478 | ;; | |
3479 | arm*-*-symbianelf*) | |
3480 | noconfigdirs="$noconfigdirs target-libffi" | |
3481 | ;; | |
3482 | cris-*-* | crisv32-*-*) | |
3483 | case "${target}" in | |
3484 | *-*-linux*) | |
3485 | ;; | |
3486 | *) # See PR46792 regarding target-libffi. | |
3487 | noconfigdirs="$noconfigdirs target-libffi";; | |
3488 | esac | |
3489 | ;; | |
3490 | hppa*64*-*-hpux*) | |
3491 | noconfigdirs="$noconfigdirs target-libffi" | |
3492 | ;; | |
3493 | hppa*-hp-hpux11*) | |
3494 | ;; | |
3495 | hppa*-*-hpux*) | |
3496 | noconfigdirs="$noconfigdirs target-libffi" | |
3497 | ;; | |
3498 | ia64*-*-*vms*) | |
3499 | noconfigdirs="$noconfigdirs target-libffi" | |
3500 | ;; | |
3501 | i[3456789]86-w64-mingw*) | |
3502 | noconfigdirs="$noconfigdirs target-libffi" | |
3503 | ;; | |
3504 | i[3456789]86-*-mingw*) | |
3505 | noconfigdirs="$noconfigdirs target-libffi" | |
3506 | ;; | |
3507 | x86_64-*-mingw*) | |
3508 | noconfigdirs="$noconfigdirs target-libffi" | |
3509 | ;; | |
3510 | mmix-*-*) | |
3511 | noconfigdirs="$noconfigdirs target-libffi" | |
3512 | ;; | |
3513 | powerpc-*-aix*) | |
38cf534f | 3514 | ;; |
3515 | rs6000-*-aix*) | |
38cf534f | 3516 | ;; |
3517 | ft32-*-*) | |
3518 | noconfigdirs="$noconfigdirs target-libffi" | |
3519 | ;; | |
3520 | *-*-lynxos*) | |
3521 | noconfigdirs="$noconfigdirs target-libffi" | |
3522 | ;; | |
3523 | esac | |
3524 | ||
3525 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3526 | # this in sync with contrib/config-list.mk. | |
3527 | case "${target}" in | |
475738b0 | 3528 | *-*-darwin* | *-*-cygwin* | *-*-mingw*) |
38cf534f | 3529 | unsupported_languages="$unsupported_languages go" |
3530 | ;; | |
3531 | esac | |
3532 | ||
a6999726 | 3533 | # Disable libgo for some systems where it is known to not work. |
3534 | # For testing, you can easily override this with --enable-libgo. | |
3535 | if test x$enable_libgo = x; then | |
3536 | case "${target}" in | |
3537 | *-*-darwin*) | |
3538 | # PR 46986 | |
3539 | noconfigdirs="$noconfigdirs target-libgo" | |
3540 | ;; | |
3541 | *-*-cygwin* | *-*-mingw*) | |
3542 | noconfigdirs="$noconfigdirs target-libgo" | |
3543 | ;; | |
a6999726 | 3544 | esac |
3545 | fi | |
3546 | ||
1c5767f1 | 3547 | # Default libgloss CPU subdirectory. |
3548 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3549 | |
e0942c78 | 3550 | case "${target}" in |
3551 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3552 | libgloss_dir=wince | |
3553 | ;; | |
e26fddfa | 3554 | aarch64*-*-* ) |
3555 | libgloss_dir=aarch64 | |
3556 | ;; | |
e0942c78 | 3557 | arm*-*-*) |
3558 | libgloss_dir=arm | |
3559 | ;; | |
3560 | cris-*-* | crisv32-*-*) | |
3561 | libgloss_dir=cris | |
3562 | ;; | |
3563 | hppa*-*-*) | |
3564 | libgloss_dir=pa | |
3565 | ;; | |
3566 | i[3456789]86-*-*) | |
3567 | libgloss_dir=i386 | |
3568 | ;; | |
3569 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3570 | libgloss_dir=m68hc11 | |
3571 | ;; | |
3572 | m68*-*-* | fido-*-*) | |
3573 | libgloss_dir=m68k | |
3574 | ;; | |
3575 | mips*-*-*) | |
3576 | libgloss_dir=mips | |
3577 | ;; | |
3578 | powerpc*-*-*) | |
3579 | libgloss_dir=rs6000 | |
3580 | ;; | |
48aa9227 | 3581 | pru-*-*) |
3582 | libgloss_dir=pru | |
3583 | ;; | |
e0942c78 | 3584 | sparc*-*-*) |
3585 | libgloss_dir=sparc | |
3586 | ;; | |
3587 | esac | |
3588 | ||
d556f192 | 3589 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3590 | case "${target}" in |
d556f192 | 3591 | alpha*-dec-osf*) |
3592 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3593 | ;; | |
3594 | i[3456789]86-*-linux*) | |
3595 | # This section makes it possible to build newlib natively on linux. | |
3596 | # If we are using a cross compiler then don't configure newlib. | |
3597 | if test x${is_cross_compiler} != xno ; then | |
3598 | noconfigdirs="$noconfigdirs target-newlib" | |
3599 | fi | |
3600 | noconfigdirs="$noconfigdirs target-libgloss" | |
3601 | # If we are not using a cross compiler, do configure newlib. | |
3602 | # Note however, that newlib will only be configured in this situation | |
3603 | # if the --with-newlib option has been given, because otherwise | |
3604 | # 'target-newlib' will appear in skipdirs. | |
3605 | ;; | |
3606 | i[3456789]86-*-rdos*) | |
3607 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3608 | ;; | |
3609 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3610 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3611 | ;; | |
3612 | sparc-*-sunos4*) | |
3613 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3614 | ;; | |
3615 | *-*-aix*) | |
3616 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3617 | ;; | |
3618 | *-*-beos*) | |
3619 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3620 | ;; | |
71ab34df | 3621 | *-*-chorusos) |
71559dce | 3622 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3623 | ;; |
d556f192 | 3624 | *-*-dragonfly*) |
3625 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3626 | ;; | |
3627 | *-*-freebsd*) | |
3628 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3629 | ;; | |
3630 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3631 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3632 | ;; | |
3633 | *-*-lynxos*) | |
3634 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3635 | ;; | |
3636 | *-*-mingw*) | |
3637 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3638 | ;; | |
3639 | *-*-netbsd*) | |
3640 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3641 | ;; | |
3642 | *-*-netware*) | |
3643 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3644 | ;; | |
3645 | *-*-tpf*) | |
3646 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3647 | ;; | |
3648 | *-*-uclinux*) | |
3649 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3650 | ;; | |
3651 | *-*-vxworks*) | |
3652 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3653 | ;; | |
3654 | esac | |
3655 | ||
3656 | case "${target}" in | |
3657 | *-*-chorusos) | |
3658 | ;; | |
38f4c967 | 3659 | aarch64-*-darwin*) |
3660 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3661 | noconfigdirs="$noconfigdirs sim target-rda" | |
3662 | ;; | |
d62c0949 | 3663 | amdgcn*-*-*) |
3664 | ;; | |
38f4c967 | 3665 | arm-*-darwin*) |
3666 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3667 | noconfigdirs="$noconfigdirs sim target-rda" | |
3668 | ;; | |
40c500e1 | 3669 | powerpc-*-darwin*) |
dba2c8ea | 3670 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3671 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3672 | ;; |
ea864ded | 3673 | i[3456789]86-*-darwin*) |
3674 | noconfigdirs="$noconfigdirs ld gprof" | |
3675 | noconfigdirs="$noconfigdirs sim target-rda" | |
3676 | ;; | |
3677 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3678 | noconfigdirs="$noconfigdirs ld gas gprof" |
3679 | noconfigdirs="$noconfigdirs sim target-rda" | |
3680 | ;; | |
fce068fd | 3681 | *-*-darwin*) |
3682 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3683 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3684 | ;; |
e3a1fe08 | 3685 | *-*-dragonfly*) |
e3a1fe08 | 3686 | ;; |
c01dd063 | 3687 | *-*-freebsd*) |
4ee9c684 | 3688 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3689 | && test -f /usr/local/include/gmp.h; then | |
3690 | with_gmp=/usr/local | |
3691 | fi | |
4ee9c684 | 3692 | ;; |
336577be | 3693 | *-*-kaos*) |
3694 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3695 | noconfigdirs="$noconfigdirs target-libgloss" |
3696 | ;; | |
71ab34df | 3697 | *-*-netbsd*) |
71ab34df | 3698 | ;; |
634f7a13 | 3699 | *-*-netware*) |
71ab34df | 3700 | ;; |
1d6aa005 | 3701 | *-*-phoenix*) |
3702 | noconfigdirs="$noconfigdirs target-libgloss" | |
3703 | ;; | |
71ab34df | 3704 | *-*-rtems*) |
f24be480 | 3705 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3706 | ;; |
9f88bc9d | 3707 | # The tpf target doesn't support gdb yet. |
3708 | *-*-tpf*) | |
d556f192 | 3709 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3710 | ;; |
688429c4 | 3711 | *-*-uclinux*) |
d556f192 | 3712 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3713 | ;; |
71ab34df | 3714 | *-*-vxworks*) |
71ab34df | 3715 | ;; |
3716 | alpha*-dec-osf*) | |
3717 | # ld works, but does not support shared libraries. | |
71ab34df | 3718 | # gas doesn't generate exception information. |
d556f192 | 3719 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3720 | ;; |
3721 | alpha*-*-*vms*) | |
f24be480 | 3722 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3723 | ;; |
71ab34df | 3724 | alpha*-*-*) |
3725 | # newlib is not 64 bit ready | |
f24be480 | 3726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3727 | ;; |
71ab34df | 3728 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3729 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3730 | ;; |
194b906d | 3731 | arc*-*-*) |
3732 | noconfigdirs="$noconfigdirs sim" | |
3733 | ;; | |
71ab34df | 3734 | arm-*-pe*) |
f24be480 | 3735 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3736 | ;; |
71ab34df | 3737 | arm-*-riscix*) |
71559dce | 3738 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3739 | ;; |
fd28e216 | 3740 | avr-*-*) |
3741 | if test x${with_avrlibc} != xno; then | |
3742 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3743 | fi | |
3744 | ;; | |
71ab34df | 3745 | c4x-*-* | tic4x-*-*) |
71559dce | 3746 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3747 | ;; |
71559dce | 3748 | tic54x-*-*) |
3749 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3750 | ;; |
71ab34df | 3751 | d10v-*-*) |
71559dce | 3752 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3753 | ;; |
3754 | d30v-*-*) | |
71559dce | 3755 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3756 | ;; |
3757 | fr30-*-elf*) | |
f24be480 | 3758 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3759 | ;; |
6406d366 | 3760 | ft32-*-*) |
3761 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3762 | ;; | |
ca2751b6 | 3763 | moxie-*-*) |
6406d366 | 3764 | noconfigdirs="$noconfigdirs" |
ca2751b6 | 3765 | ;; |
71ab34df | 3766 | h8300*-*-*) |
f24be480 | 3767 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3768 | ;; |
3769 | h8500-*-*) | |
71559dce | 3770 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3771 | ;; |
e8eddfdd | 3772 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3773 | ;; |
6406d366 | 3774 | hppa*64*-*-hpux*) |
3775 | noconfigdirs="$noconfigdirs gdb" | |
3776 | ;; | |
3777 | hppa*-*-hpux11*) | |
3778 | noconfigdirs="$noconfigdirs gdb ld" | |
3779 | ;; | |
6bd59761 | 3780 | hppa*64*-*-linux*) |
71ab34df | 3781 | ;; |
99684e84 | 3782 | hppa*-*-linux*) |
08261f02 | 3783 | ;; |
71ab34df | 3784 | hppa*-*-*elf* | \ |
71ab34df | 3785 | hppa*-*-lites* | \ |
3786 | hppa*-*-openbsd* | \ | |
3787 | hppa*64*-*-*) | |
71ab34df | 3788 | ;; |
1c5767f1 | 3789 | hppa*-*-pro*) |
1c5767f1 | 3790 | ;; |
71ab34df | 3791 | hppa*-*-*) |
f24be480 | 3792 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3793 | ;; |
4a9237fb | 3794 | i960-*-*) |
71559dce | 3795 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3796 | ;; |
71ab34df | 3797 | ia64*-*-elf*) |
3798 | # No gdb support yet. | |
6c9785b4 | 3799 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3800 | ;; |
3801 | ia64*-**-hpux*) | |
1aca86a6 | 3802 | # No ld support yet. |
6406d366 | 3803 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
71ab34df | 3804 | ;; |
8408ca00 | 3805 | ia64*-*-*vms*) |
3211401d | 3806 | # No ld support yet. |
3807 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
8408ca00 | 3808 | ;; |
ec2eb8fb | 3809 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3810 | ;; |
3811 | i[3456789]86-*-mingw*) | |
d6d689df | 3812 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3813 | ;; |
71ab34df | 3814 | *-*-cygwin*) |
3815 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3816 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3817 | # always build newlib if winsup directory is present. |
d6d689df | 3818 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3819 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3820 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3821 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3822 | fi |
b30fcfae | 3823 | ;; |
f74ea578 | 3824 | i[3456789]86-*-pe) |
17b3d2a8 | 3825 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3826 | ;; |
f74ea578 | 3827 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3828 | # The linker does not yet know about weak symbols in COFF, |
3829 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3830 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3831 | ;; |
f74ea578 | 3832 | i[3456789]86-*-sco*) |
71559dce | 3833 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3834 | ;; |
14f27bc6 | 3835 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3836 | noconfigdirs="$noconfigdirs target-libgloss" |
3837 | ;; | |
f74ea578 | 3838 | i[3456789]86-*-sysv4*) |
71559dce | 3839 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3840 | ;; |
f74ea578 | 3841 | i[3456789]86-*-beos*) |
d556f192 | 3842 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3843 | ;; |
ab0da556 | 3844 | i[3456789]86-*-rdos*) |
d556f192 | 3845 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3846 | ;; |
71ab34df | 3847 | mmix-*-*) |
f24be480 | 3848 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3849 | ;; |
957985d9 | 3850 | mt-*-*) |
f6fa11cb | 3851 | noconfigdirs="$noconfigdirs sim" |
3852 | ;; | |
b9bdd103 | 3853 | nfp-*-*) |
3854 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3855 | noconfigdirs="$noconfigdirs $target_libraries" | |
3856 | ;; | |
71ab34df | 3857 | powerpc-*-aix*) |
3858 | # copied from rs6000-*-* entry | |
d556f192 | 3859 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3860 | ;; |
6bd59761 | 3861 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3862 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3863 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3864 | # always build newlib. |
3865 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3866 | ;; | |
3867 | # This is temporary until we can link against shared libraries | |
3868 | powerpcle-*-solaris*) | |
71559dce | 3869 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3870 | ;; |
3871 | powerpc-*-beos*) | |
d556f192 | 3872 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3873 | ;; |
71ab34df | 3874 | rs6000-*-lynxos*) |
d556f192 | 3875 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3876 | ;; |
3877 | rs6000-*-aix*) | |
d556f192 | 3878 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3879 | ;; |
3880 | rs6000-*-*) | |
f24be480 | 3881 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3882 | ;; |
3883 | m68k-apollo-*) | |
71559dce | 3884 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3885 | ;; |
ba2b484f | 3886 | microblaze*) |
f24be480 | 3887 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3888 | ;; |
d781ea5c | 3889 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
68c9bc25 | 3890 | if test x$with_newlib = xyes; then |
3891 | noconfigdirs="$noconfigdirs gprof" | |
3892 | fi | |
68c9bc25 | 3893 | ;; |
71ab34df | 3894 | mips*-*-irix5*) |
71559dce | 3895 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3896 | ;; |
3897 | mips*-*-irix6*) | |
f24be480 | 3898 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3899 | ;; |
71ab34df | 3900 | mips*-*-bsd*) |
d6449910 | 3901 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
71ab34df | 3902 | ;; |
71ab34df | 3903 | mips*-*-linux*) |
71ab34df | 3904 | ;; |
d6449910 | 3905 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3906 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3907 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3908 | ;; | |
71ab34df | 3909 | mips*-*-*) |
f24be480 | 3910 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3911 | ;; |
8ce80784 | 3912 | nvptx*-*-*) |
8ce80784 | 3913 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3914 | ;; | |
9a9b5abf | 3915 | sh-*-*) |
39f6b116 | 3916 | case "${target}" in |
3917 | sh*-*-elf) | |
f24be480 | 3918 | ;; |
39f6b116 | 3919 | *) |
f24be480 | 3920 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3921 | esac |
71ab34df | 3922 | ;; |
71ab34df | 3923 | sparc-*-sunos4*) |
d556f192 | 3924 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3925 | use_gnu_ld=no |
3926 | fi | |
3927 | ;; | |
fa0a53e3 | 3928 | tic6x-*-*) |
ccdfa490 | 3929 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3930 | ;; |
2da35515 | 3931 | tilepro*-*-* | tilegx*-*-*) |
e5fa74b2 | 3932 | noconfigdirs="$noconfigdirs sim" |
3933 | ;; | |
71ab34df | 3934 | v810-*-*) |
71559dce | 3935 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3936 | ;; |
3937 | vax-*-*) | |
f24be480 | 3938 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3939 | ;; |
c2762a30 | 3940 | wasm32-*-*) |
3941 | noconfigdirs="$noconfigdirs ld" | |
3942 | ;; | |
71ab34df | 3943 | esac |
a8298541 | 3944 | |
71ab34df | 3945 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3946 | # depends upon some newlib header files. | |
3947 | case "${noconfigdirs}" in | |
3948 | *target-libgloss*) ;; | |
3949 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3950 | esac | |
3951 | ||
71ab34df | 3952 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3953 | host_makefile_frag=/dev/null |
3954 | if test -d ${srcdir}/config ; then | |
3955 | case "${host}" in | |
f74ea578 | 3956 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3957 | host_makefile_frag="config/mh-djgpp" |
3958 | ;; | |
3959 | *-cygwin*) | |
45043b2b | 3960 | |
cd9a469c | 3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3962 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3963 | echo a >cygwin-cat-check |
82d97a59 | 3964 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3965 | rm cygwin-cat-check |
cd9a469c | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3967 | $as_echo "yes" >&6; } | |
45043b2b | 3968 | else |
3969 | rm cygwin-cat-check | |
cd9a469c | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3971 | $as_echo "no" >&6; } | |
f00f02a3 | 3972 | as_fn_error $? "The cat command does not ignore carriage return characters. |
45043b2b | 3973 | Please either mount the build directory in binary mode or run the following |
3974 | commands before running any configure script: | |
3975 | set -o igncr | |
3976 | export SHELLOPTS | |
cd9a469c | 3977 | " "$LINENO" 5 |
45043b2b | 3978 | fi |
3979 | ||
71ab34df | 3980 | host_makefile_frag="config/mh-cygwin" |
3981 | ;; | |
5a92bcc2 | 3982 | *-mingw*) |
70d8e49e | 3983 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 3984 | ;; |
bed3355c | 3985 | alpha*-linux*) |
539ded76 | 3986 | host_makefile_frag="config/mh-alpha-linux" |
3987 | ;; | |
d2b94e36 | 3988 | hppa*-hp-hpux10*) |
d2b94e36 | 3989 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 3990 | ;; |
b2240ff6 | 3991 | hppa*-hp-hpux*) |
d2b94e36 | 3992 | host_makefile_frag="config/mh-pa" |
3993 | ;; | |
3994 | hppa*-*) | |
3995 | host_makefile_frag="config/mh-pa" | |
3996 | ;; | |
16463c8d | 3997 | *-*-darwin*) |
3998 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 3999 | ;; |
9d44a802 | 4000 | powerpc-*-aix*) |
4001 | host_makefile_frag="config/mh-ppc-aix" | |
4002 | ;; | |
4003 | rs6000-*-aix*) | |
4004 | host_makefile_frag="config/mh-ppc-aix" | |
4005 | ;; | |
71ab34df | 4006 | esac |
4007 | fi | |
4008 | ||
8e1fea1a | 4009 | if test "${build}" != "${host}" ; then |
93c5e793 | 4010 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4011 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 4012 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 4013 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
93c5e793 | 4014 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
5ff5b630 | 4015 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
03385ed3 | 4016 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
93c5e793 | 4017 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4018 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4019 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4020 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4021 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4022 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4023 | else | |
4024 | AR_FOR_BUILD="\$(AR)" | |
4025 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 4026 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 4027 | CXX_FOR_BUILD="\$(CXX)" |
93c5e793 | 4028 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
5ff5b630 | 4029 | GOC_FOR_BUILD="\$(GOC)" |
03385ed3 | 4030 | GDC_FOR_BUILD="\$(GDC)" |
93c5e793 | 4031 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4032 | LD_FOR_BUILD="\$(LD)" | |
4033 | NM_FOR_BUILD="\$(NM)" | |
4034 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4035 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4036 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 4037 | fi |
4038 | ||
4039 | ac_ext=c | |
b30fcfae | 4040 | ac_cpp='$CPP $CPPFLAGS' |
4041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4044 | if test -n "$ac_tool_prefix"; then | |
4045 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4046 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4048 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4049 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4050 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4051 | else |
4052 | if test -n "$CC"; then | |
4053 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4054 | else | |
4055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4056 | for as_dir in $PATH | |
4057 | do | |
4058 | IFS=$as_save_IFS | |
4059 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4060 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4062 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 4063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4064 | break 2 |
4065 | fi | |
4066 | done | |
cd9a469c | 4067 | done |
4068 | IFS=$as_save_IFS | |
b30fcfae | 4069 | |
4070 | fi | |
4071 | fi | |
4072 | CC=$ac_cv_prog_CC | |
4073 | if test -n "$CC"; then | |
cd9a469c | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4075 | $as_echo "$CC" >&6; } | |
b30fcfae | 4076 | else |
cd9a469c | 4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4078 | $as_echo "no" >&6; } | |
b30fcfae | 4079 | fi |
4080 | ||
cd9a469c | 4081 | |
b30fcfae | 4082 | fi |
4083 | if test -z "$ac_cv_prog_CC"; then | |
4084 | ac_ct_CC=$CC | |
a4af6a58 | 4085 | # Extract the first word of "gcc", so it can be a program name with args. |
4086 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4088 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4089 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 4090 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4091 | else |
4092 | if test -n "$ac_ct_CC"; then | |
4093 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4094 | else | |
4095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4096 | for as_dir in $PATH | |
4097 | do | |
4098 | IFS=$as_save_IFS | |
4099 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4100 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4102 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4104 | break 2 |
4105 | fi | |
4106 | done | |
cd9a469c | 4107 | done |
4108 | IFS=$as_save_IFS | |
b30fcfae | 4109 | |
4110 | fi | |
4111 | fi | |
4112 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4113 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4115 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 4116 | else |
cd9a469c | 4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4118 | $as_echo "no" >&6; } | |
b30fcfae | 4119 | fi |
4120 | ||
cd9a469c | 4121 | if test "x$ac_ct_CC" = x; then |
4122 | CC="" | |
4123 | else | |
4124 | case $cross_compiling:$ac_tool_warned in | |
4125 | yes:) | |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4127 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4128 | ac_tool_warned=yes ;; | |
4129 | esac | |
4130 | CC=$ac_ct_CC | |
4131 | fi | |
b30fcfae | 4132 | else |
4133 | CC="$ac_cv_prog_CC" | |
4134 | fi | |
4135 | ||
4136 | if test -z "$CC"; then | |
cd9a469c | 4137 | if test -n "$ac_tool_prefix"; then |
4138 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 4139 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4141 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4142 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4143 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 4144 | else |
4145 | if test -n "$CC"; then | |
4146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4147 | else | |
b30fcfae | 4148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4149 | for as_dir in $PATH | |
4150 | do | |
4151 | IFS=$as_save_IFS | |
4152 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4153 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4155 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 4156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4157 | break 2 |
4158 | fi | |
4159 | done | |
cd9a469c | 4160 | done |
4161 | IFS=$as_save_IFS | |
b30fcfae | 4162 | |
a83ffacf | 4163 | fi |
a83ffacf | 4164 | fi |
b30fcfae | 4165 | CC=$ac_cv_prog_CC |
ae48753c | 4166 | if test -n "$CC"; then |
cd9a469c | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4168 | $as_echo "$CC" >&6; } | |
5084f823 | 4169 | else |
cd9a469c | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4171 | $as_echo "no" >&6; } | |
5084f823 | 4172 | fi |
4173 | ||
5084f823 | 4174 | |
cd9a469c | 4175 | fi |
b30fcfae | 4176 | fi |
8e1fea1a | 4177 | if test -z "$CC"; then |
4178 | # Extract the first word of "cc", so it can be a program name with args. | |
4179 | set dummy cc; ac_word=$2 | |
cd9a469c | 4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4181 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4182 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4183 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 4184 | else |
4185 | if test -n "$CC"; then | |
4186 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4187 | else | |
a83ffacf | 4188 | ac_prog_rejected=no |
b30fcfae | 4189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4190 | for as_dir in $PATH | |
4191 | do | |
4192 | IFS=$as_save_IFS | |
4193 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4194 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4196 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4197 | ac_prog_rejected=yes | |
4198 | continue | |
4199 | fi | |
4200 | ac_cv_prog_CC="cc" | |
cd9a469c | 4201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4202 | break 2 |
4203 | fi | |
4204 | done | |
cd9a469c | 4205 | done |
4206 | IFS=$as_save_IFS | |
b30fcfae | 4207 | |
8e1fea1a | 4208 | if test $ac_prog_rejected = yes; then |
4209 | # We found a bogon in the path, so make sure we never use it. | |
4210 | set dummy $ac_cv_prog_CC | |
4211 | shift | |
b30fcfae | 4212 | if test $# != 0; then |
8e1fea1a | 4213 | # We chose a different compiler from the bogus one. |
4214 | # However, it has the same basename, so the bogon will be chosen | |
4215 | # first if we set CC to just the basename; use the full file name. | |
4216 | shift | |
b30fcfae | 4217 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 4218 | fi |
4219 | fi | |
4220 | fi | |
4221 | fi | |
b30fcfae | 4222 | CC=$ac_cv_prog_CC |
8e1fea1a | 4223 | if test -n "$CC"; then |
cd9a469c | 4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4225 | $as_echo "$CC" >&6; } | |
8e1fea1a | 4226 | else |
cd9a469c | 4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4228 | $as_echo "no" >&6; } | |
8e1fea1a | 4229 | fi |
4230 | ||
cd9a469c | 4231 | |
b30fcfae | 4232 | fi |
4233 | if test -z "$CC"; then | |
4234 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 4235 | for ac_prog in cl.exe |
b30fcfae | 4236 | do |
4237 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4238 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4240 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4241 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 4242 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 4243 | else |
4244 | if test -n "$CC"; then | |
4245 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4246 | else | |
b30fcfae | 4247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4248 | for as_dir in $PATH | |
4249 | do | |
4250 | IFS=$as_save_IFS | |
4251 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4252 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4254 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 4255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4256 | break 2 |
4257 | fi | |
4258 | done | |
cd9a469c | 4259 | done |
4260 | IFS=$as_save_IFS | |
b30fcfae | 4261 | |
8e1fea1a | 4262 | fi |
4263 | fi | |
b30fcfae | 4264 | CC=$ac_cv_prog_CC |
8e1fea1a | 4265 | if test -n "$CC"; then |
cd9a469c | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4267 | $as_echo "$CC" >&6; } | |
b1660f25 | 4268 | else |
cd9a469c | 4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4270 | $as_echo "no" >&6; } | |
a4af6a58 | 4271 | fi |
ae48753c | 4272 | |
cd9a469c | 4273 | |
b30fcfae | 4274 | test -n "$CC" && break |
4275 | done | |
ae48753c | 4276 | fi |
b30fcfae | 4277 | if test -z "$CC"; then |
4278 | ac_ct_CC=$CC | |
cd9a469c | 4279 | for ac_prog in cl.exe |
b30fcfae | 4280 | do |
4281 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4282 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4284 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4285 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 4286 | $as_echo_n "(cached) " >&6 |
a83ffacf | 4287 | else |
b30fcfae | 4288 | if test -n "$ac_ct_CC"; then |
4289 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 4290 | else |
b30fcfae | 4291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4292 | for as_dir in $PATH | |
4293 | do | |
4294 | IFS=$as_save_IFS | |
4295 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4296 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 4298 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 4299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4300 | break 2 |
4301 | fi | |
4302 | done | |
cd9a469c | 4303 | done |
4304 | IFS=$as_save_IFS | |
b30fcfae | 4305 | |
ae48753c | 4306 | fi |
4307 | fi | |
b30fcfae | 4308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4309 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4311 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 4312 | else |
cd9a469c | 4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4314 | $as_echo "no" >&6; } | |
ae48753c | 4315 | fi |
a83ffacf | 4316 | |
cd9a469c | 4317 | |
b30fcfae | 4318 | test -n "$ac_ct_CC" && break |
4319 | done | |
4320 | ||
cd9a469c | 4321 | if test "x$ac_ct_CC" = x; then |
4322 | CC="" | |
4323 | else | |
4324 | case $cross_compiling:$ac_tool_warned in | |
4325 | yes:) | |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4327 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4328 | ac_tool_warned=yes ;; | |
4329 | esac | |
4330 | CC=$ac_ct_CC | |
4331 | fi | |
b30fcfae | 4332 | fi |
4333 | ||
4334 | fi | |
4335 | ||
4336 | ||
cd9a469c | 4337 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4338 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4339 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4340 | See \`config.log' for more details" "$LINENO" 5; } | |
b30fcfae | 4341 | |
4342 | # Provide some information about the compiler. | |
cd9a469c | 4343 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4344 | set X $ac_compile | |
4345 | ac_compiler=$2 | |
4346 | for ac_option in --version -v -V -qversion; do | |
4347 | { { ac_try="$ac_compiler $ac_option >&5" | |
4348 | case "(($ac_try" in | |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
4352 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4353 | $as_echo "$ac_try_echo"; } >&5 | |
4354 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4355 | ac_status=$? |
cd9a469c | 4356 | if test -s conftest.err; then |
4357 | sed '10a\ | |
4358 | ... rest of stderr output deleted ... | |
4359 | 10q' conftest.err >conftest.er1 | |
4360 | cat conftest.er1 >&5 | |
cd9a469c | 4361 | fi |
f00f02a3 | 4362 | rm -f conftest.er1 conftest.err |
cd9a469c | 4363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4364 | test $ac_status = 0; } | |
4365 | done | |
b30fcfae | 4366 | |
cd9a469c | 4367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4368 | /* end confdefs.h. */ |
4369 | ||
4370 | int | |
4371 | main () | |
4372 | { | |
4373 | ||
4374 | ; | |
4375 | return 0; | |
4376 | } | |
4377 | _ACEOF | |
4378 | ac_clean_files_save=$ac_clean_files | |
f00f02a3 | 4379 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b30fcfae | 4380 | # Try to create an executable without -o first, disregard a.out. |
4381 | # It will help us diagnose broken compilers, and finding out an intuition | |
4382 | # of exeext. | |
f00f02a3 | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4384 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
cd9a469c | 4385 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4386 | ||
4387 | # The possible output files: | |
4388 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4389 | ||
4390 | ac_rmfiles= | |
4391 | for ac_file in $ac_files | |
4392 | do | |
4393 | case $ac_file in | |
4394 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4395 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4396 | esac | |
4397 | done | |
4398 | rm -f $ac_rmfiles | |
4399 | ||
4400 | if { { ac_try="$ac_link_default" | |
4401 | case "(($ac_try" in | |
4402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4403 | *) ac_try_echo=$ac_try;; | |
4404 | esac | |
4405 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4406 | $as_echo "$ac_try_echo"; } >&5 | |
4407 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4408 | ac_status=$? |
cd9a469c | 4409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4410 | test $ac_status = 0; }; then : | |
4411 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4412 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4413 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4414 | # so that the user can short-circuit this test for compilers unknown to | |
4415 | # Autoconf. | |
4416 | for ac_file in $ac_files '' | |
b30fcfae | 4417 | do |
4418 | test -f "$ac_file" || continue | |
4419 | case $ac_file in | |
cd9a469c | 4420 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4421 | ;; |
4422 | [ab].out ) | |
4423 | # We found the default executable, but exeext='' is most | |
4424 | # certainly right. | |
4425 | break;; | |
4426 | *.* ) | |
cd9a469c | 4427 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4428 | then :; else | |
4429 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4430 | fi | |
4431 | # We set ac_cv_exeext here because the later test for it is not | |
4432 | # safe: cross compilers may not add the suffix if given an `-o' | |
4433 | # argument, so we may need to know it at that point already. | |
4434 | # Even if this section looks crufty: it has the advantage of | |
4435 | # actually working. | |
b30fcfae | 4436 | break;; |
4437 | * ) | |
4438 | break;; | |
4439 | esac | |
4440 | done | |
cd9a469c | 4441 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4442 | ||
b30fcfae | 4443 | else |
cd9a469c | 4444 | ac_file='' |
4445 | fi | |
cd9a469c | 4446 | if test -z "$ac_file"; then : |
f00f02a3 | 4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4448 | $as_echo "no" >&6; } | |
4449 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4450 | sed 's/^/| /' conftest.$ac_ext >&5 |
4451 | ||
cd9a469c | 4452 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4453 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4454 | as_fn_error 77 "C compiler cannot create executables |
4455 | See \`config.log' for more details" "$LINENO" 5; } | |
4456 | else | |
4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4458 | $as_echo "yes" >&6; } | |
b30fcfae | 4459 | fi |
f00f02a3 | 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4461 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4463 | $as_echo "$ac_file" >&6; } | |
b30fcfae | 4464 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4465 | |
f00f02a3 | 4466 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b30fcfae | 4467 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4469 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4470 | if { { ac_try="$ac_link" | |
4471 | case "(($ac_try" in | |
4472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4473 | *) ac_try_echo=$ac_try;; | |
4474 | esac | |
4475 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4476 | $as_echo "$ac_try_echo"; } >&5 | |
4477 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4478 | ac_status=$? |
cd9a469c | 4479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4480 | test $ac_status = 0; }; then : | |
b30fcfae | 4481 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4482 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4483 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4484 | # `rm'. | |
4485 | for ac_file in conftest.exe conftest conftest.*; do | |
4486 | test -f "$ac_file" || continue | |
4487 | case $ac_file in | |
cd9a469c | 4488 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4489 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4490 | break;; |
4491 | * ) break;; | |
4492 | esac | |
4493 | done | |
ae48753c | 4494 | else |
cd9a469c | 4495 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4496 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4497 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4498 | See \`config.log' for more details" "$LINENO" 5; } | |
b30fcfae | 4499 | fi |
f00f02a3 | 4500 | rm -f conftest conftest$ac_cv_exeext |
cd9a469c | 4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4502 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4503 | |
4504 | rm -f conftest.$ac_ext | |
4505 | EXEEXT=$ac_cv_exeext | |
4506 | ac_exeext=$EXEEXT | |
f00f02a3 | 4507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4508 | /* end confdefs.h. */ | |
4509 | #include <stdio.h> | |
4510 | int | |
4511 | main () | |
4512 | { | |
4513 | FILE *f = fopen ("conftest.out", "w"); | |
4514 | return ferror (f) || fclose (f) != 0; | |
4515 | ||
4516 | ; | |
4517 | return 0; | |
4518 | } | |
4519 | _ACEOF | |
4520 | ac_clean_files="$ac_clean_files conftest.out" | |
4521 | # Check that the compiler produces executables we can run. If not, either | |
4522 | # the compiler is broken, or we cross compile. | |
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4524 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4525 | if test "$cross_compiling" != yes; then | |
4526 | { { ac_try="$ac_link" | |
4527 | case "(($ac_try" in | |
4528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4529 | *) ac_try_echo=$ac_try;; | |
4530 | esac | |
4531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4532 | $as_echo "$ac_try_echo"; } >&5 | |
4533 | (eval "$ac_link") 2>&5 | |
4534 | ac_status=$? | |
4535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4536 | test $ac_status = 0; } | |
4537 | if { ac_try='./conftest$ac_cv_exeext' | |
4538 | { { case "(($ac_try" in | |
4539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4540 | *) ac_try_echo=$ac_try;; | |
4541 | esac | |
4542 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4543 | $as_echo "$ac_try_echo"; } >&5 | |
4544 | (eval "$ac_try") 2>&5 | |
4545 | ac_status=$? | |
4546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4547 | test $ac_status = 0; }; }; then | |
4548 | cross_compiling=no | |
4549 | else | |
4550 | if test "$cross_compiling" = maybe; then | |
4551 | cross_compiling=yes | |
4552 | else | |
4553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4555 | as_fn_error $? "cannot run C compiled programs. | |
4556 | If you meant to cross compile, use \`--host'. | |
4557 | See \`config.log' for more details" "$LINENO" 5; } | |
4558 | fi | |
4559 | fi | |
4560 | fi | |
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4562 | $as_echo "$cross_compiling" >&6; } | |
4563 | ||
4564 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4565 | ac_clean_files=$ac_clean_files_save | |
cd9a469c | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4567 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f00f02a3 | 4568 | if ${ac_cv_objext+:} false; then : |
cd9a469c | 4569 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4570 | else |
cd9a469c | 4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4572 | /* end confdefs.h. */ |
4573 | ||
4574 | int | |
4575 | main () | |
4576 | { | |
4577 | ||
4578 | ; | |
4579 | return 0; | |
4580 | } | |
4581 | _ACEOF | |
4582 | rm -f conftest.o conftest.obj | |
cd9a469c | 4583 | if { { ac_try="$ac_compile" |
4584 | case "(($ac_try" in | |
4585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4586 | *) ac_try_echo=$ac_try;; | |
4587 | esac | |
4588 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4589 | $as_echo "$ac_try_echo"; } >&5 | |
4590 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4591 | ac_status=$? |
cd9a469c | 4592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4593 | test $ac_status = 0; }; then : | |
4594 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4595 | test -f "$ac_file" || continue; | |
b30fcfae | 4596 | case $ac_file in |
cd9a469c | 4597 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4598 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4599 | break;; | |
4600 | esac | |
4601 | done | |
4602 | else | |
cd9a469c | 4603 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4604 | sed 's/^/| /' conftest.$ac_ext >&5 |
4605 | ||
cd9a469c | 4606 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4608 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4609 | See \`config.log' for more details" "$LINENO" 5; } | |
b30fcfae | 4610 | fi |
b30fcfae | 4611 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4612 | fi | |
cd9a469c | 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4614 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4615 | OBJEXT=$ac_cv_objext |
4616 | ac_objext=$OBJEXT | |
cd9a469c | 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4618 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 4619 | if ${ac_cv_c_compiler_gnu+:} false; then : |
cd9a469c | 4620 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4621 | else |
cd9a469c | 4622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4623 | /* end confdefs.h. */ |
4624 | ||
4625 | int | |
4626 | main () | |
4627 | { | |
4628 | #ifndef __GNUC__ | |
4629 | choke me | |
4630 | #endif | |
4631 | ||
4632 | ; | |
4633 | return 0; | |
4634 | } | |
4635 | _ACEOF | |
cd9a469c | 4636 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4637 | ac_compiler_gnu=yes |
4638 | else | |
cd9a469c | 4639 | ac_compiler_gnu=no |
b30fcfae | 4640 | fi |
cd9a469c | 4641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4642 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4643 | ||
4644 | fi | |
cd9a469c | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4646 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4647 | if test $ac_compiler_gnu = yes; then | |
4648 | GCC=yes | |
4649 | else | |
4650 | GCC= | |
4651 | fi | |
b30fcfae | 4652 | ac_test_CFLAGS=${CFLAGS+set} |
4653 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4655 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 4656 | if ${ac_cv_prog_cc_g+:} false; then : |
cd9a469c | 4657 | $as_echo_n "(cached) " >&6 |
4658 | else | |
4659 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4660 | ac_c_werror_flag=yes | |
4661 | ac_cv_prog_cc_g=no | |
4662 | CFLAGS="-g" | |
4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4664 | /* end confdefs.h. */ |
4665 | ||
4666 | int | |
4667 | main () | |
4668 | { | |
4669 | ||
4670 | ; | |
4671 | return 0; | |
4672 | } | |
4673 | _ACEOF | |
cd9a469c | 4674 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4675 | ac_cv_prog_cc_g=yes |
4676 | else | |
cd9a469c | 4677 | CFLAGS="" |
4678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4679 | /* end confdefs.h. */ | |
4680 | ||
4681 | int | |
4682 | main () | |
4683 | { | |
4684 | ||
4685 | ; | |
4686 | return 0; | |
4687 | } | |
4688 | _ACEOF | |
4689 | if ac_fn_c_try_compile "$LINENO"; then : | |
4690 | ||
4691 | else | |
4692 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4693 | CFLAGS="-g" | |
4694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4695 | /* end confdefs.h. */ | |
ae48753c | 4696 | |
cd9a469c | 4697 | int |
4698 | main () | |
4699 | { | |
4700 | ||
4701 | ; | |
4702 | return 0; | |
4703 | } | |
4704 | _ACEOF | |
4705 | if ac_fn_c_try_compile "$LINENO"; then : | |
4706 | ac_cv_prog_cc_g=yes | |
4707 | fi | |
4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4709 | fi |
cd9a469c | 4710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4711 | fi |
cd9a469c | 4712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4713 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4714 | fi | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4716 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4717 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4718 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4719 | elif test $ac_cv_prog_cc_g = yes; then |
4720 | if test "$GCC" = yes; then | |
4721 | CFLAGS="-g -O2" | |
4722 | else | |
4723 | CFLAGS="-g" | |
4724 | fi | |
4725 | else | |
4726 | if test "$GCC" = yes; then | |
4727 | CFLAGS="-O2" | |
4728 | else | |
4729 | CFLAGS= | |
4730 | fi | |
4731 | fi | |
cd9a469c | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4733 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 4734 | if ${ac_cv_prog_cc_c89+:} false; then : |
cd9a469c | 4735 | $as_echo_n "(cached) " >&6 |
b30fcfae | 4736 | else |
cd9a469c | 4737 | ac_cv_prog_cc_c89=no |
b30fcfae | 4738 | ac_save_CC=$CC |
cd9a469c | 4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4740 | /* end confdefs.h. */ |
4741 | #include <stdarg.h> | |
4742 | #include <stdio.h> | |
f00f02a3 | 4743 | struct stat; |
b30fcfae | 4744 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4745 | struct buf { int x; }; | |
4746 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4747 | static char *e (p, i) | |
4748 | char **p; | |
4749 | int i; | |
4750 | { | |
4751 | return p[i]; | |
4752 | } | |
4753 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4754 | { | |
4755 | char *s; | |
4756 | va_list v; | |
4757 | va_start (v,p); | |
4758 | s = g (p, va_arg (v,int)); | |
4759 | va_end (v); | |
4760 | return s; | |
4761 | } | |
4762 | ||
4763 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4764 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4765 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4766 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4767 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4768 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4769 | that's true only with -std. */ |
b30fcfae | 4770 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4771 | ||
cd9a469c | 4772 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4773 | inside strings and character constants. */ | |
4774 | #define FOO(x) 'x' | |
4775 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4776 | ||
b30fcfae | 4777 | int test (int i, double x); |
4778 | struct s1 {int (*f) (int a);}; | |
4779 | struct s2 {int (*f) (double a);}; | |
4780 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4781 | int argc; | |
4782 | char **argv; | |
4783 | int | |
4784 | main () | |
4785 | { | |
4786 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4787 | ; | |
4788 | return 0; | |
4789 | } | |
4790 | _ACEOF | |
cd9a469c | 4791 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4792 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4793 | do |
4794 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4795 | if ac_fn_c_try_compile "$LINENO"; then : |
4796 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4797 | fi |
cd9a469c | 4798 | rm -f core conftest.err conftest.$ac_objext |
4799 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4800 | done |
cd9a469c | 4801 | rm -f conftest.$ac_ext |
b30fcfae | 4802 | CC=$ac_save_CC |
4803 | ||
4804 | fi | |
cd9a469c | 4805 | # AC_CACHE_VAL |
4806 | case "x$ac_cv_prog_cc_c89" in | |
4807 | x) | |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4809 | $as_echo "none needed" >&6; } ;; | |
4810 | xno) | |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4812 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4813 | *) |
cd9a469c | 4814 | CC="$CC $ac_cv_prog_cc_c89" |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4816 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4817 | esac |
cd9a469c | 4818 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4819 | |
5084f823 | 4820 | fi |
4821 | ||
5084f823 | 4822 | ac_ext=c |
4823 | ac_cpp='$CPP $CPPFLAGS' | |
4824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4827 | ||
cd9a469c | 4828 | ac_ext=cpp |
5084f823 | 4829 | ac_cpp='$CXXCPP $CPPFLAGS' |
4830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4833 | if test -z "$CXX"; then |
4834 | if test -n "$CCC"; then | |
4835 | CXX=$CCC | |
4836 | else | |
4837 | if test -n "$ac_tool_prefix"; then | |
4838 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4839 | do |
4840 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4841 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4843 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4844 | if ${ac_cv_prog_CXX+:} false; then : |
cd9a469c | 4845 | $as_echo_n "(cached) " >&6 |
5084f823 | 4846 | else |
4847 | if test -n "$CXX"; then | |
4848 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4849 | else | |
4850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4851 | for as_dir in $PATH | |
4852 | do | |
4853 | IFS=$as_save_IFS | |
4854 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4855 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5084f823 | 4857 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4859 | break 2 |
4860 | fi | |
4861 | done | |
cd9a469c | 4862 | done |
4863 | IFS=$as_save_IFS | |
8e1fea1a | 4864 | |
eae5b2bc | 4865 | fi |
4866 | fi | |
4867 | CXX=$ac_cv_prog_CXX | |
4868 | if test -n "$CXX"; then | |
cd9a469c | 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4870 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4871 | else |
cd9a469c | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4873 | $as_echo "no" >&6; } | |
eae5b2bc | 4874 | fi |
4875 | ||
cd9a469c | 4876 | |
eae5b2bc | 4877 | test -n "$CXX" && break |
4878 | done | |
4879 | fi | |
4880 | if test -z "$CXX"; then | |
4881 | ac_ct_CXX=$CXX | |
cd9a469c | 4882 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4883 | do |
4884 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4885 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4887 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 4888 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
cd9a469c | 4889 | $as_echo_n "(cached) " >&6 |
eae5b2bc | 4890 | else |
4891 | if test -n "$ac_ct_CXX"; then | |
4892 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4893 | else | |
4894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4895 | for as_dir in $PATH | |
4896 | do | |
4897 | IFS=$as_save_IFS | |
4898 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4899 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 4900 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eae5b2bc | 4901 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4903 | break 2 |
4904 | fi | |
4905 | done | |
cd9a469c | 4906 | done |
4907 | IFS=$as_save_IFS | |
eae5b2bc | 4908 | |
4909 | fi | |
4910 | fi | |
4911 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4912 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4914 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4915 | else |
cd9a469c | 4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4917 | $as_echo "no" >&6; } | |
eae5b2bc | 4918 | fi |
4919 | ||
cd9a469c | 4920 | |
eae5b2bc | 4921 | test -n "$ac_ct_CXX" && break |
4922 | done | |
eae5b2bc | 4923 | |
cd9a469c | 4924 | if test "x$ac_ct_CXX" = x; then |
4925 | CXX="g++" | |
4926 | else | |
4927 | case $cross_compiling:$ac_tool_warned in | |
4928 | yes:) | |
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4930 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4931 | ac_tool_warned=yes ;; | |
4932 | esac | |
4933 | CXX=$ac_ct_CXX | |
4934 | fi | |
eae5b2bc | 4935 | fi |
4936 | ||
cd9a469c | 4937 | fi |
4938 | fi | |
eae5b2bc | 4939 | # Provide some information about the compiler. |
cd9a469c | 4940 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4941 | set X $ac_compile | |
4942 | ac_compiler=$2 | |
4943 | for ac_option in --version -v -V -qversion; do | |
4944 | { { ac_try="$ac_compiler $ac_option >&5" | |
4945 | case "(($ac_try" in | |
4946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4947 | *) ac_try_echo=$ac_try;; | |
4948 | esac | |
4949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4950 | $as_echo "$ac_try_echo"; } >&5 | |
4951 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4952 | ac_status=$? |
cd9a469c | 4953 | if test -s conftest.err; then |
4954 | sed '10a\ | |
4955 | ... rest of stderr output deleted ... | |
4956 | 10q' conftest.err >conftest.er1 | |
4957 | cat conftest.er1 >&5 | |
cd9a469c | 4958 | fi |
f00f02a3 | 4959 | rm -f conftest.er1 conftest.err |
cd9a469c | 4960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4961 | test $ac_status = 0; } | |
4962 | done | |
eae5b2bc | 4963 | |
cd9a469c | 4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4965 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
f00f02a3 | 4966 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
cd9a469c | 4967 | $as_echo_n "(cached) " >&6 |
eae5b2bc | 4968 | else |
cd9a469c | 4969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4970 | /* end confdefs.h. */ |
4971 | ||
4972 | int | |
4973 | main () | |
4974 | { | |
4975 | #ifndef __GNUC__ | |
4976 | choke me | |
4977 | #endif | |
4978 | ||
4979 | ; | |
4980 | return 0; | |
4981 | } | |
4982 | _ACEOF | |
cd9a469c | 4983 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4984 | ac_compiler_gnu=yes |
4985 | else | |
cd9a469c | 4986 | ac_compiler_gnu=no |
eae5b2bc | 4987 | fi |
cd9a469c | 4988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4989 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4990 | ||
4991 | fi | |
cd9a469c | 4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4993 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4994 | if test $ac_compiler_gnu = yes; then | |
4995 | GXX=yes | |
4996 | else | |
4997 | GXX= | |
4998 | fi | |
eae5b2bc | 4999 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5000 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5002 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
f00f02a3 | 5003 | if ${ac_cv_prog_cxx_g+:} false; then : |
cd9a469c | 5004 | $as_echo_n "(cached) " >&6 |
5005 | else | |
5006 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5007 | ac_cxx_werror_flag=yes | |
5008 | ac_cv_prog_cxx_g=no | |
5009 | CXXFLAGS="-g" | |
5010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5011 | /* end confdefs.h. */ |
5012 | ||
5013 | int | |
5014 | main () | |
5015 | { | |
5016 | ||
5017 | ; | |
5018 | return 0; | |
5019 | } | |
5020 | _ACEOF | |
cd9a469c | 5021 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 5022 | ac_cv_prog_cxx_g=yes |
5023 | else | |
cd9a469c | 5024 | CXXFLAGS="" |
5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5026 | /* end confdefs.h. */ |
cd9a469c | 5027 | |
eae5b2bc | 5028 | int |
5029 | main () | |
5030 | { | |
cd9a469c | 5031 | |
eae5b2bc | 5032 | ; |
5033 | return 0; | |
5034 | } | |
5035 | _ACEOF | |
cd9a469c | 5036 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 5037 | |
cd9a469c | 5038 | else |
5039 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5040 | CXXFLAGS="-g" | |
5041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 5042 | /* end confdefs.h. */ |
cd9a469c | 5043 | |
eae5b2bc | 5044 | int |
5045 | main () | |
5046 | { | |
cd9a469c | 5047 | |
eae5b2bc | 5048 | ; |
5049 | return 0; | |
5050 | } | |
5051 | _ACEOF | |
cd9a469c | 5052 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5053 | ac_cv_prog_cxx_g=yes | |
570af75a | 5054 | fi |
cd9a469c | 5055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5056 | fi | |
5057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5058 | fi | |
5059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5060 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5061 | fi | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5063 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5064 | if test "$ac_test_CXXFLAGS" = set; then | |
5065 | CXXFLAGS=$ac_save_CXXFLAGS | |
5066 | elif test $ac_cv_prog_cxx_g = yes; then | |
5067 | if test "$GXX" = yes; then | |
5068 | CXXFLAGS="-g -O2" | |
5069 | else | |
5070 | CXXFLAGS="-g" | |
5071 | fi | |
5072 | else | |
5073 | if test "$GXX" = yes; then | |
5074 | CXXFLAGS="-O2" | |
5075 | else | |
5076 | CXXFLAGS= | |
5077 | fi | |
eae5b2bc | 5078 | fi |
eae5b2bc | 5079 | ac_ext=c |
5080 | ac_cpp='$CPP $CPPFLAGS' | |
5081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5084 | ||
5085 | ||
5086 | # We must set the default linker to the linker used by gcc for the correct | |
5087 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5088 | # set the LD default to the ld used by gcc. | |
5089 | if test -z "$LD"; then | |
5090 | if test "$GCC" = yes; then | |
5091 | case $build in | |
5092 | *-*-mingw*) | |
5093 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5094 | *) | |
5095 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5096 | esac | |
5097 | case $gcc_prog_ld in | |
5098 | # Accept absolute paths. | |
5099 | [\\/]* | [A-Za-z]:[\\/]*) | |
5100 | LD="$gcc_prog_ld" ;; | |
5101 | esac | |
5102 | fi | |
2f8725b0 | 5103 | fi |
5104 | ||
13687c85 | 5105 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5106 | have_static_libs=no | |
5107 | if test "$GCC" = yes; then | |
5108 | saved_LDFLAGS="$LDFLAGS" | |
5109 | ||
5110 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5112 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5113 | ac_ext=cpp | |
5114 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5118 | ||
5119 | ||
5120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5121 | /* end confdefs.h. */ | |
74f1ea54 | 5122 | |
5123 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5124 | #error -static-libstdc++ not implemented | |
5125 | #endif | |
13687c85 | 5126 | int main() {} |
5127 | _ACEOF | |
5128 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5130 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5131 | else | |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5133 | $as_echo "no" >&6; } | |
5134 | fi | |
5135 | rm -f core conftest.err conftest.$ac_objext \ | |
5136 | conftest$ac_exeext conftest.$ac_ext | |
5137 | ac_ext=c | |
5138 | ac_cpp='$CPP $CPPFLAGS' | |
5139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5142 | ||
5143 | ||
5144 | LDFLAGS="$saved_LDFLAGS" | |
5145 | fi | |
5146 | ||
2f8725b0 | 5147 | |
5148 | ||
8e1fea1a | 5149 | |
b30fcfae | 5150 | if test -n "$ac_tool_prefix"; then |
5151 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 5152 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5154 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5155 | if ${ac_cv_prog_GNATBIND+:} false; then : |
cd9a469c | 5156 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 5157 | else |
5158 | if test -n "$GNATBIND"; then | |
5159 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5160 | else | |
b30fcfae | 5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5162 | for as_dir in $PATH | |
5163 | do | |
5164 | IFS=$as_save_IFS | |
5165 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5166 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5168 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 5169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5170 | break 2 |
5171 | fi | |
5172 | done | |
cd9a469c | 5173 | done |
5174 | IFS=$as_save_IFS | |
b30fcfae | 5175 | |
8e1fea1a | 5176 | fi |
5177 | fi | |
b30fcfae | 5178 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 5179 | if test -n "$GNATBIND"; then |
cd9a469c | 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5181 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 5182 | else |
cd9a469c | 5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5184 | $as_echo "no" >&6; } | |
8e1fea1a | 5185 | fi |
5186 | ||
cd9a469c | 5187 | |
b30fcfae | 5188 | fi |
8e1fea1a | 5189 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 5190 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 5191 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5192 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5194 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5195 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
cd9a469c | 5196 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 5197 | else |
b30fcfae | 5198 | if test -n "$ac_ct_GNATBIND"; then |
5199 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 5200 | else |
b30fcfae | 5201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5202 | for as_dir in $PATH | |
5203 | do | |
5204 | IFS=$as_save_IFS | |
5205 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5206 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5208 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 5209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5210 | break 2 |
5211 | fi | |
5212 | done | |
cd9a469c | 5213 | done |
5214 | IFS=$as_save_IFS | |
b30fcfae | 5215 | |
8e1fea1a | 5216 | fi |
5217 | fi | |
b30fcfae | 5218 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5219 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5221 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 5222 | else |
cd9a469c | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5224 | $as_echo "no" >&6; } | |
8e1fea1a | 5225 | fi |
5226 | ||
cd9a469c | 5227 | if test "x$ac_ct_GNATBIND" = x; then |
5228 | GNATBIND="no" | |
5229 | else | |
5230 | case $cross_compiling:$ac_tool_warned in | |
5231 | yes:) | |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5233 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5234 | ac_tool_warned=yes ;; | |
5235 | esac | |
5236 | GNATBIND=$ac_ct_GNATBIND | |
5237 | fi | |
8e1fea1a | 5238 | else |
b30fcfae | 5239 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 5240 | fi |
5241 | ||
b30fcfae | 5242 | if test -n "$ac_tool_prefix"; then |
5243 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 5244 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5246 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5247 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
cd9a469c | 5248 | $as_echo_n "(cached) " >&6 |
a18b2c54 | 5249 | else |
5250 | if test -n "$GNATMAKE"; then | |
5251 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5252 | else | |
b30fcfae | 5253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5254 | for as_dir in $PATH | |
5255 | do | |
5256 | IFS=$as_save_IFS | |
5257 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5258 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5260 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 5261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5262 | break 2 |
5263 | fi | |
5264 | done | |
cd9a469c | 5265 | done |
5266 | IFS=$as_save_IFS | |
b30fcfae | 5267 | |
a18b2c54 | 5268 | fi |
5269 | fi | |
b30fcfae | 5270 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 5271 | if test -n "$GNATMAKE"; then |
cd9a469c | 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5273 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 5274 | else |
cd9a469c | 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5276 | $as_echo "no" >&6; } | |
a18b2c54 | 5277 | fi |
5278 | ||
cd9a469c | 5279 | |
b30fcfae | 5280 | fi |
a18b2c54 | 5281 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 5282 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 5283 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5284 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5286 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5287 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
cd9a469c | 5288 | $as_echo_n "(cached) " >&6 |
a18b2c54 | 5289 | else |
b30fcfae | 5290 | if test -n "$ac_ct_GNATMAKE"; then |
5291 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 5292 | else |
b30fcfae | 5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5294 | for as_dir in $PATH | |
5295 | do | |
5296 | IFS=$as_save_IFS | |
5297 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5298 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 5300 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 5301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 5302 | break 2 |
5303 | fi | |
5304 | done | |
cd9a469c | 5305 | done |
5306 | IFS=$as_save_IFS | |
b30fcfae | 5307 | |
a18b2c54 | 5308 | fi |
5309 | fi | |
b30fcfae | 5310 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5311 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5313 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 5314 | else |
cd9a469c | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5316 | $as_echo "no" >&6; } | |
a18b2c54 | 5317 | fi |
5318 | ||
cd9a469c | 5319 | if test "x$ac_ct_GNATMAKE" = x; then |
5320 | GNATMAKE="no" | |
5321 | else | |
5322 | case $cross_compiling:$ac_tool_warned in | |
5323 | yes:) | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5326 | ac_tool_warned=yes ;; | |
5327 | esac | |
5328 | GNATMAKE=$ac_ct_GNATMAKE | |
5329 | fi | |
a18b2c54 | 5330 | else |
b30fcfae | 5331 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 5332 | fi |
5333 | ||
cd9a469c | 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5335 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
f00f02a3 | 5336 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
cd9a469c | 5337 | $as_echo_n "(cached) " >&6 |
8e1fea1a | 5338 | else |
5339 | cat >conftest.adb <<EOF | |
5340 | procedure conftest is begin null; end conftest; | |
5341 | EOF | |
5342 | acx_cv_cc_gcc_supports_ada=no | |
5343 | # There is a bug in old released versions of GCC which causes the | |
5344 | # driver to exit successfully when the appropriate language module | |
5345 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5346 | # Therefore we must check for the error message as well as an | |
5347 | # unsuccessful exit. | |
216de822 | 5348 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5349 | # given a .adb file, but produce no object file. So we must check | |
5350 | # if an object file was really produced to guard against this. | |
8e1fea1a | 5351 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 5352 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 5353 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 5354 | fi |
5355 | rm -f conftest.* | |
5356 | fi | |
cd9a469c | 5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5358 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 5359 | |
9d5fd7d0 | 5360 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 5361 | have_gnat=yes |
5362 | else | |
5363 | have_gnat=no | |
5364 | fi | |
5365 | ||
cd9a469c | 5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5367 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
f00f02a3 | 5368 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
cd9a469c | 5369 | $as_echo_n "(cached) " >&6 |
7bcc3b4a | 5370 | else |
5371 | echo abfoo >t1 | |
5372 | echo cdfoo >t2 | |
efbca99c | 5373 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
697dfd2c | 5374 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5375 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5376 | : | |
5377 | else | |
5378 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5379 | fi | |
5380 | fi | |
7bcc3b4a | 5381 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5382 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 5383 | : |
7bcc3b4a | 5384 | else |
5385 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5386 | fi | |
5387 | fi | |
5388 | rm t1 t2 | |
5389 | ||
5390 | fi | |
cd9a469c | 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5392 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5393 | do_compare="$gcc_cv_prog_cmp_skip" |
5394 | ||
5395 | ||
8e1fea1a | 5396 | |
6c59dfa4 | 5397 | # Check whether --enable-bootstrap was given. |
5398 | if test "${enable_bootstrap+set}" = set; then : | |
5399 | enableval=$enable_bootstrap; | |
5400 | else | |
5401 | enable_bootstrap=default | |
5402 | fi | |
5403 | ||
5404 | ||
5405 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5406 | if test -r $srcdir/gcc/configure; then |
5407 | have_compiler=yes | |
5408 | else | |
5409 | have_compiler=no | |
5410 | fi | |
6c59dfa4 | 5411 | |
5412 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5413 | *:*:*:no) ;; | |
5414 | ||
5415 | # Default behavior. Enable bootstrap if we have a compiler | |
5416 | # and we are in a native configuration. | |
5417 | yes:$build:$build:default) | |
5418 | enable_bootstrap=yes ;; | |
5419 | ||
5420 | *:*:*:default) | |
5421 | enable_bootstrap=no ;; | |
5422 | ||
5423 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5424 | yes:$build:$build:yes) | |
5425 | ;; | |
5426 | ||
5427 | # Other configurations, but we have a compiler. Assume the user knows | |
5428 | # what he's doing. | |
5429 | yes:*:*:yes) | |
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5431 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5432 | ;; | |
5433 | ||
5434 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5435 | no:*:*:yes) | |
f00f02a3 | 5436 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
6c59dfa4 | 5437 | |
5438 | # Fail if wrong command line | |
5439 | *) | |
f00f02a3 | 5440 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
6c59dfa4 | 5441 | ;; |
5442 | esac | |
5443 | ||
27590679 | 5444 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5445 | # C++98 compiler can still start the bootstrap. | |
5446 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
dce53dbc | 5447 | CXX="$CXX -std=gnu++98" |
27590679 | 5448 | fi |
5449 | ||
c3fc6a63 | 5450 | # Used for setting $lt_cv_objdir |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5452 | $as_echo_n "checking for objdir... " >&6; } | |
f00f02a3 | 5453 | if ${lt_cv_objdir+:} false; then : |
c3fc6a63 | 5454 | $as_echo_n "(cached) " >&6 |
5455 | else | |
5456 | rm -f .libs 2>/dev/null | |
5457 | mkdir .libs 2>/dev/null | |
5458 | if test -d .libs; then | |
5459 | lt_cv_objdir=.libs | |
5460 | else | |
5461 | # MS-DOS does not allow filenames that begin with a dot. | |
5462 | lt_cv_objdir=_libs | |
5463 | fi | |
5464 | rmdir .libs 2>/dev/null | |
5465 | fi | |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5467 | $as_echo "$lt_cv_objdir" >&6; } | |
5468 | objdir=$lt_cv_objdir | |
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
5474 | cat >>confdefs.h <<_ACEOF | |
5475 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5476 | _ACEOF | |
5477 | ||
5478 | ||
5479 | ||
7601a55c | 5480 | # Check for GMP, MPFR and MPC |
16de6a81 | 5481 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5482 | gmpinc= |
d45318b3 | 5483 | have_gmp=no |
7601a55c | 5484 | |
5485 | # Specify a location for mpc | |
5486 | # check for this first so it ends up on the link line before mpfr. | |
5487 | ||
cd9a469c | 5488 | # Check whether --with-mpc was given. |
5489 | if test "${with_mpc+set}" = set; then : | |
5490 | withval=$with_mpc; | |
5491 | fi | |
7601a55c | 5492 | |
7601a55c | 5493 | |
73f813e1 | 5494 | # Check whether --with-mpc-include was given. |
cd9a469c | 5495 | if test "${with_mpc_include+set}" = set; then : |
5496 | withval=$with_mpc_include; | |
5497 | fi | |
7601a55c | 5498 | |
7601a55c | 5499 | |
73f813e1 | 5500 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5501 | if test "${with_mpc_lib+set}" = set; then : |
5502 | withval=$with_mpc_lib; | |
5503 | fi | |
7601a55c | 5504 | |
7601a55c | 5505 | |
5506 | if test "x$with_mpc" != x; then | |
16de6a81 | 5507 | gmplibs="-L$with_mpc/lib $gmplibs" |
5508 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5509 | fi |
5510 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5511 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5512 | fi |
5513 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5514 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5515 | fi |
5516 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5517 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5518 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5519 | # Do not test the mpc version. Assume that it is sufficient, since |
5520 | # it is in the source tree, and the library has not been built yet | |
5521 | # but it would be included on the link line in the version check below | |
5522 | # hence making the test fail. | |
16de6a81 | 5523 | have_gmp=yes |
7601a55c | 5524 | fi |
d45318b3 | 5525 | |
5ca838b8 | 5526 | # Specify a location for mpfr |
5527 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5528 | |
cd9a469c | 5529 | # Check whether --with-mpfr-dir was given. |
5530 | if test "${with_mpfr_dir+set}" = set; then : | |
f00f02a3 | 5531 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
cd9a469c | 5532 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
5533 | fi | |
5534 | ||
5ca838b8 | 5535 | |
5536 | ||
cd9a469c | 5537 | # Check whether --with-mpfr was given. |
5538 | if test "${with_mpfr+set}" = set; then : | |
5539 | withval=$with_mpfr; | |
5540 | fi | |
b30fcfae | 5541 | |
5ca838b8 | 5542 | |
73f813e1 | 5543 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5544 | if test "${with_mpfr_include+set}" = set; then : |
5545 | withval=$with_mpfr_include; | |
5546 | fi | |
b30fcfae | 5547 | |
a5144c1d | 5548 | |
73f813e1 | 5549 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5550 | if test "${with_mpfr_lib+set}" = set; then : |
5551 | withval=$with_mpfr_lib; | |
5552 | fi | |
a5144c1d | 5553 | |
5ca838b8 | 5554 | |
5555 | if test "x$with_mpfr" != x; then | |
5556 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5557 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5558 | fi |
a5144c1d | 5559 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5560 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5561 | fi |
5562 | if test "x$with_mpfr_lib" != x; then | |
5563 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5564 | fi | |
d45318b3 | 5565 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
efa1150d | 5566 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5567 | if ! test -d ${srcdir}/mpfr/src; then | |
f00f02a3 | 5568 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
efa1150d | 5569 | fi |
4b2246ef | 5570 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5571 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5572 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
d45318b3 | 5573 | # Do not test the mpfr version. Assume that it is sufficient, since |
5574 | # it is in the source tree, and the library has not been built yet | |
5575 | # but it would be included on the link line in the version check below | |
5576 | # hence making the test fail. | |
5577 | have_gmp=yes | |
5578 | fi | |
5ca838b8 | 5579 | |
4ee9c684 | 5580 | # Specify a location for gmp |
b30fcfae | 5581 | |
cd9a469c | 5582 | # Check whether --with-gmp-dir was given. |
5583 | if test "${with_gmp_dir+set}" = set; then : | |
f00f02a3 | 5584 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
cd9a469c | 5585 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
5586 | fi | |
5587 | ||
4ee9c684 | 5588 | |
4ee9c684 | 5589 | |
cd9a469c | 5590 | # Check whether --with-gmp was given. |
5591 | if test "${with_gmp+set}" = set; then : | |
5592 | withval=$with_gmp; | |
5593 | fi | |
b30fcfae | 5594 | |
4ee9c684 | 5595 | |
73f813e1 | 5596 | # Check whether --with-gmp-include was given. |
cd9a469c | 5597 | if test "${with_gmp_include+set}" = set; then : |
5598 | withval=$with_gmp_include; | |
5599 | fi | |
b30fcfae | 5600 | |
a5144c1d | 5601 | |
73f813e1 | 5602 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5603 | if test "${with_gmp_lib+set}" = set; then : |
5604 | withval=$with_gmp_lib; | |
5605 | fi | |
a5144c1d | 5606 | |
5607 | ||
4ee9c684 | 5608 | |
5ca838b8 | 5609 | if test "x$with_gmp" != x; then |
5610 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5611 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5612 | fi |
a5144c1d | 5613 | if test "x$with_gmp_include" != x; then |
5614 | gmpinc="-I$with_gmp_include $gmpinc" | |
5615 | fi | |
5616 | if test "x$with_gmp_lib" != x; then | |
5617 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5618 | fi | |
d45318b3 | 5619 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5620 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5621 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5622 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5623 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e4128452 | 5624 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
d45318b3 | 5625 | # Do not test the gmp version. Assume that it is sufficient, since |
5626 | # it is in the source tree, and the library has not been built yet | |
5627 | # but it would be included on the link line in the version check below | |
5628 | # hence making the test fail. | |
5629 | have_gmp=yes | |
5630 | fi | |
4ee9c684 | 5631 | |
16c9b2e3 | 5632 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5633 | have_gmp=yes |
5634 | saved_CFLAGS="$CFLAGS" | |
5635 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5636 | # Check for the recommended and required versions of GMP. |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5638 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5639 | |
5640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5641 | /* end confdefs.h. */ |
5642 | #include "gmp.h" | |
5643 | int | |
5644 | main () | |
5645 | { | |
5646 | ||
5647 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5648 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
f819bb73 | 5649 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
17b6993a | 5650 | choke me |
5651 | #endif | |
5652 | ||
5653 | ; | |
5654 | return 0; | |
5655 | } | |
5656 | _ACEOF | |
5657 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5659 | /* end confdefs.h. */ |
17b6993a | 5660 | #include <gmp.h> |
b30fcfae | 5661 | int |
5662 | main () | |
5663 | { | |
4ee9c684 | 5664 | |
17b6993a | 5665 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5666 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5667 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5668 | choke me |
5669 | #endif | |
b30fcfae | 5670 | |
5671 | ; | |
5672 | return 0; | |
5673 | } | |
5674 | _ACEOF | |
cd9a469c | 5675 | if ac_fn_c_try_compile "$LINENO"; then : |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5677 | $as_echo "yes" >&6; } | |
17b6993a | 5678 | else |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5680 | $as_echo "buggy but acceptable" >&6; } | |
5681 | fi | |
5682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5683 | else |
cd9a469c | 5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5685 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5686 | fi |
cd9a469c | 5687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5688 | |
7601a55c | 5689 | # If we have GMP, check the MPFR version. |
d45318b3 | 5690 | if test x"$have_gmp" = xyes; then |
17b6993a | 5691 | # Check for the recommended and required versions of MPFR. |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5693 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5695 | /* end confdefs.h. */ |
6a086156 | 5696 | #include <gmp.h> |
d45318b3 | 5697 | #include <mpfr.h> |
b30fcfae | 5698 | int |
5699 | main () | |
5700 | { | |
112f3d57 | 5701 | |
cb1d9044 | 5702 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
d45318b3 | 5703 | choke me |
5704 | #endif | |
b30fcfae | 5705 | |
5706 | ; | |
5707 | return 0; | |
5708 | } | |
5709 | _ACEOF | |
cd9a469c | 5710 | if ac_fn_c_try_compile "$LINENO"; then : |
5711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5712 | /* end confdefs.h. */ |
0157cc75 | 5713 | #include <gmp.h> |
d45318b3 | 5714 | #include <mpfr.h> |
b30fcfae | 5715 | int |
5716 | main () | |
5717 | { | |
0157cc75 | 5718 | |
17b6993a | 5719 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5720 | choke me |
5721 | #endif | |
7601a55c | 5722 | |
5723 | ; | |
5724 | return 0; | |
5725 | } | |
5726 | _ACEOF | |
cd9a469c | 5727 | if ac_fn_c_try_compile "$LINENO"; then : |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5729 | $as_echo "yes" >&6; } | |
7601a55c | 5730 | else |
cd9a469c | 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5732 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5733 | fi |
cd9a469c | 5734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5735 | else |
cd9a469c | 5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5737 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5738 | fi |
cd9a469c | 5739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5740 | fi |
5741 | ||
5742 | # Check for the MPC header version. | |
16de6a81 | 5743 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5744 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5746 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5748 | /* end confdefs.h. */ |
5749 | #include <mpc.h> | |
5750 | int | |
5751 | main () | |
5752 | { | |
5753 | ||
17b6993a | 5754 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5755 | choke me | |
5756 | #endif | |
5757 | ||
5758 | ; | |
5759 | return 0; | |
5760 | } | |
5761 | _ACEOF | |
5762 | if ac_fn_c_try_compile "$LINENO"; then : | |
5763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5764 | /* end confdefs.h. */ | |
5765 | #include <mpc.h> | |
5766 | int | |
5767 | main () | |
5768 | { | |
5769 | ||
5770 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5771 | choke me |
5772 | #endif | |
5773 | ||
5774 | ; | |
5775 | return 0; | |
5776 | } | |
5777 | _ACEOF | |
cd9a469c | 5778 | if ac_fn_c_try_compile "$LINENO"; then : |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5780 | $as_echo "yes" >&6; } |
17b6993a | 5781 | else |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5783 | $as_echo "buggy but acceptable" >&6; } | |
5784 | fi | |
5785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5786 | else |
cd9a469c | 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5788 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5789 | fi |
cd9a469c | 5790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5791 | fi |
5792 | ||
5793 | # Now check the MPFR library. | |
5794 | if test x"$have_gmp" = xyes; then | |
5795 | saved_LIBS="$LIBS" | |
5796 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5798 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5800 | /* end confdefs.h. */ |
16de6a81 | 5801 | #include <mpc.h> |
7601a55c | 5802 | int |
5803 | main () | |
5804 | { | |
5805 | ||
5806 | mpfr_t n; | |
5807 | mpfr_t x; | |
16de6a81 | 5808 | mpc_t c; |
7601a55c | 5809 | int t; |
5810 | mpfr_init (n); | |
5811 | mpfr_init (x); | |
5812 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5813 | mpfr_erfc (n, x, GMP_RNDN); | |
5814 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5815 | mpfr_clear(n); |
5816 | mpfr_clear(x); | |
5817 | mpc_init2 (c, 53); | |
5818 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5819 | mpc_cosh (c, c, MPC_RNDNN); | |
5820 | mpc_pow (c, c, c, MPC_RNDNN); | |
5821 | mpc_acosh (c, c, MPC_RNDNN); | |
5822 | mpc_clear (c); | |
b30fcfae | 5823 | |
5824 | ; | |
5825 | return 0; | |
5826 | } | |
5827 | _ACEOF | |
cd9a469c | 5828 | if ac_fn_c_try_link "$LINENO"; then : |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5830 | $as_echo "yes" >&6; } | |
b30fcfae | 5831 | else |
cd9a469c | 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5833 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5834 | fi |
cd9a469c | 5835 | rm -f core conftest.err conftest.$ac_objext \ |
5836 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5837 | LIBS="$saved_LIBS" |
5838 | fi | |
5839 | ||
d45318b3 | 5840 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5841 | |
17b6993a | 5842 | # The library versions listed in the error message below should match |
5843 | # the HARD-minimums enforced above. | |
d45318b3 | 5844 | if test x$have_gmp != xyes; then |
f00f02a3 | 5845 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
16de6a81 | 5846 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5847 | their locations. Source code for these libraries can be found at | |
5848 | their respective hosting sites as well as at | |
5849 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5850 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5851 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5852 | make sure that you have installed both the libraries and the header | |
5853 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5854 | fi |
6a086156 | 5855 | fi |
5856 | ||
7601a55c | 5857 | # Flags needed for both GMP, MPFR and/or MPC. |
5858 | ||
5859 | ||
4ee9c684 | 5860 | |
5861 | ||
5862 | ||
bff7ea4a | 5863 | |
e4128452 | 5864 | |
13687c85 | 5865 | # Libraries to use for stage1 or when not bootstrapping. |
7ab76cec | 5866 | |
13687c85 | 5867 | # Check whether --with-stage1-libs was given. |
5868 | if test "${with_stage1_libs+set}" = set; then : | |
5869 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5870 | stage1_libs= | |
7ab76cec | 5871 | else |
13687c85 | 5872 | stage1_libs=$withval |
7ab76cec | 5873 | fi |
5874 | else | |
9d71bbdc | 5875 | stage1_libs= |
cd9a469c | 5876 | fi |
5877 | ||
7ab76cec | 5878 | |
5879 | ||
13687c85 | 5880 | # Linker flags to use for stage1 or when not bootstrapping. |
7ab76cec | 5881 | |
13687c85 | 5882 | # Check whether --with-stage1-ldflags was given. |
5883 | if test "${with_stage1_ldflags+set}" = set; then : | |
5884 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5885 | stage1_ldflags= | |
7ab76cec | 5886 | else |
13687c85 | 5887 | stage1_ldflags=$withval |
7ab76cec | 5888 | fi |
5889 | else | |
13687c85 | 5890 | stage1_ldflags= |
5891 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5892 | # if supported. But if the user explicitly specified the libraries to use, | |
5893 | # trust that they are doing what they want. | |
5894 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5895 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5896 | fi | |
cd9a469c | 5897 | fi |
5898 | ||
7ab76cec | 5899 | |
5900 | ||
9d71bbdc | 5901 | # Libraries to use for stage2 and later builds. |
7ab76cec | 5902 | |
cd9a469c | 5903 | # Check whether --with-boot-libs was given. |
5904 | if test "${with_boot_libs+set}" = set; then : | |
5905 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5110389d | 5906 | poststage1_libs= |
5907 | else | |
5908 | poststage1_libs=$withval | |
5909 | fi | |
5910 | else | |
9d71bbdc | 5911 | poststage1_libs= |
cd9a469c | 5912 | fi |
5913 | ||
7ab76cec | 5914 | |
5915 | ||
d6dfe18a | 5916 | # Linker flags to use for stage2 and later builds. |
5917 | ||
5918 | # Check whether --with-boot-ldflags was given. | |
5919 | if test "${with_boot_ldflags+set}" = set; then : | |
5920 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5921 | poststage1_ldflags= | |
5922 | else | |
5923 | poststage1_ldflags=$withval | |
5924 | fi | |
5925 | else | |
5926 | poststage1_ldflags= | |
7deb2d70 | 5927 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5928 | # statically. But if the user explicitly specified the libraries to | |
5929 | # use, trust that they are doing what they want. | |
5930 | if test "$poststage1_libs" = ""; then | |
d6dfe18a | 5931 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5932 | fi | |
5933 | fi | |
5934 | ||
5935 | ||
5936 | ||
71130ef8 | 5937 | # GCC GRAPHITE dependency isl. |
572cf1f7 | 5938 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
255b6be7 | 5939 | |
5940 | ||
87e20041 | 5941 | # Check whether --with-isl was given. |
5942 | if test "${with_isl+set}" = set; then : | |
5943 | withval=$with_isl; | |
cd9a469c | 5944 | fi |
255b6be7 | 5945 | |
255b6be7 | 5946 | |
429cca51 | 5947 | # Treat --without-isl as a request to disable |
83d54ac4 | 5948 | # GRAPHITE support and skip all following checks. |
429cca51 | 5949 | if test "x$with_isl" != "xno"; then |
71130ef8 | 5950 | # Check for isl |
83d54ac4 | 5951 | |
5952 | ||
87e20041 | 5953 | # Check whether --with-isl-include was given. |
5954 | if test "${with_isl_include+set}" = set; then : | |
5955 | withval=$with_isl_include; | |
cd9a469c | 5956 | fi |
5957 | ||
255b6be7 | 5958 | |
87e20041 | 5959 | # Check whether --with-isl-lib was given. |
5960 | if test "${with_isl_lib+set}" = set; then : | |
5961 | withval=$with_isl_lib; | |
cd9a469c | 5962 | fi |
255b6be7 | 5963 | |
255b6be7 | 5964 | |
87e20041 | 5965 | # Check whether --enable-isl-version-check was given. |
5966 | if test "${enable_isl_version_check+set}" = set; then : | |
5967 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5968 | else | |
5969 | ENABLE_ISL_CHECK=yes | |
062b4a94 | 5970 | fi |
5971 | ||
5972 | ||
87e20041 | 5973 | # Initialize isllibs and islinc. |
5974 | case $with_isl in | |
5975 | no) | |
5976 | isllibs= | |
5977 | islinc= | |
5978 | ;; | |
5979 | "" | yes) | |
5980 | ;; | |
5981 | *) | |
5982 | isllibs="-L$with_isl/lib" | |
5983 | islinc="-I$with_isl/include" | |
5984 | ;; | |
5985 | esac | |
5986 | if test "x${with_isl_include}" != x ; then | |
5987 | islinc="-I$with_isl_include" | |
5988 | fi | |
5989 | if test "x${with_isl_lib}" != x; then | |
5990 | isllibs="-L$with_isl_lib" | |
5991 | fi | |
5992 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5993 | && test -d ${srcdir}/isl; then | |
5994 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5995 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5996 | ENABLE_ISL_CHECK=no | |
7458b15a | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5998 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
87e20041 | 5999 | fi |
062b4a94 | 6000 | |
429cca51 | 6001 | isllibs="${isllibs} -lisl" |
6002 | ||
062b4a94 | 6003 | |
062b4a94 | 6004 | |
078393c7 | 6005 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
6006 | _isl_saved_CFLAGS=$CFLAGS | |
6007 | _isl_saved_LDFLAGS=$LDFLAGS | |
6008 | _isl_saved_LIBS=$LIBS | |
6009 | ||
6010 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
07ae8272 | 6011 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6012 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
078393c7 | 6013 | |
8e8a14c2 | 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
6015 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
b6de67fd | 6016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6ac3b11e | 6017 | /* end confdefs.h. */ |
8e8a14c2 | 6018 | #include <isl/schedule.h> |
6ac3b11e | 6019 | int |
6020 | main () | |
6021 | { | |
8e8a14c2 | 6022 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
6ac3b11e | 6023 | ; |
6024 | return 0; | |
6025 | } | |
6026 | _ACEOF | |
6027 | if ac_fn_c_try_link "$LINENO"; then : | |
078393c7 | 6028 | gcc_cv_isl=yes |
6ac3b11e | 6029 | else |
6030 | gcc_cv_isl=no | |
6031 | fi | |
6032 | rm -f core conftest.err conftest.$ac_objext \ | |
6033 | conftest$ac_exeext conftest.$ac_ext | |
078393c7 | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6035 | $as_echo "$gcc_cv_isl" >&6; } | |
6036 | ||
7458b15a | 6037 | if test "${gcc_cv_isl}" = no ; then |
8e8a14c2 | 6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
6039 | $as_echo "required isl version is 0.15 or later" >&6; } | |
45fc5243 | 6040 | fi |
6041 | ||
078393c7 | 6042 | CFLAGS=$_isl_saved_CFLAGS |
6043 | LDFLAGS=$_isl_saved_LDFLAGS | |
6044 | LIBS=$_isl_saved_LIBS | |
6045 | fi | |
6046 | ||
6047 | ||
255b6be7 | 6048 | |
255b6be7 | 6049 | |
87e20041 | 6050 | |
6051 | ||
87e20041 | 6052 | if test "x${with_isl}" = xno; then |
6053 | graphite_requested=no | |
6054 | elif test "x${with_isl}" != x \ | |
6055 | || test "x${with_isl_include}" != x \ | |
6056 | || test "x${with_isl_lib}" != x ; then | |
6057 | graphite_requested=yes | |
6058 | else | |
6059 | graphite_requested=no | |
062b4a94 | 6060 | fi |
5362e323 | 6061 | |
5362e323 | 6062 | |
6063 | ||
87e20041 | 6064 | if test "${gcc_cv_isl}" = no ; then |
6065 | isllibs= | |
6066 | islinc= | |
6067 | fi | |
6068 | ||
6069 | if test "${graphite_requested}" = yes \ | |
6070 | && test "x${isllibs}" = x \ | |
6071 | && test "x${islinc}" = x ; then | |
255b6be7 | 6072 | |
f00f02a3 | 6073 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
87e20041 | 6074 | fi |
255b6be7 | 6075 | |
a3c81e03 | 6076 | |
a3c81e03 | 6077 | fi |
6078 | ||
71130ef8 | 6079 | # If the isl check failed, disable builds of in-tree variant of isl |
83d54ac4 | 6080 | if test "x$with_isl" = xno || |
83d54ac4 | 6081 | test "x$gcc_cv_isl" = xno; then |
572cf1f7 | 6082 | noconfigdirs="$noconfigdirs isl" |
83d54ac4 | 6083 | islinc= |
bacb15cb | 6084 | fi |
6085 | ||
83d54ac4 | 6086 | |
6087 | ||
6088 | ||
7bfefa9d | 6089 | # Check for LTO support. |
6090 | # Check whether --enable-lto was given. | |
6091 | if test "${enable_lto+set}" = set; then : | |
6092 | enableval=$enable_lto; enable_lto=$enableval | |
6093 | else | |
6094 | enable_lto=yes; default_enable_lto=yes | |
6095 | fi | |
6096 | ||
6097 | ||
1a4f45ec | 6098 | |
9bdbb0bc | 6099 | |
6100 | ||
6101 | target_elf=no | |
6102 | case $target in | |
6103 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6104 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
cb7a0f1d | 6105 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
0f769573 | 6106 | nvptx-*-none) |
9bdbb0bc | 6107 | target_elf=no |
6108 | ;; | |
6109 | *) | |
6110 | target_elf=yes | |
6111 | ;; | |
6112 | esac | |
6113 | ||
6114 | if test $target_elf = yes; then : | |
25630dc7 | 6115 | # ELF platforms build the lto-plugin always. |
6116 | build_lto_plugin=yes | |
9bdbb0bc | 6117 | |
9bdbb0bc | 6118 | else |
6119 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6120 | case $target in |
c96ae98b | 6121 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
25630dc7 | 6122 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6123 | *) enable_lto=no ;; |
6124 | esac | |
9bdbb0bc | 6125 | else |
62932e4d | 6126 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6127 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6128 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6129 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6130 | # -flto it won't be needed until after installation anyway. | |
6131 | case $target in | |
7aa50266 | 6132 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9bdbb0bc | 6133 | *) if test x"$enable_lto" = x"yes"; then |
f00f02a3 | 6134 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9bdbb0bc | 6135 | fi |
6136 | ;; | |
6137 | esac | |
6138 | fi | |
ca42e774 | 6139 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6140 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6141 | case $target in |
25630dc7 | 6142 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6143 | *) ;; |
6144 | esac | |
25630dc7 | 6145 | |
9bdbb0bc | 6146 | fi |
6147 | ||
7bfefa9d | 6148 | |
1015a063 | 6149 | # Check whether --enable-linker-plugin-configure-flags was given. |
6150 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6151 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6152 | else | |
6153 | extra_linker_plugin_configure_flags= | |
6154 | fi | |
6155 | ||
6156 | ||
6157 | # Check whether --enable-linker-plugin-flags was given. | |
6158 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6159 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6160 | else | |
6161 | extra_linker_plugin_flags= | |
6162 | fi | |
6163 | ||
6164 | ||
6165 | ||
01b4453c | 6166 | # Enable --enable-host-shared. |
6167 | # Checked early to determine whether jit is an 'all' language | |
6168 | # Check whether --enable-host-shared was given. | |
6169 | if test "${enable_host_shared+set}" = set; then : | |
6170 | enableval=$enable_host_shared; host_shared=$enableval | |
6171 | else | |
6172 | host_shared=no | |
6173 | fi | |
6174 | ||
6175 | ||
255b6be7 | 6176 | |
2b15d2ba | 6177 | # By default, C and C++ are the only stage 1 languages. |
9c3a0a29 | 6178 | stage1_languages=,c, |
2d64c2fd | 6179 | |
7ab76cec | 6180 | # Target libraries that we bootstrap. |
5c96a839 | 6181 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6182 | |
8e1fea1a | 6183 | # Figure out what language subdirectories are present. |
6184 | # Look if the user specified --enable-languages="..."; if not, use | |
6185 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6186 | # go away some day. | |
6187 | # NB: embedded tabs in this IF block -- do not untabify | |
6188 | if test -d ${srcdir}/gcc; then | |
6189 | if test x"${enable_languages+set}" != xset; then | |
6190 | if test x"${LANGUAGES+set}" = xset; then | |
6191 | enable_languages="${LANGUAGES}" | |
e757a6a8 | 6192 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
8e1fea1a | 6193 | else |
01b4453c | 6194 | enable_languages=default |
8e1fea1a | 6195 | fi |
6196 | else | |
6197 | if test x"${enable_languages}" = x || | |
6198 | test x"${enable_languages}" = xyes; | |
6199 | then | |
e757a6a8 | 6200 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
8e1fea1a | 6201 | exit 1 |
6202 | fi | |
6203 | fi | |
6204 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6205 | ||
2c718da0 | 6206 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6207 | # and make the substitution. | |
6208 | case ,${enable_languages}, in | |
6209 | *,f95,*) | |
e757a6a8 | 6210 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
2c718da0 | 6211 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6212 | ;; | |
6213 | esac | |
6214 | ||
2b15d2ba | 6215 | # If bootstrapping, C++ must be enabled. |
6216 | case ",$enable_languages,:$enable_bootstrap" in | |
6217 | *,c++,*:*) ;; | |
6218 | *:yes) | |
6c59dfa4 | 6219 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6220 | enable_languages="${enable_languages},c++" | |
6221 | else | |
f00f02a3 | 6222 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
6c59dfa4 | 6223 | fi |
6224 | ;; | |
6225 | esac | |
6226 | ||
8e1fea1a | 6227 | # First scan to see if an enabled language requires some other language. |
6228 | # We assume that a given config-lang.in will list all the language | |
6229 | # front ends it requires, even if some are required indirectly. | |
6230 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6231 | case ${lang_frag} in | |
6232 | ..) ;; | |
6233 | # The odd quoting in the next line works around | |
6234 | # an apparent bug in bash 1.12 on linux. | |
6235 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6236 | *) | |
101ddbe4 | 6237 | # From the config-lang.in, get $language, $lang_requires, and |
6238 | # $lang_requires_boot_languages. | |
8e1fea1a | 6239 | language= |
6240 | lang_requires= | |
101ddbe4 | 6241 | lang_requires_boot_languages= |
d6400eba | 6242 | # set srcdir during sourcing lang_frag to the gcc dir. |
6243 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
6244 | # polutes this shell | |
6245 | saved_srcdir=${srcdir} | |
6246 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6247 | srcdir=${saved_srcdir} | |
101ddbe4 | 6248 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6249 | case ,${enable_languages}, in |
6250 | *,$other,*) ;; | |
01b4453c | 6251 | *,default,*) ;; |
8e1fea1a | 6252 | *,all,*) ;; |
6253 | *,$language,*) | |
6254 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6255 | enable_languages="${enable_languages},${other}" | |
6256 | ;; | |
6257 | esac | |
6258 | done | |
101ddbe4 | 6259 | for other in ${lang_requires_boot_languages} ; do |
6260 | if test "$other" != "c"; then | |
6261 | case ,${enable_stage1_languages}, in | |
6262 | *,$other,*) ;; | |
01b4453c | 6263 | *,default,*) ;; |
101ddbe4 | 6264 | *,all,*) ;; |
6265 | *) | |
6266 | case ,${enable_languages}, in | |
6267 | *,$language,*) | |
6268 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6269 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6270 | ;; | |
6271 | esac | |
6272 | ;; | |
6273 | esac | |
6274 | fi | |
6275 | done | |
8e1fea1a | 6276 | ;; |
6277 | esac | |
6278 | done | |
6279 | ||
9c3a0a29 | 6280 | new_enable_languages=,c, |
7bfefa9d | 6281 | |
6282 | # If LTO is enabled, add the LTO front end. | |
7bfefa9d | 6283 | if test "$enable_lto" = "yes" ; then |
d6ef094a | 6284 | case ,${enable_languages}, in |
6285 | *,lto,*) ;; | |
6286 | *) enable_languages="${enable_languages},lto" ;; | |
6287 | esac | |
ca42e774 | 6288 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6289 | configdirs="$configdirs lto-plugin" |
7bfefa9d | 6290 | fi |
6291 | fi | |
6292 | ||
dd87c525 | 6293 | # If we're building an offloading compiler, add the LTO front end. |
6294 | if test x"$enable_as_accelerator_for" != x ; then | |
6295 | case ,${enable_languages}, in | |
6296 | *,lto,*) ;; | |
6297 | *) enable_languages="${enable_languages},lto" ;; | |
6298 | esac | |
6299 | fi | |
6300 | ||
01b4453c | 6301 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6302 | potential_languages=,c, |
8e1fea1a | 6303 | |
604a285a | 6304 | enabled_target_libs= |
6305 | disabled_target_libs= | |
6306 | ||
8e1fea1a | 6307 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6308 | case ${lang_frag} in | |
6309 | ..) ;; | |
6310 | # The odd quoting in the next line works around | |
6311 | # an apparent bug in bash 1.12 on linux. | |
6312 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6313 | *) | |
b30fcfae | 6314 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6315 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6316 | language= |
6317 | target_libs= | |
6318 | lang_dirs= | |
5dee13c2 | 6319 | subdir_requires= |
9c3a0a29 | 6320 | boot_language=no |
6321 | build_by_default=yes | |
d6400eba | 6322 | # set srcdir during sourcing. See above about save & restore |
6323 | saved_srcdir=${srcdir} | |
6324 | srcdir=${srcdir}/gcc . ${lang_frag} | |
6325 | srcdir=${saved_srcdir} | |
9c3a0a29 | 6326 | if test x${language} = x; then |
6327 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6328 | exit 1 | |
6329 | fi | |
6330 | ||
ef3c41c7 | 6331 | if test "$language" = "c++"; then |
2b15d2ba | 6332 | boot_language=yes |
7ab76cec | 6333 | fi |
6334 | ||
a2ecd49c | 6335 | add_this_lang=no |
01b4453c | 6336 | # C is always enabled, so no need to add it again |
6337 | if test "$language" != "c"; then | |
6338 | case ,${enable_languages}, in | |
6339 | *,${language},*) | |
6340 | # Language was explicitly selected; include it | |
e53d55e7 | 6341 | add_this_lang=yes |
01b4453c | 6342 | ;; |
6343 | *,all,*) | |
6344 | # All languages are enabled | |
6345 | add_this_lang=all | |
6346 | ;; | |
6347 | *,default,*) | |
6348 | # 'default' was selected, select it if it is a default language | |
a2ecd49c | 6349 | add_this_lang=${build_by_default} |
01b4453c | 6350 | ;; |
6351 | esac | |
6352 | fi | |
4ee9c684 | 6353 | |
5dee13c2 | 6354 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6355 | for i in $subdir_requires; do |
3891e7d9 | 6356 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
01b4453c | 6357 | case ${add_this_lang} in |
6358 | yes) | |
5dee13c2 | 6359 | # Specifically requested language; tell them. |
f00f02a3 | 6360 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6361 | ;; |
01b4453c | 6362 | all) |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
6364 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
6365 | add_this_lang=unsupported | |
6366 | ;; | |
5dee13c2 | 6367 | *) |
6368 | # Silently disable. | |
9c3a0a29 | 6369 | add_this_lang=unsupported |
5dee13c2 | 6370 | ;; |
6371 | esac | |
6372 | done | |
6373 | ||
9c3a0a29 | 6374 | # Disable Ada if no preexisting GNAT is available. |
01b4453c | 6375 | case ${add_this_lang}:${language}:${have_gnat} in |
6376 | yes:ada:no) | |
9c3a0a29 | 6377 | # Specifically requested language; tell them. |
f00f02a3 | 6378 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6379 | ;; |
01b4453c | 6380 | all:ada:no) |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
6382 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
6383 | add_this_lang=unsupported | |
6384 | ;; | |
9c3a0a29 | 6385 | *:ada:no) |
6386 | # Silently disable. | |
6387 | add_this_lang=unsupported | |
6388 | ;; | |
6389 | esac | |
6390 | ||
01b4453c | 6391 | # Disable jit if -enable-host-shared not specified |
6392 | case ${add_this_lang}:${language}:${host_shared} in | |
6393 | yes:jit:no) | |
6394 | # PR jit/64780: explicitly specify --enable-host-shared | |
f00f02a3 | 6395 | as_fn_error $? " |
01b4453c | 6396 | Enabling language \"jit\" requires --enable-host-shared. |
6397 | ||
6398 | --enable-host-shared typically slows the rest of the compiler down by | |
6399 | a few %, so you must explicitly enable it. | |
6400 | ||
6401 | If you want to build both the jit and the regular compiler, it is often | |
6402 | best to do this via two separate configure/builds, in separate | |
6403 | directories, to avoid imposing the performance cost of | |
6404 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
6405 | ;; | |
6406 | all:jit:no) | |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
6408 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} | |
6409 | add_this_lang=unsupported | |
6410 | ;; | |
6411 | *:jit:no) | |
6412 | # Silently disable. | |
6413 | add_this_lang=unsupported | |
6414 | ;; | |
6415 | esac | |
6416 | ||
6417 | # Disable a language that is unsupported by the target. | |
6418 | case "${add_this_lang}: $unsupported_languages " in | |
6419 | no:*) ;; | |
6420 | unsupported:*) ;; | |
6421 | *:*" $language "*) | |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
6423 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9c3a0a29 | 6424 | add_this_lang=unsupported |
ff7dcf6a | 6425 | ;; |
6426 | esac | |
6427 | ||
4ee9c684 | 6428 | case $add_this_lang in |
9c3a0a29 | 6429 | unsupported) |
8e1fea1a | 6430 | # Remove language-dependent dirs. |
604a285a | 6431 | disabled_target_libs="$disabled_target_libs $target_libs" |
6432 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6433 | ;; |
9c3a0a29 | 6434 | no) |
6435 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6436 | disabled_target_libs="$disabled_target_libs $target_libs" |
6437 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6438 | potential_languages="${potential_languages}${language}," |
6439 | ;; | |
01b4453c | 6440 | all|yes) |
9c3a0a29 | 6441 | new_enable_languages="${new_enable_languages}${language}," |
6442 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6443 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6444 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6445 | case "${boot_language}:,$enable_stage1_languages," in |
6446 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6447 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6448 | case ",$stage1_languages," in |
6449 | *,$language,* | ,yes, | ,all,) ;; | |
6450 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6451 | esac | |
7ab76cec | 6452 | # We need to bootstrap any supporting libraries. |
6453 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6454 | ;; |
6455 | esac | |
6456 | ;; | |
8e1fea1a | 6457 | esac |
6458 | ;; | |
6459 | esac | |
6460 | done | |
6461 | ||
604a285a | 6462 | # Add target libraries which are only needed for disabled languages |
6463 | # to noconfigdirs. | |
6464 | if test -n "$disabled_target_libs"; then | |
6465 | for dir in $disabled_target_libs; do | |
6466 | case " $enabled_target_libs " in | |
6467 | *" ${dir} "*) ;; | |
6468 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6469 | esac | |
6470 | done | |
6471 | fi | |
6472 | ||
cd9a469c | 6473 | # Check whether --enable-stage1-languages was given. |
6474 | if test "${enable_stage1_languages+set}" = set; then : | |
6475 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6476 | ,no,|,,) |
6477 | # Set it to something that will have no effect in the loop below | |
6478 | enable_stage1_languages=c ;; | |
6479 | ,yes,) | |
6480 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6481 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6482 | *,all,*) | |
6483 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6484 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6485 | esac | |
6486 | ||
6487 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6488 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6489 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6490 | case $potential_languages in | |
6491 | *,$i,*) | |
6492 | case $stage1_languages in | |
6493 | *,$i,*) ;; | |
6494 | *) stage1_languages="$stage1_languages$i," ;; | |
6495 | esac ;; | |
6496 | *) | |
6497 | case $missing_languages in | |
6498 | *,$i,*) ;; | |
6499 | *) missing_languages="$missing_languages$i," ;; | |
6500 | esac ;; | |
6501 | esac | |
6502 | done | |
cd9a469c | 6503 | fi |
6504 | ||
9c3a0a29 | 6505 | |
6506 | # Remove leading/trailing commas that were added for simplicity | |
6507 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6508 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6509 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6510 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6511 | ||
8e1fea1a | 6512 | if test "x$missing_languages" != x; then |
f00f02a3 | 6513 | as_fn_error $? " |
e8bfe1fa | 6514 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6515 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6516 | fi |
8e1fea1a | 6517 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6518 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6519 | enable_languages="$new_enable_languages" |
8e1fea1a | 6520 | fi |
9c3a0a29 | 6521 | |
b30fcfae | 6522 | |
b0e9b581 | 6523 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6524 | fi |
6525 | ||
50996fe5 | 6526 | # Handle --disable-<component> generically. |
6527 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6528 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6529 | varname=`echo $dirname | sed -e s/+/_/g` |
6530 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6531 | noconfigdirs="$noconfigdirs $dir" |
6532 | fi | |
6533 | done | |
6534 | ||
03869f98 | 6535 | # Check for Boehm's garbage collector |
6536 | # Check whether --enable-objc-gc was given. | |
6537 | if test "${enable_objc_gc+set}" = set; then : | |
baf71228 | 6538 | enableval=$enable_objc_gc; |
6539 | fi | |
6540 | ||
6541 | ||
6542 | # Check whether --with-target-bdw-gc was given. | |
6543 | if test "${with_target_bdw_gc+set}" = set; then : | |
6544 | withval=$with_target_bdw_gc; | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | # Check whether --with-target-bdw-gc-include was given. | |
6549 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6550 | withval=$with_target_bdw_gc_include; | |
6551 | fi | |
6552 | ||
6553 | ||
6554 | # Check whether --with-target-bdw-gc-lib was given. | |
6555 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6556 | withval=$with_target_bdw_gc_lib; | |
6557 | fi | |
6558 | ||
6559 | ||
6560 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6562 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6563 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
74dfdbe3 | 6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6565 | $as_echo "using bdw-gc in default locations" >&6; } | |
baf71228 | 6566 | else |
6567 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
f00f02a3 | 6568 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
baf71228 | 6569 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
f00f02a3 | 6570 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
baf71228 | 6571 | else |
6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6573 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6574 | fi | |
6575 | fi | |
03869f98 | 6576 | esac |
6577 | ||
efa02472 | 6578 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
b33ca042 | 6579 | case ,${enable_languages}, in |
df148e44 | 6580 | *,c++,*) |
efa02472 | 6581 | # Disable libitm, libsanitizer if we're not building libstdc++ |
df148e44 | 6582 | case "${noconfigdirs}" in |
6583 | *target-libstdc++-v3*) | |
efa02472 | 6584 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
df148e44 | 6585 | ;; |
6586 | *) ;; | |
6587 | esac | |
6588 | ;; | |
b33ca042 | 6589 | *) |
efa02472 | 6590 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
b33ca042 | 6591 | ;; |
6592 | esac | |
6593 | ||
e8eddfdd | 6594 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6595 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6596 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6597 | ||
6598 | notsupp="" | |
6599 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6600 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6601 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6602 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6603 | if test -r $srcdir/$dirname/configure ; then | |
6604 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6605 | true | |
6606 | else | |
6607 | notsupp="$notsupp $dir" | |
6608 | fi | |
6609 | fi | |
6610 | fi | |
e8eddfdd | 6611 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6612 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6613 | if test -r $srcdir/$dirname/configure ; then | |
6614 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6615 | true | |
6616 | else | |
6617 | notsupp="$notsupp $dir" | |
6618 | fi | |
6619 | fi | |
6620 | fi | |
8e1fea1a | 6621 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6622 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6623 | if test -r $srcdir/$dirname/configure ; then | |
6624 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6625 | true | |
6626 | else | |
6627 | notsupp="$notsupp $dir" | |
6628 | fi | |
6629 | fi | |
6630 | fi | |
6631 | done | |
6632 | ||
8e1fea1a | 6633 | # Quietly strip out all directories which aren't configurable in this tree. |
6634 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6635 | # is now the case. | |
2f8725b0 | 6636 | build_configdirs_all="$build_configdirs" |
6637 | build_configdirs= | |
6638 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6639 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6640 | if test -f ${srcdir}/$j/configure ; then |
6641 | build_configdirs="${build_configdirs} $i" | |
6642 | fi | |
6643 | done | |
6644 | ||
8e1fea1a | 6645 | configdirs_all="$configdirs" |
6646 | configdirs= | |
6647 | for i in ${configdirs_all} ; do | |
6648 | if test -f ${srcdir}/$i/configure ; then | |
6649 | configdirs="${configdirs} $i" | |
6650 | fi | |
6651 | done | |
2f8725b0 | 6652 | |
8e1fea1a | 6653 | target_configdirs_all="$target_configdirs" |
6654 | target_configdirs= | |
6655 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6656 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6657 | if test -f ${srcdir}/$j/configure ; then |
6658 | target_configdirs="${target_configdirs} $i" | |
6659 | fi | |
6660 | done | |
6661 | ||
1015a063 | 6662 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6663 | # so we have to add it after the preceding checks. | |
6664 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6665 | then | |
6666 | case " $configdirs " in | |
6667 | *" libiberty "*) | |
6668 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6669 | configdirs="$configdirs libiberty-linker-plugin" | |
6670 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6671 | --with-libiberty=../libiberty-linker-plugin";; | |
6672 | *) | |
f00f02a3 | 6673 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1015a063 | 6674 | esac |
6675 | fi | |
6676 | ||
944792ef | 6677 | # Sometimes we have special requirements for the host libiberty. |
6678 | extra_host_libiberty_configure_flags= | |
c850ece7 | 6679 | extra_host_zlib_configure_flags= |
944792ef | 6680 | case " $configdirs " in |
6681 | *" lto-plugin "* | *" libcc1 "*) | |
6682 | # When these are to be built as shared libraries, the same applies to | |
6683 | # libiberty. | |
6684 | extra_host_libiberty_configure_flags=--enable-shared | |
6685 | ;; | |
c850ece7 | 6686 | *" bfd "*) |
6687 | # When bfd is to be built as a shared library, the same applies to | |
6688 | # zlib. | |
6689 | if test "$enable_shared" = "yes"; then | |
6690 | extra_host_zlib_configure_flags=--enable-host-shared | |
6691 | fi | |
6692 | ;; | |
944792ef | 6693 | esac |
6694 | ||
6695 | ||
c850ece7 | 6696 | |
8e1fea1a | 6697 | # Produce a warning message for the subdirs we can't configure. |
6698 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6699 | # FSF releases, it's important to let people know when their machine isn't | |
6700 | # supported by the one or two programs in a package. | |
6701 | ||
6702 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6703 | # If $appdirs is non-empty, at least one of those directories must still | |
6704 | # be configured, or we error out. (E.g., if the gas release supports a | |
6705 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6706 | # pretend that all is well.) | |
6707 | if test -n "$appdirs" ; then | |
6708 | for dir in $appdirs ; do | |
6709 | if test -r $dir/Makefile.in ; then | |
6710 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6711 | appdirs="" | |
6712 | break | |
6713 | fi | |
2f8725b0 | 6714 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6715 | appdirs="" |
6716 | break | |
6717 | fi | |
6718 | fi | |
6719 | done | |
6720 | if test -n "$appdirs" ; then | |
6721 | echo "*** This configuration is not supported by this package." 1>&2 | |
6722 | exit 1 | |
6723 | fi | |
6724 | fi | |
6725 | # Okay, some application will build, or we don't care to check. Still | |
6726 | # notify of subdirs not getting built. | |
6727 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6728 | echo " ${notsupp}" 1>&2 | |
6729 | echo " (Any other directories should still work fine.)" 1>&2 | |
6730 | fi | |
6731 | ||
6732 | case "$host" in | |
6733 | *msdosdjgpp*) | |
6734 | enable_gdbtk=no ;; | |
6735 | esac | |
6736 | ||
eae5b2bc | 6737 | # To find our prefix, in gcc_cv_tool_prefix. |
6738 | ||
6739 | # The user is always right. | |
6740 | if test "${PATH_SEPARATOR+set}" != set; then | |
6741 | echo "#! /bin/sh" >conf$$.sh | |
6742 | echo "exit 0" >>conf$$.sh | |
6743 | chmod +x conf$$.sh | |
6744 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6745 | PATH_SEPARATOR=';' | |
6746 | else | |
6747 | PATH_SEPARATOR=: | |
6748 | fi | |
6749 | rm -f conf$$.sh | |
6750 | fi | |
6751 | ||
6752 | ||
0812bb06 | 6753 | get_gcc_base_ver="cat" |
6754 | ||
6755 | # Check whether --with-gcc-major-version-only was given. | |
6756 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6757 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
1e42d5c6 | 6758 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
0812bb06 | 6759 | fi |
6760 | ||
6761 | fi | |
6762 | ||
6763 | ||
6764 | ||
6765 | ||
6766 | ||
eae5b2bc | 6767 | |
6768 | if test "x$exec_prefix" = xNONE; then | |
6769 | if test "x$prefix" = xNONE; then | |
6770 | gcc_cv_tool_prefix=$ac_default_prefix | |
6771 | else | |
6772 | gcc_cv_tool_prefix=$prefix | |
6773 | fi | |
6774 | else | |
6775 | gcc_cv_tool_prefix=$exec_prefix | |
6776 | fi | |
6777 | ||
6778 | # If there is no compiler in the tree, use the PATH only. In any | |
6779 | # case, if there is no compiler in the tree nobody should use | |
6780 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6781 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
0812bb06 | 6782 | if test x$with_gcc_major_version_only = xyes ; then |
6783 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6784 | else | |
6785 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6786 | fi | |
eae5b2bc | 6787 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6788 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6789 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6790 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6791 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6792 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6793 | else | |
6794 | gcc_cv_tool_dirs= | |
6795 | fi | |
6796 | ||
6797 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6798 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6799 | fi | |
6800 | ||
6801 | ||
6802 | ||
8e1fea1a | 6803 | copy_dirs= |
6804 | ||
b30fcfae | 6805 | |
cd9a469c | 6806 | # Check whether --with-build-sysroot was given. |
6807 | if test "${with_build_sysroot+set}" = set; then : | |
6808 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6809 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6810 | fi | |
6811 | else | |
6812 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6813 | fi |
ffa8502d | 6814 | |
6815 | ||
5f1f2de5 | 6816 | |
cd9a469c | 6817 | |
6818 | # Check whether --with-debug-prefix-map was given. | |
6819 | if test "${with_debug_prefix_map+set}" = set; then : | |
6820 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6821 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6822 | for debug_map in $withval; do | |
6823 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6824 | done | |
6825 | fi | |
6826 | else | |
6827 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6828 | fi |
6829 | ||
5f1f2de5 | 6830 | |
6831 | ||
c898f165 | 6832 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6833 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6834 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6835 | # We want to ensure that TARGET libraries (which we know are built with | |
6836 | # gcc) are built with "-O2 -g", so include those options when setting | |
6837 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6838 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6839 | if test "x${is_cross_compiler}" = xyes; then |
6840 | CFLAGS_FOR_TARGET="-g -O2" | |
6841 | else | |
6842 | CFLAGS_FOR_TARGET=$CFLAGS | |
6843 | case " $CFLAGS " in | |
6844 | *" -O2 "*) ;; | |
6845 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6846 | esac | |
6847 | case " $CFLAGS " in | |
6848 | *" -g "* | *" -g3 "*) ;; | |
6849 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6850 | esac | |
6851 | fi | |
c898f165 | 6852 | fi |
6853 | ||
6854 | ||
6855 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
f5fad380 | 6856 | if test "x${is_cross_compiler}" = xyes; then |
6857 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6858 | else | |
6859 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6860 | case " $CXXFLAGS " in | |
6861 | *" -O2 "*) ;; | |
6862 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6863 | esac | |
6864 | case " $CXXFLAGS " in | |
6865 | *" -g "* | *" -g3 "*) ;; | |
6866 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6867 | esac | |
6868 | fi | |
c898f165 | 6869 | fi |
6870 | ||
6871 | ||
ed9516f5 | 6872 | |
6873 | ||
8e1fea1a | 6874 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6875 | # the named directory are copied to $(tooldir)/sys-include. | |
6876 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6877 | if test x${is_cross_compiler} = xno ; then | |
6878 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6879 | exit 1 | |
6880 | fi | |
6881 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6882 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6883 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6884 | fi |
6885 | fi | |
6886 | ||
6887 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6888 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6889 | # are permitted. | |
6890 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6891 | if test x${is_cross_compiler} = xno ; then | |
6892 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6893 | exit 1 | |
6894 | fi | |
6895 | if test x"${with_libs}" != xyes ; then | |
6896 | # Copy the libraries in reverse order, so that files in the first named | |
6897 | # library override files in subsequent libraries. | |
eae5b2bc | 6898 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6899 | for l in ${with_libs}; do |
b30fcfae | 6900 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6901 | done |
6902 | fi | |
6903 | fi | |
6904 | ||
7bfefa9d | 6905 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6906 | # |
6907 | # This is done by determining whether or not the appropriate directory | |
6908 | # is available, and by checking whether or not specific configurations | |
6909 | # have requested that this magic not happen. | |
b30fcfae | 6910 | # |
6911 | # The command line options always override the explicit settings in | |
e757a6a8 | 6912 | # configure.ac, and the settings in configure.ac override this magic. |
c47832b1 | 6913 | # |
b30fcfae | 6914 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6915 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6916 | # --without-gnu-ld options for the configure script. Similarly, if |
6917 | # the default is to use the included zlib and you don't want to do that, | |
6918 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6919 | |
6920 | if test x${use_gnu_as} = x && | |
6921 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6922 | with_gnu_as=yes | |
6923 | extra_host_args="$extra_host_args --with-gnu-as" | |
6924 | fi | |
6925 | ||
6926 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6927 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6928 | with_gnu_ld=yes |
6929 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6930 | fi | |
6931 | ||
7bfefa9d | 6932 | if test x${use_included_zlib} = x && |
6933 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6934 | : | |
6935 | else | |
6936 | with_system_zlib=yes | |
6937 | extra_host_args="$extra_host_args --with-system-zlib" | |
6938 | fi | |
6939 | ||
c47832b1 | 6940 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6941 | # can detect this case. | |
6942 | ||
6943 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6944 | with_newlib=yes | |
6945 | extra_host_args="$extra_host_args --with-newlib" | |
6946 | fi | |
6947 | ||
8e1fea1a | 6948 | # Handle ${copy_dirs} |
6949 | set fnord ${copy_dirs} | |
6950 | shift | |
6951 | while test $# != 0 ; do | |
6952 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6953 | : | |
6954 | else | |
6955 | echo Copying $1 to $2 | |
6956 | ||
6957 | # Use the install script to create the directory and all required | |
6958 | # parent directories. | |
6959 | if test -d $2 ; then | |
6960 | : | |
6961 | else | |
6962 | echo >config.temp | |
6963 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6964 | fi | |
6965 | ||
6966 | # Copy the directory, assuming we have tar. | |
6967 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6968 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6969 | ||
6970 | # It is the responsibility of the user to correctly adjust all | |
6971 | # symlinks. If somebody can figure out how to handle them correctly | |
6972 | # here, feel free to add the code. | |
6973 | ||
6974 | echo $1 > $2/COPIED | |
6975 | fi | |
6976 | shift; shift | |
6977 | done | |
6978 | ||
c47832b1 | 6979 | # Determine a target-dependent exec_prefix that the installed |
6980 | # gcc will search in. Keep this list sorted by triplet, with | |
6981 | # the *-*-osname triplets last. | |
6982 | md_exec_prefix= | |
6983 | case "${target}" in | |
09c2d953 | 6984 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6985 | md_exec_prefix=/dev/env/DJDIR/bin |
6986 | ;; | |
c47832b1 | 6987 | *-*-hpux* | \ |
c47832b1 | 6988 | *-*-nto-qnx* | \ |
93faf308 | 6989 | *-*-solaris2*) |
c47832b1 | 6990 | md_exec_prefix=/usr/ccs/bin |
6991 | ;; | |
6992 | esac | |
6993 | ||
71ab34df | 6994 | extra_arflags_for_target= |
6995 | extra_nmflags_for_target= | |
6996 | extra_ranlibflags_for_target= | |
6997 | target_makefile_frag=/dev/null | |
6998 | case "${target}" in | |
57c7de11 | 6999 | spu-*-*) |
7000 | target_makefile_frag="config/mt-spu" | |
7001 | ;; | |
d781ea5c | 7002 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
f8520ad7 | 7003 | target_makefile_frag="config/mt-sde" |
7004 | ;; | |
3013c2c7 | 7005 | mipsisa*-*-elfoabi*) |
7006 | target_makefile_frag="config/mt-mips-elfoabi" | |
7007 | ;; | |
559b0712 | 7008 | mips*-*-*linux* | mips*-*-gnu*) |
7009 | target_makefile_frag="config/mt-mips-gnu" | |
7010 | ;; | |
2481a2c1 | 7011 | nios2-*-elf*) |
7012 | target_makefile_frag="config/mt-nios2-elf" | |
7013 | ;; | |
a703ac2b | 7014 | *-*-linux-android*) |
7015 | target_makefile_frag="config/mt-android" | |
7016 | ;; | |
3bef4012 | 7017 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 7018 | target_makefile_frag="config/mt-gnu" |
71ab34df | 7019 | ;; |
7020 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 7021 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 7022 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7023 | # harmless if we're using GNU nm or ar. | |
7024 | extra_arflags_for_target=" -X32_64" | |
7025 | extra_nmflags_for_target=" -B -X32_64" | |
7026 | ;; | |
71ab34df | 7027 | esac |
7028 | ||
7029 | alphaieee_frag=/dev/null | |
7030 | case $target in | |
7031 | alpha*-*-*) | |
7032 | # This just makes sure to use the -mieee option to build target libs. | |
7033 | # This should probably be set individually by each library. | |
7034 | alphaieee_frag="config/mt-alphaieee" | |
7035 | ;; | |
7036 | esac | |
7037 | ||
7038 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7039 | # the target libraries, similarly if it is not specified, use -Os | |
7040 | # on selected platforms. | |
7041 | ospace_frag=/dev/null | |
7042 | case "${enable_target_optspace}:${target}" in | |
7043 | yes:*) | |
7044 | ospace_frag="config/mt-ospace" | |
7045 | ;; | |
7046 | :d30v-*) | |
7047 | ospace_frag="config/mt-d30v" | |
7048 | ;; | |
1c26a2ee | 7049 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
71ab34df | 7050 | ospace_frag="config/mt-ospace" |
7051 | ;; | |
7052 | no:* | :*) | |
7053 | ;; | |
7054 | *) | |
7055 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7056 | ;; | |
7057 | esac | |
7058 | ||
71ab34df | 7059 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7060 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 7061 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 7062 | build_tooldir=${tooldir} |
7063 | ||
71ab34df | 7064 | # Create a .gdbinit file which runs the one in srcdir |
7065 | # and tells GDB to look there for source files. | |
7066 | ||
7067 | if test -r ${srcdir}/.gdbinit ; then | |
7068 | case ${srcdir} in | |
7069 | .) ;; | |
7070 | *) cat > ./.gdbinit <<EOF | |
7071 | # ${NO_EDIT} | |
7072 | dir ${srcdir} | |
7073 | dir . | |
7074 | source ${srcdir}/.gdbinit | |
7075 | EOF | |
7076 | ;; | |
7077 | esac | |
7078 | fi | |
7079 | ||
71ab34df | 7080 | # Make sure that the compiler is able to generate an executable. If it |
7081 | # can't, we are probably in trouble. We don't care whether we can run the | |
7082 | # executable--we might be using a cross compiler--we only care whether it | |
7083 | # can be created. At this point the main configure script has set CC. | |
7084 | we_are_ok=no | |
7085 | echo "int main () { return 0; }" > conftest.c | |
7086 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7087 | if test $? = 0 ; then | |
7088 | if test -s conftest || test -s conftest.exe ; then | |
7089 | we_are_ok=yes | |
7090 | fi | |
b30fcfae | 7091 | fi |
71ab34df | 7092 | case $we_are_ok in |
7093 | no) | |
7094 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7095 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7096 | rm -f conftest* | |
7097 | exit 1 | |
7098 | ;; | |
7099 | esac | |
7100 | rm -f conftest* | |
7101 | ||
7d804f04 | 7102 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 7103 | case "${host}" in |
7104 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 7105 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 7106 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 7107 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7108 | esac | |
7109 | ||
7d804f04 | 7110 | # On systems where the dynamic library environment variable is PATH, |
7111 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
7112 | # built executables to PATH. | |
7113 | if test "$RPATH_ENVVAR" = PATH; then | |
7114 | GCC_SHLIB_SUBDIR=/shlib | |
7115 | else | |
7116 | GCC_SHLIB_SUBDIR= | |
7117 | fi | |
7118 | ||
ee055341 | 7119 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7120 | case $enable_bootstrap in | |
7121 | yes) | |
7122 | bootstrap_suffix=bootstrap | |
7123 | BUILD_CONFIG=bootstrap-debug | |
7124 | ;; | |
7125 | no) | |
7126 | bootstrap_suffix=no-bootstrap | |
7127 | BUILD_CONFIG= | |
7128 | ;; | |
7129 | esac | |
7130 | ||
7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7132 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7133 | ||
7134 | ||
7135 | # Check whether --with-build-config was given. | |
7136 | if test "${with_build_config+set}" = set; then : | |
7137 | withval=$with_build_config; case $with_build_config in | |
7138 | yes) with_build_config= ;; | |
7139 | no) with_build_config= BUILD_CONFIG= ;; | |
7140 | esac | |
7141 | fi | |
7142 | ||
7143 | ||
7144 | if test "x${with_build_config}" != x; then | |
7145 | BUILD_CONFIG=$with_build_config | |
7146 | else | |
7147 | case $BUILD_CONFIG in | |
7148 | bootstrap-debug) | |
7149 | if echo "int f (void) { return 0; }" > conftest.c && | |
7150 | ${CC} -c conftest.c && | |
7151 | mv conftest.o conftest.o.g0 && | |
7152 | ${CC} -c -g conftest.c && | |
7153 | mv conftest.o conftest.o.g && | |
7154 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7155 | : | |
7156 | else | |
7157 | BUILD_CONFIG= | |
7158 | fi | |
7159 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7160 | ;; | |
7161 | esac | |
7162 | fi | |
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7164 | $as_echo "$BUILD_CONFIG" >&6; } | |
7165 | ||
7166 | ||
7167 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7169 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7170 | # Check whether --enable-vtable-verify was given. | |
7171 | if test "${enable_vtable_verify+set}" = set; then : | |
7172 | enableval=$enable_vtable_verify; case "$enableval" in | |
7173 | yes) enable_vtable_verify=yes ;; | |
7174 | no) enable_vtable_verify=no ;; | |
7175 | *) enable_vtable_verify=no;; | |
7176 | esac | |
7177 | else | |
7178 | enable_vtable_verify=no | |
7179 | fi | |
7180 | ||
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7182 | $as_echo "$enable_vtable_verify" >&6; } | |
7183 | ||
71ab34df | 7184 | # Record target_configdirs and the configure arguments for target and |
7185 | # build configuration in Makefile. | |
7186 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 7187 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
f4ae1a00 | 7188 | bootstrap_fixincludes=no |
71ab34df | 7189 | |
5c96a839 | 7190 | # If we are building libgomp, bootstrap it. |
7191 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7192 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7193 | fi | |
7194 | ||
ee055341 | 7195 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7196 | # or bootstrap-ubsan, bootstrap it. | |
7197 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7198 | case "$BUILD_CONFIG" in | |
7199 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7200 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
f4ae1a00 | 7201 | bootstrap_fixincludes=yes |
ee055341 | 7202 | ;; |
7203 | esac | |
579abfee | 7204 | fi |
7205 | ||
ee055341 | 7206 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7207 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7208 | test "$enable_vtable_verify" != no; then | |
b710ec85 | 7209 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7210 | fi | |
7211 | ||
71ab34df | 7212 | # Determine whether gdb needs tk/tcl or not. |
7213 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7214 | # and in that case we want gdb to be built without tk. Ugh! | |
7215 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7216 | # so we should be able to put the 'maybe's in unconditionally and | |
7217 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7218 | # 100% sure that that's safe though. | |
8fdaf281 | 7219 | |
f843f075 | 7220 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 7221 | case "$enable_gdbtk" in |
7222 | no) | |
7223 | GDB_TK="" ;; | |
8fdaf281 | 7224 | yes) |
7225 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 7226 | *) |
8fdaf281 | 7227 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7228 | # distro. Eventually someone will fix this and move Insight, nee | |
7229 | # gdbtk to a separate directory. | |
7230 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7231 | GDB_TK="${gdb_tk}" | |
7232 | else | |
7233 | GDB_TK="" | |
7234 | fi | |
7235 | ;; | |
71ab34df | 7236 | esac |
415470be | 7237 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7238 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 7239 | |
4b002610 | 7240 | # gdb depends on gnulib, but as nothing else does, only include it if |
7241 | # gdb is built. | |
7242 | if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then | |
7243 | # The Makefile provides the ordering, so it's enough here to add | |
7244 | # gnulib to the list. | |
7245 | configdirs="${configdirs} gnulib" | |
7246 | fi | |
7247 | ||
01b41571 | 7248 | # Strip out unwanted targets. |
6f4f34a7 | 7249 | |
7250 | # While at that, we remove Makefiles if we were started for recursive | |
7251 | # configuration, so that the top-level Makefile reconfigures them, | |
7252 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 7253 | |
8bb79148 | 7254 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7255 | # but now we're fixing up the Makefile ourselves with the additional | |
7256 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7257 | # extrasub-{build,host,target} not because there is any reason to split | |
7258 | # the substitutions up that way, but only to remain below the limit of | |
7259 | # 99 commands in a script, for HP-UX sed. | |
9488d90e | 7260 | |
7261 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
7262 | # configure will not warn you at all. | |
6f4f34a7 | 7263 | |
7b5fee3e | 7264 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7265 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7266 | yes:yes:*\ gold\ *:*) | |
f00f02a3 | 7267 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
7b5fee3e | 7268 | ;; |
7269 | esac | |
7270 | ||
8bb79148 | 7271 | extrasub_build= |
2f8725b0 | 7272 | for module in ${build_configdirs} ; do |
93f93279 | 7273 | if test -z "${no_recursion}" \ |
7274 | && test -f ${build_subdir}/${module}/Makefile; then | |
7275 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7276 | rm -f ${build_subdir}/${module}/Makefile | |
7277 | fi | |
8bb79148 | 7278 | extrasub_build="$extrasub_build |
93f93279 | 7279 | /^@if build-$module\$/d |
7280 | /^@endif build-$module\$/d | |
9488d90e | 7281 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
93f93279 | 7282 | /^@if build-$module-$bootstrap_suffix\$/d |
9488d90e | 7283 | /^@endif build-$module-$bootstrap_suffix\$/d |
7284 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
93f93279 | 7285 | done |
8bb79148 | 7286 | extrasub_host= |
93f93279 | 7287 | for module in ${configdirs} ; do |
9c19a746 | 7288 | if test -z "${no_recursion}"; then |
35d84d10 | 7289 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7290 | if test -f ${file}; then |
7291 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7292 | rm -f ${file} | |
7293 | fi | |
7294 | done | |
93f93279 | 7295 | fi |
f4ae1a00 | 7296 | case ${module},${bootstrap_fixincludes} in |
7297 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7298 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7299 | esac | |
8bb79148 | 7300 | extrasub_host="$extrasub_host |
93f93279 | 7301 | /^@if $module\$/d |
7302 | /^@endif $module\$/d | |
9488d90e | 7303 | /^@unless $module\$/,/^@endunless $module\$/d |
f4ae1a00 | 7304 | /^@if $module-$host_bootstrap_suffix\$/d |
9488d90e | 7305 | /^@endif $module-$host_bootstrap_suffix\$/d |
7306 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
93f93279 | 7307 | done |
8bb79148 | 7308 | extrasub_target= |
93f93279 | 7309 | for module in ${target_configdirs} ; do |
7310 | if test -z "${no_recursion}" \ | |
7311 | && test -f ${target_subdir}/${module}/Makefile; then | |
7312 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7313 | rm -f ${target_subdir}/${module}/Makefile | |
7314 | fi | |
7ab76cec | 7315 | |
7316 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7317 | case $bootstrap_target_libs in | |
7318 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7319 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7320 | esac | |
7321 | ||
8bb79148 | 7322 | extrasub_target="$extrasub_target |
93f93279 | 7323 | /^@if target-$module\$/d |
7324 | /^@endif target-$module\$/d | |
9488d90e | 7325 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
7ab76cec | 7326 | /^@if target-$module-$target_bootstrap_suffix\$/d |
9488d90e | 7327 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
7328 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7329 | done |
7330 | ||
8bb79148 | 7331 | # Do the final fixup along with target modules. |
7332 | extrasub_target="$extrasub_target | |
9488d90e | 7333 | /^@if /,/^@endif /d |
7334 | /^@unless /d | |
7335 | /^@endunless /d" | |
71ab34df | 7336 | |
7337 | # Create the serialization dependencies. This uses a temporary file. | |
7338 | ||
cd9a469c | 7339 | # Check whether --enable-serial-configure was given. |
7340 | if test "${enable_serial_configure+set}" = set; then : | |
7341 | enableval=$enable_serial_configure; | |
7342 | fi | |
11d8013a | 7343 | |
7344 | ||
622c1fa9 | 7345 | case ${enable_serial_configure} in |
7346 | yes) | |
7347 | enable_serial_build_configure=yes | |
7348 | enable_serial_host_configure=yes | |
7349 | enable_serial_target_configure=yes | |
7350 | ;; | |
7351 | esac | |
7352 | ||
71ab34df | 7353 | # These force 'configure's to be done one at a time, to avoid problems |
7354 | # with contention over a shared config.cache. | |
7355 | rm -f serdep.tmp | |
11d8013a | 7356 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7357 | olditem= |
622c1fa9 | 7358 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7359 | for item in ${build_configdirs} ; do |
7360 | case ${olditem} in | |
7361 | "") ;; | |
11d8013a | 7362 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7363 | esac |
7364 | olditem=${item} | |
7365 | done | |
7366 | olditem= | |
622c1fa9 | 7367 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7368 | for item in ${configdirs} ; do |
7369 | case ${olditem} in | |
7370 | "") ;; | |
11d8013a | 7371 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7372 | esac |
7373 | olditem=${item} | |
7374 | done | |
7375 | olditem= | |
622c1fa9 | 7376 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7377 | for item in ${target_configdirs} ; do |
7378 | case ${olditem} in | |
7379 | "") ;; | |
11d8013a | 7380 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7381 | esac |
7382 | olditem=${item} | |
7383 | done | |
7384 | serialization_dependencies=serdep.tmp | |
7385 | ||
7386 | ||
11d8013a | 7387 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7388 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7389 | # might not want to pass down to subconfigures. The exception being |
7390 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7391 | # files altogether, and which should be passed on to subconfigures. | |
7392 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7393 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7394 | baseargs= |
0e4d1862 | 7395 | tbaseargs= |
b30fcfae | 7396 | keep_next=no |
7397 | skip_next=no | |
7398 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7399 | for ac_arg |
7400 | do | |
b30fcfae | 7401 | if test X"$skip_next" = X"yes"; then |
7402 | skip_next=no | |
7403 | continue | |
7404 | fi | |
7405 | if test X"$keep_next" = X"yes"; then | |
7406 | case $ac_arg in | |
7407 | *\'*) | |
7408 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7409 | esac | |
7410 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7411 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7412 | keep_next=no |
7413 | continue | |
7414 | fi | |
7415 | ||
7416 | # Handle separated arguments. Based on the logic generated by | |
7417 | # autoconf 2.59. | |
7418 | case $ac_arg in | |
7419 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7420 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7421 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7422 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7423 | separate_arg=no | |
7424 | ;; | |
7425 | -*) | |
7426 | separate_arg=yes | |
7427 | ;; | |
7428 | *) | |
7429 | separate_arg=no | |
7430 | ;; | |
7431 | esac | |
7432 | ||
0e4d1862 | 7433 | skip_targ=no |
7434 | case $ac_arg in | |
7435 | ||
7436 | --with-* | --without-*) | |
7437 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7438 | ||
7439 | case $libopt in | |
7440 | *[-_]include) | |
7441 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7442 | ;; | |
7443 | *[-_]lib) | |
7444 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7445 | ;; | |
7446 | *) | |
7447 | lib=$libopt | |
7448 | ;; | |
7449 | esac | |
7450 | ||
7451 | ||
7452 | case $lib in | |
572cf1f7 | 7453 | mpc | mpfr | gmp | isl) |
0e4d1862 | 7454 | # If we're processing --with-$lib, --with-$lib-include or |
7455 | # --with-$lib-lib, for one of the libs above, and target is | |
7456 | # different from host, don't pass the current argument to any | |
7457 | # target library's configure. | |
7458 | if test x$is_cross_compiler = xyes; then | |
7459 | skip_targ=yes | |
7460 | fi | |
7461 | ;; | |
7462 | esac | |
7463 | ;; | |
7464 | esac | |
7465 | ||
b30fcfae | 7466 | case "$ac_arg" in |
412c2e81 | 7467 | --cache-file=/dev/null | \ |
7468 | -cache-file=/dev/null ) | |
7469 | # Handled here to avoid the test to skip args below. | |
7470 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7471 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7472 | # Assert: $separate_arg should always be no. |
7473 | keep_next=$separate_arg | |
7474 | ;; | |
b30fcfae | 7475 | --no*) |
7476 | continue | |
7477 | ;; | |
7478 | --c* | \ | |
7479 | --sr* | \ | |
7480 | --ho* | \ | |
7481 | --bu* | \ | |
7482 | --t* | \ | |
7483 | --program-* | \ | |
7484 | -cache_file* | \ | |
7485 | -srcdir* | \ | |
7486 | -host* | \ | |
7487 | -build* | \ | |
7488 | -target* | \ | |
7489 | -program-prefix* | \ | |
7490 | -program-suffix* | \ | |
7491 | -program-transform-name* ) | |
7492 | skip_next=$separate_arg | |
7493 | continue | |
7494 | ;; | |
7495 | -*) | |
7496 | # An option. Add it. | |
7497 | case $ac_arg in | |
7498 | *\'*) | |
7499 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7500 | esac | |
7501 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7502 | if test X"$skip_targ" = Xno; then |
7503 | tbaseargs="$tbaseargs '$ac_arg'" | |
7504 | fi | |
b30fcfae | 7505 | keep_next=$separate_arg |
7506 | ;; | |
7507 | *) | |
7508 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7509 | # pass it down; let the Makefile handle this. | |
7510 | continue | |
7511 | ;; | |
7512 | esac | |
7513 | done | |
7514 | # Remove the initial space we just introduced and, as these will be | |
7515 | # expanded by make, quote '$'. | |
7516 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7517 | |
fbfea1fa | 7518 | # Add in --program-transform-name, after --program-prefix and |
7519 | # --program-suffix have been applied to it. Autoconf has already | |
7520 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7521 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7522 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7523 | # Also, because we want to override the logic in subdir configure scripts to |
7524 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7525 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7526 | ${program_transform_name} | |
7527 | EOF_SED | |
7528 | gcc_transform_name=`cat conftestsed.out` | |
7529 | rm -f conftestsed.out | |
7530 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7531 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7532 | if test "$silent" = yes; then |
7533 | baseargs="$baseargs --silent" | |
0e4d1862 | 7534 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7535 | fi |
cd2f3773 | 7536 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7537 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7538 | |
372a3f1e | 7539 | # Record and document user additions to sub configure arguments. |
7540 | ||
7541 | ||
7542 | ||
7543 | ||
71ab34df | 7544 | # For the build-side libraries, we just need to pretend we're native, |
7545 | # and not use the same cache file. Multilibs are neither needed nor | |
b85b703b | 7546 | # desired. We can't even use the same cache file for all build-side |
7547 | # libraries, as they're compiled differently; some with C, some with | |
7548 | # C++ or with different feature-enabling options. | |
7549 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
71ab34df | 7550 | |
7551 | # For host modules, accept cache file option, or specification as blank. | |
7552 | case "${cache_file}" in | |
7553 | "") # empty | |
7554 | cache_file_option="" ;; | |
7555 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7556 | cache_file_option="--cache-file=${cache_file}" ;; | |
7557 | *) # relative path | |
7558 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7559 | esac | |
7560 | ||
ba1081ef | 7561 | # Host dirs don't like to share a cache file either, horribly enough. |
7562 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7563 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7564 | |
0e4d1862 | 7565 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7566 | |
7567 | # Passing a --with-cross-host argument lets the target libraries know | |
7568 | # whether they are being built with a cross-compiler or being built | |
7569 | # native. However, it would be better to use other mechanisms to make the | |
7570 | # sorts of decisions they want to make on this basis. Please consider | |
7571 | # this option to be deprecated. FIXME. | |
7572 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7573 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7574 | fi |
7575 | ||
87ebeb4c | 7576 | # Special user-friendly check for native x86_64-linux build, if |
7577 | # multilib is not explicitly enabled. | |
7578 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7579 | x86_64-*linux*:yes:$build:$build:) | |
6efd9d79 | 7580 | # Make sure we have a development environment that handles 32-bit |
87ebeb4c | 7581 | dev64=no |
7582 | echo "int main () { return 0; }" > conftest.c | |
7583 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7584 | if test $? = 0 ; then | |
7585 | if test -s conftest || test -s conftest.exe ; then | |
7586 | dev64=yes | |
7587 | fi | |
7588 | fi | |
7589 | rm -f conftest* | |
7590 | if test x${dev64} != xyes ; then | |
f00f02a3 | 7591 | 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 |
87ebeb4c | 7592 | fi |
7593 | ;; | |
7594 | esac | |
7595 | ||
59a40389 | 7596 | # Default to --enable-multilib. |
7597 | if test x${enable_multilib} = x ; then | |
71ab34df | 7598 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7599 | fi |
71ab34df | 7600 | |
7601 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7602 | # changed from the earlier setting of with_newlib. | |
7603 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7604 | target_configargs="--with-newlib ${target_configargs}" | |
7605 | fi | |
7606 | ||
74fef112 | 7607 | # Different target subdirs use different values of certain variables |
7608 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7609 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7610 | # it doesn't automatically accept command-line overrides of them. | |
7611 | # This means it's not safe for target subdirs to share a cache file, | |
7612 | # which is disgusting, but there you have it. Hopefully this can be | |
7613 | # fixed in future. It's still worthwhile to use a cache file for each | |
7614 | # directory. I think. | |
7615 | ||
a8abbd9d | 7616 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7617 | # We need to pass --target, as newer autoconf's requires consistency | |
7618 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7619 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7620 | |
71ab34df | 7621 | FLAGS_FOR_TARGET= |
7622 | case " $target_configdirs " in | |
7623 | *" newlib "*) | |
7624 | case " $target_configargs " in | |
7625 | *" --with-newlib "*) | |
7626 | case "$target" in | |
fe284774 | 7627 | *-cygwin*) |
db54564d | 7628 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
fe284774 | 7629 | ;; |
71ab34df | 7630 | esac |
7631 | ||
7632 | # If we're not building GCC, don't discard standard headers. | |
7633 | if test -d ${srcdir}/gcc; then | |
7634 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7635 | ||
7636 | if test "${build}" != "${host}"; then | |
7637 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7638 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7639 | # to it. This is right: we don't want to search that directory | |
7640 | # for binaries, but we want the header files in there, so add | |
7641 | # them explicitly. | |
e619f0a6 | 7642 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7643 | |
7644 | # Someone might think of using the pre-installed headers on | |
7645 | # Canadian crosses, in case the installed compiler is not fully | |
7646 | # compatible with the compiler being built. In this case, it | |
7647 | # would be better to flag an error than risking having | |
7648 | # incompatible object files being constructed. We can't | |
7649 | # guarantee that an error will be flagged, but let's hope the | |
7650 | # compiler will do it, when presented with incompatible header | |
7651 | # files. | |
7652 | fi | |
7653 | fi | |
7654 | ||
7655 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7656 | i[3456789]86-*-linux*-no) |
71ab34df | 7657 | # Here host == target, so we don't need to build gcc, |
7658 | # so we don't want to discard standard headers. | |
7659 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7660 | ;; | |
7661 | *) | |
7662 | # If we're building newlib, use its generic headers last, but search | |
7663 | # for any libc-related directories first (so make it the last -B | |
7664 | # switch). | |
7665 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7666 | |
7667 | # If we're building libgloss, find the startup file, simulator library | |
7668 | # and linker script. | |
7669 | case " $target_configdirs " in | |
7670 | *" libgloss "*) | |
7671 | # Look for startup file, simulator library and maybe linker script. | |
7672 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7673 | # Look for libnosys.a in case the target needs it. | |
7674 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7675 | # Most targets have the linker script in the source directory. | |
7676 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7677 | ;; | |
7678 | esac | |
71ab34df | 7679 | ;; |
7680 | esac | |
7681 | ;; | |
7682 | esac | |
7683 | ;; | |
7684 | esac | |
fe284774 | 7685 | |
d6d689df | 7686 | case "$target" in |
fe284774 | 7687 | x86_64-*mingw* | *-w64-mingw*) |
7688 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7689 | # however, use a symlink named 'mingw' in ${prefix} . | |
7690 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7691 | ;; | |
7692 | *-mingw*) | |
7693 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7694 | 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' | |
7695 | ;; | |
d6d689df | 7696 | esac |
71ab34df | 7697 | |
d8e9ea04 | 7698 | # Allow the user to override the flags for |
7699 | # our build compiler if desired. | |
823e8b8d | 7700 | if test x"${build}" = x"${host}" ; then |
7701 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7702 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7703 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7704 | fi | |
d8e9ea04 | 7705 | |
71ab34df | 7706 | # On Canadian crosses, we'll be searching the right directories for |
7707 | # the previously-installed cross compiler, so don't bother to add | |
7708 | # flags for directories within the install tree of the compiler | |
7709 | # being built; programs in there won't even run. | |
7710 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7711 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7712 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7713 | fi |
7714 | ||
7715 | if test "x${use_gnu_ld}" = x && | |
7716 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7717 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7718 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7719 | fi |
7720 | ||
24714a39 | 7721 | # Search for other target-specific linker scripts and such. |
7722 | case "${target}" in | |
38d7211b | 7723 | mep*) |
7724 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7725 | ;; | |
24714a39 | 7726 | esac |
7727 | ||
71ab34df | 7728 | # Makefile fragments. |
03c65091 | 7729 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7730 | do | |
7731 | eval fragval=\$$frag | |
7732 | if test $fragval != /dev/null; then | |
7733 | eval $frag=${srcdir}/$fragval | |
7734 | fi | |
7735 | done | |
71ab34df | 7736 | |
7737 | ||
7738 | ||
7739 | ||
7740 | ||
7741 | # Miscellanea: directories, flags, etc. | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7d804f04 | 7749 | |
2f8725b0 | 7750 | # Build module lists & subconfigure args. |
71ab34df | 7751 | |
7752 | ||
7753 | ||
f5aebe3e | 7754 | # Host module lists & subconfigure args. |
7755 | ||
7756 | ||
7757 | ||
1fda3360 | 7758 | |
f5aebe3e | 7759 | # Target module lists & subconfigure args. |
7760 | ||
7761 | ||
7762 | ||
7763 | # Build tools. | |
7764 | ||
7765 | ||
7766 | ||
93c5e793 | 7767 | |
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
03385ed3 | 7780 | |
f5aebe3e | 7781 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7782 | # on the build machine. These are used if the Makefile can't locate these | |
7783 | # programs in objdir. | |
7784 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7785 | ||
7786 | for ac_prog in 'bison -y' byacc yacc | |
7787 | do | |
b30fcfae | 7788 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7789 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7791 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7792 | if ${ac_cv_prog_YACC+:} false; then : |
cd9a469c | 7793 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7794 | else |
7795 | if test -n "$YACC"; then | |
7796 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7797 | else | |
b30fcfae | 7798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7799 | for as_dir in $PATH | |
7800 | do | |
7801 | IFS=$as_save_IFS | |
7802 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7803 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7805 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7807 | break 2 |
7808 | fi | |
7809 | done | |
cd9a469c | 7810 | done |
7811 | IFS=$as_save_IFS | |
b30fcfae | 7812 | |
f5aebe3e | 7813 | fi |
7814 | fi | |
b30fcfae | 7815 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7816 | if test -n "$YACC"; then |
cd9a469c | 7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7818 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7819 | else |
cd9a469c | 7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7821 | $as_echo "no" >&6; } | |
f5aebe3e | 7822 | fi |
7823 | ||
cd9a469c | 7824 | |
b30fcfae | 7825 | test -n "$YACC" && break |
f5aebe3e | 7826 | done |
7827 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7828 | ||
7829 | case " $build_configdirs " in | |
7830 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7831 | esac |
7832 | ||
7833 | for ac_prog in bison | |
7834 | do | |
b30fcfae | 7835 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7836 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7838 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7839 | if ${ac_cv_prog_BISON+:} false; then : |
cd9a469c | 7840 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7841 | else |
7842 | if test -n "$BISON"; then | |
7843 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7844 | else | |
b30fcfae | 7845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7846 | for as_dir in $PATH | |
7847 | do | |
7848 | IFS=$as_save_IFS | |
7849 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7850 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7852 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7854 | break 2 |
7855 | fi | |
7856 | done | |
cd9a469c | 7857 | done |
7858 | IFS=$as_save_IFS | |
b30fcfae | 7859 | |
f5aebe3e | 7860 | fi |
7861 | fi | |
b30fcfae | 7862 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7863 | if test -n "$BISON"; then |
cd9a469c | 7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7865 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7866 | else |
cd9a469c | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7868 | $as_echo "no" >&6; } | |
f5aebe3e | 7869 | fi |
7870 | ||
cd9a469c | 7871 | |
b30fcfae | 7872 | test -n "$BISON" && break |
f5aebe3e | 7873 | done |
7874 | test -n "$BISON" || BISON="$MISSING bison" | |
7875 | ||
7876 | case " $build_configdirs " in | |
7877 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7878 | esac | |
7879 | ||
7880 | for ac_prog in gm4 gnum4 m4 | |
7881 | do | |
b30fcfae | 7882 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7883 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7885 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7886 | if ${ac_cv_prog_M4+:} false; then : |
cd9a469c | 7887 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7888 | else |
7889 | if test -n "$M4"; then | |
7890 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7891 | else | |
b30fcfae | 7892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7893 | for as_dir in $PATH | |
7894 | do | |
7895 | IFS=$as_save_IFS | |
7896 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7897 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7899 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7901 | break 2 |
7902 | fi | |
7903 | done | |
cd9a469c | 7904 | done |
7905 | IFS=$as_save_IFS | |
b30fcfae | 7906 | |
f5aebe3e | 7907 | fi |
7908 | fi | |
b30fcfae | 7909 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7910 | if test -n "$M4"; then |
cd9a469c | 7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7912 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7913 | else |
cd9a469c | 7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7915 | $as_echo "no" >&6; } | |
f5aebe3e | 7916 | fi |
7917 | ||
cd9a469c | 7918 | |
b30fcfae | 7919 | test -n "$M4" && break |
f5aebe3e | 7920 | done |
7921 | test -n "$M4" || M4="$MISSING m4" | |
7922 | ||
7923 | case " $build_configdirs " in | |
7924 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7925 | esac | |
7926 | ||
7927 | for ac_prog in flex lex | |
7928 | do | |
b30fcfae | 7929 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7930 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7932 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7933 | if ${ac_cv_prog_LEX+:} false; then : |
cd9a469c | 7934 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7935 | else |
7936 | if test -n "$LEX"; then | |
7937 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7938 | else | |
b30fcfae | 7939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7940 | for as_dir in $PATH | |
7941 | do | |
7942 | IFS=$as_save_IFS | |
7943 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7944 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7946 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7948 | break 2 |
7949 | fi | |
7950 | done | |
cd9a469c | 7951 | done |
7952 | IFS=$as_save_IFS | |
b30fcfae | 7953 | |
f5aebe3e | 7954 | fi |
7955 | fi | |
b30fcfae | 7956 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7957 | if test -n "$LEX"; then |
cd9a469c | 7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7959 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7960 | else |
cd9a469c | 7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7962 | $as_echo "no" >&6; } | |
f5aebe3e | 7963 | fi |
7964 | ||
cd9a469c | 7965 | |
b30fcfae | 7966 | test -n "$LEX" && break |
f5aebe3e | 7967 | done |
7968 | test -n "$LEX" || LEX="$MISSING flex" | |
7969 | ||
7970 | case " $build_configdirs " in | |
7971 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7972 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7973 | esac | |
7974 | ||
7975 | for ac_prog in flex | |
7976 | do | |
b30fcfae | 7977 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7978 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7980 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7981 | if ${ac_cv_prog_FLEX+:} false; then : |
cd9a469c | 7982 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 7983 | else |
7984 | if test -n "$FLEX"; then | |
7985 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7986 | else | |
b30fcfae | 7987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7988 | for as_dir in $PATH | |
7989 | do | |
7990 | IFS=$as_save_IFS | |
7991 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7992 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 7994 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7996 | break 2 |
7997 | fi | |
7998 | done | |
cd9a469c | 7999 | done |
8000 | IFS=$as_save_IFS | |
b30fcfae | 8001 | |
f5aebe3e | 8002 | fi |
8003 | fi | |
b30fcfae | 8004 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 8005 | if test -n "$FLEX"; then |
cd9a469c | 8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
8007 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 8008 | else |
cd9a469c | 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8010 | $as_echo "no" >&6; } | |
f5aebe3e | 8011 | fi |
8012 | ||
cd9a469c | 8013 | |
b30fcfae | 8014 | test -n "$FLEX" && break |
f5aebe3e | 8015 | done |
8016 | test -n "$FLEX" || FLEX="$MISSING flex" | |
8017 | ||
8018 | case " $build_configdirs " in | |
8019 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
8020 | esac | |
8021 | ||
8022 | for ac_prog in makeinfo | |
8023 | do | |
b30fcfae | 8024 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8025 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8027 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8028 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
cd9a469c | 8029 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8030 | else |
8031 | if test -n "$MAKEINFO"; then | |
8032 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8033 | else | |
b30fcfae | 8034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8035 | for as_dir in $PATH | |
8036 | do | |
8037 | IFS=$as_save_IFS | |
8038 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8039 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8041 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 8042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8043 | break 2 |
8044 | fi | |
8045 | done | |
cd9a469c | 8046 | done |
8047 | IFS=$as_save_IFS | |
b30fcfae | 8048 | |
f5aebe3e | 8049 | fi |
8050 | fi | |
b30fcfae | 8051 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 8052 | if test -n "$MAKEINFO"; then |
cd9a469c | 8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8054 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 8055 | else |
cd9a469c | 8056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8057 | $as_echo "no" >&6; } | |
f5aebe3e | 8058 | fi |
8059 | ||
cd9a469c | 8060 | |
b30fcfae | 8061 | test -n "$MAKEINFO" && break |
f5aebe3e | 8062 | done |
8063 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8064 | ||
8065 | case " $build_configdirs " in | |
8066 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8067 | *) | |
8068 | ||
03caadda | 8069 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 8070 | # higher, else we use the "missing" dummy. |
8071 | if ${MAKEINFO} --version \ | |
03caadda | 8072 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 8073 | : |
8074 | else | |
8075 | MAKEINFO="$MISSING makeinfo" | |
8076 | fi | |
8077 | ;; | |
8078 | ||
8079 | esac | |
71ab34df | 8080 | |
f5aebe3e | 8081 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 8082 | |
f5aebe3e | 8083 | for ac_prog in expect |
8084 | do | |
b30fcfae | 8085 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8086 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8088 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8089 | if ${ac_cv_prog_EXPECT+:} false; then : |
cd9a469c | 8090 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8091 | else |
8092 | if test -n "$EXPECT"; then | |
8093 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8094 | else | |
b30fcfae | 8095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8096 | for as_dir in $PATH | |
8097 | do | |
8098 | IFS=$as_save_IFS | |
8099 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8100 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8102 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 8103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8104 | break 2 |
8105 | fi | |
8106 | done | |
cd9a469c | 8107 | done |
8108 | IFS=$as_save_IFS | |
b30fcfae | 8109 | |
f5aebe3e | 8110 | fi |
8111 | fi | |
b30fcfae | 8112 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 8113 | if test -n "$EXPECT"; then |
cd9a469c | 8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8115 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 8116 | else |
cd9a469c | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8118 | $as_echo "no" >&6; } | |
f5aebe3e | 8119 | fi |
71ab34df | 8120 | |
cd9a469c | 8121 | |
b30fcfae | 8122 | test -n "$EXPECT" && break |
f5aebe3e | 8123 | done |
8124 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 8125 | |
f5aebe3e | 8126 | case " $configdirs " in |
8127 | *" expect "*) | |
8128 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8129 | ;; | |
8130 | esac | |
71ab34df | 8131 | |
f5aebe3e | 8132 | for ac_prog in runtest |
8133 | do | |
b30fcfae | 8134 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 8135 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8137 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8138 | if ${ac_cv_prog_RUNTEST+:} false; then : |
cd9a469c | 8139 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8140 | else |
8141 | if test -n "$RUNTEST"; then | |
8142 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 8143 | else |
b30fcfae | 8144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8145 | for as_dir in $PATH | |
8146 | do | |
8147 | IFS=$as_save_IFS | |
8148 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8149 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8151 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 8152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8153 | break 2 |
8154 | fi | |
8155 | done | |
cd9a469c | 8156 | done |
8157 | IFS=$as_save_IFS | |
b30fcfae | 8158 | |
f5aebe3e | 8159 | fi |
8160 | fi | |
b30fcfae | 8161 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 8162 | if test -n "$RUNTEST"; then |
cd9a469c | 8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8164 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 8165 | else |
cd9a469c | 8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8167 | $as_echo "no" >&6; } | |
f5aebe3e | 8168 | fi |
71ab34df | 8169 | |
cd9a469c | 8170 | |
b30fcfae | 8171 | test -n "$RUNTEST" && break |
f5aebe3e | 8172 | done |
8173 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 8174 | |
f5aebe3e | 8175 | case " $configdirs " in |
8176 | *" dejagnu "*) | |
8d365775 | 8177 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 8178 | ;; |
8179 | esac | |
71ab34df | 8180 | |
8181 | ||
71ab34df | 8182 | # Host tools. |
bb612911 | 8183 | ncn_tool_prefix= |
8184 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8185 | ncn_target_tool_prefix= | |
8186 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8187 | ||
95a05732 | 8188 | |
8189 | ||
8190 | if test -n "$AR"; then | |
8191 | ac_cv_prog_AR=$AR | |
8192 | elif test -n "$ac_cv_prog_AR"; then | |
8193 | AR=$ac_cv_prog_AR | |
8194 | fi | |
8195 | ||
8196 | if test -n "$ac_cv_prog_AR"; then | |
8197 | for ncn_progname in ar; do | |
8198 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8199 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8201 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8202 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 8203 | $as_echo_n "(cached) " >&6 |
95a05732 | 8204 | else |
8205 | if test -n "$AR"; then | |
8206 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8207 | else | |
8208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8209 | for as_dir in $PATH | |
8210 | do | |
8211 | IFS=$as_save_IFS | |
8212 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8213 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8215 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8217 | break 2 |
8218 | fi | |
8219 | done | |
cd9a469c | 8220 | done |
8221 | IFS=$as_save_IFS | |
95a05732 | 8222 | |
8223 | fi | |
8224 | fi | |
8225 | AR=$ac_cv_prog_AR | |
8226 | if test -n "$AR"; then | |
cd9a469c | 8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8228 | $as_echo "$AR" >&6; } | |
95a05732 | 8229 | else |
cd9a469c | 8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8231 | $as_echo "no" >&6; } | |
95a05732 | 8232 | fi |
8233 | ||
cd9a469c | 8234 | |
95a05732 | 8235 | done |
8236 | fi | |
8237 | ||
8238 | for ncn_progname in ar; do | |
768691b5 | 8239 | if test -n "$ncn_tool_prefix"; then |
8240 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8241 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8243 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8244 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 8245 | $as_echo_n "(cached) " >&6 |
bb612911 | 8246 | else |
8247 | if test -n "$AR"; then | |
8248 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8249 | else | |
b30fcfae | 8250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8251 | for as_dir in $PATH | |
8252 | do | |
8253 | IFS=$as_save_IFS | |
8254 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8255 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8256 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8257 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8259 | break 2 |
8260 | fi | |
8261 | done | |
cd9a469c | 8262 | done |
8263 | IFS=$as_save_IFS | |
b30fcfae | 8264 | |
bb612911 | 8265 | fi |
8266 | fi | |
b30fcfae | 8267 | AR=$ac_cv_prog_AR |
bb612911 | 8268 | if test -n "$AR"; then |
cd9a469c | 8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8270 | $as_echo "$AR" >&6; } | |
bb612911 | 8271 | else |
cd9a469c | 8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8273 | $as_echo "no" >&6; } | |
bb612911 | 8274 | fi |
8275 | ||
cd9a469c | 8276 | |
768691b5 | 8277 | fi |
8278 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8279 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8280 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8282 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8283 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 8284 | $as_echo_n "(cached) " >&6 |
bb612911 | 8285 | else |
768691b5 | 8286 | if test -n "$AR"; then |
ae48753c | 8287 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8288 | else | |
b30fcfae | 8289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8290 | for as_dir in $PATH | |
8291 | do | |
8292 | IFS=$as_save_IFS | |
8293 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8294 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8296 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8298 | break 2 |
8299 | fi | |
8300 | done | |
cd9a469c | 8301 | done |
8302 | IFS=$as_save_IFS | |
b30fcfae | 8303 | |
bb612911 | 8304 | fi |
8305 | fi | |
b30fcfae | 8306 | AR=$ac_cv_prog_AR |
768691b5 | 8307 | if test -n "$AR"; then |
cd9a469c | 8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8309 | $as_echo "$AR" >&6; } | |
bb612911 | 8310 | else |
cd9a469c | 8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8312 | $as_echo "no" >&6; } | |
bb612911 | 8313 | fi |
b30fcfae | 8314 | |
cd9a469c | 8315 | |
768691b5 | 8316 | fi |
8317 | test -n "$ac_cv_prog_AR" && break | |
8318 | done | |
8319 | ||
8320 | if test -z "$ac_cv_prog_AR" ; then | |
8321 | set dummy ar | |
8322 | if test $build = $host ; then | |
8323 | AR="$2" | |
bb612911 | 8324 | else |
768691b5 | 8325 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8326 | fi |
bb612911 | 8327 | fi |
8328 | ||
95a05732 | 8329 | |
8330 | ||
8331 | if test -n "$AS"; then | |
8332 | ac_cv_prog_AS=$AS | |
8333 | elif test -n "$ac_cv_prog_AS"; then | |
8334 | AS=$ac_cv_prog_AS | |
8335 | fi | |
8336 | ||
8337 | if test -n "$ac_cv_prog_AS"; then | |
8338 | for ncn_progname in as; do | |
8339 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8340 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8342 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8343 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 8344 | $as_echo_n "(cached) " >&6 |
95a05732 | 8345 | else |
8346 | if test -n "$AS"; then | |
8347 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8348 | else | |
8349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8350 | for as_dir in $PATH | |
8351 | do | |
8352 | IFS=$as_save_IFS | |
8353 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8354 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8356 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8358 | break 2 |
8359 | fi | |
8360 | done | |
cd9a469c | 8361 | done |
8362 | IFS=$as_save_IFS | |
95a05732 | 8363 | |
8364 | fi | |
8365 | fi | |
8366 | AS=$ac_cv_prog_AS | |
8367 | if test -n "$AS"; then | |
cd9a469c | 8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8369 | $as_echo "$AS" >&6; } | |
95a05732 | 8370 | else |
cd9a469c | 8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8372 | $as_echo "no" >&6; } | |
95a05732 | 8373 | fi |
8374 | ||
cd9a469c | 8375 | |
95a05732 | 8376 | done |
8377 | fi | |
8378 | ||
8379 | for ncn_progname in as; do | |
768691b5 | 8380 | if test -n "$ncn_tool_prefix"; then |
8381 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8382 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8384 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8385 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 8386 | $as_echo_n "(cached) " >&6 |
bb612911 | 8387 | else |
8388 | if test -n "$AS"; then | |
8389 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8390 | else |
b30fcfae | 8391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8392 | for as_dir in $PATH | |
8393 | do | |
8394 | IFS=$as_save_IFS | |
8395 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8396 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8398 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8400 | break 2 |
8401 | fi | |
8402 | done | |
cd9a469c | 8403 | done |
8404 | IFS=$as_save_IFS | |
b30fcfae | 8405 | |
bb612911 | 8406 | fi |
8407 | fi | |
b30fcfae | 8408 | AS=$ac_cv_prog_AS |
bb612911 | 8409 | if test -n "$AS"; then |
cd9a469c | 8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8411 | $as_echo "$AS" >&6; } | |
bb612911 | 8412 | else |
cd9a469c | 8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8414 | $as_echo "no" >&6; } | |
bb612911 | 8415 | fi |
8416 | ||
cd9a469c | 8417 | |
768691b5 | 8418 | fi |
8419 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8421 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8423 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8424 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 8425 | $as_echo_n "(cached) " >&6 |
bb612911 | 8426 | else |
768691b5 | 8427 | if test -n "$AS"; then |
8428 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8429 | else |
b30fcfae | 8430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8431 | for as_dir in $PATH | |
8432 | do | |
8433 | IFS=$as_save_IFS | |
8434 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8435 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8436 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8437 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8439 | break 2 |
8440 | fi | |
8441 | done | |
cd9a469c | 8442 | done |
8443 | IFS=$as_save_IFS | |
b30fcfae | 8444 | |
bb612911 | 8445 | fi |
8446 | fi | |
b30fcfae | 8447 | AS=$ac_cv_prog_AS |
768691b5 | 8448 | if test -n "$AS"; then |
cd9a469c | 8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8450 | $as_echo "$AS" >&6; } | |
bb612911 | 8451 | else |
cd9a469c | 8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8453 | $as_echo "no" >&6; } | |
bb612911 | 8454 | fi |
b30fcfae | 8455 | |
cd9a469c | 8456 | |
768691b5 | 8457 | fi |
8458 | test -n "$ac_cv_prog_AS" && break | |
8459 | done | |
8460 | ||
8461 | if test -z "$ac_cv_prog_AS" ; then | |
8462 | set dummy as | |
8463 | if test $build = $host ; then | |
8464 | AS="$2" | |
bb612911 | 8465 | else |
768691b5 | 8466 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8467 | fi |
bb612911 | 8468 | fi |
8469 | ||
95a05732 | 8470 | |
8471 | ||
8472 | if test -n "$DLLTOOL"; then | |
8473 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8474 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8475 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8476 | fi | |
8477 | ||
8478 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8479 | for ncn_progname in dlltool; do | |
8480 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8481 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8483 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8484 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
cd9a469c | 8485 | $as_echo_n "(cached) " >&6 |
95a05732 | 8486 | else |
8487 | if test -n "$DLLTOOL"; then | |
8488 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8489 | else | |
8490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8491 | for as_dir in $PATH | |
8492 | do | |
8493 | IFS=$as_save_IFS | |
8494 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8495 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8497 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8499 | break 2 |
8500 | fi | |
8501 | done | |
cd9a469c | 8502 | done |
8503 | IFS=$as_save_IFS | |
95a05732 | 8504 | |
8505 | fi | |
8506 | fi | |
8507 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8508 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8510 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8511 | else |
cd9a469c | 8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8513 | $as_echo "no" >&6; } | |
95a05732 | 8514 | fi |
8515 | ||
cd9a469c | 8516 | |
95a05732 | 8517 | done |
8518 | fi | |
8519 | ||
8520 | for ncn_progname in dlltool; do | |
768691b5 | 8521 | if test -n "$ncn_tool_prefix"; then |
8522 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8523 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8525 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8526 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
cd9a469c | 8527 | $as_echo_n "(cached) " >&6 |
bb612911 | 8528 | else |
8529 | if test -n "$DLLTOOL"; then | |
8530 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8531 | else | |
b30fcfae | 8532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8533 | for as_dir in $PATH | |
8534 | do | |
8535 | IFS=$as_save_IFS | |
8536 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8537 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8539 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8541 | break 2 |
8542 | fi | |
8543 | done | |
cd9a469c | 8544 | done |
8545 | IFS=$as_save_IFS | |
b30fcfae | 8546 | |
bb612911 | 8547 | fi |
8548 | fi | |
b30fcfae | 8549 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8550 | if test -n "$DLLTOOL"; then |
cd9a469c | 8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8552 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8553 | else |
cd9a469c | 8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8555 | $as_echo "no" >&6; } | |
bb612911 | 8556 | fi |
8557 | ||
cd9a469c | 8558 | |
768691b5 | 8559 | fi |
8560 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8561 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8562 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8564 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8565 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
cd9a469c | 8566 | $as_echo_n "(cached) " >&6 |
bb612911 | 8567 | else |
768691b5 | 8568 | if test -n "$DLLTOOL"; then |
8569 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8570 | else |
b30fcfae | 8571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8572 | for as_dir in $PATH | |
8573 | do | |
8574 | IFS=$as_save_IFS | |
8575 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8576 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8578 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8580 | break 2 |
8581 | fi | |
8582 | done | |
cd9a469c | 8583 | done |
8584 | IFS=$as_save_IFS | |
b30fcfae | 8585 | |
bb612911 | 8586 | fi |
8587 | fi | |
b30fcfae | 8588 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8589 | if test -n "$DLLTOOL"; then |
cd9a469c | 8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8591 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8592 | else |
cd9a469c | 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8594 | $as_echo "no" >&6; } | |
bb612911 | 8595 | fi |
b30fcfae | 8596 | |
cd9a469c | 8597 | |
768691b5 | 8598 | fi |
8599 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8600 | done | |
8601 | ||
8602 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8603 | set dummy dlltool | |
8604 | if test $build = $host ; then | |
8605 | DLLTOOL="$2" | |
bb612911 | 8606 | else |
768691b5 | 8607 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8608 | fi |
bb612911 | 8609 | fi |
8610 | ||
95a05732 | 8611 | |
8612 | ||
8613 | if test -n "$LD"; then | |
8614 | ac_cv_prog_LD=$LD | |
8615 | elif test -n "$ac_cv_prog_LD"; then | |
8616 | LD=$ac_cv_prog_LD | |
8617 | fi | |
8618 | ||
8619 | if test -n "$ac_cv_prog_LD"; then | |
8620 | for ncn_progname in ld; do | |
8621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8622 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8624 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8625 | if ${ac_cv_prog_LD+:} false; then : |
cd9a469c | 8626 | $as_echo_n "(cached) " >&6 |
95a05732 | 8627 | else |
8628 | if test -n "$LD"; then | |
8629 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8630 | else | |
8631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8632 | for as_dir in $PATH | |
8633 | do | |
8634 | IFS=$as_save_IFS | |
8635 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8636 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8638 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8640 | break 2 |
8641 | fi | |
8642 | done | |
cd9a469c | 8643 | done |
8644 | IFS=$as_save_IFS | |
95a05732 | 8645 | |
8646 | fi | |
8647 | fi | |
8648 | LD=$ac_cv_prog_LD | |
8649 | if test -n "$LD"; then | |
cd9a469c | 8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8651 | $as_echo "$LD" >&6; } | |
95a05732 | 8652 | else |
cd9a469c | 8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8654 | $as_echo "no" >&6; } | |
95a05732 | 8655 | fi |
8656 | ||
cd9a469c | 8657 | |
95a05732 | 8658 | done |
8659 | fi | |
8660 | ||
8661 | for ncn_progname in ld; do | |
768691b5 | 8662 | if test -n "$ncn_tool_prefix"; then |
8663 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8664 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8666 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8667 | if ${ac_cv_prog_LD+:} false; then : |
cd9a469c | 8668 | $as_echo_n "(cached) " >&6 |
bb612911 | 8669 | else |
8670 | if test -n "$LD"; then | |
8671 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8672 | else | |
b30fcfae | 8673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8674 | for as_dir in $PATH | |
8675 | do | |
8676 | IFS=$as_save_IFS | |
8677 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8678 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8680 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8682 | break 2 |
8683 | fi | |
8684 | done | |
cd9a469c | 8685 | done |
8686 | IFS=$as_save_IFS | |
b30fcfae | 8687 | |
bb612911 | 8688 | fi |
8689 | fi | |
b30fcfae | 8690 | LD=$ac_cv_prog_LD |
bb612911 | 8691 | if test -n "$LD"; then |
cd9a469c | 8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8693 | $as_echo "$LD" >&6; } | |
bb612911 | 8694 | else |
cd9a469c | 8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8696 | $as_echo "no" >&6; } | |
bb612911 | 8697 | fi |
8698 | ||
cd9a469c | 8699 | |
768691b5 | 8700 | fi |
8701 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8702 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8703 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8705 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8706 | if ${ac_cv_prog_LD+:} false; then : |
cd9a469c | 8707 | $as_echo_n "(cached) " >&6 |
bb612911 | 8708 | else |
768691b5 | 8709 | if test -n "$LD"; then |
8710 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8711 | else |
b30fcfae | 8712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8713 | for as_dir in $PATH | |
8714 | do | |
8715 | IFS=$as_save_IFS | |
8716 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8717 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8719 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8721 | break 2 |
8722 | fi | |
8723 | done | |
cd9a469c | 8724 | done |
8725 | IFS=$as_save_IFS | |
b30fcfae | 8726 | |
bb612911 | 8727 | fi |
8728 | fi | |
b30fcfae | 8729 | LD=$ac_cv_prog_LD |
768691b5 | 8730 | if test -n "$LD"; then |
cd9a469c | 8731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8732 | $as_echo "$LD" >&6; } | |
bb612911 | 8733 | else |
cd9a469c | 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8735 | $as_echo "no" >&6; } | |
bb612911 | 8736 | fi |
b30fcfae | 8737 | |
cd9a469c | 8738 | |
768691b5 | 8739 | fi |
8740 | test -n "$ac_cv_prog_LD" && break | |
8741 | done | |
8742 | ||
8743 | if test -z "$ac_cv_prog_LD" ; then | |
8744 | set dummy ld | |
8745 | if test $build = $host ; then | |
8746 | LD="$2" | |
bb612911 | 8747 | else |
768691b5 | 8748 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8749 | fi |
bb612911 | 8750 | fi |
8751 | ||
95a05732 | 8752 | |
8753 | ||
8754 | if test -n "$LIPO"; then | |
8755 | ac_cv_prog_LIPO=$LIPO | |
8756 | elif test -n "$ac_cv_prog_LIPO"; then | |
8757 | LIPO=$ac_cv_prog_LIPO | |
8758 | fi | |
8759 | ||
8760 | if test -n "$ac_cv_prog_LIPO"; then | |
8761 | for ncn_progname in lipo; do | |
8762 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8763 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8765 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8766 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8767 | $as_echo_n "(cached) " >&6 |
95a05732 | 8768 | else |
8769 | if test -n "$LIPO"; then | |
8770 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8771 | else | |
8772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8773 | for as_dir in $PATH | |
8774 | do | |
8775 | IFS=$as_save_IFS | |
8776 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8777 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8779 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8781 | break 2 |
8782 | fi | |
8783 | done | |
cd9a469c | 8784 | done |
8785 | IFS=$as_save_IFS | |
95a05732 | 8786 | |
8787 | fi | |
8788 | fi | |
8789 | LIPO=$ac_cv_prog_LIPO | |
8790 | if test -n "$LIPO"; then | |
cd9a469c | 8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8792 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8793 | else |
cd9a469c | 8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8795 | $as_echo "no" >&6; } | |
95a05732 | 8796 | fi |
8797 | ||
cd9a469c | 8798 | |
95a05732 | 8799 | done |
8800 | fi | |
8801 | ||
8802 | for ncn_progname in lipo; do | |
f5aebe3e | 8803 | if test -n "$ncn_tool_prefix"; then |
8804 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8805 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8807 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8808 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8809 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8810 | else |
8811 | if test -n "$LIPO"; then | |
8812 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8813 | else | |
b30fcfae | 8814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8815 | for as_dir in $PATH | |
8816 | do | |
8817 | IFS=$as_save_IFS | |
8818 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8819 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8821 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8823 | break 2 |
8824 | fi | |
8825 | done | |
cd9a469c | 8826 | done |
8827 | IFS=$as_save_IFS | |
b30fcfae | 8828 | |
f5aebe3e | 8829 | fi |
8830 | fi | |
b30fcfae | 8831 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8832 | if test -n "$LIPO"; then |
cd9a469c | 8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8834 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8835 | else |
cd9a469c | 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8837 | $as_echo "no" >&6; } | |
f5aebe3e | 8838 | fi |
8839 | ||
cd9a469c | 8840 | |
f5aebe3e | 8841 | fi |
8842 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8843 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8844 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8846 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8847 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8848 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 8849 | else |
8850 | if test -n "$LIPO"; then | |
8851 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8852 | else | |
b30fcfae | 8853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8854 | for as_dir in $PATH | |
8855 | do | |
8856 | IFS=$as_save_IFS | |
8857 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8858 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 8860 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8862 | break 2 |
8863 | fi | |
8864 | done | |
cd9a469c | 8865 | done |
8866 | IFS=$as_save_IFS | |
b30fcfae | 8867 | |
f5aebe3e | 8868 | fi |
8869 | fi | |
b30fcfae | 8870 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8871 | if test -n "$LIPO"; then |
cd9a469c | 8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8873 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8874 | else |
cd9a469c | 8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8876 | $as_echo "no" >&6; } | |
f5aebe3e | 8877 | fi |
b30fcfae | 8878 | |
cd9a469c | 8879 | |
f5aebe3e | 8880 | fi |
8881 | test -n "$ac_cv_prog_LIPO" && break | |
8882 | done | |
8883 | ||
8884 | if test -z "$ac_cv_prog_LIPO" ; then | |
8885 | set dummy lipo | |
8886 | if test $build = $host ; then | |
8887 | LIPO="$2" | |
8888 | else | |
8889 | LIPO="${ncn_tool_prefix}$2" | |
8890 | fi | |
8891 | fi | |
8892 | ||
95a05732 | 8893 | |
8894 | ||
8895 | if test -n "$NM"; then | |
8896 | ac_cv_prog_NM=$NM | |
8897 | elif test -n "$ac_cv_prog_NM"; then | |
8898 | NM=$ac_cv_prog_NM | |
8899 | fi | |
8900 | ||
8901 | if test -n "$ac_cv_prog_NM"; then | |
8902 | for ncn_progname in nm; do | |
8903 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8904 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8906 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8907 | if ${ac_cv_prog_NM+:} false; then : |
cd9a469c | 8908 | $as_echo_n "(cached) " >&6 |
bb612911 | 8909 | else |
8910 | if test -n "$NM"; then | |
8911 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8912 | else | |
b30fcfae | 8913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8914 | for as_dir in $PATH | |
8915 | do | |
8916 | IFS=$as_save_IFS | |
8917 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8918 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8920 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8922 | break 2 |
8923 | fi | |
8924 | done | |
cd9a469c | 8925 | done |
8926 | IFS=$as_save_IFS | |
b30fcfae | 8927 | |
bb612911 | 8928 | fi |
8929 | fi | |
b30fcfae | 8930 | NM=$ac_cv_prog_NM |
bb612911 | 8931 | if test -n "$NM"; then |
cd9a469c | 8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8933 | $as_echo "$NM" >&6; } | |
bb612911 | 8934 | else |
cd9a469c | 8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8936 | $as_echo "no" >&6; } | |
bb612911 | 8937 | fi |
8938 | ||
cd9a469c | 8939 | |
95a05732 | 8940 | done |
8941 | fi | |
8942 | ||
8943 | for ncn_progname in nm; do | |
8944 | if test -n "$ncn_tool_prefix"; then | |
8945 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8946 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8948 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8949 | if ${ac_cv_prog_NM+:} false; then : |
cd9a469c | 8950 | $as_echo_n "(cached) " >&6 |
bb612911 | 8951 | else |
768691b5 | 8952 | if test -n "$NM"; then |
8953 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8954 | else |
b30fcfae | 8955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8956 | for as_dir in $PATH | |
8957 | do | |
8958 | IFS=$as_save_IFS | |
8959 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8960 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 8962 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8964 | break 2 |
8965 | fi | |
8966 | done | |
cd9a469c | 8967 | done |
8968 | IFS=$as_save_IFS | |
b30fcfae | 8969 | |
bb612911 | 8970 | fi |
8971 | fi | |
b30fcfae | 8972 | NM=$ac_cv_prog_NM |
768691b5 | 8973 | if test -n "$NM"; then |
cd9a469c | 8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8975 | $as_echo "$NM" >&6; } | |
bb612911 | 8976 | else |
cd9a469c | 8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8978 | $as_echo "no" >&6; } | |
bb612911 | 8979 | fi |
b30fcfae | 8980 | |
cd9a469c | 8981 | |
768691b5 | 8982 | fi |
95a05732 | 8983 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8984 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8985 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8987 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8988 | if ${ac_cv_prog_NM+:} false; then : |
cd9a469c | 8989 | $as_echo_n "(cached) " >&6 |
95a05732 | 8990 | else |
8991 | if test -n "$NM"; then | |
8992 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8993 | else | |
8994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8995 | for as_dir in $PATH | |
8996 | do | |
8997 | IFS=$as_save_IFS | |
8998 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8999 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9001 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 9002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9003 | break 2 |
9004 | fi | |
9005 | done | |
cd9a469c | 9006 | done |
9007 | IFS=$as_save_IFS | |
95a05732 | 9008 | |
9009 | fi | |
9010 | fi | |
9011 | NM=$ac_cv_prog_NM | |
9012 | if test -n "$NM"; then | |
cd9a469c | 9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
9014 | $as_echo "$NM" >&6; } | |
95a05732 | 9015 | else |
cd9a469c | 9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9017 | $as_echo "no" >&6; } | |
95a05732 | 9018 | fi |
9019 | ||
cd9a469c | 9020 | |
95a05732 | 9021 | fi |
9022 | test -n "$ac_cv_prog_NM" && break | |
9023 | done | |
9024 | ||
9025 | if test -z "$ac_cv_prog_NM" ; then | |
9026 | set dummy nm | |
9027 | if test $build = $host ; then | |
9028 | NM="$2" | |
9029 | else | |
9030 | NM="${ncn_tool_prefix}$2" | |
9031 | fi | |
9032 | fi | |
9033 | ||
9034 | ||
9035 | ||
9036 | if test -n "$RANLIB"; then | |
9037 | ac_cv_prog_RANLIB=$RANLIB | |
9038 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9039 | RANLIB=$ac_cv_prog_RANLIB | |
9040 | fi | |
9041 | ||
9042 | if test -n "$ac_cv_prog_RANLIB"; then | |
9043 | for ncn_progname in ranlib; do | |
9044 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9045 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9047 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9048 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 9049 | $as_echo_n "(cached) " >&6 |
95a05732 | 9050 | else |
9051 | if test -n "$RANLIB"; then | |
9052 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9053 | else | |
9054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9055 | for as_dir in $PATH | |
9056 | do | |
9057 | IFS=$as_save_IFS | |
9058 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9059 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9061 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 9062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9063 | break 2 |
9064 | fi | |
9065 | done | |
cd9a469c | 9066 | done |
9067 | IFS=$as_save_IFS | |
95a05732 | 9068 | |
9069 | fi | |
9070 | fi | |
9071 | RANLIB=$ac_cv_prog_RANLIB | |
9072 | if test -n "$RANLIB"; then | |
cd9a469c | 9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9074 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 9075 | else |
cd9a469c | 9076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9077 | $as_echo "no" >&6; } | |
95a05732 | 9078 | fi |
9079 | ||
cd9a469c | 9080 | |
95a05732 | 9081 | done |
9082 | fi | |
bb612911 | 9083 | |
95a05732 | 9084 | for ncn_progname in ranlib; do |
768691b5 | 9085 | if test -n "$ncn_tool_prefix"; then |
9086 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9087 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9089 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9090 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 9091 | $as_echo_n "(cached) " >&6 |
bb612911 | 9092 | else |
9093 | if test -n "$RANLIB"; then | |
9094 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9095 | else | |
b30fcfae | 9096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9097 | for as_dir in $PATH | |
9098 | do | |
9099 | IFS=$as_save_IFS | |
9100 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9101 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9103 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9105 | break 2 |
9106 | fi | |
9107 | done | |
cd9a469c | 9108 | done |
9109 | IFS=$as_save_IFS | |
b30fcfae | 9110 | |
bb612911 | 9111 | fi |
9112 | fi | |
b30fcfae | 9113 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 9114 | if test -n "$RANLIB"; then |
cd9a469c | 9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9116 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9117 | else |
cd9a469c | 9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9119 | $as_echo "no" >&6; } | |
bb612911 | 9120 | fi |
9121 | ||
cd9a469c | 9122 | |
768691b5 | 9123 | fi |
9124 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9126 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9128 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9129 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 9130 | $as_echo_n "(cached) " >&6 |
bb612911 | 9131 | else |
768691b5 | 9132 | if test -n "$RANLIB"; then |
9133 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 9134 | else |
b30fcfae | 9135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9136 | for as_dir in $PATH | |
9137 | do | |
9138 | IFS=$as_save_IFS | |
9139 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9140 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9142 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 9143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9144 | break 2 |
9145 | fi | |
9146 | done | |
cd9a469c | 9147 | done |
9148 | IFS=$as_save_IFS | |
b30fcfae | 9149 | |
bb612911 | 9150 | fi |
9151 | fi | |
b30fcfae | 9152 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 9153 | if test -n "$RANLIB"; then |
cd9a469c | 9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9155 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 9156 | else |
cd9a469c | 9157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9158 | $as_echo "no" >&6; } | |
bb612911 | 9159 | fi |
b30fcfae | 9160 | |
cd9a469c | 9161 | |
bb612911 | 9162 | fi |
768691b5 | 9163 | test -n "$ac_cv_prog_RANLIB" && break |
9164 | done | |
9165 | ||
9166 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 9167 | RANLIB="true" |
bb612911 | 9168 | fi |
9169 | ||
95a05732 | 9170 | |
9171 | ||
9172 | if test -n "$STRIP"; then | |
9173 | ac_cv_prog_STRIP=$STRIP | |
9174 | elif test -n "$ac_cv_prog_STRIP"; then | |
9175 | STRIP=$ac_cv_prog_STRIP | |
9176 | fi | |
9177 | ||
9178 | if test -n "$ac_cv_prog_STRIP"; then | |
9179 | for ncn_progname in strip; do | |
9180 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9181 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9183 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9184 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 9185 | $as_echo_n "(cached) " >&6 |
95a05732 | 9186 | else |
9187 | if test -n "$STRIP"; then | |
9188 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9189 | else | |
9190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9191 | for as_dir in $PATH | |
9192 | do | |
9193 | IFS=$as_save_IFS | |
9194 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9195 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9197 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9199 | break 2 |
9200 | fi | |
9201 | done | |
cd9a469c | 9202 | done |
9203 | IFS=$as_save_IFS | |
95a05732 | 9204 | |
9205 | fi | |
9206 | fi | |
9207 | STRIP=$ac_cv_prog_STRIP | |
9208 | if test -n "$STRIP"; then | |
cd9a469c | 9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9210 | $as_echo "$STRIP" >&6; } | |
95a05732 | 9211 | else |
cd9a469c | 9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9213 | $as_echo "no" >&6; } | |
95a05732 | 9214 | fi |
9215 | ||
cd9a469c | 9216 | |
95a05732 | 9217 | done |
9218 | fi | |
9219 | ||
9220 | for ncn_progname in strip; do | |
f5aebe3e | 9221 | if test -n "$ncn_tool_prefix"; then |
9222 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9223 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9225 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9226 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 9227 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 9228 | else |
9229 | if test -n "$STRIP"; then | |
9230 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9231 | else | |
b30fcfae | 9232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9233 | for as_dir in $PATH | |
9234 | do | |
9235 | IFS=$as_save_IFS | |
9236 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9237 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9239 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9241 | break 2 |
9242 | fi | |
9243 | done | |
cd9a469c | 9244 | done |
9245 | IFS=$as_save_IFS | |
b30fcfae | 9246 | |
f5aebe3e | 9247 | fi |
9248 | fi | |
b30fcfae | 9249 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9250 | if test -n "$STRIP"; then |
cd9a469c | 9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9252 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9253 | else |
cd9a469c | 9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9255 | $as_echo "no" >&6; } | |
f5aebe3e | 9256 | fi |
9257 | ||
cd9a469c | 9258 | |
f5aebe3e | 9259 | fi |
9260 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9261 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9262 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9264 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9265 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 9266 | $as_echo_n "(cached) " >&6 |
f5aebe3e | 9267 | else |
9268 | if test -n "$STRIP"; then | |
9269 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9270 | else | |
b30fcfae | 9271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9272 | for as_dir in $PATH | |
9273 | do | |
9274 | IFS=$as_save_IFS | |
9275 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9276 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9278 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9280 | break 2 |
9281 | fi | |
9282 | done | |
cd9a469c | 9283 | done |
9284 | IFS=$as_save_IFS | |
b30fcfae | 9285 | |
f5aebe3e | 9286 | fi |
9287 | fi | |
b30fcfae | 9288 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9289 | if test -n "$STRIP"; then |
cd9a469c | 9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9291 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9292 | else |
cd9a469c | 9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9294 | $as_echo "no" >&6; } | |
f5aebe3e | 9295 | fi |
b30fcfae | 9296 | |
cd9a469c | 9297 | |
f5aebe3e | 9298 | fi |
9299 | test -n "$ac_cv_prog_STRIP" && break | |
9300 | done | |
9301 | ||
9302 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9303 | STRIP="true" |
f5aebe3e | 9304 | fi |
9305 | ||
95a05732 | 9306 | |
9307 | ||
9308 | if test -n "$WINDRES"; then | |
9309 | ac_cv_prog_WINDRES=$WINDRES | |
9310 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9311 | WINDRES=$ac_cv_prog_WINDRES | |
9312 | fi | |
9313 | ||
9314 | if test -n "$ac_cv_prog_WINDRES"; then | |
9315 | for ncn_progname in windres; do | |
9316 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9317 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9319 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9320 | if ${ac_cv_prog_WINDRES+:} false; then : |
cd9a469c | 9321 | $as_echo_n "(cached) " >&6 |
95a05732 | 9322 | else |
9323 | if test -n "$WINDRES"; then | |
9324 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9325 | else | |
9326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9327 | for as_dir in $PATH | |
9328 | do | |
9329 | IFS=$as_save_IFS | |
9330 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9331 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9332 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9333 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9335 | break 2 |
9336 | fi | |
9337 | done | |
cd9a469c | 9338 | done |
9339 | IFS=$as_save_IFS | |
95a05732 | 9340 | |
9341 | fi | |
9342 | fi | |
9343 | WINDRES=$ac_cv_prog_WINDRES | |
9344 | if test -n "$WINDRES"; then | |
cd9a469c | 9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9346 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9347 | else |
cd9a469c | 9348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9349 | $as_echo "no" >&6; } | |
95a05732 | 9350 | fi |
9351 | ||
cd9a469c | 9352 | |
95a05732 | 9353 | done |
9354 | fi | |
9355 | ||
9356 | for ncn_progname in windres; do | |
768691b5 | 9357 | if test -n "$ncn_tool_prefix"; then |
9358 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9359 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9361 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9362 | if ${ac_cv_prog_WINDRES+:} false; then : |
cd9a469c | 9363 | $as_echo_n "(cached) " >&6 |
bb612911 | 9364 | else |
9365 | if test -n "$WINDRES"; then | |
9366 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9367 | else | |
b30fcfae | 9368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9369 | for as_dir in $PATH | |
9370 | do | |
9371 | IFS=$as_save_IFS | |
9372 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9373 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9375 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9377 | break 2 |
9378 | fi | |
9379 | done | |
cd9a469c | 9380 | done |
9381 | IFS=$as_save_IFS | |
b30fcfae | 9382 | |
bb612911 | 9383 | fi |
9384 | fi | |
b30fcfae | 9385 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9386 | if test -n "$WINDRES"; then |
cd9a469c | 9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9388 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9389 | else |
cd9a469c | 9390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9391 | $as_echo "no" >&6; } | |
bb612911 | 9392 | fi |
9393 | ||
cd9a469c | 9394 | |
768691b5 | 9395 | fi |
9396 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9398 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9400 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9401 | if ${ac_cv_prog_WINDRES+:} false; then : |
cd9a469c | 9402 | $as_echo_n "(cached) " >&6 |
bb612911 | 9403 | else |
768691b5 | 9404 | if test -n "$WINDRES"; then |
9405 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9406 | else |
b30fcfae | 9407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9408 | for as_dir in $PATH | |
9409 | do | |
9410 | IFS=$as_save_IFS | |
9411 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9412 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9414 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9416 | break 2 |
9417 | fi | |
9418 | done | |
cd9a469c | 9419 | done |
9420 | IFS=$as_save_IFS | |
b30fcfae | 9421 | |
bb612911 | 9422 | fi |
9423 | fi | |
b30fcfae | 9424 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9425 | if test -n "$WINDRES"; then |
cd9a469c | 9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9427 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9428 | else |
cd9a469c | 9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9430 | $as_echo "no" >&6; } | |
bb612911 | 9431 | fi |
b30fcfae | 9432 | |
cd9a469c | 9433 | |
768691b5 | 9434 | fi |
9435 | test -n "$ac_cv_prog_WINDRES" && break | |
9436 | done | |
9437 | ||
9438 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9439 | set dummy windres | |
9440 | if test $build = $host ; then | |
9441 | WINDRES="$2" | |
bb612911 | 9442 | else |
768691b5 | 9443 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9444 | fi |
bb612911 | 9445 | fi |
9446 | ||
95a05732 | 9447 | |
9448 | ||
75d6a0a9 | 9449 | if test -n "$WINDMC"; then |
9450 | ac_cv_prog_WINDMC=$WINDMC | |
9451 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9452 | WINDMC=$ac_cv_prog_WINDMC | |
9453 | fi | |
9454 | ||
9455 | if test -n "$ac_cv_prog_WINDMC"; then | |
9456 | for ncn_progname in windmc; do | |
9457 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9458 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9460 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9461 | if ${ac_cv_prog_WINDMC+:} false; then : |
cd9a469c | 9462 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 9463 | else |
9464 | if test -n "$WINDMC"; then | |
9465 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9466 | else | |
9467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9468 | for as_dir in $PATH | |
9469 | do | |
9470 | IFS=$as_save_IFS | |
9471 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9472 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 9474 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9476 | break 2 |
9477 | fi | |
9478 | done | |
cd9a469c | 9479 | done |
9480 | IFS=$as_save_IFS | |
75d6a0a9 | 9481 | |
9482 | fi | |
9483 | fi | |
9484 | WINDMC=$ac_cv_prog_WINDMC | |
9485 | if test -n "$WINDMC"; then | |
cd9a469c | 9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9487 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9488 | else |
cd9a469c | 9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9490 | $as_echo "no" >&6; } | |
75d6a0a9 | 9491 | fi |
9492 | ||
cd9a469c | 9493 | |
75d6a0a9 | 9494 | done |
9495 | fi | |
9496 | ||
9497 | for ncn_progname in windmc; do | |
9498 | if test -n "$ncn_tool_prefix"; then | |
9499 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9500 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9502 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9503 | if ${ac_cv_prog_WINDMC+:} false; then : |
cd9a469c | 9504 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 9505 | else |
9506 | if test -n "$WINDMC"; then | |
9507 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9508 | else | |
9509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9510 | for as_dir in $PATH | |
9511 | do | |
9512 | IFS=$as_save_IFS | |
9513 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9514 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 9516 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9518 | break 2 |
9519 | fi | |
9520 | done | |
cd9a469c | 9521 | done |
9522 | IFS=$as_save_IFS | |
75d6a0a9 | 9523 | |
9524 | fi | |
9525 | fi | |
9526 | WINDMC=$ac_cv_prog_WINDMC | |
9527 | if test -n "$WINDMC"; then | |
cd9a469c | 9528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9529 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9530 | else |
cd9a469c | 9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9532 | $as_echo "no" >&6; } | |
75d6a0a9 | 9533 | fi |
9534 | ||
cd9a469c | 9535 | |
75d6a0a9 | 9536 | fi |
9537 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9539 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9541 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9542 | if ${ac_cv_prog_WINDMC+:} false; then : |
cd9a469c | 9543 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 9544 | else |
9545 | if test -n "$WINDMC"; then | |
9546 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9547 | else | |
9548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9549 | for as_dir in $PATH | |
9550 | do | |
9551 | IFS=$as_save_IFS | |
9552 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9553 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 9555 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9557 | break 2 |
9558 | fi | |
9559 | done | |
cd9a469c | 9560 | done |
9561 | IFS=$as_save_IFS | |
75d6a0a9 | 9562 | |
9563 | fi | |
9564 | fi | |
9565 | WINDMC=$ac_cv_prog_WINDMC | |
9566 | if test -n "$WINDMC"; then | |
cd9a469c | 9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9568 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9569 | else |
cd9a469c | 9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9571 | $as_echo "no" >&6; } | |
75d6a0a9 | 9572 | fi |
9573 | ||
cd9a469c | 9574 | |
75d6a0a9 | 9575 | fi |
9576 | test -n "$ac_cv_prog_WINDMC" && break | |
9577 | done | |
9578 | ||
9579 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9580 | set dummy windmc | |
9581 | if test $build = $host ; then | |
9582 | WINDMC="$2" | |
9583 | else | |
9584 | WINDMC="${ncn_tool_prefix}$2" | |
9585 | fi | |
9586 | fi | |
9587 | ||
9588 | ||
9589 | ||
95a05732 | 9590 | if test -n "$OBJCOPY"; then |
9591 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9592 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9593 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9594 | fi | |
9595 | ||
9596 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9597 | for ncn_progname in objcopy; do | |
9598 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9599 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9601 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9602 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
cd9a469c | 9603 | $as_echo_n "(cached) " >&6 |
95a05732 | 9604 | else |
9605 | if test -n "$OBJCOPY"; then | |
9606 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9607 | else | |
9608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9609 | for as_dir in $PATH | |
9610 | do | |
9611 | IFS=$as_save_IFS | |
9612 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9613 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9614 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9615 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9617 | break 2 |
9618 | fi | |
9619 | done | |
cd9a469c | 9620 | done |
9621 | IFS=$as_save_IFS | |
95a05732 | 9622 | |
9623 | fi | |
9624 | fi | |
9625 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9626 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9628 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9629 | else |
cd9a469c | 9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9631 | $as_echo "no" >&6; } | |
95a05732 | 9632 | fi |
9633 | ||
cd9a469c | 9634 | |
95a05732 | 9635 | done |
9636 | fi | |
9637 | ||
9638 | for ncn_progname in objcopy; do | |
768691b5 | 9639 | if test -n "$ncn_tool_prefix"; then |
9640 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9641 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9643 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9644 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
cd9a469c | 9645 | $as_echo_n "(cached) " >&6 |
bb612911 | 9646 | else |
9647 | if test -n "$OBJCOPY"; then | |
9648 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9649 | else | |
b30fcfae | 9650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9651 | for as_dir in $PATH | |
9652 | do | |
9653 | IFS=$as_save_IFS | |
9654 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9655 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9657 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9659 | break 2 |
9660 | fi | |
9661 | done | |
cd9a469c | 9662 | done |
9663 | IFS=$as_save_IFS | |
b30fcfae | 9664 | |
bb612911 | 9665 | fi |
9666 | fi | |
b30fcfae | 9667 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9668 | if test -n "$OBJCOPY"; then |
cd9a469c | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9670 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9671 | else |
cd9a469c | 9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9673 | $as_echo "no" >&6; } | |
bb612911 | 9674 | fi |
9675 | ||
cd9a469c | 9676 | |
768691b5 | 9677 | fi |
9678 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9679 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9680 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9682 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9683 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
cd9a469c | 9684 | $as_echo_n "(cached) " >&6 |
bb612911 | 9685 | else |
768691b5 | 9686 | if test -n "$OBJCOPY"; then |
9687 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9688 | else |
b30fcfae | 9689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9690 | for as_dir in $PATH | |
9691 | do | |
9692 | IFS=$as_save_IFS | |
9693 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9694 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9695 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9696 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9698 | break 2 |
9699 | fi | |
9700 | done | |
cd9a469c | 9701 | done |
9702 | IFS=$as_save_IFS | |
b30fcfae | 9703 | |
bb612911 | 9704 | fi |
9705 | fi | |
b30fcfae | 9706 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9707 | if test -n "$OBJCOPY"; then |
cd9a469c | 9708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9709 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9710 | else |
cd9a469c | 9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9712 | $as_echo "no" >&6; } | |
bb612911 | 9713 | fi |
b30fcfae | 9714 | |
cd9a469c | 9715 | |
768691b5 | 9716 | fi |
9717 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9718 | done | |
9719 | ||
9720 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9721 | set dummy objcopy | |
9722 | if test $build = $host ; then | |
9723 | OBJCOPY="$2" | |
bb612911 | 9724 | else |
768691b5 | 9725 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9726 | fi |
bb612911 | 9727 | fi |
9728 | ||
95a05732 | 9729 | |
9730 | ||
9731 | if test -n "$OBJDUMP"; then | |
9732 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9733 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9734 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9735 | fi | |
9736 | ||
9737 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9738 | for ncn_progname in objdump; do | |
9739 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9740 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9742 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9743 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 9744 | $as_echo_n "(cached) " >&6 |
95a05732 | 9745 | else |
9746 | if test -n "$OBJDUMP"; then | |
9747 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9748 | else | |
9749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9750 | for as_dir in $PATH | |
9751 | do | |
9752 | IFS=$as_save_IFS | |
9753 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9754 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 9756 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9758 | break 2 |
9759 | fi | |
9760 | done | |
cd9a469c | 9761 | done |
9762 | IFS=$as_save_IFS | |
95a05732 | 9763 | |
9764 | fi | |
9765 | fi | |
9766 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9767 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9769 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9770 | else |
cd9a469c | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9772 | $as_echo "no" >&6; } | |
95a05732 | 9773 | fi |
9774 | ||
cd9a469c | 9775 | |
95a05732 | 9776 | done |
9777 | fi | |
9778 | ||
9779 | for ncn_progname in objdump; do | |
768691b5 | 9780 | if test -n "$ncn_tool_prefix"; then |
9781 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9782 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9784 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9785 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 9786 | $as_echo_n "(cached) " >&6 |
bb612911 | 9787 | else |
9788 | if test -n "$OBJDUMP"; then | |
9789 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9790 | else | |
b30fcfae | 9791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9792 | for as_dir in $PATH | |
9793 | do | |
9794 | IFS=$as_save_IFS | |
9795 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9796 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9798 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9800 | break 2 |
9801 | fi | |
9802 | done | |
cd9a469c | 9803 | done |
9804 | IFS=$as_save_IFS | |
b30fcfae | 9805 | |
bb612911 | 9806 | fi |
9807 | fi | |
b30fcfae | 9808 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9809 | if test -n "$OBJDUMP"; then |
cd9a469c | 9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9811 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9812 | else |
cd9a469c | 9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9814 | $as_echo "no" >&6; } | |
bb612911 | 9815 | fi |
9816 | ||
cd9a469c | 9817 | |
768691b5 | 9818 | fi |
9819 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9820 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9821 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9823 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 9824 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 9825 | $as_echo_n "(cached) " >&6 |
bb612911 | 9826 | else |
768691b5 | 9827 | if test -n "$OBJDUMP"; then |
9828 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9829 | else |
b30fcfae | 9830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9831 | for as_dir in $PATH | |
9832 | do | |
9833 | IFS=$as_save_IFS | |
9834 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9835 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 9836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 9837 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9839 | break 2 |
9840 | fi | |
9841 | done | |
cd9a469c | 9842 | done |
9843 | IFS=$as_save_IFS | |
b30fcfae | 9844 | |
bb612911 | 9845 | fi |
9846 | fi | |
b30fcfae | 9847 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9848 | if test -n "$OBJDUMP"; then |
cd9a469c | 9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9850 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9851 | else |
cd9a469c | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9853 | $as_echo "no" >&6; } | |
bb612911 | 9854 | fi |
b30fcfae | 9855 | |
cd9a469c | 9856 | |
768691b5 | 9857 | fi |
9858 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9859 | done | |
9860 | ||
9861 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9862 | set dummy objdump | |
9863 | if test $build = $host ; then | |
9864 | OBJDUMP="$2" | |
bb612911 | 9865 | else |
768691b5 | 9866 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9867 | fi |
bb612911 | 9868 | fi |
9869 | ||
71ab34df | 9870 | |
9871 | ||
16706a2e | 9872 | if test -n "$OTOOL"; then |
9873 | ac_cv_prog_OTOOL=$OTOOL | |
9874 | elif test -n "$ac_cv_prog_OTOOL"; then | |
9875 | OTOOL=$ac_cv_prog_OTOOL | |
9876 | fi | |
9877 | ||
9878 | if test -n "$ac_cv_prog_OTOOL"; then | |
9879 | for ncn_progname in otool; do | |
9880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9881 | set dummy ${ncn_progname}; ac_word=$2 | |
9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9883 | $as_echo_n "checking for $ac_word... " >&6; } | |
9884 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9885 | $as_echo_n "(cached) " >&6 | |
9886 | else | |
9887 | if test -n "$OTOOL"; then | |
9888 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9889 | else | |
9890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9891 | for as_dir in $PATH | |
9892 | do | |
9893 | IFS=$as_save_IFS | |
9894 | test -z "$as_dir" && as_dir=. | |
9895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9897 | ac_cv_prog_OTOOL="${ncn_progname}" | |
9898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9899 | break 2 | |
9900 | fi | |
9901 | done | |
9902 | done | |
9903 | IFS=$as_save_IFS | |
9904 | ||
9905 | fi | |
9906 | fi | |
9907 | OTOOL=$ac_cv_prog_OTOOL | |
9908 | if test -n "$OTOOL"; then | |
9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9910 | $as_echo "$OTOOL" >&6; } | |
9911 | else | |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9913 | $as_echo "no" >&6; } | |
9914 | fi | |
9915 | ||
9916 | ||
9917 | done | |
9918 | fi | |
9919 | ||
9920 | for ncn_progname in otool; do | |
9921 | if test -n "$ncn_tool_prefix"; then | |
9922 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9923 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9925 | $as_echo_n "checking for $ac_word... " >&6; } | |
9926 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9927 | $as_echo_n "(cached) " >&6 | |
9928 | else | |
9929 | if test -n "$OTOOL"; then | |
9930 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9931 | else | |
9932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9933 | for as_dir in $PATH | |
9934 | do | |
9935 | IFS=$as_save_IFS | |
9936 | test -z "$as_dir" && as_dir=. | |
9937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9939 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
9940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9941 | break 2 | |
9942 | fi | |
9943 | done | |
9944 | done | |
9945 | IFS=$as_save_IFS | |
9946 | ||
9947 | fi | |
9948 | fi | |
9949 | OTOOL=$ac_cv_prog_OTOOL | |
9950 | if test -n "$OTOOL"; then | |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9952 | $as_echo "$OTOOL" >&6; } | |
9953 | else | |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9955 | $as_echo "no" >&6; } | |
9956 | fi | |
9957 | ||
9958 | ||
9959 | fi | |
9960 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
9961 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9962 | set dummy ${ncn_progname}; ac_word=$2 | |
9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9964 | $as_echo_n "checking for $ac_word... " >&6; } | |
9965 | if ${ac_cv_prog_OTOOL+:} false; then : | |
9966 | $as_echo_n "(cached) " >&6 | |
9967 | else | |
9968 | if test -n "$OTOOL"; then | |
9969 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9970 | else | |
9971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9972 | for as_dir in $PATH | |
9973 | do | |
9974 | IFS=$as_save_IFS | |
9975 | test -z "$as_dir" && as_dir=. | |
9976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9978 | ac_cv_prog_OTOOL="${ncn_progname}" | |
9979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9980 | break 2 | |
9981 | fi | |
9982 | done | |
9983 | done | |
9984 | IFS=$as_save_IFS | |
9985 | ||
9986 | fi | |
9987 | fi | |
9988 | OTOOL=$ac_cv_prog_OTOOL | |
9989 | if test -n "$OTOOL"; then | |
9990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
9991 | $as_echo "$OTOOL" >&6; } | |
9992 | else | |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9994 | $as_echo "no" >&6; } | |
9995 | fi | |
9996 | ||
9997 | ||
9998 | fi | |
9999 | test -n "$ac_cv_prog_OTOOL" && break | |
10000 | done | |
10001 | ||
10002 | if test -z "$ac_cv_prog_OTOOL" ; then | |
10003 | set dummy otool | |
10004 | if test $build = $host ; then | |
10005 | OTOOL="$2" | |
10006 | else | |
10007 | OTOOL="${ncn_tool_prefix}$2" | |
10008 | fi | |
10009 | fi | |
10010 | ||
10011 | ||
10012 | ||
3f71364d | 10013 | if test -n "$READELF"; then |
10014 | ac_cv_prog_READELF=$READELF | |
10015 | elif test -n "$ac_cv_prog_READELF"; then | |
10016 | READELF=$ac_cv_prog_READELF | |
10017 | fi | |
10018 | ||
10019 | if test -n "$ac_cv_prog_READELF"; then | |
10020 | for ncn_progname in readelf; do | |
10021 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10022 | set dummy ${ncn_progname}; ac_word=$2 | |
10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10024 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10025 | if ${ac_cv_prog_READELF+:} false; then : |
3f71364d | 10026 | $as_echo_n "(cached) " >&6 |
10027 | else | |
10028 | if test -n "$READELF"; then | |
10029 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10030 | else | |
10031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10032 | for as_dir in $PATH | |
10033 | do | |
10034 | IFS=$as_save_IFS | |
10035 | test -z "$as_dir" && as_dir=. | |
10036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 10038 | ac_cv_prog_READELF="${ncn_progname}" |
10039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10040 | break 2 | |
10041 | fi | |
10042 | done | |
10043 | done | |
10044 | IFS=$as_save_IFS | |
10045 | ||
10046 | fi | |
10047 | fi | |
10048 | READELF=$ac_cv_prog_READELF | |
10049 | if test -n "$READELF"; then | |
10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10051 | $as_echo "$READELF" >&6; } | |
10052 | else | |
10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10054 | $as_echo "no" >&6; } | |
10055 | fi | |
10056 | ||
10057 | ||
10058 | done | |
10059 | fi | |
10060 | ||
10061 | for ncn_progname in readelf; do | |
10062 | if test -n "$ncn_tool_prefix"; then | |
10063 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10064 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10066 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10067 | if ${ac_cv_prog_READELF+:} false; then : |
3f71364d | 10068 | $as_echo_n "(cached) " >&6 |
10069 | else | |
10070 | if test -n "$READELF"; then | |
10071 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10072 | else | |
10073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10074 | for as_dir in $PATH | |
10075 | do | |
10076 | IFS=$as_save_IFS | |
10077 | test -z "$as_dir" && as_dir=. | |
10078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 10080 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
10081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10082 | break 2 | |
10083 | fi | |
10084 | done | |
10085 | done | |
10086 | IFS=$as_save_IFS | |
10087 | ||
10088 | fi | |
10089 | fi | |
10090 | READELF=$ac_cv_prog_READELF | |
10091 | if test -n "$READELF"; then | |
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10093 | $as_echo "$READELF" >&6; } | |
10094 | else | |
10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10096 | $as_echo "no" >&6; } | |
10097 | fi | |
10098 | ||
10099 | ||
10100 | fi | |
10101 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
10102 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10103 | set dummy ${ncn_progname}; ac_word=$2 | |
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10105 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10106 | if ${ac_cv_prog_READELF+:} false; then : |
3f71364d | 10107 | $as_echo_n "(cached) " >&6 |
10108 | else | |
10109 | if test -n "$READELF"; then | |
10110 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
10111 | else | |
10112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10113 | for as_dir in $PATH | |
10114 | do | |
10115 | IFS=$as_save_IFS | |
10116 | test -z "$as_dir" && as_dir=. | |
10117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 10119 | ac_cv_prog_READELF="${ncn_progname}" |
10120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10121 | break 2 | |
10122 | fi | |
10123 | done | |
10124 | done | |
10125 | IFS=$as_save_IFS | |
10126 | ||
10127 | fi | |
10128 | fi | |
10129 | READELF=$ac_cv_prog_READELF | |
10130 | if test -n "$READELF"; then | |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
10132 | $as_echo "$READELF" >&6; } | |
10133 | else | |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10135 | $as_echo "no" >&6; } | |
10136 | fi | |
10137 | ||
10138 | ||
10139 | fi | |
10140 | test -n "$ac_cv_prog_READELF" && break | |
10141 | done | |
10142 | ||
10143 | if test -z "$ac_cv_prog_READELF" ; then | |
10144 | set dummy readelf | |
10145 | if test $build = $host ; then | |
10146 | READELF="$2" | |
10147 | else | |
10148 | READELF="${ncn_tool_prefix}$2" | |
10149 | fi | |
10150 | fi | |
10151 | ||
10152 | ||
10153 | ||
71ab34df | 10154 | |
10155 | ||
10156 | ||
f5aebe3e | 10157 | # Target tools. |
b30fcfae | 10158 | |
cd9a469c | 10159 | # Check whether --with-build-time-tools was given. |
10160 | if test "${with_build_time_tools+set}" = set; then : | |
10161 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 10162 | x/*) ;; |
10163 | *) | |
10164 | with_build_time_tools= | |
cd9a469c | 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
10166 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 10167 | ;; |
10168 | esac | |
bb612911 | 10169 | else |
c47832b1 | 10170 | with_build_time_tools= |
cd9a469c | 10171 | fi |
10172 | ||
bb612911 | 10173 | |
95a05732 | 10174 | |
10175 | ||
10176 | if test -n "$CC_FOR_TARGET"; then | |
10177 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10178 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10179 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10180 | fi | |
10181 | ||
10182 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10183 | for ncn_progname in cc gcc; do | |
10184 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10185 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10187 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10188 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
cd9a469c | 10189 | $as_echo_n "(cached) " >&6 |
95a05732 | 10190 | else |
10191 | if test -n "$CC_FOR_TARGET"; then | |
10192 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10193 | else | |
10194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10195 | for as_dir in $PATH | |
10196 | do | |
10197 | IFS=$as_save_IFS | |
10198 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10199 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10200 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10201 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10203 | break 2 |
10204 | fi | |
10205 | done | |
cd9a469c | 10206 | done |
10207 | IFS=$as_save_IFS | |
95a05732 | 10208 | |
10209 | fi | |
10210 | fi | |
10211 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10212 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10214 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 10215 | else |
cd9a469c | 10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10217 | $as_echo "no" >&6; } | |
95a05732 | 10218 | fi |
10219 | ||
cd9a469c | 10220 | |
95a05732 | 10221 | done |
10222 | fi | |
10223 | ||
10224 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10225 | for ncn_progname in cc gcc; do |
cd9a469c | 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10227 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10228 | if test -x $with_build_time_tools/${ncn_progname}; then |
10229 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10231 | $as_echo "yes" >&6; } | |
9886f3d1 | 10232 | break |
c47832b1 | 10233 | else |
cd9a469c | 10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10235 | $as_echo "no" >&6; } | |
9886f3d1 | 10236 | fi |
10237 | done | |
ef8184c7 | 10238 | fi |
10239 | ||
c47832b1 | 10240 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10241 | for ncn_progname in cc gcc; do | |
10242 | if test -n "$ncn_target_tool_prefix"; then | |
10243 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10244 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10246 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10247 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
cd9a469c | 10248 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10249 | else |
10250 | if test -n "$CC_FOR_TARGET"; then | |
10251 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10252 | else | |
b30fcfae | 10253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10254 | for as_dir in $PATH | |
10255 | do | |
10256 | IFS=$as_save_IFS | |
10257 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10258 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10260 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10262 | break 2 |
10263 | fi | |
10264 | done | |
cd9a469c | 10265 | done |
10266 | IFS=$as_save_IFS | |
b30fcfae | 10267 | |
ef8184c7 | 10268 | fi |
10269 | fi | |
b30fcfae | 10270 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 10271 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10273 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10274 | else |
cd9a469c | 10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10276 | $as_echo "no" >&6; } | |
ef8184c7 | 10277 | fi |
10278 | ||
cd9a469c | 10279 | |
c47832b1 | 10280 | fi |
10281 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10282 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10283 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10285 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10286 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
cd9a469c | 10287 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10288 | else |
768691b5 | 10289 | if test -n "$CC_FOR_TARGET"; then |
10290 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10291 | else |
b30fcfae | 10292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10293 | for as_dir in $PATH | |
10294 | do | |
10295 | IFS=$as_save_IFS | |
10296 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10297 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10299 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10301 | break 2 |
10302 | fi | |
10303 | done | |
cd9a469c | 10304 | done |
10305 | IFS=$as_save_IFS | |
b30fcfae | 10306 | |
ef8184c7 | 10307 | fi |
10308 | fi | |
b30fcfae | 10309 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 10310 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10312 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 10313 | else |
cd9a469c | 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10315 | $as_echo "no" >&6; } | |
ef8184c7 | 10316 | fi |
b30fcfae | 10317 | |
cd9a469c | 10318 | |
c47832b1 | 10319 | fi |
10320 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10321 | done | |
10322 | fi | |
b30fcfae | 10323 | |
768691b5 | 10324 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10325 | set dummy cc gcc | |
10326 | if test $build = $target ; then | |
10327 | CC_FOR_TARGET="$2" | |
ef8184c7 | 10328 | else |
768691b5 | 10329 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10330 | fi |
b7ef8464 | 10331 | else |
10332 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 10333 | fi |
10334 | ||
95a05732 | 10335 | |
10336 | ||
10337 | if test -n "$CXX_FOR_TARGET"; then | |
10338 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10339 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10340 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10341 | fi | |
10342 | ||
10343 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10344 | for ncn_progname in c++ g++ cxx gxx; do | |
10345 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10346 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10348 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10349 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
cd9a469c | 10350 | $as_echo_n "(cached) " >&6 |
95a05732 | 10351 | else |
10352 | if test -n "$CXX_FOR_TARGET"; then | |
10353 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10354 | else | |
10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10356 | for as_dir in $PATH | |
10357 | do | |
10358 | IFS=$as_save_IFS | |
10359 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10360 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10362 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10364 | break 2 |
10365 | fi | |
10366 | done | |
cd9a469c | 10367 | done |
10368 | IFS=$as_save_IFS | |
95a05732 | 10369 | |
10370 | fi | |
10371 | fi | |
10372 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10373 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10375 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 10376 | else |
cd9a469c | 10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10378 | $as_echo "no" >&6; } | |
95a05732 | 10379 | fi |
10380 | ||
cd9a469c | 10381 | |
95a05732 | 10382 | done |
10383 | fi | |
10384 | ||
10385 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10386 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10388 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10389 | if test -x $with_build_time_tools/${ncn_progname}; then |
10390 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10392 | $as_echo "yes" >&6; } | |
c47832b1 | 10393 | break |
10394 | else | |
cd9a469c | 10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10396 | $as_echo "no" >&6; } | |
c47832b1 | 10397 | fi |
10398 | done | |
10399 | fi | |
10400 | ||
10401 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10402 | for ncn_progname in c++ g++ cxx gxx; do | |
10403 | if test -n "$ncn_target_tool_prefix"; then | |
10404 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10405 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10407 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10408 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
cd9a469c | 10409 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10410 | else |
10411 | if test -n "$CXX_FOR_TARGET"; then | |
10412 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10413 | else | |
b30fcfae | 10414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10415 | for as_dir in $PATH | |
10416 | do | |
10417 | IFS=$as_save_IFS | |
10418 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10419 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10421 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10423 | break 2 |
10424 | fi | |
10425 | done | |
cd9a469c | 10426 | done |
10427 | IFS=$as_save_IFS | |
b30fcfae | 10428 | |
ef8184c7 | 10429 | fi |
10430 | fi | |
b30fcfae | 10431 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 10432 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10434 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10435 | else |
cd9a469c | 10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10437 | $as_echo "no" >&6; } | |
ef8184c7 | 10438 | fi |
10439 | ||
cd9a469c | 10440 | |
c47832b1 | 10441 | fi |
10442 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10443 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10444 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10446 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10447 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
cd9a469c | 10448 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 10449 | else |
768691b5 | 10450 | if test -n "$CXX_FOR_TARGET"; then |
10451 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10452 | else |
b30fcfae | 10453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10454 | for as_dir in $PATH | |
10455 | do | |
10456 | IFS=$as_save_IFS | |
10457 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10458 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10459 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10460 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10462 | break 2 |
10463 | fi | |
10464 | done | |
cd9a469c | 10465 | done |
10466 | IFS=$as_save_IFS | |
b30fcfae | 10467 | |
ef8184c7 | 10468 | fi |
10469 | fi | |
b30fcfae | 10470 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 10471 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10473 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 10474 | else |
cd9a469c | 10475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10476 | $as_echo "no" >&6; } | |
ef8184c7 | 10477 | fi |
b30fcfae | 10478 | |
cd9a469c | 10479 | |
c47832b1 | 10480 | fi |
10481 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10482 | done | |
10483 | fi | |
b30fcfae | 10484 | |
768691b5 | 10485 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10486 | set dummy c++ g++ cxx gxx | |
10487 | if test $build = $target ; then | |
10488 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 10489 | else |
768691b5 | 10490 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 10491 | fi |
b7ef8464 | 10492 | else |
10493 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 10494 | fi |
10495 | ||
95a05732 | 10496 | |
10497 | ||
10498 | if test -n "$GCC_FOR_TARGET"; then | |
10499 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10500 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10501 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10502 | fi | |
10503 | ||
10504 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10505 | for ncn_progname in gcc; do | |
10506 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10507 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10509 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10510 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
cd9a469c | 10511 | $as_echo_n "(cached) " >&6 |
95a05732 | 10512 | else |
10513 | if test -n "$GCC_FOR_TARGET"; then | |
10514 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10515 | else | |
10516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10517 | for as_dir in $PATH | |
10518 | do | |
10519 | IFS=$as_save_IFS | |
10520 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10521 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10523 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10525 | break 2 |
10526 | fi | |
10527 | done | |
cd9a469c | 10528 | done |
10529 | IFS=$as_save_IFS | |
95a05732 | 10530 | |
10531 | fi | |
10532 | fi | |
10533 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10534 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10536 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 10537 | else |
cd9a469c | 10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10539 | $as_echo "no" >&6; } | |
95a05732 | 10540 | fi |
10541 | ||
cd9a469c | 10542 | |
95a05732 | 10543 | done |
10544 | fi | |
10545 | ||
10546 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10547 | for ncn_progname in gcc; do |
cd9a469c | 10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10549 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10550 | if test -x $with_build_time_tools/${ncn_progname}; then |
10551 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10553 | $as_echo "yes" >&6; } | |
c47832b1 | 10554 | break |
10555 | else | |
cd9a469c | 10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10557 | $as_echo "no" >&6; } | |
c47832b1 | 10558 | fi |
10559 | done | |
10560 | fi | |
10561 | ||
10562 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10563 | for ncn_progname in gcc; do | |
10564 | if test -n "$ncn_target_tool_prefix"; then | |
10565 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10566 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10568 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10569 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
cd9a469c | 10570 | $as_echo_n "(cached) " >&6 |
bb612911 | 10571 | else |
c47832b1 | 10572 | if test -n "$GCC_FOR_TARGET"; then |
10573 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10574 | else |
b30fcfae | 10575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10576 | for as_dir in $PATH | |
10577 | do | |
10578 | IFS=$as_save_IFS | |
10579 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10580 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10582 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10584 | break 2 |
10585 | fi | |
10586 | done | |
cd9a469c | 10587 | done |
10588 | IFS=$as_save_IFS | |
b30fcfae | 10589 | |
bb612911 | 10590 | fi |
10591 | fi | |
b30fcfae | 10592 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10593 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10595 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10596 | else |
cd9a469c | 10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10598 | $as_echo "no" >&6; } | |
bb612911 | 10599 | fi |
10600 | ||
cd9a469c | 10601 | |
c47832b1 | 10602 | fi |
10603 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10604 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10605 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10607 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10608 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
cd9a469c | 10609 | $as_echo_n "(cached) " >&6 |
bb612911 | 10610 | else |
c47832b1 | 10611 | if test -n "$GCC_FOR_TARGET"; then |
10612 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10613 | else |
b30fcfae | 10614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10615 | for as_dir in $PATH | |
10616 | do | |
10617 | IFS=$as_save_IFS | |
10618 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10619 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10621 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10623 | break 2 |
10624 | fi | |
10625 | done | |
cd9a469c | 10626 | done |
10627 | IFS=$as_save_IFS | |
b30fcfae | 10628 | |
bb612911 | 10629 | fi |
10630 | fi | |
b30fcfae | 10631 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10632 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10634 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10635 | else |
cd9a469c | 10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10637 | $as_echo "no" >&6; } | |
bb612911 | 10638 | fi |
b30fcfae | 10639 | |
cd9a469c | 10640 | |
c47832b1 | 10641 | fi |
10642 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10643 | done | |
10644 | fi | |
b30fcfae | 10645 | |
c47832b1 | 10646 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10647 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10648 | else |
10649 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10650 | fi |
10651 | ||
95a05732 | 10652 | |
10653 | ||
95a05732 | 10654 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10655 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10656 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10657 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10658 | fi |
10659 | ||
95a05732 | 10660 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10661 | for ncn_progname in gfortran; do | |
10662 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10663 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10665 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10666 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
cd9a469c | 10667 | $as_echo_n "(cached) " >&6 |
c47832b1 | 10668 | else |
95a05732 | 10669 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10670 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10671 | else |
b30fcfae | 10672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10673 | for as_dir in $PATH | |
10674 | do | |
10675 | IFS=$as_save_IFS | |
10676 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10677 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 10679 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10681 | break 2 |
10682 | fi | |
10683 | done | |
cd9a469c | 10684 | done |
10685 | IFS=$as_save_IFS | |
b30fcfae | 10686 | |
c47832b1 | 10687 | fi |
10688 | fi | |
95a05732 | 10689 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10690 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10692 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10693 | else |
cd9a469c | 10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10695 | $as_echo "no" >&6; } | |
c47832b1 | 10696 | fi |
b30fcfae | 10697 | |
cd9a469c | 10698 | |
c47832b1 | 10699 | done |
10700 | fi | |
b30fcfae | 10701 | |
95a05732 | 10702 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10703 | for ncn_progname in gfortran; do |
cd9a469c | 10704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10705 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10706 | if test -x $with_build_time_tools/${ncn_progname}; then |
10707 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10709 | $as_echo "yes" >&6; } | |
c47832b1 | 10710 | break |
10711 | else | |
cd9a469c | 10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10713 | $as_echo "no" >&6; } | |
c47832b1 | 10714 | fi |
10715 | done | |
10716 | fi | |
10717 | ||
10718 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10719 | for ncn_progname in gfortran; do | |
10720 | if test -n "$ncn_target_tool_prefix"; then | |
10721 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10722 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10724 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10725 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
cd9a469c | 10726 | $as_echo_n "(cached) " >&6 |
c47832b1 | 10727 | else |
10728 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10729 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10730 | else | |
10731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10732 | for as_dir in $PATH | |
10733 | do | |
10734 | IFS=$as_save_IFS | |
10735 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10736 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10738 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10740 | break 2 |
10741 | fi | |
10742 | done | |
cd9a469c | 10743 | done |
10744 | IFS=$as_save_IFS | |
b30fcfae | 10745 | |
c47832b1 | 10746 | fi |
10747 | fi | |
b30fcfae | 10748 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10749 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10751 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10752 | else |
cd9a469c | 10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10754 | $as_echo "no" >&6; } | |
c47832b1 | 10755 | fi |
10756 | ||
cd9a469c | 10757 | |
c47832b1 | 10758 | fi |
10759 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10760 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10761 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10763 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10764 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
cd9a469c | 10765 | $as_echo_n "(cached) " >&6 |
c47832b1 | 10766 | else |
10767 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10768 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10769 | else | |
b30fcfae | 10770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10771 | for as_dir in $PATH | |
10772 | do | |
10773 | IFS=$as_save_IFS | |
10774 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10775 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 10776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 10777 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10779 | break 2 |
10780 | fi | |
10781 | done | |
cd9a469c | 10782 | done |
10783 | IFS=$as_save_IFS | |
b30fcfae | 10784 | |
c47832b1 | 10785 | fi |
10786 | fi | |
b30fcfae | 10787 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10788 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10790 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10791 | else |
cd9a469c | 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10793 | $as_echo "no" >&6; } | |
c47832b1 | 10794 | fi |
b30fcfae | 10795 | |
cd9a469c | 10796 | |
c47832b1 | 10797 | fi |
10798 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10799 | done | |
10800 | fi | |
b30fcfae | 10801 | |
c47832b1 | 10802 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10803 | set dummy gfortran | |
768691b5 | 10804 | if test $build = $target ; then |
c47832b1 | 10805 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10806 | else |
c47832b1 | 10807 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10808 | fi | |
b7ef8464 | 10809 | else |
10810 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10811 | fi |
10812 | ||
10813 | ||
10814 | ||
5ff5b630 | 10815 | if test -n "$GOC_FOR_TARGET"; then |
10816 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10817 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10818 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10819 | fi | |
10820 | ||
10821 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10822 | for ncn_progname in gccgo; do | |
10823 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10824 | set dummy ${ncn_progname}; ac_word=$2 | |
10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10826 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10827 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
5ff5b630 | 10828 | $as_echo_n "(cached) " >&6 |
10829 | else | |
10830 | if test -n "$GOC_FOR_TARGET"; then | |
10831 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10832 | else | |
10833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10834 | for as_dir in $PATH | |
10835 | do | |
10836 | IFS=$as_save_IFS | |
10837 | test -z "$as_dir" && as_dir=. | |
10838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5ff5b630 | 10840 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10842 | break 2 | |
10843 | fi | |
10844 | done | |
10845 | done | |
10846 | IFS=$as_save_IFS | |
10847 | ||
10848 | fi | |
10849 | fi | |
10850 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10851 | if test -n "$GOC_FOR_TARGET"; then | |
10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10853 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10854 | else | |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10856 | $as_echo "no" >&6; } | |
10857 | fi | |
10858 | ||
10859 | ||
10860 | done | |
10861 | fi | |
10862 | ||
10863 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10864 | for ncn_progname in gccgo; do | |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10866 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10867 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10868 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10870 | $as_echo "yes" >&6; } | |
10871 | break | |
10872 | else | |
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10874 | $as_echo "no" >&6; } | |
10875 | fi | |
10876 | done | |
10877 | fi | |
10878 | ||
10879 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10880 | for ncn_progname in gccgo; do | |
10881 | if test -n "$ncn_target_tool_prefix"; then | |
10882 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10883 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10885 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10886 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
5ff5b630 | 10887 | $as_echo_n "(cached) " >&6 |
10888 | else | |
10889 | if test -n "$GOC_FOR_TARGET"; then | |
10890 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10891 | else | |
10892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10893 | for as_dir in $PATH | |
10894 | do | |
10895 | IFS=$as_save_IFS | |
10896 | test -z "$as_dir" && as_dir=. | |
10897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5ff5b630 | 10899 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
10900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10901 | break 2 | |
10902 | fi | |
10903 | done | |
10904 | done | |
10905 | IFS=$as_save_IFS | |
10906 | ||
10907 | fi | |
10908 | fi | |
10909 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10910 | if test -n "$GOC_FOR_TARGET"; then | |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10912 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10913 | else | |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10915 | $as_echo "no" >&6; } | |
10916 | fi | |
10917 | ||
10918 | ||
10919 | fi | |
10920 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10921 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10922 | set dummy ${ncn_progname}; ac_word=$2 | |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10924 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10925 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
5ff5b630 | 10926 | $as_echo_n "(cached) " >&6 |
10927 | else | |
10928 | if test -n "$GOC_FOR_TARGET"; then | |
10929 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10930 | else | |
10931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10932 | for as_dir in $PATH | |
10933 | do | |
10934 | IFS=$as_save_IFS | |
10935 | test -z "$as_dir" && as_dir=. | |
10936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 10937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5ff5b630 | 10938 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
10939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10940 | break 2 | |
10941 | fi | |
10942 | done | |
10943 | done | |
10944 | IFS=$as_save_IFS | |
10945 | ||
10946 | fi | |
10947 | fi | |
10948 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10949 | if test -n "$GOC_FOR_TARGET"; then | |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10951 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10952 | else | |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10954 | $as_echo "no" >&6; } | |
10955 | fi | |
10956 | ||
10957 | ||
10958 | fi | |
10959 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10960 | done | |
10961 | fi | |
10962 | ||
10963 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10964 | set dummy gccgo | |
10965 | if test $build = $target ; then | |
10966 | GOC_FOR_TARGET="$2" | |
10967 | else | |
10968 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10969 | fi | |
10970 | else | |
10971 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10972 | fi | |
10973 | ||
10974 | ||
10975 | ||
03385ed3 | 10976 | if test -n "$GDC_FOR_TARGET"; then |
10977 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
10978 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10979 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
10980 | fi | |
10981 | ||
10982 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
10983 | for ncn_progname in gdc; do | |
10984 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10985 | set dummy ${ncn_progname}; ac_word=$2 | |
10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10987 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 10988 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
03385ed3 | 10989 | $as_echo_n "(cached) " >&6 |
10990 | else | |
10991 | if test -n "$GDC_FOR_TARGET"; then | |
10992 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
10993 | else | |
10994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10995 | for as_dir in $PATH | |
10996 | do | |
10997 | IFS=$as_save_IFS | |
10998 | test -z "$as_dir" && as_dir=. | |
10999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 11000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 11001 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11003 | break 2 | |
11004 | fi | |
11005 | done | |
11006 | done | |
11007 | IFS=$as_save_IFS | |
11008 | ||
11009 | fi | |
11010 | fi | |
11011 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11012 | if test -n "$GDC_FOR_TARGET"; then | |
11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11014 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11015 | else | |
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11017 | $as_echo "no" >&6; } | |
11018 | fi | |
11019 | ||
11020 | ||
11021 | done | |
11022 | fi | |
11023 | ||
11024 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11025 | for ncn_progname in gdc; do | |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11027 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11028 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11029 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11031 | $as_echo "yes" >&6; } | |
11032 | break | |
11033 | else | |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11035 | $as_echo "no" >&6; } | |
11036 | fi | |
11037 | done | |
11038 | fi | |
11039 | ||
11040 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
11041 | for ncn_progname in gdc; do | |
11042 | if test -n "$ncn_target_tool_prefix"; then | |
11043 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11044 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11046 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11047 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
03385ed3 | 11048 | $as_echo_n "(cached) " >&6 |
11049 | else | |
11050 | if test -n "$GDC_FOR_TARGET"; then | |
11051 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11052 | else | |
11053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11054 | for as_dir in $PATH | |
11055 | do | |
11056 | IFS=$as_save_IFS | |
11057 | test -z "$as_dir" && as_dir=. | |
11058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 11059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 11060 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
11061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11062 | break 2 | |
11063 | fi | |
11064 | done | |
11065 | done | |
11066 | IFS=$as_save_IFS | |
11067 | ||
11068 | fi | |
11069 | fi | |
11070 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11071 | if test -n "$GDC_FOR_TARGET"; then | |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11073 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11074 | else | |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11076 | $as_echo "no" >&6; } | |
11077 | fi | |
11078 | ||
11079 | ||
11080 | fi | |
11081 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
11082 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11083 | set dummy ${ncn_progname}; ac_word=$2 | |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11085 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11086 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
03385ed3 | 11087 | $as_echo_n "(cached) " >&6 |
11088 | else | |
11089 | if test -n "$GDC_FOR_TARGET"; then | |
11090 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
11091 | else | |
11092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11093 | for as_dir in $PATH | |
11094 | do | |
11095 | IFS=$as_save_IFS | |
11096 | test -z "$as_dir" && as_dir=. | |
11097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 11098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
03385ed3 | 11099 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
11100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11101 | break 2 | |
11102 | fi | |
11103 | done | |
11104 | done | |
11105 | IFS=$as_save_IFS | |
11106 | ||
11107 | fi | |
11108 | fi | |
11109 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
11110 | if test -n "$GDC_FOR_TARGET"; then | |
11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
11112 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
11113 | else | |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11115 | $as_echo "no" >&6; } | |
11116 | fi | |
11117 | ||
11118 | ||
11119 | fi | |
11120 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
11121 | done | |
11122 | fi | |
11123 | ||
11124 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
11125 | set dummy gdc | |
11126 | if test $build = $target ; then | |
11127 | GDC_FOR_TARGET="$2" | |
11128 | else | |
11129 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11130 | fi | |
11131 | else | |
11132 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
11133 | fi | |
11134 | ||
11135 | ||
11136 | ||
c47832b1 | 11137 | cat > conftest.c << \EOF |
11138 | #ifdef __GNUC__ | |
11139 | gcc_yay; | |
11140 | #endif | |
11141 | EOF | |
11142 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
11143 | have_gcc_for_target=yes | |
11144 | else | |
11145 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
11146 | have_gcc_for_target=no | |
11147 | fi | |
11148 | rm conftest.c | |
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
11154 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
11156 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 11157 | if test -x $with_build_time_tools/ar; then |
11158 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
11159 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
11161 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 11162 | else |
cd9a469c | 11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11164 | $as_echo "no" >&6; } | |
ab0da556 | 11165 | fi |
c47832b1 | 11166 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11167 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 11168 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
11169 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 11170 | fi |
11171 | fi | |
38d7211b | 11172 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11173 | # Extract the first word of "ar", so it can be a program name with args. |
11174 | set dummy ar; ac_word=$2 | |
cd9a469c | 11175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11176 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11177 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11178 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11179 | else |
b30fcfae | 11180 | case $AR_FOR_TARGET in |
11181 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11182 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11183 | ;; | |
c47832b1 | 11184 | *) |
b30fcfae | 11185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11186 | for as_dir in $gcc_cv_tool_dirs | |
11187 | do | |
11188 | IFS=$as_save_IFS | |
11189 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11190 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11192 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11194 | break 2 |
11195 | fi | |
11196 | done | |
cd9a469c | 11197 | done |
11198 | IFS=$as_save_IFS | |
b30fcfae | 11199 | |
c47832b1 | 11200 | ;; |
11201 | esac | |
11202 | fi | |
b30fcfae | 11203 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 11204 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11206 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11207 | else |
cd9a469c | 11208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11209 | $as_echo "no" >&6; } | |
ef8184c7 | 11210 | fi |
11211 | ||
cd9a469c | 11212 | |
c47832b1 | 11213 | fi |
11214 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 11215 | |
11216 | ||
11217 | if test -n "$AR_FOR_TARGET"; then | |
11218 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11219 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11220 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11221 | fi | |
11222 | ||
11223 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11224 | for ncn_progname in ar; do | |
11225 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11226 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11228 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11229 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11230 | $as_echo_n "(cached) " >&6 |
95a05732 | 11231 | else |
11232 | if test -n "$AR_FOR_TARGET"; then | |
11233 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11234 | else | |
11235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11236 | for as_dir in $PATH | |
11237 | do | |
11238 | IFS=$as_save_IFS | |
11239 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11240 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11242 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11244 | break 2 |
11245 | fi | |
11246 | done | |
cd9a469c | 11247 | done |
11248 | IFS=$as_save_IFS | |
95a05732 | 11249 | |
11250 | fi | |
11251 | fi | |
11252 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11253 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11255 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 11256 | else |
cd9a469c | 11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11258 | $as_echo "no" >&6; } | |
95a05732 | 11259 | fi |
11260 | ||
cd9a469c | 11261 | |
95a05732 | 11262 | done |
11263 | fi | |
11264 | ||
11265 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11266 | for ncn_progname in ar; do |
cd9a469c | 11267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11268 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11269 | if test -x $with_build_time_tools/${ncn_progname}; then |
11270 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11272 | $as_echo "yes" >&6; } | |
c47832b1 | 11273 | break |
11274 | else | |
cd9a469c | 11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11276 | $as_echo "no" >&6; } | |
c47832b1 | 11277 | fi |
11278 | done | |
11279 | fi | |
11280 | ||
11281 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
11282 | for ncn_progname in ar; do | |
11283 | if test -n "$ncn_target_tool_prefix"; then | |
11284 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11285 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11287 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11288 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11289 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11290 | else |
c47832b1 | 11291 | if test -n "$AR_FOR_TARGET"; then |
11292 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11293 | else |
b30fcfae | 11294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11295 | for as_dir in $PATH | |
11296 | do | |
11297 | IFS=$as_save_IFS | |
11298 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11299 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11300 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11301 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11302 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11303 | break 2 |
11304 | fi | |
11305 | done | |
cd9a469c | 11306 | done |
11307 | IFS=$as_save_IFS | |
b30fcfae | 11308 | |
ef8184c7 | 11309 | fi |
11310 | fi | |
b30fcfae | 11311 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11312 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11314 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 11315 | else |
cd9a469c | 11316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11317 | $as_echo "no" >&6; } | |
ef8184c7 | 11318 | fi |
11319 | ||
cd9a469c | 11320 | |
c47832b1 | 11321 | fi |
11322 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11323 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11324 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11326 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11327 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
cd9a469c | 11328 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11329 | else |
11330 | if test -n "$AR_FOR_TARGET"; then | |
11331 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11332 | else | |
b30fcfae | 11333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11334 | for as_dir in $PATH | |
11335 | do | |
11336 | IFS=$as_save_IFS | |
11337 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11338 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11340 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11342 | break 2 |
11343 | fi | |
11344 | done | |
cd9a469c | 11345 | done |
11346 | IFS=$as_save_IFS | |
b30fcfae | 11347 | |
c47832b1 | 11348 | fi |
11349 | fi | |
b30fcfae | 11350 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 11351 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11353 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 11354 | else |
cd9a469c | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11356 | $as_echo "no" >&6; } | |
c47832b1 | 11357 | fi |
b30fcfae | 11358 | |
cd9a469c | 11359 | |
c47832b1 | 11360 | fi |
11361 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11362 | done | |
11363 | fi | |
b30fcfae | 11364 | |
c47832b1 | 11365 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11366 | set dummy ar | |
11367 | if test $build = $target ; then | |
11368 | AR_FOR_TARGET="$2" | |
11369 | else | |
11370 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 11371 | fi |
b7ef8464 | 11372 | else |
11373 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 11374 | fi |
11375 | ||
ab0da556 | 11376 | else |
11377 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 11378 | fi |
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11384 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11386 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 11387 | if test -x $with_build_time_tools/as; then |
11388 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11389 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11391 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 11392 | else |
cd9a469c | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11394 | $as_echo "no" >&6; } | |
ab0da556 | 11395 | fi |
c47832b1 | 11396 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11397 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 11398 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11399 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 11400 | fi |
11401 | fi | |
38d7211b | 11402 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11403 | # Extract the first word of "as", so it can be a program name with args. |
11404 | set dummy as; ac_word=$2 | |
cd9a469c | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11406 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11407 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11408 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11409 | else |
b30fcfae | 11410 | case $AS_FOR_TARGET in |
11411 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11412 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11413 | ;; | |
c47832b1 | 11414 | *) |
b30fcfae | 11415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11416 | for as_dir in $gcc_cv_tool_dirs | |
11417 | do | |
11418 | IFS=$as_save_IFS | |
11419 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11420 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11422 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11424 | break 2 |
11425 | fi | |
11426 | done | |
cd9a469c | 11427 | done |
11428 | IFS=$as_save_IFS | |
b30fcfae | 11429 | |
c47832b1 | 11430 | ;; |
11431 | esac | |
11432 | fi | |
b30fcfae | 11433 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 11434 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11436 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11437 | else |
cd9a469c | 11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11439 | $as_echo "no" >&6; } | |
c47832b1 | 11440 | fi |
11441 | ||
cd9a469c | 11442 | |
c47832b1 | 11443 | fi |
11444 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 11445 | |
11446 | ||
11447 | if test -n "$AS_FOR_TARGET"; then | |
11448 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11449 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11450 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11451 | fi | |
11452 | ||
11453 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11454 | for ncn_progname in as; do | |
11455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11456 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11458 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11459 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11460 | $as_echo_n "(cached) " >&6 |
95a05732 | 11461 | else |
11462 | if test -n "$AS_FOR_TARGET"; then | |
11463 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11464 | else | |
11465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11466 | for as_dir in $PATH | |
11467 | do | |
11468 | IFS=$as_save_IFS | |
11469 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11470 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11472 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11474 | break 2 |
11475 | fi | |
11476 | done | |
cd9a469c | 11477 | done |
11478 | IFS=$as_save_IFS | |
95a05732 | 11479 | |
11480 | fi | |
11481 | fi | |
11482 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11483 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11485 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 11486 | else |
cd9a469c | 11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11488 | $as_echo "no" >&6; } | |
95a05732 | 11489 | fi |
11490 | ||
cd9a469c | 11491 | |
95a05732 | 11492 | done |
11493 | fi | |
11494 | ||
11495 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11496 | for ncn_progname in as; do |
cd9a469c | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11498 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11499 | if test -x $with_build_time_tools/${ncn_progname}; then |
11500 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11502 | $as_echo "yes" >&6; } | |
c47832b1 | 11503 | break |
11504 | else | |
cd9a469c | 11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11506 | $as_echo "no" >&6; } | |
c47832b1 | 11507 | fi |
11508 | done | |
11509 | fi | |
11510 | ||
11511 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11512 | for ncn_progname in as; do | |
11513 | if test -n "$ncn_target_tool_prefix"; then | |
11514 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11515 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11517 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11518 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11519 | $as_echo_n "(cached) " >&6 |
c47832b1 | 11520 | else |
11521 | if test -n "$AS_FOR_TARGET"; then | |
11522 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11523 | else | |
b30fcfae | 11524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11525 | for as_dir in $PATH | |
11526 | do | |
11527 | IFS=$as_save_IFS | |
11528 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11529 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11531 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11533 | break 2 |
11534 | fi | |
11535 | done | |
cd9a469c | 11536 | done |
11537 | IFS=$as_save_IFS | |
b30fcfae | 11538 | |
c47832b1 | 11539 | fi |
11540 | fi | |
b30fcfae | 11541 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11542 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11544 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11545 | else |
cd9a469c | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11547 | $as_echo "no" >&6; } | |
c47832b1 | 11548 | fi |
11549 | ||
cd9a469c | 11550 | |
c47832b1 | 11551 | fi |
11552 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11553 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11554 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11556 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11557 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
cd9a469c | 11558 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11559 | else |
c47832b1 | 11560 | if test -n "$AS_FOR_TARGET"; then |
11561 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11562 | else |
b30fcfae | 11563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11564 | for as_dir in $PATH | |
11565 | do | |
11566 | IFS=$as_save_IFS | |
11567 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11568 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11570 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11572 | break 2 |
11573 | fi | |
11574 | done | |
cd9a469c | 11575 | done |
11576 | IFS=$as_save_IFS | |
b30fcfae | 11577 | |
ef8184c7 | 11578 | fi |
11579 | fi | |
b30fcfae | 11580 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11581 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11583 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11584 | else |
cd9a469c | 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11586 | $as_echo "no" >&6; } | |
ef8184c7 | 11587 | fi |
b30fcfae | 11588 | |
cd9a469c | 11589 | |
c47832b1 | 11590 | fi |
11591 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11592 | done | |
11593 | fi | |
b30fcfae | 11594 | |
c47832b1 | 11595 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11596 | set dummy as | |
11597 | if test $build = $target ; then | |
11598 | AS_FOR_TARGET="$2" | |
11599 | else | |
11600 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11601 | fi |
b7ef8464 | 11602 | else |
11603 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11604 | fi |
768691b5 | 11605 | |
ab0da556 | 11606 | else |
11607 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11608 | fi |
11609 | ||
c47832b1 | 11610 | |
11611 | ||
11612 | ||
11613 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11614 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11616 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11617 | if test -x $with_build_time_tools/dlltool; then |
11618 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11619 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11621 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11622 | else |
cd9a469c | 11623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11624 | $as_echo "no" >&6; } | |
ab0da556 | 11625 | fi |
c47832b1 | 11626 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11627 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11628 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11629 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11630 | fi |
11631 | fi | |
38d7211b | 11632 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11633 | # Extract the first word of "dlltool", so it can be a program name with args. |
11634 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11636 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11637 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11638 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11639 | else |
b30fcfae | 11640 | case $DLLTOOL_FOR_TARGET in |
11641 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11642 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11643 | ;; | |
c47832b1 | 11644 | *) |
b30fcfae | 11645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11646 | for as_dir in $gcc_cv_tool_dirs | |
11647 | do | |
11648 | IFS=$as_save_IFS | |
11649 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11650 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11652 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11654 | break 2 |
11655 | fi | |
11656 | done | |
cd9a469c | 11657 | done |
11658 | IFS=$as_save_IFS | |
b30fcfae | 11659 | |
c47832b1 | 11660 | ;; |
11661 | esac | |
ef8184c7 | 11662 | fi |
b30fcfae | 11663 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11664 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11666 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11667 | else |
cd9a469c | 11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11669 | $as_echo "no" >&6; } | |
ef8184c7 | 11670 | fi |
11671 | ||
cd9a469c | 11672 | |
c47832b1 | 11673 | fi |
11674 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11675 | |
11676 | ||
11677 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11678 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11679 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11680 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11681 | fi | |
11682 | ||
11683 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11684 | for ncn_progname in dlltool; do | |
11685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11686 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11688 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11689 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11690 | $as_echo_n "(cached) " >&6 |
95a05732 | 11691 | else |
11692 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11693 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11694 | else | |
11695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11696 | for as_dir in $PATH | |
11697 | do | |
11698 | IFS=$as_save_IFS | |
11699 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11700 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11702 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11704 | break 2 |
11705 | fi | |
11706 | done | |
cd9a469c | 11707 | done |
11708 | IFS=$as_save_IFS | |
95a05732 | 11709 | |
11710 | fi | |
11711 | fi | |
11712 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11713 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11715 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11716 | else |
cd9a469c | 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11718 | $as_echo "no" >&6; } | |
95a05732 | 11719 | fi |
11720 | ||
cd9a469c | 11721 | |
95a05732 | 11722 | done |
11723 | fi | |
11724 | ||
11725 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11726 | for ncn_progname in dlltool; do |
cd9a469c | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11728 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11729 | if test -x $with_build_time_tools/${ncn_progname}; then |
11730 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11732 | $as_echo "yes" >&6; } | |
c47832b1 | 11733 | break |
11734 | else | |
cd9a469c | 11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11736 | $as_echo "no" >&6; } | |
c47832b1 | 11737 | fi |
11738 | done | |
11739 | fi | |
11740 | ||
11741 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11742 | for ncn_progname in dlltool; do | |
11743 | if test -n "$ncn_target_tool_prefix"; then | |
11744 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11745 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11747 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11748 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11749 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11750 | else |
c47832b1 | 11751 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11752 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11753 | else |
b30fcfae | 11754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11755 | for as_dir in $PATH | |
11756 | do | |
11757 | IFS=$as_save_IFS | |
11758 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11759 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11761 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11763 | break 2 |
11764 | fi | |
11765 | done | |
cd9a469c | 11766 | done |
11767 | IFS=$as_save_IFS | |
b30fcfae | 11768 | |
ef8184c7 | 11769 | fi |
11770 | fi | |
b30fcfae | 11771 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11772 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11774 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11775 | else |
cd9a469c | 11776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11777 | $as_echo "no" >&6; } | |
ef8184c7 | 11778 | fi |
ef8184c7 | 11779 | |
cd9a469c | 11780 | |
c47832b1 | 11781 | fi |
11782 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11784 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11786 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11787 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
cd9a469c | 11788 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11789 | else |
c47832b1 | 11790 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11791 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11792 | else |
b30fcfae | 11793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11794 | for as_dir in $PATH | |
11795 | do | |
11796 | IFS=$as_save_IFS | |
11797 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11798 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11800 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11802 | break 2 |
11803 | fi | |
11804 | done | |
cd9a469c | 11805 | done |
11806 | IFS=$as_save_IFS | |
b30fcfae | 11807 | |
ef8184c7 | 11808 | fi |
11809 | fi | |
b30fcfae | 11810 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11811 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11813 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11814 | else |
cd9a469c | 11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11816 | $as_echo "no" >&6; } | |
ef8184c7 | 11817 | fi |
b30fcfae | 11818 | |
cd9a469c | 11819 | |
c47832b1 | 11820 | fi |
11821 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11822 | done | |
11823 | fi | |
b30fcfae | 11824 | |
c47832b1 | 11825 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11826 | set dummy dlltool | |
11827 | if test $build = $target ; then | |
11828 | DLLTOOL_FOR_TARGET="$2" | |
11829 | else | |
11830 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11831 | fi | |
b7ef8464 | 11832 | else |
11833 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11834 | fi |
11835 | ||
ab0da556 | 11836 | else |
11837 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11838 | fi |
11839 | ||
ef8184c7 | 11840 | |
c47832b1 | 11841 | |
11842 | ||
11843 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11844 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11846 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11847 | if test -x $with_build_time_tools/ld; then |
11848 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11849 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11851 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11852 | else |
cd9a469c | 11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11854 | $as_echo "no" >&6; } | |
ab0da556 | 11855 | fi |
c47832b1 | 11856 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11857 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11858 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11859 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11860 | fi |
c47832b1 | 11861 | fi |
38d7211b | 11862 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11863 | # Extract the first word of "ld", so it can be a program name with args. |
11864 | set dummy ld; ac_word=$2 | |
cd9a469c | 11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11866 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11867 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11868 | $as_echo_n "(cached) " >&6 |
ef8184c7 | 11869 | else |
b30fcfae | 11870 | case $LD_FOR_TARGET in |
11871 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11872 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11873 | ;; | |
c47832b1 | 11874 | *) |
b30fcfae | 11875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11876 | for as_dir in $gcc_cv_tool_dirs | |
11877 | do | |
11878 | IFS=$as_save_IFS | |
11879 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11880 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11882 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11884 | break 2 |
11885 | fi | |
11886 | done | |
cd9a469c | 11887 | done |
11888 | IFS=$as_save_IFS | |
b30fcfae | 11889 | |
c47832b1 | 11890 | ;; |
11891 | esac | |
ef8184c7 | 11892 | fi |
b30fcfae | 11893 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11894 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11896 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11897 | else |
cd9a469c | 11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11899 | $as_echo "no" >&6; } | |
ef8184c7 | 11900 | fi |
768691b5 | 11901 | |
cd9a469c | 11902 | |
c47832b1 | 11903 | fi |
11904 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11905 | |
11906 | ||
11907 | if test -n "$LD_FOR_TARGET"; then | |
11908 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11909 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11910 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11911 | fi | |
11912 | ||
11913 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11914 | for ncn_progname in ld; do | |
11915 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11916 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11918 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11919 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11920 | $as_echo_n "(cached) " >&6 |
95a05732 | 11921 | else |
11922 | if test -n "$LD_FOR_TARGET"; then | |
11923 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11924 | else | |
11925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11926 | for as_dir in $PATH | |
11927 | do | |
11928 | IFS=$as_save_IFS | |
11929 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11930 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 11932 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11934 | break 2 |
11935 | fi | |
11936 | done | |
cd9a469c | 11937 | done |
11938 | IFS=$as_save_IFS | |
95a05732 | 11939 | |
11940 | fi | |
11941 | fi | |
11942 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11943 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11945 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11946 | else |
cd9a469c | 11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11948 | $as_echo "no" >&6; } | |
95a05732 | 11949 | fi |
11950 | ||
cd9a469c | 11951 | |
95a05732 | 11952 | done |
11953 | fi | |
11954 | ||
11955 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11956 | for ncn_progname in ld; do |
cd9a469c | 11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11958 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11959 | if test -x $with_build_time_tools/${ncn_progname}; then |
11960 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11962 | $as_echo "yes" >&6; } | |
c47832b1 | 11963 | break |
11964 | else | |
cd9a469c | 11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11966 | $as_echo "no" >&6; } | |
c47832b1 | 11967 | fi |
11968 | done | |
bb612911 | 11969 | fi |
11970 | ||
c47832b1 | 11971 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11972 | for ncn_progname in ld; do | |
11973 | if test -n "$ncn_target_tool_prefix"; then | |
11974 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11975 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11977 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 11978 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
cd9a469c | 11979 | $as_echo_n "(cached) " >&6 |
bb612911 | 11980 | else |
ef8184c7 | 11981 | if test -n "$LD_FOR_TARGET"; then |
11982 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11983 | else |
b30fcfae | 11984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11985 | for as_dir in $PATH | |
11986 | do | |
11987 | IFS=$as_save_IFS | |
11988 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11989 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 11990 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 11991 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11993 | break 2 |
11994 | fi | |
11995 | done | |
cd9a469c | 11996 | done |
11997 | IFS=$as_save_IFS | |
b30fcfae | 11998 | |
bb612911 | 11999 | fi |
12000 | fi | |
b30fcfae | 12001 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 12002 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12004 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 12005 | else |
cd9a469c | 12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12007 | $as_echo "no" >&6; } | |
bb612911 | 12008 | fi |
12009 | ||
cd9a469c | 12010 | |
c47832b1 | 12011 | fi |
12012 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
12013 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12014 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12016 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12017 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
cd9a469c | 12018 | $as_echo_n "(cached) " >&6 |
bb612911 | 12019 | else |
768691b5 | 12020 | if test -n "$LD_FOR_TARGET"; then |
12021 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12022 | else |
b30fcfae | 12023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12024 | for as_dir in $PATH | |
12025 | do | |
12026 | IFS=$as_save_IFS | |
12027 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12028 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12030 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12032 | break 2 |
12033 | fi | |
12034 | done | |
cd9a469c | 12035 | done |
12036 | IFS=$as_save_IFS | |
b30fcfae | 12037 | |
bb612911 | 12038 | fi |
12039 | fi | |
b30fcfae | 12040 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 12041 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
12043 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 12044 | else |
cd9a469c | 12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12046 | $as_echo "no" >&6; } | |
bb612911 | 12047 | fi |
b30fcfae | 12048 | |
cd9a469c | 12049 | |
c47832b1 | 12050 | fi |
12051 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
12052 | done | |
12053 | fi | |
b30fcfae | 12054 | |
768691b5 | 12055 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
12056 | set dummy ld | |
12057 | if test $build = $target ; then | |
12058 | LD_FOR_TARGET="$2" | |
bb612911 | 12059 | else |
768691b5 | 12060 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12061 | fi |
b7ef8464 | 12062 | else |
12063 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 12064 | fi |
12065 | ||
ab0da556 | 12066 | else |
12067 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 12068 | fi |
12069 | ||
12070 | ||
12071 | ||
12072 | ||
12073 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12074 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
12076 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 12077 | if test -x $with_build_time_tools/lipo; then |
12078 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
12079 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
12081 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 12082 | else |
cd9a469c | 12083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12084 | $as_echo "no" >&6; } | |
ab0da556 | 12085 | fi |
c47832b1 | 12086 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12087 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 12088 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
12089 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 12090 | fi |
12091 | fi | |
95a05732 | 12092 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
12093 | # Extract the first word of "lipo", so it can be a program name with args. | |
12094 | set dummy lipo; ac_word=$2 | |
cd9a469c | 12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12096 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12097 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 12098 | $as_echo_n "(cached) " >&6 |
95a05732 | 12099 | else |
12100 | case $LIPO_FOR_TARGET in | |
12101 | [\\/]* | ?:[\\/]*) | |
12102 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
12103 | ;; | |
12104 | *) | |
12105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12106 | for as_dir in $gcc_cv_tool_dirs | |
12107 | do | |
12108 | IFS=$as_save_IFS | |
12109 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12110 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12112 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12114 | break 2 |
12115 | fi | |
12116 | done | |
cd9a469c | 12117 | done |
12118 | IFS=$as_save_IFS | |
95a05732 | 12119 | |
12120 | ;; | |
12121 | esac | |
12122 | fi | |
12123 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 12124 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12126 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 12127 | else |
cd9a469c | 12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12129 | $as_echo "no" >&6; } | |
95a05732 | 12130 | fi |
12131 | ||
cd9a469c | 12132 | |
95a05732 | 12133 | fi |
12134 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
12135 | ||
12136 | ||
12137 | if test -n "$LIPO_FOR_TARGET"; then | |
12138 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
12139 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12140 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
12141 | fi | |
12142 | ||
12143 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12144 | for ncn_progname in lipo; do | |
12145 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12146 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12148 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12149 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 12150 | $as_echo_n "(cached) " >&6 |
c47832b1 | 12151 | else |
95a05732 | 12152 | if test -n "$LIPO_FOR_TARGET"; then |
12153 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12154 | else | |
12155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12156 | for as_dir in $PATH | |
b30fcfae | 12157 | do |
12158 | IFS=$as_save_IFS | |
12159 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12160 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12162 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12164 | break 2 |
12165 | fi | |
12166 | done | |
cd9a469c | 12167 | done |
12168 | IFS=$as_save_IFS | |
b30fcfae | 12169 | |
c47832b1 | 12170 | fi |
95a05732 | 12171 | fi |
12172 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 12173 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12175 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 12176 | else |
cd9a469c | 12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12178 | $as_echo "no" >&6; } | |
c47832b1 | 12179 | fi |
12180 | ||
cd9a469c | 12181 | |
95a05732 | 12182 | done |
c47832b1 | 12183 | fi |
95a05732 | 12184 | |
12185 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12186 | for ncn_progname in lipo; do |
cd9a469c | 12187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12188 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12189 | if test -x $with_build_time_tools/${ncn_progname}; then |
12190 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12192 | $as_echo "yes" >&6; } | |
c47832b1 | 12193 | break |
12194 | else | |
cd9a469c | 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12196 | $as_echo "no" >&6; } | |
c47832b1 | 12197 | fi |
12198 | done | |
12199 | fi | |
12200 | ||
12201 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12202 | for ncn_progname in lipo; do | |
12203 | if test -n "$ncn_target_tool_prefix"; then | |
12204 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12205 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12207 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12208 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 12209 | $as_echo_n "(cached) " >&6 |
9fec3fa8 | 12210 | else |
12211 | if test -n "$LIPO_FOR_TARGET"; then | |
12212 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12213 | else | |
b30fcfae | 12214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12215 | for as_dir in $PATH | |
12216 | do | |
12217 | IFS=$as_save_IFS | |
12218 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12219 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12221 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12223 | break 2 |
12224 | fi | |
12225 | done | |
cd9a469c | 12226 | done |
12227 | IFS=$as_save_IFS | |
b30fcfae | 12228 | |
9fec3fa8 | 12229 | fi |
12230 | fi | |
b30fcfae | 12231 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12232 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12234 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12235 | else |
cd9a469c | 12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12237 | $as_echo "no" >&6; } | |
9fec3fa8 | 12238 | fi |
12239 | ||
cd9a469c | 12240 | |
c47832b1 | 12241 | fi |
12242 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12243 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12244 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12246 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12247 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
cd9a469c | 12248 | $as_echo_n "(cached) " >&6 |
9fec3fa8 | 12249 | else |
12250 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 12251 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
12252 | else | |
b30fcfae | 12253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12254 | for as_dir in $PATH | |
12255 | do | |
12256 | IFS=$as_save_IFS | |
12257 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12258 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12260 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12262 | break 2 |
12263 | fi | |
12264 | done | |
cd9a469c | 12265 | done |
12266 | IFS=$as_save_IFS | |
b30fcfae | 12267 | |
9fec3fa8 | 12268 | fi |
12269 | fi | |
b30fcfae | 12270 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 12271 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12273 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 12274 | else |
cd9a469c | 12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12276 | $as_echo "no" >&6; } | |
9fec3fa8 | 12277 | fi |
b30fcfae | 12278 | |
cd9a469c | 12279 | |
c47832b1 | 12280 | fi |
12281 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12282 | done | |
12283 | fi | |
b30fcfae | 12284 | |
9fec3fa8 | 12285 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12286 | set dummy lipo | |
12287 | if test $build = $target ; then | |
12288 | LIPO_FOR_TARGET="$2" | |
12289 | else | |
12290 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12291 | fi | |
b7ef8464 | 12292 | else |
12293 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 12294 | fi |
12295 | ||
ab0da556 | 12296 | else |
12297 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 12298 | fi |
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12304 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12306 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 12307 | if test -x $with_build_time_tools/nm; then |
12308 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12309 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12311 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 12312 | else |
cd9a469c | 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12314 | $as_echo "no" >&6; } | |
ab0da556 | 12315 | fi |
c47832b1 | 12316 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12317 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 12318 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12319 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 12320 | fi |
12321 | fi | |
38d7211b | 12322 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12323 | # Extract the first word of "nm", so it can be a program name with args. |
12324 | set dummy nm; ac_word=$2 | |
cd9a469c | 12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12326 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12327 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12328 | $as_echo_n "(cached) " >&6 |
c47832b1 | 12329 | else |
b30fcfae | 12330 | case $NM_FOR_TARGET in |
12331 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12332 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12333 | ;; | |
c47832b1 | 12334 | *) |
b30fcfae | 12335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12336 | for as_dir in $gcc_cv_tool_dirs | |
12337 | do | |
12338 | IFS=$as_save_IFS | |
12339 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12340 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12342 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12344 | break 2 |
12345 | fi | |
12346 | done | |
cd9a469c | 12347 | done |
12348 | IFS=$as_save_IFS | |
b30fcfae | 12349 | |
c47832b1 | 12350 | ;; |
12351 | esac | |
12352 | fi | |
b30fcfae | 12353 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 12354 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12356 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 12357 | else |
cd9a469c | 12358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12359 | $as_echo "no" >&6; } | |
c47832b1 | 12360 | fi |
12361 | ||
cd9a469c | 12362 | |
c47832b1 | 12363 | fi |
12364 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 12365 | |
12366 | ||
12367 | if test -n "$NM_FOR_TARGET"; then | |
12368 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12369 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12370 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12371 | fi | |
12372 | ||
12373 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12374 | for ncn_progname in nm; do | |
12375 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12376 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12378 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12379 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12380 | $as_echo_n "(cached) " >&6 |
95a05732 | 12381 | else |
12382 | if test -n "$NM_FOR_TARGET"; then | |
12383 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12384 | else | |
12385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12386 | for as_dir in $PATH | |
12387 | do | |
12388 | IFS=$as_save_IFS | |
12389 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12390 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12392 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12394 | break 2 |
12395 | fi | |
12396 | done | |
cd9a469c | 12397 | done |
12398 | IFS=$as_save_IFS | |
95a05732 | 12399 | |
12400 | fi | |
12401 | fi | |
12402 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12403 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12405 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 12406 | else |
cd9a469c | 12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12408 | $as_echo "no" >&6; } | |
95a05732 | 12409 | fi |
12410 | ||
cd9a469c | 12411 | |
95a05732 | 12412 | done |
12413 | fi | |
12414 | ||
12415 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12416 | for ncn_progname in nm; do |
cd9a469c | 12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12418 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12419 | if test -x $with_build_time_tools/${ncn_progname}; then |
12420 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12422 | $as_echo "yes" >&6; } | |
c47832b1 | 12423 | break |
12424 | else | |
cd9a469c | 12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12426 | $as_echo "no" >&6; } | |
c47832b1 | 12427 | fi |
12428 | done | |
12429 | fi | |
12430 | ||
12431 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12432 | for ncn_progname in nm; do | |
12433 | if test -n "$ncn_target_tool_prefix"; then | |
12434 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12435 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12437 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12438 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12439 | $as_echo_n "(cached) " >&6 |
bb612911 | 12440 | else |
ef8184c7 | 12441 | if test -n "$NM_FOR_TARGET"; then |
12442 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12443 | else |
b30fcfae | 12444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12445 | for as_dir in $PATH | |
12446 | do | |
12447 | IFS=$as_save_IFS | |
12448 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12449 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12451 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12453 | break 2 |
12454 | fi | |
12455 | done | |
cd9a469c | 12456 | done |
12457 | IFS=$as_save_IFS | |
b30fcfae | 12458 | |
bb612911 | 12459 | fi |
12460 | fi | |
b30fcfae | 12461 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 12462 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12464 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12465 | else |
cd9a469c | 12466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12467 | $as_echo "no" >&6; } | |
bb612911 | 12468 | fi |
12469 | ||
cd9a469c | 12470 | |
c47832b1 | 12471 | fi |
12472 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12473 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12474 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12476 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12477 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
cd9a469c | 12478 | $as_echo_n "(cached) " >&6 |
bb612911 | 12479 | else |
768691b5 | 12480 | if test -n "$NM_FOR_TARGET"; then |
12481 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12482 | else |
b30fcfae | 12483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12484 | for as_dir in $PATH | |
12485 | do | |
12486 | IFS=$as_save_IFS | |
12487 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12488 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12490 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12492 | break 2 |
12493 | fi | |
12494 | done | |
cd9a469c | 12495 | done |
12496 | IFS=$as_save_IFS | |
b30fcfae | 12497 | |
bb612911 | 12498 | fi |
12499 | fi | |
b30fcfae | 12500 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 12501 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12503 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 12504 | else |
cd9a469c | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12506 | $as_echo "no" >&6; } | |
bb612911 | 12507 | fi |
b30fcfae | 12508 | |
cd9a469c | 12509 | |
c47832b1 | 12510 | fi |
12511 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12512 | done | |
12513 | fi | |
b30fcfae | 12514 | |
768691b5 | 12515 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12516 | set dummy nm | |
12517 | if test $build = $target ; then | |
12518 | NM_FOR_TARGET="$2" | |
bb612911 | 12519 | else |
768691b5 | 12520 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12521 | fi |
b7ef8464 | 12522 | else |
12523 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 12524 | fi |
12525 | ||
ab0da556 | 12526 | else |
12527 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 12528 | fi |
12529 | ||
12530 | ||
12531 | ||
12532 | ||
fc740d70 | 12533 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12534 | if test -n "$with_build_time_tools"; then | |
12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12536 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12537 | if test -x $with_build_time_tools/objcopy; then | |
12538 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12539 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12541 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12542 | else | |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12544 | $as_echo "no" >&6; } | |
12545 | fi | |
12546 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12547 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12548 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12549 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12550 | fi | |
12551 | fi | |
12552 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12553 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12554 | set dummy objcopy; ac_word=$2 | |
12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12556 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12557 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12558 | $as_echo_n "(cached) " >&6 |
12559 | else | |
12560 | case $OBJCOPY_FOR_TARGET in | |
12561 | [\\/]* | ?:[\\/]*) | |
12562 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12563 | ;; | |
12564 | *) | |
12565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12566 | for as_dir in $gcc_cv_tool_dirs | |
12567 | do | |
12568 | IFS=$as_save_IFS | |
12569 | test -z "$as_dir" && as_dir=. | |
12570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12572 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
12573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12574 | break 2 | |
12575 | fi | |
12576 | done | |
12577 | done | |
12578 | IFS=$as_save_IFS | |
12579 | ||
12580 | ;; | |
12581 | esac | |
12582 | fi | |
12583 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12584 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12586 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12587 | else | |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12589 | $as_echo "no" >&6; } | |
12590 | fi | |
12591 | ||
12592 | ||
12593 | fi | |
12594 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12595 | ||
12596 | ||
12597 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12598 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12599 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12600 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12601 | fi | |
12602 | ||
12603 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12604 | for ncn_progname in objcopy; do | |
12605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12606 | set dummy ${ncn_progname}; ac_word=$2 | |
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12608 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12609 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12610 | $as_echo_n "(cached) " >&6 |
12611 | else | |
12612 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12613 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12614 | else | |
12615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12616 | for as_dir in $PATH | |
12617 | do | |
12618 | IFS=$as_save_IFS | |
12619 | test -z "$as_dir" && as_dir=. | |
12620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12622 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12624 | break 2 | |
12625 | fi | |
12626 | done | |
12627 | done | |
12628 | IFS=$as_save_IFS | |
12629 | ||
12630 | fi | |
12631 | fi | |
12632 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12633 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12635 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12636 | else | |
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12638 | $as_echo "no" >&6; } | |
12639 | fi | |
12640 | ||
12641 | ||
12642 | done | |
12643 | fi | |
12644 | ||
12645 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12646 | for ncn_progname in objcopy; do | |
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12648 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12649 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12650 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12652 | $as_echo "yes" >&6; } | |
12653 | break | |
12654 | else | |
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12656 | $as_echo "no" >&6; } | |
12657 | fi | |
12658 | done | |
12659 | fi | |
12660 | ||
12661 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12662 | for ncn_progname in objcopy; do | |
12663 | if test -n "$ncn_target_tool_prefix"; then | |
12664 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12665 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12667 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12668 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12669 | $as_echo_n "(cached) " >&6 |
12670 | else | |
12671 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12672 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12673 | else | |
12674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12675 | for as_dir in $PATH | |
12676 | do | |
12677 | IFS=$as_save_IFS | |
12678 | test -z "$as_dir" && as_dir=. | |
12679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12681 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12683 | break 2 | |
12684 | fi | |
12685 | done | |
12686 | done | |
12687 | IFS=$as_save_IFS | |
12688 | ||
12689 | fi | |
12690 | fi | |
12691 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12692 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12694 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12695 | else | |
12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12697 | $as_echo "no" >&6; } | |
12698 | fi | |
12699 | ||
12700 | ||
12701 | fi | |
12702 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12704 | set dummy ${ncn_progname}; ac_word=$2 | |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12706 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12707 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
fc740d70 | 12708 | $as_echo_n "(cached) " >&6 |
12709 | else | |
12710 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12711 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12712 | else | |
12713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12714 | for as_dir in $PATH | |
12715 | do | |
12716 | IFS=$as_save_IFS | |
12717 | test -z "$as_dir" && as_dir=. | |
12718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 12719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fc740d70 | 12720 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
12721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12722 | break 2 | |
12723 | fi | |
12724 | done | |
12725 | done | |
12726 | IFS=$as_save_IFS | |
12727 | ||
12728 | fi | |
12729 | fi | |
12730 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12731 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12733 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12734 | else | |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12736 | $as_echo "no" >&6; } | |
12737 | fi | |
12738 | ||
12739 | ||
12740 | fi | |
12741 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12742 | done | |
12743 | fi | |
12744 | ||
12745 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12746 | set dummy objcopy | |
12747 | if test $build = $target ; then | |
12748 | OBJCOPY_FOR_TARGET="$2" | |
12749 | else | |
12750 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12751 | fi | |
12752 | else | |
12753 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12754 | fi | |
12755 | ||
12756 | else | |
12757 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12758 | fi | |
12759 | ||
12760 | ||
12761 | ||
12762 | ||
c47832b1 | 12763 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12764 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12766 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 12767 | if test -x $with_build_time_tools/objdump; then |
12768 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12769 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12771 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 12772 | else |
cd9a469c | 12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12774 | $as_echo "no" >&6; } | |
ab0da556 | 12775 | fi |
c47832b1 | 12776 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12777 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12778 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12779 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12780 | fi |
12781 | fi | |
38d7211b | 12782 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12783 | # Extract the first word of "objdump", so it can be a program name with args. |
12784 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12786 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12787 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12788 | $as_echo_n "(cached) " >&6 |
c47832b1 | 12789 | else |
b30fcfae | 12790 | case $OBJDUMP_FOR_TARGET in |
12791 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12792 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12793 | ;; | |
c47832b1 | 12794 | *) |
b30fcfae | 12795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12796 | for as_dir in $gcc_cv_tool_dirs | |
12797 | do | |
12798 | IFS=$as_save_IFS | |
12799 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12800 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12802 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12804 | break 2 |
12805 | fi | |
12806 | done | |
cd9a469c | 12807 | done |
12808 | IFS=$as_save_IFS | |
b30fcfae | 12809 | |
c47832b1 | 12810 | ;; |
12811 | esac | |
12812 | fi | |
b30fcfae | 12813 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12814 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12816 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12817 | else |
cd9a469c | 12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12819 | $as_echo "no" >&6; } | |
c47832b1 | 12820 | fi |
12821 | ||
cd9a469c | 12822 | |
c47832b1 | 12823 | fi |
12824 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12825 | |
12826 | ||
12827 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12828 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12829 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12830 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12831 | fi | |
12832 | ||
12833 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12834 | for ncn_progname in objdump; do | |
12835 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12836 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12838 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12839 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12840 | $as_echo_n "(cached) " >&6 |
95a05732 | 12841 | else |
12842 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12843 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12844 | else | |
12845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12846 | for as_dir in $PATH | |
12847 | do | |
12848 | IFS=$as_save_IFS | |
12849 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12850 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 12852 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12854 | break 2 |
12855 | fi | |
12856 | done | |
cd9a469c | 12857 | done |
12858 | IFS=$as_save_IFS | |
95a05732 | 12859 | |
12860 | fi | |
12861 | fi | |
12862 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12863 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12865 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12866 | else |
cd9a469c | 12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12868 | $as_echo "no" >&6; } | |
95a05732 | 12869 | fi |
12870 | ||
cd9a469c | 12871 | |
95a05732 | 12872 | done |
12873 | fi | |
12874 | ||
12875 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12876 | for ncn_progname in objdump; do |
cd9a469c | 12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12878 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12879 | if test -x $with_build_time_tools/${ncn_progname}; then |
12880 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12882 | $as_echo "yes" >&6; } | |
c47832b1 | 12883 | break |
12884 | else | |
cd9a469c | 12885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12886 | $as_echo "no" >&6; } | |
c47832b1 | 12887 | fi |
12888 | done | |
12889 | fi | |
12890 | ||
12891 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12892 | for ncn_progname in objdump; do | |
12893 | if test -n "$ncn_target_tool_prefix"; then | |
12894 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12895 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12897 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12898 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12899 | $as_echo_n "(cached) " >&6 |
ae74ffb7 | 12900 | else |
12901 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12902 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12903 | else | |
b30fcfae | 12904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12905 | for as_dir in $PATH | |
12906 | do | |
12907 | IFS=$as_save_IFS | |
12908 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12909 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12911 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12913 | break 2 |
12914 | fi | |
12915 | done | |
cd9a469c | 12916 | done |
12917 | IFS=$as_save_IFS | |
b30fcfae | 12918 | |
ae74ffb7 | 12919 | fi |
12920 | fi | |
b30fcfae | 12921 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12922 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12924 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12925 | else |
cd9a469c | 12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12927 | $as_echo "no" >&6; } | |
ae74ffb7 | 12928 | fi |
12929 | ||
cd9a469c | 12930 | |
c47832b1 | 12931 | fi |
12932 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12933 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12934 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12936 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 12937 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
cd9a469c | 12938 | $as_echo_n "(cached) " >&6 |
ae74ffb7 | 12939 | else |
12940 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12941 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12942 | else | |
b30fcfae | 12943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12944 | for as_dir in $PATH | |
12945 | do | |
12946 | IFS=$as_save_IFS | |
12947 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12948 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 12949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 12950 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12952 | break 2 |
12953 | fi | |
12954 | done | |
cd9a469c | 12955 | done |
12956 | IFS=$as_save_IFS | |
b30fcfae | 12957 | |
ae74ffb7 | 12958 | fi |
12959 | fi | |
b30fcfae | 12960 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12961 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12963 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12964 | else |
cd9a469c | 12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12966 | $as_echo "no" >&6; } | |
ae74ffb7 | 12967 | fi |
b30fcfae | 12968 | |
cd9a469c | 12969 | |
c47832b1 | 12970 | fi |
12971 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12972 | done | |
12973 | fi | |
b30fcfae | 12974 | |
ae74ffb7 | 12975 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12976 | set dummy objdump | |
12977 | if test $build = $target ; then | |
12978 | OBJDUMP_FOR_TARGET="$2" | |
12979 | else | |
12980 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12981 | fi | |
b7ef8464 | 12982 | else |
12983 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12984 | fi |
12985 | ||
ab0da556 | 12986 | else |
12987 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12988 | fi |
12989 | ||
12990 | ||
12991 | ||
12992 | ||
16706a2e | 12993 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
12994 | if test -n "$with_build_time_tools"; then | |
12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
12996 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
12997 | if test -x $with_build_time_tools/otool; then | |
12998 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
12999 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
13001 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
13002 | else | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13004 | $as_echo "no" >&6; } | |
13005 | fi | |
13006 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13007 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
13008 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
13009 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13010 | fi | |
13011 | fi | |
13012 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13013 | # Extract the first word of "otool", so it can be a program name with args. | |
13014 | set dummy otool; ac_word=$2 | |
13015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13016 | $as_echo_n "checking for $ac_word... " >&6; } | |
13017 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
13018 | $as_echo_n "(cached) " >&6 | |
13019 | else | |
13020 | case $OTOOL_FOR_TARGET in | |
13021 | [\\/]* | ?:[\\/]*) | |
13022 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
13023 | ;; | |
13024 | *) | |
13025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13026 | for as_dir in $gcc_cv_tool_dirs | |
13027 | do | |
13028 | IFS=$as_save_IFS | |
13029 | test -z "$as_dir" && as_dir=. | |
13030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13032 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13034 | break 2 | |
13035 | fi | |
13036 | done | |
13037 | done | |
13038 | IFS=$as_save_IFS | |
13039 | ||
13040 | ;; | |
13041 | esac | |
13042 | fi | |
13043 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13044 | if test -n "$OTOOL_FOR_TARGET"; then | |
13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13046 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13047 | else | |
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13049 | $as_echo "no" >&6; } | |
13050 | fi | |
13051 | ||
13052 | ||
13053 | fi | |
13054 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
13055 | ||
13056 | ||
13057 | if test -n "$OTOOL_FOR_TARGET"; then | |
13058 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
13059 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13060 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13061 | fi | |
13062 | ||
13063 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13064 | for ncn_progname in otool; do | |
13065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13066 | set dummy ${ncn_progname}; ac_word=$2 | |
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13068 | $as_echo_n "checking for $ac_word... " >&6; } | |
13069 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13070 | $as_echo_n "(cached) " >&6 | |
13071 | else | |
13072 | if test -n "$OTOOL_FOR_TARGET"; then | |
13073 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13074 | else | |
13075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13076 | for as_dir in $PATH | |
13077 | do | |
13078 | IFS=$as_save_IFS | |
13079 | test -z "$as_dir" && as_dir=. | |
13080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13082 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13084 | break 2 | |
13085 | fi | |
13086 | done | |
13087 | done | |
13088 | IFS=$as_save_IFS | |
13089 | ||
13090 | fi | |
13091 | fi | |
13092 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13093 | if test -n "$OTOOL_FOR_TARGET"; then | |
13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13095 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13096 | else | |
13097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13098 | $as_echo "no" >&6; } | |
13099 | fi | |
13100 | ||
13101 | ||
13102 | done | |
13103 | fi | |
13104 | ||
13105 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13106 | for ncn_progname in otool; do | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13108 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13109 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13110 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13112 | $as_echo "yes" >&6; } | |
13113 | break | |
13114 | else | |
13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13116 | $as_echo "no" >&6; } | |
13117 | fi | |
13118 | done | |
13119 | fi | |
13120 | ||
13121 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
13122 | for ncn_progname in otool; do | |
13123 | if test -n "$ncn_target_tool_prefix"; then | |
13124 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13125 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13127 | $as_echo_n "checking for $ac_word... " >&6; } | |
13128 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13129 | $as_echo_n "(cached) " >&6 | |
13130 | else | |
13131 | if test -n "$OTOOL_FOR_TARGET"; then | |
13132 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13133 | else | |
13134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13135 | for as_dir in $PATH | |
13136 | do | |
13137 | IFS=$as_save_IFS | |
13138 | test -z "$as_dir" && as_dir=. | |
13139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13141 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13143 | break 2 | |
13144 | fi | |
13145 | done | |
13146 | done | |
13147 | IFS=$as_save_IFS | |
13148 | ||
13149 | fi | |
13150 | fi | |
13151 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13152 | if test -n "$OTOOL_FOR_TARGET"; then | |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13154 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13155 | else | |
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13157 | $as_echo "no" >&6; } | |
13158 | fi | |
13159 | ||
13160 | ||
13161 | fi | |
13162 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
13163 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13164 | set dummy ${ncn_progname}; ac_word=$2 | |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13166 | $as_echo_n "checking for $ac_word... " >&6; } | |
13167 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
13168 | $as_echo_n "(cached) " >&6 | |
13169 | else | |
13170 | if test -n "$OTOOL_FOR_TARGET"; then | |
13171 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
13172 | else | |
13173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13174 | for as_dir in $PATH | |
13175 | do | |
13176 | IFS=$as_save_IFS | |
13177 | test -z "$as_dir" && as_dir=. | |
13178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13180 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
13181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13182 | break 2 | |
13183 | fi | |
13184 | done | |
13185 | done | |
13186 | IFS=$as_save_IFS | |
13187 | ||
13188 | fi | |
13189 | fi | |
13190 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
13191 | if test -n "$OTOOL_FOR_TARGET"; then | |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
13193 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
13194 | else | |
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13196 | $as_echo "no" >&6; } | |
13197 | fi | |
13198 | ||
13199 | ||
13200 | fi | |
13201 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
13202 | done | |
13203 | fi | |
13204 | ||
13205 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
13206 | set dummy otool | |
13207 | if test $build = $target ; then | |
13208 | OTOOL_FOR_TARGET="$2" | |
13209 | else | |
13210 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13211 | fi | |
13212 | else | |
13213 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
13214 | fi | |
13215 | ||
13216 | else | |
13217 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
13218 | fi | |
13219 | ||
13220 | ||
13221 | ||
13222 | ||
c47832b1 | 13223 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
13224 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
13226 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 13227 | if test -x $with_build_time_tools/ranlib; then |
13228 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
13229 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
13231 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 13232 | else |
cd9a469c | 13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13234 | $as_echo "no" >&6; } | |
ab0da556 | 13235 | fi |
c47832b1 | 13236 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13237 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 13238 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
13239 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 13240 | fi |
13241 | fi | |
38d7211b | 13242 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13243 | # Extract the first word of "ranlib", so it can be a program name with args. |
13244 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13246 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13247 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 13248 | $as_echo_n "(cached) " >&6 |
c47832b1 | 13249 | else |
b30fcfae | 13250 | case $RANLIB_FOR_TARGET in |
13251 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13252 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
13253 | ;; | |
c47832b1 | 13254 | *) |
b30fcfae | 13255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13256 | for as_dir in $gcc_cv_tool_dirs | |
13257 | do | |
13258 | IFS=$as_save_IFS | |
13259 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13260 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13262 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13264 | break 2 |
13265 | fi | |
13266 | done | |
cd9a469c | 13267 | done |
13268 | IFS=$as_save_IFS | |
b30fcfae | 13269 | |
c47832b1 | 13270 | ;; |
13271 | esac | |
13272 | fi | |
b30fcfae | 13273 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 13274 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13276 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 13277 | else |
cd9a469c | 13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13279 | $as_echo "no" >&6; } | |
c47832b1 | 13280 | fi |
13281 | ||
cd9a469c | 13282 | |
c47832b1 | 13283 | fi |
13284 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 13285 | |
13286 | ||
13287 | if test -n "$RANLIB_FOR_TARGET"; then | |
13288 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
13289 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13290 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13291 | fi | |
13292 | ||
13293 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13294 | for ncn_progname in ranlib; do | |
13295 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13296 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13298 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13299 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 13300 | $as_echo_n "(cached) " >&6 |
95a05732 | 13301 | else |
13302 | if test -n "$RANLIB_FOR_TARGET"; then | |
13303 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
13304 | else | |
13305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13306 | for as_dir in $PATH | |
13307 | do | |
13308 | IFS=$as_save_IFS | |
13309 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13310 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 13312 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13314 | break 2 |
13315 | fi | |
13316 | done | |
cd9a469c | 13317 | done |
13318 | IFS=$as_save_IFS | |
95a05732 | 13319 | |
13320 | fi | |
13321 | fi | |
13322 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
13323 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13325 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 13326 | else |
cd9a469c | 13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13328 | $as_echo "no" >&6; } | |
95a05732 | 13329 | fi |
13330 | ||
cd9a469c | 13331 | |
95a05732 | 13332 | done |
13333 | fi | |
13334 | ||
13335 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13336 | for ncn_progname in ranlib; do |
cd9a469c | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13338 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13339 | if test -x $with_build_time_tools/${ncn_progname}; then |
13340 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13342 | $as_echo "yes" >&6; } | |
c47832b1 | 13343 | break |
13344 | else | |
cd9a469c | 13345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13346 | $as_echo "no" >&6; } | |
c47832b1 | 13347 | fi |
13348 | done | |
13349 | fi | |
13350 | ||
13351 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
13352 | for ncn_progname in ranlib; do | |
13353 | if test -n "$ncn_target_tool_prefix"; then | |
13354 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 13355 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13357 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13358 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 13359 | $as_echo_n "(cached) " >&6 |
bb612911 | 13360 | else |
ef8184c7 | 13361 | if test -n "$RANLIB_FOR_TARGET"; then |
13362 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13363 | else |
b30fcfae | 13364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13365 | for as_dir in $PATH | |
13366 | do | |
13367 | IFS=$as_save_IFS | |
13368 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13369 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13371 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13373 | break 2 |
13374 | fi | |
13375 | done | |
cd9a469c | 13376 | done |
13377 | IFS=$as_save_IFS | |
b30fcfae | 13378 | |
bb612911 | 13379 | fi |
13380 | fi | |
b30fcfae | 13381 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 13382 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13384 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 13385 | else |
cd9a469c | 13386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13387 | $as_echo "no" >&6; } | |
bb612911 | 13388 | fi |
13389 | ||
cd9a469c | 13390 | |
c47832b1 | 13391 | fi |
13392 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
13393 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 13394 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13396 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13397 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
cd9a469c | 13398 | $as_echo_n "(cached) " >&6 |
bb612911 | 13399 | else |
768691b5 | 13400 | if test -n "$RANLIB_FOR_TARGET"; then |
13401 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 13402 | else |
b30fcfae | 13403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13404 | for as_dir in $PATH | |
13405 | do | |
13406 | IFS=$as_save_IFS | |
13407 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13408 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13410 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13412 | break 2 |
13413 | fi | |
13414 | done | |
cd9a469c | 13415 | done |
13416 | IFS=$as_save_IFS | |
b30fcfae | 13417 | |
bb612911 | 13418 | fi |
13419 | fi | |
b30fcfae | 13420 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 13421 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
13423 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 13424 | else |
cd9a469c | 13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13426 | $as_echo "no" >&6; } | |
bb612911 | 13427 | fi |
b30fcfae | 13428 | |
cd9a469c | 13429 | |
c47832b1 | 13430 | fi |
13431 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
13432 | done | |
13433 | fi | |
b30fcfae | 13434 | |
c47832b1 | 13435 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13436 | set dummy ranlib | |
13437 | if test $build = $target ; then | |
13438 | RANLIB_FOR_TARGET="$2" | |
13439 | else | |
13440 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 13441 | fi |
b7ef8464 | 13442 | else |
13443 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 13444 | fi |
768691b5 | 13445 | |
ab0da556 | 13446 | else |
13447 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 13448 | fi |
13449 | ||
c47832b1 | 13450 | |
13451 | ||
13452 | ||
3f71364d | 13453 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13454 | if test -n "$with_build_time_tools"; then | |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13456 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13457 | if test -x $with_build_time_tools/readelf; then | |
13458 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13459 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13461 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13462 | else | |
13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13464 | $as_echo "no" >&6; } | |
13465 | fi | |
13466 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13467 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13468 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13469 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13470 | fi | |
13471 | fi | |
13472 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13473 | # Extract the first word of "readelf", so it can be a program name with args. | |
13474 | set dummy readelf; ac_word=$2 | |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13476 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13477 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13478 | $as_echo_n "(cached) " >&6 |
13479 | else | |
13480 | case $READELF_FOR_TARGET in | |
13481 | [\\/]* | ?:[\\/]*) | |
13482 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13483 | ;; | |
13484 | *) | |
13485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13486 | for as_dir in $gcc_cv_tool_dirs | |
13487 | do | |
13488 | IFS=$as_save_IFS | |
13489 | test -z "$as_dir" && as_dir=. | |
13490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13492 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13494 | break 2 | |
13495 | fi | |
13496 | done | |
13497 | done | |
13498 | IFS=$as_save_IFS | |
13499 | ||
13500 | ;; | |
13501 | esac | |
13502 | fi | |
13503 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13504 | if test -n "$READELF_FOR_TARGET"; then | |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13506 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13507 | else | |
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13509 | $as_echo "no" >&6; } | |
13510 | fi | |
13511 | ||
13512 | ||
13513 | fi | |
13514 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13515 | ||
13516 | ||
13517 | if test -n "$READELF_FOR_TARGET"; then | |
13518 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13519 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13520 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13521 | fi | |
13522 | ||
13523 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13524 | for ncn_progname in readelf; do | |
13525 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13526 | set dummy ${ncn_progname}; ac_word=$2 | |
13527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13528 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13529 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13530 | $as_echo_n "(cached) " >&6 |
13531 | else | |
13532 | if test -n "$READELF_FOR_TARGET"; then | |
13533 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13534 | else | |
13535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13536 | for as_dir in $PATH | |
13537 | do | |
13538 | IFS=$as_save_IFS | |
13539 | test -z "$as_dir" && as_dir=. | |
13540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13542 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13544 | break 2 | |
13545 | fi | |
13546 | done | |
13547 | done | |
13548 | IFS=$as_save_IFS | |
13549 | ||
13550 | fi | |
13551 | fi | |
13552 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13553 | if test -n "$READELF_FOR_TARGET"; then | |
13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13555 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13556 | else | |
13557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13558 | $as_echo "no" >&6; } | |
13559 | fi | |
13560 | ||
13561 | ||
13562 | done | |
13563 | fi | |
13564 | ||
13565 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13566 | for ncn_progname in readelf; do | |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13568 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13569 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13570 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13572 | $as_echo "yes" >&6; } | |
13573 | break | |
13574 | else | |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13576 | $as_echo "no" >&6; } | |
13577 | fi | |
13578 | done | |
13579 | fi | |
13580 | ||
13581 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13582 | for ncn_progname in readelf; do | |
13583 | if test -n "$ncn_target_tool_prefix"; then | |
13584 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13585 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13587 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13588 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13589 | $as_echo_n "(cached) " >&6 |
13590 | else | |
13591 | if test -n "$READELF_FOR_TARGET"; then | |
13592 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13593 | else | |
13594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13595 | for as_dir in $PATH | |
13596 | do | |
13597 | IFS=$as_save_IFS | |
13598 | test -z "$as_dir" && as_dir=. | |
13599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13601 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13603 | break 2 | |
13604 | fi | |
13605 | done | |
13606 | done | |
13607 | IFS=$as_save_IFS | |
13608 | ||
13609 | fi | |
13610 | fi | |
13611 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13612 | if test -n "$READELF_FOR_TARGET"; then | |
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13614 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13615 | else | |
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13617 | $as_echo "no" >&6; } | |
13618 | fi | |
13619 | ||
13620 | ||
13621 | fi | |
13622 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13623 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13624 | set dummy ${ncn_progname}; ac_word=$2 | |
13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13626 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13627 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
3f71364d | 13628 | $as_echo_n "(cached) " >&6 |
13629 | else | |
13630 | if test -n "$READELF_FOR_TARGET"; then | |
13631 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13632 | else | |
13633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13634 | for as_dir in $PATH | |
13635 | do | |
13636 | IFS=$as_save_IFS | |
13637 | test -z "$as_dir" && as_dir=. | |
13638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 13639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3f71364d | 13640 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
13641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13642 | break 2 | |
13643 | fi | |
13644 | done | |
13645 | done | |
13646 | IFS=$as_save_IFS | |
13647 | ||
13648 | fi | |
13649 | fi | |
13650 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13651 | if test -n "$READELF_FOR_TARGET"; then | |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13653 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13654 | else | |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13656 | $as_echo "no" >&6; } | |
13657 | fi | |
13658 | ||
13659 | ||
13660 | fi | |
13661 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13662 | done | |
13663 | fi | |
13664 | ||
13665 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13666 | set dummy readelf | |
13667 | if test $build = $target ; then | |
13668 | READELF_FOR_TARGET="$2" | |
13669 | else | |
13670 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13671 | fi | |
13672 | else | |
13673 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13674 | fi | |
13675 | ||
13676 | else | |
13677 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13678 | fi | |
13679 | ||
13680 | ||
13681 | ||
13682 | ||
c47832b1 | 13683 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13684 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13686 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 13687 | if test -x $with_build_time_tools/strip; then |
13688 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13689 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13691 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 13692 | else |
cd9a469c | 13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13694 | $as_echo "no" >&6; } | |
ab0da556 | 13695 | fi |
c47832b1 | 13696 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13697 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 13698 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13699 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 13700 | fi |
13701 | fi | |
38d7211b | 13702 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13703 | # Extract the first word of "strip", so it can be a program name with args. |
13704 | set dummy strip; ac_word=$2 | |
cd9a469c | 13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13706 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13707 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13708 | $as_echo_n "(cached) " >&6 |
c47832b1 | 13709 | else |
b30fcfae | 13710 | case $STRIP_FOR_TARGET in |
13711 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13712 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13713 | ;; | |
c47832b1 | 13714 | *) |
b30fcfae | 13715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13716 | for as_dir in $gcc_cv_tool_dirs | |
13717 | do | |
13718 | IFS=$as_save_IFS | |
13719 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13720 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13722 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13724 | break 2 |
13725 | fi | |
13726 | done | |
cd9a469c | 13727 | done |
13728 | IFS=$as_save_IFS | |
b30fcfae | 13729 | |
c47832b1 | 13730 | ;; |
13731 | esac | |
13732 | fi | |
b30fcfae | 13733 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 13734 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13736 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 13737 | else |
cd9a469c | 13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13739 | $as_echo "no" >&6; } | |
c47832b1 | 13740 | fi |
13741 | ||
cd9a469c | 13742 | |
c47832b1 | 13743 | fi |
13744 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 13745 | |
13746 | ||
13747 | if test -n "$STRIP_FOR_TARGET"; then | |
13748 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13749 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13750 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13751 | fi | |
13752 | ||
13753 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13754 | for ncn_progname in strip; do | |
13755 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13756 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13758 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13759 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13760 | $as_echo_n "(cached) " >&6 |
95a05732 | 13761 | else |
13762 | if test -n "$STRIP_FOR_TARGET"; then | |
13763 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13764 | else | |
13765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13766 | for as_dir in $PATH | |
13767 | do | |
13768 | IFS=$as_save_IFS | |
13769 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13770 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 13772 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 13774 | break 2 |
13775 | fi | |
13776 | done | |
cd9a469c | 13777 | done |
13778 | IFS=$as_save_IFS | |
95a05732 | 13779 | |
13780 | fi | |
13781 | fi | |
13782 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13783 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13785 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 13786 | else |
cd9a469c | 13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13788 | $as_echo "no" >&6; } | |
95a05732 | 13789 | fi |
13790 | ||
cd9a469c | 13791 | |
95a05732 | 13792 | done |
13793 | fi | |
13794 | ||
13795 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 13796 | for ncn_progname in strip; do |
cd9a469c | 13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13798 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 13799 | if test -x $with_build_time_tools/${ncn_progname}; then |
13800 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13802 | $as_echo "yes" >&6; } | |
c47832b1 | 13803 | break |
13804 | else | |
cd9a469c | 13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13806 | $as_echo "no" >&6; } | |
c47832b1 | 13807 | fi |
13808 | done | |
13809 | fi | |
13810 | ||
13811 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13812 | for ncn_progname in strip; do | |
13813 | if test -n "$ncn_target_tool_prefix"; then | |
13814 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13815 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13817 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13818 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13819 | $as_echo_n "(cached) " >&6 |
ae48753c | 13820 | else |
13821 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 13822 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13823 | else | |
13824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13825 | for as_dir in $PATH | |
13826 | do | |
13827 | IFS=$as_save_IFS | |
13828 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13829 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13831 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13833 | break 2 |
13834 | fi | |
13835 | done | |
cd9a469c | 13836 | done |
13837 | IFS=$as_save_IFS | |
b30fcfae | 13838 | |
9fec3fa8 | 13839 | fi |
13840 | fi | |
b30fcfae | 13841 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13842 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13844 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13845 | else |
cd9a469c | 13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13847 | $as_echo "no" >&6; } | |
9fec3fa8 | 13848 | fi |
13849 | ||
cd9a469c | 13850 | |
c47832b1 | 13851 | fi |
13852 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13853 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 13854 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13856 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13857 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
cd9a469c | 13858 | $as_echo_n "(cached) " >&6 |
9fec3fa8 | 13859 | else |
13860 | if test -n "$STRIP_FOR_TARGET"; then | |
13861 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13862 | else | |
b30fcfae | 13863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13864 | for as_dir in $PATH | |
13865 | do | |
13866 | IFS=$as_save_IFS | |
13867 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13868 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13870 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13872 | break 2 |
13873 | fi | |
13874 | done | |
cd9a469c | 13875 | done |
13876 | IFS=$as_save_IFS | |
b30fcfae | 13877 | |
9fec3fa8 | 13878 | fi |
13879 | fi | |
b30fcfae | 13880 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 13881 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 13882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13883 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 13884 | else |
cd9a469c | 13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13886 | $as_echo "no" >&6; } | |
9fec3fa8 | 13887 | fi |
b30fcfae | 13888 | |
cd9a469c | 13889 | |
c47832b1 | 13890 | fi |
13891 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13892 | done | |
13893 | fi | |
b30fcfae | 13894 | |
9fec3fa8 | 13895 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13896 | set dummy strip | |
13897 | if test $build = $target ; then | |
13898 | STRIP_FOR_TARGET="$2" | |
13899 | else | |
13900 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13901 | fi | |
b7ef8464 | 13902 | else |
13903 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 13904 | fi |
13905 | ||
ab0da556 | 13906 | else |
13907 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 13908 | fi |
13909 | ||
13910 | ||
13911 | ||
13912 | ||
13913 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13914 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13916 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 13917 | if test -x $with_build_time_tools/windres; then |
13918 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13919 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13921 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 13922 | else |
cd9a469c | 13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13924 | $as_echo "no" >&6; } | |
ab0da556 | 13925 | fi |
c47832b1 | 13926 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13927 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 13928 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13929 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 13930 | fi |
13931 | fi | |
38d7211b | 13932 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 13933 | # Extract the first word of "windres", so it can be a program name with args. |
13934 | set dummy windres; ac_word=$2 | |
cd9a469c | 13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13936 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13937 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 13938 | $as_echo_n "(cached) " >&6 |
c47832b1 | 13939 | else |
b30fcfae | 13940 | case $WINDRES_FOR_TARGET in |
13941 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 13942 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13943 | ;; | |
c47832b1 | 13944 | *) |
b30fcfae | 13945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13946 | for as_dir in $gcc_cv_tool_dirs | |
13947 | do | |
13948 | IFS=$as_save_IFS | |
13949 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13950 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 13952 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 13953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 13954 | break 2 |
13955 | fi | |
13956 | done | |
cd9a469c | 13957 | done |
13958 | IFS=$as_save_IFS | |
b30fcfae | 13959 | |
c47832b1 | 13960 | ;; |
13961 | esac | |
13962 | fi | |
b30fcfae | 13963 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 13964 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13966 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 13967 | else |
cd9a469c | 13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13969 | $as_echo "no" >&6; } | |
c47832b1 | 13970 | fi |
13971 | ||
cd9a469c | 13972 | |
c47832b1 | 13973 | fi |
13974 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 13975 | |
13976 | ||
13977 | if test -n "$WINDRES_FOR_TARGET"; then | |
13978 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13979 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13980 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13981 | fi | |
13982 | ||
13983 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13984 | for ncn_progname in windres; do | |
13985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13986 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13988 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13989 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 13990 | $as_echo_n "(cached) " >&6 |
95a05732 | 13991 | else |
13992 | if test -n "$WINDRES_FOR_TARGET"; then | |
13993 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13994 | else | |
13995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13996 | for as_dir in $PATH | |
13997 | do | |
13998 | IFS=$as_save_IFS | |
13999 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14000 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
95a05732 | 14002 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 14003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 14004 | break 2 |
14005 | fi | |
14006 | done | |
cd9a469c | 14007 | done |
14008 | IFS=$as_save_IFS | |
95a05732 | 14009 | |
14010 | fi | |
14011 | fi | |
14012 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
14013 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14015 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 14016 | else |
cd9a469c | 14017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14018 | $as_echo "no" >&6; } | |
95a05732 | 14019 | fi |
14020 | ||
cd9a469c | 14021 | |
95a05732 | 14022 | done |
14023 | fi | |
14024 | ||
14025 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 14026 | for ncn_progname in windres; do |
cd9a469c | 14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14028 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 14029 | if test -x $with_build_time_tools/${ncn_progname}; then |
14030 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14032 | $as_echo "yes" >&6; } | |
c47832b1 | 14033 | break |
14034 | else | |
cd9a469c | 14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14036 | $as_echo "no" >&6; } | |
c47832b1 | 14037 | fi |
14038 | done | |
14039 | fi | |
14040 | ||
14041 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
14042 | for ncn_progname in windres; do | |
14043 | if test -n "$ncn_target_tool_prefix"; then | |
14044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 14045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 14046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14047 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 14048 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 14049 | $as_echo_n "(cached) " >&6 |
bb612911 | 14050 | else |
ef8184c7 | 14051 | if test -n "$WINDRES_FOR_TARGET"; then |
14052 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 14053 | else |
b30fcfae | 14054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14055 | for as_dir in $PATH | |
14056 | do | |
14057 | IFS=$as_save_IFS | |
14058 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14059 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 14061 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 14062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 14063 | break 2 |
14064 | fi | |
14065 | done | |
cd9a469c | 14066 | done |
14067 | IFS=$as_save_IFS | |
b30fcfae | 14068 | |
bb612911 | 14069 | fi |
14070 | fi | |
b30fcfae | 14071 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 14072 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14074 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 14075 | else |
cd9a469c | 14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14077 | $as_echo "no" >&6; } | |
bb612911 | 14078 | fi |
14079 | ||
cd9a469c | 14080 | |
c47832b1 | 14081 | fi |
14082 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
14083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 14084 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14086 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 14087 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
cd9a469c | 14088 | $as_echo_n "(cached) " >&6 |
bb612911 | 14089 | else |
768691b5 | 14090 | if test -n "$WINDRES_FOR_TARGET"; then |
14091 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 14092 | else |
b30fcfae | 14093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14094 | for as_dir in $PATH | |
14095 | do | |
14096 | IFS=$as_save_IFS | |
14097 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14098 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b30fcfae | 14100 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 14101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 14102 | break 2 |
14103 | fi | |
14104 | done | |
cd9a469c | 14105 | done |
14106 | IFS=$as_save_IFS | |
b30fcfae | 14107 | |
bb612911 | 14108 | fi |
14109 | fi | |
b30fcfae | 14110 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 14111 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
14113 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 14114 | else |
cd9a469c | 14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14116 | $as_echo "no" >&6; } | |
bb612911 | 14117 | fi |
b30fcfae | 14118 | |
cd9a469c | 14119 | |
c47832b1 | 14120 | fi |
14121 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
14122 | done | |
14123 | fi | |
b30fcfae | 14124 | |
768691b5 | 14125 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
14126 | set dummy windres | |
14127 | if test $build = $target ; then | |
14128 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 14129 | else |
768691b5 | 14130 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 14131 | fi |
b7ef8464 | 14132 | else |
14133 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 14134 | fi |
14135 | ||
ab0da556 | 14136 | else |
14137 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 14138 | fi |
14139 | ||
805e22b2 | 14140 | |
75d6a0a9 | 14141 | |
14142 | ||
14143 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14144 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
14146 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 14147 | if test -x $with_build_time_tools/windmc; then |
14148 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
14149 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
14151 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 14152 | else |
cd9a469c | 14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14154 | $as_echo "no" >&6; } | |
75d6a0a9 | 14155 | fi |
14156 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14157 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 14158 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
14159 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 14160 | fi |
14161 | fi | |
14162 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14163 | # Extract the first word of "windmc", so it can be a program name with args. | |
14164 | set dummy windmc; ac_word=$2 | |
cd9a469c | 14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14166 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 14167 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 14168 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 14169 | else |
14170 | case $WINDMC_FOR_TARGET in | |
14171 | [\\/]* | ?:[\\/]*) | |
14172 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
14173 | ;; | |
14174 | *) | |
14175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14176 | for as_dir in $gcc_cv_tool_dirs | |
14177 | do | |
14178 | IFS=$as_save_IFS | |
14179 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14180 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 14182 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 14183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 14184 | break 2 |
14185 | fi | |
14186 | done | |
cd9a469c | 14187 | done |
14188 | IFS=$as_save_IFS | |
75d6a0a9 | 14189 | |
14190 | ;; | |
14191 | esac | |
14192 | fi | |
14193 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 14194 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14196 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 14197 | else |
cd9a469c | 14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14199 | $as_echo "no" >&6; } | |
75d6a0a9 | 14200 | fi |
14201 | ||
cd9a469c | 14202 | |
75d6a0a9 | 14203 | fi |
14204 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
14205 | ||
14206 | ||
14207 | if test -n "$WINDMC_FOR_TARGET"; then | |
14208 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
14209 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14210 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14211 | fi | |
14212 | ||
14213 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14214 | for ncn_progname in windmc; do | |
14215 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14216 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14218 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 14219 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 14220 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 14221 | else |
14222 | if test -n "$WINDMC_FOR_TARGET"; then | |
14223 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14224 | else | |
14225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14226 | for as_dir in $PATH | |
14227 | do | |
14228 | IFS=$as_save_IFS | |
14229 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14230 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 14232 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 14233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 14234 | break 2 |
14235 | fi | |
14236 | done | |
cd9a469c | 14237 | done |
14238 | IFS=$as_save_IFS | |
75d6a0a9 | 14239 | |
14240 | fi | |
14241 | fi | |
14242 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14243 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14245 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 14246 | else |
cd9a469c | 14247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14248 | $as_echo "no" >&6; } | |
75d6a0a9 | 14249 | fi |
14250 | ||
cd9a469c | 14251 | |
75d6a0a9 | 14252 | done |
14253 | fi | |
14254 | ||
14255 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14256 | for ncn_progname in windmc; do | |
cd9a469c | 14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14258 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 14259 | if test -x $with_build_time_tools/${ncn_progname}; then |
14260 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 14261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14262 | $as_echo "yes" >&6; } | |
75d6a0a9 | 14263 | break |
14264 | else | |
cd9a469c | 14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14266 | $as_echo "no" >&6; } | |
75d6a0a9 | 14267 | fi |
14268 | done | |
14269 | fi | |
14270 | ||
14271 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
14272 | for ncn_progname in windmc; do | |
14273 | if test -n "$ncn_target_tool_prefix"; then | |
14274 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14275 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14277 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 14278 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 14279 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 14280 | else |
14281 | if test -n "$WINDMC_FOR_TARGET"; then | |
14282 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14283 | else | |
14284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14285 | for as_dir in $PATH | |
14286 | do | |
14287 | IFS=$as_save_IFS | |
14288 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14289 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 14291 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 14292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 14293 | break 2 |
14294 | fi | |
14295 | done | |
cd9a469c | 14296 | done |
14297 | IFS=$as_save_IFS | |
75d6a0a9 | 14298 | |
14299 | fi | |
14300 | fi | |
14301 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14302 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14304 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 14305 | else |
cd9a469c | 14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14307 | $as_echo "no" >&6; } | |
75d6a0a9 | 14308 | fi |
14309 | ||
cd9a469c | 14310 | |
75d6a0a9 | 14311 | fi |
14312 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
14313 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14314 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14316 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 14317 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
cd9a469c | 14318 | $as_echo_n "(cached) " >&6 |
75d6a0a9 | 14319 | else |
14320 | if test -n "$WINDMC_FOR_TARGET"; then | |
14321 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
14322 | else | |
14323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14324 | for as_dir in $PATH | |
14325 | do | |
14326 | IFS=$as_save_IFS | |
14327 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 14328 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 14329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
75d6a0a9 | 14330 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 14331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 14332 | break 2 |
14333 | fi | |
14334 | done | |
cd9a469c | 14335 | done |
14336 | IFS=$as_save_IFS | |
75d6a0a9 | 14337 | |
14338 | fi | |
14339 | fi | |
14340 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
14341 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
14343 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 14344 | else |
cd9a469c | 14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14346 | $as_echo "no" >&6; } | |
75d6a0a9 | 14347 | fi |
14348 | ||
cd9a469c | 14349 | |
75d6a0a9 | 14350 | fi |
14351 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
14352 | done | |
14353 | fi | |
14354 | ||
14355 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
14356 | set dummy windmc | |
14357 | if test $build = $target ; then | |
14358 | WINDMC_FOR_TARGET="$2" | |
14359 | else | |
14360 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14361 | fi | |
b7ef8464 | 14362 | else |
14363 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 14364 | fi |
14365 | ||
14366 | else | |
14367 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
14368 | fi | |
14369 | ||
14370 | ||
f5aebe3e | 14371 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
14372 | ||
cd9a469c | 14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
14374 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 14375 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14376 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14377 | # We already found the complete path | |
a6c599b5 | 14378 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 14379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14380 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14381 | else |
14382 | # Canadian cross, just use what we found | |
cd9a469c | 14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14384 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14385 | fi |
f5aebe3e | 14386 | else |
14387 | ok=yes | |
14388 | case " ${configdirs} " in | |
14389 | *" binutils "*) ;; | |
14390 | *) ok=no ;; | |
14391 | esac | |
b30fcfae | 14392 | |
f5aebe3e | 14393 | if test $ok = yes; then |
14394 | # An in-tree tool is available and we can use it | |
14395 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14397 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14398 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
14399 | # We already found the complete path | |
a6c599b5 | 14400 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14402 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14403 | elif test "x$target" = "x$host"; then |
14404 | # We can use an host tool | |
14405 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 14406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14407 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14408 | else |
14409 | # We need a cross tool | |
cd9a469c | 14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14411 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14412 | fi |
14413 | fi | |
a83ffacf | 14414 | |
cd9a469c | 14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
14416 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 14417 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14418 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14419 | # We already found the complete path | |
a6c599b5 | 14420 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 14421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14422 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14423 | else |
14424 | # Canadian cross, just use what we found | |
cd9a469c | 14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14426 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14427 | fi |
f5aebe3e | 14428 | else |
14429 | ok=yes | |
14430 | case " ${configdirs} " in | |
14431 | *" gas "*) ;; | |
14432 | *) ok=no ;; | |
14433 | esac | |
b30fcfae | 14434 | |
f5aebe3e | 14435 | if test $ok = yes; then |
14436 | # An in-tree tool is available and we can use it | |
14437 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14439 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14440 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14441 | # We already found the complete path | |
a6c599b5 | 14442 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14444 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14445 | elif test "x$target" = "x$host"; then |
14446 | # We can use an host tool | |
14447 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14449 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14450 | else |
14451 | # We need a cross tool | |
cd9a469c | 14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14453 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14454 | fi |
14455 | fi | |
a83ffacf | 14456 | |
cd9a469c | 14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14458 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 14459 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14460 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14461 | # We already found the complete path | |
a6c599b5 | 14462 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14464 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14465 | else |
14466 | # Canadian cross, just use what we found | |
cd9a469c | 14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14468 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14469 | fi |
f5aebe3e | 14470 | else |
14471 | ok=yes | |
14472 | case " ${configdirs} " in | |
14473 | *" gcc "*) ;; | |
14474 | *) ok=no ;; | |
14475 | esac | |
b30fcfae | 14476 | |
f5aebe3e | 14477 | if test $ok = yes; then |
14478 | # An in-tree tool is available and we can use it | |
14479 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14481 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14482 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14483 | # We already found the complete path | |
a6c599b5 | 14484 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14486 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14487 | elif test "x$target" = "x$host"; then |
14488 | # We can use an host tool | |
14489 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 14490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14491 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14492 | else |
14493 | # We need a cross tool | |
cd9a469c | 14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14495 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14496 | fi |
14497 | fi | |
a83ffacf | 14498 | |
cd9a469c | 14499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14500 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 14501 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14502 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14503 | # We already found the complete path | |
a6c599b5 | 14504 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14506 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14507 | else |
14508 | # Canadian cross, just use what we found | |
cd9a469c | 14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14510 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14511 | fi |
f5aebe3e | 14512 | else |
14513 | ok=yes | |
14514 | case " ${configdirs} " in | |
14515 | *" gcc "*) ;; | |
14516 | *) ok=no ;; | |
14517 | esac | |
14518 | case ,${enable_languages}, in | |
14519 | *,c++,*) ;; | |
14520 | *) ok=no ;; | |
14521 | esac | |
14522 | if test $ok = yes; then | |
14523 | # An in-tree tool is available and we can use it | |
b710ec85 | 14524 | 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' |
cd9a469c | 14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14526 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14527 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14528 | # We already found the complete path | |
a6c599b5 | 14529 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14531 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14532 | elif test "x$target" = "x$host"; then |
14533 | # We can use an host tool | |
14534 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14536 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14537 | else |
14538 | # We need a cross tool | |
cd9a469c | 14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14540 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14541 | fi |
14542 | fi | |
a83ffacf | 14543 | |
cd9a469c | 14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14545 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 14546 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14547 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14548 | # We already found the complete path | |
a6c599b5 | 14549 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14551 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14552 | else |
14553 | # Canadian cross, just use what we found | |
cd9a469c | 14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14555 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14556 | fi |
f5aebe3e | 14557 | else |
14558 | ok=yes | |
14559 | case " ${configdirs} " in | |
14560 | *" gcc "*) ;; | |
14561 | *) ok=no ;; | |
14562 | esac | |
14563 | case ,${enable_languages}, in | |
14564 | *,c++,*) ;; | |
14565 | *) ok=no ;; | |
14566 | esac | |
14567 | if test $ok = yes; then | |
14568 | # An in-tree tool is available and we can use it | |
b710ec85 | 14569 | 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' |
cd9a469c | 14570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14571 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14572 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14573 | # We already found the complete path | |
a6c599b5 | 14574 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14576 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14577 | elif test "x$target" = "x$host"; then |
14578 | # We can use an host tool | |
14579 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14581 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14582 | else |
14583 | # We need a cross tool | |
cd9a469c | 14584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14585 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14586 | fi |
14587 | fi | |
a83ffacf | 14588 | |
cd9a469c | 14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14590 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 14591 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14592 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14593 | # We already found the complete path | |
a6c599b5 | 14594 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14596 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14597 | else |
14598 | # Canadian cross, just use what we found | |
cd9a469c | 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14600 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14601 | fi |
f5aebe3e | 14602 | else |
14603 | ok=yes | |
14604 | case " ${configdirs} " in | |
14605 | *" binutils "*) ;; | |
14606 | *) ok=no ;; | |
14607 | esac | |
b30fcfae | 14608 | |
f5aebe3e | 14609 | if test $ok = yes; then |
14610 | # An in-tree tool is available and we can use it | |
14611 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14613 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14614 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14615 | # We already found the complete path | |
a6c599b5 | 14616 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14618 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14619 | elif test "x$target" = "x$host"; then |
14620 | # We can use an host tool | |
14621 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 14622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14623 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14624 | else |
14625 | # We need a cross tool | |
cd9a469c | 14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14627 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14628 | fi |
14629 | fi | |
a83ffacf | 14630 | |
cd9a469c | 14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14632 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 14633 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14634 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14635 | # We already found the complete path | |
a6c599b5 | 14636 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14638 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14639 | else |
14640 | # Canadian cross, just use what we found | |
cd9a469c | 14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14642 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14643 | fi |
f5aebe3e | 14644 | else |
14645 | ok=yes | |
14646 | case " ${configdirs} " in | |
14647 | *" gcc "*) ;; | |
14648 | *) ok=no ;; | |
14649 | esac | |
b30fcfae | 14650 | |
f5aebe3e | 14651 | if test $ok = yes; then |
14652 | # An in-tree tool is available and we can use it | |
14653 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14655 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14656 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14657 | # We already found the complete path | |
a6c599b5 | 14658 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 14659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14660 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14661 | elif test "x$target" = "x$host"; then |
14662 | # We can use an host tool | |
14663 | GCC_FOR_TARGET='$()' | |
cd9a469c | 14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14665 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14666 | else |
14667 | # We need a cross tool | |
cd9a469c | 14668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14669 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14670 | fi |
14671 | fi | |
a83ffacf | 14672 | |
cd9a469c | 14673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14674 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 14675 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14676 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14677 | # We already found the complete path | |
a6c599b5 | 14678 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14680 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14681 | else |
14682 | # Canadian cross, just use what we found | |
cd9a469c | 14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14684 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14685 | fi |
f5aebe3e | 14686 | else |
14687 | ok=yes | |
14688 | case " ${configdirs} " in | |
14689 | *" gcc "*) ;; | |
14690 | *) ok=no ;; | |
14691 | esac | |
14692 | case ,${enable_languages}, in | |
14693 | *,fortran,*) ;; | |
14694 | *) ok=no ;; | |
14695 | esac | |
14696 | if test $ok = yes; then | |
14697 | # An in-tree tool is available and we can use it | |
14698 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14700 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14701 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14702 | # We already found the complete path | |
a6c599b5 | 14703 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 14704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14705 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14706 | elif test "x$target" = "x$host"; then |
14707 | # We can use an host tool | |
14708 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 14709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14710 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14711 | else |
14712 | # We need a cross tool | |
cd9a469c | 14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14714 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14715 | fi |
14716 | fi | |
a83ffacf | 14717 | |
5ff5b630 | 14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14719 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14720 | if test "x${build}" != "x${host}" ; then | |
14721 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14722 | # We already found the complete path | |
14723 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14725 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14726 | else | |
14727 | # Canadian cross, just use what we found | |
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14729 | $as_echo "pre-installed" >&6; } | |
14730 | fi | |
14731 | else | |
14732 | ok=yes | |
14733 | case " ${configdirs} " in | |
14734 | *" gcc "*) ;; | |
14735 | *) ok=no ;; | |
14736 | esac | |
14737 | case ,${enable_languages}, in | |
14738 | *,go,*) ;; | |
14739 | *) ok=no ;; | |
14740 | esac | |
14741 | if test $ok = yes; then | |
14742 | # An in-tree tool is available and we can use it | |
14743 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14745 | $as_echo "just compiled" >&6; } | |
14746 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14747 | # We already found the complete path | |
14748 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14750 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14751 | elif test "x$target" = "x$host"; then | |
14752 | # We can use an host tool | |
14753 | GOC_FOR_TARGET='$(GOC)' | |
14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14755 | $as_echo "host tool" >&6; } | |
14756 | else | |
14757 | # We need a cross tool | |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14759 | $as_echo "pre-installed" >&6; } | |
14760 | fi | |
14761 | fi | |
14762 | ||
03385ed3 | 14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
14764 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
14765 | if test "x${build}" != "x${host}" ; then | |
14766 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14767 | # We already found the complete path | |
14768 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14770 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14771 | else | |
14772 | # Canadian cross, just use what we found | |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14774 | $as_echo "pre-installed" >&6; } | |
14775 | fi | |
14776 | else | |
14777 | ok=yes | |
14778 | case " ${configdirs} " in | |
14779 | *" gcc "*) ;; | |
14780 | *) ok=no ;; | |
14781 | esac | |
14782 | case ,${enable_languages}, in | |
14783 | *,d,*) ;; | |
14784 | *) ok=no ;; | |
14785 | esac | |
14786 | if test $ok = yes; then | |
14787 | # An in-tree tool is available and we can use it | |
14788 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
14789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14790 | $as_echo "just compiled" >&6; } | |
14791 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
14792 | # We already found the complete path | |
14793 | ac_dir=`dirname $GDC_FOR_TARGET` | |
14794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14795 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14796 | elif test "x$target" = "x$host"; then | |
14797 | # We can use an host tool | |
14798 | GDC_FOR_TARGET='$(GDC)' | |
14799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14800 | $as_echo "host tool" >&6; } | |
14801 | else | |
14802 | # We need a cross tool | |
14803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14804 | $as_echo "pre-installed" >&6; } | |
14805 | fi | |
14806 | fi | |
14807 | ||
cd9a469c | 14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14809 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 14810 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14811 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14812 | # We already found the complete path | |
a6c599b5 | 14813 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14815 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14816 | else |
14817 | # Canadian cross, just use what we found | |
cd9a469c | 14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14819 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14820 | fi |
f5aebe3e | 14821 | else |
14822 | ok=yes | |
14823 | case " ${configdirs} " in | |
14824 | *" ld "*) ;; | |
14825 | *) ok=no ;; | |
14826 | esac | |
b30fcfae | 14827 | |
f5aebe3e | 14828 | if test $ok = yes; then |
14829 | # An in-tree tool is available and we can use it | |
14830 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 14831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14832 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14833 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14834 | # We already found the complete path | |
a6c599b5 | 14835 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 14836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14837 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14838 | elif test "x$target" = "x$host"; then |
14839 | # We can use an host tool | |
14840 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14842 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14843 | else |
14844 | # We need a cross tool | |
cd9a469c | 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14846 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14847 | fi |
14848 | fi | |
a83ffacf | 14849 | |
cd9a469c | 14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14851 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 14852 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14853 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14854 | # We already found the complete path | |
a6c599b5 | 14855 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14857 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14858 | else |
14859 | # Canadian cross, just use what we found | |
cd9a469c | 14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14861 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14862 | fi |
f5aebe3e | 14863 | else |
c47832b1 | 14864 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14865 | # We already found the complete path | |
a6c599b5 | 14866 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14868 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14869 | elif test "x$target" = "x$host"; then |
f5aebe3e | 14870 | # We can use an host tool |
14871 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 14872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14873 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14874 | else |
14875 | # We need a cross tool | |
cd9a469c | 14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14877 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14878 | fi |
14879 | fi | |
a83ffacf | 14880 | |
cd9a469c | 14881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14882 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 14883 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14884 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14885 | # We already found the complete path | |
a6c599b5 | 14886 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14888 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14889 | else |
14890 | # Canadian cross, just use what we found | |
cd9a469c | 14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14892 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14893 | fi |
f5aebe3e | 14894 | else |
14895 | ok=yes | |
14896 | case " ${configdirs} " in | |
14897 | *" binutils "*) ;; | |
14898 | *) ok=no ;; | |
14899 | esac | |
b30fcfae | 14900 | |
f5aebe3e | 14901 | if test $ok = yes; then |
14902 | # An in-tree tool is available and we can use it | |
14903 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 14904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14905 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14906 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14907 | # We already found the complete path | |
a6c599b5 | 14908 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14910 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14911 | elif test "x$target" = "x$host"; then |
14912 | # We can use an host tool | |
14913 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14915 | $as_echo "host tool" >&6; } | |
f5aebe3e | 14916 | else |
14917 | # We need a cross tool | |
cd9a469c | 14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14919 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 14920 | fi |
14921 | fi | |
a83ffacf | 14922 | |
fc740d70 | 14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14924 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14925 | if test "x${build}" != "x${host}" ; then | |
14926 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14927 | # We already found the complete path | |
14928 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14930 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14931 | else | |
14932 | # Canadian cross, just use what we found | |
14933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14934 | $as_echo "pre-installed" >&6; } | |
14935 | fi | |
14936 | else | |
14937 | ok=yes | |
14938 | case " ${configdirs} " in | |
14939 | *" binutils "*) ;; | |
14940 | *) ok=no ;; | |
14941 | esac | |
14942 | ||
14943 | if test $ok = yes; then | |
14944 | # An in-tree tool is available and we can use it | |
14945 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14947 | $as_echo "just compiled" >&6; } | |
14948 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14949 | # We already found the complete path | |
14950 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14952 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14953 | elif test "x$target" = "x$host"; then | |
14954 | # We can use an host tool | |
9b31ae9c | 14955 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
fc740d70 | 14956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14957 | $as_echo "host tool" >&6; } | |
14958 | else | |
14959 | # We need a cross tool | |
14960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14961 | $as_echo "pre-installed" >&6; } | |
14962 | fi | |
14963 | fi | |
14964 | ||
cd9a469c | 14965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14966 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 14967 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 14968 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14969 | # We already found the complete path | |
a6c599b5 | 14970 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14972 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 14973 | else |
14974 | # Canadian cross, just use what we found | |
cd9a469c | 14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14976 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 14977 | fi |
f5aebe3e | 14978 | else |
14979 | ok=yes | |
14980 | case " ${configdirs} " in | |
14981 | *" binutils "*) ;; | |
14982 | *) ok=no ;; | |
14983 | esac | |
b30fcfae | 14984 | |
f5aebe3e | 14985 | if test $ok = yes; then |
14986 | # An in-tree tool is available and we can use it | |
14987 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 14988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14989 | $as_echo "just compiled" >&6; } | |
c47832b1 | 14990 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14991 | # We already found the complete path | |
a6c599b5 | 14992 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14994 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 14995 | elif test "x$target" = "x$host"; then |
14996 | # We can use an host tool | |
14997 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14999 | $as_echo "host tool" >&6; } | |
f5aebe3e | 15000 | else |
15001 | # We need a cross tool | |
cd9a469c | 15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15003 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 15004 | fi |
15005 | fi | |
a83ffacf | 15006 | |
16706a2e | 15007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
15008 | $as_echo_n "checking where to find the target otool... " >&6; } | |
15009 | if test "x${build}" != "x${host}" ; then | |
15010 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15011 | # We already found the complete path | |
15012 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15014 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15015 | else | |
15016 | # Canadian cross, just use what we found | |
15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15018 | $as_echo "pre-installed" >&6; } | |
15019 | fi | |
15020 | else | |
15021 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
15022 | # We already found the complete path | |
15023 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
15024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15025 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15026 | elif test "x$target" = "x$host"; then | |
15027 | # We can use an host tool | |
15028 | OTOOL_FOR_TARGET='$(OTOOL)' | |
15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15030 | $as_echo "host tool" >&6; } | |
15031 | else | |
15032 | # We need a cross tool | |
15033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15034 | $as_echo "pre-installed" >&6; } | |
15035 | fi | |
15036 | fi | |
15037 | ||
cd9a469c | 15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
15039 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 15040 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 15041 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15042 | # We already found the complete path | |
a6c599b5 | 15043 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 15044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15045 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 15046 | else |
15047 | # Canadian cross, just use what we found | |
cd9a469c | 15048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15049 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 15050 | fi |
f5aebe3e | 15051 | else |
15052 | ok=yes | |
15053 | case " ${configdirs} " in | |
15054 | *" binutils "*) ;; | |
15055 | *) ok=no ;; | |
15056 | esac | |
b30fcfae | 15057 | |
f5aebe3e | 15058 | if test $ok = yes; then |
15059 | # An in-tree tool is available and we can use it | |
15060 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 15061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15062 | $as_echo "just compiled" >&6; } | |
c47832b1 | 15063 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
15064 | # We already found the complete path | |
a6c599b5 | 15065 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15067 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 15068 | elif test "x$target" = "x$host"; then |
15069 | # We can use an host tool | |
15070 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 15071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15072 | $as_echo "host tool" >&6; } | |
f5aebe3e | 15073 | else |
15074 | # We need a cross tool | |
cd9a469c | 15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15076 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 15077 | fi |
15078 | fi | |
a83ffacf | 15079 | |
3f71364d | 15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
15081 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
15082 | if test "x${build}" != "x${host}" ; then | |
15083 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15084 | # We already found the complete path | |
15085 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15087 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15088 | else | |
15089 | # Canadian cross, just use what we found | |
15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15091 | $as_echo "pre-installed" >&6; } | |
15092 | fi | |
15093 | else | |
15094 | ok=yes | |
15095 | case " ${configdirs} " in | |
15096 | *" binutils "*) ;; | |
15097 | *) ok=no ;; | |
15098 | esac | |
15099 | ||
15100 | if test $ok = yes; then | |
15101 | # An in-tree tool is available and we can use it | |
15102 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
15103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15104 | $as_echo "just compiled" >&6; } | |
15105 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
15106 | # We already found the complete path | |
15107 | ac_dir=`dirname $READELF_FOR_TARGET` | |
15108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15109 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15110 | elif test "x$target" = "x$host"; then | |
15111 | # We can use an host tool | |
15112 | READELF_FOR_TARGET='$(READELF)' | |
15113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15114 | $as_echo "host tool" >&6; } | |
15115 | else | |
15116 | # We need a cross tool | |
15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15118 | $as_echo "pre-installed" >&6; } | |
15119 | fi | |
15120 | fi | |
15121 | ||
cd9a469c | 15122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
15123 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 15124 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 15125 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15126 | # We already found the complete path | |
a6c599b5 | 15127 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15129 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 15130 | else |
15131 | # Canadian cross, just use what we found | |
cd9a469c | 15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15133 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 15134 | fi |
f5aebe3e | 15135 | else |
15136 | ok=yes | |
15137 | case " ${configdirs} " in | |
15138 | *" binutils "*) ;; | |
15139 | *) ok=no ;; | |
15140 | esac | |
b30fcfae | 15141 | |
f5aebe3e | 15142 | if test $ok = yes; then |
15143 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 15144 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 15145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15146 | $as_echo "just compiled" >&6; } | |
c47832b1 | 15147 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
15148 | # We already found the complete path | |
a6c599b5 | 15149 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15151 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 15152 | elif test "x$target" = "x$host"; then |
15153 | # We can use an host tool | |
15154 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 15155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15156 | $as_echo "host tool" >&6; } | |
f5aebe3e | 15157 | else |
15158 | # We need a cross tool | |
cd9a469c | 15159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15160 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 15161 | fi |
15162 | fi | |
a83ffacf | 15163 | |
cd9a469c | 15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
15165 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 15166 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 15167 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15168 | # We already found the complete path | |
a6c599b5 | 15169 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15171 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 15172 | else |
15173 | # Canadian cross, just use what we found | |
cd9a469c | 15174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15175 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 15176 | fi |
f5aebe3e | 15177 | else |
15178 | ok=yes | |
15179 | case " ${configdirs} " in | |
15180 | *" binutils "*) ;; | |
15181 | *) ok=no ;; | |
15182 | esac | |
b30fcfae | 15183 | |
f5aebe3e | 15184 | if test $ok = yes; then |
15185 | # An in-tree tool is available and we can use it | |
15186 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 15187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15188 | $as_echo "just compiled" >&6; } | |
c47832b1 | 15189 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
15190 | # We already found the complete path | |
a6c599b5 | 15191 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 15192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15193 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 15194 | elif test "x$target" = "x$host"; then |
15195 | # We can use an host tool | |
15196 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 15197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15198 | $as_echo "host tool" >&6; } | |
f5aebe3e | 15199 | else |
15200 | # We need a cross tool | |
cd9a469c | 15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15202 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 15203 | fi |
71ab34df | 15204 | fi |
49aae208 | 15205 | |
cd9a469c | 15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
15207 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 15208 | if test "x${build}" != "x${host}" ; then |
15209 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
15210 | # We already found the complete path | |
15211 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15213 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 15214 | else |
15215 | # Canadian cross, just use what we found | |
cd9a469c | 15216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15217 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 15218 | fi |
15219 | else | |
15220 | ok=yes | |
15221 | case " ${configdirs} " in | |
15222 | *" binutils "*) ;; | |
15223 | *) ok=no ;; | |
15224 | esac | |
15225 | ||
15226 | if test $ok = yes; then | |
15227 | # An in-tree tool is available and we can use it | |
15228 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 15229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15230 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 15231 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
15232 | # We already found the complete path | |
15233 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 15234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15235 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 15236 | elif test "x$target" = "x$host"; then |
15237 | # We can use an host tool | |
15238 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 15239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15240 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 15241 | else |
15242 | # We need a cross tool | |
cd9a469c | 15243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15244 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 15245 | fi |
15246 | fi | |
15247 | ||
49aae208 | 15248 | |
15249 | ||
f5aebe3e | 15250 | |
a83ffacf | 15251 | |
71ab34df | 15252 | # Certain tools may need extra flags. |
15253 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
15254 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
15255 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
15256 | ||
f5aebe3e | 15257 | # When building target libraries, except in a Canadian cross, we use |
15258 | # the same toolchain as the compiler we just built. | |
15259 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
15260 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
15261 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
15262 | if test $host = $build; then | |
15263 | case " $configdirs " in | |
15264 | *" gcc "*) | |
15265 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
15266 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
15267 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
15268 | ;; | |
15269 | esac | |
15270 | fi | |
15271 | ||
15272 | ||
15273 | ||
15274 | ||
15275 | ||
cd9a469c | 15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15277 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
15278 | # Check whether --enable-maintainer-mode was given. | |
15279 | if test "${enable_maintainer_mode+set}" = set; then : | |
15280 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 15281 | else |
15282 | USE_MAINTAINER_MODE=no | |
cd9a469c | 15283 | fi |
15284 | ||
15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
15286 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 15287 | |
15288 | ||
15289 | if test "$USE_MAINTAINER_MODE" = yes; then | |
15290 | MAINTAINER_MODE_TRUE= | |
15291 | MAINTAINER_MODE_FALSE='#' | |
15292 | else | |
15293 | MAINTAINER_MODE_TRUE='#' | |
15294 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 15295 | fi |
3290c0cf | 15296 | MAINT=$MAINTAINER_MODE_TRUE |
15297 | ||
2d64c2fd | 15298 | # --------------------- |
15299 | # GCC bootstrap support | |
15300 | # --------------------- | |
15301 | ||
15302 | # Stage specific cflags for build. | |
15303 | stage1_cflags="-g" | |
15304 | case $build in | |
15305 | vax-*-*) | |
15306 | case ${GCC} in | |
15307 | yes) stage1_cflags="-g -Wa,-J" ;; | |
15308 | *) stage1_cflags="-g -J" ;; | |
15309 | esac ;; | |
2d64c2fd | 15310 | esac |
15311 | ||
f508ba97 | 15312 | |
2d64c2fd | 15313 | |
39f34cfc | 15314 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 15315 | # Check whether --enable-stage1-checking was given. |
15316 | if test "${enable_stage1_checking+set}" = set; then : | |
15317 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 15318 | else |
f6be6a96 | 15319 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
868af6b6 | 15320 | # For --disable-checking or implicit --enable-checking=release, avoid |
15321 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
15322 | # bootstraps. See PR62077. | |
868af6b6 | 15323 | case $BUILD_CONFIG in |
15324 | *lto*) | |
c05979a1 | 15325 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
15326 | *) | |
15327 | stage1_checking=--enable-checking=yes,types;; | |
868af6b6 | 15328 | esac |
c05979a1 | 15329 | if test "x$enable_checking" = x && \ |
15330 | test -d ${srcdir}/gcc && \ | |
15331 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
bee4f5e5 | 15332 | stage1_checking=--enable-checking=yes,types,extra |
c05979a1 | 15333 | fi |
39f34cfc | 15334 | else |
f6be6a96 | 15335 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 15336 | fi |
cd9a469c | 15337 | fi |
39f34cfc | 15338 | |
15339 | ||
5084f823 | 15340 | |
cd9a469c | 15341 | # Enable -Werror in bootstrap stage2 and later. |
15342 | # Check whether --enable-werror was given. | |
15343 | if test "${enable_werror+set}" = set; then : | |
15344 | enableval=$enable_werror; | |
c0c5068d | 15345 | case ${enable_werror} in |
15346 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
15347 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 15348 | esac |
15349 | ||
5362e31e | 15350 | else |
15351 | ||
14b6abc7 | 15352 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
15353 | case $BUILD_CONFIG in | |
15354 | bootstrap-debug) | |
15355 | stage2_werror_flag="--enable-werror-always" ;; | |
15356 | "") | |
15357 | stage2_werror_flag="--enable-werror-always" ;; | |
15358 | esac | |
15359 | fi | |
15360 | ||
5362e31e | 15361 | fi |
15362 | ||
15363 | ||
14b6abc7 | 15364 | |
2d64c2fd | 15365 | |
6fe86052 | 15366 | # Specify what files to not compare during bootstrap. |
15367 | ||
15368 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
15369 | case "$target" in | |
15370 | hppa*64*-*-hpux*) ;; | |
43bbe3ea | 15371 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;; |
62f0972f | 15372 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
6fe86052 | 15373 | esac |
15374 | ||
15375 | ||
cd9a469c | 15376 | ac_config_files="$ac_config_files Makefile" |
15377 | ||
b30fcfae | 15378 | cat >confcache <<\_ACEOF |
71ab34df | 15379 | # This file is a shell script that caches the results of configure |
15380 | # tests run on this system so they can be shared between configure | |
b30fcfae | 15381 | # scripts and configure runs, see configure's option --config-cache. |
15382 | # It is not useful on other systems. If it contains results you don't | |
15383 | # want to keep, you may remove or edit it. | |
71ab34df | 15384 | # |
b30fcfae | 15385 | # config.status only pays attention to the cache file if you give it |
15386 | # the --recheck option to rerun configure. | |
71ab34df | 15387 | # |
b30fcfae | 15388 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15389 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15390 | # following values. | |
15391 | ||
15392 | _ACEOF | |
15393 | ||
71ab34df | 15394 | # The following way of writing the cache mishandles newlines in values, |
15395 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 15396 | # So, we kill variables containing newlines. |
71ab34df | 15397 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15398 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 15399 | ( |
15400 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15401 | eval ac_val=\$$ac_var | |
15402 | case $ac_val in #( | |
15403 | *${as_nl}*) | |
15404 | case $ac_var in #( | |
15405 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15406 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15407 | esac | |
15408 | case $ac_var in #( | |
15409 | _ | IFS | as_nl) ;; #( | |
15410 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15411 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15412 | esac ;; | |
15413 | esac | |
15414 | done | |
15415 | ||
b30fcfae | 15416 | (set) 2>&1 | |
cd9a469c | 15417 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15418 | *${as_nl}ac_space=\ *) | |
15419 | # `set' does not quote correctly, so add quotes: double-quote | |
15420 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 15421 | sed -n \ |
15422 | "s/'/'\\\\''/g; | |
15423 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 15424 | ;; #( |
b30fcfae | 15425 | *) |
15426 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 15427 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 15428 | ;; |
cd9a469c | 15429 | esac | |
15430 | sort | |
15431 | ) | | |
b30fcfae | 15432 | sed ' |
cd9a469c | 15433 | /^ac_cv_env_/b end |
b30fcfae | 15434 | t clear |
cd9a469c | 15435 | :clear |
b30fcfae | 15436 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15437 | t end | |
cd9a469c | 15438 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15439 | :end' >>confcache | |
15440 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15441 | if test -w "$cache_file"; then | |
f00f02a3 | 15442 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15444 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 15445 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15446 | cat confcache >"$cache_file" | |
15447 | else | |
15448 | case $cache_file in #( | |
15449 | */* | ?:*) | |
15450 | mv -f confcache "$cache_file"$$ && | |
15451 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15452 | *) | |
15453 | mv -f confcache "$cache_file" ;; | |
15454 | esac | |
15455 | fi | |
15456 | fi | |
71ab34df | 15457 | else |
cd9a469c | 15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15459 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 15460 | fi |
805e22b2 | 15461 | fi |
71ab34df | 15462 | rm -f confcache |
a8298541 | 15463 | |
71ab34df | 15464 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15465 | # Let make expand exec_prefix. | |
15466 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 15467 | |
71ab34df | 15468 | # Transform confdefs.h into DEFS. |
15469 | # Protect against shell expansion while executing Makefile rules. | |
15470 | # Protect against Makefile macro expansion. | |
b30fcfae | 15471 | # |
15472 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 15473 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 15474 | # look for a macro that doesn't take arguments. |
cd9a469c | 15475 | ac_script=' |
15476 | :mline | |
15477 | /\\$/{ | |
15478 | N | |
15479 | s,\\\n,, | |
15480 | b mline | |
15481 | } | |
b30fcfae | 15482 | t clear |
cd9a469c | 15483 | :clear |
15484 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 15485 | t quote |
cd9a469c | 15486 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 15487 | t quote |
cd9a469c | 15488 | b any |
15489 | :quote | |
15490 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15491 | s/\[/\\&/g | |
15492 | s/\]/\\&/g | |
15493 | s/\$/$$/g | |
15494 | H | |
15495 | :any | |
15496 | ${ | |
15497 | g | |
15498 | s/^\n// | |
15499 | s/\n/ /g | |
15500 | p | |
15501 | } | |
15502 | ' | |
15503 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 15504 | |
15505 | ||
15506 | ac_libobjs= | |
15507 | ac_ltlibobjs= | |
f00f02a3 | 15508 | U= |
b30fcfae | 15509 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15510 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 15511 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15512 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15513 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15514 | # will be set to the directory where LIBOBJS objects are built. | |
15515 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15516 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 15517 | done |
15518 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 15519 | |
b30fcfae | 15520 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 15521 | |
ae48753c | 15522 | |
b30fcfae | 15523 | |
f00f02a3 | 15524 | : "${CONFIG_STATUS=./config.status}" |
cd9a469c | 15525 | ac_write_fail=0 |
b30fcfae | 15526 | ac_clean_files_save=$ac_clean_files |
15527 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 15528 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15529 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15530 | as_write_fail=0 | |
15531 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 15532 | #! $SHELL |
15533 | # Generated by $as_me. | |
71ab34df | 15534 | # Run this file to recreate the current configuration. |
71ab34df | 15535 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 15536 | # configure, is in config.log if it exists. |
a83ffacf | 15537 | |
b30fcfae | 15538 | debug=false |
15539 | ac_cs_recheck=false | |
15540 | ac_cs_silent=false | |
b30fcfae | 15541 | |
cd9a469c | 15542 | SHELL=\${CONFIG_SHELL-$SHELL} |
15543 | export SHELL | |
15544 | _ASEOF | |
15545 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15546 | ## -------------------- ## | |
15547 | ## M4sh Initialization. ## | |
15548 | ## -------------------- ## | |
15549 | ||
15550 | # Be more Bourne compatible | |
15551 | DUALCASE=1; export DUALCASE # for MKS sh | |
15552 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 15553 | emulate sh |
15554 | NULLCMD=: | |
cd9a469c | 15555 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 15556 | # is contrary to our usage. Disable this feature. |
15557 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 15558 | setopt NO_GLOB_SUBST |
15559 | else | |
15560 | case `(set -o) 2>/dev/null` in #( | |
15561 | *posix*) : | |
15562 | set -o posix ;; #( | |
15563 | *) : | |
15564 | ;; | |
15565 | esac | |
b30fcfae | 15566 | fi |
b30fcfae | 15567 | |
cd9a469c | 15568 | |
15569 | as_nl=' | |
15570 | ' | |
15571 | export as_nl | |
15572 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15573 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15574 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15575 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15576 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15577 | # but without wasting forks for bash or zsh. | |
15578 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15579 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15580 | as_echo='print -r --' | |
15581 | as_echo_n='print -rn --' | |
15582 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15583 | as_echo='printf %s\n' | |
15584 | as_echo_n='printf %s' | |
15585 | else | |
15586 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15587 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15588 | as_echo_n='/usr/ucb/echo -n' | |
15589 | else | |
15590 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15591 | as_echo_n_body='eval | |
15592 | arg=$1; | |
15593 | case $arg in #( | |
15594 | *"$as_nl"*) | |
15595 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15596 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15597 | esac; | |
15598 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15599 | ' | |
15600 | export as_echo_n_body | |
15601 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15602 | fi | |
15603 | export as_echo_body | |
15604 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 15605 | fi |
15606 | ||
cd9a469c | 15607 | # The user is always right. |
15608 | if test "${PATH_SEPARATOR+set}" != set; then | |
15609 | PATH_SEPARATOR=: | |
15610 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15611 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15612 | PATH_SEPARATOR=';' | |
15613 | } | |
15614 | fi | |
15615 | ||
15616 | ||
15617 | # IFS | |
15618 | # We need space, tab and new line, in precisely that order. Quoting is | |
15619 | # there to prevent editors from complaining about space-tab. | |
15620 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15621 | # splitting by setting IFS to empty value.) | |
15622 | IFS=" "" $as_nl" | |
15623 | ||
15624 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 15625 | as_myself= |
cd9a469c | 15626 | case $0 in #(( |
15627 | *[\\/]* ) as_myself=$0 ;; | |
15628 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15629 | for as_dir in $PATH | |
15630 | do | |
15631 | IFS=$as_save_IFS | |
15632 | test -z "$as_dir" && as_dir=. | |
15633 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15634 | done | |
15635 | IFS=$as_save_IFS | |
15636 | ||
15637 | ;; | |
15638 | esac | |
15639 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15640 | # in which case we are not to be found in the path. | |
15641 | if test "x$as_myself" = x; then | |
15642 | as_myself=$0 | |
15643 | fi | |
15644 | if test ! -f "$as_myself"; then | |
15645 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15646 | exit 1 | |
15647 | fi | |
b30fcfae | 15648 | |
cd9a469c | 15649 | # Unset variables that we do not need and which cause bugs (e.g. in |
15650 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15651 | # suppresses any "Segmentation fault" message there. '((' could | |
15652 | # trigger a bug in pdksh 5.2.14. | |
15653 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15654 | do eval test x\${$as_var+set} = xset \ | |
15655 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15656 | done | |
b30fcfae | 15657 | PS1='$ ' |
15658 | PS2='> ' | |
15659 | PS4='+ ' | |
15660 | ||
15661 | # NLS nuisances. | |
cd9a469c | 15662 | LC_ALL=C |
15663 | export LC_ALL | |
15664 | LANGUAGE=C | |
15665 | export LANGUAGE | |
15666 | ||
15667 | # CDPATH. | |
15668 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15669 | ||
15670 | ||
f00f02a3 | 15671 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15672 | # ---------------------------------------- | |
cd9a469c | 15673 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15674 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 15675 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 15676 | as_fn_error () |
15677 | { | |
f00f02a3 | 15678 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15679 | if test "$4"; then | |
15680 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15681 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b30fcfae | 15682 | fi |
f00f02a3 | 15683 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 15684 | as_fn_exit $as_status |
15685 | } # as_fn_error | |
15686 | ||
15687 | ||
15688 | # as_fn_set_status STATUS | |
15689 | # ----------------------- | |
15690 | # Set $? to STATUS, without forking. | |
15691 | as_fn_set_status () | |
15692 | { | |
15693 | return $1 | |
15694 | } # as_fn_set_status | |
15695 | ||
15696 | # as_fn_exit STATUS | |
15697 | # ----------------- | |
15698 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15699 | as_fn_exit () | |
15700 | { | |
15701 | set +e | |
15702 | as_fn_set_status $1 | |
15703 | exit $1 | |
15704 | } # as_fn_exit | |
15705 | ||
15706 | # as_fn_unset VAR | |
15707 | # --------------- | |
15708 | # Portably unset VAR. | |
15709 | as_fn_unset () | |
15710 | { | |
15711 | { eval $1=; unset $1;} | |
15712 | } | |
15713 | as_unset=as_fn_unset | |
15714 | # as_fn_append VAR VALUE | |
15715 | # ---------------------- | |
15716 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15717 | # advantage of any shell optimizations that allow amortized linear growth over | |
15718 | # repeated appends, instead of the typical quadratic growth present in naive | |
15719 | # implementations. | |
15720 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15721 | eval 'as_fn_append () | |
15722 | { | |
15723 | eval $1+=\$2 | |
15724 | }' | |
15725 | else | |
15726 | as_fn_append () | |
15727 | { | |
15728 | eval $1=\$$1\$2 | |
15729 | } | |
15730 | fi # as_fn_append | |
15731 | ||
15732 | # as_fn_arith ARG... | |
15733 | # ------------------ | |
15734 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15735 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15736 | # must be portable across $(()) and expr. | |
15737 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15738 | eval 'as_fn_arith () | |
15739 | { | |
15740 | as_val=$(( $* )) | |
15741 | }' | |
15742 | else | |
15743 | as_fn_arith () | |
15744 | { | |
15745 | as_val=`expr "$@" || test $? -eq 1` | |
15746 | } | |
15747 | fi # as_fn_arith | |
15748 | ||
b30fcfae | 15749 | |
cd9a469c | 15750 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15751 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 15752 | as_expr=expr |
15753 | else | |
15754 | as_expr=false | |
15755 | fi | |
15756 | ||
cd9a469c | 15757 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 15758 | as_basename=basename |
15759 | else | |
15760 | as_basename=false | |
15761 | fi | |
15762 | ||
cd9a469c | 15763 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15764 | as_dirname=dirname | |
15765 | else | |
15766 | as_dirname=false | |
15767 | fi | |
b30fcfae | 15768 | |
cd9a469c | 15769 | as_me=`$as_basename -- "$0" || |
b30fcfae | 15770 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15771 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 15772 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15773 | $as_echo X/"$0" | | |
15774 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15775 | s//\1/ | |
15776 | q | |
15777 | } | |
15778 | /^X\/\(\/\/\)$/{ | |
15779 | s//\1/ | |
15780 | q | |
15781 | } | |
15782 | /^X\/\(\/\).*/{ | |
15783 | s//\1/ | |
15784 | q | |
15785 | } | |
15786 | s/.*/./; q'` | |
5084f823 | 15787 | |
5084f823 | 15788 | # Avoid depending upon Character Ranges. |
15789 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15790 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15791 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15792 | as_cr_digits='0123456789' | |
15793 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15794 | ||
cd9a469c | 15795 | ECHO_C= ECHO_N= ECHO_T= |
15796 | case `echo -n x` in #((((( | |
15797 | -n*) | |
15798 | case `echo 'xy\c'` in | |
15799 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15800 | xy) ECHO_C='\c';; | |
15801 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15802 | ECHO_T=' ';; | |
15803 | esac;; | |
15804 | *) | |
15805 | ECHO_N='-n';; | |
b30fcfae | 15806 | esac |
15807 | ||
cd9a469c | 15808 | rm -f conf$$ conf$$.exe conf$$.file |
15809 | if test -d conf$$.dir; then | |
15810 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 15811 | else |
cd9a469c | 15812 | rm -f conf$$.dir |
15813 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 15814 | fi |
cd9a469c | 15815 | if (echo >conf$$.file) 2>/dev/null; then |
15816 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 15817 | as_ln_s='ln -s' |
cd9a469c | 15818 | # ... but there are two gotchas: |
15819 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15820 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 15821 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 15822 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 15823 | as_ln_s='cp -pR' |
cd9a469c | 15824 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15825 | as_ln_s=ln | |
15826 | else | |
f00f02a3 | 15827 | as_ln_s='cp -pR' |
5084f823 | 15828 | fi |
b30fcfae | 15829 | else |
f00f02a3 | 15830 | as_ln_s='cp -pR' |
b30fcfae | 15831 | fi |
cd9a469c | 15832 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15833 | rmdir conf$$.dir 2>/dev/null | |
15834 | ||
15835 | ||
15836 | # as_fn_mkdir_p | |
15837 | # ------------- | |
15838 | # Create "$as_dir" as a directory, including parents if necessary. | |
15839 | as_fn_mkdir_p () | |
15840 | { | |
15841 | ||
15842 | case $as_dir in #( | |
15843 | -*) as_dir=./$as_dir;; | |
15844 | esac | |
15845 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15846 | as_dirs= | |
15847 | while :; do | |
15848 | case $as_dir in #( | |
15849 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15850 | *) as_qdir=$as_dir;; | |
15851 | esac | |
15852 | as_dirs="'$as_qdir' $as_dirs" | |
15853 | as_dir=`$as_dirname -- "$as_dir" || | |
15854 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15855 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15856 | X"$as_dir" : 'X\(//\)$' \| \ | |
15857 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15858 | $as_echo X"$as_dir" | | |
15859 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15860 | s//\1/ | |
15861 | q | |
15862 | } | |
15863 | /^X\(\/\/\)[^/].*/{ | |
15864 | s//\1/ | |
15865 | q | |
15866 | } | |
15867 | /^X\(\/\/\)$/{ | |
15868 | s//\1/ | |
15869 | q | |
15870 | } | |
15871 | /^X\(\/\).*/{ | |
15872 | s//\1/ | |
15873 | q | |
15874 | } | |
15875 | s/.*/./; q'` | |
15876 | test -d "$as_dir" && break | |
15877 | done | |
15878 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 15879 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 15880 | |
b30fcfae | 15881 | |
cd9a469c | 15882 | } # as_fn_mkdir_p |
b30fcfae | 15883 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 15884 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 15885 | else |
15886 | test -d ./-p && rmdir ./-p | |
15887 | as_mkdir_p=false | |
15888 | fi | |
15889 | ||
f00f02a3 | 15890 | |
15891 | # as_fn_executable_p FILE | |
15892 | # ----------------------- | |
15893 | # Test if FILE is an executable regular file. | |
15894 | as_fn_executable_p () | |
15895 | { | |
15896 | test -f "$1" && test -x "$1" | |
15897 | } # as_fn_executable_p | |
15898 | as_test_x='test -x' | |
15899 | as_executable_p=as_fn_executable_p | |
b30fcfae | 15900 | |
15901 | # Sed expression to map a string onto a valid CPP name. | |
15902 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15903 | ||
15904 | # Sed expression to map a string onto a valid variable name. | |
15905 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15906 | ||
15907 | ||
b30fcfae | 15908 | exec 6>&1 |
cd9a469c | 15909 | ## ----------------------------------- ## |
15910 | ## Main body of $CONFIG_STATUS script. ## | |
15911 | ## ----------------------------------- ## | |
15912 | _ASEOF | |
15913 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15914 | ||
15915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15916 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 15917 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 15918 | # values after options handling. |
15919 | ac_log=" | |
b30fcfae | 15920 | This file was extended by $as_me, which was |
f00f02a3 | 15921 | generated by GNU Autoconf 2.69. Invocation command line was |
b30fcfae | 15922 | |
15923 | CONFIG_FILES = $CONFIG_FILES | |
15924 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15925 | CONFIG_LINKS = $CONFIG_LINKS | |
15926 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15927 | $ $0 $@ | |
15928 | ||
cd9a469c | 15929 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15930 | " | |
15931 | ||
b30fcfae | 15932 | _ACEOF |
15933 | ||
cd9a469c | 15934 | case $ac_config_files in *" |
15935 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15936 | esac | |
b30fcfae | 15937 | |
5084f823 | 15938 | |
5084f823 | 15939 | |
cd9a469c | 15940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15941 | # Files that config.status was made for. | |
15942 | config_files="$ac_config_files" | |
b30fcfae | 15943 | |
cd9a469c | 15944 | _ACEOF |
5084f823 | 15945 | |
cd9a469c | 15946 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15947 | ac_cs_usage="\ |
cd9a469c | 15948 | \`$as_me' instantiates files and other configuration actions |
15949 | from templates according to the current configuration. Unless the files | |
15950 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 15951 | |
cd9a469c | 15952 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 15953 | |
15954 | -h, --help print this help, then exit | |
cd9a469c | 15955 | -V, --version print version number and configuration settings, then exit |
f00f02a3 | 15956 | --config print configuration, then exit |
cd9a469c | 15957 | -q, --quiet, --silent |
15958 | do not print progress messages | |
b30fcfae | 15959 | -d, --debug don't remove temporary files |
15960 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 15961 | --file=FILE[:TEMPLATE] |
15962 | instantiate the configuration file FILE | |
b30fcfae | 15963 | |
15964 | Configuration files: | |
15965 | $config_files | |
15966 | ||
cd9a469c | 15967 | Report bugs to the package provider." |
5084f823 | 15968 | |
cd9a469c | 15969 | _ACEOF |
15970 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 15971 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b30fcfae | 15972 | ac_cs_version="\\ |
15973 | config.status | |
f00f02a3 | 15974 | configured by $0, generated by GNU Autoconf 2.69, |
15975 | with options \\"\$ac_cs_config\\" | |
b30fcfae | 15976 | |
f00f02a3 | 15977 | Copyright (C) 2012 Free Software Foundation, Inc. |
b30fcfae | 15978 | This config.status script is free software; the Free Software Foundation |
15979 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 15980 | |
15981 | ac_pwd='$ac_pwd' | |
15982 | srcdir='$srcdir' | |
15983 | INSTALL='$INSTALL' | |
b181f265 | 15984 | AWK='$AWK' |
cd9a469c | 15985 | test -n "\$AWK" || AWK=awk |
b30fcfae | 15986 | _ACEOF |
15987 | ||
cd9a469c | 15988 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15989 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 15990 | ac_need_defaults=: |
15991 | while test $# != 0 | |
b1660f25 | 15992 | do |
b30fcfae | 15993 | case $1 in |
f00f02a3 | 15994 | --*=?*) |
cd9a469c | 15995 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15996 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 15997 | ac_shift=: |
15998 | ;; | |
f00f02a3 | 15999 | --*=) |
16000 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16001 | ac_optarg= | |
16002 | ac_shift=: | |
16003 | ;; | |
cd9a469c | 16004 | *) |
b30fcfae | 16005 | ac_option=$1 |
16006 | ac_optarg=$2 | |
16007 | ac_shift=shift | |
16008 | ;; | |
b30fcfae | 16009 | esac |
16010 | ||
16011 | case $ac_option in | |
16012 | # Handling of the options. | |
71ab34df | 16013 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 16014 | ac_cs_recheck=: ;; |
cd9a469c | 16015 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
16016 | $as_echo "$ac_cs_version"; exit ;; | |
f00f02a3 | 16017 | --config | --confi | --conf | --con | --co | --c ) |
16018 | $as_echo "$ac_cs_config"; exit ;; | |
cd9a469c | 16019 | --debug | --debu | --deb | --de | --d | -d ) |
b30fcfae | 16020 | debug=: ;; |
16021 | --file | --fil | --fi | --f ) | |
16022 | $ac_shift | |
cd9a469c | 16023 | case $ac_optarg in |
16024 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f00f02a3 | 16025 | '') as_fn_error $? "missing file argument" ;; |
cd9a469c | 16026 | esac |
16027 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 16028 | ac_need_defaults=false;; |
cd9a469c | 16029 | --he | --h | --help | --hel | -h ) |
16030 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 16031 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16032 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16033 | ac_cs_silent=: ;; | |
16034 | ||
16035 | # This is an error. | |
f00f02a3 | 16036 | -*) as_fn_error $? "unrecognized option: \`$1' |
cd9a469c | 16037 | Try \`$0 --help' for more information." ;; |
b30fcfae | 16038 | |
cd9a469c | 16039 | *) as_fn_append ac_config_targets " $1" |
16040 | ac_need_defaults=false ;; | |
b30fcfae | 16041 | |
a83ffacf | 16042 | esac |
b30fcfae | 16043 | shift |
a83ffacf | 16044 | done |
16045 | ||
b30fcfae | 16046 | ac_configure_extra_args= |
a83ffacf | 16047 | |
b30fcfae | 16048 | if $ac_cs_silent; then |
16049 | exec 6>/dev/null | |
16050 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16051 | fi | |
a83ffacf | 16052 | |
b30fcfae | 16053 | _ACEOF |
cd9a469c | 16054 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 16055 | if \$ac_cs_recheck; then |
f00f02a3 | 16056 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
cd9a469c | 16057 | shift |
16058 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16059 | CONFIG_SHELL='$SHELL' | |
16060 | export CONFIG_SHELL | |
16061 | exec "\$@" | |
b30fcfae | 16062 | fi |
16063 | ||
16064 | _ACEOF | |
cd9a469c | 16065 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16066 | exec 5>>config.log | |
16067 | { | |
16068 | echo | |
16069 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16070 | ## Running $as_me. ## | |
16071 | _ASBOX | |
16072 | $as_echo "$ac_log" | |
16073 | } >&5 | |
b30fcfae | 16074 | |
cd9a469c | 16075 | _ACEOF |
16076 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 16077 | # |
16078 | # INIT-COMMANDS | |
16079 | # | |
16080 | extrasub_build="$extrasub_build" | |
16081 | extrasub_host="$extrasub_host" | |
16082 | extrasub_target="$extrasub_target" | |
16083 | ||
cd9a469c | 16084 | _ACEOF |
b30fcfae | 16085 | |
cd9a469c | 16086 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 16087 | |
cd9a469c | 16088 | # Handling of arguments. |
b30fcfae | 16089 | for ac_config_target in $ac_config_targets |
16090 | do | |
cd9a469c | 16091 | case $ac_config_target in |
16092 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16093 | ||
f00f02a3 | 16094 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b30fcfae | 16095 | esac |
16096 | done | |
16097 | ||
cd9a469c | 16098 | |
b30fcfae | 16099 | # If the user did not use the arguments to specify the items to instantiate, |
16100 | # then the envvar interface is used. Set only those that are not. | |
16101 | # We use the long form for the default assignment because of an extremely | |
16102 | # bizarre bug on SunOS 4.1.3. | |
16103 | if $ac_need_defaults; then | |
16104 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16105 | fi | |
16106 | ||
16107 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 16108 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 16109 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 16110 | # Hook for its removal unless debugging. |
16111 | # Note that there is a small window in which the directory will not be cleaned: | |
16112 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 16113 | $debug || |
16114 | { | |
f00f02a3 | 16115 | tmp= ac_tmp= |
cd9a469c | 16116 | trap 'exit_status=$? |
f00f02a3 | 16117 | : "${ac_tmp:=$tmp}" |
16118 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
cd9a469c | 16119 | ' 0 |
16120 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 16121 | } |
b30fcfae | 16122 | # Create a (secure) tmp directory for tmp files. |
16123 | ||
16124 | { | |
cd9a469c | 16125 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f00f02a3 | 16126 | test -d "$tmp" |
b30fcfae | 16127 | } || |
16128 | { | |
cd9a469c | 16129 | tmp=./conf$$-$RANDOM |
16130 | (umask 077 && mkdir "$tmp") | |
f00f02a3 | 16131 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16132 | ac_tmp=$tmp | |
cd9a469c | 16133 | |
16134 | # Set up the scripts for CONFIG_FILES section. | |
16135 | # No need to generate them if there are no CONFIG_FILES. | |
16136 | # This happens for instance with `./config.status config.h'. | |
16137 | if test -n "$CONFIG_FILES"; then | |
16138 | ||
16139 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
16140 | ac_cs_awk_getline=: | |
16141 | ac_cs_awk_pipe_init= | |
16142 | ac_cs_awk_read_file=' | |
16143 | while ((getline aline < (F[key])) > 0) | |
16144 | print(aline) | |
16145 | close(F[key])' | |
16146 | ac_cs_awk_pipe_fini= | |
16147 | else | |
16148 | ac_cs_awk_getline=false | |
16149 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16150 | ac_cs_awk_read_file=' | |
16151 | print "|#_!!_#|" | |
16152 | print "cat " F[key] " &&" | |
16153 | '$ac_cs_awk_pipe_init | |
16154 | # The final `:' finishes the AND list. | |
16155 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16156 | fi | |
16157 | ac_cr=`echo X | tr X '\015'` | |
16158 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16159 | # But we know of no other shell where ac_cr would be empty at this | |
16160 | # point, so we can use a bashism as a fallback. | |
16161 | if test "x$ac_cr" = x; then | |
16162 | eval ac_cr=\$\'\\r\' | |
16163 | fi | |
16164 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16165 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
f00f02a3 | 16166 | ac_cs_awk_cr='\\r' |
cd9a469c | 16167 | else |
16168 | ac_cs_awk_cr=$ac_cr | |
16169 | fi | |
16170 | ||
f00f02a3 | 16171 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
cd9a469c | 16172 | _ACEOF |
16173 | ||
16174 | # Create commands to substitute file output variables. | |
b30fcfae | 16175 | { |
cd9a469c | 16176 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
f00f02a3 | 16177 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
cd9a469c | 16178 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16179 | echo "_ACAWK" && | |
16180 | echo "_ACEOF" | |
16181 | } >conf$$files.sh && | |
16182 | . ./conf$$files.sh || | |
f00f02a3 | 16183 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 16184 | rm -f conf$$files.sh |
b30fcfae | 16185 | |
cd9a469c | 16186 | { |
16187 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16188 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16189 | echo "_ACEOF" | |
16190 | } >conf$$subs.sh || | |
f00f02a3 | 16191 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16192 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
cd9a469c | 16193 | ac_delim='%!_!# ' |
16194 | for ac_last_try in false false false false false :; do | |
16195 | . ./conf$$subs.sh || | |
f00f02a3 | 16196 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 16197 | |
16198 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16199 | if test $ac_delim_n = $ac_delim_num; then | |
16200 | break | |
16201 | elif $ac_last_try; then | |
f00f02a3 | 16202 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 16203 | else |
16204 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16205 | fi | |
16206 | done | |
16207 | rm -f conf$$subs.sh | |
16208 | ||
16209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 16210 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5084f823 | 16211 | _ACEOF |
cd9a469c | 16212 | sed -n ' |
16213 | h | |
16214 | s/^/S["/; s/!.*/"]=/ | |
16215 | p | |
16216 | g | |
16217 | s/^[^!]*!// | |
16218 | :repl | |
16219 | t repl | |
16220 | s/'"$ac_delim"'$// | |
16221 | t delim | |
16222 | :nl | |
16223 | h | |
f00f02a3 | 16224 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 16225 | t more1 |
16226 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16227 | p | |
16228 | n | |
16229 | b repl | |
16230 | :more1 | |
16231 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16232 | p | |
16233 | g | |
16234 | s/.\{148\}// | |
16235 | t nl | |
16236 | :delim | |
16237 | h | |
f00f02a3 | 16238 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 16239 | t more2 |
16240 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16241 | p | |
16242 | b | |
16243 | :more2 | |
16244 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16245 | p | |
16246 | g | |
16247 | s/.\{148\}// | |
16248 | t delim | |
16249 | ' <conf$$subs.awk | sed ' | |
16250 | /^[^""]/{ | |
16251 | N | |
16252 | s/\n// | |
16253 | } | |
16254 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16255 | rm -f conf$$subs.awk | |
16256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16257 | _ACAWK | |
f00f02a3 | 16258 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
cd9a469c | 16259 | for (key in S) S_is_set[key] = 1 |
16260 | FS = "\a" | |
16261 | \$ac_cs_awk_pipe_init | |
16262 | } | |
16263 | { | |
16264 | line = $ 0 | |
16265 | nfields = split(line, field, "@") | |
16266 | substed = 0 | |
16267 | len = length(field[1]) | |
16268 | for (i = 2; i < nfields; i++) { | |
16269 | key = field[i] | |
16270 | keylen = length(key) | |
16271 | if (S_is_set[key]) { | |
16272 | value = S[key] | |
16273 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16274 | len += length(value) + length(field[++i]) | |
16275 | substed = 1 | |
16276 | } else | |
16277 | len += 1 + keylen | |
16278 | } | |
16279 | if (nfields == 3 && !substed) { | |
16280 | key = field[2] | |
16281 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16282 | \$ac_cs_awk_read_file | |
16283 | next | |
16284 | } | |
16285 | } | |
16286 | print line | |
16287 | } | |
16288 | \$ac_cs_awk_pipe_fini | |
16289 | _ACAWK | |
16290 | _ACEOF | |
16291 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16292 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16293 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16294 | else | |
16295 | cat | |
f00f02a3 | 16296 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16297 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
cd9a469c | 16298 | _ACEOF |
16299 | ||
f00f02a3 | 16300 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16301 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
cd9a469c | 16302 | # trailing colons and then remove the whole line if VPATH becomes empty |
16303 | # (actually we leave an empty line to preserve line numbers). | |
16304 | if test "x$srcdir" = x.; then | |
f00f02a3 | 16305 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16306 | h | |
16307 | s/// | |
16308 | s/^/:/ | |
16309 | s/[ ]*$/:/ | |
16310 | s/:\$(srcdir):/:/g | |
16311 | s/:\${srcdir}:/:/g | |
16312 | s/:@srcdir@:/:/g | |
16313 | s/^:*// | |
cd9a469c | 16314 | s/:*$// |
f00f02a3 | 16315 | x |
16316 | s/\(=[ ]*\).*/\1/ | |
16317 | G | |
16318 | s/\n// | |
cd9a469c | 16319 | s/^[^=]*=[ ]*$// |
16320 | }' | |
16321 | fi | |
5084f823 | 16322 | |
cd9a469c | 16323 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16324 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 16325 | |
b30fcfae | 16326 | |
cd9a469c | 16327 | eval set X " :F $CONFIG_FILES " |
16328 | shift | |
16329 | for ac_tag | |
16330 | do | |
16331 | case $ac_tag in | |
16332 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16333 | esac | |
16334 | case $ac_mode$ac_tag in | |
16335 | :[FHL]*:*);; | |
f00f02a3 | 16336 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
cd9a469c | 16337 | :[FH]-) ac_tag=-:-;; |
16338 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16339 | esac | |
16340 | ac_save_IFS=$IFS | |
16341 | IFS=: | |
16342 | set x $ac_tag | |
16343 | IFS=$ac_save_IFS | |
16344 | shift | |
16345 | ac_file=$1 | |
16346 | shift | |
a8298541 | 16347 | |
cd9a469c | 16348 | case $ac_mode in |
16349 | :L) ac_source=$1;; | |
16350 | :[FH]) | |
16351 | ac_file_inputs= | |
16352 | for ac_f | |
16353 | do | |
16354 | case $ac_f in | |
f00f02a3 | 16355 | -) ac_f="$ac_tmp/stdin";; |
cd9a469c | 16356 | *) # Look for the file first in the build tree, then in the source tree |
16357 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16358 | # because $ac_f cannot contain `:'. | |
16359 | test -f "$ac_f" || | |
16360 | case $ac_f in | |
16361 | [\\/$]*) false;; | |
16362 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16363 | esac || | |
f00f02a3 | 16364 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
cd9a469c | 16365 | esac |
16366 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16367 | as_fn_append ac_file_inputs " '$ac_f'" | |
16368 | done | |
b30fcfae | 16369 | |
cd9a469c | 16370 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16371 | # use $as_me), people would be surprised to read: | |
16372 | # /* config.h. Generated by config.status. */ | |
16373 | configure_input='Generated from '` | |
16374 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16375 | `' by configure.' | |
16376 | if test x"$ac_file" != x-; then | |
16377 | configure_input="$ac_file. $configure_input" | |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16379 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 16380 | fi |
cd9a469c | 16381 | # Neutralize special characters interpreted by sed in replacement strings. |
16382 | case $configure_input in #( | |
16383 | *\&* | *\|* | *\\* ) | |
16384 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16385 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16386 | *) ac_sed_conf_input=$configure_input;; | |
16387 | esac | |
570af75a | 16388 | |
cd9a469c | 16389 | case $ac_tag in |
f00f02a3 | 16390 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16391 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
cd9a469c | 16392 | esac |
16393 | ;; | |
570af75a | 16394 | esac |
16395 | ||
cd9a469c | 16396 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 16397 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16398 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16399 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 16400 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16401 | $as_echo X"$ac_file" | | |
16402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16403 | s//\1/ | |
16404 | q | |
16405 | } | |
16406 | /^X\(\/\/\)[^/].*/{ | |
16407 | s//\1/ | |
16408 | q | |
16409 | } | |
16410 | /^X\(\/\/\)$/{ | |
16411 | s//\1/ | |
16412 | q | |
16413 | } | |
16414 | /^X\(\/\).*/{ | |
16415 | s//\1/ | |
16416 | q | |
16417 | } | |
16418 | s/.*/./; q'` | |
16419 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 16420 | ac_builddir=. |
a83ffacf | 16421 | |
cd9a469c | 16422 | case "$ac_dir" in |
16423 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16424 | *) | |
16425 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16426 | # A ".." for each directory in $ac_dir_suffix. | |
16427 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16428 | case $ac_top_builddir_sub in | |
16429 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16430 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16431 | esac ;; | |
16432 | esac | |
16433 | ac_abs_top_builddir=$ac_pwd | |
16434 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16435 | # for backward compatibility: | |
16436 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 16437 | |
16438 | case $srcdir in | |
cd9a469c | 16439 | .) # We are building in place. |
b30fcfae | 16440 | ac_srcdir=. |
cd9a469c | 16441 | ac_top_srcdir=$ac_top_builddir_sub |
16442 | ac_abs_top_srcdir=$ac_pwd ;; | |
16443 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 16444 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 16445 | ac_top_srcdir=$srcdir |
16446 | ac_abs_top_srcdir=$srcdir ;; | |
16447 | *) # Relative name. | |
16448 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16449 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16450 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 16451 | esac |
cd9a469c | 16452 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 16453 | |
a83ffacf | 16454 | |
cd9a469c | 16455 | case $ac_mode in |
16456 | :F) | |
16457 | # | |
16458 | # CONFIG_FILE | |
16459 | # | |
b30fcfae | 16460 | |
16461 | case $INSTALL in | |
16462 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 16463 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 16464 | esac |
cd9a469c | 16465 | _ACEOF |
570af75a | 16466 | |
cd9a469c | 16467 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16468 | # If the template does not know about datarootdir, expand it. | |
16469 | # FIXME: This hack should be removed a few years after 2.60. | |
16470 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16471 | ac_sed_dataroot=' | |
16472 | /datarootdir/ { | |
16473 | p | |
16474 | q | |
16475 | } | |
16476 | /@datadir@/p | |
16477 | /@docdir@/p | |
16478 | /@infodir@/p | |
16479 | /@localedir@/p | |
16480 | /@mandir@/p' | |
16481 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16482 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16483 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16485 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 16486 | _ACEOF |
cd9a469c | 16487 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16488 | ac_datarootdir_hack=' | |
16489 | s&@datadir@&$datadir&g | |
16490 | s&@docdir@&$docdir&g | |
16491 | s&@infodir@&$infodir&g | |
16492 | s&@localedir@&$localedir&g | |
16493 | s&@mandir@&$mandir&g | |
16494 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16495 | esac | |
16496 | _ACEOF | |
16497 | ||
16498 | # Neutralize VPATH when `$srcdir' = `.'. | |
16499 | # Shell code in configure.ac might set extrasub. | |
16500 | # FIXME: do we really want to maintain this feature? | |
16501 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16502 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 16503 | $extrasub |
16504 | _ACEOF | |
cd9a469c | 16505 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 16506 | :t |
16507 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 16508 | s|@configure_input@|$ac_sed_conf_input|;t t |
16509 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16510 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16511 | s&@srcdir@&$ac_srcdir&;t t | |
16512 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16513 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16514 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16515 | s&@builddir@&$ac_builddir&;t t | |
16516 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16517 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16518 | s&@INSTALL@&$ac_INSTALL&;t t | |
16519 | $ac_datarootdir_hack | |
16520 | " | |
16521 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16522 | if $ac_cs_awk_getline; then | |
f00f02a3 | 16523 | $AWK -f "$ac_tmp/subs.awk" |
cd9a469c | 16524 | else |
f00f02a3 | 16525 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16526 | fi \ | |
16527 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
cd9a469c | 16528 | |
16529 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f00f02a3 | 16530 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16531 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16532 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
cd9a469c | 16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 16534 | which seems to be undefined. Please make sure it is defined" >&5 |
cd9a469c | 16535 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 16536 | which seems to be undefined. Please make sure it is defined" >&2;} |
cd9a469c | 16537 | |
f00f02a3 | 16538 | rm -f "$ac_tmp/stdin" |
cd9a469c | 16539 | case $ac_file in |
f00f02a3 | 16540 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16541 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
cd9a469c | 16542 | esac \ |
f00f02a3 | 16543 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
cd9a469c | 16544 | ;; |
570af75a | 16545 | |
570af75a | 16546 | |
a8298541 | 16547 | |
cd9a469c | 16548 | esac |
16549 | ||
8bb79148 | 16550 | |
16551 | case $ac_file$ac_mode in | |
16552 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16553 | sed "$extrasub_host" | | |
16554 | sed "$extrasub_target" > mf$$ | |
16555 | mv -f mf$$ Makefile ;; | |
16556 | ||
16557 | esac | |
cd9a469c | 16558 | done # for ac_tag |
16559 | ||
16560 | ||
16561 | as_fn_exit 0 | |
b30fcfae | 16562 | _ACEOF |
b30fcfae | 16563 | ac_clean_files=$ac_clean_files_save |
16564 | ||
cd9a469c | 16565 | test $ac_write_fail = 0 || |
f00f02a3 | 16566 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 16567 | |
b30fcfae | 16568 | |
16569 | # configure is writing to config.log, and then calls config.status. | |
16570 | # config.status does its own redirection, appending to config.log. | |
16571 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16572 | # by configure, so config.status won't be able to write to it; its | |
16573 | # output is simply discarded. So we exec the FD to /dev/null, | |
16574 | # effectively closing config.log, so it can be properly (re)opened and | |
16575 | # appended to by config.status. When coming back to configure, we | |
16576 | # need to make the FD available again. | |
16577 | if test "$no_create" != yes; then | |
16578 | ac_cs_success=: | |
16579 | ac_config_status_args= | |
16580 | test "$silent" = yes && | |
16581 | ac_config_status_args="$ac_config_status_args --quiet" | |
16582 | exec 5>/dev/null | |
16583 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16584 | exec 5>>config.log | |
16585 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16586 | # would make configure fail if this is the last instruction. | |
f00f02a3 | 16587 | $ac_cs_success || as_fn_exit 1 |
cd9a469c | 16588 | fi |
16589 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16591 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 16592 | fi |
a8298541 | 16593 |