]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
1c710c3c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
1c710c3c | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
1c710c3c | 301 | |
5213506e RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
1c710c3c | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
1c710c3c | 456 | |
2aeb72e9 DD |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 463 | |
1c710c3c | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
1c710c3c | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
1c710c3c | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 482 | t loop |
5213506e | 483 | s/-\n.*// |
1c710c3c | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
1c710c3c DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
1c710c3c DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
1c710c3c DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
2aeb72e9 | 533 | fi |
1c710c3c | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
1c710c3c | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
0b0dc272 | 549 | |
1c710c3c DJ |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
1c710c3c DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1c710c3c DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
1c710c3c DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
671aa708 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
1c710c3c | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
1c710c3c DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
2aeb72e9 | 576 | |
1c710c3c DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
1c710c3c DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
5213506e RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
e7a82751 | 604 | READELF_FOR_TARGET |
5213506e | 605 | RANLIB_FOR_TARGET |
e4a9a572 | 606 | OTOOL_FOR_TARGET |
5213506e | 607 | OBJDUMP_FOR_TARGET |
9bccfdf5 | 608 | OBJCOPY_FOR_TARGET |
5213506e RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
3b5e8ee4 | 612 | DSYMUTIL_FOR_TARGET |
5213506e RW |
613 | DLLTOOL_FOR_TARGET |
614 | AS_FOR_TARGET | |
615 | AR_FOR_TARGET | |
b4c522fa | 616 | GDC_FOR_TARGET |
632e2a07 | 617 | GOC_FOR_TARGET |
5213506e | 618 | GFORTRAN_FOR_TARGET |
5213506e RW |
619 | GCC_FOR_TARGET |
620 | CXX_FOR_TARGET | |
621 | CC_FOR_TARGET | |
5fee5ec3 | 622 | GDCFLAGS |
e7a82751 | 623 | READELF |
e4a9a572 | 624 | OTOOL |
5213506e RW |
625 | OBJDUMP |
626 | OBJCOPY | |
627 | WINDMC | |
628 | WINDRES | |
629 | STRIP | |
630 | RANLIB | |
631 | NM | |
632 | LIPO | |
633 | LD | |
3b5e8ee4 | 634 | DSYMUTIL |
5213506e RW |
635 | DLLTOOL |
636 | AS | |
637 | AR | |
638 | RUNTEST | |
639 | EXPECT | |
640 | MAKEINFO | |
641 | FLEX | |
642 | LEX | |
643 | M4 | |
644 | BISON | |
645 | YACC | |
5213506e RW |
646 | WINDRES_FOR_BUILD |
647 | WINDMC_FOR_BUILD | |
648 | RANLIB_FOR_BUILD | |
649 | NM_FOR_BUILD | |
650 | LD_FOR_BUILD | |
651 | LDFLAGS_FOR_BUILD | |
b4c522fa | 652 | GDC_FOR_BUILD |
632e2a07 | 653 | GOC_FOR_BUILD |
5213506e | 654 | GFORTRAN_FOR_BUILD |
3b5e8ee4 | 655 | DSYMUTIL_FOR_BUILD |
5213506e RW |
656 | DLLTOOL_FOR_BUILD |
657 | CXX_FOR_BUILD | |
658 | CXXFLAGS_FOR_BUILD | |
84401ce5 RP |
659 | CPPFLAGS_FOR_BUILD |
660 | CPP_FOR_BUILD | |
5213506e RW |
661 | CFLAGS_FOR_BUILD |
662 | CC_FOR_BUILD | |
663 | AS_FOR_BUILD | |
664 | AR_FOR_BUILD | |
aae29963 | 665 | target_configdirs |
5213506e | 666 | configdirs |
5213506e | 667 | build_configdirs |
5213506e RW |
668 | INSTALL_GDB_TK |
669 | GDB_TK | |
670 | CONFIGURE_GDB_TK | |
671 | build_tooldir | |
672 | tooldir | |
673 | GCC_SHLIB_SUBDIR | |
674 | RPATH_ENVVAR | |
ffedf511 RW |
675 | target_configargs |
676 | host_configargs | |
677 | build_configargs | |
e12c4094 | 678 | BUILD_CONFIG |
6f57bdf6 | 679 | LDFLAGS_FOR_TARGET |
5213506e RW |
680 | CXXFLAGS_FOR_TARGET |
681 | CFLAGS_FOR_TARGET | |
682 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
683 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 684 | get_gcc_base_ver |
1c01ebf6 | 685 | extra_host_zlib_configure_flags |
d7f09764 | 686 | extra_host_libiberty_configure_flags |
fca38047 | 687 | stage1_languages |
cdfee50a | 688 | host_shared |
45b3824d TS |
689 | extra_linker_plugin_flags |
690 | extra_linker_plugin_configure_flags | |
33ad93b9 | 691 | islinc |
eae1a5d4 | 692 | isllibs |
5213506e | 693 | poststage1_ldflags |
ed2eaa9f | 694 | poststage1_libs |
5213506e | 695 | stage1_ldflags |
0b21f5d3 | 696 | stage1_libs |
0ff2d841 | 697 | extra_isl_gmp_configure_flags |
5213506e RW |
698 | extra_mpc_mpfr_configure_flags |
699 | extra_mpc_gmp_configure_flags | |
700 | extra_mpfr_configure_flags | |
701 | gmpinc | |
702 | gmplibs | |
7ffcf5d6 | 703 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 704 | HAVE_CXX11 |
5213506e | 705 | do_compare |
5fee5ec3 | 706 | GDC |
5213506e RW |
707 | GNATMAKE |
708 | GNATBIND | |
709 | ac_ct_CXX | |
710 | CXXFLAGS | |
711 | CXX | |
712 | OBJEXT | |
713 | EXEEXT | |
714 | ac_ct_CC | |
715 | CPPFLAGS | |
716 | LDFLAGS | |
717 | CFLAGS | |
718 | CC | |
5f520819 | 719 | extra_liboffloadmic_configure_flags |
5213506e RW |
720 | target_subdir |
721 | host_subdir | |
722 | build_subdir | |
723 | build_libsubdir | |
87264276 PB |
724 | AWK |
725 | SED | |
5213506e RW |
726 | LN_S |
727 | LN | |
728 | INSTALL_DATA | |
729 | INSTALL_SCRIPT | |
730 | INSTALL_PROGRAM | |
731 | target_os | |
732 | target_vendor | |
733 | target_cpu | |
734 | target | |
735 | host_os | |
736 | host_vendor | |
737 | host_cpu | |
738 | host | |
739 | target_noncanonical | |
740 | host_noncanonical | |
741 | build_noncanonical | |
742 | build_os | |
743 | build_vendor | |
744 | build_cpu | |
745 | build | |
746 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
747 | target_alias | |
748 | host_alias | |
749 | build_alias | |
750 | LIBS | |
751 | ECHO_T | |
752 | ECHO_N | |
753 | ECHO_C | |
754 | DEFS | |
755 | mandir | |
756 | localedir | |
757 | libdir | |
758 | psdir | |
759 | pdfdir | |
760 | dvidir | |
761 | htmldir | |
762 | infodir | |
763 | docdir | |
764 | oldincludedir | |
765 | includedir | |
766 | localstatedir | |
767 | sharedstatedir | |
768 | sysconfdir | |
769 | datadir | |
770 | datarootdir | |
771 | libexecdir | |
772 | sbindir | |
773 | bindir | |
774 | program_transform_name | |
775 | prefix | |
776 | exec_prefix | |
777 | PACKAGE_URL | |
778 | PACKAGE_BUGREPORT | |
779 | PACKAGE_STRING | |
780 | PACKAGE_VERSION | |
781 | PACKAGE_TARNAME | |
782 | PACKAGE_NAME | |
783 | PATH_SEPARATOR | |
784 | SHELL' | |
785 | ac_subst_files='serialization_dependencies | |
786 | host_makefile_frag | |
787 | target_makefile_frag | |
788 | alphaieee_frag | |
789 | ospace_frag' | |
790 | ac_user_opts=' | |
791 | enable_option_checking | |
792 | with_build_libsubdir | |
a05c2c75 | 793 | with_system_zlib |
85c64bbe BS |
794 | enable_as_accelerator_for |
795 | enable_offload_targets | |
fe5bfa67 | 796 | enable_offload_defaulted |
5213506e | 797 | enable_gold |
21539e2e | 798 | enable_ld |
78edb32f | 799 | enable_compressed_debug_sections |
87e6d9dc TB |
800 | enable_libquadmath |
801 | enable_libquadmath_support | |
5213506e RW |
802 | enable_libada |
803 | enable_libssp | |
1873ec0c | 804 | enable_libstdcxx |
5f520819 | 805 | enable_liboffloadmic |
ff3ac0f4 | 806 | enable_bootstrap |
5213506e RW |
807 | with_mpc |
808 | with_mpc_include | |
809 | with_mpc_lib | |
810 | with_mpfr_dir | |
811 | with_mpfr | |
812 | with_mpfr_include | |
813 | with_mpfr_lib | |
814 | with_gmp_dir | |
815 | with_gmp | |
816 | with_gmp_include | |
817 | with_gmp_lib | |
5213506e | 818 | with_stage1_libs |
aac9103b | 819 | with_static_standard_libraries |
0b21f5d3 | 820 | with_stage1_ldflags |
5213506e | 821 | with_boot_libs |
ed2eaa9f | 822 | with_boot_ldflags |
33ad93b9 RG |
823 | with_isl |
824 | with_isl_include | |
825 | with_isl_lib | |
826 | enable_isl_version_check | |
d7f09764 | 827 | enable_lto |
45b3824d TS |
828 | enable_linker_plugin_configure_flags |
829 | enable_linker_plugin_flags | |
cdfee50a | 830 | enable_host_shared |
5213506e | 831 | enable_stage1_languages |
43c40f3e | 832 | enable_objc_gc |
114bf3f1 MK |
833 | with_target_bdw_gc |
834 | with_target_bdw_gc_include | |
835 | with_target_bdw_gc_lib | |
3c36aa6b | 836 | with_gcc_major_version_only |
5213506e RW |
837 | with_build_sysroot |
838 | with_debug_prefix_map | |
5646b7b9 | 839 | with_build_config |
beeda1d9 | 840 | enable_vtable_verify |
5213506e RW |
841 | enable_serial_configure |
842 | with_build_time_tools | |
843 | enable_maintainer_mode | |
844 | enable_stage1_checking | |
845 | enable_werror | |
5213506e RW |
846 | ' |
847 | ac_precious_vars='build_alias | |
848 | host_alias | |
849 | target_alias | |
850 | CC | |
851 | CFLAGS | |
852 | LDFLAGS | |
853 | LIBS | |
854 | CPPFLAGS | |
855 | CXX | |
856 | CXXFLAGS | |
857 | CCC | |
ffedf511 RW |
858 | build_configargs |
859 | host_configargs | |
860 | target_configargs | |
5213506e RW |
861 | AR |
862 | AS | |
863 | DLLTOOL | |
3b5e8ee4 | 864 | DSYMUTIL |
5213506e RW |
865 | LD |
866 | LIPO | |
867 | NM | |
868 | RANLIB | |
869 | STRIP | |
870 | WINDRES | |
871 | WINDMC | |
872 | OBJCOPY | |
873 | OBJDUMP | |
e4a9a572 | 874 | OTOOL |
e7a82751 | 875 | READELF |
5213506e RW |
876 | CC_FOR_TARGET |
877 | CXX_FOR_TARGET | |
878 | GCC_FOR_TARGET | |
5213506e | 879 | GFORTRAN_FOR_TARGET |
632e2a07 | 880 | GOC_FOR_TARGET |
b4c522fa | 881 | GDC_FOR_TARGET |
5213506e RW |
882 | AR_FOR_TARGET |
883 | AS_FOR_TARGET | |
884 | DLLTOOL_FOR_TARGET | |
3b5e8ee4 | 885 | DSYMUTIL_FOR_TARGET |
5213506e RW |
886 | LD_FOR_TARGET |
887 | LIPO_FOR_TARGET | |
888 | NM_FOR_TARGET | |
9bccfdf5 | 889 | OBJCOPY_FOR_TARGET |
5213506e | 890 | OBJDUMP_FOR_TARGET |
e4a9a572 | 891 | OTOOL_FOR_TARGET |
5213506e | 892 | RANLIB_FOR_TARGET |
e7a82751 | 893 | READELF_FOR_TARGET |
5213506e RW |
894 | STRIP_FOR_TARGET |
895 | WINDRES_FOR_TARGET | |
896 | WINDMC_FOR_TARGET' | |
897 | ||
671aa708 NN |
898 | |
899 | # Initialize some variables set by options. | |
1c710c3c DJ |
900 | ac_init_help= |
901 | ac_init_version=false | |
5213506e RW |
902 | ac_unrecognized_opts= |
903 | ac_unrecognized_sep= | |
671aa708 NN |
904 | # The variables have the same names as the options, with |
905 | # dashes changed to underlines. | |
1c710c3c | 906 | cache_file=/dev/null |
671aa708 | 907 | exec_prefix=NONE |
671aa708 | 908 | no_create= |
671aa708 NN |
909 | no_recursion= |
910 | prefix=NONE | |
911 | program_prefix=NONE | |
912 | program_suffix=NONE | |
913 | program_transform_name=s,x,x, | |
914 | silent= | |
915 | site= | |
916 | srcdir= | |
671aa708 NN |
917 | verbose= |
918 | x_includes=NONE | |
919 | x_libraries=NONE | |
1c710c3c DJ |
920 | |
921 | # Installation directory options. | |
922 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
923 | # and all the variables that are supposed to be based on exec_prefix | |
924 | # by default will actually change. | |
925 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 926 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
927 | bindir='${exec_prefix}/bin' |
928 | sbindir='${exec_prefix}/sbin' | |
929 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
930 | datarootdir='${prefix}/share' |
931 | datadir='${datarootdir}' | |
671aa708 NN |
932 | sysconfdir='${prefix}/etc' |
933 | sharedstatedir='${prefix}/com' | |
934 | localstatedir='${prefix}/var' | |
671aa708 NN |
935 | includedir='${prefix}/include' |
936 | oldincludedir='/usr/include' | |
5213506e RW |
937 | docdir='${datarootdir}/doc/${PACKAGE}' |
938 | infodir='${datarootdir}/info' | |
939 | htmldir='${docdir}' | |
940 | dvidir='${docdir}' | |
941 | pdfdir='${docdir}' | |
942 | psdir='${docdir}' | |
943 | libdir='${exec_prefix}/lib' | |
944 | localedir='${datarootdir}/locale' | |
945 | mandir='${datarootdir}/man' | |
79c06341 | 946 | |
671aa708 | 947 | ac_prev= |
5213506e | 948 | ac_dashdash= |
671aa708 NN |
949 | for ac_option |
950 | do | |
671aa708 NN |
951 | # If the previous option needs an argument, assign it. |
952 | if test -n "$ac_prev"; then | |
5213506e | 953 | eval $ac_prev=\$ac_option |
671aa708 NN |
954 | ac_prev= |
955 | continue | |
956 | fi | |
79c06341 | 957 | |
5213506e | 958 | case $ac_option in |
22e05272 JM |
959 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
960 | *=) ac_optarg= ;; | |
961 | *) ac_optarg=yes ;; | |
5213506e | 962 | esac |
671aa708 NN |
963 | |
964 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
965 | ||
5213506e RW |
966 | case $ac_dashdash$ac_option in |
967 | --) | |
968 | ac_dashdash=yes ;; | |
671aa708 NN |
969 | |
970 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
971 | ac_prev=bindir ;; | |
972 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 973 | bindir=$ac_optarg ;; |
671aa708 NN |
974 | |
975 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 976 | ac_prev=build_alias ;; |
671aa708 | 977 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 978 | build_alias=$ac_optarg ;; |
671aa708 NN |
979 | |
980 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
981 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
982 | ac_prev=cache_file ;; | |
983 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
984 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
985 | cache_file=$ac_optarg ;; |
986 | ||
987 | --config-cache | -C) | |
988 | cache_file=config.cache ;; | |
671aa708 | 989 | |
5213506e | 990 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 991 | ac_prev=datadir ;; |
5213506e | 992 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 993 | datadir=$ac_optarg ;; |
671aa708 | 994 | |
5213506e RW |
995 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
996 | | --dataroo | --dataro | --datar) | |
997 | ac_prev=datarootdir ;; | |
998 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
999 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1000 | datarootdir=$ac_optarg ;; | |
1001 | ||
671aa708 | 1002 | -disable-* | --disable-*) |
5213506e | 1003 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 1004 | # Reject names that are not valid shell variable names. |
5213506e | 1005 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1006 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1007 | ac_useropt_orig=$ac_useropt |
1008 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1009 | case $ac_user_opts in | |
1010 | *" | |
1011 | "enable_$ac_useropt" | |
1012 | "*) ;; | |
1013 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1014 | ac_unrecognized_sep=', ';; | |
1015 | esac | |
1016 | eval enable_$ac_useropt=no ;; | |
1017 | ||
1018 | -docdir | --docdir | --docdi | --doc | --do) | |
1019 | ac_prev=docdir ;; | |
1020 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1021 | docdir=$ac_optarg ;; | |
1022 | ||
1023 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1024 | ac_prev=dvidir ;; | |
1025 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1026 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1027 | |
1028 | -enable-* | --enable-*) | |
5213506e | 1029 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1030 | # Reject names that are not valid shell variable names. |
5213506e | 1031 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1032 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1033 | ac_useropt_orig=$ac_useropt |
1034 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1035 | case $ac_user_opts in | |
1036 | *" | |
1037 | "enable_$ac_useropt" | |
1038 | "*) ;; | |
1039 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1040 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1041 | esac |
5213506e | 1042 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1043 | |
1044 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1045 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1046 | | --exec | --exe | --ex) | |
1047 | ac_prev=exec_prefix ;; | |
1048 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1049 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1050 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1051 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1052 | |
1053 | -gas | --gas | --ga | --g) | |
1054 | # Obsolete; use --with-gas. | |
1055 | with_gas=yes ;; | |
1056 | ||
1c710c3c DJ |
1057 | -help | --help | --hel | --he | -h) |
1058 | ac_init_help=long ;; | |
1059 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1060 | ac_init_help=recursive ;; | |
1061 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1062 | ac_init_help=short ;; | |
671aa708 NN |
1063 | |
1064 | -host | --host | --hos | --ho) | |
1c710c3c | 1065 | ac_prev=host_alias ;; |
671aa708 | 1066 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1067 | host_alias=$ac_optarg ;; |
671aa708 | 1068 | |
5213506e RW |
1069 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1070 | ac_prev=htmldir ;; | |
1071 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1072 | | --ht=*) | |
1073 | htmldir=$ac_optarg ;; | |
1074 | ||
671aa708 NN |
1075 | -includedir | --includedir | --includedi | --included | --include \ |
1076 | | --includ | --inclu | --incl | --inc) | |
1077 | ac_prev=includedir ;; | |
1078 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1079 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1080 | includedir=$ac_optarg ;; |
671aa708 NN |
1081 | |
1082 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1083 | ac_prev=infodir ;; | |
1084 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1085 | infodir=$ac_optarg ;; |
671aa708 NN |
1086 | |
1087 | -libdir | --libdir | --libdi | --libd) | |
1088 | ac_prev=libdir ;; | |
1089 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1090 | libdir=$ac_optarg ;; |
671aa708 NN |
1091 | |
1092 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1093 | | --libexe | --libex | --libe) | |
1094 | ac_prev=libexecdir ;; | |
1095 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1096 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1097 | libexecdir=$ac_optarg ;; |
671aa708 | 1098 | |
5213506e RW |
1099 | -localedir | --localedir | --localedi | --localed | --locale) |
1100 | ac_prev=localedir ;; | |
1101 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1102 | localedir=$ac_optarg ;; | |
1103 | ||
671aa708 | 1104 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1105 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1106 | ac_prev=localstatedir ;; |
1107 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1108 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1109 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1110 | |
1111 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1112 | ac_prev=mandir ;; | |
1113 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1114 | mandir=$ac_optarg ;; |
671aa708 NN |
1115 | |
1116 | -nfp | --nfp | --nf) | |
1117 | # Obsolete; use --without-fp. | |
1118 | with_fp=no ;; | |
1119 | ||
1120 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1121 | | --no-cr | --no-c | -n) |
671aa708 NN |
1122 | no_create=yes ;; |
1123 | ||
1124 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1125 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1126 | no_recursion=yes ;; | |
1127 | ||
1128 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1129 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1130 | | --oldin | --oldi | --old | --ol | --o) | |
1131 | ac_prev=oldincludedir ;; | |
1132 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1133 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1134 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1135 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1136 | |
1137 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1138 | ac_prev=prefix ;; | |
1139 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1140 | prefix=$ac_optarg ;; |
671aa708 NN |
1141 | |
1142 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1143 | | --program-pre | --program-pr | --program-p) | |
1144 | ac_prev=program_prefix ;; | |
1145 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1146 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1147 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1148 | |
1149 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1150 | | --program-suf | --program-su | --program-s) | |
1151 | ac_prev=program_suffix ;; | |
1152 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1153 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1154 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1155 | |
1156 | -program-transform-name | --program-transform-name \ | |
1157 | | --program-transform-nam | --program-transform-na \ | |
1158 | | --program-transform-n | --program-transform- \ | |
1159 | | --program-transform | --program-transfor \ | |
1160 | | --program-transfo | --program-transf \ | |
1161 | | --program-trans | --program-tran \ | |
1162 | | --progr-tra | --program-tr | --program-t) | |
1163 | ac_prev=program_transform_name ;; | |
1164 | -program-transform-name=* | --program-transform-name=* \ | |
1165 | | --program-transform-nam=* | --program-transform-na=* \ | |
1166 | | --program-transform-n=* | --program-transform-=* \ | |
1167 | | --program-transform=* | --program-transfor=* \ | |
1168 | | --program-transfo=* | --program-transf=* \ | |
1169 | | --program-trans=* | --program-tran=* \ | |
1170 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1171 | program_transform_name=$ac_optarg ;; |
671aa708 | 1172 | |
5213506e RW |
1173 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1174 | ac_prev=pdfdir ;; | |
1175 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1176 | pdfdir=$ac_optarg ;; | |
1177 | ||
1178 | -psdir | --psdir | --psdi | --psd | --ps) | |
1179 | ac_prev=psdir ;; | |
1180 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1181 | psdir=$ac_optarg ;; | |
1182 | ||
671aa708 NN |
1183 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1184 | | -silent | --silent | --silen | --sile | --sil) | |
1185 | silent=yes ;; | |
1186 | ||
1187 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1188 | ac_prev=sbindir ;; | |
1189 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1190 | | --sbi=* | --sb=*) | |
1c710c3c | 1191 | sbindir=$ac_optarg ;; |
671aa708 NN |
1192 | |
1193 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1194 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1195 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1196 | | --sha | --sh) | |
1197 | ac_prev=sharedstatedir ;; | |
1198 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1199 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1200 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1201 | | --sha=* | --sh=*) | |
1c710c3c | 1202 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1203 | |
1204 | -site | --site | --sit) | |
1205 | ac_prev=site ;; | |
1206 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1207 | site=$ac_optarg ;; |
671aa708 NN |
1208 | |
1209 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1210 | ac_prev=srcdir ;; | |
1211 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1212 | srcdir=$ac_optarg ;; |
671aa708 NN |
1213 | |
1214 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1215 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1216 | ac_prev=sysconfdir ;; | |
1217 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1218 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1219 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1220 | |
1221 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1222 | ac_prev=target_alias ;; |
671aa708 | 1223 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1224 | target_alias=$ac_optarg ;; |
671aa708 NN |
1225 | |
1226 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1227 | verbose=yes ;; | |
1228 | ||
1c710c3c DJ |
1229 | -version | --version | --versio | --versi | --vers | -V) |
1230 | ac_init_version=: ;; | |
671aa708 NN |
1231 | |
1232 | -with-* | --with-*) | |
5213506e | 1233 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1234 | # Reject names that are not valid shell variable names. |
5213506e | 1235 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1236 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1237 | ac_useropt_orig=$ac_useropt |
1238 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1239 | case $ac_user_opts in | |
1240 | *" | |
1241 | "with_$ac_useropt" | |
1242 | "*) ;; | |
1243 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1244 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1245 | esac |
5213506e | 1246 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1247 | |
1248 | -without-* | --without-*) | |
5213506e | 1249 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1250 | # Reject names that are not valid shell variable names. |
5213506e | 1251 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1252 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1253 | ac_useropt_orig=$ac_useropt |
1254 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1255 | case $ac_user_opts in | |
1256 | *" | |
1257 | "with_$ac_useropt" | |
1258 | "*) ;; | |
1259 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1260 | ac_unrecognized_sep=', ';; | |
1261 | esac | |
1262 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1263 | |
1264 | --x) | |
1265 | # Obsolete; use --with-x. | |
1266 | with_x=yes ;; | |
1267 | ||
1268 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1269 | | --x-incl | --x-inc | --x-in | --x-i) | |
1270 | ac_prev=x_includes ;; | |
1271 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1272 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1273 | x_includes=$ac_optarg ;; |
671aa708 NN |
1274 | |
1275 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1276 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1277 | ac_prev=x_libraries ;; | |
1278 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1279 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1280 | x_libraries=$ac_optarg ;; |
671aa708 | 1281 | |
22e05272 JM |
1282 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1283 | Try \`$0 --help' for more information" | |
671aa708 NN |
1284 | ;; |
1285 | ||
1c710c3c DJ |
1286 | *=*) |
1287 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1288 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1289 | case $ac_envvar in #( |
1290 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1291 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1292 | esac |
1293 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1294 | export $ac_envvar ;; |
1295 | ||
671aa708 | 1296 | *) |
1c710c3c | 1297 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1298 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1299 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1300 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1301 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1302 | ;; |
1303 | ||
1304 | esac | |
1305 | done | |
1306 | ||
1307 | if test -n "$ac_prev"; then | |
1c710c3c | 1308 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1309 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1310 | fi |
af71363e | 1311 | |
5213506e RW |
1312 | if test -n "$ac_unrecognized_opts"; then |
1313 | case $enable_option_checking in | |
1314 | no) ;; | |
22e05272 | 1315 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1316 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1317 | esac |
5213506e | 1318 | fi |
2aeb72e9 | 1319 | |
5213506e RW |
1320 | # Check all directory arguments for consistency. |
1321 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1322 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1323 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1324 | libdir localedir mandir | |
2aeb72e9 | 1325 | do |
5213506e RW |
1326 | eval ac_val=\$$ac_var |
1327 | # Remove trailing slashes. | |
1328 | case $ac_val in | |
1329 | */ ) | |
1330 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1331 | eval $ac_var=\$ac_val;; | |
1332 | esac | |
1333 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1334 | case $ac_val in |
5213506e RW |
1335 | [\\/$]* | ?:[\\/]* ) continue;; |
1336 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1337 | esac |
22e05272 | 1338 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1339 | done |
1340 | ||
1c710c3c DJ |
1341 | # There might be people who depend on the old broken behavior: `$host' |
1342 | # used to hold the argument of --host etc. | |
1343 | # FIXME: To remove some day. | |
1344 | build=$build_alias | |
1345 | host=$host_alias | |
1346 | target=$target_alias | |
0b0dc272 | 1347 | |
1c710c3c DJ |
1348 | # FIXME: To remove some day. |
1349 | if test "x$host_alias" != x; then | |
1350 | if test "x$build_alias" = x; then | |
1351 | cross_compiling=maybe | |
1c710c3c DJ |
1352 | elif test "x$build_alias" != "x$host_alias"; then |
1353 | cross_compiling=yes | |
1354 | fi | |
1355 | fi | |
1356 | ||
1357 | ac_tool_prefix= | |
1358 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1359 | ||
1360 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1361 | |
671aa708 | 1362 | |
5213506e RW |
1363 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1364 | ac_ls_di=`ls -di .` && | |
1365 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1366 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1367 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1368 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1369 | |
1370 | ||
671aa708 NN |
1371 | # Find the source files, if location was not specified. |
1372 | if test -z "$srcdir"; then | |
1373 | ac_srcdir_defaulted=yes | |
5213506e RW |
1374 | # Try the directory containing this script, then the parent directory. |
1375 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1376 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1377 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1378 | X"$as_myself" : 'X\(//\)$' \| \ | |
1379 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1380 | $as_echo X"$as_myself" | | |
1381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | /^X\(\/\/\)[^/].*/{ | |
1386 | s//\1/ | |
1387 | q | |
1388 | } | |
1389 | /^X\(\/\/\)$/{ | |
1390 | s//\1/ | |
1391 | q | |
1392 | } | |
1393 | /^X\(\/\).*/{ | |
1394 | s//\1/ | |
1395 | q | |
1396 | } | |
1397 | s/.*/./; q'` | |
671aa708 | 1398 | srcdir=$ac_confdir |
5213506e | 1399 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1400 | srcdir=.. |
1401 | fi | |
1402 | else | |
1403 | ac_srcdir_defaulted=no | |
1404 | fi | |
5213506e RW |
1405 | if test ! -r "$srcdir/$ac_unique_file"; then |
1406 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1407 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1408 | fi |
1409 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1410 | ac_abs_confdir=`( | |
22e05272 | 1411 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1412 | pwd)` |
1413 | # When building in place, set srcdir=. | |
1414 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1415 | srcdir=. | |
1416 | fi | |
1417 | # Remove unnecessary trailing slashes from srcdir. | |
1418 | # Double slashes in file names in object file debugging info | |
1419 | # mess up M-x gdb in Emacs. | |
1420 | case $srcdir in | |
1421 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1422 | esac | |
87841584 AM |
1423 | case $srcdir in |
1424 | *" "*) | |
22e05272 | 1425 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1426 | ;; |
1427 | esac | |
ac9e6043 RW |
1428 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1429 | ||
5213506e RW |
1430 | for ac_var in $ac_precious_vars; do |
1431 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1432 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1433 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1434 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1435 | done | |
1c710c3c DJ |
1436 | |
1437 | # | |
1438 | # Report the --help message. | |
1439 | # | |
1440 | if test "$ac_init_help" = "long"; then | |
1441 | # Omit some internal or obsolete options to make the list less imposing. | |
1442 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1443 | cat <<_ACEOF | |
1444 | \`configure' configures this package to adapt to many kinds of systems. | |
1445 | ||
1446 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1447 | ||
1448 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1449 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1450 | ||
1451 | Defaults for the options are specified in brackets. | |
1452 | ||
1453 | Configuration: | |
1454 | -h, --help display this help and exit | |
1455 | --help=short display options specific to this package | |
1456 | --help=recursive display the short help of all the included packages | |
1457 | -V, --version display version information and exit | |
22e05272 | 1458 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1459 | --cache-file=FILE cache test results in FILE [disabled] |
1460 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1461 | -n, --no-create do not create output files | |
1462 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1463 | ||
1c710c3c DJ |
1464 | Installation directories: |
1465 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1466 | [$ac_default_prefix] |
1c710c3c | 1467 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1468 | [PREFIX] |
1c710c3c DJ |
1469 | |
1470 | By default, \`make install' will install all the files in | |
1471 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1472 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1473 | for instance \`--prefix=\$HOME'. | |
1474 | ||
1475 | For better control, use the options below. | |
1476 | ||
1477 | Fine tuning of the installation directories: | |
5213506e RW |
1478 | --bindir=DIR user executables [EPREFIX/bin] |
1479 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1480 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1481 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1482 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1483 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1484 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1485 | --includedir=DIR C header files [PREFIX/include] | |
1486 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1487 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1488 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1489 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1490 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1491 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1492 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1493 | --htmldir=DIR html documentation [DOCDIR] | |
1494 | --dvidir=DIR dvi documentation [DOCDIR] | |
1495 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1496 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1497 | _ACEOF |
1498 | ||
1499 | cat <<\_ACEOF | |
1500 | ||
1501 | Program names: | |
1502 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1503 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1504 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1505 | ||
1506 | System types: | |
1507 | --build=BUILD configure for building on BUILD [guessed] | |
1508 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1509 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1510 | _ACEOF | |
1511 | fi | |
1512 | ||
1513 | if test -n "$ac_init_help"; then | |
1514 | ||
1515 | cat <<\_ACEOF | |
1516 | ||
1517 | Optional Features: | |
5213506e | 1518 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1519 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1520 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1521 | --enable-as-accelerator-for=ARG |
1522 | build as offload target compiler. Specify offload | |
1523 | host triple by ARG | |
1524 | --enable-offload-targets=LIST | |
1525 | enable offloading to devices from comma-separated | |
1526 | LIST of TARGET[=DIR]. Use optional path to find | |
1527 | offload target compiler during the build | |
fe5bfa67 TB |
1528 | --enable-offload-defaulted |
1529 | If enabled, configured but not installed offload compilers and | |
1530 | libgomp plugins are silently ignored. Useful for distribution | |
1531 | compilers where those are in separate optional packages. | |
1532 | ||
21539e2e | 1533 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1534 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1535 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1536 | Enable compressed debug sections for gas, gold or ld |
1537 | by default | |
87e6d9dc TB |
1538 | --disable-libquadmath do not build libquadmath directory |
1539 | --disable-libquadmath-support | |
1540 | disable libquadmath support for Fortran | |
30b74385 RW |
1541 | --enable-libada build libada directory |
1542 | --enable-libssp build libssp directory | |
1873ec0c | 1543 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1544 | --enable-liboffloadmic=ARG |
1545 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1546 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1547 | --disable-isl-version-check |
560d18d3 | 1548 | disable check for isl version |
d7f09764 | 1549 | --enable-lto enable link time optimization support |
45b3824d TS |
1550 | --enable-linker-plugin-configure-flags=FLAGS |
1551 | additional flags for configuring linker plugins | |
1552 | [none] | |
1553 | --enable-linker-plugin-flags=FLAGS | |
1554 | additional flags for configuring and building linker | |
1555 | plugins [none] | |
cdfee50a | 1556 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1557 | --enable-stage1-languages[=all] |
1558 | choose additional languages to build during stage1. | |
1559 | Mostly useful for compiler development | |
43c40f3e RO |
1560 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1561 | Objective-C runtime | |
318a4e6d | 1562 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1563 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1564 | force sequential configuration of sub-packages for |
1565 | the host, target or build machine, or all | |
1566 | sub-packages | |
1567 | --enable-maintainer-mode | |
1568 | enable make rules and dependencies not useful (and | |
1569 | sometimes confusing) to the casual installer | |
1570 | --enable-stage1-checking[=all] | |
1571 | choose additional checking for stage1 of the | |
1572 | compiler | |
1c710c3c DJ |
1573 | --enable-werror enable -Werror in bootstrap stage2 and later |
1574 | ||
1575 | Optional Packages: | |
1576 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1577 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1578 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1579 | --with-system-zlib use installed libz |
33e39b66 AS |
1580 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1581 | Equivalent to --with-mpc-include=PATH/include plus | |
1582 | --with-mpc-lib=PATH/lib | |
1583 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1584 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1585 | --with-mpfr-dir=PATH this option has been REMOVED |
1586 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1587 | Equivalent to --with-mpfr-include=PATH/include plus |
1588 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1589 | --with-mpfr-include=PATH |
30b74385 RW |
1590 | specify directory for installed MPFR include files |
1591 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1592 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1593 | --with-gmp=PATH specify prefix directory for the installed GMP |
1594 | package. Equivalent to | |
1595 | --with-gmp-include=PATH/include plus | |
1596 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1597 | --with-gmp-include=PATH specify directory for installed GMP include files |
1598 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1599 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1600 | --with-static-standard-libraries |
1601 | use -static-libstdc++ and -static-libgcc | |
1602 | (default=auto) | |
33e39b66 AS |
1603 | --with-stage1-ldflags=FLAGS |
1604 | linker flags for stage1 | |
33e39b66 AS |
1605 | --with-boot-libs=LIBS libraries for stage2 and later |
1606 | --with-boot-ldflags=FLAGS | |
1607 | linker flags for stage2 and later | |
e357a5e0 | 1608 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1609 | package. Equivalent to |
33ad93b9 RG |
1610 | --with-isl-include=PATH/include plus |
1611 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1612 | --with-isl-include=PATH Specify directory for installed isl include files |
1613 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1614 | --with-target-bdw-gc=PATHLIST |
1615 | specify prefix directory for installed bdw-gc | |
1616 | package. Equivalent to | |
1617 | --with-target-bdw-gc-include=PATH/include plus | |
1618 | --with-target-bdw-gc-lib=PATH/lib | |
1619 | --with-target-bdw-gc-include=PATHLIST | |
1620 | specify directories for installed bdw-gc include | |
1621 | files | |
1622 | --with-target-bdw-gc-lib=PATHLIST | |
1623 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1624 | --with-gcc-major-version-only |
1625 | use only GCC major number in filesystem paths | |
30b74385 | 1626 | --with-build-sysroot=SYSROOT |
1c710c3c | 1627 | use sysroot as the system root during the build |
c8aea42c | 1628 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1629 | map A to B, C to D ... in debug information |
1630 | --with-build-config='NAME NAME2...' | |
1631 | use config/NAME.mk build configuration | |
30b74385 | 1632 | --with-build-time-tools=PATH |
1c710c3c | 1633 | use given path to find target tools during the build |
1c710c3c DJ |
1634 | |
1635 | Some influential environment variables: | |
1636 | CC C compiler command | |
1637 | CFLAGS C compiler flags | |
1638 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1639 | nonstandard directory <lib dir> | |
5213506e | 1640 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1641 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1642 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1643 | CXX C++ compiler command |
1644 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1645 | build_configargs |
1646 | additional configure arguments for build directories | |
1647 | host_configargs | |
1648 | additional configure arguments for host directories | |
1649 | target_configargs | |
1650 | additional configure arguments for target directories | |
278a7a38 AO |
1651 | AR AR for the host |
1652 | AS AS for the host | |
1653 | DLLTOOL DLLTOOL for the host | |
3b5e8ee4 | 1654 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1655 | LD LD for the host |
1656 | LIPO LIPO for the host | |
1657 | NM NM for the host | |
1658 | RANLIB RANLIB for the host | |
1659 | STRIP STRIP for the host | |
1660 | WINDRES WINDRES for the host | |
901119ae | 1661 | WINDMC WINDMC for the host |
278a7a38 AO |
1662 | OBJCOPY OBJCOPY for the host |
1663 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1664 | OTOOL OTOOL for the host |
e7a82751 | 1665 | READELF READELF for the host |
278a7a38 AO |
1666 | CC_FOR_TARGET |
1667 | CC for the target | |
1668 | CXX_FOR_TARGET | |
1669 | CXX for the target | |
1670 | GCC_FOR_TARGET | |
1671 | GCC for the target | |
278a7a38 AO |
1672 | GFORTRAN_FOR_TARGET |
1673 | GFORTRAN for the target | |
632e2a07 ILT |
1674 | GOC_FOR_TARGET |
1675 | GOC for the target | |
b4c522fa IB |
1676 | GDC_FOR_TARGET |
1677 | GDC for the target | |
278a7a38 AO |
1678 | AR_FOR_TARGET |
1679 | AR for the target | |
1680 | AS_FOR_TARGET | |
1681 | AS for the target | |
1682 | DLLTOOL_FOR_TARGET | |
1683 | DLLTOOL for the target | |
3b5e8ee4 IS |
1684 | DSYMUTIL_FOR_TARGET |
1685 | DSYMUTIL for the target | |
278a7a38 AO |
1686 | LD_FOR_TARGET |
1687 | LD for the target | |
1688 | LIPO_FOR_TARGET | |
1689 | LIPO for the target | |
1690 | NM_FOR_TARGET | |
1691 | NM for the target | |
9bccfdf5 AP |
1692 | OBJCOPY_FOR_TARGET |
1693 | OBJCOPY for the target | |
278a7a38 AO |
1694 | OBJDUMP_FOR_TARGET |
1695 | OBJDUMP for the target | |
e4a9a572 IS |
1696 | OTOOL_FOR_TARGET |
1697 | OTOOL for the target | |
278a7a38 AO |
1698 | RANLIB_FOR_TARGET |
1699 | RANLIB for the target | |
e7a82751 RM |
1700 | READELF_FOR_TARGET |
1701 | READELF for the target | |
278a7a38 AO |
1702 | STRIP_FOR_TARGET |
1703 | STRIP for the target | |
1704 | WINDRES_FOR_TARGET | |
1705 | WINDRES for the target | |
901119ae KT |
1706 | WINDMC_FOR_TARGET |
1707 | WINDMC for the target | |
1c710c3c DJ |
1708 | |
1709 | Use these variables to override the choices made by `configure' or to help | |
1710 | it to find libraries and programs with nonstandard names/locations. | |
1711 | ||
5213506e | 1712 | Report bugs to the package provider. |
1c710c3c | 1713 | _ACEOF |
5213506e | 1714 | ac_status=$? |
1c710c3c DJ |
1715 | fi |
1716 | ||
1717 | if test "$ac_init_help" = "recursive"; then | |
1718 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1719 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1720 | test -d "$ac_dir" || |
1721 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1722 | continue | |
1c710c3c DJ |
1723 | ac_builddir=. |
1724 | ||
5213506e RW |
1725 | case "$ac_dir" in |
1726 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1727 | *) | |
1728 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1729 | # A ".." for each directory in $ac_dir_suffix. | |
1730 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1731 | case $ac_top_builddir_sub in | |
1732 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1733 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1734 | esac ;; | |
1735 | esac | |
1736 | ac_abs_top_builddir=$ac_pwd | |
1737 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1738 | # for backward compatibility: | |
1739 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1740 | |
1741 | case $srcdir in | |
5213506e | 1742 | .) # We are building in place. |
1c710c3c | 1743 | ac_srcdir=. |
5213506e RW |
1744 | ac_top_srcdir=$ac_top_builddir_sub |
1745 | ac_abs_top_srcdir=$ac_pwd ;; | |
1746 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1747 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1748 | ac_top_srcdir=$srcdir |
1749 | ac_abs_top_srcdir=$srcdir ;; | |
1750 | *) # Relative name. | |
1751 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1752 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1753 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1754 | esac |
5213506e RW |
1755 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1756 | ||
1757 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1758 | # Check for guested configure. | |
1759 | if test -f "$ac_srcdir/configure.gnu"; then | |
1760 | echo && | |
1761 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1762 | elif test -f "$ac_srcdir/configure"; then | |
1763 | echo && | |
1764 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1765 | else |
5213506e RW |
1766 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1767 | fi || ac_status=$? | |
1768 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1769 | done |
1770 | fi | |
1771 | ||
5213506e | 1772 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1773 | if $ac_init_version; then |
1774 | cat <<\_ACEOF | |
5213506e | 1775 | configure |
22e05272 | 1776 | generated by GNU Autoconf 2.69 |
1c710c3c | 1777 | |
22e05272 | 1778 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1779 | This configure script is free software; the Free Software Foundation |
1780 | gives unlimited permission to copy, distribute and modify it. | |
1781 | _ACEOF | |
5213506e | 1782 | exit |
0b0dc272 | 1783 | fi |
5213506e RW |
1784 | |
1785 | ## ------------------------ ## | |
1786 | ## Autoconf initialization. ## | |
1787 | ## ------------------------ ## | |
1788 | ||
1789 | # ac_fn_c_try_compile LINENO | |
1790 | # -------------------------- | |
1791 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1792 | ac_fn_c_try_compile () | |
1793 | { | |
1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1795 | rm -f conftest.$ac_objext | |
1796 | if { { ac_try="$ac_compile" | |
1797 | case "(($ac_try" in | |
1798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1799 | *) ac_try_echo=$ac_try;; | |
1800 | esac | |
1801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1802 | $as_echo "$ac_try_echo"; } >&5 | |
1803 | (eval "$ac_compile") 2>conftest.err | |
1804 | ac_status=$? | |
1805 | if test -s conftest.err; then | |
1806 | grep -v '^ *+' conftest.err >conftest.er1 | |
1807 | cat conftest.er1 >&5 | |
1808 | mv -f conftest.er1 conftest.err | |
1809 | fi | |
1810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1811 | test $ac_status = 0; } && { | |
1812 | test -z "$ac_c_werror_flag" || | |
1813 | test ! -s conftest.err | |
1814 | } && test -s conftest.$ac_objext; then : | |
1815 | ac_retval=0 | |
1816 | else | |
1817 | $as_echo "$as_me: failed program was:" >&5 | |
1818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1819 | ||
1820 | ac_retval=1 | |
1821 | fi | |
22e05272 JM |
1822 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1823 | as_fn_set_status $ac_retval | |
5213506e RW |
1824 | |
1825 | } # ac_fn_c_try_compile | |
1826 | ||
1827 | # ac_fn_cxx_try_compile LINENO | |
1828 | # ---------------------------- | |
1829 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1830 | ac_fn_cxx_try_compile () | |
1831 | { | |
1832 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1833 | rm -f conftest.$ac_objext | |
1834 | if { { ac_try="$ac_compile" | |
1835 | case "(($ac_try" in | |
1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1837 | *) ac_try_echo=$ac_try;; | |
1838 | esac | |
1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1840 | $as_echo "$ac_try_echo"; } >&5 | |
1841 | (eval "$ac_compile") 2>conftest.err | |
1842 | ac_status=$? | |
1843 | if test -s conftest.err; then | |
1844 | grep -v '^ *+' conftest.err >conftest.er1 | |
1845 | cat conftest.er1 >&5 | |
1846 | mv -f conftest.er1 conftest.err | |
1847 | fi | |
1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1849 | test $ac_status = 0; } && { | |
1850 | test -z "$ac_cxx_werror_flag" || | |
1851 | test ! -s conftest.err | |
1852 | } && test -s conftest.$ac_objext; then : | |
1853 | ac_retval=0 | |
1854 | else | |
1855 | $as_echo "$as_me: failed program was:" >&5 | |
1856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1857 | ||
1858 | ac_retval=1 | |
1859 | fi | |
22e05272 JM |
1860 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1861 | as_fn_set_status $ac_retval | |
5213506e RW |
1862 | |
1863 | } # ac_fn_cxx_try_compile | |
1864 | ||
0b21f5d3 EB |
1865 | # ac_fn_cxx_try_link LINENO |
1866 | # ------------------------- | |
1867 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1868 | ac_fn_cxx_try_link () | |
1869 | { | |
1870 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1872 | if { { ac_try="$ac_link" | |
1873 | case "(($ac_try" in | |
1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1875 | *) ac_try_echo=$ac_try;; | |
1876 | esac | |
1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1878 | $as_echo "$ac_try_echo"; } >&5 | |
1879 | (eval "$ac_link") 2>conftest.err | |
1880 | ac_status=$? | |
1881 | if test -s conftest.err; then | |
1882 | grep -v '^ *+' conftest.err >conftest.er1 | |
1883 | cat conftest.er1 >&5 | |
1884 | mv -f conftest.er1 conftest.err | |
1885 | fi | |
1886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1887 | test $ac_status = 0; } && { | |
1888 | test -z "$ac_cxx_werror_flag" || | |
1889 | test ! -s conftest.err | |
1890 | } && test -s conftest$ac_exeext && { | |
1891 | test "$cross_compiling" = yes || | |
22e05272 | 1892 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1893 | }; then : |
1894 | ac_retval=0 | |
1895 | else | |
1896 | $as_echo "$as_me: failed program was:" >&5 | |
1897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1898 | ||
1899 | ac_retval=1 | |
1900 | fi | |
1901 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1902 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1903 | # interfere with the next link command; also delete a directory that is | |
1904 | # left behind by Apple's compiler. We do this before executing the actions. | |
1905 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1906 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1907 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1908 | |
1909 | } # ac_fn_cxx_try_link | |
1910 | ||
5213506e RW |
1911 | # ac_fn_c_try_link LINENO |
1912 | # ----------------------- | |
1913 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1914 | ac_fn_c_try_link () | |
1915 | { | |
1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1918 | if { { ac_try="$ac_link" | |
1919 | case "(($ac_try" in | |
1920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1921 | *) ac_try_echo=$ac_try;; | |
1922 | esac | |
1923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1924 | $as_echo "$ac_try_echo"; } >&5 | |
1925 | (eval "$ac_link") 2>conftest.err | |
1926 | ac_status=$? | |
1927 | if test -s conftest.err; then | |
1928 | grep -v '^ *+' conftest.err >conftest.er1 | |
1929 | cat conftest.er1 >&5 | |
1930 | mv -f conftest.er1 conftest.err | |
1931 | fi | |
1932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1933 | test $ac_status = 0; } && { | |
1934 | test -z "$ac_c_werror_flag" || | |
1935 | test ! -s conftest.err | |
1936 | } && test -s conftest$ac_exeext && { | |
1937 | test "$cross_compiling" = yes || | |
22e05272 | 1938 | test -x conftest$ac_exeext |
5213506e RW |
1939 | }; then : |
1940 | ac_retval=0 | |
1941 | else | |
1942 | $as_echo "$as_me: failed program was:" >&5 | |
1943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1944 | ||
1945 | ac_retval=1 | |
1946 | fi | |
1947 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1948 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1949 | # interfere with the next link command; also delete a directory that is | |
1950 | # left behind by Apple's compiler. We do this before executing the actions. | |
1951 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1952 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1953 | as_fn_set_status $ac_retval | |
5213506e RW |
1954 | |
1955 | } # ac_fn_c_try_link | |
1956 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1957 | This file contains any messages produced by compilers while |
1958 | running configure, to aid debugging if configure makes a mistake. | |
1959 | ||
1960 | It was created by $as_me, which was | |
22e05272 | 1961 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1962 | |
1963 | $ $0 $@ | |
1964 | ||
1965 | _ACEOF | |
5213506e | 1966 | exec 5>>config.log |
1c710c3c DJ |
1967 | { |
1968 | cat <<_ASUNAME | |
1969 | ## --------- ## | |
1970 | ## Platform. ## | |
1971 | ## --------- ## | |
1972 | ||
1973 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1974 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1975 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1976 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1977 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1978 | ||
1979 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1980 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1981 | ||
1982 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1983 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1984 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1985 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1986 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1987 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1988 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1989 | ||
1990 | _ASUNAME | |
1991 | ||
1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1993 | for as_dir in $PATH | |
1994 | do | |
1995 | IFS=$as_save_IFS | |
1996 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1997 | $as_echo "PATH: $as_dir" |
1998 | done | |
1999 | IFS=$as_save_IFS | |
1c710c3c DJ |
2000 | |
2001 | } >&5 | |
2002 | ||
2003 | cat >&5 <<_ACEOF | |
2004 | ||
2005 | ||
2006 | ## ----------- ## | |
2007 | ## Core tests. ## | |
2008 | ## ----------- ## | |
2009 | ||
2010 | _ACEOF | |
2011 | ||
2012 | ||
2013 | # Keep a trace of the command line. | |
2014 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2015 | # Strip out --silent because we don't want to record it for future runs. | |
2016 | # Also quote any args containing shell meta-characters. | |
2017 | # Make two passes to allow for proper duplicate-argument suppression. | |
2018 | ac_configure_args= | |
2019 | ac_configure_args0= | |
2020 | ac_configure_args1= | |
1c710c3c DJ |
2021 | ac_must_keep_next=false |
2022 | for ac_pass in 1 2 | |
2023 | do | |
2024 | for ac_arg | |
2025 | do | |
2026 | case $ac_arg in | |
2027 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2028 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2029 | | -silent | --silent | --silen | --sile | --sil) | |
2030 | continue ;; | |
5213506e RW |
2031 | *\'*) |
2032 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2033 | esac |
2034 | case $ac_pass in | |
5213506e | 2035 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2036 | 2) |
5213506e | 2037 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2038 | if test $ac_must_keep_next = true; then |
2039 | ac_must_keep_next=false # Got value, back to normal. | |
2040 | else | |
2041 | case $ac_arg in | |
2042 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2043 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2044 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2045 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2046 | case "$ac_configure_args0 " in | |
2047 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2048 | esac | |
2049 | ;; | |
2050 | -* ) ac_must_keep_next=true ;; | |
2051 | esac | |
2052 | fi | |
5213506e | 2053 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2054 | ;; |
2055 | esac | |
2056 | done | |
2057 | done | |
5213506e RW |
2058 | { ac_configure_args0=; unset ac_configure_args0;} |
2059 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2060 | |
2061 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2062 | # config.log. We remove comments because anyway the quotes in there | |
2063 | # would cause problems or look ugly. | |
5213506e RW |
2064 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2065 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2066 | trap 'exit_status=$? |
2067 | # Save into config.log some information that might help in debugging. | |
2068 | { | |
2069 | echo | |
2070 | ||
22e05272 | 2071 | $as_echo "## ---------------- ## |
1c710c3c | 2072 | ## Cache variables. ## |
22e05272 | 2073 | ## ---------------- ##" |
1c710c3c DJ |
2074 | echo |
2075 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2076 | ( |
2077 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2078 | eval ac_val=\$$ac_var | |
2079 | case $ac_val in #( | |
2080 | *${as_nl}*) | |
2081 | case $ac_var in #( | |
2082 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2083 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2084 | esac | |
2085 | case $ac_var in #( | |
2086 | _ | IFS | as_nl) ;; #( | |
2087 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2088 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2089 | esac ;; | |
2090 | esac | |
2091 | done | |
1c710c3c | 2092 | (set) 2>&1 | |
5213506e RW |
2093 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2094 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2095 | sed -n \ |
5213506e RW |
2096 | "s/'\''/'\''\\\\'\'''\''/g; |
2097 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2098 | ;; #( | |
1c710c3c | 2099 | *) |
5213506e | 2100 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2101 | ;; |
5213506e RW |
2102 | esac | |
2103 | sort | |
2104 | ) | |
1c710c3c DJ |
2105 | echo |
2106 | ||
22e05272 | 2107 | $as_echo "## ----------------- ## |
1c710c3c | 2108 | ## Output variables. ## |
22e05272 | 2109 | ## ----------------- ##" |
1c710c3c DJ |
2110 | echo |
2111 | for ac_var in $ac_subst_vars | |
2112 | do | |
5213506e RW |
2113 | eval ac_val=\$$ac_var |
2114 | case $ac_val in | |
2115 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2116 | esac | |
2117 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2118 | done | sort |
2119 | echo | |
2120 | ||
2121 | if test -n "$ac_subst_files"; then | |
22e05272 | 2122 | $as_echo "## ------------------- ## |
5213506e | 2123 | ## File substitutions. ## |
22e05272 | 2124 | ## ------------------- ##" |
1c710c3c DJ |
2125 | echo |
2126 | for ac_var in $ac_subst_files | |
2127 | do | |
5213506e RW |
2128 | eval ac_val=\$$ac_var |
2129 | case $ac_val in | |
2130 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2131 | esac | |
2132 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2133 | done | sort |
2134 | echo | |
2135 | fi | |
2136 | ||
2137 | if test -s confdefs.h; then | |
22e05272 | 2138 | $as_echo "## ----------- ## |
1c710c3c | 2139 | ## confdefs.h. ## |
22e05272 | 2140 | ## ----------- ##" |
1c710c3c | 2141 | echo |
5213506e | 2142 | cat confdefs.h |
1c710c3c DJ |
2143 | echo |
2144 | fi | |
2145 | test "$ac_signal" != 0 && | |
5213506e RW |
2146 | $as_echo "$as_me: caught signal $ac_signal" |
2147 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2148 | } >&5 |
5213506e RW |
2149 | rm -f core *.core core.conftest.* && |
2150 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2151 | exit $exit_status |
5213506e | 2152 | ' 0 |
1c710c3c | 2153 | for ac_signal in 1 2 13 15; do |
5213506e | 2154 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2155 | done |
2156 | ac_signal=0 | |
2157 | ||
2158 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2159 | rm -f -r conftest* confdefs.h |
2160 | ||
2161 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2162 | |
2163 | # Predefined preprocessor variables. | |
2164 | ||
2165 | cat >>confdefs.h <<_ACEOF | |
2166 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2167 | _ACEOF | |
2168 | ||
1c710c3c DJ |
2169 | cat >>confdefs.h <<_ACEOF |
2170 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2171 | _ACEOF | |
2172 | ||
1c710c3c DJ |
2173 | cat >>confdefs.h <<_ACEOF |
2174 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2175 | _ACEOF | |
0b0dc272 | 2176 | |
1c710c3c DJ |
2177 | cat >>confdefs.h <<_ACEOF |
2178 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2179 | _ACEOF | |
2180 | ||
1c710c3c DJ |
2181 | cat >>confdefs.h <<_ACEOF |
2182 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2183 | _ACEOF | |
2184 | ||
5213506e RW |
2185 | cat >>confdefs.h <<_ACEOF |
2186 | #define PACKAGE_URL "$PACKAGE_URL" | |
2187 | _ACEOF | |
2188 | ||
1c710c3c DJ |
2189 | |
2190 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2191 | # Prefer an explicitly selected file to automatically selected ones. |
2192 | ac_site_file1=NONE | |
2193 | ac_site_file2=NONE | |
2194 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2195 | # We do not want a PATH search for config.site. |
2196 | case $CONFIG_SITE in #(( | |
2197 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2198 | */*) ac_site_file1=$CONFIG_SITE;; | |
2199 | *) ac_site_file1=./$CONFIG_SITE;; | |
2200 | esac | |
5213506e RW |
2201 | elif test "x$prefix" != xNONE; then |
2202 | ac_site_file1=$prefix/share/config.site | |
2203 | ac_site_file2=$prefix/etc/config.site | |
2204 | else | |
2205 | ac_site_file1=$ac_default_prefix/share/config.site | |
2206 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2207 | fi |
5213506e RW |
2208 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2209 | do | |
2210 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2211 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2213 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2214 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2215 | . "$ac_site_file" \ |
2216 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2217 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2218 | as_fn_error $? "failed to load site script $ac_site_file | |
2219 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2220 | fi |
2221 | done | |
2222 | ||
2223 | if test -r "$cache_file"; then | |
22e05272 JM |
2224 | # Some versions of bash will fail to source /dev/null (special files |
2225 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2226 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2228 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2229 | case $cache_file in |
5213506e RW |
2230 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2231 | *) . "./$cache_file";; | |
1c710c3c DJ |
2232 | esac |
2233 | fi | |
671aa708 | 2234 | else |
5213506e RW |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2236 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2237 | >$cache_file |
2238 | fi | |
2239 | ||
2240 | # Check that the precious variables saved in the cache have kept the same | |
2241 | # value. | |
2242 | ac_cache_corrupted=false | |
5213506e | 2243 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2244 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2245 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2246 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2247 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2248 | case $ac_old_set,$ac_new_set in |
2249 | set,) | |
5213506e RW |
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2251 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2252 | ac_cache_corrupted=: ;; |
2253 | ,set) | |
5213506e RW |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2255 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2256 | ac_cache_corrupted=: ;; |
2257 | ,);; | |
2258 | *) | |
2259 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2260 | # differences in whitespace do not lead to failure. |
2261 | ac_old_val_w=`echo x $ac_old_val` | |
2262 | ac_new_val_w=`echo x $ac_new_val` | |
2263 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2265 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2266 | ac_cache_corrupted=: | |
2267 | else | |
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2269 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2270 | eval $ac_var=\$ac_old_val | |
2271 | fi | |
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2273 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2275 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2276 | fi;; |
2277 | esac | |
2278 | # Pass precious variables to config.status. | |
2279 | if test "$ac_new_set" = set; then | |
2280 | case $ac_new_val in | |
5213506e | 2281 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2282 | *) ac_arg=$ac_var=$ac_new_val ;; |
2283 | esac | |
2284 | case " $ac_configure_args " in | |
2285 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2286 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2287 | esac |
2288 | fi | |
2289 | done | |
2290 | if $ac_cache_corrupted; then | |
5213506e RW |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2292 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2294 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2295 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2296 | fi |
5213506e RW |
2297 | ## -------------------- ## |
2298 | ## Main body of script. ## | |
2299 | ## -------------------- ## | |
671aa708 | 2300 | |
2aeb72e9 DD |
2301 | ac_ext=c |
2302 | ac_cpp='$CPP $CPPFLAGS' | |
2303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2306 | ||
1c710c3c DJ |
2307 | |
2308 | ||
2309 | ||
1c710c3c DJ |
2310 | |
2311 | ||
0115d4a3 | 2312 | |
1c710c3c | 2313 | |
ad33ff57 RW |
2314 | progname=$0 |
2315 | # if PWD already has a value, it is probably wrong. | |
2316 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2317 | ||
2318 | # Export original configure arguments for use by sub-configures. | |
2319 | # Quote arguments with shell meta charatcers. | |
2320 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2321 | set -- "$progname" "$@" | |
2322 | for ac_arg | |
2323 | do | |
2324 | case "$ac_arg" in | |
2325 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2326 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2327 | # if the argument is of the form -foo=baz, quote the baz part only | |
2328 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2329 | *) ;; | |
2330 | esac | |
2331 | # Add the quoted argument to the list. | |
2332 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2333 | done | |
2334 | if test "$silent" = yes; then | |
2335 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2336 | fi | |
2337 | # Remove the initial space we just introduced and, as these will be | |
2338 | # expanded by make, quote '$'. | |
2339 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2340 | ||
1c710c3c DJ |
2341 | |
2342 | # Find the build, host, and target systems. | |
671aa708 | 2343 | ac_aux_dir= |
5213506e | 2344 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2345 | if test -f "$ac_dir/install-sh"; then |
2346 | ac_aux_dir=$ac_dir | |
2347 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2348 | break | |
2349 | elif test -f "$ac_dir/install.sh"; then | |
2350 | ac_aux_dir=$ac_dir | |
2351 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2352 | break | |
2353 | elif test -f "$ac_dir/shtool"; then | |
2354 | ac_aux_dir=$ac_dir | |
2355 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2356 | break | |
2357 | fi | |
671aa708 NN |
2358 | done |
2359 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2360 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2361 | fi |
5213506e RW |
2362 | |
2363 | # These three variables are undocumented and unsupported, | |
2364 | # and are intended to be withdrawn in a future Autoconf release. | |
2365 | # They can cause serious problems if a builder's source tree is in a directory | |
2366 | # whose full name contains unusual characters. | |
2367 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2368 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2369 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2370 | ||
671aa708 | 2371 | |
1c710c3c | 2372 | # Make sure we can run config.sub. |
5213506e | 2373 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2374 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2375 | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2377 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2378 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2379 | $as_echo_n "(cached) " >&6 |
2380 | else | |
2381 | ac_build_alias=$build_alias | |
2382 | test "x$ac_build_alias" = x && | |
2383 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2384 | test "x$ac_build_alias" = x && | |
22e05272 | 2385 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2386 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2387 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2388 | |
2389 | fi | |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2391 | $as_echo "$ac_cv_build" >&6; } | |
2392 | case $ac_cv_build in | |
2393 | *-*-*) ;; | |
22e05272 | 2394 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2395 | esac |
1c710c3c | 2396 | build=$ac_cv_build |
5213506e RW |
2397 | ac_save_IFS=$IFS; IFS='-' |
2398 | set x $ac_cv_build | |
2399 | shift | |
2400 | build_cpu=$1 | |
2401 | build_vendor=$2 | |
2402 | shift; shift | |
2403 | # Remember, the first character of IFS is used to create $*, | |
2404 | # except with old shells: | |
2405 | build_os=$* | |
2406 | IFS=$ac_save_IFS | |
2407 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2408 | |
671aa708 | 2409 | |
1c710c3c DJ |
2410 | case ${build_alias} in |
2411 | "") build_noncanonical=${build} ;; | |
2412 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2413 | esac |
2414 | ||
2415 | ||
af71363e | 2416 | |
1c710c3c DJ |
2417 | case ${host_alias} in |
2418 | "") host_noncanonical=${build_noncanonical} ;; | |
2419 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2420 | esac |
2421 | ||
af71363e | 2422 | |
1c710c3c DJ |
2423 | |
2424 | case ${target_alias} in | |
2425 | "") target_noncanonical=${host_noncanonical} ;; | |
2426 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2427 | esac |
2428 | ||
af71363e | 2429 | |
1c710c3c DJ |
2430 | |
2431 | ||
2432 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2433 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2434 | NONENONEs,x,x, && | |
1c710c3c | 2435 | program_transform_name=s,y,y, |
af71363e | 2436 | |
5213506e RW |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2438 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2439 | if ${ac_cv_host+:} false; then : |
5213506e | 2440 | $as_echo_n "(cached) " >&6 |
af71363e | 2441 | else |
5213506e RW |
2442 | if test "x$host_alias" = x; then |
2443 | ac_cv_host=$ac_cv_build | |
2444 | else | |
2445 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2446 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2447 | fi |
1c710c3c | 2448 | |
af71363e | 2449 | fi |
5213506e RW |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2451 | $as_echo "$ac_cv_host" >&6; } | |
2452 | case $ac_cv_host in | |
2453 | *-*-*) ;; | |
22e05272 | 2454 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2455 | esac |
1c710c3c | 2456 | host=$ac_cv_host |
5213506e RW |
2457 | ac_save_IFS=$IFS; IFS='-' |
2458 | set x $ac_cv_host | |
2459 | shift | |
2460 | host_cpu=$1 | |
2461 | host_vendor=$2 | |
2462 | shift; shift | |
2463 | # Remember, the first character of IFS is used to create $*, | |
2464 | # except with old shells: | |
2465 | host_os=$* | |
2466 | IFS=$ac_save_IFS | |
2467 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2468 | |
2469 | ||
5213506e RW |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2471 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2472 | if ${ac_cv_target+:} false; then : |
5213506e | 2473 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2474 | else |
5213506e RW |
2475 | if test "x$target_alias" = x; then |
2476 | ac_cv_target=$ac_cv_host | |
2477 | else | |
2478 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2479 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2480 | fi |
1c710c3c DJ |
2481 | |
2482 | fi | |
5213506e RW |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2484 | $as_echo "$ac_cv_target" >&6; } | |
2485 | case $ac_cv_target in | |
2486 | *-*-*) ;; | |
22e05272 | 2487 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2488 | esac |
1c710c3c | 2489 | target=$ac_cv_target |
5213506e RW |
2490 | ac_save_IFS=$IFS; IFS='-' |
2491 | set x $ac_cv_target | |
2492 | shift | |
2493 | target_cpu=$1 | |
2494 | target_vendor=$2 | |
2495 | shift; shift | |
2496 | # Remember, the first character of IFS is used to create $*, | |
2497 | # except with old shells: | |
2498 | target_os=$* | |
2499 | IFS=$ac_save_IFS | |
2500 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2501 | |
2502 | ||
2503 | # The aliases save the names the user supplied, while $host etc. | |
2504 | # will get canonicalized. | |
2505 | test -n "$target_alias" && | |
2506 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2507 | NONENONEs,x,x, && | |
2508 | program_prefix=${target_alias}- | |
5213506e | 2509 | |
671aa708 | 2510 | test "$program_prefix" != NONE && |
5213506e | 2511 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2512 | # Use a double $ so make ignores it. |
2513 | test "$program_suffix" != NONE && | |
5213506e RW |
2514 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2515 | # Double any \ or $. | |
1c710c3c | 2516 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2517 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2518 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2519 | |
671aa708 NN |
2520 | |
2521 | ||
775956d0 NN |
2522 | # Get 'install' or 'install-sh' and its variants. |
2523 | # Find a good install program. We prefer a C program (faster), | |
2524 | # so one script is as good as another. But avoid the broken or | |
2525 | # incompatible versions: | |
2526 | # SysV /etc/install, /usr/sbin/install | |
2527 | # SunOS /usr/etc/install | |
2528 | # IRIX /sbin/install | |
2529 | # AIX /bin/install | |
1c710c3c | 2530 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2531 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2532 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2533 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2534 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2535 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2536 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2538 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2539 | if test -z "$INSTALL"; then |
22e05272 | 2540 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2541 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2542 | else |
2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2544 | for as_dir in $PATH | |
2545 | do | |
2546 | IFS=$as_save_IFS | |
2547 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2548 | # Account for people who put trailing slashes in PATH elements. |
2549 | case $as_dir/ in #(( | |
2550 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2551 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2552 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2553 | /usr/ucb/* ) ;; |
2554 | *) | |
2555 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2556 | # Don't use installbsd from OSF since it installs stuff as root | |
2557 | # by default. | |
2558 | for ac_prog in ginstall scoinst install; do | |
2559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2560 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2561 | if test $ac_prog = install && |
1c710c3c | 2562 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2563 | # AIX install. It has an incompatible calling convention. |
2564 | : | |
1c710c3c DJ |
2565 | elif test $ac_prog = install && |
2566 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2567 | # program-specific install script used by HP pwplus--don't use. | |
2568 | : | |
775956d0 | 2569 | else |
38d24731 RW |
2570 | rm -rf conftest.one conftest.two conftest.dir |
2571 | echo one > conftest.one | |
2572 | echo two > conftest.two | |
2573 | mkdir conftest.dir | |
2574 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2575 | test -s conftest.one && test -s conftest.two && | |
2576 | test -s conftest.dir/conftest.one && | |
2577 | test -s conftest.dir/conftest.two | |
2578 | then | |
2579 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2580 | break 3 | |
2581 | fi | |
775956d0 NN |
2582 | fi |
2583 | fi | |
2584 | done | |
1c710c3c DJ |
2585 | done |
2586 | ;; | |
2587 | esac | |
5213506e RW |
2588 | |
2589 | done | |
2590 | IFS=$as_save_IFS | |
1c710c3c | 2591 | |
38d24731 | 2592 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2593 | |
2594 | fi | |
2595 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2596 | INSTALL=$ac_cv_path_install |
775956d0 | 2597 | else |
38d24731 RW |
2598 | # As a last resort, use the slow shell script. Don't cache a |
2599 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2600 | # break other packages using the cache if that directory is |
38d24731 | 2601 | # removed, or if the value is a relative name. |
1c710c3c | 2602 | INSTALL=$ac_install_sh |
775956d0 NN |
2603 | fi |
2604 | fi | |
5213506e RW |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2606 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2607 | |
2608 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2609 | # It thinks the first close brace ends the variable substitution. | |
2610 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2611 | ||
1c710c3c | 2612 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2613 | |
2614 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2615 | ||
5213506e RW |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2617 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2618 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2619 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2620 | else |
2621 | rm -f conftestdata_t | |
2622 | echo >conftestdata_f | |
2623 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2624 | then | |
2625 | acx_cv_prog_LN=ln | |
2626 | else | |
2627 | acx_cv_prog_LN=no | |
2628 | fi | |
2629 | rm -f conftestdata_f conftestdata_t | |
2630 | ||
2631 | fi | |
2632 | if test $acx_cv_prog_LN = no; then | |
2633 | LN="cp" | |
5213506e RW |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2635 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2636 | else |
2637 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2639 | $as_echo "yes" >&6; } | |
ad6717df PB |
2640 | fi |
2641 | ||
5213506e RW |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2643 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2644 | LN_S=$as_ln_s |
2645 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2647 | $as_echo "yes" >&6; } | |
fb0103e5 | 2648 | else |
5213506e RW |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2650 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2651 | fi |
2652 | ||
87264276 PB |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2654 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2655 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2656 | $as_echo_n "(cached) " >&6 |
2657 | else | |
2658 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2659 | for ac_i in 1 2 3 4 5 6 7; do | |
2660 | ac_script="$ac_script$as_nl$ac_script" | |
2661 | done | |
2662 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2663 | { ac_script=; unset ac_script;} | |
2664 | if test -z "$SED"; then | |
2665 | ac_path_SED_found=false | |
2666 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2668 | for as_dir in $PATH | |
2669 | do | |
2670 | IFS=$as_save_IFS | |
2671 | test -z "$as_dir" && as_dir=. | |
2672 | for ac_prog in sed gsed; do | |
2673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2674 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2675 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2676 | # Check for GNU ac_path_SED and select it if it is found. |
2677 | # Check for GNU $ac_path_SED | |
2678 | case `"$ac_path_SED" --version 2>&1` in | |
2679 | *GNU*) | |
2680 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2681 | *) | |
2682 | ac_count=0 | |
2683 | $as_echo_n 0123456789 >"conftest.in" | |
2684 | while : | |
2685 | do | |
2686 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2687 | mv "conftest.tmp" "conftest.in" | |
2688 | cp "conftest.in" "conftest.nl" | |
2689 | $as_echo '' >> "conftest.nl" | |
2690 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2691 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2692 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2693 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2694 | # Best one so far, save it but keep looking for a better one | |
2695 | ac_cv_path_SED="$ac_path_SED" | |
2696 | ac_path_SED_max=$ac_count | |
2697 | fi | |
2698 | # 10*(2^10) chars as input seems more than enough | |
2699 | test $ac_count -gt 10 && break | |
2700 | done | |
2701 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2702 | esac | |
2703 | ||
2704 | $ac_path_SED_found && break 3 | |
2705 | done | |
2706 | done | |
2707 | done | |
2708 | IFS=$as_save_IFS | |
2709 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2710 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2711 | fi |
2712 | else | |
2713 | ac_cv_path_SED=$SED | |
2714 | fi | |
2715 | ||
2716 | fi | |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2718 | $as_echo "$ac_cv_path_SED" >&6; } | |
2719 | SED="$ac_cv_path_SED" | |
2720 | rm -f conftest.sed | |
2721 | ||
2722 | for ac_prog in gawk mawk nawk awk | |
2723 | do | |
2724 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2725 | set dummy $ac_prog; ac_word=$2 | |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2727 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2728 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2729 | $as_echo_n "(cached) " >&6 |
2730 | else | |
2731 | if test -n "$AWK"; then | |
2732 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2733 | else | |
2734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2735 | for as_dir in $PATH | |
2736 | do | |
2737 | IFS=$as_save_IFS | |
2738 | test -z "$as_dir" && as_dir=. | |
2739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2741 | ac_cv_prog_AWK="$ac_prog" |
2742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2743 | break 2 | |
2744 | fi | |
2745 | done | |
2746 | done | |
2747 | IFS=$as_save_IFS | |
2748 | ||
2749 | fi | |
2750 | fi | |
2751 | AWK=$ac_cv_prog_AWK | |
2752 | if test -n "$AWK"; then | |
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2754 | $as_echo "$AWK" >&6; } | |
2755 | else | |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2757 | $as_echo "no" >&6; } | |
2758 | fi | |
2759 | ||
2760 | ||
2761 | test -n "$AWK" && break | |
2762 | done | |
2763 | ||
775956d0 | 2764 | |
ee6a22df L |
2765 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2766 | ||
2767 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2768 | # a relative path. | |
2769 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2770 | INSTALL="${srcpwd}/install-sh -c" | |
2771 | fi | |
2772 | ||
671aa708 NN |
2773 | # Set srcdir to "." if that's what it is. |
2774 | # This is important for multilib support. | |
2775 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2776 | if test "${pwd}" = "${srcpwd}" ; then |
2777 | srcdir=. | |
79c06341 JL |
2778 | fi |
2779 | ||
671aa708 | 2780 | topsrcdir=$srcpwd |
5d4a5ee6 | 2781 | |
671aa708 | 2782 | extra_host_args= |
afabd8e6 | 2783 | |
671aa708 NN |
2784 | ### To add a new directory to the tree, first choose whether it is a target |
2785 | ### or a host dependent tool. Then put it into the appropriate list | |
2786 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2787 | |
1c710c3c | 2788 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2789 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2790 | |
1c710c3c DJ |
2791 | # Dependency sorting is only needed when *configuration* must be done in |
2792 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2793 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2794 | |
671aa708 NN |
2795 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2796 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2797 | |
23f6b2f9 PB |
2798 | # these library is used by various programs built for the build |
2799 | # environment | |
2800 | # | |
929315a9 | 2801 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2802 | |
2803 | # these tools are built for the build environment | |
85bfb75e | 2804 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2805 | |
671aa708 | 2806 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2807 | #f |
36230329 | 2808 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2809 | |
671aa708 NN |
2810 | # these tools are built for the host environment |
2811 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2812 | # know that we are building the simulator. | |
2813 | # binutils, gas and ld appear in that order because it makes sense to run | |
2814 | # "make check" in that particular order. | |
38e3d868 | 2815 | # If --enable-gold is used, "gold" may replace "ld". |
2efd8b1f | 2816 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools" |
671aa708 | 2817 | |
671aa708 NN |
2818 | # these libraries are built for the target environment, and are built after |
2819 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2820 | # Note that libiberty is not a target library. |
291f172e | 2821 | target_libraries="target-libgcc \ |
eff02e4f | 2822 | target-libbacktrace \ |
671aa708 NN |
2823 | target-libgloss \ |
2824 | target-newlib \ | |
6d3b5aea | 2825 | target-libgomp \ |
5f520819 | 2826 | target-liboffloadmic \ |
48310492 | 2827 | target-libatomic \ |
0a35513e | 2828 | target-libitm \ |
cb543528 | 2829 | target-libstdc++-v3 \ |
f35db108 | 2830 | target-libsanitizer \ |
2077db1b | 2831 | target-libvtv \ |
77008252 | 2832 | target-libssp \ |
1ec601bf | 2833 | target-libquadmath \ |
6de9cd9a | 2834 | target-libgfortran \ |
012447ea | 2835 | target-libffi \ |
d9cdb878 | 2836 | target-libobjc \ |
632e2a07 | 2837 | target-libada \ |
b4c522fa | 2838 | target-libgo \ |
bb50312e IB |
2839 | target-libphobos \ |
2840 | target-zlib" | |
671aa708 | 2841 | |
4dbda6f0 NN |
2842 | # these tools are built using the target libraries, and are intended to |
2843 | # run only in the target environment | |
671aa708 | 2844 | # |
4dbda6f0 | 2845 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2846 | # list belongs in this list. |
671aa708 | 2847 | # |
85bfb75e | 2848 | target_tools="target-rda" |
79c06341 | 2849 | |
671aa708 | 2850 | ################################################################################ |
79c06341 | 2851 | |
671aa708 NN |
2852 | ## All tools belong in one of the four categories, and are assigned above |
2853 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2854 | ## is important because configure will choke if they ever get through. | |
2855 | ## ${configdirs} is directories we build using the host tools. | |
2856 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2857 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2858 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2859 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2860 | |
ac9e6043 RW |
2861 | |
2862 | ||
671aa708 | 2863 | ################################################################################ |
79c06341 | 2864 | |
671aa708 | 2865 | srcname="gnu development package" |
79c06341 | 2866 | |
671aa708 NN |
2867 | # This gets set non-empty for some net releases of packages. |
2868 | appdirs="" | |
79c06341 | 2869 | |
671aa708 NN |
2870 | # Define is_cross_compiler to save on calls to 'test'. |
2871 | is_cross_compiler= | |
2872 | if test x"${host}" = x"${target}" ; then | |
2873 | is_cross_compiler=no | |
79c06341 | 2874 | else |
671aa708 | 2875 | is_cross_compiler=yes |
1c710c3c | 2876 | fi |
79c06341 | 2877 | |
b4acb5ef | 2878 | # Find the build and target subdir names. |
8b87bb96 | 2879 | |
2e9e6f68 DJ |
2880 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2881 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2882 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2883 | # However, they still use the build modules, because the corresponding | |
2884 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2885 | # finishes. So: | |
2886 | # - build_subdir is where we find build modules, and never changes. | |
2887 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2888 | ||
2889 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2890 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2891 | |
5213506e RW |
2892 | # Check whether --with-build-libsubdir was given. |
2893 | if test "${with_build_libsubdir+set}" = set; then : | |
2894 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2895 | else |
2896 | build_libsubdir="$build_subdir" | |
5213506e RW |
2897 | fi |
2898 | ||
215c351a PB |
2899 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2900 | if ( test $srcdir = . && test -d gcc ) \ | |
2901 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2902 | host_subdir="host-${host_noncanonical}" | |
2903 | else | |
2904 | host_subdir=. | |
2905 | fi | |
8b87bb96 NN |
2906 | # No prefix. |
2907 | target_subdir=${target_noncanonical} | |
1c710c3c | 2908 | |
0db770bd RW |
2909 | # Be sure to cover against remnants of an in-tree build. |
2910 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2911 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2912 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2913 | fi | |
79c06341 | 2914 | |
671aa708 NN |
2915 | # Skipdirs are removed silently. |
2916 | skipdirs= | |
2917 | # Noconfigdirs are removed loudly. | |
2918 | noconfigdirs="" | |
79c06341 | 2919 | |
671aa708 NN |
2920 | use_gnu_ld= |
2921 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2922 | if test x$with_gnu_ld = xno ; then | |
2923 | use_gnu_ld=no | |
5afab7ad | 2924 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2925 | fi |
2926 | ||
671aa708 NN |
2927 | use_gnu_as= |
2928 | # Make sure we don't let GNU as be added if we didn't want it. | |
2929 | if test x$with_gnu_as = xno ; then | |
2930 | use_gnu_as=no | |
2931 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2932 | fi |
2933 | ||
d7f09764 | 2934 | use_included_zlib= |
a05c2c75 L |
2935 | |
2936 | # Check whether --with-system-zlib was given. | |
2937 | if test "${with_system_zlib+set}" = set; then : | |
2938 | withval=$with_system_zlib; | |
2939 | fi | |
2940 | ||
d7f09764 DN |
2941 | # Make sure we don't let ZLIB be added if we didn't want it. |
2942 | if test x$with_system_zlib = xyes ; then | |
2943 | use_included_zlib=no | |
2944 | noconfigdirs="$noconfigdirs zlib" | |
2945 | fi | |
2946 | ||
1c710c3c | 2947 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2948 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2949 | |
671aa708 NN |
2950 | case ${with_x} in |
2951 | yes | "") ;; # the default value for this tree is that X11 is available | |
2952 | no) | |
b4f96efe | 2953 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2954 | # We won't be able to build gdbtk without X. |
1c710c3c | 2955 | enable_gdbtk=no |
671aa708 NN |
2956 | ;; |
2957 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2958 | esac | |
79c06341 | 2959 | |
1bcce263 | 2960 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2961 | # Remove these if host=target. |
2962 | cross_only="target-libgloss target-newlib target-opcodes" | |
2963 | ||
2964 | case $is_cross_compiler in | |
2965 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2966 | esac |
79c06341 | 2967 | |
671aa708 NN |
2968 | # If both --with-headers and --with-libs are specified, default to |
2969 | # --without-newlib. | |
ee6a22df L |
2970 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2971 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2972 | if test x"${with_newlib}" = x ; then |
2973 | with_newlib=no | |
2974 | fi | |
79c06341 JL |
2975 | fi |
2976 | ||
671aa708 NN |
2977 | # Recognize --with-newlib/--without-newlib. |
2978 | case ${with_newlib} in | |
2979 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2980 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2981 | esac | |
79c06341 | 2982 | |
85c64bbe BS |
2983 | # Check whether --enable-as-accelerator-for was given. |
2984 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2985 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2986 | fi |
2987 | ||
2988 | ||
2989 | # Check whether --enable-offload-targets was given. | |
2990 | if test "${enable_offload_targets+set}" = set; then : | |
2991 | enableval=$enable_offload_targets; | |
2992 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2993 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2994 | fi |
2995 | ||
2996 | else | |
2997 | enable_offload_targets= | |
2998 | fi | |
2999 | ||
3000 | ||
fe5bfa67 TB |
3001 | # Check whether --enable-offload-defaulted was given. |
3002 | if test "${enable_offload_defaulted+set}" = set; then : | |
3003 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3004 | else | |
3005 | enable_offload_defaulted= | |
3006 | fi | |
3007 | ||
3008 | ||
21539e2e MK |
3009 | # Handle --enable-gold, --enable-ld. |
3010 | # --disable-gold [--enable-ld] | |
3011 | # Build only ld. Default option. | |
9580395f L |
3012 | # --enable-gold [--enable-ld] |
3013 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3014 | # as "ld.bfd" and "ld". | |
3015 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3016 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3017 | # install ld as "ld.bfd". | |
3018 | # --enable-gold[=default] --disable-ld | |
3019 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3020 | # --enable-gold --enable-ld=default | |
9580395f L |
3021 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3022 | # and ld.bfd). | |
21539e2e MK |
3023 | # In other words, ld is default |
3024 | # --enable-gold=default --enable-ld=default | |
3025 | # Error. | |
3026 | ||
3027 | default_ld= | |
5213506e RW |
3028 | # Check whether --enable-gold was given. |
3029 | if test "${enable_gold+set}" = set; then : | |
3030 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3031 | else |
3032 | ENABLE_GOLD=no | |
5213506e RW |
3033 | fi |
3034 | ||
21539e2e MK |
3035 | case "${ENABLE_GOLD}" in |
3036 | yes|default) | |
38e3d868 RM |
3037 | # Check for ELF target. |
3038 | is_elf=no | |
3039 | case "${target}" in | |
3040 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3041 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3042 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3043 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3044 | case "${target}" in |
3045 | *-*-linux*aout* | *-*-linux*oldld*) | |
3046 | ;; | |
3047 | *) | |
3048 | is_elf=yes | |
3049 | ;; | |
3050 | esac | |
3051 | esac | |
3052 | ||
3053 | if test "$is_elf" = "yes"; then | |
3054 | # Check for target supported by gold. | |
5afab7ad | 3055 | case "${target}" in |
7705dfd1 | 3056 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3057 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3058 | configdirs="$configdirs gold" |
3059 | if test x${ENABLE_GOLD} = xdefault; then | |
3060 | default_ld=gold | |
3061 | fi | |
38e3d868 | 3062 | ENABLE_GOLD=yes |
5afab7ad ILT |
3063 | ;; |
3064 | esac | |
38e3d868 RM |
3065 | fi |
3066 | ;; | |
3067 | no) | |
3068 | ;; | |
3069 | *) | |
22e05272 | 3070 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3071 | ;; |
21539e2e MK |
3072 | esac |
3073 | ||
3074 | # Check whether --enable-ld was given. | |
3075 | if test "${enable_ld+set}" = set; then : | |
3076 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3077 | else | |
3078 | ENABLE_LD=yes | |
3079 | fi | |
3080 | ||
3081 | ||
3082 | case "${ENABLE_LD}" in | |
3083 | default) | |
9580395f | 3084 | if test x${default_ld} != x; then |
22e05272 | 3085 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3086 | fi |
3087 | ;; | |
3088 | yes) | |
3089 | ;; | |
3090 | no) | |
3091 | if test x${ENABLE_GOLD} != xyes; then | |
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3093 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3094 | fi | |
3095 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3096 | ;; | |
3097 | *) | |
22e05272 | 3098 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3099 | ;; |
3100 | esac | |
5afab7ad | 3101 | |
78edb32f L |
3102 | # PR gas/19109 |
3103 | # Decide the default method for compressing debug sections. | |
3104 | # Provide a configure time option to override our default. | |
3105 | # Check whether --enable-compressed_debug_sections was given. | |
3106 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3107 | enableval=$enable_compressed_debug_sections; | |
3108 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3109 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3110 | fi |
3111 | ||
3112 | else | |
3113 | enable_compressed_debug_sections= | |
3114 | fi | |
3115 | ||
3116 | ||
671aa708 | 3117 | # Configure extra directories which are host specific |
79c06341 | 3118 | |
671aa708 NN |
3119 | case "${host}" in |
3120 | *-cygwin*) | |
3121 | configdirs="$configdirs libtermcap" ;; | |
3122 | esac | |
79c06341 | 3123 | |
4fab7234 HPN |
3124 | # A target can indicate whether a language isn't supported for some reason. |
3125 | # Only spaces may be used in this macro; not newlines or tabs. | |
3126 | unsupported_languages= | |
3127 | ||
1c710c3c | 3128 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3129 | # target this usually means that a port of the program doesn't |
3130 | # exist yet. | |
ec8d6ddc | 3131 | |
671aa708 | 3132 | case "${host}" in |
111eeb6e | 3133 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3134 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3135 | ;; |
671aa708 | 3136 | esac |
ec8d6ddc | 3137 | |
6de9cd9a | 3138 | |
87e6d9dc TB |
3139 | # Check whether --enable-libquadmath was given. |
3140 | if test "${enable_libquadmath+set}" = set; then : | |
3141 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3142 | else | |
3143 | ENABLE_LIBQUADMATH=yes | |
3144 | fi | |
3145 | ||
3146 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3147 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3148 | fi | |
3149 | ||
3150 | ||
3151 | # Check whether --enable-libquadmath-support was given. | |
3152 | if test "${enable_libquadmath_support+set}" = set; then : | |
3153 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3154 | else | |
3155 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3156 | fi | |
3157 | ||
3158 | enable_libquadmath_support= | |
3159 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3160 | enable_libquadmath_support=no | |
3161 | fi | |
3162 | ||
3163 | ||
5213506e RW |
3164 | # Check whether --enable-libada was given. |
3165 | if test "${enable_libada+set}" = set; then : | |
3166 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3167 | else |
3168 | ENABLE_LIBADA=yes | |
5213506e RW |
3169 | fi |
3170 | ||
d9cdb878 | 3171 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3172 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3173 | fi |
3174 | ||
5213506e RW |
3175 | # Check whether --enable-libssp was given. |
3176 | if test "${enable_libssp+set}" = set; then : | |
3177 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3178 | else |
3179 | ENABLE_LIBSSP=yes | |
5213506e RW |
3180 | fi |
3181 | ||
ef0087a7 | 3182 | |
1873ec0c L |
3183 | # Check whether --enable-libstdcxx was given. |
3184 | if test "${enable_libstdcxx+set}" = set; then : | |
3185 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3186 | else | |
3187 | ENABLE_LIBSTDCXX=default | |
3188 | fi | |
3189 | ||
3190 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3191 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3192 | fi |
3193 | ||
5f520819 KY |
3194 | # If this is accelerator compiler and its target is intelmic we enable |
3195 | # target liboffloadmic by default. If this is compiler with offloading | |
3196 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3197 | # liboffloadmic is disabled by default. | |
3198 | # Check whether --enable-liboffloadmic was given. | |
3199 | if test "${enable_liboffloadmic+set}" = set; then : | |
3200 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3201 | no | host | target) | |
3202 | enable_liboffloadmic=$enableval ;; | |
3203 | *) | |
22e05272 | 3204 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3205 | esac |
3206 | else | |
4b4f2e35 | 3207 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3208 | case "${target}" in |
3209 | *-intelmic-* | *-intelmicemul-*) | |
3210 | enable_liboffloadmic=target | |
3211 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3212 | ;; | |
3213 | *) | |
3214 | enable_liboffloadmic=no | |
3215 | ;; | |
3216 | esac | |
3217 | else | |
3218 | case "${enable_offload_targets}" in | |
3219 | *-intelmic-* | *-intelmicemul-*) | |
3220 | enable_liboffloadmic=host | |
3221 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3222 | ;; | |
3223 | *) | |
3224 | enable_liboffloadmic=no | |
3225 | ;; | |
3226 | esac | |
3227 | fi | |
3228 | fi | |
3229 | ||
3230 | ||
3231 | ||
44a7d18d | 3232 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3233 | if test x$enable_libgomp = x ; then |
953ff289 | 3234 | case "${target}" in |
416ac4d4 | 3235 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3236 | ;; |
8c6d158a | 3237 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3238 | ;; |
b24513a1 | 3239 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3240 | ;; |
cac90078 | 3241 | *-*-darwin* | *-*-aix*) |
953ff289 | 3242 | ;; |
29b1533a | 3243 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3244 | ;; |
953ff289 DN |
3245 | *) |
3246 | noconfigdirs="$noconfigdirs target-libgomp" | |
3247 | ;; | |
3248 | esac | |
27079765 | 3249 | fi |
953ff289 | 3250 | |
48310492 RH |
3251 | # Disable libatomic on unsupported systems. |
3252 | if test -d ${srcdir}/libatomic; then | |
3253 | if test x$enable_libatomic = x; then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3255 | $as_echo_n "checking for libatomic support... " >&6; } | |
3256 | if (srcdir=${srcdir}/libatomic; \ | |
3257 | . ${srcdir}/configure.tgt; \ | |
3258 | test -n "$UNSUPPORTED") | |
3259 | then | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3261 | $as_echo "no" >&6; } | |
3262 | noconfigdirs="$noconfigdirs target-libatomic" | |
3263 | else | |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3265 | $as_echo "yes" >&6; } | |
3266 | fi | |
3267 | fi | |
3268 | fi | |
3269 | ||
5f520819 KY |
3270 | # Disable liboffloadmic on unsupported systems. |
3271 | if test -d ${srcdir}/liboffloadmic; then | |
3272 | if test x$enable_liboffloadmic != xno; then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3274 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3275 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3276 | . ${srcdir}/configure.tgt; \ | |
3277 | test -n "$UNSUPPORTED") | |
3278 | then | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3280 | $as_echo "no" >&6; } | |
3281 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3282 | else | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3284 | $as_echo "yes" >&6; } | |
3285 | fi | |
3286 | fi | |
3287 | fi | |
3288 | ||
e948157d RH |
3289 | # Disable libitm on unsupported systems. |
3290 | if test -d ${srcdir}/libitm; then | |
3291 | if test x$enable_libitm = x; then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3293 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3294 | if (srcdir=${srcdir}/libitm; \ |
3295 | . ${srcdir}/configure.tgt; \ | |
3296 | test -n "$UNSUPPORTED") | |
3297 | then | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3299 | $as_echo "no" >&6; } |
e948157d RH |
3300 | noconfigdirs="$noconfigdirs target-libitm" |
3301 | else | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3303 | $as_echo "yes" >&6; } |
e948157d RH |
3304 | fi |
3305 | fi | |
0a35513e AH |
3306 | fi |
3307 | ||
93bf5390 RH |
3308 | # Disable libsanitizer on unsupported systems. |
3309 | if test -d ${srcdir}/libsanitizer; then | |
3310 | if test x$enable_libsanitizer = x; then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3312 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3313 | if (srcdir=${srcdir}/libsanitizer; \ | |
3314 | . ${srcdir}/configure.tgt; \ | |
3315 | test -n "$UNSUPPORTED") | |
3316 | then | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3318 | $as_echo "no" >&6; } | |
3319 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3320 | else | |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3322 | $as_echo "yes" >&6; } | |
3323 | fi | |
3324 | fi | |
3325 | fi | |
3326 | ||
2077db1b CT |
3327 | # Disable libvtv on unsupported systems. |
3328 | if test -d ${srcdir}/libvtv; then | |
3329 | if test x$enable_libvtv = x; then | |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3331 | $as_echo_n "checking for libvtv support... " >&6; } | |
3332 | if (srcdir=${srcdir}/libvtv; \ | |
3333 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3334 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3335 | then |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3337 | $as_echo "no" >&6; } | |
3338 | noconfigdirs="$noconfigdirs target-libvtv" | |
3339 | else | |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3341 | $as_echo "yes" >&6; } | |
3342 | fi | |
3343 | fi | |
3344 | fi | |
3345 | ||
d91491e5 SE |
3346 | # Disable libquadmath for some systems. |
3347 | case "${target}" in | |
e7fae550 DE |
3348 | avr-*-*) |
3349 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3350 | ;; | |
d91491e5 SE |
3351 | # libquadmath is unused on AIX and libquadmath build process use of |
3352 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3353 | powerpc-*-aix* | rs6000-*-aix*) | |
3354 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3355 | ;; | |
3356 | esac | |
3357 | ||
1e9e0e23 JM |
3358 | # Disable libssp for some systems. |
3359 | case "${target}" in | |
3360 | avr-*-*) | |
b318fb4b | 3361 | # No hosted I/O support. |
1e9e0e23 JM |
3362 | noconfigdirs="$noconfigdirs target-libssp" |
3363 | ;; | |
91dfef96 JM |
3364 | bpf-*-*) |
3365 | noconfigdirs="$noconfigdirs target-libssp" | |
3366 | ;; | |
1e9e0e23 JM |
3367 | powerpc-*-aix* | rs6000-*-aix*) |
3368 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3369 | ;; |
8d2af3a2 DD |
3370 | pru-*-*) |
3371 | # No hosted I/O support. | |
3372 | noconfigdirs="$noconfigdirs target-libssp" | |
3373 | ;; | |
85b8555e | 3374 | rl78-*-*) |
7cb62ef1 EB |
3375 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3376 | # doesn't fault for those - instead, it gives a build-time error | |
3377 | # for explicit misaligned loads. | |
85b8555e | 3378 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3379 | ;; |
0969ec7d EB |
3380 | visium-*-*) |
3381 | # No hosted I/O support. | |
3382 | noconfigdirs="$noconfigdirs target-libssp" | |
3383 | ;; | |
1e9e0e23 JM |
3384 | esac |
3385 | ||
1e9e0e23 | 3386 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3387 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3388 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3389 | case "${target}" in | |
3390 | *-*-vxworks*) | |
3391 | # VxWorks uses the Dinkumware C++ library. | |
3392 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3393 | ;; | |
afa3d80e TS |
3394 | amdgcn*-*-*) |
3395 | # Not ported/fails to build when using newlib. | |
3396 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3397 | ;; | |
1873ec0c L |
3398 | arm*-wince-pe*) |
3399 | # the C++ libraries don't build on top of CE's C libraries | |
3400 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3401 | ;; | |
3402 | avr-*-*) | |
3403 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3404 | ;; | |
91dfef96 JM |
3405 | bpf-*-*) |
3406 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3407 | ;; | |
fef939d6 JB |
3408 | ft32-*-*) |
3409 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3410 | ;; | |
1873ec0c L |
3411 | esac |
3412 | fi | |
1e9e0e23 | 3413 | |
91dfef96 JM |
3414 | # Disable C++ on systems where it is known to not work. |
3415 | # For testing, you can override this with --enable-languages=c++. | |
3416 | case ,${enable_languages}, in | |
3417 | *,c++,*) | |
3418 | ;; | |
3419 | *) | |
3420 | case "${target}" in | |
3421 | bpf-*-*) | |
3422 | unsupported_languages="$unsupported_languages c++" | |
3423 | ;; | |
3424 | esac | |
3425 | ;; | |
3426 | esac | |
3427 | ||
3428 | # Disable Objc on systems where it is known to not work. | |
3429 | # For testing, you can override this with --enable-languages=objc. | |
3430 | case ,${enable_languages}, in | |
3431 | *,objc,*) | |
3432 | ;; | |
3433 | *) | |
3434 | case "${target}" in | |
3435 | bpf-*-*) | |
3436 | unsupported_languages="$unsupported_languages objc" | |
3437 | ;; | |
3438 | esac | |
3439 | ;; | |
3440 | esac | |
3441 | ||
260eedb9 IB |
3442 | # Disable D on systems where it is known to not work. |
3443 | # For testing, you can override this with --enable-languages=d. | |
3444 | case ,${enable_languages}, in | |
3445 | *,d,*) | |
3446 | ;; | |
3447 | *) | |
3448 | case "${target}" in | |
91dfef96 | 3449 | bpf-*-*) |
260eedb9 IB |
3450 | unsupported_languages="$unsupported_languages d" |
3451 | ;; | |
3452 | esac | |
3453 | ;; | |
3454 | esac | |
3455 | ||
3456 | # Disable libphobos on unsupported systems. | |
3457 | # For testing, you can override this with --enable-libphobos. | |
3458 | if test -d ${srcdir}/libphobos; then | |
3459 | if test x$enable_libphobos = x; then | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3461 | $as_echo_n "checking for libphobos support... " >&6; } | |
3462 | if (srcdir=${srcdir}/libphobos; \ | |
3463 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3464 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3465 | then |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3467 | $as_echo "no" >&6; } | |
3468 | noconfigdirs="$noconfigdirs target-libphobos" | |
3469 | else | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3471 | $as_echo "yes" >&6; } | |
3472 | fi | |
3473 | fi | |
3474 | fi | |
3475 | ||
1e9e0e23 JM |
3476 | # Disable Fortran for some systems. |
3477 | case "${target}" in | |
3478 | mmix-*-*) | |
3479 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3480 | unsupported_languages="$unsupported_languages fortran" | |
3481 | ;; | |
91dfef96 JM |
3482 | bpf-*-*) |
3483 | unsupported_languages="$unsupported_languages fortran" | |
3484 | ;; | |
1e9e0e23 JM |
3485 | esac |
3486 | ||
012447ea JJ |
3487 | # Disable libffi for some systems. |
3488 | case "${target}" in | |
3489 | powerpc-*-darwin*) | |
3490 | ;; | |
3491 | i[3456789]86-*-darwin*) | |
3492 | ;; | |
3493 | x86_64-*-darwin[912]*) | |
3494 | ;; | |
3495 | *-*-darwin*) | |
3496 | noconfigdirs="$noconfigdirs target-libffi" | |
3497 | ;; | |
3498 | *-*-netware*) | |
3499 | noconfigdirs="$noconfigdirs target-libffi" | |
3500 | ;; | |
3501 | *-*-phoenix*) | |
3502 | noconfigdirs="$noconfigdirs target-libffi" | |
3503 | ;; | |
3504 | *-*-rtems*) | |
3505 | noconfigdirs="$noconfigdirs target-libffi" | |
3506 | ;; | |
3507 | *-*-tpf*) | |
3508 | noconfigdirs="$noconfigdirs target-libffi" | |
3509 | ;; | |
3510 | *-*-uclinux*) | |
3511 | noconfigdirs="$noconfigdirs target-libffi" | |
3512 | ;; | |
3513 | *-*-vxworks*) | |
3514 | noconfigdirs="$noconfigdirs target-libffi" | |
3515 | ;; | |
b20e7532 AT |
3516 | aarch64*-*-freebsd*) |
3517 | noconfigdirs="$noconfigdirs target-libffi" | |
3518 | ;; | |
012447ea JJ |
3519 | alpha*-*-*vms*) |
3520 | noconfigdirs="$noconfigdirs target-libffi" | |
3521 | ;; | |
3522 | arm*-*-freebsd*) | |
3523 | noconfigdirs="$noconfigdirs target-libffi" | |
3524 | ;; | |
3525 | arm-wince-pe) | |
3526 | noconfigdirs="$noconfigdirs target-libffi" | |
3527 | ;; | |
3528 | arm*-*-symbianelf*) | |
3529 | noconfigdirs="$noconfigdirs target-libffi" | |
3530 | ;; | |
91dfef96 JM |
3531 | bpf-*-*) |
3532 | noconfigdirs="$noconfigdirs target-libffi" | |
3533 | ;; | |
012447ea JJ |
3534 | cris-*-* | crisv32-*-*) |
3535 | case "${target}" in | |
3536 | *-*-linux*) | |
3537 | ;; | |
3538 | *) # See PR46792 regarding target-libffi. | |
3539 | noconfigdirs="$noconfigdirs target-libffi";; | |
3540 | esac | |
3541 | ;; | |
3542 | hppa*64*-*-hpux*) | |
3543 | noconfigdirs="$noconfigdirs target-libffi" | |
3544 | ;; | |
3545 | hppa*-hp-hpux11*) | |
3546 | ;; | |
3547 | hppa*-*-hpux*) | |
3548 | noconfigdirs="$noconfigdirs target-libffi" | |
3549 | ;; | |
3550 | ia64*-*-*vms*) | |
3551 | noconfigdirs="$noconfigdirs target-libffi" | |
3552 | ;; | |
3553 | i[3456789]86-w64-mingw*) | |
3554 | noconfigdirs="$noconfigdirs target-libffi" | |
3555 | ;; | |
3556 | i[3456789]86-*-mingw*) | |
3557 | noconfigdirs="$noconfigdirs target-libffi" | |
3558 | ;; | |
3559 | x86_64-*-mingw*) | |
3560 | noconfigdirs="$noconfigdirs target-libffi" | |
3561 | ;; | |
3562 | mmix-*-*) | |
3563 | noconfigdirs="$noconfigdirs target-libffi" | |
3564 | ;; | |
3565 | powerpc-*-aix*) | |
012447ea JJ |
3566 | ;; |
3567 | rs6000-*-aix*) | |
012447ea JJ |
3568 | ;; |
3569 | ft32-*-*) | |
3570 | noconfigdirs="$noconfigdirs target-libffi" | |
3571 | ;; | |
3572 | *-*-lynxos*) | |
3573 | noconfigdirs="$noconfigdirs target-libffi" | |
3574 | ;; | |
3575 | esac | |
3576 | ||
3577 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3578 | # this in sync with contrib/config-list.mk. | |
3579 | case "${target}" in | |
91dfef96 | 3580 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3581 | unsupported_languages="$unsupported_languages go" |
3582 | ;; | |
3583 | esac | |
3584 | ||
f9d09df0 TT |
3585 | # Only allow gdbserver on some systems. |
3586 | if test -d ${srcdir}/gdbserver; then | |
3587 | if test x$enable_gdbserver = x; then | |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3589 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3590 | if (srcdir=${srcdir}/gdbserver; \ | |
3591 | . ${srcdir}/configure.srv; \ | |
3592 | test -n "$UNSUPPORTED") | |
3593 | then | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3595 | $as_echo "no" >&6; } | |
3596 | noconfigdirs="$noconfigdirs gdbserver" | |
3597 | else | |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3599 | $as_echo "yes" >&6; } | |
3600 | fi | |
3601 | fi | |
3602 | fi | |
3603 | ||
cdbc9e92 ILT |
3604 | # Disable libgo for some systems where it is known to not work. |
3605 | # For testing, you can easily override this with --enable-libgo. | |
3606 | if test x$enable_libgo = x; then | |
3607 | case "${target}" in | |
3608 | *-*-darwin*) | |
3609 | # PR 46986 | |
3610 | noconfigdirs="$noconfigdirs target-libgo" | |
3611 | ;; | |
3612 | *-*-cygwin* | *-*-mingw*) | |
3613 | noconfigdirs="$noconfigdirs target-libgo" | |
3614 | ;; | |
91dfef96 JM |
3615 | bpf-*-*) |
3616 | noconfigdirs="$noconfigdirs target-libgo" | |
3617 | ;; | |
cdbc9e92 ILT |
3618 | esac |
3619 | fi | |
3620 | ||
c03353e2 RIL |
3621 | # Default libgloss CPU subdirectory. |
3622 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3623 | |
fbcf0dca JM |
3624 | case "${target}" in |
3625 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3626 | libgloss_dir=wince | |
3627 | ;; | |
4dddfc74 YZ |
3628 | aarch64*-*-* ) |
3629 | libgloss_dir=aarch64 | |
3630 | ;; | |
fbcf0dca JM |
3631 | arm*-*-*) |
3632 | libgloss_dir=arm | |
3633 | ;; | |
3634 | cris-*-* | crisv32-*-*) | |
3635 | libgloss_dir=cris | |
3636 | ;; | |
3637 | hppa*-*-*) | |
3638 | libgloss_dir=pa | |
3639 | ;; | |
3640 | i[3456789]86-*-*) | |
3641 | libgloss_dir=i386 | |
3642 | ;; | |
3643 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3644 | libgloss_dir=m68hc11 | |
3645 | ;; | |
3646 | m68*-*-* | fido-*-*) | |
3647 | libgloss_dir=m68k | |
3648 | ;; | |
3649 | mips*-*-*) | |
3650 | libgloss_dir=mips | |
3651 | ;; | |
3652 | powerpc*-*-*) | |
3653 | libgloss_dir=rs6000 | |
3654 | ;; | |
8d2af3a2 DD |
3655 | pru-*-*) |
3656 | libgloss_dir=pru | |
3657 | ;; | |
fbcf0dca JM |
3658 | sparc*-*-*) |
3659 | libgloss_dir=sparc | |
3660 | ;; | |
3661 | esac | |
3662 | ||
6a789d5e | 3663 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3664 | case "${target}" in |
6a789d5e JM |
3665 | alpha*-dec-osf*) |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | i[3456789]86-*-linux*) | |
3669 | # This section makes it possible to build newlib natively on linux. | |
3670 | # If we are using a cross compiler then don't configure newlib. | |
3671 | if test x${is_cross_compiler} != xno ; then | |
3672 | noconfigdirs="$noconfigdirs target-newlib" | |
3673 | fi | |
3674 | noconfigdirs="$noconfigdirs target-libgloss" | |
3675 | # If we are not using a cross compiler, do configure newlib. | |
3676 | # Note however, that newlib will only be configured in this situation | |
3677 | # if the --with-newlib option has been given, because otherwise | |
3678 | # 'target-newlib' will appear in skipdirs. | |
3679 | ;; | |
3680 | i[3456789]86-*-rdos*) | |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
3686 | sparc-*-sunos4*) | |
3687 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3688 | ;; | |
91dfef96 JM |
3689 | bpf-*-*) |
3690 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3691 | ;; | |
6a789d5e JM |
3692 | *-*-aix*) |
3693 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3694 | ;; | |
3695 | *-*-beos*) | |
3696 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3697 | ;; | |
671aa708 | 3698 | *-*-chorusos) |
0036370f | 3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3700 | ;; |
6a789d5e JM |
3701 | *-*-dragonfly*) |
3702 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3703 | ;; | |
3704 | *-*-freebsd*) | |
3705 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3706 | ;; | |
3707 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3708 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3709 | ;; | |
3710 | *-*-lynxos*) | |
3711 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3712 | ;; | |
3713 | *-*-mingw*) | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | ;; | |
3716 | *-*-netbsd*) | |
3717 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3718 | ;; | |
3719 | *-*-netware*) | |
3720 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3721 | ;; | |
3722 | *-*-tpf*) | |
3723 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3724 | ;; | |
3725 | *-*-uclinux*) | |
3726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3727 | ;; | |
3728 | *-*-vxworks*) | |
3729 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3730 | ;; | |
3731 | esac | |
3732 | ||
3733 | case "${target}" in | |
3734 | *-*-chorusos) | |
3735 | ;; | |
3be96231 TG |
3736 | aarch64-*-darwin*) |
3737 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3738 | noconfigdirs="$noconfigdirs sim target-rda" | |
3739 | ;; | |
7431c1a1 AS |
3740 | amdgcn*-*-*) |
3741 | ;; | |
3be96231 TG |
3742 | arm-*-darwin*) |
3743 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3744 | noconfigdirs="$noconfigdirs sim target-rda" | |
3745 | ;; | |
75eeae1a | 3746 | powerpc-*-darwin*) |
e1514c3f | 3747 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3748 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3749 | ;; |
354ebf88 RW |
3750 | i[3456789]86-*-darwin*) |
3751 | noconfigdirs="$noconfigdirs ld gprof" | |
3752 | noconfigdirs="$noconfigdirs sim target-rda" | |
3753 | ;; | |
3754 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3755 | noconfigdirs="$noconfigdirs ld gas gprof" |
3756 | noconfigdirs="$noconfigdirs sim target-rda" | |
3757 | ;; | |
42c1cd8a AT |
3758 | *-*-darwin*) |
3759 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3760 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3761 | ;; |
8c6d158a | 3762 | *-*-dragonfly*) |
8c6d158a | 3763 | ;; |
c3f84f61 | 3764 | *-*-freebsd*) |
6de9cd9a | 3765 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
c0d0a722 | 3766 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3767 | && test -f /usr/local/include/gmp.h; then |
3768 | with_gmp=/usr/local | |
3769 | fi | |
6de9cd9a | 3770 | ;; |
ef4e7569 US |
3771 | *-*-kaos*) |
3772 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3773 | noconfigdirs="$noconfigdirs target-libgloss" |
3774 | ;; | |
671aa708 | 3775 | *-*-netbsd*) |
671aa708 | 3776 | ;; |
61fec9ff | 3777 | *-*-netware*) |
671aa708 | 3778 | ;; |
fd6487af JS |
3779 | *-*-phoenix*) |
3780 | noconfigdirs="$noconfigdirs target-libgloss" | |
3781 | ;; | |
671aa708 | 3782 | *-*-rtems*) |
2909494b | 3783 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3784 | ;; |
a8ba31f2 EC |
3785 | # The tpf target doesn't support gdb yet. |
3786 | *-*-tpf*) | |
6a789d5e | 3787 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3788 | ;; |
5785c0ed | 3789 | *-*-uclinux*) |
6a789d5e | 3790 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3791 | ;; |
671aa708 | 3792 | *-*-vxworks*) |
671aa708 NN |
3793 | ;; |
3794 | alpha*-dec-osf*) | |
3795 | # ld works, but does not support shared libraries. | |
671aa708 | 3796 | # gas doesn't generate exception information. |
6a789d5e | 3797 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3798 | ;; |
3799 | alpha*-*-*vms*) | |
2909494b | 3800 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3801 | ;; |
671aa708 NN |
3802 | alpha*-*-*) |
3803 | # newlib is not 64 bit ready | |
2909494b | 3804 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3805 | ;; |
91dfef96 JM |
3806 | bpf-*-*) |
3807 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3808 | ;; | |
671aa708 | 3809 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3810 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3811 | ;; |
2fd88f4f AK |
3812 | arc*-*-*) |
3813 | noconfigdirs="$noconfigdirs sim" | |
3814 | ;; | |
671aa708 | 3815 | arm-*-pe*) |
2909494b | 3816 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3817 | ;; |
671aa708 | 3818 | arm-*-riscix*) |
0036370f | 3819 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3820 | ;; |
b588ae30 GJL |
3821 | avr-*-*) |
3822 | if test x${with_avrlibc} != xno; then | |
3823 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3824 | fi | |
3825 | ;; | |
671aa708 | 3826 | c4x-*-* | tic4x-*-*) |
0036370f | 3827 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3828 | ;; |
0036370f JM |
3829 | tic54x-*-*) |
3830 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3831 | ;; |
671aa708 | 3832 | d10v-*-*) |
0036370f | 3833 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3834 | ;; |
3835 | d30v-*-*) | |
0036370f | 3836 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3837 | ;; |
3838 | fr30-*-elf*) | |
2909494b | 3839 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3840 | ;; |
a05c2c75 L |
3841 | ft32-*-*) |
3842 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3843 | ;; | |
55f2d967 | 3844 | moxie-*-*) |
a05c2c75 | 3845 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3846 | ;; |
671aa708 | 3847 | h8300*-*-*) |
2909494b | 3848 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3849 | ;; |
3850 | h8500-*-*) | |
0036370f | 3851 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3852 | ;; |
ee6a22df | 3853 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3854 | ;; |
a05c2c75 L |
3855 | hppa*64*-*-hpux*) |
3856 | noconfigdirs="$noconfigdirs gdb" | |
3857 | ;; | |
3858 | hppa*-*-hpux11*) | |
3859 | noconfigdirs="$noconfigdirs gdb ld" | |
3860 | ;; | |
4569f85e | 3861 | hppa*64*-*-linux*) |
671aa708 | 3862 | ;; |
56f8587a | 3863 | hppa*-*-linux*) |
3e732ba0 | 3864 | ;; |
671aa708 | 3865 | hppa*-*-*elf* | \ |
671aa708 NN |
3866 | hppa*-*-lites* | \ |
3867 | hppa*-*-openbsd* | \ | |
3868 | hppa*64*-*-*) | |
671aa708 | 3869 | ;; |
c03353e2 | 3870 | hppa*-*-pro*) |
c03353e2 | 3871 | ;; |
671aa708 | 3872 | hppa*-*-*) |
2909494b | 3873 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3874 | ;; |
fb87ad5d | 3875 | i960-*-*) |
0036370f | 3876 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3877 | ;; |
671aa708 NN |
3878 | ia64*-*-elf*) |
3879 | # No gdb support yet. | |
1bcce263 | 3880 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3881 | ;; |
3882 | ia64*-**-hpux*) | |
5a2931d1 | 3883 | # No ld support yet. |
a05c2c75 | 3884 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3885 | ;; |
52535a64 | 3886 | ia64*-*-*vms*) |
091fe9ca TG |
3887 | # No ld support yet. |
3888 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3889 | ;; |
ef4c4300 | 3890 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3891 | ;; |
3892 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3893 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3894 | ;; |
671aa708 NN |
3895 | *-*-cygwin*) |
3896 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3897 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3898 | # always build newlib if winsup directory is present. |
b91f0a41 | 3899 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3900 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3901 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3902 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3903 | fi |
1c710c3c | 3904 | ;; |
f2a0e225 | 3905 | i[3456789]86-*-pe) |
ebb9f8b0 | 3906 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3907 | ;; |
f2a0e225 | 3908 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3909 | # The linker does not yet know about weak symbols in COFF, |
3910 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3911 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3912 | ;; |
f2a0e225 | 3913 | i[3456789]86-*-sco*) |
0036370f | 3914 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3915 | ;; |
fbdd5d87 | 3916 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3917 | noconfigdirs="$noconfigdirs target-libgloss" |
3918 | ;; | |
f2a0e225 | 3919 | i[3456789]86-*-sysv4*) |
0036370f | 3920 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3921 | ;; |
f2a0e225 | 3922 | i[3456789]86-*-beos*) |
6a789d5e | 3923 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3924 | ;; |
d1f8db0c | 3925 | i[3456789]86-*-rdos*) |
6a789d5e | 3926 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3927 | ;; |
671aa708 | 3928 | mmix-*-*) |
2909494b | 3929 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3930 | ;; |
ab34901f | 3931 | mt-*-*) |
79dd769c AH |
3932 | noconfigdirs="$noconfigdirs sim" |
3933 | ;; | |
58b40a67 FT |
3934 | nfp-*-*) |
3935 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3936 | noconfigdirs="$noconfigdirs $target_libraries" | |
3937 | ;; | |
e6cbe965 SC |
3938 | pdp11-*-*) |
3939 | noconfigdirs="$noconfigdirs gdb gprof" | |
3940 | ;; | |
671aa708 NN |
3941 | powerpc-*-aix*) |
3942 | # copied from rs6000-*-* entry | |
6a789d5e | 3943 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3944 | ;; |
4569f85e | 3945 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3946 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3947 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3948 | # always build newlib. |
3949 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3950 | ;; | |
3951 | # This is temporary until we can link against shared libraries | |
3952 | powerpcle-*-solaris*) | |
0036370f | 3953 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3954 | ;; |
3955 | powerpc-*-beos*) | |
6a789d5e | 3956 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3957 | ;; |
671aa708 | 3958 | rs6000-*-lynxos*) |
6a789d5e | 3959 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3960 | ;; |
3961 | rs6000-*-aix*) | |
6a789d5e | 3962 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3963 | ;; |
3964 | rs6000-*-*) | |
2909494b | 3965 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3966 | ;; |
3967 | m68k-apollo-*) | |
0036370f | 3968 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3969 | ;; |
ca9fe997 | 3970 | microblaze*) |
2909494b | 3971 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3972 | ;; |
d896cc4d | 3973 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3974 | if test x$with_newlib = xyes; then |
3975 | noconfigdirs="$noconfigdirs gprof" | |
3976 | fi | |
d9dced13 | 3977 | ;; |
671aa708 | 3978 | mips*-*-irix5*) |
0036370f | 3979 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3980 | ;; |
3981 | mips*-*-irix6*) | |
2909494b | 3982 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3983 | ;; |
671aa708 | 3984 | mips*-*-bsd*) |
bc98bcc4 | 3985 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3986 | ;; |
671aa708 | 3987 | mips*-*-linux*) |
671aa708 | 3988 | ;; |
bc98bcc4 JBG |
3989 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3990 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3991 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3992 | ;; | |
671aa708 | 3993 | mips*-*-*) |
2909494b | 3994 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3995 | ;; |
738f2522 | 3996 | nvptx*-*-*) |
738f2522 BS |
3997 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3998 | ;; | |
bc6d9014 | 3999 | sh-*-*) |
ea2002ba CB |
4000 | case "${target}" in |
4001 | sh*-*-elf) | |
2909494b | 4002 | ;; |
ea2002ba | 4003 | *) |
2909494b | 4004 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4005 | esac |
671aa708 | 4006 | ;; |
671aa708 | 4007 | sparc-*-sunos4*) |
6a789d5e | 4008 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4009 | use_gnu_ld=no |
4010 | fi | |
4011 | ;; | |
b42f0d7e | 4012 | tic6x-*-*) |
0d557ff8 | 4013 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4014 | ;; |
341c653c | 4015 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4016 | noconfigdirs="$noconfigdirs sim" |
4017 | ;; | |
671aa708 | 4018 | v810-*-*) |
0036370f | 4019 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4020 | ;; |
4021 | vax-*-*) | |
2909494b | 4022 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4023 | ;; |
1fc1d82e MR |
4024 | wasm32-*-*) |
4025 | noconfigdirs="$noconfigdirs ld" | |
4026 | ;; | |
671aa708 | 4027 | esac |
79c06341 | 4028 | |
671aa708 NN |
4029 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4030 | # depends upon some newlib header files. | |
4031 | case "${noconfigdirs}" in | |
4032 | *target-libgloss*) ;; | |
4033 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4034 | esac | |
4035 | ||
671aa708 | 4036 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4037 | host_makefile_frag=/dev/null |
4038 | if test -d ${srcdir}/config ; then | |
4039 | case "${host}" in | |
f2a0e225 | 4040 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4041 | host_makefile_frag="config/mh-djgpp" |
4042 | ;; | |
4043 | *-cygwin*) | |
2a79c47f | 4044 | |
5213506e RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4046 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4047 | echo a >cygwin-cat-check |
e25a8c82 | 4048 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4049 | rm cygwin-cat-check |
5213506e RW |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4051 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4052 | else |
4053 | rm cygwin-cat-check | |
5213506e RW |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4055 | $as_echo "no" >&6; } | |
22e05272 | 4056 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4057 | Please either mount the build directory in binary mode or run the following |
4058 | commands before running any configure script: | |
4059 | set -o igncr | |
4060 | export SHELLOPTS | |
5213506e | 4061 | " "$LINENO" 5 |
2a79c47f NC |
4062 | fi |
4063 | ||
671aa708 NN |
4064 | host_makefile_frag="config/mh-cygwin" |
4065 | ;; | |
c53a18d3 | 4066 | *-mingw*) |
1f5a6b84 | 4067 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4068 | ;; |
cabb9d59 | 4069 | alpha*-linux*) |
13be44ed UB |
4070 | host_makefile_frag="config/mh-alpha-linux" |
4071 | ;; | |
efd41714 | 4072 | hppa*-hp-hpux10*) |
efd41714 | 4073 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4074 | ;; |
111eeb6e | 4075 | hppa*-hp-hpux*) |
efd41714 PB |
4076 | host_makefile_frag="config/mh-pa" |
4077 | ;; | |
4078 | hppa*-*) | |
4079 | host_makefile_frag="config/mh-pa" | |
4080 | ;; | |
54258e22 | 4081 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4082 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4083 | ;; |
d19bca38 PB |
4084 | powerpc-*-aix*) |
4085 | host_makefile_frag="config/mh-ppc-aix" | |
4086 | ;; | |
4087 | rs6000-*-aix*) | |
4088 | host_makefile_frag="config/mh-ppc-aix" | |
4089 | ;; | |
671aa708 NN |
4090 | esac |
4091 | fi | |
4092 | ||
55ffb5ed | 4093 | if test "${build}" != "${host}" ; then |
0999159b PB |
4094 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4095 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4096 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4097 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4098 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4099 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4100 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4101 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4102 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4103 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4104 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4105 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4106 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4107 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4108 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4109 | else | |
4110 | AR_FOR_BUILD="\$(AR)" | |
4111 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4112 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4113 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4114 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4115 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4116 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4117 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4118 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4119 | LD_FOR_BUILD="\$(LD)" | |
4120 | NM_FOR_BUILD="\$(NM)" | |
4121 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4122 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4123 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4124 | fi |
4125 | ||
4126 | ac_ext=c | |
1c710c3c DJ |
4127 | ac_cpp='$CPP $CPPFLAGS' |
4128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4131 | if test -n "$ac_tool_prefix"; then | |
4132 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4133 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4135 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4136 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4137 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4138 | else |
4139 | if test -n "$CC"; then | |
4140 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4141 | else | |
4142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4143 | for as_dir in $PATH | |
4144 | do | |
4145 | IFS=$as_save_IFS | |
4146 | test -z "$as_dir" && as_dir=. | |
5213506e | 4147 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4148 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4149 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4151 | break 2 |
4152 | fi | |
4153 | done | |
5213506e RW |
4154 | done |
4155 | IFS=$as_save_IFS | |
1c710c3c DJ |
4156 | |
4157 | fi | |
4158 | fi | |
4159 | CC=$ac_cv_prog_CC | |
4160 | if test -n "$CC"; then | |
5213506e RW |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4162 | $as_echo "$CC" >&6; } | |
1c710c3c | 4163 | else |
5213506e RW |
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4165 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4166 | fi |
4167 | ||
5213506e | 4168 | |
1c710c3c DJ |
4169 | fi |
4170 | if test -z "$ac_cv_prog_CC"; then | |
4171 | ac_ct_CC=$CC | |
fb0103e5 RG |
4172 | # Extract the first word of "gcc", so it can be a program name with args. |
4173 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4175 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4176 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4177 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4178 | else |
4179 | if test -n "$ac_ct_CC"; then | |
4180 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4181 | else | |
4182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4183 | for as_dir in $PATH | |
4184 | do | |
4185 | IFS=$as_save_IFS | |
4186 | test -z "$as_dir" && as_dir=. | |
5213506e | 4187 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4189 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4191 | break 2 |
4192 | fi | |
4193 | done | |
5213506e RW |
4194 | done |
4195 | IFS=$as_save_IFS | |
1c710c3c DJ |
4196 | |
4197 | fi | |
4198 | fi | |
4199 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4200 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4202 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4203 | else |
5213506e RW |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4205 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4206 | fi |
4207 | ||
5213506e RW |
4208 | if test "x$ac_ct_CC" = x; then |
4209 | CC="" | |
4210 | else | |
4211 | case $cross_compiling:$ac_tool_warned in | |
4212 | yes:) | |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4214 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4215 | ac_tool_warned=yes ;; | |
4216 | esac | |
4217 | CC=$ac_ct_CC | |
4218 | fi | |
1c710c3c DJ |
4219 | else |
4220 | CC="$ac_cv_prog_CC" | |
4221 | fi | |
4222 | ||
4223 | if test -z "$CC"; then | |
5213506e RW |
4224 | if test -n "$ac_tool_prefix"; then |
4225 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4226 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4228 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4229 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4230 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4231 | else |
4232 | if test -n "$CC"; then | |
4233 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4234 | else | |
1c710c3c DJ |
4235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4236 | for as_dir in $PATH | |
4237 | do | |
4238 | IFS=$as_save_IFS | |
4239 | test -z "$as_dir" && as_dir=. | |
5213506e | 4240 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4242 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4244 | break 2 |
4245 | fi | |
4246 | done | |
5213506e RW |
4247 | done |
4248 | IFS=$as_save_IFS | |
1c710c3c | 4249 | |
0b0dc272 | 4250 | fi |
0b0dc272 | 4251 | fi |
1c710c3c | 4252 | CC=$ac_cv_prog_CC |
af71363e | 4253 | if test -n "$CC"; then |
5213506e RW |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4255 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4256 | else |
5213506e RW |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4258 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4259 | fi |
4260 | ||
2aeb72e9 | 4261 | |
5213506e | 4262 | fi |
1c710c3c | 4263 | fi |
55ffb5ed NN |
4264 | if test -z "$CC"; then |
4265 | # Extract the first word of "cc", so it can be a program name with args. | |
4266 | set dummy cc; ac_word=$2 | |
5213506e RW |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4268 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4269 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4270 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4271 | else |
4272 | if test -n "$CC"; then | |
4273 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4274 | else | |
0b0dc272 | 4275 | ac_prog_rejected=no |
1c710c3c DJ |
4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4277 | for as_dir in $PATH | |
4278 | do | |
4279 | IFS=$as_save_IFS | |
4280 | test -z "$as_dir" && as_dir=. | |
5213506e | 4281 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4283 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4284 | ac_prog_rejected=yes | |
4285 | continue | |
4286 | fi | |
4287 | ac_cv_prog_CC="cc" | |
5213506e | 4288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4289 | break 2 |
4290 | fi | |
4291 | done | |
5213506e RW |
4292 | done |
4293 | IFS=$as_save_IFS | |
1c710c3c | 4294 | |
55ffb5ed NN |
4295 | if test $ac_prog_rejected = yes; then |
4296 | # We found a bogon in the path, so make sure we never use it. | |
4297 | set dummy $ac_cv_prog_CC | |
4298 | shift | |
1c710c3c | 4299 | if test $# != 0; then |
55ffb5ed NN |
4300 | # We chose a different compiler from the bogus one. |
4301 | # However, it has the same basename, so the bogon will be chosen | |
4302 | # first if we set CC to just the basename; use the full file name. | |
4303 | shift | |
1c710c3c | 4304 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4305 | fi |
4306 | fi | |
4307 | fi | |
4308 | fi | |
1c710c3c | 4309 | CC=$ac_cv_prog_CC |
55ffb5ed | 4310 | if test -n "$CC"; then |
5213506e RW |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4312 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4313 | else |
5213506e RW |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4315 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4316 | fi |
4317 | ||
5213506e | 4318 | |
1c710c3c DJ |
4319 | fi |
4320 | if test -z "$CC"; then | |
4321 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4322 | for ac_prog in cl.exe |
1c710c3c DJ |
4323 | do |
4324 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4325 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4327 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4328 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4329 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4330 | else |
4331 | if test -n "$CC"; then | |
4332 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4333 | else | |
1c710c3c DJ |
4334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4335 | for as_dir in $PATH | |
4336 | do | |
4337 | IFS=$as_save_IFS | |
4338 | test -z "$as_dir" && as_dir=. | |
5213506e | 4339 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4341 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4343 | break 2 |
4344 | fi | |
4345 | done | |
5213506e RW |
4346 | done |
4347 | IFS=$as_save_IFS | |
1c710c3c | 4348 | |
55ffb5ed NN |
4349 | fi |
4350 | fi | |
1c710c3c | 4351 | CC=$ac_cv_prog_CC |
55ffb5ed | 4352 | if test -n "$CC"; then |
5213506e RW |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4354 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4355 | else |
5213506e RW |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4357 | $as_echo "no" >&6; } | |
fb0103e5 | 4358 | fi |
af71363e | 4359 | |
5213506e | 4360 | |
1c710c3c DJ |
4361 | test -n "$CC" && break |
4362 | done | |
af71363e | 4363 | fi |
1c710c3c DJ |
4364 | if test -z "$CC"; then |
4365 | ac_ct_CC=$CC | |
5213506e | 4366 | for ac_prog in cl.exe |
1c710c3c DJ |
4367 | do |
4368 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4369 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4371 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4372 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4373 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4374 | else |
1c710c3c DJ |
4375 | if test -n "$ac_ct_CC"; then |
4376 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4377 | else |
1c710c3c DJ |
4378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4379 | for as_dir in $PATH | |
4380 | do | |
4381 | IFS=$as_save_IFS | |
4382 | test -z "$as_dir" && as_dir=. | |
5213506e | 4383 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4385 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4387 | break 2 |
4388 | fi | |
4389 | done | |
5213506e RW |
4390 | done |
4391 | IFS=$as_save_IFS | |
1c710c3c | 4392 | |
af71363e AS |
4393 | fi |
4394 | fi | |
1c710c3c DJ |
4395 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4396 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4398 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4399 | else |
5213506e RW |
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4401 | $as_echo "no" >&6; } | |
af71363e | 4402 | fi |
0b0dc272 | 4403 | |
5213506e | 4404 | |
1c710c3c DJ |
4405 | test -n "$ac_ct_CC" && break |
4406 | done | |
4407 | ||
5213506e RW |
4408 | if test "x$ac_ct_CC" = x; then |
4409 | CC="" | |
4410 | else | |
4411 | case $cross_compiling:$ac_tool_warned in | |
4412 | yes:) | |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4414 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4415 | ac_tool_warned=yes ;; | |
4416 | esac | |
4417 | CC=$ac_ct_CC | |
4418 | fi | |
1c710c3c DJ |
4419 | fi |
4420 | ||
4421 | fi | |
4422 | ||
4423 | ||
5213506e RW |
4424 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4426 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4427 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4428 | |
4429 | # Provide some information about the compiler. | |
5213506e RW |
4430 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4431 | set X $ac_compile | |
4432 | ac_compiler=$2 | |
4433 | for ac_option in --version -v -V -qversion; do | |
4434 | { { ac_try="$ac_compiler $ac_option >&5" | |
4435 | case "(($ac_try" in | |
4436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4437 | *) ac_try_echo=$ac_try;; | |
4438 | esac | |
4439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4440 | $as_echo "$ac_try_echo"; } >&5 | |
4441 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4442 | ac_status=$? |
5213506e RW |
4443 | if test -s conftest.err; then |
4444 | sed '10a\ | |
4445 | ... rest of stderr output deleted ... | |
4446 | 10q' conftest.err >conftest.er1 | |
4447 | cat conftest.er1 >&5 | |
5213506e | 4448 | fi |
22e05272 | 4449 | rm -f conftest.er1 conftest.err |
5213506e RW |
4450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4451 | test $ac_status = 0; } | |
4452 | done | |
1c710c3c | 4453 | |
5213506e | 4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4455 | /* end confdefs.h. */ |
4456 | ||
4457 | int | |
4458 | main () | |
4459 | { | |
4460 | ||
4461 | ; | |
4462 | return 0; | |
4463 | } | |
4464 | _ACEOF | |
4465 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4466 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4467 | # Try to create an executable without -o first, disregard a.out. |
4468 | # It will help us diagnose broken compilers, and finding out an intuition | |
4469 | # of exeext. | |
22e05272 JM |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4471 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4472 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4473 | ||
4474 | # The possible output files: | |
4475 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4476 | ||
4477 | ac_rmfiles= | |
4478 | for ac_file in $ac_files | |
4479 | do | |
4480 | case $ac_file in | |
4481 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4482 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4483 | esac | |
4484 | done | |
4485 | rm -f $ac_rmfiles | |
4486 | ||
4487 | if { { ac_try="$ac_link_default" | |
4488 | case "(($ac_try" in | |
4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4490 | *) ac_try_echo=$ac_try;; | |
4491 | esac | |
4492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4493 | $as_echo "$ac_try_echo"; } >&5 | |
4494 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4495 | ac_status=$? |
5213506e RW |
4496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4497 | test $ac_status = 0; }; then : | |
4498 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4499 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4500 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4501 | # so that the user can short-circuit this test for compilers unknown to | |
4502 | # Autoconf. | |
4503 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4504 | do |
4505 | test -f "$ac_file" || continue | |
4506 | case $ac_file in | |
5213506e | 4507 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4508 | ;; |
4509 | [ab].out ) | |
4510 | # We found the default executable, but exeext='' is most | |
4511 | # certainly right. | |
4512 | break;; | |
4513 | *.* ) | |
5213506e RW |
4514 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4515 | then :; else | |
4516 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4517 | fi | |
4518 | # We set ac_cv_exeext here because the later test for it is not | |
4519 | # safe: cross compilers may not add the suffix if given an `-o' | |
4520 | # argument, so we may need to know it at that point already. | |
4521 | # Even if this section looks crufty: it has the advantage of | |
4522 | # actually working. | |
1c710c3c DJ |
4523 | break;; |
4524 | * ) | |
4525 | break;; | |
4526 | esac | |
4527 | done | |
5213506e RW |
4528 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4529 | ||
1c710c3c | 4530 | else |
5213506e RW |
4531 | ac_file='' |
4532 | fi | |
5213506e | 4533 | if test -z "$ac_file"; then : |
22e05272 JM |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4535 | $as_echo "no" >&6; } | |
4536 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4537 | sed 's/^/| /' conftest.$ac_ext >&5 |
4538 | ||
5213506e RW |
4539 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4541 | as_fn_error 77 "C compiler cannot create executables |
4542 | See \`config.log' for more details" "$LINENO" 5; } | |
4543 | else | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4545 | $as_echo "yes" >&6; } | |
1c710c3c | 4546 | fi |
22e05272 JM |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4548 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4550 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4551 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4552 | |
22e05272 | 4553 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4554 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4556 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4557 | if { { ac_try="$ac_link" | |
4558 | case "(($ac_try" in | |
4559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4560 | *) ac_try_echo=$ac_try;; | |
4561 | esac | |
4562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4563 | $as_echo "$ac_try_echo"; } >&5 | |
4564 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4565 | ac_status=$? |
5213506e RW |
4566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4567 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4568 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4569 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4570 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4571 | # `rm'. | |
4572 | for ac_file in conftest.exe conftest conftest.*; do | |
4573 | test -f "$ac_file" || continue | |
4574 | case $ac_file in | |
5213506e | 4575 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4576 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4577 | break;; |
4578 | * ) break;; | |
4579 | esac | |
4580 | done | |
af71363e | 4581 | else |
5213506e RW |
4582 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4584 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4585 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4586 | fi |
22e05272 | 4587 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4589 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4590 | |
4591 | rm -f conftest.$ac_ext | |
4592 | EXEEXT=$ac_cv_exeext | |
4593 | ac_exeext=$EXEEXT | |
22e05272 JM |
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4595 | /* end confdefs.h. */ | |
4596 | #include <stdio.h> | |
4597 | int | |
4598 | main () | |
4599 | { | |
4600 | FILE *f = fopen ("conftest.out", "w"); | |
4601 | return ferror (f) || fclose (f) != 0; | |
4602 | ||
4603 | ; | |
4604 | return 0; | |
4605 | } | |
4606 | _ACEOF | |
4607 | ac_clean_files="$ac_clean_files conftest.out" | |
4608 | # Check that the compiler produces executables we can run. If not, either | |
4609 | # the compiler is broken, or we cross compile. | |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4611 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4612 | if test "$cross_compiling" != yes; then | |
4613 | { { ac_try="$ac_link" | |
4614 | case "(($ac_try" in | |
4615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4616 | *) ac_try_echo=$ac_try;; | |
4617 | esac | |
4618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4619 | $as_echo "$ac_try_echo"; } >&5 | |
4620 | (eval "$ac_link") 2>&5 | |
4621 | ac_status=$? | |
4622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4623 | test $ac_status = 0; } | |
4624 | if { ac_try='./conftest$ac_cv_exeext' | |
4625 | { { case "(($ac_try" in | |
4626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4627 | *) ac_try_echo=$ac_try;; | |
4628 | esac | |
4629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4630 | $as_echo "$ac_try_echo"; } >&5 | |
4631 | (eval "$ac_try") 2>&5 | |
4632 | ac_status=$? | |
4633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4634 | test $ac_status = 0; }; }; then | |
4635 | cross_compiling=no | |
4636 | else | |
4637 | if test "$cross_compiling" = maybe; then | |
4638 | cross_compiling=yes | |
4639 | else | |
4640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4642 | as_fn_error $? "cannot run C compiled programs. | |
4643 | If you meant to cross compile, use \`--host'. | |
4644 | See \`config.log' for more details" "$LINENO" 5; } | |
4645 | fi | |
4646 | fi | |
4647 | fi | |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4649 | $as_echo "$cross_compiling" >&6; } | |
4650 | ||
4651 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4652 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4654 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4655 | if ${ac_cv_objext+:} false; then : |
5213506e | 4656 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4657 | else |
5213506e | 4658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4659 | /* end confdefs.h. */ |
4660 | ||
4661 | int | |
4662 | main () | |
4663 | { | |
4664 | ||
4665 | ; | |
4666 | return 0; | |
4667 | } | |
4668 | _ACEOF | |
4669 | rm -f conftest.o conftest.obj | |
5213506e RW |
4670 | if { { ac_try="$ac_compile" |
4671 | case "(($ac_try" in | |
4672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4673 | *) ac_try_echo=$ac_try;; | |
4674 | esac | |
4675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4676 | $as_echo "$ac_try_echo"; } >&5 | |
4677 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4678 | ac_status=$? |
5213506e RW |
4679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4680 | test $ac_status = 0; }; then : | |
4681 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4682 | test -f "$ac_file" || continue; | |
1c710c3c | 4683 | case $ac_file in |
5213506e | 4684 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4685 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4686 | break;; | |
4687 | esac | |
4688 | done | |
4689 | else | |
5213506e | 4690 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4691 | sed 's/^/| /' conftest.$ac_ext >&5 |
4692 | ||
5213506e RW |
4693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4695 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4696 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4697 | fi |
1c710c3c DJ |
4698 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4699 | fi | |
5213506e RW |
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4701 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4702 | OBJEXT=$ac_cv_objext |
4703 | ac_objext=$OBJEXT | |
5213506e RW |
4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4705 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4706 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4707 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4708 | else |
5213506e | 4709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4710 | /* end confdefs.h. */ |
4711 | ||
4712 | int | |
4713 | main () | |
4714 | { | |
4715 | #ifndef __GNUC__ | |
4716 | choke me | |
4717 | #endif | |
4718 | ||
4719 | ; | |
4720 | return 0; | |
4721 | } | |
4722 | _ACEOF | |
5213506e | 4723 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4724 | ac_compiler_gnu=yes |
4725 | else | |
5213506e | 4726 | ac_compiler_gnu=no |
1c710c3c | 4727 | fi |
5213506e | 4728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4729 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4730 | ||
4731 | fi | |
5213506e RW |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4733 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4734 | if test $ac_compiler_gnu = yes; then | |
4735 | GCC=yes | |
4736 | else | |
4737 | GCC= | |
4738 | fi | |
1c710c3c DJ |
4739 | ac_test_CFLAGS=${CFLAGS+set} |
4740 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4742 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4743 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4744 | $as_echo_n "(cached) " >&6 |
4745 | else | |
4746 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4747 | ac_c_werror_flag=yes | |
4748 | ac_cv_prog_cc_g=no | |
4749 | CFLAGS="-g" | |
4750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4751 | /* end confdefs.h. */ |
4752 | ||
4753 | int | |
4754 | main () | |
4755 | { | |
4756 | ||
4757 | ; | |
4758 | return 0; | |
4759 | } | |
4760 | _ACEOF | |
5213506e | 4761 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4762 | ac_cv_prog_cc_g=yes |
4763 | else | |
5213506e RW |
4764 | CFLAGS="" |
4765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4766 | /* end confdefs.h. */ | |
4767 | ||
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | ||
4772 | ; | |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
4776 | if ac_fn_c_try_compile "$LINENO"; then : | |
4777 | ||
4778 | else | |
4779 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4780 | CFLAGS="-g" | |
4781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4782 | /* end confdefs.h. */ | |
af71363e | 4783 | |
5213506e RW |
4784 | int |
4785 | main () | |
4786 | { | |
4787 | ||
4788 | ; | |
4789 | return 0; | |
4790 | } | |
4791 | _ACEOF | |
4792 | if ac_fn_c_try_compile "$LINENO"; then : | |
4793 | ac_cv_prog_cc_g=yes | |
4794 | fi | |
4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4796 | fi |
5213506e | 4797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4798 | fi |
5213506e RW |
4799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4800 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4801 | fi | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4803 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4804 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4805 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4806 | elif test $ac_cv_prog_cc_g = yes; then |
4807 | if test "$GCC" = yes; then | |
4808 | CFLAGS="-g -O2" | |
4809 | else | |
4810 | CFLAGS="-g" | |
4811 | fi | |
4812 | else | |
4813 | if test "$GCC" = yes; then | |
4814 | CFLAGS="-O2" | |
4815 | else | |
4816 | CFLAGS= | |
4817 | fi | |
4818 | fi | |
5213506e RW |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4820 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4821 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4822 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4823 | else |
5213506e | 4824 | ac_cv_prog_cc_c89=no |
1c710c3c | 4825 | ac_save_CC=$CC |
5213506e | 4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4827 | /* end confdefs.h. */ |
4828 | #include <stdarg.h> | |
4829 | #include <stdio.h> | |
22e05272 | 4830 | struct stat; |
1c710c3c DJ |
4831 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4832 | struct buf { int x; }; | |
4833 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4834 | static char *e (p, i) | |
4835 | char **p; | |
4836 | int i; | |
4837 | { | |
4838 | return p[i]; | |
4839 | } | |
4840 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4841 | { | |
4842 | char *s; | |
4843 | va_list v; | |
4844 | va_start (v,p); | |
4845 | s = g (p, va_arg (v,int)); | |
4846 | va_end (v); | |
4847 | return s; | |
4848 | } | |
4849 | ||
4850 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4851 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4852 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4853 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4854 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4855 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4856 | that's true only with -std. */ |
1c710c3c DJ |
4857 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4858 | ||
5213506e RW |
4859 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4860 | inside strings and character constants. */ | |
4861 | #define FOO(x) 'x' | |
4862 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4863 | ||
1c710c3c DJ |
4864 | int test (int i, double x); |
4865 | struct s1 {int (*f) (int a);}; | |
4866 | struct s2 {int (*f) (double a);}; | |
4867 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4868 | int argc; | |
4869 | char **argv; | |
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
5213506e RW |
4878 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4879 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4880 | do |
4881 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4882 | if ac_fn_c_try_compile "$LINENO"; then : |
4883 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4884 | fi |
5213506e RW |
4885 | rm -f core conftest.err conftest.$ac_objext |
4886 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4887 | done |
5213506e | 4888 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4889 | CC=$ac_save_CC |
4890 | ||
4891 | fi | |
5213506e RW |
4892 | # AC_CACHE_VAL |
4893 | case "x$ac_cv_prog_cc_c89" in | |
4894 | x) | |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4896 | $as_echo "none needed" >&6; } ;; | |
4897 | xno) | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4899 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4900 | *) |
5213506e RW |
4901 | CC="$CC $ac_cv_prog_cc_c89" |
4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4903 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4904 | esac |
5213506e | 4905 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4906 | |
2aeb72e9 DD |
4907 | fi |
4908 | ||
2aeb72e9 DD |
4909 | ac_ext=c |
4910 | ac_cpp='$CPP $CPPFLAGS' | |
4911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4914 | ||
91743432 NC |
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4916 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4917 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4918 | $as_echo_n "(cached) " >&6 | |
4919 | else | |
4920 | ac_cv_prog_cc_c99=no | |
4921 | ac_save_CC=$CC | |
4922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4923 | /* end confdefs.h. */ | |
4924 | #include <stdarg.h> | |
4925 | #include <stdbool.h> | |
4926 | #include <stdlib.h> | |
4927 | #include <wchar.h> | |
4928 | #include <stdio.h> | |
4929 | ||
4930 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4931 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4932 | #define showlist(...) puts (#__VA_ARGS__) | |
4933 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4934 | static void | |
4935 | test_varargs_macros (void) | |
4936 | { | |
4937 | int x = 1234; | |
4938 | int y = 5678; | |
4939 | debug ("Flag"); | |
4940 | debug ("X = %d\n", x); | |
4941 | showlist (The first, second, and third items.); | |
4942 | report (x>y, "x is %d but y is %d", x, y); | |
4943 | } | |
4944 | ||
4945 | // Check long long types. | |
4946 | #define BIG64 18446744073709551615ull | |
4947 | #define BIG32 4294967295ul | |
4948 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4949 | #if !BIG_OK | |
4950 | your preprocessor is broken; | |
4951 | #endif | |
4952 | #if BIG_OK | |
4953 | #else | |
4954 | your preprocessor is broken; | |
4955 | #endif | |
4956 | static long long int bignum = -9223372036854775807LL; | |
4957 | static unsigned long long int ubignum = BIG64; | |
4958 | ||
4959 | struct incomplete_array | |
4960 | { | |
4961 | int datasize; | |
4962 | double data[]; | |
4963 | }; | |
4964 | ||
4965 | struct named_init { | |
4966 | int number; | |
4967 | const wchar_t *name; | |
4968 | double average; | |
4969 | }; | |
4970 | ||
4971 | typedef const char *ccp; | |
4972 | ||
4973 | static inline int | |
4974 | test_restrict (ccp restrict text) | |
4975 | { | |
4976 | // See if C++-style comments work. | |
4977 | // Iterate through items via the restricted pointer. | |
4978 | // Also check for declarations in for loops. | |
4979 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4980 | continue; | |
4981 | return 0; | |
4982 | } | |
4983 | ||
4984 | // Check varargs and va_copy. | |
4985 | static void | |
4986 | test_varargs (const char *format, ...) | |
4987 | { | |
4988 | va_list args; | |
4989 | va_start (args, format); | |
4990 | va_list args_copy; | |
4991 | va_copy (args_copy, args); | |
4992 | ||
4993 | const char *str; | |
4994 | int number; | |
4995 | float fnumber; | |
4996 | ||
4997 | while (*format) | |
4998 | { | |
4999 | switch (*format++) | |
5000 | { | |
5001 | case 's': // string | |
5002 | str = va_arg (args_copy, const char *); | |
5003 | break; | |
5004 | case 'd': // int | |
5005 | number = va_arg (args_copy, int); | |
5006 | break; | |
5007 | case 'f': // float | |
5008 | fnumber = va_arg (args_copy, double); | |
5009 | break; | |
5010 | default: | |
5011 | break; | |
5012 | } | |
5013 | } | |
5014 | va_end (args_copy); | |
5015 | va_end (args); | |
5016 | } | |
5017 | ||
5018 | int | |
5019 | main () | |
5020 | { | |
5021 | ||
5022 | // Check bool. | |
5023 | _Bool success = false; | |
5024 | ||
5025 | // Check restrict. | |
5026 | if (test_restrict ("String literal") == 0) | |
5027 | success = true; | |
5028 | char *restrict newvar = "Another string"; | |
5029 | ||
5030 | // Check varargs. | |
5031 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5032 | test_varargs_macros (); | |
5033 | ||
5034 | // Check flexible array members. | |
5035 | struct incomplete_array *ia = | |
5036 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5037 | ia->datasize = 10; | |
5038 | for (int i = 0; i < ia->datasize; ++i) | |
5039 | ia->data[i] = i * 1.234; | |
5040 | ||
5041 | // Check named initializers. | |
5042 | struct named_init ni = { | |
5043 | .number = 34, | |
5044 | .name = L"Test wide string", | |
5045 | .average = 543.34343, | |
5046 | }; | |
5047 | ||
5048 | ni.number = 58; | |
5049 | ||
5050 | int dynamic_array[ni.number]; | |
5051 | dynamic_array[ni.number - 1] = 543; | |
5052 | ||
5053 | // work around unused variable warnings | |
5054 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5055 | || dynamic_array[ni.number - 1] != 543); | |
5056 | ||
5057 | ; | |
5058 | return 0; | |
5059 | } | |
5060 | _ACEOF | |
5061 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5062 | do | |
5063 | CC="$ac_save_CC $ac_arg" | |
5064 | if ac_fn_c_try_compile "$LINENO"; then : | |
5065 | ac_cv_prog_cc_c99=$ac_arg | |
5066 | fi | |
5067 | rm -f core conftest.err conftest.$ac_objext | |
5068 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5069 | done | |
5070 | rm -f conftest.$ac_ext | |
5071 | CC=$ac_save_CC | |
5072 | ||
5073 | fi | |
5074 | # AC_CACHE_VAL | |
5075 | case "x$ac_cv_prog_cc_c99" in | |
5076 | x) | |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5078 | $as_echo "none needed" >&6; } ;; | |
5079 | xno) | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5081 | $as_echo "unsupported" >&6; } ;; | |
5082 | *) | |
5083 | CC="$CC $ac_cv_prog_cc_c99" | |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5085 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5086 | esac | |
5087 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5088 | ||
5089 | fi | |
5090 | ||
5091 | ||
5213506e | 5092 | ac_ext=cpp |
2aeb72e9 DD |
5093 | ac_cpp='$CXXCPP $CPPFLAGS' |
5094 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5095 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5096 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5097 | if test -z "$CXX"; then |
5098 | if test -n "$CCC"; then | |
5099 | CXX=$CCC | |
5100 | else | |
5101 | if test -n "$ac_tool_prefix"; then | |
5102 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5103 | do |
5104 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5105 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5107 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5108 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5109 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5110 | else |
5111 | if test -n "$CXX"; then | |
5112 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5113 | else | |
5114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5115 | for as_dir in $PATH | |
5116 | do | |
5117 | IFS=$as_save_IFS | |
5118 | test -z "$as_dir" && as_dir=. | |
5213506e | 5119 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5121 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5123 | break 2 |
5124 | fi | |
5125 | done | |
5213506e RW |
5126 | done |
5127 | IFS=$as_save_IFS | |
55ffb5ed | 5128 | |
c3a86da9 DJ |
5129 | fi |
5130 | fi | |
5131 | CXX=$ac_cv_prog_CXX | |
5132 | if test -n "$CXX"; then | |
5213506e RW |
5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5134 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5135 | else |
5213506e RW |
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5137 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5138 | fi |
5139 | ||
5213506e | 5140 | |
c3a86da9 DJ |
5141 | test -n "$CXX" && break |
5142 | done | |
5143 | fi | |
5144 | if test -z "$CXX"; then | |
5145 | ac_ct_CXX=$CXX | |
5213506e | 5146 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5147 | do |
5148 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5149 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5151 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5152 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5153 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5154 | else |
5155 | if test -n "$ac_ct_CXX"; then | |
5156 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5157 | else | |
5158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5159 | for as_dir in $PATH | |
5160 | do | |
5161 | IFS=$as_save_IFS | |
5162 | test -z "$as_dir" && as_dir=. | |
5213506e | 5163 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5165 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5167 | break 2 |
5168 | fi | |
5169 | done | |
5213506e RW |
5170 | done |
5171 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5172 | |
5173 | fi | |
5174 | fi | |
5175 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5176 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5178 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5179 | else |
5213506e RW |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5181 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5182 | fi |
5183 | ||
5213506e | 5184 | |
c3a86da9 DJ |
5185 | test -n "$ac_ct_CXX" && break |
5186 | done | |
c3a86da9 | 5187 | |
5213506e RW |
5188 | if test "x$ac_ct_CXX" = x; then |
5189 | CXX="g++" | |
5190 | else | |
5191 | case $cross_compiling:$ac_tool_warned in | |
5192 | yes:) | |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5195 | ac_tool_warned=yes ;; | |
5196 | esac | |
5197 | CXX=$ac_ct_CXX | |
5198 | fi | |
c3a86da9 DJ |
5199 | fi |
5200 | ||
5213506e RW |
5201 | fi |
5202 | fi | |
c3a86da9 | 5203 | # Provide some information about the compiler. |
5213506e RW |
5204 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5205 | set X $ac_compile | |
5206 | ac_compiler=$2 | |
5207 | for ac_option in --version -v -V -qversion; do | |
5208 | { { ac_try="$ac_compiler $ac_option >&5" | |
5209 | case "(($ac_try" in | |
5210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5211 | *) ac_try_echo=$ac_try;; | |
5212 | esac | |
5213 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5214 | $as_echo "$ac_try_echo"; } >&5 | |
5215 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5216 | ac_status=$? |
5213506e RW |
5217 | if test -s conftest.err; then |
5218 | sed '10a\ | |
5219 | ... rest of stderr output deleted ... | |
5220 | 10q' conftest.err >conftest.er1 | |
5221 | cat conftest.er1 >&5 | |
5213506e | 5222 | fi |
22e05272 | 5223 | rm -f conftest.er1 conftest.err |
5213506e RW |
5224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5225 | test $ac_status = 0; } | |
5226 | done | |
c3a86da9 | 5227 | |
5213506e RW |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5229 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5230 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5231 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5232 | else |
5213506e | 5233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5234 | /* end confdefs.h. */ |
5235 | ||
5236 | int | |
5237 | main () | |
5238 | { | |
5239 | #ifndef __GNUC__ | |
5240 | choke me | |
5241 | #endif | |
5242 | ||
5243 | ; | |
5244 | return 0; | |
5245 | } | |
5246 | _ACEOF | |
5213506e | 5247 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5248 | ac_compiler_gnu=yes |
5249 | else | |
5213506e | 5250 | ac_compiler_gnu=no |
c3a86da9 | 5251 | fi |
5213506e | 5252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5253 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5254 | ||
5255 | fi | |
5213506e RW |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5257 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5258 | if test $ac_compiler_gnu = yes; then | |
5259 | GXX=yes | |
5260 | else | |
5261 | GXX= | |
5262 | fi | |
c3a86da9 DJ |
5263 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5264 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5266 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5267 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5268 | $as_echo_n "(cached) " >&6 |
5269 | else | |
5270 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5271 | ac_cxx_werror_flag=yes | |
5272 | ac_cv_prog_cxx_g=no | |
5273 | CXXFLAGS="-g" | |
5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5275 | /* end confdefs.h. */ |
5276 | ||
5277 | int | |
5278 | main () | |
5279 | { | |
5280 | ||
5281 | ; | |
5282 | return 0; | |
5283 | } | |
5284 | _ACEOF | |
5213506e | 5285 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5286 | ac_cv_prog_cxx_g=yes |
5287 | else | |
5213506e RW |
5288 | CXXFLAGS="" |
5289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5290 | /* end confdefs.h. */ |
5213506e | 5291 | |
c3a86da9 DJ |
5292 | int |
5293 | main () | |
5294 | { | |
5213506e | 5295 | |
c3a86da9 DJ |
5296 | ; |
5297 | return 0; | |
5298 | } | |
5299 | _ACEOF | |
5213506e | 5300 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5301 | |
5213506e RW |
5302 | else |
5303 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5304 | CXXFLAGS="-g" | |
5305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5306 | /* end confdefs.h. */ |
5213506e | 5307 | |
c3a86da9 DJ |
5308 | int |
5309 | main () | |
5310 | { | |
5213506e | 5311 | |
c3a86da9 DJ |
5312 | ; |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
5213506e RW |
5316 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5317 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5318 | fi |
5213506e RW |
5319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5320 | fi | |
5321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5322 | fi | |
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5324 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5325 | fi | |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5327 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5328 | if test "$ac_test_CXXFLAGS" = set; then | |
5329 | CXXFLAGS=$ac_save_CXXFLAGS | |
5330 | elif test $ac_cv_prog_cxx_g = yes; then | |
5331 | if test "$GXX" = yes; then | |
5332 | CXXFLAGS="-g -O2" | |
5333 | else | |
5334 | CXXFLAGS="-g" | |
5335 | fi | |
5336 | else | |
5337 | if test "$GXX" = yes; then | |
5338 | CXXFLAGS="-O2" | |
5339 | else | |
5340 | CXXFLAGS= | |
5341 | fi | |
c3a86da9 | 5342 | fi |
c3a86da9 DJ |
5343 | ac_ext=c |
5344 | ac_cpp='$CPP $CPPFLAGS' | |
5345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5348 | ||
5349 | ||
5350 | # We must set the default linker to the linker used by gcc for the correct | |
5351 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5352 | # set the LD default to the ld used by gcc. | |
5353 | if test -z "$LD"; then | |
5354 | if test "$GCC" = yes; then | |
5355 | case $build in | |
5356 | *-*-mingw*) | |
5357 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5358 | *) | |
5359 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5360 | esac | |
5361 | case $gcc_prog_ld in | |
5362 | # Accept absolute paths. | |
5363 | [\\/]* | [A-Za-z]:[\\/]*) | |
5364 | LD="$gcc_prog_ld" ;; | |
5365 | esac | |
5366 | fi | |
23f6b2f9 PB |
5367 | fi |
5368 | ||
0b21f5d3 EB |
5369 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5370 | have_static_libs=no | |
5371 | if test "$GCC" = yes; then | |
5372 | saved_LDFLAGS="$LDFLAGS" | |
5373 | ||
5374 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5376 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5377 | ac_ext=cpp | |
5378 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5379 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5380 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5381 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5382 | ||
5383 | ||
5384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5385 | /* end confdefs.h. */ | |
0d6414b2 EB |
5386 | |
5387 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5388 | #error -static-libstdc++ not implemented | |
5389 | #endif | |
0b21f5d3 EB |
5390 | int main() {} |
5391 | _ACEOF | |
5392 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5394 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5395 | else | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5397 | $as_echo "no" >&6; } | |
5398 | fi | |
5399 | rm -f core conftest.err conftest.$ac_objext \ | |
5400 | conftest$ac_exeext conftest.$ac_ext | |
5401 | ac_ext=c | |
5402 | ac_cpp='$CPP $CPPFLAGS' | |
5403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5406 | ||
5407 | ||
5408 | LDFLAGS="$saved_LDFLAGS" | |
5409 | fi | |
5410 | ||
23f6b2f9 PB |
5411 | |
5412 | ||
55ffb5ed | 5413 | |
1c710c3c DJ |
5414 | if test -n "$ac_tool_prefix"; then |
5415 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5416 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5418 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5419 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5420 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5421 | else |
5422 | if test -n "$GNATBIND"; then | |
5423 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5424 | else | |
1c710c3c DJ |
5425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5426 | for as_dir in $PATH | |
5427 | do | |
5428 | IFS=$as_save_IFS | |
5429 | test -z "$as_dir" && as_dir=. | |
5213506e | 5430 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5432 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5434 | break 2 |
5435 | fi | |
5436 | done | |
5213506e RW |
5437 | done |
5438 | IFS=$as_save_IFS | |
1c710c3c | 5439 | |
55ffb5ed NN |
5440 | fi |
5441 | fi | |
1c710c3c | 5442 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5443 | if test -n "$GNATBIND"; then |
5213506e RW |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5445 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5446 | else |
5213506e RW |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5448 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5449 | fi |
5450 | ||
5213506e | 5451 | |
1c710c3c | 5452 | fi |
55ffb5ed | 5453 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5454 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5455 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5456 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5458 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5459 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5460 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5461 | else |
1c710c3c DJ |
5462 | if test -n "$ac_ct_GNATBIND"; then |
5463 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5464 | else |
1c710c3c DJ |
5465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5466 | for as_dir in $PATH | |
5467 | do | |
5468 | IFS=$as_save_IFS | |
5469 | test -z "$as_dir" && as_dir=. | |
5213506e | 5470 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5472 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5474 | break 2 |
5475 | fi | |
5476 | done | |
5213506e RW |
5477 | done |
5478 | IFS=$as_save_IFS | |
1c710c3c | 5479 | |
55ffb5ed NN |
5480 | fi |
5481 | fi | |
1c710c3c DJ |
5482 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5483 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5485 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5486 | else |
5213506e RW |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5488 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5489 | fi |
5490 | ||
5213506e RW |
5491 | if test "x$ac_ct_GNATBIND" = x; then |
5492 | GNATBIND="no" | |
5493 | else | |
5494 | case $cross_compiling:$ac_tool_warned in | |
5495 | yes:) | |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5498 | ac_tool_warned=yes ;; | |
5499 | esac | |
5500 | GNATBIND=$ac_ct_GNATBIND | |
5501 | fi | |
55ffb5ed | 5502 | else |
1c710c3c | 5503 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5504 | fi |
5505 | ||
1c710c3c DJ |
5506 | if test -n "$ac_tool_prefix"; then |
5507 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5508 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5510 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5511 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5512 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5513 | else |
5514 | if test -n "$GNATMAKE"; then | |
5515 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5516 | else | |
1c710c3c DJ |
5517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5518 | for as_dir in $PATH | |
5519 | do | |
5520 | IFS=$as_save_IFS | |
5521 | test -z "$as_dir" && as_dir=. | |
5213506e | 5522 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5524 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5526 | break 2 |
5527 | fi | |
5528 | done | |
5213506e RW |
5529 | done |
5530 | IFS=$as_save_IFS | |
1c710c3c | 5531 | |
5305be7e RG |
5532 | fi |
5533 | fi | |
1c710c3c | 5534 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5535 | if test -n "$GNATMAKE"; then |
5213506e RW |
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5537 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5538 | else |
5213506e RW |
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5540 | $as_echo "no" >&6; } | |
5305be7e RG |
5541 | fi |
5542 | ||
5213506e | 5543 | |
1c710c3c | 5544 | fi |
5305be7e | 5545 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5546 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5547 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5548 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5550 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5551 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5552 | $as_echo_n "(cached) " >&6 |
5305be7e | 5553 | else |
1c710c3c DJ |
5554 | if test -n "$ac_ct_GNATMAKE"; then |
5555 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5556 | else |
1c710c3c DJ |
5557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5558 | for as_dir in $PATH | |
5559 | do | |
5560 | IFS=$as_save_IFS | |
5561 | test -z "$as_dir" && as_dir=. | |
5213506e | 5562 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5563 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5564 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5566 | break 2 |
5567 | fi | |
5568 | done | |
5213506e RW |
5569 | done |
5570 | IFS=$as_save_IFS | |
1c710c3c | 5571 | |
5305be7e RG |
5572 | fi |
5573 | fi | |
1c710c3c DJ |
5574 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5575 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5577 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5578 | else |
5213506e RW |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5580 | $as_echo "no" >&6; } | |
5305be7e RG |
5581 | fi |
5582 | ||
5213506e RW |
5583 | if test "x$ac_ct_GNATMAKE" = x; then |
5584 | GNATMAKE="no" | |
5585 | else | |
5586 | case $cross_compiling:$ac_tool_warned in | |
5587 | yes:) | |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5589 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5590 | ac_tool_warned=yes ;; | |
5591 | esac | |
5592 | GNATMAKE=$ac_ct_GNATMAKE | |
5593 | fi | |
5305be7e | 5594 | else |
1c710c3c | 5595 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5596 | fi |
5597 | ||
5213506e RW |
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5599 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5600 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5601 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5602 | else |
5603 | cat >conftest.adb <<EOF | |
5604 | procedure conftest is begin null; end conftest; | |
5605 | EOF | |
5606 | acx_cv_cc_gcc_supports_ada=no | |
5607 | # There is a bug in old released versions of GCC which causes the | |
5608 | # driver to exit successfully when the appropriate language module | |
5609 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5610 | # Therefore we must check for the error message as well as an | |
5611 | # unsuccessful exit. | |
1db673ca RO |
5612 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5613 | # given a .adb file, but produce no object file. So we must check | |
5614 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5615 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5616 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5617 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5618 | fi |
5619 | rm -f conftest.* | |
5620 | fi | |
5213506e RW |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5622 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5623 | |
7cb62ef1 | 5624 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5625 | have_gnat=yes |
5626 | else | |
5627 | have_gnat=no | |
5628 | fi | |
5629 | ||
5fee5ec3 IB |
5630 | |
5631 | ||
5632 | if test -n "$ac_tool_prefix"; then | |
5633 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5634 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5636 | $as_echo_n "checking for $ac_word... " >&6; } | |
5637 | if ${ac_cv_prog_GDC+:} false; then : | |
5638 | $as_echo_n "(cached) " >&6 | |
5639 | else | |
5640 | if test -n "$GDC"; then | |
5641 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5642 | else | |
5643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5644 | for as_dir in $PATH | |
5645 | do | |
5646 | IFS=$as_save_IFS | |
5647 | test -z "$as_dir" && as_dir=. | |
5648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5650 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5652 | break 2 | |
5653 | fi | |
5654 | done | |
5655 | done | |
5656 | IFS=$as_save_IFS | |
5657 | ||
5658 | fi | |
5659 | fi | |
5660 | GDC=$ac_cv_prog_GDC | |
5661 | if test -n "$GDC"; then | |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5663 | $as_echo "$GDC" >&6; } | |
5664 | else | |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5666 | $as_echo "no" >&6; } | |
5667 | fi | |
5668 | ||
5669 | ||
5670 | fi | |
5671 | if test -z "$ac_cv_prog_GDC"; then | |
5672 | ac_ct_GDC=$GDC | |
5673 | # Extract the first word of "gdc", so it can be a program name with args. | |
5674 | set dummy gdc; ac_word=$2 | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5676 | $as_echo_n "checking for $ac_word... " >&6; } | |
5677 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5678 | $as_echo_n "(cached) " >&6 | |
5679 | else | |
5680 | if test -n "$ac_ct_GDC"; then | |
5681 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5682 | else | |
5683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5684 | for as_dir in $PATH | |
5685 | do | |
5686 | IFS=$as_save_IFS | |
5687 | test -z "$as_dir" && as_dir=. | |
5688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5690 | ac_cv_prog_ac_ct_GDC="gdc" | |
5691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5692 | break 2 | |
5693 | fi | |
5694 | done | |
5695 | done | |
5696 | IFS=$as_save_IFS | |
5697 | ||
5698 | fi | |
5699 | fi | |
5700 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5701 | if test -n "$ac_ct_GDC"; then | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5703 | $as_echo "$ac_ct_GDC" >&6; } | |
5704 | else | |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5706 | $as_echo "no" >&6; } | |
5707 | fi | |
5708 | ||
5709 | if test "x$ac_ct_GDC" = x; then | |
5710 | GDC="no" | |
5711 | else | |
5712 | case $cross_compiling:$ac_tool_warned in | |
5713 | yes:) | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5715 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5716 | ac_tool_warned=yes ;; | |
5717 | esac | |
5718 | GDC=$ac_ct_GDC | |
5719 | fi | |
5720 | else | |
5721 | GDC="$ac_cv_prog_GDC" | |
5722 | fi | |
5723 | ||
5724 | if test "x$GDC" != xno; then | |
5725 | have_gdc=yes | |
5726 | else | |
5727 | have_gdc=no | |
5728 | fi | |
5729 | ||
5213506e RW |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5731 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5732 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5733 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5734 | else |
5735 | echo abfoo >t1 | |
5736 | echo cdfoo >t2 | |
b55e6680 | 5737 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5738 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5739 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5740 | : | |
5741 | else | |
5742 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5743 | fi | |
5744 | fi | |
a76494aa PB |
5745 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5746 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5747 | : |
a76494aa PB |
5748 | else |
5749 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5750 | fi | |
5751 | fi | |
5752 | rm t1 t2 | |
5753 | ||
5754 | fi | |
5213506e RW |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5756 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5757 | do_compare="$gcc_cv_prog_cmp_skip" |
5758 | ||
5759 | ||
55ffb5ed | 5760 | |
ff3ac0f4 ILT |
5761 | # Check whether --enable-bootstrap was given. |
5762 | if test "${enable_bootstrap+set}" = set; then : | |
5763 | enableval=$enable_bootstrap; | |
5764 | else | |
5765 | enable_bootstrap=default | |
5766 | fi | |
5767 | ||
5768 | ||
5769 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5770 | if test -r $srcdir/gcc/configure; then |
5771 | have_compiler=yes | |
5772 | else | |
5773 | have_compiler=no | |
5774 | fi | |
ff3ac0f4 ILT |
5775 | |
5776 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5777 | *:*:*:no) ;; | |
5778 | ||
5779 | # Default behavior. Enable bootstrap if we have a compiler | |
5780 | # and we are in a native configuration. | |
5781 | yes:$build:$build:default) | |
5782 | enable_bootstrap=yes ;; | |
5783 | ||
5784 | *:*:*:default) | |
5785 | enable_bootstrap=no ;; | |
5786 | ||
5787 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5788 | yes:$build:$build:yes) | |
5789 | ;; | |
5790 | ||
5791 | # Other configurations, but we have a compiler. Assume the user knows | |
5792 | # what he's doing. | |
5793 | yes:*:*:yes) | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5795 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5796 | ;; | |
5797 | ||
5798 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5799 | no:*:*:yes) | |
22e05272 | 5800 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5801 | |
5802 | # Fail if wrong command line | |
5803 | *) | |
22e05272 | 5804 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5805 | ;; |
5806 | esac | |
5807 | ||
5329b59a | 5808 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5809 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5810 | # require C++11 (or higher). | |
46070488 | 5811 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5812 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5813 | elif test "$have_compiler" = yes; then |
5814 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5815 | ac_ext=cpp | |
5816 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5817 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5818 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5819 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5820 | ac_success=no | |
5821 | ||
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5823 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5824 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5825 | $as_echo_n "(cached) " >&6 | |
5826 | else | |
5827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5828 | /* end confdefs.h. */ | |
5829 | ||
5830 | ||
5831 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5832 | // Hopefully, this will speed up the test. | |
5833 | ||
5834 | #ifndef __cplusplus | |
5835 | ||
5836 | #error "This is not a C++ compiler" | |
5837 | ||
5838 | #elif __cplusplus < 201103L | |
5839 | ||
5840 | #error "This is not a C++11 compiler" | |
5841 | ||
5842 | #else | |
5843 | ||
5844 | namespace cxx11 | |
5845 | { | |
5846 | ||
5847 | namespace test_static_assert | |
5848 | { | |
5849 | ||
5850 | template <typename T> | |
5851 | struct check | |
5852 | { | |
5853 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5854 | }; | |
5855 | ||
5856 | } | |
5857 | ||
5858 | namespace test_final_override | |
5859 | { | |
5860 | ||
5861 | struct Base | |
5862 | { | |
5863 | virtual ~Base() {} | |
5864 | virtual void f() {} | |
5865 | }; | |
5866 | ||
5867 | struct Derived : public Base | |
5868 | { | |
5869 | virtual ~Derived() override {} | |
5870 | virtual void f() override {} | |
5871 | }; | |
5872 | ||
5873 | } | |
5874 | ||
5875 | namespace test_double_right_angle_brackets | |
5876 | { | |
5877 | ||
5878 | template < typename T > | |
5879 | struct check {}; | |
5880 | ||
5881 | typedef check<void> single_type; | |
5882 | typedef check<check<void>> double_type; | |
5883 | typedef check<check<check<void>>> triple_type; | |
5884 | typedef check<check<check<check<void>>>> quadruple_type; | |
5885 | ||
5886 | } | |
5887 | ||
5888 | namespace test_decltype | |
5889 | { | |
5890 | ||
5891 | int | |
5892 | f() | |
5893 | { | |
5894 | int a = 1; | |
5895 | decltype(a) b = 2; | |
5896 | return a + b; | |
5897 | } | |
5898 | ||
5899 | } | |
5900 | ||
5901 | namespace test_type_deduction | |
5902 | { | |
5903 | ||
5904 | template < typename T1, typename T2 > | |
5905 | struct is_same | |
5906 | { | |
5907 | static const bool value = false; | |
5908 | }; | |
5909 | ||
5910 | template < typename T > | |
5911 | struct is_same<T, T> | |
5912 | { | |
5913 | static const bool value = true; | |
5914 | }; | |
5915 | ||
5916 | template < typename T1, typename T2 > | |
5917 | auto | |
5918 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5919 | { | |
5920 | return a1 + a2; | |
5921 | } | |
5922 | ||
5923 | int | |
5924 | test(const int c, volatile int v) | |
5925 | { | |
5926 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5927 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5928 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5929 | auto ac = c; | |
5930 | auto av = v; | |
5931 | auto sumi = ac + av + 'x'; | |
5932 | auto sumf = ac + av + 1.0; | |
5933 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5934 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5935 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5936 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5937 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5938 | return (sumf > 0.0) ? sumi : add(c, v); | |
5939 | } | |
5940 | ||
5941 | } | |
5942 | ||
5943 | namespace test_noexcept | |
5944 | { | |
5945 | ||
5946 | int f() { return 0; } | |
5947 | int g() noexcept { return 0; } | |
5948 | ||
5949 | static_assert(noexcept(f()) == false, ""); | |
5950 | static_assert(noexcept(g()) == true, ""); | |
5951 | ||
5952 | } | |
5953 | ||
5954 | namespace test_constexpr | |
5955 | { | |
5956 | ||
5957 | template < typename CharT > | |
5958 | unsigned long constexpr | |
5959 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5960 | { | |
5961 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5962 | } | |
5963 | ||
5964 | template < typename CharT > | |
5965 | unsigned long constexpr | |
5966 | strlen_c(const CharT *const s) noexcept | |
5967 | { | |
5968 | return strlen_c_r(s, 0UL); | |
5969 | } | |
5970 | ||
5971 | static_assert(strlen_c("") == 0UL, ""); | |
5972 | static_assert(strlen_c("1") == 1UL, ""); | |
5973 | static_assert(strlen_c("example") == 7UL, ""); | |
5974 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5975 | ||
5976 | } | |
5977 | ||
5978 | namespace test_rvalue_references | |
5979 | { | |
5980 | ||
5981 | template < int N > | |
5982 | struct answer | |
5983 | { | |
5984 | static constexpr int value = N; | |
5985 | }; | |
5986 | ||
5987 | answer<1> f(int&) { return answer<1>(); } | |
5988 | answer<2> f(const int&) { return answer<2>(); } | |
5989 | answer<3> f(int&&) { return answer<3>(); } | |
5990 | ||
5991 | void | |
5992 | test() | |
5993 | { | |
5994 | int i = 0; | |
5995 | const int c = 0; | |
5996 | static_assert(decltype(f(i))::value == 1, ""); | |
5997 | static_assert(decltype(f(c))::value == 2, ""); | |
5998 | static_assert(decltype(f(0))::value == 3, ""); | |
5999 | } | |
6000 | ||
6001 | } | |
6002 | ||
6003 | namespace test_uniform_initialization | |
6004 | { | |
6005 | ||
6006 | struct test | |
6007 | { | |
6008 | static const int zero {}; | |
6009 | static const int one {1}; | |
6010 | }; | |
6011 | ||
6012 | static_assert(test::zero == 0, ""); | |
6013 | static_assert(test::one == 1, ""); | |
6014 | ||
6015 | } | |
6016 | ||
6017 | namespace test_lambdas | |
6018 | { | |
6019 | ||
6020 | void | |
6021 | test1() | |
6022 | { | |
6023 | auto lambda1 = [](){}; | |
6024 | auto lambda2 = lambda1; | |
6025 | lambda1(); | |
6026 | lambda2(); | |
6027 | } | |
6028 | ||
6029 | int | |
6030 | test2() | |
6031 | { | |
6032 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6033 | auto b = []() -> int { return '0'; }(); | |
6034 | auto c = [=](){ return a + b; }(); | |
6035 | auto d = [&](){ return c; }(); | |
6036 | auto e = [a, &b](int x) mutable { | |
6037 | const auto identity = [](int y){ return y; }; | |
6038 | for (auto i = 0; i < a; ++i) | |
6039 | a += b--; | |
6040 | return x + identity(a + b); | |
6041 | }(0); | |
6042 | return a + b + c + d + e; | |
6043 | } | |
6044 | ||
6045 | int | |
6046 | test3() | |
6047 | { | |
6048 | const auto nullary = [](){ return 0; }; | |
6049 | const auto unary = [](int x){ return x; }; | |
6050 | using nullary_t = decltype(nullary); | |
6051 | using unary_t = decltype(unary); | |
6052 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6053 | const auto higher2nd = [unary](nullary_t f1){ | |
6054 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6055 | }; | |
6056 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6057 | } | |
6058 | ||
6059 | } | |
6060 | ||
6061 | namespace test_variadic_templates | |
6062 | { | |
6063 | ||
6064 | template <int...> | |
6065 | struct sum; | |
6066 | ||
6067 | template <int N0, int... N1toN> | |
6068 | struct sum<N0, N1toN...> | |
6069 | { | |
6070 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6071 | }; | |
6072 | ||
6073 | template <> | |
6074 | struct sum<> | |
6075 | { | |
6076 | static constexpr auto value = 0; | |
6077 | }; | |
6078 | ||
6079 | static_assert(sum<>::value == 0, ""); | |
6080 | static_assert(sum<1>::value == 1, ""); | |
6081 | static_assert(sum<23>::value == 23, ""); | |
6082 | static_assert(sum<1, 2>::value == 3, ""); | |
6083 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6084 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6085 | ||
6086 | } | |
6087 | ||
6088 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6089 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6090 | // because of this. | |
6091 | namespace test_template_alias_sfinae | |
6092 | { | |
6093 | ||
6094 | struct foo {}; | |
6095 | ||
6096 | template<typename T> | |
6097 | using member = typename T::member_type; | |
6098 | ||
6099 | template<typename T> | |
6100 | void func(...) {} | |
6101 | ||
6102 | template<typename T> | |
6103 | void func(member<T>*) {} | |
6104 | ||
6105 | void test(); | |
6106 | ||
6107 | void test() { func<foo>(0); } | |
6108 | ||
6109 | } | |
6110 | ||
6111 | } // namespace cxx11 | |
6112 | ||
6113 | #endif // __cplusplus >= 201103L | |
6114 | ||
6115 | ||
6116 | ||
6117 | _ACEOF | |
6118 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6119 | ax_cv_cxx_compile_cxx11=yes | |
6120 | else | |
6121 | ax_cv_cxx_compile_cxx11=no | |
6122 | fi | |
6123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6124 | fi | |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6126 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6127 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6128 | ac_success=yes | |
6129 | fi | |
6130 | ||
6131 | if test x$ac_success = xno; then | |
6132 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6133 | switch="-std=gnu++${alternative}" | |
6134 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6136 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6137 | if eval \${$cachevar+:} false; then : | |
6138 | $as_echo_n "(cached) " >&6 | |
6139 | else | |
6140 | ac_save_CXX="$CXX" | |
6141 | CXX="$CXX $switch" | |
6142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6143 | /* end confdefs.h. */ | |
6144 | ||
6145 | ||
6146 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6147 | // Hopefully, this will speed up the test. | |
6148 | ||
6149 | #ifndef __cplusplus | |
6150 | ||
6151 | #error "This is not a C++ compiler" | |
6152 | ||
6153 | #elif __cplusplus < 201103L | |
6154 | ||
6155 | #error "This is not a C++11 compiler" | |
6156 | ||
6157 | #else | |
6158 | ||
6159 | namespace cxx11 | |
6160 | { | |
6161 | ||
6162 | namespace test_static_assert | |
6163 | { | |
6164 | ||
6165 | template <typename T> | |
6166 | struct check | |
6167 | { | |
6168 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6169 | }; | |
6170 | ||
6171 | } | |
6172 | ||
6173 | namespace test_final_override | |
6174 | { | |
6175 | ||
6176 | struct Base | |
6177 | { | |
6178 | virtual ~Base() {} | |
6179 | virtual void f() {} | |
6180 | }; | |
6181 | ||
6182 | struct Derived : public Base | |
6183 | { | |
6184 | virtual ~Derived() override {} | |
6185 | virtual void f() override {} | |
6186 | }; | |
6187 | ||
6188 | } | |
6189 | ||
6190 | namespace test_double_right_angle_brackets | |
6191 | { | |
6192 | ||
6193 | template < typename T > | |
6194 | struct check {}; | |
6195 | ||
6196 | typedef check<void> single_type; | |
6197 | typedef check<check<void>> double_type; | |
6198 | typedef check<check<check<void>>> triple_type; | |
6199 | typedef check<check<check<check<void>>>> quadruple_type; | |
6200 | ||
6201 | } | |
6202 | ||
6203 | namespace test_decltype | |
6204 | { | |
6205 | ||
6206 | int | |
6207 | f() | |
6208 | { | |
6209 | int a = 1; | |
6210 | decltype(a) b = 2; | |
6211 | return a + b; | |
6212 | } | |
6213 | ||
6214 | } | |
6215 | ||
6216 | namespace test_type_deduction | |
6217 | { | |
6218 | ||
6219 | template < typename T1, typename T2 > | |
6220 | struct is_same | |
6221 | { | |
6222 | static const bool value = false; | |
6223 | }; | |
6224 | ||
6225 | template < typename T > | |
6226 | struct is_same<T, T> | |
6227 | { | |
6228 | static const bool value = true; | |
6229 | }; | |
6230 | ||
6231 | template < typename T1, typename T2 > | |
6232 | auto | |
6233 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6234 | { | |
6235 | return a1 + a2; | |
6236 | } | |
6237 | ||
6238 | int | |
6239 | test(const int c, volatile int v) | |
6240 | { | |
6241 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6242 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6243 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6244 | auto ac = c; | |
6245 | auto av = v; | |
6246 | auto sumi = ac + av + 'x'; | |
6247 | auto sumf = ac + av + 1.0; | |
6248 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6249 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6250 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6251 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6252 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6253 | return (sumf > 0.0) ? sumi : add(c, v); | |
6254 | } | |
6255 | ||
6256 | } | |
6257 | ||
6258 | namespace test_noexcept | |
6259 | { | |
6260 | ||
6261 | int f() { return 0; } | |
6262 | int g() noexcept { return 0; } | |
6263 | ||
6264 | static_assert(noexcept(f()) == false, ""); | |
6265 | static_assert(noexcept(g()) == true, ""); | |
6266 | ||
6267 | } | |
6268 | ||
6269 | namespace test_constexpr | |
6270 | { | |
6271 | ||
6272 | template < typename CharT > | |
6273 | unsigned long constexpr | |
6274 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6275 | { | |
6276 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6277 | } | |
6278 | ||
6279 | template < typename CharT > | |
6280 | unsigned long constexpr | |
6281 | strlen_c(const CharT *const s) noexcept | |
6282 | { | |
6283 | return strlen_c_r(s, 0UL); | |
6284 | } | |
6285 | ||
6286 | static_assert(strlen_c("") == 0UL, ""); | |
6287 | static_assert(strlen_c("1") == 1UL, ""); | |
6288 | static_assert(strlen_c("example") == 7UL, ""); | |
6289 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6290 | ||
6291 | } | |
6292 | ||
6293 | namespace test_rvalue_references | |
6294 | { | |
6295 | ||
6296 | template < int N > | |
6297 | struct answer | |
6298 | { | |
6299 | static constexpr int value = N; | |
6300 | }; | |
6301 | ||
6302 | answer<1> f(int&) { return answer<1>(); } | |
6303 | answer<2> f(const int&) { return answer<2>(); } | |
6304 | answer<3> f(int&&) { return answer<3>(); } | |
6305 | ||
6306 | void | |
6307 | test() | |
6308 | { | |
6309 | int i = 0; | |
6310 | const int c = 0; | |
6311 | static_assert(decltype(f(i))::value == 1, ""); | |
6312 | static_assert(decltype(f(c))::value == 2, ""); | |
6313 | static_assert(decltype(f(0))::value == 3, ""); | |
6314 | } | |
6315 | ||
6316 | } | |
6317 | ||
6318 | namespace test_uniform_initialization | |
6319 | { | |
6320 | ||
6321 | struct test | |
6322 | { | |
6323 | static const int zero {}; | |
6324 | static const int one {1}; | |
6325 | }; | |
6326 | ||
6327 | static_assert(test::zero == 0, ""); | |
6328 | static_assert(test::one == 1, ""); | |
6329 | ||
6330 | } | |
6331 | ||
6332 | namespace test_lambdas | |
6333 | { | |
6334 | ||
6335 | void | |
6336 | test1() | |
6337 | { | |
6338 | auto lambda1 = [](){}; | |
6339 | auto lambda2 = lambda1; | |
6340 | lambda1(); | |
6341 | lambda2(); | |
6342 | } | |
6343 | ||
6344 | int | |
6345 | test2() | |
6346 | { | |
6347 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6348 | auto b = []() -> int { return '0'; }(); | |
6349 | auto c = [=](){ return a + b; }(); | |
6350 | auto d = [&](){ return c; }(); | |
6351 | auto e = [a, &b](int x) mutable { | |
6352 | const auto identity = [](int y){ return y; }; | |
6353 | for (auto i = 0; i < a; ++i) | |
6354 | a += b--; | |
6355 | return x + identity(a + b); | |
6356 | }(0); | |
6357 | return a + b + c + d + e; | |
6358 | } | |
6359 | ||
6360 | int | |
6361 | test3() | |
6362 | { | |
6363 | const auto nullary = [](){ return 0; }; | |
6364 | const auto unary = [](int x){ return x; }; | |
6365 | using nullary_t = decltype(nullary); | |
6366 | using unary_t = decltype(unary); | |
6367 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6368 | const auto higher2nd = [unary](nullary_t f1){ | |
6369 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6370 | }; | |
6371 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6372 | } | |
6373 | ||
6374 | } | |
6375 | ||
6376 | namespace test_variadic_templates | |
6377 | { | |
6378 | ||
6379 | template <int...> | |
6380 | struct sum; | |
6381 | ||
6382 | template <int N0, int... N1toN> | |
6383 | struct sum<N0, N1toN...> | |
6384 | { | |
6385 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6386 | }; | |
6387 | ||
6388 | template <> | |
6389 | struct sum<> | |
6390 | { | |
6391 | static constexpr auto value = 0; | |
6392 | }; | |
6393 | ||
6394 | static_assert(sum<>::value == 0, ""); | |
6395 | static_assert(sum<1>::value == 1, ""); | |
6396 | static_assert(sum<23>::value == 23, ""); | |
6397 | static_assert(sum<1, 2>::value == 3, ""); | |
6398 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6399 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6400 | ||
6401 | } | |
6402 | ||
6403 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6404 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6405 | // because of this. | |
6406 | namespace test_template_alias_sfinae | |
6407 | { | |
6408 | ||
6409 | struct foo {}; | |
6410 | ||
6411 | template<typename T> | |
6412 | using member = typename T::member_type; | |
6413 | ||
6414 | template<typename T> | |
6415 | void func(...) {} | |
6416 | ||
6417 | template<typename T> | |
6418 | void func(member<T>*) {} | |
6419 | ||
6420 | void test(); | |
6421 | ||
6422 | void test() { func<foo>(0); } | |
6423 | ||
6424 | } | |
6425 | ||
6426 | } // namespace cxx11 | |
6427 | ||
6428 | #endif // __cplusplus >= 201103L | |
6429 | ||
6430 | ||
6431 | ||
6432 | _ACEOF | |
6433 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6434 | eval $cachevar=yes | |
6435 | else | |
6436 | eval $cachevar=no | |
6437 | fi | |
6438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6439 | CXX="$ac_save_CXX" | |
6440 | fi | |
6441 | eval ac_res=\$$cachevar | |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6443 | $as_echo "$ac_res" >&6; } | |
6444 | if eval test x\$$cachevar = xyes; then | |
6445 | CXX="$CXX $switch" | |
6446 | if test -n "$CXXCPP" ; then | |
6447 | CXXCPP="$CXXCPP $switch" | |
6448 | fi | |
6449 | ac_success=yes | |
6450 | break | |
6451 | fi | |
6452 | done | |
6453 | fi | |
6454 | ||
6455 | if test x$ac_success = xno; then | |
6456 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6457 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6458 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6460 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6461 | if eval \${$cachevar+:} false; then : | |
6462 | $as_echo_n "(cached) " >&6 | |
6463 | else | |
6464 | ac_save_CXX="$CXX" | |
6465 | CXX="$CXX $switch" | |
6466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6467 | /* end confdefs.h. */ | |
6468 | ||
6469 | ||
6470 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6471 | // Hopefully, this will speed up the test. | |
6472 | ||
6473 | #ifndef __cplusplus | |
6474 | ||
6475 | #error "This is not a C++ compiler" | |
6476 | ||
6477 | #elif __cplusplus < 201103L | |
6478 | ||
6479 | #error "This is not a C++11 compiler" | |
6480 | ||
6481 | #else | |
6482 | ||
6483 | namespace cxx11 | |
6484 | { | |
6485 | ||
6486 | namespace test_static_assert | |
6487 | { | |
6488 | ||
6489 | template <typename T> | |
6490 | struct check | |
6491 | { | |
6492 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6493 | }; | |
6494 | ||
6495 | } | |
6496 | ||
6497 | namespace test_final_override | |
6498 | { | |
6499 | ||
6500 | struct Base | |
6501 | { | |
6502 | virtual ~Base() {} | |
6503 | virtual void f() {} | |
6504 | }; | |
6505 | ||
6506 | struct Derived : public Base | |
6507 | { | |
6508 | virtual ~Derived() override {} | |
6509 | virtual void f() override {} | |
6510 | }; | |
6511 | ||
6512 | } | |
6513 | ||
6514 | namespace test_double_right_angle_brackets | |
6515 | { | |
6516 | ||
6517 | template < typename T > | |
6518 | struct check {}; | |
6519 | ||
6520 | typedef check<void> single_type; | |
6521 | typedef check<check<void>> double_type; | |
6522 | typedef check<check<check<void>>> triple_type; | |
6523 | typedef check<check<check<check<void>>>> quadruple_type; | |
6524 | ||
6525 | } | |
6526 | ||
6527 | namespace test_decltype | |
6528 | { | |
6529 | ||
6530 | int | |
6531 | f() | |
6532 | { | |
6533 | int a = 1; | |
6534 | decltype(a) b = 2; | |
6535 | return a + b; | |
6536 | } | |
6537 | ||
6538 | } | |
6539 | ||
6540 | namespace test_type_deduction | |
6541 | { | |
6542 | ||
6543 | template < typename T1, typename T2 > | |
6544 | struct is_same | |
6545 | { | |
6546 | static const bool value = false; | |
6547 | }; | |
6548 | ||
6549 | template < typename T > | |
6550 | struct is_same<T, T> | |
6551 | { | |
6552 | static const bool value = true; | |
6553 | }; | |
6554 | ||
6555 | template < typename T1, typename T2 > | |
6556 | auto | |
6557 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6558 | { | |
6559 | return a1 + a2; | |
6560 | } | |
6561 | ||
6562 | int | |
6563 | test(const int c, volatile int v) | |
6564 | { | |
6565 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6566 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6567 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6568 | auto ac = c; | |
6569 | auto av = v; | |
6570 | auto sumi = ac + av + 'x'; | |
6571 | auto sumf = ac + av + 1.0; | |
6572 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6573 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6574 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6575 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6576 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6577 | return (sumf > 0.0) ? sumi : add(c, v); | |
6578 | } | |
6579 | ||
6580 | } | |
6581 | ||
6582 | namespace test_noexcept | |
6583 | { | |
6584 | ||
6585 | int f() { return 0; } | |
6586 | int g() noexcept { return 0; } | |
6587 | ||
6588 | static_assert(noexcept(f()) == false, ""); | |
6589 | static_assert(noexcept(g()) == true, ""); | |
6590 | ||
6591 | } | |
6592 | ||
6593 | namespace test_constexpr | |
6594 | { | |
6595 | ||
6596 | template < typename CharT > | |
6597 | unsigned long constexpr | |
6598 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6599 | { | |
6600 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6601 | } | |
6602 | ||
6603 | template < typename CharT > | |
6604 | unsigned long constexpr | |
6605 | strlen_c(const CharT *const s) noexcept | |
6606 | { | |
6607 | return strlen_c_r(s, 0UL); | |
6608 | } | |
6609 | ||
6610 | static_assert(strlen_c("") == 0UL, ""); | |
6611 | static_assert(strlen_c("1") == 1UL, ""); | |
6612 | static_assert(strlen_c("example") == 7UL, ""); | |
6613 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6614 | ||
6615 | } | |
6616 | ||
6617 | namespace test_rvalue_references | |
6618 | { | |
6619 | ||
6620 | template < int N > | |
6621 | struct answer | |
6622 | { | |
6623 | static constexpr int value = N; | |
6624 | }; | |
6625 | ||
6626 | answer<1> f(int&) { return answer<1>(); } | |
6627 | answer<2> f(const int&) { return answer<2>(); } | |
6628 | answer<3> f(int&&) { return answer<3>(); } | |
6629 | ||
6630 | void | |
6631 | test() | |
6632 | { | |
6633 | int i = 0; | |
6634 | const int c = 0; | |
6635 | static_assert(decltype(f(i))::value == 1, ""); | |
6636 | static_assert(decltype(f(c))::value == 2, ""); | |
6637 | static_assert(decltype(f(0))::value == 3, ""); | |
6638 | } | |
6639 | ||
6640 | } | |
6641 | ||
6642 | namespace test_uniform_initialization | |
6643 | { | |
6644 | ||
6645 | struct test | |
6646 | { | |
6647 | static const int zero {}; | |
6648 | static const int one {1}; | |
6649 | }; | |
6650 | ||
6651 | static_assert(test::zero == 0, ""); | |
6652 | static_assert(test::one == 1, ""); | |
6653 | ||
6654 | } | |
6655 | ||
6656 | namespace test_lambdas | |
6657 | { | |
6658 | ||
6659 | void | |
6660 | test1() | |
6661 | { | |
6662 | auto lambda1 = [](){}; | |
6663 | auto lambda2 = lambda1; | |
6664 | lambda1(); | |
6665 | lambda2(); | |
6666 | } | |
6667 | ||
6668 | int | |
6669 | test2() | |
6670 | { | |
6671 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6672 | auto b = []() -> int { return '0'; }(); | |
6673 | auto c = [=](){ return a + b; }(); | |
6674 | auto d = [&](){ return c; }(); | |
6675 | auto e = [a, &b](int x) mutable { | |
6676 | const auto identity = [](int y){ return y; }; | |
6677 | for (auto i = 0; i < a; ++i) | |
6678 | a += b--; | |
6679 | return x + identity(a + b); | |
6680 | }(0); | |
6681 | return a + b + c + d + e; | |
6682 | } | |
6683 | ||
6684 | int | |
6685 | test3() | |
6686 | { | |
6687 | const auto nullary = [](){ return 0; }; | |
6688 | const auto unary = [](int x){ return x; }; | |
6689 | using nullary_t = decltype(nullary); | |
6690 | using unary_t = decltype(unary); | |
6691 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6692 | const auto higher2nd = [unary](nullary_t f1){ | |
6693 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6694 | }; | |
6695 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6696 | } | |
6697 | ||
6698 | } | |
6699 | ||
6700 | namespace test_variadic_templates | |
6701 | { | |
6702 | ||
6703 | template <int...> | |
6704 | struct sum; | |
6705 | ||
6706 | template <int N0, int... N1toN> | |
6707 | struct sum<N0, N1toN...> | |
6708 | { | |
6709 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6710 | }; | |
6711 | ||
6712 | template <> | |
6713 | struct sum<> | |
6714 | { | |
6715 | static constexpr auto value = 0; | |
6716 | }; | |
6717 | ||
6718 | static_assert(sum<>::value == 0, ""); | |
6719 | static_assert(sum<1>::value == 1, ""); | |
6720 | static_assert(sum<23>::value == 23, ""); | |
6721 | static_assert(sum<1, 2>::value == 3, ""); | |
6722 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6723 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6724 | ||
6725 | } | |
6726 | ||
6727 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6728 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6729 | // because of this. | |
6730 | namespace test_template_alias_sfinae | |
6731 | { | |
6732 | ||
6733 | struct foo {}; | |
6734 | ||
6735 | template<typename T> | |
6736 | using member = typename T::member_type; | |
6737 | ||
6738 | template<typename T> | |
6739 | void func(...) {} | |
6740 | ||
6741 | template<typename T> | |
6742 | void func(member<T>*) {} | |
6743 | ||
6744 | void test(); | |
6745 | ||
6746 | void test() { func<foo>(0); } | |
6747 | ||
6748 | } | |
6749 | ||
6750 | } // namespace cxx11 | |
6751 | ||
6752 | #endif // __cplusplus >= 201103L | |
6753 | ||
6754 | ||
6755 | ||
6756 | _ACEOF | |
6757 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6758 | eval $cachevar=yes | |
6759 | else | |
6760 | eval $cachevar=no | |
6761 | fi | |
6762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6763 | CXX="$ac_save_CXX" | |
6764 | fi | |
6765 | eval ac_res=\$$cachevar | |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6767 | $as_echo "$ac_res" >&6; } | |
6768 | if eval test x\$$cachevar = xyes; then | |
6769 | CXX="$CXX $switch" | |
6770 | if test -n "$CXXCPP" ; then | |
6771 | CXXCPP="$CXXCPP $switch" | |
6772 | fi | |
6773 | ac_success=yes | |
6774 | break | |
6775 | fi | |
6776 | done | |
6777 | if test x$ac_success = xyes; then | |
6778 | break | |
6779 | fi | |
6780 | done | |
6781 | fi | |
7ffcf5d6 | 6782 | |
ffac9597 JM |
6783 | ac_ext=c |
6784 | ac_cpp='$CPP $CPPFLAGS' | |
6785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6788 | ||
6789 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6790 | if test x$ac_success = xno; then | |
6791 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6792 | fi | |
6793 | fi | |
6794 | if test x$ac_success = xno; then | |
6795 | HAVE_CXX11=0 | |
6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6797 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6798 | else | |
6799 | HAVE_CXX11=1 | |
6800 | ||
6801 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6802 | ||
6803 | fi | |
6804 | ||
6805 | ||
7ffcf5d6 TB |
6806 | |
6807 | if test "${build}" != "${host}"; then | |
6808 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6809 | ac_ext=cpp | |
6810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6814 | ac_success=no | |
6815 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6816 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6817 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6818 | CXX="$CXX_FOR_BUILD" | |
6819 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6820 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6822 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6823 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6824 | $as_echo_n "(cached) " >&6 | |
6825 | else | |
6826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6827 | /* end confdefs.h. */ | |
6828 | ||
6829 | ||
6830 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6831 | // Hopefully, this will speed up the test. | |
6832 | ||
6833 | #ifndef __cplusplus | |
6834 | ||
6835 | #error "This is not a C++ compiler" | |
6836 | ||
6837 | #elif __cplusplus < 201103L | |
6838 | ||
6839 | #error "This is not a C++11 compiler" | |
6840 | ||
6841 | #else | |
6842 | ||
6843 | namespace cxx11 | |
6844 | { | |
6845 | ||
6846 | namespace test_static_assert | |
6847 | { | |
6848 | ||
6849 | template <typename T> | |
6850 | struct check | |
6851 | { | |
6852 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6853 | }; | |
6854 | ||
6855 | } | |
6856 | ||
6857 | namespace test_final_override | |
6858 | { | |
6859 | ||
6860 | struct Base | |
6861 | { | |
6862 | virtual ~Base() {} | |
6863 | virtual void f() {} | |
6864 | }; | |
6865 | ||
6866 | struct Derived : public Base | |
6867 | { | |
6868 | virtual ~Derived() override {} | |
6869 | virtual void f() override {} | |
6870 | }; | |
6871 | ||
6872 | } | |
6873 | ||
6874 | namespace test_double_right_angle_brackets | |
6875 | { | |
6876 | ||
6877 | template < typename T > | |
6878 | struct check {}; | |
6879 | ||
6880 | typedef check<void> single_type; | |
6881 | typedef check<check<void>> double_type; | |
6882 | typedef check<check<check<void>>> triple_type; | |
6883 | typedef check<check<check<check<void>>>> quadruple_type; | |
6884 | ||
6885 | } | |
6886 | ||
6887 | namespace test_decltype | |
6888 | { | |
6889 | ||
6890 | int | |
6891 | f() | |
6892 | { | |
6893 | int a = 1; | |
6894 | decltype(a) b = 2; | |
6895 | return a + b; | |
6896 | } | |
6897 | ||
6898 | } | |
6899 | ||
6900 | namespace test_type_deduction | |
6901 | { | |
6902 | ||
6903 | template < typename T1, typename T2 > | |
6904 | struct is_same | |
6905 | { | |
6906 | static const bool value = false; | |
6907 | }; | |
6908 | ||
6909 | template < typename T > | |
6910 | struct is_same<T, T> | |
6911 | { | |
6912 | static const bool value = true; | |
6913 | }; | |
6914 | ||
6915 | template < typename T1, typename T2 > | |
6916 | auto | |
6917 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6918 | { | |
6919 | return a1 + a2; | |
6920 | } | |
6921 | ||
6922 | int | |
6923 | test(const int c, volatile int v) | |
6924 | { | |
6925 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6926 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6927 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6928 | auto ac = c; | |
6929 | auto av = v; | |
6930 | auto sumi = ac + av + 'x'; | |
6931 | auto sumf = ac + av + 1.0; | |
6932 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6933 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6934 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6935 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6936 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6937 | return (sumf > 0.0) ? sumi : add(c, v); | |
6938 | } | |
6939 | ||
6940 | } | |
6941 | ||
6942 | namespace test_noexcept | |
6943 | { | |
6944 | ||
6945 | int f() { return 0; } | |
6946 | int g() noexcept { return 0; } | |
6947 | ||
6948 | static_assert(noexcept(f()) == false, ""); | |
6949 | static_assert(noexcept(g()) == true, ""); | |
6950 | ||
6951 | } | |
6952 | ||
6953 | namespace test_constexpr | |
6954 | { | |
6955 | ||
6956 | template < typename CharT > | |
6957 | unsigned long constexpr | |
6958 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6959 | { | |
6960 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6961 | } | |
6962 | ||
6963 | template < typename CharT > | |
6964 | unsigned long constexpr | |
6965 | strlen_c(const CharT *const s) noexcept | |
6966 | { | |
6967 | return strlen_c_r(s, 0UL); | |
6968 | } | |
6969 | ||
6970 | static_assert(strlen_c("") == 0UL, ""); | |
6971 | static_assert(strlen_c("1") == 1UL, ""); | |
6972 | static_assert(strlen_c("example") == 7UL, ""); | |
6973 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6974 | ||
6975 | } | |
6976 | ||
6977 | namespace test_rvalue_references | |
6978 | { | |
6979 | ||
6980 | template < int N > | |
6981 | struct answer | |
6982 | { | |
6983 | static constexpr int value = N; | |
6984 | }; | |
6985 | ||
6986 | answer<1> f(int&) { return answer<1>(); } | |
6987 | answer<2> f(const int&) { return answer<2>(); } | |
6988 | answer<3> f(int&&) { return answer<3>(); } | |
6989 | ||
6990 | void | |
6991 | test() | |
6992 | { | |
6993 | int i = 0; | |
6994 | const int c = 0; | |
6995 | static_assert(decltype(f(i))::value == 1, ""); | |
6996 | static_assert(decltype(f(c))::value == 2, ""); | |
6997 | static_assert(decltype(f(0))::value == 3, ""); | |
6998 | } | |
6999 | ||
7000 | } | |
7001 | ||
7002 | namespace test_uniform_initialization | |
7003 | { | |
7004 | ||
7005 | struct test | |
7006 | { | |
7007 | static const int zero {}; | |
7008 | static const int one {1}; | |
7009 | }; | |
7010 | ||
7011 | static_assert(test::zero == 0, ""); | |
7012 | static_assert(test::one == 1, ""); | |
7013 | ||
7014 | } | |
7015 | ||
7016 | namespace test_lambdas | |
7017 | { | |
7018 | ||
7019 | void | |
7020 | test1() | |
7021 | { | |
7022 | auto lambda1 = [](){}; | |
7023 | auto lambda2 = lambda1; | |
7024 | lambda1(); | |
7025 | lambda2(); | |
7026 | } | |
7027 | ||
7028 | int | |
7029 | test2() | |
7030 | { | |
7031 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7032 | auto b = []() -> int { return '0'; }(); | |
7033 | auto c = [=](){ return a + b; }(); | |
7034 | auto d = [&](){ return c; }(); | |
7035 | auto e = [a, &b](int x) mutable { | |
7036 | const auto identity = [](int y){ return y; }; | |
7037 | for (auto i = 0; i < a; ++i) | |
7038 | a += b--; | |
7039 | return x + identity(a + b); | |
7040 | }(0); | |
7041 | return a + b + c + d + e; | |
7042 | } | |
7043 | ||
7044 | int | |
7045 | test3() | |
7046 | { | |
7047 | const auto nullary = [](){ return 0; }; | |
7048 | const auto unary = [](int x){ return x; }; | |
7049 | using nullary_t = decltype(nullary); | |
7050 | using unary_t = decltype(unary); | |
7051 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7052 | const auto higher2nd = [unary](nullary_t f1){ | |
7053 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7054 | }; | |
7055 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7056 | } | |
7057 | ||
7058 | } | |
7059 | ||
7060 | namespace test_variadic_templates | |
7061 | { | |
7062 | ||
7063 | template <int...> | |
7064 | struct sum; | |
7065 | ||
7066 | template <int N0, int... N1toN> | |
7067 | struct sum<N0, N1toN...> | |
7068 | { | |
7069 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7070 | }; | |
7071 | ||
7072 | template <> | |
7073 | struct sum<> | |
7074 | { | |
7075 | static constexpr auto value = 0; | |
7076 | }; | |
7077 | ||
7078 | static_assert(sum<>::value == 0, ""); | |
7079 | static_assert(sum<1>::value == 1, ""); | |
7080 | static_assert(sum<23>::value == 23, ""); | |
7081 | static_assert(sum<1, 2>::value == 3, ""); | |
7082 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7083 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7084 | ||
7085 | } | |
7086 | ||
7087 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7088 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7089 | // because of this. | |
7090 | namespace test_template_alias_sfinae | |
7091 | { | |
7092 | ||
7093 | struct foo {}; | |
7094 | ||
7095 | template<typename T> | |
7096 | using member = typename T::member_type; | |
7097 | ||
7098 | template<typename T> | |
7099 | void func(...) {} | |
7100 | ||
7101 | template<typename T> | |
7102 | void func(member<T>*) {} | |
7103 | ||
7104 | void test(); | |
7105 | ||
7106 | void test() { func<foo>(0); } | |
7107 | ||
7108 | } | |
7109 | ||
7110 | } // namespace cxx11 | |
7111 | ||
7112 | #endif // __cplusplus >= 201103L | |
7113 | ||
7114 | ||
7115 | ||
7116 | _ACEOF | |
7117 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7118 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7119 | else | |
7120 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7121 | fi | |
7122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7123 | fi | |
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7125 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7126 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7127 | ac_success=yes | |
7128 | fi | |
7129 | ||
7130 | if test x$ac_success = xno; then | |
7131 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7132 | switch="-std=gnu++${alternative}" | |
7133 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7135 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7136 | if eval \${$cachevar+:} false; then : | |
7137 | $as_echo_n "(cached) " >&6 | |
7138 | else | |
7139 | ac_save_CXX="$CXX" | |
7140 | CXX="$CXX $switch" | |
7141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7142 | /* end confdefs.h. */ | |
7143 | ||
7144 | ||
7145 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7146 | // Hopefully, this will speed up the test. | |
7147 | ||
7148 | #ifndef __cplusplus | |
7149 | ||
7150 | #error "This is not a C++ compiler" | |
7151 | ||
7152 | #elif __cplusplus < 201103L | |
7153 | ||
7154 | #error "This is not a C++11 compiler" | |
7155 | ||
7156 | #else | |
7157 | ||
7158 | namespace cxx11 | |
7159 | { | |
7160 | ||
7161 | namespace test_static_assert | |
7162 | { | |
7163 | ||
7164 | template <typename T> | |
7165 | struct check | |
7166 | { | |
7167 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7168 | }; | |
7169 | ||
7170 | } | |
7171 | ||
7172 | namespace test_final_override | |
7173 | { | |
7174 | ||
7175 | struct Base | |
7176 | { | |
7177 | virtual ~Base() {} | |
7178 | virtual void f() {} | |
7179 | }; | |
7180 | ||
7181 | struct Derived : public Base | |
7182 | { | |
7183 | virtual ~Derived() override {} | |
7184 | virtual void f() override {} | |
7185 | }; | |
7186 | ||
7187 | } | |
7188 | ||
7189 | namespace test_double_right_angle_brackets | |
7190 | { | |
7191 | ||
7192 | template < typename T > | |
7193 | struct check {}; | |
7194 | ||
7195 | typedef check<void> single_type; | |
7196 | typedef check<check<void>> double_type; | |
7197 | typedef check<check<check<void>>> triple_type; | |
7198 | typedef check<check<check<check<void>>>> quadruple_type; | |
7199 | ||
7200 | } | |
7201 | ||
7202 | namespace test_decltype | |
7203 | { | |
7204 | ||
7205 | int | |
7206 | f() | |
7207 | { | |
7208 | int a = 1; | |
7209 | decltype(a) b = 2; | |
7210 | return a + b; | |
7211 | } | |
7212 | ||
7213 | } | |
7214 | ||
7215 | namespace test_type_deduction | |
7216 | { | |
7217 | ||
7218 | template < typename T1, typename T2 > | |
7219 | struct is_same | |
7220 | { | |
7221 | static const bool value = false; | |
7222 | }; | |
7223 | ||
7224 | template < typename T > | |
7225 | struct is_same<T, T> | |
7226 | { | |
7227 | static const bool value = true; | |
7228 | }; | |
7229 | ||
7230 | template < typename T1, typename T2 > | |
7231 | auto | |
7232 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7233 | { | |
7234 | return a1 + a2; | |
7235 | } | |
7236 | ||
7237 | int | |
7238 | test(const int c, volatile int v) | |
7239 | { | |
7240 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7241 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7242 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7243 | auto ac = c; | |
7244 | auto av = v; | |
7245 | auto sumi = ac + av + 'x'; | |
7246 | auto sumf = ac + av + 1.0; | |
7247 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7248 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7249 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7250 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7251 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7252 | return (sumf > 0.0) ? sumi : add(c, v); | |
7253 | } | |
7254 | ||
7255 | } | |
7256 | ||
7257 | namespace test_noexcept | |
7258 | { | |
7259 | ||
7260 | int f() { return 0; } | |
7261 | int g() noexcept { return 0; } | |
7262 | ||
7263 | static_assert(noexcept(f()) == false, ""); | |
7264 | static_assert(noexcept(g()) == true, ""); | |
7265 | ||
7266 | } | |
7267 | ||
7268 | namespace test_constexpr | |
7269 | { | |
7270 | ||
7271 | template < typename CharT > | |
7272 | unsigned long constexpr | |
7273 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7274 | { | |
7275 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7276 | } | |
7277 | ||
7278 | template < typename CharT > | |
7279 | unsigned long constexpr | |
7280 | strlen_c(const CharT *const s) noexcept | |
7281 | { | |
7282 | return strlen_c_r(s, 0UL); | |
7283 | } | |
7284 | ||
7285 | static_assert(strlen_c("") == 0UL, ""); | |
7286 | static_assert(strlen_c("1") == 1UL, ""); | |
7287 | static_assert(strlen_c("example") == 7UL, ""); | |
7288 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7289 | ||
7290 | } | |
7291 | ||
7292 | namespace test_rvalue_references | |
7293 | { | |
7294 | ||
7295 | template < int N > | |
7296 | struct answer | |
7297 | { | |
7298 | static constexpr int value = N; | |
7299 | }; | |
7300 | ||
7301 | answer<1> f(int&) { return answer<1>(); } | |
7302 | answer<2> f(const int&) { return answer<2>(); } | |
7303 | answer<3> f(int&&) { return answer<3>(); } | |
7304 | ||
7305 | void | |
7306 | test() | |
7307 | { | |
7308 | int i = 0; | |
7309 | const int c = 0; | |
7310 | static_assert(decltype(f(i))::value == 1, ""); | |
7311 | static_assert(decltype(f(c))::value == 2, ""); | |
7312 | static_assert(decltype(f(0))::value == 3, ""); | |
7313 | } | |
7314 | ||
7315 | } | |
7316 | ||
7317 | namespace test_uniform_initialization | |
7318 | { | |
7319 | ||
7320 | struct test | |
7321 | { | |
7322 | static const int zero {}; | |
7323 | static const int one {1}; | |
7324 | }; | |
7325 | ||
7326 | static_assert(test::zero == 0, ""); | |
7327 | static_assert(test::one == 1, ""); | |
7328 | ||
7329 | } | |
7330 | ||
7331 | namespace test_lambdas | |
7332 | { | |
7333 | ||
7334 | void | |
7335 | test1() | |
7336 | { | |
7337 | auto lambda1 = [](){}; | |
7338 | auto lambda2 = lambda1; | |
7339 | lambda1(); | |
7340 | lambda2(); | |
7341 | } | |
7342 | ||
7343 | int | |
7344 | test2() | |
7345 | { | |
7346 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7347 | auto b = []() -> int { return '0'; }(); | |
7348 | auto c = [=](){ return a + b; }(); | |
7349 | auto d = [&](){ return c; }(); | |
7350 | auto e = [a, &b](int x) mutable { | |
7351 | const auto identity = [](int y){ return y; }; | |
7352 | for (auto i = 0; i < a; ++i) | |
7353 | a += b--; | |
7354 | return x + identity(a + b); | |
7355 | }(0); | |
7356 | return a + b + c + d + e; | |
7357 | } | |
7358 | ||
7359 | int | |
7360 | test3() | |
7361 | { | |
7362 | const auto nullary = [](){ return 0; }; | |
7363 | const auto unary = [](int x){ return x; }; | |
7364 | using nullary_t = decltype(nullary); | |
7365 | using unary_t = decltype(unary); | |
7366 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7367 | const auto higher2nd = [unary](nullary_t f1){ | |
7368 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7369 | }; | |
7370 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7371 | } | |
7372 | ||
7373 | } | |
7374 | ||
7375 | namespace test_variadic_templates | |
7376 | { | |
7377 | ||
7378 | template <int...> | |
7379 | struct sum; | |
7380 | ||
7381 | template <int N0, int... N1toN> | |
7382 | struct sum<N0, N1toN...> | |
7383 | { | |
7384 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7385 | }; | |
7386 | ||
7387 | template <> | |
7388 | struct sum<> | |
7389 | { | |
7390 | static constexpr auto value = 0; | |
7391 | }; | |
7392 | ||
7393 | static_assert(sum<>::value == 0, ""); | |
7394 | static_assert(sum<1>::value == 1, ""); | |
7395 | static_assert(sum<23>::value == 23, ""); | |
7396 | static_assert(sum<1, 2>::value == 3, ""); | |
7397 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7398 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7399 | ||
7400 | } | |
7401 | ||
7402 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7403 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7404 | // because of this. | |
7405 | namespace test_template_alias_sfinae | |
7406 | { | |
7407 | ||
7408 | struct foo {}; | |
7409 | ||
7410 | template<typename T> | |
7411 | using member = typename T::member_type; | |
7412 | ||
7413 | template<typename T> | |
7414 | void func(...) {} | |
7415 | ||
7416 | template<typename T> | |
7417 | void func(member<T>*) {} | |
7418 | ||
7419 | void test(); | |
7420 | ||
7421 | void test() { func<foo>(0); } | |
7422 | ||
7423 | } | |
7424 | ||
7425 | } // namespace cxx11 | |
7426 | ||
7427 | #endif // __cplusplus >= 201103L | |
7428 | ||
7429 | ||
7430 | ||
7431 | _ACEOF | |
7432 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7433 | eval $cachevar=yes | |
7434 | else | |
7435 | eval $cachevar=no | |
7436 | fi | |
7437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7438 | CXX="$ac_save_CXX" | |
7439 | fi | |
7440 | eval ac_res=\$$cachevar | |
7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7442 | $as_echo "$ac_res" >&6; } | |
7443 | if eval test x\$$cachevar = xyes; then | |
7444 | CXX="$CXX $switch" | |
7445 | if test -n "$CXXCPP" ; then | |
7446 | CXXCPP="$CXXCPP $switch" | |
7447 | fi | |
7448 | ac_success=yes | |
7449 | break | |
7450 | fi | |
7451 | done | |
7452 | fi | |
7453 | ||
7454 | if test x$ac_success = xno; then | |
7455 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7456 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7457 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7459 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7460 | if eval \${$cachevar+:} false; then : | |
7461 | $as_echo_n "(cached) " >&6 | |
7462 | else | |
7463 | ac_save_CXX="$CXX" | |
7464 | CXX="$CXX $switch" | |
7465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7466 | /* end confdefs.h. */ | |
7467 | ||
7468 | ||
7469 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7470 | // Hopefully, this will speed up the test. | |
7471 | ||
7472 | #ifndef __cplusplus | |
7473 | ||
7474 | #error "This is not a C++ compiler" | |
7475 | ||
7476 | #elif __cplusplus < 201103L | |
7477 | ||
7478 | #error "This is not a C++11 compiler" | |
7479 | ||
7480 | #else | |
7481 | ||
7482 | namespace cxx11 | |
7483 | { | |
7484 | ||
7485 | namespace test_static_assert | |
7486 | { | |
7487 | ||
7488 | template <typename T> | |
7489 | struct check | |
7490 | { | |
7491 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7492 | }; | |
7493 | ||
7494 | } | |
7495 | ||
7496 | namespace test_final_override | |
7497 | { | |
7498 | ||
7499 | struct Base | |
7500 | { | |
7501 | virtual ~Base() {} | |
7502 | virtual void f() {} | |
7503 | }; | |
7504 | ||
7505 | struct Derived : public Base | |
7506 | { | |
7507 | virtual ~Derived() override {} | |
7508 | virtual void f() override {} | |
7509 | }; | |
7510 | ||
7511 | } | |
7512 | ||
7513 | namespace test_double_right_angle_brackets | |
7514 | { | |
7515 | ||
7516 | template < typename T > | |
7517 | struct check {}; | |
7518 | ||
7519 | typedef check<void> single_type; | |
7520 | typedef check<check<void>> double_type; | |
7521 | typedef check<check<check<void>>> triple_type; | |
7522 | typedef check<check<check<check<void>>>> quadruple_type; | |
7523 | ||
7524 | } | |
7525 | ||
7526 | namespace test_decltype | |
7527 | { | |
7528 | ||
7529 | int | |
7530 | f() | |
7531 | { | |
7532 | int a = 1; | |
7533 | decltype(a) b = 2; | |
7534 | return a + b; | |
7535 | } | |
7536 | ||
7537 | } | |
7538 | ||
7539 | namespace test_type_deduction | |
7540 | { | |
7541 | ||
7542 | template < typename T1, typename T2 > | |
7543 | struct is_same | |
7544 | { | |
7545 | static const bool value = false; | |
7546 | }; | |
7547 | ||
7548 | template < typename T > | |
7549 | struct is_same<T, T> | |
7550 | { | |
7551 | static const bool value = true; | |
7552 | }; | |
7553 | ||
7554 | template < typename T1, typename T2 > | |
7555 | auto | |
7556 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7557 | { | |
7558 | return a1 + a2; | |
7559 | } | |
7560 | ||
7561 | int | |
7562 | test(const int c, volatile int v) | |
7563 | { | |
7564 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7565 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7566 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7567 | auto ac = c; | |
7568 | auto av = v; | |
7569 | auto sumi = ac + av + 'x'; | |
7570 | auto sumf = ac + av + 1.0; | |
7571 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7572 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7573 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7574 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7575 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7576 | return (sumf > 0.0) ? sumi : add(c, v); | |
7577 | } | |
7578 | ||
7579 | } | |
7580 | ||
7581 | namespace test_noexcept | |
7582 | { | |
7583 | ||
7584 | int f() { return 0; } | |
7585 | int g() noexcept { return 0; } | |
7586 | ||
7587 | static_assert(noexcept(f()) == false, ""); | |
7588 | static_assert(noexcept(g()) == true, ""); | |
7589 | ||
7590 | } | |
7591 | ||
7592 | namespace test_constexpr | |
7593 | { | |
7594 | ||
7595 | template < typename CharT > | |
7596 | unsigned long constexpr | |
7597 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7598 | { | |
7599 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7600 | } | |
7601 | ||
7602 | template < typename CharT > | |
7603 | unsigned long constexpr | |
7604 | strlen_c(const CharT *const s) noexcept | |
7605 | { | |
7606 | return strlen_c_r(s, 0UL); | |
7607 | } | |
7608 | ||
7609 | static_assert(strlen_c("") == 0UL, ""); | |
7610 | static_assert(strlen_c("1") == 1UL, ""); | |
7611 | static_assert(strlen_c("example") == 7UL, ""); | |
7612 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7613 | ||
7614 | } | |
7615 | ||
7616 | namespace test_rvalue_references | |
7617 | { | |
7618 | ||
7619 | template < int N > | |
7620 | struct answer | |
7621 | { | |
7622 | static constexpr int value = N; | |
7623 | }; | |
7624 | ||
7625 | answer<1> f(int&) { return answer<1>(); } | |
7626 | answer<2> f(const int&) { return answer<2>(); } | |
7627 | answer<3> f(int&&) { return answer<3>(); } | |
7628 | ||
7629 | void | |
7630 | test() | |
7631 | { | |
7632 | int i = 0; | |
7633 | const int c = 0; | |
7634 | static_assert(decltype(f(i))::value == 1, ""); | |
7635 | static_assert(decltype(f(c))::value == 2, ""); | |
7636 | static_assert(decltype(f(0))::value == 3, ""); | |
7637 | } | |
7638 | ||
7639 | } | |
7640 | ||
7641 | namespace test_uniform_initialization | |
7642 | { | |
7643 | ||
7644 | struct test | |
7645 | { | |
7646 | static const int zero {}; | |
7647 | static const int one {1}; | |
7648 | }; | |
7649 | ||
7650 | static_assert(test::zero == 0, ""); | |
7651 | static_assert(test::one == 1, ""); | |
7652 | ||
7653 | } | |
7654 | ||
7655 | namespace test_lambdas | |
7656 | { | |
7657 | ||
7658 | void | |
7659 | test1() | |
7660 | { | |
7661 | auto lambda1 = [](){}; | |
7662 | auto lambda2 = lambda1; | |
7663 | lambda1(); | |
7664 | lambda2(); | |
7665 | } | |
7666 | ||
7667 | int | |
7668 | test2() | |
7669 | { | |
7670 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7671 | auto b = []() -> int { return '0'; }(); | |
7672 | auto c = [=](){ return a + b; }(); | |
7673 | auto d = [&](){ return c; }(); | |
7674 | auto e = [a, &b](int x) mutable { | |
7675 | const auto identity = [](int y){ return y; }; | |
7676 | for (auto i = 0; i < a; ++i) | |
7677 | a += b--; | |
7678 | return x + identity(a + b); | |
7679 | }(0); | |
7680 | return a + b + c + d + e; | |
7681 | } | |
7682 | ||
7683 | int | |
7684 | test3() | |
7685 | { | |
7686 | const auto nullary = [](){ return 0; }; | |
7687 | const auto unary = [](int x){ return x; }; | |
7688 | using nullary_t = decltype(nullary); | |
7689 | using unary_t = decltype(unary); | |
7690 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7691 | const auto higher2nd = [unary](nullary_t f1){ | |
7692 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7693 | }; | |
7694 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7695 | } | |
7696 | ||
7697 | } | |
7698 | ||
7699 | namespace test_variadic_templates | |
7700 | { | |
7701 | ||
7702 | template <int...> | |
7703 | struct sum; | |
7704 | ||
7705 | template <int N0, int... N1toN> | |
7706 | struct sum<N0, N1toN...> | |
7707 | { | |
7708 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7709 | }; | |
7710 | ||
7711 | template <> | |
7712 | struct sum<> | |
7713 | { | |
7714 | static constexpr auto value = 0; | |
7715 | }; | |
7716 | ||
7717 | static_assert(sum<>::value == 0, ""); | |
7718 | static_assert(sum<1>::value == 1, ""); | |
7719 | static_assert(sum<23>::value == 23, ""); | |
7720 | static_assert(sum<1, 2>::value == 3, ""); | |
7721 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7722 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7723 | ||
7724 | } | |
7725 | ||
7726 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7727 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7728 | // because of this. | |
7729 | namespace test_template_alias_sfinae | |
7730 | { | |
7731 | ||
7732 | struct foo {}; | |
7733 | ||
7734 | template<typename T> | |
7735 | using member = typename T::member_type; | |
7736 | ||
7737 | template<typename T> | |
7738 | void func(...) {} | |
7739 | ||
7740 | template<typename T> | |
7741 | void func(member<T>*) {} | |
7742 | ||
7743 | void test(); | |
7744 | ||
7745 | void test() { func<foo>(0); } | |
7746 | ||
7747 | } | |
7748 | ||
7749 | } // namespace cxx11 | |
7750 | ||
7751 | #endif // __cplusplus >= 201103L | |
7752 | ||
7753 | ||
7754 | ||
7755 | _ACEOF | |
7756 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7757 | eval $cachevar=yes | |
7758 | else | |
7759 | eval $cachevar=no | |
7760 | fi | |
7761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7762 | CXX="$ac_save_CXX" | |
7763 | fi | |
7764 | eval ac_res=\$$cachevar | |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7766 | $as_echo "$ac_res" >&6; } | |
7767 | if eval test x\$$cachevar = xyes; then | |
7768 | CXX="$CXX $switch" | |
7769 | if test -n "$CXXCPP" ; then | |
7770 | CXXCPP="$CXXCPP $switch" | |
7771 | fi | |
7772 | ac_success=yes | |
7773 | break | |
7774 | fi | |
7775 | done | |
7776 | if test x$ac_success = xyes; then | |
7777 | break | |
7778 | fi | |
7779 | done | |
7780 | fi | |
7781 | CXX_FOR_BUILD="$CXX" | |
7782 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7783 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7784 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7785 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7786 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7787 | ac_ext=c | |
7788 | ac_cpp='$CPP $CPPFLAGS' | |
7789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7792 | ||
7793 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7794 | if test x$ac_success = xno; then | |
7795 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7796 | fi | |
7797 | fi | |
7798 | if test x$ac_success = xno; then | |
7799 | HAVE_CXX11_FOR_BUILD=0 | |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7801 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7802 | else | |
7803 | HAVE_CXX11_FOR_BUILD=1 | |
7804 | ||
7805 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7806 | ||
7807 | fi | |
7808 | ||
7809 | ||
7810 | fi | |
46070488 JM |
7811 | fi |
7812 | ||
592c90ff KG |
7813 | # Used for setting $lt_cv_objdir |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7815 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7816 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7817 | $as_echo_n "(cached) " >&6 |
7818 | else | |
7819 | rm -f .libs 2>/dev/null | |
7820 | mkdir .libs 2>/dev/null | |
7821 | if test -d .libs; then | |
7822 | lt_cv_objdir=.libs | |
7823 | else | |
7824 | # MS-DOS does not allow filenames that begin with a dot. | |
7825 | lt_cv_objdir=_libs | |
7826 | fi | |
7827 | rmdir .libs 2>/dev/null | |
7828 | fi | |
7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7830 | $as_echo "$lt_cv_objdir" >&6; } | |
7831 | objdir=$lt_cv_objdir | |
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | cat >>confdefs.h <<_ACEOF | |
7838 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7839 | _ACEOF | |
7840 | ||
7841 | ||
7842 | ||
acd26225 | 7843 | # Check for GMP, MPFR and MPC |
3a5729ea | 7844 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7845 | gmpinc= |
e69bf64b | 7846 | have_gmp=no |
acd26225 KG |
7847 | |
7848 | # Specify a location for mpc | |
7849 | # check for this first so it ends up on the link line before mpfr. | |
7850 | ||
5213506e RW |
7851 | # Check whether --with-mpc was given. |
7852 | if test "${with_mpc+set}" = set; then : | |
7853 | withval=$with_mpc; | |
7854 | fi | |
acd26225 | 7855 | |
acd26225 | 7856 | |
9965e3cd | 7857 | # Check whether --with-mpc-include was given. |
5213506e RW |
7858 | if test "${with_mpc_include+set}" = set; then : |
7859 | withval=$with_mpc_include; | |
7860 | fi | |
acd26225 | 7861 | |
acd26225 | 7862 | |
9965e3cd | 7863 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7864 | if test "${with_mpc_lib+set}" = set; then : |
7865 | withval=$with_mpc_lib; | |
7866 | fi | |
acd26225 | 7867 | |
acd26225 KG |
7868 | |
7869 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7870 | gmplibs="-L$with_mpc/lib $gmplibs" |
7871 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7872 | fi |
7873 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7874 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7875 | fi |
7876 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7877 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7878 | fi |
7879 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7880 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7881 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7882 | # Do not test the mpc version. Assume that it is sufficient, since |
7883 | # it is in the source tree, and the library has not been built yet | |
7884 | # but it would be included on the link line in the version check below | |
7885 | # hence making the test fail. | |
3a5729ea | 7886 | have_gmp=yes |
acd26225 | 7887 | fi |
e69bf64b | 7888 | |
bebf829d PB |
7889 | # Specify a location for mpfr |
7890 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 7891 | |
5213506e RW |
7892 | # Check whether --with-mpfr-dir was given. |
7893 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 7894 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
7895 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
7896 | fi | |
7897 | ||
bebf829d PB |
7898 | |
7899 | ||
5213506e RW |
7900 | # Check whether --with-mpfr was given. |
7901 | if test "${with_mpfr+set}" = set; then : | |
7902 | withval=$with_mpfr; | |
7903 | fi | |
1c710c3c | 7904 | |
bebf829d | 7905 | |
9965e3cd | 7906 | # Check whether --with-mpfr-include was given. |
5213506e RW |
7907 | if test "${with_mpfr_include+set}" = set; then : |
7908 | withval=$with_mpfr_include; | |
7909 | fi | |
1c710c3c | 7910 | |
8a877c9c | 7911 | |
9965e3cd | 7912 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
7913 | if test "${with_mpfr_lib+set}" = set; then : |
7914 | withval=$with_mpfr_lib; | |
7915 | fi | |
8a877c9c | 7916 | |
bebf829d PB |
7917 | |
7918 | if test "x$with_mpfr" != x; then | |
7919 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 7920 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 7921 | fi |
8a877c9c | 7922 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 7923 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
7924 | fi |
7925 | if test "x$with_mpfr_lib" != x; then | |
7926 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
7927 | fi | |
e69bf64b | 7928 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
7929 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
7930 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 7931 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 7932 | fi |
00f35794 BE |
7933 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
7934 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
7935 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
7936 | # Do not test the mpfr version. Assume that it is sufficient, since |
7937 | # it is in the source tree, and the library has not been built yet | |
7938 | # but it would be included on the link line in the version check below | |
7939 | # hence making the test fail. | |
7940 | have_gmp=yes | |
7941 | fi | |
bebf829d | 7942 | |
6de9cd9a | 7943 | # Specify a location for gmp |
1c710c3c | 7944 | |
5213506e RW |
7945 | # Check whether --with-gmp-dir was given. |
7946 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 7947 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
7948 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
7949 | fi | |
7950 | ||
6de9cd9a | 7951 | |
6de9cd9a | 7952 | |
5213506e RW |
7953 | # Check whether --with-gmp was given. |
7954 | if test "${with_gmp+set}" = set; then : | |
7955 | withval=$with_gmp; | |
7956 | fi | |
1c710c3c | 7957 | |
6de9cd9a | 7958 | |
9965e3cd | 7959 | # Check whether --with-gmp-include was given. |
5213506e RW |
7960 | if test "${with_gmp_include+set}" = set; then : |
7961 | withval=$with_gmp_include; | |
7962 | fi | |
1c710c3c | 7963 | |
8a877c9c | 7964 | |
9965e3cd | 7965 | # Check whether --with-gmp-lib was given. |
5213506e RW |
7966 | if test "${with_gmp_lib+set}" = set; then : |
7967 | withval=$with_gmp_lib; | |
7968 | fi | |
8a877c9c KG |
7969 | |
7970 | ||
6de9cd9a | 7971 | |
bebf829d PB |
7972 | if test "x$with_gmp" != x; then |
7973 | gmplibs="-L$with_gmp/lib $gmplibs" | |
7974 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 7975 | fi |
8a877c9c KG |
7976 | if test "x$with_gmp_include" != x; then |
7977 | gmpinc="-I$with_gmp_include $gmpinc" | |
7978 | fi | |
7979 | if test "x$with_gmp_lib" != x; then | |
7980 | gmplibs="-L$with_gmp_lib $gmplibs" | |
7981 | fi | |
e69bf64b | 7982 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 7983 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 7984 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 7985 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 7986 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 7987 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
7988 | # Do not test the gmp version. Assume that it is sufficient, since |
7989 | # it is in the source tree, and the library has not been built yet | |
7990 | # but it would be included on the link line in the version check below | |
7991 | # hence making the test fail. | |
7992 | have_gmp=yes | |
7993 | fi | |
6de9cd9a | 7994 | |
d943d7c4 | 7995 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
7996 | have_gmp=yes |
7997 | saved_CFLAGS="$CFLAGS" | |
7998 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
7999 | # Check for the recommended and required versions of GMP. |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8001 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
8002 | |
8003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
8004 | /* end confdefs.h. */ |
8005 | #include "gmp.h" | |
8006 | int | |
8007 | main () | |
8008 | { | |
8009 | ||
8010 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8011 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8012 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8013 | choke me |
8014 | #endif | |
8015 | ||
8016 | ; | |
8017 | return 0; | |
8018 | } | |
8019 | _ACEOF | |
8020 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8022 | /* end confdefs.h. */ |
362c6d2f | 8023 | #include <gmp.h> |
1c710c3c DJ |
8024 | int |
8025 | main () | |
8026 | { | |
6de9cd9a | 8027 | |
362c6d2f KG |
8028 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8029 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8030 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8031 | choke me |
8032 | #endif | |
1c710c3c DJ |
8033 | |
8034 | ; | |
8035 | return 0; | |
8036 | } | |
8037 | _ACEOF | |
5213506e RW |
8038 | if ac_fn_c_try_compile "$LINENO"; then : |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8040 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8041 | else |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8043 | $as_echo "buggy but acceptable" >&6; } | |
8044 | fi | |
8045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8046 | else |
5213506e RW |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8048 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8049 | fi |
5213506e | 8050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8051 | |
acd26225 | 8052 | # If we have GMP, check the MPFR version. |
e69bf64b | 8053 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8054 | # Check for the recommended and required versions of MPFR. |
8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8056 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8058 | /* end confdefs.h. */ |
70ec446f | 8059 | #include <gmp.h> |
e69bf64b | 8060 | #include <mpfr.h> |
1c710c3c DJ |
8061 | int |
8062 | main () | |
8063 | { | |
e48d66a9 | 8064 | |
8be34204 | 8065 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8066 | choke me |
8067 | #endif | |
1c710c3c DJ |
8068 | |
8069 | ; | |
8070 | return 0; | |
8071 | } | |
8072 | _ACEOF | |
5213506e RW |
8073 | if ac_fn_c_try_compile "$LINENO"; then : |
8074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8075 | /* end confdefs.h. */ |
a3993f33 | 8076 | #include <gmp.h> |
e69bf64b | 8077 | #include <mpfr.h> |
1c710c3c DJ |
8078 | int |
8079 | main () | |
8080 | { | |
a3993f33 | 8081 | |
8be34204 | 8082 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8083 | choke me |
8084 | #endif | |
acd26225 KG |
8085 | |
8086 | ; | |
8087 | return 0; | |
8088 | } | |
8089 | _ACEOF | |
5213506e RW |
8090 | if ac_fn_c_try_compile "$LINENO"; then : |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8092 | $as_echo "yes" >&6; } | |
acd26225 | 8093 | else |
5213506e RW |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8095 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8096 | fi |
5213506e | 8097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8098 | else |
5213506e RW |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8100 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8101 | fi |
5213506e | 8102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8103 | fi |
8104 | ||
8105 | # Check for the MPC header version. | |
3a5729ea | 8106 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 8107 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8109 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8111 | /* end confdefs.h. */ |
8112 | #include <mpc.h> | |
8113 | int | |
8114 | main () | |
8115 | { | |
8116 | ||
362c6d2f KG |
8117 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8118 | choke me | |
8119 | #endif | |
8120 | ||
8121 | ; | |
8122 | return 0; | |
8123 | } | |
8124 | _ACEOF | |
8125 | if ac_fn_c_try_compile "$LINENO"; then : | |
8126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8127 | /* end confdefs.h. */ | |
8128 | #include <mpc.h> | |
8129 | int | |
8130 | main () | |
8131 | { | |
8132 | ||
8133 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8134 | choke me |
8135 | #endif | |
8136 | ||
8137 | ; | |
8138 | return 0; | |
8139 | } | |
8140 | _ACEOF | |
5213506e RW |
8141 | if ac_fn_c_try_compile "$LINENO"; then : |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8143 | $as_echo "yes" >&6; } |
362c6d2f KG |
8144 | else |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8146 | $as_echo "buggy but acceptable" >&6; } | |
8147 | fi | |
8148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8149 | else |
5213506e | 8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8151 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8152 | fi |
5213506e | 8153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8154 | fi |
8155 | ||
8156 | # Now check the MPFR library. | |
8157 | if test x"$have_gmp" = xyes; then | |
8158 | saved_LIBS="$LIBS" | |
8159 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8161 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 8162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8163 | /* end confdefs.h. */ |
3a5729ea | 8164 | #include <mpc.h> |
acd26225 KG |
8165 | int |
8166 | main () | |
8167 | { | |
8168 | ||
8169 | mpfr_t n; | |
8170 | mpfr_t x; | |
3a5729ea | 8171 | mpc_t c; |
acd26225 KG |
8172 | int t; |
8173 | mpfr_init (n); | |
8174 | mpfr_init (x); | |
90ca6847 TB |
8175 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8176 | mpfr_erfc (n, x, MPFR_RNDN); | |
8177 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8178 | mpfr_clear(n); |
8179 | mpfr_clear(x); | |
8180 | mpc_init2 (c, 53); | |
8181 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8182 | mpc_cosh (c, c, MPC_RNDNN); | |
8183 | mpc_pow (c, c, c, MPC_RNDNN); | |
8184 | mpc_acosh (c, c, MPC_RNDNN); | |
8185 | mpc_clear (c); | |
1c710c3c DJ |
8186 | |
8187 | ; | |
8188 | return 0; | |
8189 | } | |
8190 | _ACEOF | |
5213506e RW |
8191 | if ac_fn_c_try_link "$LINENO"; then : |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8193 | $as_echo "yes" >&6; } | |
1c710c3c | 8194 | else |
5213506e RW |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8196 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8197 | fi |
5213506e RW |
8198 | rm -f core conftest.err conftest.$ac_objext \ |
8199 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8200 | LIBS="$saved_LIBS" |
8201 | fi | |
8202 | ||
e69bf64b | 8203 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8204 | |
362c6d2f KG |
8205 | # The library versions listed in the error message below should match |
8206 | # the HARD-minimums enforced above. | |
e69bf64b | 8207 | if test x$have_gmp != xyes; then |
8be34204 | 8208 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
8209 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8210 | their locations. Source code for these libraries can be found at | |
8211 | their respective hosting sites as well as at | |
aeebd94c | 8212 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
8213 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8214 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8215 | make sure that you have installed both the libraries and the header | |
8216 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 8217 | fi |
70ec446f KG |
8218 | fi |
8219 | ||
acd26225 KG |
8220 | # Flags needed for both GMP, MPFR and/or MPC. |
8221 | ||
8222 | ||
6de9cd9a DN |
8223 | |
8224 | ||
8225 | ||
9e3eba15 | 8226 | |
0ff2d841 | 8227 | |
0b21f5d3 | 8228 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8229 | |
0b21f5d3 EB |
8230 | # Check whether --with-stage1-libs was given. |
8231 | if test "${with_stage1_libs+set}" = set; then : | |
8232 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8233 | stage1_libs= | |
00020c16 | 8234 | else |
0b21f5d3 | 8235 | stage1_libs=$withval |
00020c16 ILT |
8236 | fi |
8237 | else | |
5dc85f7e | 8238 | stage1_libs= |
5213506e RW |
8239 | fi |
8240 | ||
00020c16 ILT |
8241 | |
8242 | ||
aac9103b TT |
8243 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8244 | # default is yes if gcc is being built; no otherwise. The reason for | |
8245 | # this default is that gdb is sometimes linked against GNU Source | |
8246 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8247 | # this case, -static-libstdc++ will cause crashes. | |
8248 | ||
8249 | # Check whether --with-static-standard-libraries was given. | |
8250 | if test "${with_static_standard_libraries+set}" = set; then : | |
8251 | withval=$with_static_standard_libraries; | |
8252 | else | |
8253 | with_static_standard_libraries=auto | |
8254 | fi | |
8255 | ||
8256 | if test "$with_static_standard_libraries" = auto; then | |
8257 | with_static_standard_libraries=$have_compiler | |
8258 | fi | |
8259 | ||
0b21f5d3 | 8260 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8261 | |
0b21f5d3 EB |
8262 | # Check whether --with-stage1-ldflags was given. |
8263 | if test "${with_stage1_ldflags+set}" = set; then : | |
8264 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8265 | stage1_ldflags= | |
00020c16 | 8266 | else |
0b21f5d3 | 8267 | stage1_ldflags=$withval |
00020c16 ILT |
8268 | fi |
8269 | else | |
0b21f5d3 EB |
8270 | stage1_ldflags= |
8271 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8272 | # if supported. But if the user explicitly specified the libraries to use, | |
8273 | # trust that they are doing what they want. | |
aac9103b TT |
8274 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8275 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8276 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8277 | fi | |
5213506e RW |
8278 | fi |
8279 | ||
00020c16 ILT |
8280 | |
8281 | ||
5dc85f7e | 8282 | # Libraries to use for stage2 and later builds. |
00020c16 | 8283 | |
5213506e RW |
8284 | # Check whether --with-boot-libs was given. |
8285 | if test "${with_boot_libs+set}" = set; then : | |
8286 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8287 | poststage1_libs= |
8288 | else | |
8289 | poststage1_libs=$withval | |
8290 | fi | |
8291 | else | |
5dc85f7e | 8292 | poststage1_libs= |
5213506e RW |
8293 | fi |
8294 | ||
00020c16 ILT |
8295 | |
8296 | ||
ed2eaa9f ILT |
8297 | # Linker flags to use for stage2 and later builds. |
8298 | ||
8299 | # Check whether --with-boot-ldflags was given. | |
8300 | if test "${with_boot_ldflags+set}" = set; then : | |
8301 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8302 | poststage1_ldflags= | |
8303 | else | |
8304 | poststage1_ldflags=$withval | |
8305 | fi | |
8306 | else | |
8307 | poststage1_ldflags= | |
bec93d73 ILT |
8308 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8309 | # statically. But if the user explicitly specified the libraries to | |
8310 | # use, trust that they are doing what they want. | |
8311 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8312 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8313 | fi | |
8314 | fi | |
8315 | ||
8316 | ||
8317 | ||
e357a5e0 | 8318 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8319 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8320 | |
8321 | ||
33ad93b9 RG |
8322 | # Check whether --with-isl was given. |
8323 | if test "${with_isl+set}" = set; then : | |
8324 | withval=$with_isl; | |
5213506e | 8325 | fi |
f8bf9252 | 8326 | |
f8bf9252 | 8327 | |
eae1a5d4 | 8328 | # Treat --without-isl as a request to disable |
625afa23 | 8329 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8330 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8331 | # Check for isl |
625afa23 RG |
8332 | |
8333 | ||
33ad93b9 RG |
8334 | # Check whether --with-isl-include was given. |
8335 | if test "${with_isl_include+set}" = set; then : | |
8336 | withval=$with_isl_include; | |
5213506e RW |
8337 | fi |
8338 | ||
f8bf9252 | 8339 | |
33ad93b9 RG |
8340 | # Check whether --with-isl-lib was given. |
8341 | if test "${with_isl_lib+set}" = set; then : | |
8342 | withval=$with_isl_lib; | |
5213506e | 8343 | fi |
f8bf9252 | 8344 | |
f8bf9252 | 8345 | |
33ad93b9 RG |
8346 | # Check whether --enable-isl-version-check was given. |
8347 | if test "${enable_isl_version_check+set}" = set; then : | |
8348 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8349 | else | |
8350 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8351 | fi |
8352 | ||
8353 | ||
33ad93b9 RG |
8354 | # Initialize isllibs and islinc. |
8355 | case $with_isl in | |
8356 | no) | |
8357 | isllibs= | |
8358 | islinc= | |
8359 | ;; | |
8360 | "" | yes) | |
8361 | ;; | |
8362 | *) | |
8363 | isllibs="-L$with_isl/lib" | |
8364 | islinc="-I$with_isl/include" | |
8365 | ;; | |
8366 | esac | |
8367 | if test "x${with_isl_include}" != x ; then | |
8368 | islinc="-I$with_isl_include" | |
8369 | fi | |
8370 | if test "x${with_isl_lib}" != x; then | |
8371 | isllibs="-L$with_isl_lib" | |
8372 | fi | |
8373 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8374 | && test -d ${srcdir}/isl; then | |
8375 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8376 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8377 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8379 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8380 | fi |
7d32a440 | 8381 | |
eae1a5d4 RG |
8382 | isllibs="${isllibs} -lisl" |
8383 | ||
7d32a440 | 8384 | |
7d32a440 | 8385 | |
9847828b RB |
8386 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8387 | _isl_saved_CFLAGS=$CFLAGS | |
8388 | _isl_saved_LDFLAGS=$LDFLAGS | |
8389 | _isl_saved_LIBS=$LIBS | |
8390 | ||
8391 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8392 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8393 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8394 | |
f877b3ad RB |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8396 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8398 | /* end confdefs.h. */ |
f877b3ad | 8399 | #include <isl/schedule.h> |
622dbadf BC |
8400 | int |
8401 | main () | |
8402 | { | |
f877b3ad | 8403 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8404 | ; |
8405 | return 0; | |
8406 | } | |
8407 | _ACEOF | |
8408 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8409 | gcc_cv_isl=yes |
622dbadf BC |
8410 | else |
8411 | gcc_cv_isl=no | |
8412 | fi | |
8413 | rm -f core conftest.err conftest.$ac_objext \ | |
8414 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8416 | $as_echo "$gcc_cv_isl" >&6; } | |
8417 | ||
560d18d3 | 8418 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8420 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8421 | fi |
8422 | ||
9847828b RB |
8423 | CFLAGS=$_isl_saved_CFLAGS |
8424 | LDFLAGS=$_isl_saved_LDFLAGS | |
8425 | LIBS=$_isl_saved_LIBS | |
8426 | fi | |
8427 | ||
8428 | ||
f8bf9252 | 8429 | |
f8bf9252 | 8430 | |
33ad93b9 RG |
8431 | |
8432 | ||
33ad93b9 RG |
8433 | if test "x${with_isl}" = xno; then |
8434 | graphite_requested=no | |
8435 | elif test "x${with_isl}" != x \ | |
8436 | || test "x${with_isl_include}" != x \ | |
8437 | || test "x${with_isl_lib}" != x ; then | |
8438 | graphite_requested=yes | |
8439 | else | |
8440 | graphite_requested=no | |
7d32a440 | 8441 | fi |
d789184e | 8442 | |
d789184e SP |
8443 | |
8444 | ||
33ad93b9 RG |
8445 | if test "${gcc_cv_isl}" = no ; then |
8446 | isllibs= | |
8447 | islinc= | |
8448 | fi | |
8449 | ||
8450 | if test "${graphite_requested}" = yes \ | |
8451 | && test "x${isllibs}" = x \ | |
8452 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8453 | |
22e05272 | 8454 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8455 | fi |
f8bf9252 | 8456 | |
d32ef397 | 8457 | |
d32ef397 AS |
8458 | fi |
8459 | ||
e357a5e0 | 8460 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8461 | if test "x$with_isl" = xno || |
625afa23 | 8462 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8463 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8464 | islinc= |
32d024bf RG |
8465 | fi |
8466 | ||
625afa23 RG |
8467 | |
8468 | ||
8469 | ||
d7f09764 DN |
8470 | # Check for LTO support. |
8471 | # Check whether --enable-lto was given. | |
8472 | if test "${enable_lto+set}" = set; then : | |
8473 | enableval=$enable_lto; enable_lto=$enableval | |
8474 | else | |
8475 | enable_lto=yes; default_enable_lto=yes | |
8476 | fi | |
8477 | ||
8478 | ||
7413962d | 8479 | |
9a02962b DK |
8480 | |
8481 | ||
8482 | target_elf=no | |
8483 | case $target in | |
8484 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8485 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8486 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8487 | nvptx-*-none) |
9a02962b DK |
8488 | target_elf=no |
8489 | ;; | |
8490 | *) | |
8491 | target_elf=yes | |
8492 | ;; | |
8493 | esac | |
8494 | ||
8495 | if test $target_elf = yes; then : | |
48215350 DK |
8496 | # ELF platforms build the lto-plugin always. |
8497 | build_lto_plugin=yes | |
9a02962b | 8498 | |
9a02962b DK |
8499 | else |
8500 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8501 | case $target in |
deeba76a | 8502 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8503 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8504 | *) enable_lto=no ;; |
8505 | esac | |
9a02962b | 8506 | else |
db50fe7d IS |
8507 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8508 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8509 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8510 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8511 | # -flto it won't be needed until after installation anyway. | |
8512 | case $target in | |
9e530bcd | 8513 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8514 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8515 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8516 | fi |
8517 | ;; | |
8518 | esac | |
8519 | fi | |
1cd0b716 | 8520 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8521 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8522 | case $target in |
48215350 | 8523 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8524 | *) ;; |
8525 | esac | |
48215350 | 8526 | |
9a02962b DK |
8527 | fi |
8528 | ||
d7f09764 | 8529 | |
45b3824d TS |
8530 | # Check whether --enable-linker-plugin-configure-flags was given. |
8531 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8532 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8533 | else | |
8534 | extra_linker_plugin_configure_flags= | |
8535 | fi | |
8536 | ||
8537 | ||
8538 | # Check whether --enable-linker-plugin-flags was given. | |
8539 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8540 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8541 | else | |
8542 | extra_linker_plugin_flags= | |
8543 | fi | |
8544 | ||
8545 | ||
8546 | ||
cdfee50a NS |
8547 | # Enable --enable-host-shared. |
8548 | # Checked early to determine whether jit is an 'all' language | |
8549 | # Check whether --enable-host-shared was given. | |
8550 | if test "${enable_host_shared+set}" = set; then : | |
8551 | enableval=$enable_host_shared; host_shared=$enableval | |
a1d2b162 IS |
8552 | case $target in |
8553 | x86_64-*-darwin* | aarch64-*-darwin*) | |
8554 | if test x$host_shared != xyes ; then | |
8555 | # PIC is the default, and actually cannot be switched off. | |
8556 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8557 | host_shared=yes | |
8558 | fi ;; | |
8559 | *) ;; | |
8560 | esac | |
cdfee50a | 8561 | else |
a1d2b162 IS |
8562 | case $target in |
8563 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; | |
8564 | *) host_shared=no ;; | |
8565 | esac | |
cdfee50a NS |
8566 | fi |
8567 | ||
8568 | ||
f8bf9252 | 8569 | |
0823efed | 8570 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8571 | stage1_languages=,c, |
2805b53a | 8572 | |
00020c16 | 8573 | # Target libraries that we bootstrap. |
ad1e5170 | 8574 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8575 | |
55ffb5ed NN |
8576 | # Figure out what language subdirectories are present. |
8577 | # Look if the user specified --enable-languages="..."; if not, use | |
8578 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8579 | # go away some day. | |
8580 | # NB: embedded tabs in this IF block -- do not untabify | |
8581 | if test -d ${srcdir}/gcc; then | |
8582 | if test x"${enable_languages+set}" != xset; then | |
8583 | if test x"${LANGUAGES+set}" = xset; then | |
8584 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8585 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8586 | else |
cdfee50a | 8587 | enable_languages=default |
55ffb5ed NN |
8588 | fi |
8589 | else | |
8590 | if test x"${enable_languages}" = x || | |
8591 | test x"${enable_languages}" = xyes; | |
8592 | then | |
6b1786aa | 8593 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8594 | exit 1 |
8595 | fi | |
8596 | fi | |
8597 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8598 | ||
7f26dfa3 FXC |
8599 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8600 | # and make the substitution. | |
8601 | case ,${enable_languages}, in | |
8602 | *,f95,*) | |
6b1786aa | 8603 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8604 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8605 | ;; | |
8606 | esac | |
8607 | ||
0823efed DN |
8608 | # If bootstrapping, C++ must be enabled. |
8609 | case ",$enable_languages,:$enable_bootstrap" in | |
8610 | *,c++,*:*) ;; | |
8611 | *:yes) | |
ff3ac0f4 ILT |
8612 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8613 | enable_languages="${enable_languages},c++" | |
8614 | else | |
22e05272 | 8615 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8616 | fi |
8617 | ;; | |
8618 | esac | |
8619 | ||
55ffb5ed NN |
8620 | # First scan to see if an enabled language requires some other language. |
8621 | # We assume that a given config-lang.in will list all the language | |
8622 | # front ends it requires, even if some are required indirectly. | |
8623 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8624 | case ${lang_frag} in | |
8625 | ..) ;; | |
8626 | # The odd quoting in the next line works around | |
8627 | # an apparent bug in bash 1.12 on linux. | |
8628 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8629 | *) | |
69ecd18f ILT |
8630 | # From the config-lang.in, get $language, $lang_requires, and |
8631 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8632 | language= |
8633 | lang_requires= | |
69ecd18f | 8634 | lang_requires_boot_languages= |
d4360477 NS |
8635 | # set srcdir during sourcing lang_frag to the gcc dir. |
8636 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8637 | # polutes this shell | |
8638 | saved_srcdir=${srcdir} | |
8639 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8640 | srcdir=${saved_srcdir} | |
69ecd18f | 8641 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8642 | case ,${enable_languages}, in |
8643 | *,$other,*) ;; | |
cdfee50a | 8644 | *,default,*) ;; |
55ffb5ed NN |
8645 | *,all,*) ;; |
8646 | *,$language,*) | |
8647 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8648 | enable_languages="${enable_languages},${other}" | |
8649 | ;; | |
8650 | esac | |
8651 | done | |
69ecd18f ILT |
8652 | for other in ${lang_requires_boot_languages} ; do |
8653 | if test "$other" != "c"; then | |
8654 | case ,${enable_stage1_languages}, in | |
8655 | *,$other,*) ;; | |
cdfee50a | 8656 | *,default,*) ;; |
69ecd18f ILT |
8657 | *,all,*) ;; |
8658 | *) | |
8659 | case ,${enable_languages}, in | |
8660 | *,$language,*) | |
8661 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8662 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8663 | ;; | |
8664 | esac | |
8665 | ;; | |
8666 | esac | |
8667 | fi | |
8668 | done | |
55ffb5ed NN |
8669 | ;; |
8670 | esac | |
8671 | done | |
8672 | ||
e1888513 | 8673 | new_enable_languages=,c, |
d7f09764 DN |
8674 | |
8675 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8676 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8677 | case ,${enable_languages}, in |
8678 | *,lto,*) ;; | |
8679 | *) enable_languages="${enable_languages},lto" ;; | |
8680 | esac | |
1cd0b716 | 8681 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8682 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8683 | fi |
8684 | fi | |
8685 | ||
426c1eb0 TS |
8686 | # If we're building an offloading compiler, add the LTO front end. |
8687 | if test x"$enable_as_accelerator_for" != x ; then | |
8688 | case ,${enable_languages}, in | |
8689 | *,lto,*) ;; | |
8690 | *) enable_languages="${enable_languages},lto" ;; | |
8691 | esac | |
8692 | fi | |
8693 | ||
cdfee50a | 8694 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8695 | potential_languages=,c, |
55ffb5ed | 8696 | |
4da3b0f8 ILT |
8697 | enabled_target_libs= |
8698 | disabled_target_libs= | |
8699 | ||
55ffb5ed NN |
8700 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8701 | case ${lang_frag} in | |
8702 | ..) ;; | |
8703 | # The odd quoting in the next line works around | |
8704 | # an apparent bug in bash 1.12 on linux. | |
8705 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8706 | *) | |
1c710c3c | 8707 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8708 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8709 | language= |
8710 | target_libs= | |
8711 | lang_dirs= | |
1546bb64 | 8712 | subdir_requires= |
e1888513 PB |
8713 | boot_language=no |
8714 | build_by_default=yes | |
d4360477 NS |
8715 | # set srcdir during sourcing. See above about save & restore |
8716 | saved_srcdir=${srcdir} | |
8717 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8718 | srcdir=${saved_srcdir} | |
e1888513 PB |
8719 | if test x${language} = x; then |
8720 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8721 | exit 1 | |
8722 | fi | |
8723 | ||
78767fd9 | 8724 | if test "$language" = "c++"; then |
0823efed | 8725 | boot_language=yes |
00020c16 ILT |
8726 | fi |
8727 | ||
178f875a | 8728 | add_this_lang=no |
cdfee50a NS |
8729 | # C is always enabled, so no need to add it again |
8730 | if test "$language" != "c"; then | |
8731 | case ,${enable_languages}, in | |
8732 | *,${language},*) | |
8733 | # Language was explicitly selected; include it | |
d4a10d0a | 8734 | add_this_lang=yes |
cdfee50a NS |
8735 | ;; |
8736 | *,all,*) | |
8737 | # All languages are enabled | |
8738 | add_this_lang=all | |
8739 | ;; | |
8740 | *,default,*) | |
8741 | # 'default' was selected, select it if it is a default language | |
178f875a | 8742 | add_this_lang=${build_by_default} |
cdfee50a NS |
8743 | ;; |
8744 | esac | |
8745 | fi | |
6de9cd9a | 8746 | |
1546bb64 | 8747 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8748 | for i in $subdir_requires; do |
b6348cb3 | 8749 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8750 | case ${add_this_lang} in |
8751 | yes) | |
1546bb64 | 8752 | # Specifically requested language; tell them. |
22e05272 | 8753 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8754 | ;; |
cdfee50a NS |
8755 | all) |
8756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8757 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8758 | add_this_lang=unsupported | |
8759 | ;; | |
1546bb64 PB |
8760 | *) |
8761 | # Silently disable. | |
e1888513 | 8762 | add_this_lang=unsupported |
1546bb64 PB |
8763 | ;; |
8764 | esac | |
8765 | done | |
8766 | ||
e1888513 | 8767 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8768 | case ${add_this_lang}:${language}:${have_gnat} in |
8769 | yes:ada:no) | |
e1888513 | 8770 | # Specifically requested language; tell them. |
22e05272 | 8771 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8772 | ;; |
cdfee50a NS |
8773 | all:ada:no) |
8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8775 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8776 | add_this_lang=unsupported | |
8777 | ;; | |
e1888513 PB |
8778 | *:ada:no) |
8779 | # Silently disable. | |
8780 | add_this_lang=unsupported | |
8781 | ;; | |
8782 | esac | |
8783 | ||
5fee5ec3 IB |
8784 | # Disable D if no preexisting GDC is available. |
8785 | case ${add_this_lang}:${language}:${have_gdc} in | |
8786 | yes:d:no) | |
8787 | # Specifically requested language; tell them. | |
8788 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8789 | ;; | |
8790 | all:d:no) | |
8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8792 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8793 | add_this_lang=unsupported | |
8794 | ;; | |
8795 | *:d:no) | |
8796 | # Silently disable. | |
8797 | add_this_lang=unsupported | |
8798 | ;; | |
8799 | esac | |
8800 | ||
cdfee50a | 8801 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8802 | # but not if building for Mingw. All code in Windows |
8803 | # is position independent code (PIC). | |
c83027f3 NB |
8804 | case $target in |
8805 | *mingw*) ;; | |
8806 | *) | |
8807 | case ${add_this_lang}:${language}:${host_shared} in | |
8808 | yes:jit:no) | |
8809 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8810 | as_fn_error $? " |
cdfee50a NS |
8811 | Enabling language \"jit\" requires --enable-host-shared. |
8812 | ||
8813 | --enable-host-shared typically slows the rest of the compiler down by | |
8814 | a few %, so you must explicitly enable it. | |
8815 | ||
8816 | If you want to build both the jit and the regular compiler, it is often | |
8817 | best to do this via two separate configure/builds, in separate | |
8818 | directories, to avoid imposing the performance cost of | |
8819 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8820 | ;; |
8821 | all:jit:no) | |
8822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8823 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8824 | add_this_lang=unsupported |
8825 | ;; | |
8826 | *:jit:no) | |
8827 | # Silently disable. | |
8828 | add_this_lang=unsupported | |
8829 | ;; | |
8830 | esac | |
8831 | ;; | |
8832 | esac | |
cdfee50a NS |
8833 | |
8834 | # Disable a language that is unsupported by the target. | |
8835 | case "${add_this_lang}: $unsupported_languages " in | |
8836 | no:*) ;; | |
8837 | unsupported:*) ;; | |
8838 | *:*" $language "*) | |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8840 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8841 | add_this_lang=unsupported |
4fab7234 HPN |
8842 | ;; |
8843 | esac | |
8844 | ||
6de9cd9a | 8845 | case $add_this_lang in |
e1888513 | 8846 | unsupported) |
55ffb5ed | 8847 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8848 | disabled_target_libs="$disabled_target_libs $target_libs" |
8849 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8850 | ;; |
e1888513 PB |
8851 | no) |
8852 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8853 | disabled_target_libs="$disabled_target_libs $target_libs" |
8854 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8855 | potential_languages="${potential_languages}${language}," |
8856 | ;; | |
cdfee50a | 8857 | all|yes) |
e1888513 PB |
8858 | new_enable_languages="${new_enable_languages}${language}," |
8859 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8860 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8861 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8862 | case "${boot_language}:,$enable_stage1_languages," in |
8863 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8864 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8865 | case ",$stage1_languages," in |
8866 | *,$language,* | ,yes, | ,all,) ;; | |
8867 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8868 | esac | |
00020c16 | 8869 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 8870 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
8871 | ;; |
8872 | esac | |
8873 | ;; | |
55ffb5ed NN |
8874 | esac |
8875 | ;; | |
8876 | esac | |
8877 | done | |
8878 | ||
4da3b0f8 ILT |
8879 | # Add target libraries which are only needed for disabled languages |
8880 | # to noconfigdirs. | |
8881 | if test -n "$disabled_target_libs"; then | |
8882 | for dir in $disabled_target_libs; do | |
8883 | case " $enabled_target_libs " in | |
8884 | *" ${dir} "*) ;; | |
8885 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8886 | esac | |
8887 | done | |
8888 | fi | |
8889 | ||
5213506e RW |
8890 | # Check whether --enable-stage1-languages was given. |
8891 | if test "${enable_stage1_languages+set}" = set; then : | |
8892 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8893 | ,no,|,,) |
8894 | # Set it to something that will have no effect in the loop below | |
8895 | enable_stage1_languages=c ;; | |
8896 | ,yes,) | |
8897 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8898 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8899 | *,all,*) | |
8900 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8901 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8902 | esac | |
8903 | ||
8904 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8905 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
8906 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
8907 | case $potential_languages in | |
8908 | *,$i,*) | |
8909 | case $stage1_languages in | |
8910 | *,$i,*) ;; | |
8911 | *) stage1_languages="$stage1_languages$i," ;; | |
8912 | esac ;; | |
8913 | *) | |
8914 | case $missing_languages in | |
8915 | *,$i,*) ;; | |
8916 | *) missing_languages="$missing_languages$i," ;; | |
8917 | esac ;; | |
8918 | esac | |
8919 | done | |
5213506e RW |
8920 | fi |
8921 | ||
e1888513 PB |
8922 | |
8923 | # Remove leading/trailing commas that were added for simplicity | |
8924 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 8925 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
8926 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
8927 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
8928 | ||
55ffb5ed | 8929 | if test "x$missing_languages" != x; then |
22e05272 | 8930 | as_fn_error $? " |
0cf085e4 | 8931 | The following requested languages could not be built: ${missing_languages} |
5213506e | 8932 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 8933 | fi |
55ffb5ed NN |
8934 | if test "x$new_enable_languages" != "x$enable_languages"; then |
8935 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 8936 | enable_languages="$new_enable_languages" |
55ffb5ed | 8937 | fi |
e1888513 | 8938 | |
1c710c3c | 8939 | |
b2eaac4a | 8940 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
8941 | fi |
8942 | ||
27079765 AH |
8943 | # Handle --disable-<component> generically. |
8944 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
8945 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
8946 | varname=`echo $dirname | sed -e s/+/_/g` |
8947 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
8948 | noconfigdirs="$noconfigdirs $dir" |
8949 | fi | |
8950 | done | |
8951 | ||
43c40f3e RO |
8952 | # Check for Boehm's garbage collector |
8953 | # Check whether --enable-objc-gc was given. | |
8954 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
8955 | enableval=$enable_objc_gc; |
8956 | fi | |
8957 | ||
8958 | ||
8959 | # Check whether --with-target-bdw-gc was given. | |
8960 | if test "${with_target_bdw_gc+set}" = set; then : | |
8961 | withval=$with_target_bdw_gc; | |
8962 | fi | |
8963 | ||
8964 | ||
8965 | # Check whether --with-target-bdw-gc-include was given. | |
8966 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
8967 | withval=$with_target_bdw_gc_include; | |
8968 | fi | |
8969 | ||
8970 | ||
8971 | # Check whether --with-target-bdw-gc-lib was given. | |
8972 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
8973 | withval=$with_target_bdw_gc_lib; | |
8974 | fi | |
8975 | ||
8976 | ||
8977 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
8979 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
8980 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
8982 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
8983 | else |
8984 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 8985 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 8986 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 8987 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
8988 | else |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
8990 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
8991 | fi | |
8992 | fi | |
43c40f3e RO |
8993 | esac |
8994 | ||
5e9d6aa4 | 8995 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 8996 | case ,${enable_languages}, in |
1007a55c | 8997 | *,c++,*) |
5e9d6aa4 | 8998 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
8999 | case "${noconfigdirs}" in |
9000 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9001 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9002 | ;; |
9003 | *) ;; | |
9004 | esac | |
9005 | ;; | |
99776ebd | 9006 | *) |
5e9d6aa4 | 9007 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9008 | ;; |
9009 | esac | |
9010 | ||
dc614a83 AB |
9011 | # If gcc/ is not in the source tree then we'll not be building a |
9012 | # target compiler, assume in that case we don't want to build any | |
9013 | # target libraries or tools. | |
9014 | # | |
9015 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9016 | # this configure script, but don't always have target tools available. | |
9017 | if test ! -d ${srcdir}/gcc; then | |
9018 | skipdirs="${skipdirs} ${target_configdirs}" | |
9019 | fi | |
9020 | ||
ee6a22df L |
9021 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9022 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9023 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9024 | ||
9025 | notsupp="" | |
9026 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9027 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9028 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9029 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9030 | if test -r $srcdir/$dirname/configure ; then | |
9031 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9032 | true | |
9033 | else | |
9034 | notsupp="$notsupp $dir" | |
9035 | fi | |
9036 | fi | |
9037 | fi | |
ee6a22df L |
9038 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9039 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9040 | if test -r $srcdir/$dirname/configure ; then | |
9041 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9042 | true | |
9043 | else | |
9044 | notsupp="$notsupp $dir" | |
9045 | fi | |
9046 | fi | |
9047 | fi | |
55ffb5ed NN |
9048 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9049 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9050 | if test -r $srcdir/$dirname/configure ; then | |
9051 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9052 | true | |
9053 | else | |
9054 | notsupp="$notsupp $dir" | |
9055 | fi | |
9056 | fi | |
9057 | fi | |
9058 | done | |
9059 | ||
55ffb5ed NN |
9060 | # Quietly strip out all directories which aren't configurable in this tree. |
9061 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9062 | # is now the case. | |
23f6b2f9 PB |
9063 | build_configdirs_all="$build_configdirs" |
9064 | build_configdirs= | |
9065 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9066 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9067 | if test -f ${srcdir}/$j/configure ; then |
9068 | build_configdirs="${build_configdirs} $i" | |
9069 | fi | |
9070 | done | |
9071 | ||
55ffb5ed NN |
9072 | configdirs_all="$configdirs" |
9073 | configdirs= | |
9074 | for i in ${configdirs_all} ; do | |
9075 | if test -f ${srcdir}/$i/configure ; then | |
9076 | configdirs="${configdirs} $i" | |
9077 | fi | |
9078 | done | |
23f6b2f9 | 9079 | |
55ffb5ed NN |
9080 | target_configdirs_all="$target_configdirs" |
9081 | target_configdirs= | |
9082 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9083 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9084 | if test -f ${srcdir}/$j/configure ; then |
9085 | target_configdirs="${target_configdirs} $i" | |
9086 | fi | |
9087 | done | |
9088 | ||
45b3824d TS |
9089 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9090 | # so we have to add it after the preceding checks. | |
9091 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9092 | then | |
9093 | case " $configdirs " in | |
9094 | *" libiberty "*) | |
9095 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9096 | configdirs="$configdirs libiberty-linker-plugin" | |
9097 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9098 | --with-libiberty=../libiberty-linker-plugin";; | |
9099 | *) | |
22e05272 | 9100 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9101 | esac |
9102 | fi | |
9103 | ||
fca38047 TS |
9104 | # Sometimes we have special requirements for the host libiberty. |
9105 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 9106 | extra_host_zlib_configure_flags= |
fca38047 TS |
9107 | case " $configdirs " in |
9108 | *" lto-plugin "* | *" libcc1 "*) | |
9109 | # When these are to be built as shared libraries, the same applies to | |
9110 | # libiberty. | |
9111 | extra_host_libiberty_configure_flags=--enable-shared | |
9112 | ;; | |
1c01ebf6 L |
9113 | *" bfd "*) |
9114 | # When bfd is to be built as a shared library, the same applies to | |
9115 | # zlib. | |
9116 | if test "$enable_shared" = "yes"; then | |
9117 | extra_host_zlib_configure_flags=--enable-host-shared | |
9118 | fi | |
9119 | ;; | |
fca38047 TS |
9120 | esac |
9121 | ||
9122 | ||
1c01ebf6 | 9123 | |
55ffb5ed NN |
9124 | # Produce a warning message for the subdirs we can't configure. |
9125 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9126 | # FSF releases, it's important to let people know when their machine isn't | |
9127 | # supported by the one or two programs in a package. | |
9128 | ||
9129 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9130 | # If $appdirs is non-empty, at least one of those directories must still | |
9131 | # be configured, or we error out. (E.g., if the gas release supports a | |
9132 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9133 | # pretend that all is well.) | |
9134 | if test -n "$appdirs" ; then | |
9135 | for dir in $appdirs ; do | |
9136 | if test -r $dir/Makefile.in ; then | |
9137 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9138 | appdirs="" | |
9139 | break | |
9140 | fi | |
23f6b2f9 | 9141 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9142 | appdirs="" |
9143 | break | |
9144 | fi | |
9145 | fi | |
9146 | done | |
9147 | if test -n "$appdirs" ; then | |
9148 | echo "*** This configuration is not supported by this package." 1>&2 | |
9149 | exit 1 | |
9150 | fi | |
9151 | fi | |
9152 | # Okay, some application will build, or we don't care to check. Still | |
9153 | # notify of subdirs not getting built. | |
9154 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9155 | echo " ${notsupp}" 1>&2 | |
9156 | echo " (Any other directories should still work fine.)" 1>&2 | |
9157 | fi | |
9158 | ||
9159 | case "$host" in | |
9160 | *msdosdjgpp*) | |
9161 | enable_gdbtk=no ;; | |
9162 | esac | |
9163 | ||
c3a86da9 DJ |
9164 | # To find our prefix, in gcc_cv_tool_prefix. |
9165 | ||
9166 | # The user is always right. | |
9167 | if test "${PATH_SEPARATOR+set}" != set; then | |
9168 | echo "#! /bin/sh" >conf$$.sh | |
9169 | echo "exit 0" >>conf$$.sh | |
9170 | chmod +x conf$$.sh | |
9171 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9172 | PATH_SEPARATOR=';' | |
9173 | else | |
9174 | PATH_SEPARATOR=: | |
9175 | fi | |
9176 | rm -f conf$$.sh | |
9177 | fi | |
9178 | ||
9179 | ||
3c36aa6b JJ |
9180 | get_gcc_base_ver="cat" |
9181 | ||
9182 | # Check whether --with-gcc-major-version-only was given. | |
9183 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9184 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9185 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9186 | fi |
9187 | ||
9188 | fi | |
9189 | ||
9190 | ||
9191 | ||
9192 | ||
9193 | ||
c3a86da9 DJ |
9194 | |
9195 | if test "x$exec_prefix" = xNONE; then | |
9196 | if test "x$prefix" = xNONE; then | |
9197 | gcc_cv_tool_prefix=$ac_default_prefix | |
9198 | else | |
9199 | gcc_cv_tool_prefix=$prefix | |
9200 | fi | |
9201 | else | |
9202 | gcc_cv_tool_prefix=$exec_prefix | |
9203 | fi | |
9204 | ||
9205 | # If there is no compiler in the tree, use the PATH only. In any | |
9206 | # case, if there is no compiler in the tree nobody should use | |
9207 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9208 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9209 | if test x$with_gcc_major_version_only = xyes ; then |
9210 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9211 | else | |
9212 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9213 | fi | |
c3a86da9 DJ |
9214 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9215 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9216 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9217 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9218 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9219 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9220 | else | |
9221 | gcc_cv_tool_dirs= | |
9222 | fi | |
9223 | ||
9224 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9225 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9226 | fi | |
9227 | ||
9228 | ||
9229 | ||
55ffb5ed NN |
9230 | copy_dirs= |
9231 | ||
1c710c3c | 9232 | |
5213506e RW |
9233 | # Check whether --with-build-sysroot was given. |
9234 | if test "${with_build_sysroot+set}" = set; then : | |
9235 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9236 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9237 | fi | |
9238 | else | |
9239 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9240 | fi |
526635cb MM |
9241 | |
9242 | ||
c8aea42c | 9243 | |
5213506e RW |
9244 | |
9245 | # Check whether --with-debug-prefix-map was given. | |
9246 | if test "${with_debug_prefix_map+set}" = set; then : | |
9247 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9248 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9249 | for debug_map in $withval; do | |
9250 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9251 | done | |
9252 | fi | |
9253 | else | |
9254 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9255 | fi |
9256 | ||
c8aea42c PB |
9257 | |
9258 | ||
1c8bd6a3 PB |
9259 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9260 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9261 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9262 | # We want to ensure that TARGET libraries (which we know are built with | |
9263 | # gcc) are built with "-O2 -g", so include those options when setting | |
9264 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9265 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9266 | if test "x${is_cross_compiler}" = xyes; then |
9267 | CFLAGS_FOR_TARGET="-g -O2" | |
9268 | else | |
9269 | CFLAGS_FOR_TARGET=$CFLAGS | |
9270 | case " $CFLAGS " in | |
9271 | *" -O2 "*) ;; | |
9272 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9273 | esac | |
9274 | case " $CFLAGS " in | |
9275 | *" -g "* | *" -g3 "*) ;; | |
9276 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9277 | esac | |
9278 | fi | |
1c8bd6a3 PB |
9279 | fi |
9280 | ||
9281 | ||
9282 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9283 | if test "x${is_cross_compiler}" = xyes; then |
9284 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9285 | else | |
9286 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9287 | case " $CXXFLAGS " in | |
9288 | *" -O2 "*) ;; | |
9289 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9290 | esac | |
9291 | case " $CXXFLAGS " in | |
9292 | *" -g "* | *" -g3 "*) ;; | |
9293 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9294 | esac | |
9295 | fi | |
1c8bd6a3 PB |
9296 | fi |
9297 | ||
9298 | ||
6f57bdf6 DK |
9299 | |
9300 | ||
55ffb5ed NN |
9301 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9302 | # the named directory are copied to $(tooldir)/sys-include. | |
9303 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9304 | if test x${is_cross_compiler} = xno ; then | |
9305 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9306 | exit 1 | |
9307 | fi | |
9308 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9309 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9310 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9311 | fi |
9312 | fi | |
9313 | ||
9314 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9315 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9316 | # are permitted. | |
9317 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9318 | if test x${is_cross_compiler} = xno ; then | |
9319 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9320 | exit 1 | |
9321 | fi | |
9322 | if test x"${with_libs}" != xyes ; then | |
9323 | # Copy the libraries in reverse order, so that files in the first named | |
9324 | # library override files in subsequent libraries. | |
c3a86da9 | 9325 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9326 | for l in ${with_libs}; do |
1c710c3c | 9327 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9328 | done |
9329 | fi | |
9330 | fi | |
9331 | ||
d7f09764 | 9332 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9333 | # |
9334 | # This is done by determining whether or not the appropriate directory | |
9335 | # is available, and by checking whether or not specific configurations | |
9336 | # have requested that this magic not happen. | |
1c710c3c DJ |
9337 | # |
9338 | # The command line options always override the explicit settings in | |
6b1786aa | 9339 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9340 | # |
1c710c3c | 9341 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9342 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9343 | # --without-gnu-ld options for the configure script. Similarly, if |
9344 | # the default is to use the included zlib and you don't want to do that, | |
9345 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9346 | |
9347 | if test x${use_gnu_as} = x && | |
9348 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9349 | with_gnu_as=yes | |
9350 | extra_host_args="$extra_host_args --with-gnu-as" | |
9351 | fi | |
9352 | ||
9353 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9354 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9355 | with_gnu_ld=yes |
9356 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9357 | fi | |
9358 | ||
d7f09764 DN |
9359 | if test x${use_included_zlib} = x && |
9360 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9361 | : | |
9362 | else | |
9363 | with_system_zlib=yes | |
9364 | extra_host_args="$extra_host_args --with-system-zlib" | |
9365 | fi | |
9366 | ||
e8b05380 PB |
9367 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9368 | # can detect this case. | |
9369 | ||
9370 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9371 | with_newlib=yes | |
9372 | extra_host_args="$extra_host_args --with-newlib" | |
9373 | fi | |
9374 | ||
55ffb5ed NN |
9375 | # Handle ${copy_dirs} |
9376 | set fnord ${copy_dirs} | |
9377 | shift | |
9378 | while test $# != 0 ; do | |
9379 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9380 | : | |
9381 | else | |
9382 | echo Copying $1 to $2 | |
9383 | ||
9384 | # Use the install script to create the directory and all required | |
9385 | # parent directories. | |
9386 | if test -d $2 ; then | |
9387 | : | |
9388 | else | |
9389 | echo >config.temp | |
9390 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9391 | fi | |
9392 | ||
9393 | # Copy the directory, assuming we have tar. | |
9394 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9395 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9396 | ||
9397 | # It is the responsibility of the user to correctly adjust all | |
9398 | # symlinks. If somebody can figure out how to handle them correctly | |
9399 | # here, feel free to add the code. | |
9400 | ||
9401 | echo $1 > $2/COPIED | |
9402 | fi | |
9403 | shift; shift | |
9404 | done | |
9405 | ||
e8b05380 PB |
9406 | # Determine a target-dependent exec_prefix that the installed |
9407 | # gcc will search in. Keep this list sorted by triplet, with | |
9408 | # the *-*-osname triplets last. | |
9409 | md_exec_prefix= | |
9410 | case "${target}" in | |
30b74385 | 9411 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9412 | md_exec_prefix=/dev/env/DJDIR/bin |
9413 | ;; | |
e8b05380 | 9414 | *-*-hpux* | \ |
e8b05380 | 9415 | *-*-nto-qnx* | \ |
6de66370 | 9416 | *-*-solaris2*) |
e8b05380 PB |
9417 | md_exec_prefix=/usr/ccs/bin |
9418 | ;; | |
9419 | esac | |
9420 | ||
671aa708 NN |
9421 | extra_arflags_for_target= |
9422 | extra_nmflags_for_target= | |
9423 | extra_ranlibflags_for_target= | |
9424 | target_makefile_frag=/dev/null | |
9425 | case "${target}" in | |
58e24147 AM |
9426 | spu-*-*) |
9427 | target_makefile_frag="config/mt-spu" | |
9428 | ;; | |
d896cc4d | 9429 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9430 | target_makefile_frag="config/mt-sde" |
9431 | ;; | |
1ec3b87b RS |
9432 | mipsisa*-*-elfoabi*) |
9433 | target_makefile_frag="config/mt-mips-elfoabi" | |
9434 | ;; | |
08d0963a RS |
9435 | mips*-*-*linux* | mips*-*-gnu*) |
9436 | target_makefile_frag="config/mt-mips-gnu" | |
9437 | ;; | |
707f1839 SL |
9438 | nios2-*-elf*) |
9439 | target_makefile_frag="config/mt-nios2-elf" | |
9440 | ;; | |
76052545 EB |
9441 | *-*-linux-android*) |
9442 | target_makefile_frag="config/mt-android" | |
9443 | ;; | |
416ac4d4 | 9444 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9445 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9446 | ;; |
9447 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9448 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9449 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9450 | # harmless if we're using GNU nm or ar. | |
9451 | extra_arflags_for_target=" -X32_64" | |
9452 | extra_nmflags_for_target=" -B -X32_64" | |
9453 | ;; | |
671aa708 NN |
9454 | esac |
9455 | ||
9456 | alphaieee_frag=/dev/null | |
9457 | case $target in | |
9458 | alpha*-*-*) | |
9459 | # This just makes sure to use the -mieee option to build target libs. | |
9460 | # This should probably be set individually by each library. | |
9461 | alphaieee_frag="config/mt-alphaieee" | |
9462 | ;; | |
9463 | esac | |
9464 | ||
9465 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9466 | # the target libraries, similarly if it is not specified, use -Os | |
9467 | # on selected platforms. | |
9468 | ospace_frag=/dev/null | |
9469 | case "${enable_target_optspace}:${target}" in | |
9470 | yes:*) | |
9471 | ospace_frag="config/mt-ospace" | |
9472 | ;; | |
9473 | :d30v-*) | |
9474 | ospace_frag="config/mt-d30v" | |
9475 | ;; | |
d9063947 | 9476 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9477 | ospace_frag="config/mt-ospace" |
9478 | ;; | |
9479 | no:* | :*) | |
9480 | ;; | |
9481 | *) | |
9482 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9483 | ;; | |
9484 | esac | |
9485 | ||
671aa708 NN |
9486 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9487 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9488 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9489 | build_tooldir=${tooldir} |
9490 | ||
671aa708 NN |
9491 | # Create a .gdbinit file which runs the one in srcdir |
9492 | # and tells GDB to look there for source files. | |
9493 | ||
9494 | if test -r ${srcdir}/.gdbinit ; then | |
9495 | case ${srcdir} in | |
9496 | .) ;; | |
9497 | *) cat > ./.gdbinit <<EOF | |
9498 | # ${NO_EDIT} | |
9499 | dir ${srcdir} | |
9500 | dir . | |
9501 | source ${srcdir}/.gdbinit | |
9502 | EOF | |
9503 | ;; | |
9504 | esac | |
9505 | fi | |
9506 | ||
671aa708 NN |
9507 | # Make sure that the compiler is able to generate an executable. If it |
9508 | # can't, we are probably in trouble. We don't care whether we can run the | |
9509 | # executable--we might be using a cross compiler--we only care whether it | |
9510 | # can be created. At this point the main configure script has set CC. | |
9511 | we_are_ok=no | |
9512 | echo "int main () { return 0; }" > conftest.c | |
9513 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9514 | if test $? = 0 ; then | |
9515 | if test -s conftest || test -s conftest.exe ; then | |
9516 | we_are_ok=yes | |
9517 | fi | |
1c710c3c | 9518 | fi |
671aa708 NN |
9519 | case $we_are_ok in |
9520 | no) | |
9521 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9522 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9523 | rm -f conftest* | |
9524 | exit 1 | |
9525 | ;; | |
9526 | esac | |
9527 | rm -f conftest* | |
9528 | ||
d89f0ad6 | 9529 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9530 | case "${host}" in |
9531 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9532 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9533 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9534 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9535 | esac | |
9536 | ||
d89f0ad6 AL |
9537 | # On systems where the dynamic library environment variable is PATH, |
9538 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9539 | # built executables to PATH. | |
9540 | if test "$RPATH_ENVVAR" = PATH; then | |
9541 | GCC_SHLIB_SUBDIR=/shlib | |
9542 | else | |
9543 | GCC_SHLIB_SUBDIR= | |
9544 | fi | |
9545 | ||
beeda1d9 JJ |
9546 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9547 | case $enable_bootstrap in | |
9548 | yes) | |
9549 | bootstrap_suffix=bootstrap | |
9550 | BUILD_CONFIG=bootstrap-debug | |
9551 | ;; | |
9552 | no) | |
9553 | bootstrap_suffix=no-bootstrap | |
9554 | BUILD_CONFIG= | |
9555 | ;; | |
9556 | esac | |
9557 | ||
9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9559 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9560 | ||
9561 | ||
9562 | # Check whether --with-build-config was given. | |
9563 | if test "${with_build_config+set}" = set; then : | |
9564 | withval=$with_build_config; case $with_build_config in | |
9565 | yes) with_build_config= ;; | |
9566 | no) with_build_config= BUILD_CONFIG= ;; | |
9567 | esac | |
9568 | fi | |
9569 | ||
9570 | ||
9571 | if test "x${with_build_config}" != x; then | |
9572 | BUILD_CONFIG=$with_build_config | |
9573 | else | |
9574 | case $BUILD_CONFIG in | |
9575 | bootstrap-debug) | |
9576 | if echo "int f (void) { return 0; }" > conftest.c && | |
9577 | ${CC} -c conftest.c && | |
9578 | mv conftest.o conftest.o.g0 && | |
9579 | ${CC} -c -g conftest.c && | |
9580 | mv conftest.o conftest.o.g && | |
9581 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9582 | : | |
9583 | else | |
9584 | BUILD_CONFIG= | |
9585 | fi | |
9586 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9587 | ;; | |
9588 | esac | |
9589 | fi | |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9591 | $as_echo "$BUILD_CONFIG" >&6; } | |
9592 | ||
9593 | ||
9594 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9596 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9597 | # Check whether --enable-vtable-verify was given. | |
9598 | if test "${enable_vtable_verify+set}" = set; then : | |
9599 | enableval=$enable_vtable_verify; case "$enableval" in | |
9600 | yes) enable_vtable_verify=yes ;; | |
9601 | no) enable_vtable_verify=no ;; | |
9602 | *) enable_vtable_verify=no;; | |
9603 | esac | |
9604 | else | |
9605 | enable_vtable_verify=no | |
9606 | fi | |
9607 | ||
9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9609 | $as_echo "$enable_vtable_verify" >&6; } | |
9610 | ||
671aa708 NN |
9611 | # Record target_configdirs and the configure arguments for target and |
9612 | # build configuration in Makefile. | |
9613 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9614 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9615 | bootstrap_fixincludes=no |
671aa708 | 9616 | |
ad1e5170 JR |
9617 | # If we are building libgomp, bootstrap it. |
9618 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9619 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9620 | fi | |
9621 | ||
beeda1d9 JJ |
9622 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9623 | # or bootstrap-ubsan, bootstrap it. | |
9624 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9625 | case "$BUILD_CONFIG" in | |
170e618e | 9626 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9627 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9628 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9629 | ;; |
9630 | esac | |
ac8701fe L |
9631 | fi |
9632 | ||
beeda1d9 JJ |
9633 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9634 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9635 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9636 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9637 | fi | |
9638 | ||
5fee5ec3 IB |
9639 | # If we are building libatomic and the list of enabled languages includes the |
9640 | # D frontend, bootstrap it. | |
9641 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9642 | case ,${enable_languages}, in | |
9643 | *,d,*) | |
9644 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9645 | ;; | |
9646 | esac | |
9647 | fi | |
9648 | ||
671aa708 NN |
9649 | # Determine whether gdb needs tk/tcl or not. |
9650 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9651 | # and in that case we want gdb to be built without tk. Ugh! | |
9652 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9653 | # so we should be able to put the 'maybe's in unconditionally and | |
9654 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9655 | # 100% sure that that's safe though. | |
e914a571 | 9656 | |
b4f96efe | 9657 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9658 | case "$enable_gdbtk" in |
9659 | no) | |
9660 | GDB_TK="" ;; | |
e914a571 AC |
9661 | yes) |
9662 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9663 | *) |
e914a571 AC |
9664 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9665 | # distro. Eventually someone will fix this and move Insight, nee | |
9666 | # gdbtk to a separate directory. | |
9667 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9668 | GDB_TK="${gdb_tk}" | |
9669 | else | |
9670 | GDB_TK="" | |
9671 | fi | |
9672 | ;; | |
671aa708 | 9673 | esac |
ef9db8d5 DJ |
9674 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9675 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9676 | |
f9d09df0 TT |
9677 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9678 | # else does, only include them if one of these is built. The Makefile | |
9679 | # provides the ordering, so it's enough here to add to the list. | |
9680 | case " ${configdirs} " in | |
9681 | *\ gdb\ *) | |
9682 | configdirs="${configdirs} gnulib gdbsupport" | |
9683 | ;; | |
9684 | *\ gdbserver\ *) | |
9685 | configdirs="${configdirs} gnulib gdbsupport" | |
9686 | ;; | |
f14c9bd4 MF |
9687 | *\ sim\ *) |
9688 | configdirs="${configdirs} gnulib" | |
9689 | ;; | |
f9d09df0 | 9690 | esac |
98e5be21 | 9691 | |
60975492 | 9692 | # Strip out unwanted targets. |
8b87bb96 NN |
9693 | |
9694 | # While at that, we remove Makefiles if we were started for recursive | |
9695 | # configuration, so that the top-level Makefile reconfigures them, | |
9696 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9697 | |
3e54529c RW |
9698 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9699 | # but now we're fixing up the Makefile ourselves with the additional | |
9700 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9701 | # extrasub-{build,host,target} not because there is any reason to split | |
9702 | # the substitutions up that way, but only to remain below the limit of | |
9703 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9704 | |
9705 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9706 | # configure will not warn you at all. | |
8b87bb96 | 9707 | |
79cd2b23 RW |
9708 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9709 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9710 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9711 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9712 | ;; |
9713 | esac | |
9714 | ||
3e54529c | 9715 | extrasub_build= |
23f6b2f9 | 9716 | for module in ${build_configdirs} ; do |
5607edfd PB |
9717 | if test -z "${no_recursion}" \ |
9718 | && test -f ${build_subdir}/${module}/Makefile; then | |
9719 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9720 | rm -f ${build_subdir}/${module}/Makefile | |
9721 | fi | |
3e54529c | 9722 | extrasub_build="$extrasub_build |
5607edfd PB |
9723 | /^@if build-$module\$/d |
9724 | /^@endif build-$module\$/d | |
da34ca3f | 9725 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9726 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9727 | /^@endif build-$module-$bootstrap_suffix\$/d |
9728 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9729 | done |
3e54529c | 9730 | extrasub_host= |
5607edfd | 9731 | for module in ${configdirs} ; do |
a6fbc1e2 | 9732 | if test -z "${no_recursion}"; then |
f063a9ed | 9733 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9734 | if test -f ${file}; then |
9735 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9736 | rm -f ${file} | |
9737 | fi | |
9738 | done | |
5607edfd | 9739 | fi |
9e1c8fc1 JJ |
9740 | case ${module},${bootstrap_fixincludes} in |
9741 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9742 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9743 | esac | |
3e54529c | 9744 | extrasub_host="$extrasub_host |
5607edfd PB |
9745 | /^@if $module\$/d |
9746 | /^@endif $module\$/d | |
da34ca3f | 9747 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9748 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9749 | /^@endif $module-$host_bootstrap_suffix\$/d |
9750 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9751 | done |
3e54529c | 9752 | extrasub_target= |
5607edfd PB |
9753 | for module in ${target_configdirs} ; do |
9754 | if test -z "${no_recursion}" \ | |
9755 | && test -f ${target_subdir}/${module}/Makefile; then | |
9756 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9757 | rm -f ${target_subdir}/${module}/Makefile | |
9758 | fi | |
00020c16 ILT |
9759 | |
9760 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9761 | case $bootstrap_target_libs in | |
9762 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9763 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9764 | esac | |
9765 | ||
3e54529c | 9766 | extrasub_target="$extrasub_target |
5607edfd PB |
9767 | /^@if target-$module\$/d |
9768 | /^@endif target-$module\$/d | |
da34ca3f | 9769 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9770 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9771 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9772 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9773 | done |
9774 | ||
3e54529c RW |
9775 | # Do the final fixup along with target modules. |
9776 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9777 | /^@if /,/^@endif /d |
9778 | /^@unless /d | |
9779 | /^@endunless /d" | |
671aa708 NN |
9780 | |
9781 | # Create the serialization dependencies. This uses a temporary file. | |
9782 | ||
5213506e RW |
9783 | # Check whether --enable-serial-configure was given. |
9784 | if test "${enable_serial_configure+set}" = set; then : | |
9785 | enableval=$enable_serial_configure; | |
9786 | fi | |
ade82b16 AO |
9787 | |
9788 | ||
bf1d3e81 NN |
9789 | case ${enable_serial_configure} in |
9790 | yes) | |
9791 | enable_serial_build_configure=yes | |
9792 | enable_serial_host_configure=yes | |
9793 | enable_serial_target_configure=yes | |
9794 | ;; | |
9795 | esac | |
9796 | ||
671aa708 NN |
9797 | # These force 'configure's to be done one at a time, to avoid problems |
9798 | # with contention over a shared config.cache. | |
9799 | rm -f serdep.tmp | |
ade82b16 | 9800 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9801 | olditem= |
bf1d3e81 | 9802 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9803 | for item in ${build_configdirs} ; do |
9804 | case ${olditem} in | |
9805 | "") ;; | |
ade82b16 | 9806 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9807 | esac |
9808 | olditem=${item} | |
9809 | done | |
9810 | olditem= | |
bf1d3e81 | 9811 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9812 | for item in ${configdirs} ; do |
9813 | case ${olditem} in | |
9814 | "") ;; | |
ade82b16 | 9815 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9816 | esac |
9817 | olditem=${item} | |
9818 | done | |
9819 | olditem= | |
bf1d3e81 | 9820 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9821 | for item in ${target_configdirs} ; do |
9822 | case ${olditem} in | |
9823 | "") ;; | |
ade82b16 | 9824 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9825 | esac |
9826 | olditem=${item} | |
9827 | done | |
9828 | serialization_dependencies=serdep.tmp | |
9829 | ||
9830 | ||
ade82b16 | 9831 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9832 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9833 | # might not want to pass down to subconfigures. The exception being |
9834 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9835 | # files altogether, and which should be passed on to subconfigures. | |
9836 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9837 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9838 | baseargs= |
29a63921 | 9839 | tbaseargs= |
1c710c3c DJ |
9840 | keep_next=no |
9841 | skip_next=no | |
9842 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9843 | for ac_arg |
9844 | do | |
1c710c3c DJ |
9845 | if test X"$skip_next" = X"yes"; then |
9846 | skip_next=no | |
9847 | continue | |
9848 | fi | |
9849 | if test X"$keep_next" = X"yes"; then | |
9850 | case $ac_arg in | |
9851 | *\'*) | |
9852 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9853 | esac | |
9854 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9855 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9856 | keep_next=no |
9857 | continue | |
9858 | fi | |
9859 | ||
9860 | # Handle separated arguments. Based on the logic generated by | |
9861 | # autoconf 2.59. | |
9862 | case $ac_arg in | |
9863 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9864 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9865 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9866 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9867 | separate_arg=no | |
9868 | ;; | |
9869 | -*) | |
9870 | separate_arg=yes | |
9871 | ;; | |
9872 | *) | |
9873 | separate_arg=no | |
9874 | ;; | |
9875 | esac | |
9876 | ||
29a63921 AO |
9877 | skip_targ=no |
9878 | case $ac_arg in | |
9879 | ||
9880 | --with-* | --without-*) | |
9881 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9882 | ||
9883 | case $libopt in | |
9884 | *[-_]include) | |
9885 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9886 | ;; | |
9887 | *[-_]lib) | |
9888 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9889 | ;; | |
9890 | *) | |
9891 | lib=$libopt | |
9892 | ;; | |
9893 | esac | |
9894 | ||
9895 | ||
9896 | case $lib in | |
4a9bb2aa | 9897 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9898 | # If we're processing --with-$lib, --with-$lib-include or |
9899 | # --with-$lib-lib, for one of the libs above, and target is | |
9900 | # different from host, don't pass the current argument to any | |
9901 | # target library's configure. | |
9902 | if test x$is_cross_compiler = xyes; then | |
9903 | skip_targ=yes | |
9904 | fi | |
9905 | ;; | |
9906 | esac | |
9907 | ;; | |
9908 | esac | |
9909 | ||
1c710c3c | 9910 | case "$ac_arg" in |
f1a036e4 NC |
9911 | --cache-file=/dev/null | \ |
9912 | -cache-file=/dev/null ) | |
9913 | # Handled here to avoid the test to skip args below. | |
9914 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9915 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
9916 | # Assert: $separate_arg should always be no. |
9917 | keep_next=$separate_arg | |
9918 | ;; | |
1c710c3c DJ |
9919 | --no*) |
9920 | continue | |
9921 | ;; | |
9922 | --c* | \ | |
9923 | --sr* | \ | |
9924 | --ho* | \ | |
9925 | --bu* | \ | |
9926 | --t* | \ | |
9927 | --program-* | \ | |
9928 | -cache_file* | \ | |
9929 | -srcdir* | \ | |
9930 | -host* | \ | |
9931 | -build* | \ | |
9932 | -target* | \ | |
9933 | -program-prefix* | \ | |
9934 | -program-suffix* | \ | |
9935 | -program-transform-name* ) | |
9936 | skip_next=$separate_arg | |
9937 | continue | |
9938 | ;; | |
9939 | -*) | |
9940 | # An option. Add it. | |
9941 | case $ac_arg in | |
9942 | *\'*) | |
9943 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9944 | esac | |
9945 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
9946 | if test X"$skip_targ" = Xno; then |
9947 | tbaseargs="$tbaseargs '$ac_arg'" | |
9948 | fi | |
1c710c3c DJ |
9949 | keep_next=$separate_arg |
9950 | ;; | |
9951 | *) | |
9952 | # Either a variable assignment, or a nonopt (triplet). Don't | |
9953 | # pass it down; let the Makefile handle this. | |
9954 | continue | |
9955 | ;; | |
9956 | esac | |
9957 | done | |
9958 | # Remove the initial space we just introduced and, as these will be | |
9959 | # expanded by make, quote '$'. | |
9960 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 9961 | |
43bb47c2 DJ |
9962 | # Add in --program-transform-name, after --program-prefix and |
9963 | # --program-suffix have been applied to it. Autoconf has already | |
9964 | # doubled dollar signs and backslashes in program_transform_name; we want | |
9965 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 9966 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
9967 | # Also, because we want to override the logic in subdir configure scripts to |
9968 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
9969 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
9970 | ${program_transform_name} | |
9971 | EOF_SED | |
9972 | gcc_transform_name=`cat conftestsed.out` | |
9973 | rm -f conftestsed.out | |
9974 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 9975 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
9976 | if test "$silent" = yes; then |
9977 | baseargs="$baseargs --silent" | |
29a63921 | 9978 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 9979 | fi |
0115d4a3 | 9980 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 9981 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 9982 | |
ffedf511 RW |
9983 | # Record and document user additions to sub configure arguments. |
9984 | ||
9985 | ||
9986 | ||
9987 | ||
671aa708 NN |
9988 | # For the build-side libraries, we just need to pretend we're native, |
9989 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
9990 | # desired. We can't even use the same cache file for all build-side |
9991 | # libraries, as they're compiled differently; some with C, some with | |
9992 | # C++ or with different feature-enabling options. | |
9993 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
9994 | |
9995 | # For host modules, accept cache file option, or specification as blank. | |
9996 | case "${cache_file}" in | |
9997 | "") # empty | |
9998 | cache_file_option="" ;; | |
9999 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10000 | cache_file_option="--cache-file=${cache_file}" ;; | |
10001 | *) # relative path | |
10002 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10003 | esac | |
10004 | ||
09438bde NN |
10005 | # Host dirs don't like to share a cache file either, horribly enough. |
10006 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10007 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10008 | |
29a63921 | 10009 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10010 | |
10011 | # Passing a --with-cross-host argument lets the target libraries know | |
10012 | # whether they are being built with a cross-compiler or being built | |
10013 | # native. However, it would be better to use other mechanisms to make the | |
10014 | # sorts of decisions they want to make on this basis. Please consider | |
10015 | # this option to be deprecated. FIXME. | |
10016 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10017 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10018 | fi |
10019 | ||
79e0604d FXC |
10020 | # Special user-friendly check for native x86_64-linux build, if |
10021 | # multilib is not explicitly enabled. | |
10022 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10023 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10024 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10025 | dev64=no |
10026 | echo "int main () { return 0; }" > conftest.c | |
10027 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10028 | if test $? = 0 ; then | |
10029 | if test -s conftest || test -s conftest.exe ; then | |
10030 | dev64=yes | |
10031 | fi | |
10032 | fi | |
10033 | rm -f conftest* | |
10034 | if test x${dev64} != xyes ; then | |
22e05272 | 10035 | as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
79e0604d FXC |
10036 | fi |
10037 | ;; | |
10038 | esac | |
10039 | ||
dc683a3f RW |
10040 | # Default to --enable-multilib. |
10041 | if test x${enable_multilib} = x ; then | |
671aa708 | 10042 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10043 | fi |
671aa708 NN |
10044 | |
10045 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10046 | # changed from the earlier setting of with_newlib. | |
10047 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10048 | target_configargs="--with-newlib ${target_configargs}" | |
10049 | fi | |
10050 | ||
6b9eb62c NN |
10051 | # Different target subdirs use different values of certain variables |
10052 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10053 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10054 | # it doesn't automatically accept command-line overrides of them. | |
10055 | # This means it's not safe for target subdirs to share a cache file, | |
10056 | # which is disgusting, but there you have it. Hopefully this can be | |
10057 | # fixed in future. It's still worthwhile to use a cache file for each | |
10058 | # directory. I think. | |
10059 | ||
bebcd931 MS |
10060 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10061 | # We need to pass --target, as newer autoconf's requires consistency | |
10062 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10063 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10064 | |
671aa708 NN |
10065 | FLAGS_FOR_TARGET= |
10066 | case " $target_configdirs " in | |
10067 | *" newlib "*) | |
10068 | case " $target_configargs " in | |
10069 | *" --with-newlib "*) | |
10070 | case "$target" in | |
5d571eaa | 10071 | *-cygwin*) |
443e6238 | 10072 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10073 | ;; |
671aa708 NN |
10074 | esac |
10075 | ||
10076 | # If we're not building GCC, don't discard standard headers. | |
10077 | if test -d ${srcdir}/gcc; then | |
10078 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10079 | ||
10080 | if test "${build}" != "${host}"; then | |
10081 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10082 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10083 | # to it. This is right: we don't want to search that directory | |
10084 | # for binaries, but we want the header files in there, so add | |
10085 | # them explicitly. | |
0463992b | 10086 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10087 | |
10088 | # Someone might think of using the pre-installed headers on | |
10089 | # Canadian crosses, in case the installed compiler is not fully | |
10090 | # compatible with the compiler being built. In this case, it | |
10091 | # would be better to flag an error than risking having | |
10092 | # incompatible object files being constructed. We can't | |
10093 | # guarantee that an error will be flagged, but let's hope the | |
10094 | # compiler will do it, when presented with incompatible header | |
10095 | # files. | |
10096 | fi | |
10097 | fi | |
10098 | ||
10099 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10100 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10101 | # Here host == target, so we don't need to build gcc, |
10102 | # so we don't want to discard standard headers. | |
10103 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10104 | ;; | |
10105 | *) | |
10106 | # If we're building newlib, use its generic headers last, but search | |
10107 | # for any libc-related directories first (so make it the last -B | |
10108 | # switch). | |
10109 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
10110 | |
10111 | # If we're building libgloss, find the startup file, simulator library | |
10112 | # and linker script. | |
10113 | case " $target_configdirs " in | |
10114 | *" libgloss "*) | |
10115 | # Look for startup file, simulator library and maybe linker script. | |
10116 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10117 | # Look for libnosys.a in case the target needs it. | |
10118 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10119 | # Most targets have the linker script in the source directory. | |
10120 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10121 | ;; | |
10122 | esac | |
671aa708 NN |
10123 | ;; |
10124 | esac | |
10125 | ;; | |
10126 | esac | |
10127 | ;; | |
10128 | esac | |
5d571eaa | 10129 | |
b91f0a41 | 10130 | case "$target" in |
5d571eaa OS |
10131 | x86_64-*mingw* | *-w64-mingw*) |
10132 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10133 | # however, use a symlink named 'mingw' in ${prefix} . | |
10134 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10135 | ;; | |
10136 | *-mingw*) | |
10137 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10138 | 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' | |
10139 | ;; | |
b91f0a41 | 10140 | esac |
671aa708 | 10141 | |
6691a79e ME |
10142 | # Allow the user to override the flags for |
10143 | # our build compiler if desired. | |
f019adc1 MF |
10144 | if test x"${build}" = x"${host}" ; then |
10145 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10146 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10147 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10148 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10149 | fi | |
6691a79e | 10150 | |
671aa708 NN |
10151 | # On Canadian crosses, we'll be searching the right directories for |
10152 | # the previously-installed cross compiler, so don't bother to add | |
10153 | # flags for directories within the install tree of the compiler | |
10154 | # being built; programs in there won't even run. | |
10155 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10156 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10157 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
10158 | fi |
10159 | ||
10160 | if test "x${use_gnu_ld}" = x && | |
10161 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10162 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10163 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10164 | fi |
10165 | ||
e88a2c09 DD |
10166 | # Search for other target-specific linker scripts and such. |
10167 | case "${target}" in | |
3e19841a PB |
10168 | mep*) |
10169 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10170 | ;; | |
e88a2c09 DD |
10171 | esac |
10172 | ||
671aa708 | 10173 | # Makefile fragments. |
7b61653a PE |
10174 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10175 | do | |
10176 | eval fragval=\$$frag | |
10177 | if test $fragval != /dev/null; then | |
10178 | eval $frag=${srcdir}/$fragval | |
10179 | fi | |
10180 | done | |
671aa708 NN |
10181 | |
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | # Miscellanea: directories, flags, etc. | |
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
d89f0ad6 | 10194 | |
23f6b2f9 | 10195 | # Build module lists & subconfigure args. |
671aa708 NN |
10196 | |
10197 | ||
10198 | ||
2abefe3d PB |
10199 | # Host module lists & subconfigure args. |
10200 | ||
10201 | ||
10202 | ||
aae29963 | 10203 | |
2abefe3d PB |
10204 | # Target module lists & subconfigure args. |
10205 | ||
10206 | ||
10207 | ||
10208 | # Build tools. | |
10209 | ||
10210 | ||
10211 | ||
0999159b PB |
10212 | |
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
b4c522fa | 10225 | |
3b5e8ee4 | 10226 | |
a1d2b162 IS |
10227 | |
10228 | ||
2abefe3d PB |
10229 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10230 | # on the build machine. These are used if the Makefile can't locate these | |
10231 | # programs in objdir. | |
10232 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10233 | ||
10234 | for ac_prog in 'bison -y' byacc yacc | |
10235 | do | |
1c710c3c | 10236 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10237 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10239 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10240 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10241 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10242 | else |
10243 | if test -n "$YACC"; then | |
10244 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10245 | else | |
1c710c3c DJ |
10246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10247 | for as_dir in $PATH | |
10248 | do | |
10249 | IFS=$as_save_IFS | |
10250 | test -z "$as_dir" && as_dir=. | |
5213506e | 10251 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10253 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10255 | break 2 |
10256 | fi | |
10257 | done | |
5213506e RW |
10258 | done |
10259 | IFS=$as_save_IFS | |
1c710c3c | 10260 | |
2abefe3d PB |
10261 | fi |
10262 | fi | |
1c710c3c | 10263 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10264 | if test -n "$YACC"; then |
5213506e RW |
10265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10266 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10267 | else |
5213506e RW |
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10269 | $as_echo "no" >&6; } | |
2abefe3d PB |
10270 | fi |
10271 | ||
5213506e | 10272 | |
1c710c3c | 10273 | test -n "$YACC" && break |
2abefe3d PB |
10274 | done |
10275 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10276 | ||
10277 | case " $build_configdirs " in | |
10278 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10279 | esac |
10280 | ||
10281 | for ac_prog in bison | |
10282 | do | |
1c710c3c | 10283 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10284 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10286 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10287 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10288 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10289 | else |
10290 | if test -n "$BISON"; then | |
10291 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10292 | else | |
1c710c3c DJ |
10293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10294 | for as_dir in $PATH | |
10295 | do | |
10296 | IFS=$as_save_IFS | |
10297 | test -z "$as_dir" && as_dir=. | |
5213506e | 10298 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10300 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10302 | break 2 |
10303 | fi | |
10304 | done | |
5213506e RW |
10305 | done |
10306 | IFS=$as_save_IFS | |
1c710c3c | 10307 | |
2abefe3d PB |
10308 | fi |
10309 | fi | |
1c710c3c | 10310 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10311 | if test -n "$BISON"; then |
5213506e RW |
10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10313 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10314 | else |
5213506e RW |
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10316 | $as_echo "no" >&6; } | |
2abefe3d PB |
10317 | fi |
10318 | ||
5213506e | 10319 | |
1c710c3c | 10320 | test -n "$BISON" && break |
2abefe3d PB |
10321 | done |
10322 | test -n "$BISON" || BISON="$MISSING bison" | |
10323 | ||
10324 | case " $build_configdirs " in | |
10325 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10326 | esac | |
10327 | ||
10328 | for ac_prog in gm4 gnum4 m4 | |
10329 | do | |
1c710c3c | 10330 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10331 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10333 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10334 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10335 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10336 | else |
10337 | if test -n "$M4"; then | |
10338 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10339 | else | |
1c710c3c DJ |
10340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10341 | for as_dir in $PATH | |
10342 | do | |
10343 | IFS=$as_save_IFS | |
10344 | test -z "$as_dir" && as_dir=. | |
5213506e | 10345 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10347 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10349 | break 2 |
10350 | fi | |
10351 | done | |
5213506e RW |
10352 | done |
10353 | IFS=$as_save_IFS | |
1c710c3c | 10354 | |
2abefe3d PB |
10355 | fi |
10356 | fi | |
1c710c3c | 10357 | M4=$ac_cv_prog_M4 |
2abefe3d | 10358 | if test -n "$M4"; then |
5213506e RW |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10360 | $as_echo "$M4" >&6; } | |
2abefe3d | 10361 | else |
5213506e RW |
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10363 | $as_echo "no" >&6; } | |
2abefe3d PB |
10364 | fi |
10365 | ||
5213506e | 10366 | |
1c710c3c | 10367 | test -n "$M4" && break |
2abefe3d PB |
10368 | done |
10369 | test -n "$M4" || M4="$MISSING m4" | |
10370 | ||
10371 | case " $build_configdirs " in | |
10372 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10373 | esac | |
10374 | ||
10375 | for ac_prog in flex lex | |
10376 | do | |
1c710c3c | 10377 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10378 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10380 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10381 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10382 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10383 | else |
10384 | if test -n "$LEX"; then | |
10385 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10386 | else | |
1c710c3c DJ |
10387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10388 | for as_dir in $PATH | |
10389 | do | |
10390 | IFS=$as_save_IFS | |
10391 | test -z "$as_dir" && as_dir=. | |
5213506e | 10392 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10393 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10394 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10396 | break 2 |
10397 | fi | |
10398 | done | |
5213506e RW |
10399 | done |
10400 | IFS=$as_save_IFS | |
1c710c3c | 10401 | |
2abefe3d PB |
10402 | fi |
10403 | fi | |
1c710c3c | 10404 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10405 | if test -n "$LEX"; then |
5213506e RW |
10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10407 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10408 | else |
5213506e RW |
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10410 | $as_echo "no" >&6; } | |
2abefe3d PB |
10411 | fi |
10412 | ||
5213506e | 10413 | |
1c710c3c | 10414 | test -n "$LEX" && break |
2abefe3d PB |
10415 | done |
10416 | test -n "$LEX" || LEX="$MISSING flex" | |
10417 | ||
10418 | case " $build_configdirs " in | |
10419 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10420 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10421 | esac | |
10422 | ||
10423 | for ac_prog in flex | |
10424 | do | |
1c710c3c | 10425 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10426 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10428 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10429 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10430 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10431 | else |
10432 | if test -n "$FLEX"; then | |
10433 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10434 | else | |
1c710c3c DJ |
10435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10436 | for as_dir in $PATH | |
10437 | do | |
10438 | IFS=$as_save_IFS | |
10439 | test -z "$as_dir" && as_dir=. | |
5213506e | 10440 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10442 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10444 | break 2 |
10445 | fi | |
10446 | done | |
5213506e RW |
10447 | done |
10448 | IFS=$as_save_IFS | |
1c710c3c | 10449 | |
2abefe3d PB |
10450 | fi |
10451 | fi | |
1c710c3c | 10452 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10453 | if test -n "$FLEX"; then |
5213506e RW |
10454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10455 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10456 | else |
5213506e RW |
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10458 | $as_echo "no" >&6; } | |
2abefe3d PB |
10459 | fi |
10460 | ||
5213506e | 10461 | |
1c710c3c | 10462 | test -n "$FLEX" && break |
2abefe3d PB |
10463 | done |
10464 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10465 | ||
10466 | case " $build_configdirs " in | |
10467 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10468 | esac | |
10469 | ||
10470 | for ac_prog in makeinfo | |
10471 | do | |
1c710c3c | 10472 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10473 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10475 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10476 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10477 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10478 | else |
10479 | if test -n "$MAKEINFO"; then | |
10480 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10481 | else | |
1c710c3c DJ |
10482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10483 | for as_dir in $PATH | |
10484 | do | |
10485 | IFS=$as_save_IFS | |
10486 | test -z "$as_dir" && as_dir=. | |
5213506e | 10487 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10488 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10489 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10491 | break 2 |
10492 | fi | |
10493 | done | |
5213506e RW |
10494 | done |
10495 | IFS=$as_save_IFS | |
1c710c3c | 10496 | |
2abefe3d PB |
10497 | fi |
10498 | fi | |
1c710c3c | 10499 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10500 | if test -n "$MAKEINFO"; then |
5213506e RW |
10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10502 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10503 | else |
5213506e RW |
10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10505 | $as_echo "no" >&6; } | |
2abefe3d PB |
10506 | fi |
10507 | ||
5213506e | 10508 | |
1c710c3c | 10509 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10510 | done |
10511 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10512 | ||
10513 | case " $build_configdirs " in | |
10514 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10515 | *) | |
10516 | ||
d18ff35a | 10517 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10518 | # higher, else we use the "missing" dummy. |
10519 | if ${MAKEINFO} --version \ | |
d18ff35a | 10520 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10521 | : |
10522 | else | |
10523 | MAKEINFO="$MISSING makeinfo" | |
10524 | fi | |
10525 | ;; | |
10526 | ||
10527 | esac | |
671aa708 | 10528 | |
2abefe3d | 10529 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10530 | |
2abefe3d PB |
10531 | for ac_prog in expect |
10532 | do | |
1c710c3c | 10533 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10534 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10536 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10537 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10538 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10539 | else |
10540 | if test -n "$EXPECT"; then | |
10541 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10542 | else | |
1c710c3c DJ |
10543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10544 | for as_dir in $PATH | |
10545 | do | |
10546 | IFS=$as_save_IFS | |
10547 | test -z "$as_dir" && as_dir=. | |
5213506e | 10548 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10549 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10550 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10552 | break 2 |
10553 | fi | |
10554 | done | |
5213506e RW |
10555 | done |
10556 | IFS=$as_save_IFS | |
1c710c3c | 10557 | |
2abefe3d PB |
10558 | fi |
10559 | fi | |
1c710c3c | 10560 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10561 | if test -n "$EXPECT"; then |
5213506e RW |
10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10563 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10564 | else |
5213506e RW |
10565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10566 | $as_echo "no" >&6; } | |
2abefe3d | 10567 | fi |
671aa708 | 10568 | |
5213506e | 10569 | |
1c710c3c | 10570 | test -n "$EXPECT" && break |
2abefe3d PB |
10571 | done |
10572 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10573 | |
2abefe3d PB |
10574 | case " $configdirs " in |
10575 | *" expect "*) | |
10576 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10577 | ;; | |
10578 | esac | |
671aa708 | 10579 | |
2abefe3d PB |
10580 | for ac_prog in runtest |
10581 | do | |
1c710c3c | 10582 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10583 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10585 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10586 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10587 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10588 | else |
10589 | if test -n "$RUNTEST"; then | |
10590 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10591 | else |
1c710c3c DJ |
10592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10593 | for as_dir in $PATH | |
10594 | do | |
10595 | IFS=$as_save_IFS | |
10596 | test -z "$as_dir" && as_dir=. | |
5213506e | 10597 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10599 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10601 | break 2 |
10602 | fi | |
10603 | done | |
5213506e RW |
10604 | done |
10605 | IFS=$as_save_IFS | |
1c710c3c | 10606 | |
2abefe3d PB |
10607 | fi |
10608 | fi | |
1c710c3c | 10609 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10610 | if test -n "$RUNTEST"; then |
5213506e RW |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10612 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10613 | else |
5213506e RW |
10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10615 | $as_echo "no" >&6; } | |
2abefe3d | 10616 | fi |
671aa708 | 10617 | |
5213506e | 10618 | |
1c710c3c | 10619 | test -n "$RUNTEST" && break |
2abefe3d PB |
10620 | done |
10621 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10622 | |
2abefe3d PB |
10623 | case " $configdirs " in |
10624 | *" dejagnu "*) | |
c394e891 | 10625 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10626 | ;; |
10627 | esac | |
671aa708 NN |
10628 | |
10629 | ||
671aa708 | 10630 | # Host tools. |
ca9f4b81 AO |
10631 | ncn_tool_prefix= |
10632 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10633 | ncn_target_tool_prefix= | |
10634 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10635 | ||
278a7a38 AO |
10636 | |
10637 | ||
10638 | if test -n "$AR"; then | |
10639 | ac_cv_prog_AR=$AR | |
10640 | elif test -n "$ac_cv_prog_AR"; then | |
10641 | AR=$ac_cv_prog_AR | |
10642 | fi | |
10643 | ||
10644 | if test -n "$ac_cv_prog_AR"; then | |
10645 | for ncn_progname in ar; do | |
10646 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10647 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10649 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10650 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10651 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10652 | else |
10653 | if test -n "$AR"; then | |
10654 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10655 | else | |
10656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10657 | for as_dir in $PATH | |
10658 | do | |
10659 | IFS=$as_save_IFS | |
10660 | test -z "$as_dir" && as_dir=. | |
5213506e | 10661 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10663 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10665 | break 2 |
10666 | fi | |
10667 | done | |
5213506e RW |
10668 | done |
10669 | IFS=$as_save_IFS | |
278a7a38 AO |
10670 | |
10671 | fi | |
10672 | fi | |
10673 | AR=$ac_cv_prog_AR | |
10674 | if test -n "$AR"; then | |
5213506e RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10676 | $as_echo "$AR" >&6; } | |
278a7a38 | 10677 | else |
5213506e RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10679 | $as_echo "no" >&6; } | |
278a7a38 AO |
10680 | fi |
10681 | ||
5213506e | 10682 | |
278a7a38 AO |
10683 | done |
10684 | fi | |
10685 | ||
10686 | for ncn_progname in ar; do | |
2693c0b0 PB |
10687 | if test -n "$ncn_tool_prefix"; then |
10688 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10689 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10691 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10692 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10693 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10694 | else |
10695 | if test -n "$AR"; then | |
10696 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10697 | else | |
1c710c3c DJ |
10698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10699 | for as_dir in $PATH | |
10700 | do | |
10701 | IFS=$as_save_IFS | |
10702 | test -z "$as_dir" && as_dir=. | |
5213506e | 10703 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10705 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10707 | break 2 |
10708 | fi | |
10709 | done | |
5213506e RW |
10710 | done |
10711 | IFS=$as_save_IFS | |
1c710c3c | 10712 | |
ca9f4b81 AO |
10713 | fi |
10714 | fi | |
1c710c3c | 10715 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10716 | if test -n "$AR"; then |
5213506e RW |
10717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10718 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10719 | else |
5213506e RW |
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10721 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10722 | fi |
10723 | ||
5213506e | 10724 | |
2693c0b0 PB |
10725 | fi |
10726 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10727 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10728 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10730 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10731 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10732 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10733 | else |
2693c0b0 | 10734 | if test -n "$AR"; then |
af71363e AS |
10735 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10736 | else | |
1c710c3c DJ |
10737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10738 | for as_dir in $PATH | |
10739 | do | |
10740 | IFS=$as_save_IFS | |
10741 | test -z "$as_dir" && as_dir=. | |
5213506e | 10742 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10744 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10746 | break 2 |
10747 | fi | |
10748 | done | |
5213506e RW |
10749 | done |
10750 | IFS=$as_save_IFS | |
1c710c3c | 10751 | |
ca9f4b81 AO |
10752 | fi |
10753 | fi | |
1c710c3c | 10754 | AR=$ac_cv_prog_AR |
2693c0b0 | 10755 | if test -n "$AR"; then |
5213506e RW |
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10757 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10758 | else |
5213506e RW |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10760 | $as_echo "no" >&6; } | |
ca9f4b81 | 10761 | fi |
1c710c3c | 10762 | |
5213506e | 10763 | |
2693c0b0 PB |
10764 | fi |
10765 | test -n "$ac_cv_prog_AR" && break | |
10766 | done | |
10767 | ||
10768 | if test -z "$ac_cv_prog_AR" ; then | |
10769 | set dummy ar | |
10770 | if test $build = $host ; then | |
10771 | AR="$2" | |
ca9f4b81 | 10772 | else |
2693c0b0 | 10773 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10774 | fi |
ca9f4b81 AO |
10775 | fi |
10776 | ||
278a7a38 AO |
10777 | |
10778 | ||
10779 | if test -n "$AS"; then | |
10780 | ac_cv_prog_AS=$AS | |
10781 | elif test -n "$ac_cv_prog_AS"; then | |
10782 | AS=$ac_cv_prog_AS | |
10783 | fi | |
10784 | ||
10785 | if test -n "$ac_cv_prog_AS"; then | |
10786 | for ncn_progname in as; do | |
10787 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10788 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10790 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10791 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10792 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10793 | else |
10794 | if test -n "$AS"; then | |
10795 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10796 | else | |
10797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10798 | for as_dir in $PATH | |
10799 | do | |
10800 | IFS=$as_save_IFS | |
10801 | test -z "$as_dir" && as_dir=. | |
5213506e | 10802 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10804 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10806 | break 2 |
10807 | fi | |
10808 | done | |
5213506e RW |
10809 | done |
10810 | IFS=$as_save_IFS | |
278a7a38 AO |
10811 | |
10812 | fi | |
10813 | fi | |
10814 | AS=$ac_cv_prog_AS | |
10815 | if test -n "$AS"; then | |
5213506e RW |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10817 | $as_echo "$AS" >&6; } | |
278a7a38 | 10818 | else |
5213506e RW |
10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10820 | $as_echo "no" >&6; } | |
278a7a38 AO |
10821 | fi |
10822 | ||
5213506e | 10823 | |
278a7a38 AO |
10824 | done |
10825 | fi | |
10826 | ||
10827 | for ncn_progname in as; do | |
2693c0b0 PB |
10828 | if test -n "$ncn_tool_prefix"; then |
10829 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10830 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10832 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10833 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10834 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10835 | else |
10836 | if test -n "$AS"; then | |
10837 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10838 | else |
1c710c3c DJ |
10839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10840 | for as_dir in $PATH | |
10841 | do | |
10842 | IFS=$as_save_IFS | |
10843 | test -z "$as_dir" && as_dir=. | |
5213506e | 10844 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10846 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10848 | break 2 |
10849 | fi | |
10850 | done | |
5213506e RW |
10851 | done |
10852 | IFS=$as_save_IFS | |
1c710c3c | 10853 | |
ca9f4b81 AO |
10854 | fi |
10855 | fi | |
1c710c3c | 10856 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10857 | if test -n "$AS"; then |
5213506e RW |
10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10859 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10860 | else |
5213506e RW |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10862 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10863 | fi |
10864 | ||
5213506e | 10865 | |
2693c0b0 PB |
10866 | fi |
10867 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10868 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10869 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10871 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10872 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10873 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10874 | else |
2693c0b0 PB |
10875 | if test -n "$AS"; then |
10876 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10877 | else |
1c710c3c DJ |
10878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10879 | for as_dir in $PATH | |
10880 | do | |
10881 | IFS=$as_save_IFS | |
10882 | test -z "$as_dir" && as_dir=. | |
5213506e | 10883 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10884 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10885 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10887 | break 2 |
10888 | fi | |
10889 | done | |
5213506e RW |
10890 | done |
10891 | IFS=$as_save_IFS | |
1c710c3c | 10892 | |
ca9f4b81 AO |
10893 | fi |
10894 | fi | |
1c710c3c | 10895 | AS=$ac_cv_prog_AS |
2693c0b0 | 10896 | if test -n "$AS"; then |
5213506e RW |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10898 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10899 | else |
5213506e RW |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10901 | $as_echo "no" >&6; } | |
ca9f4b81 | 10902 | fi |
1c710c3c | 10903 | |
5213506e | 10904 | |
2693c0b0 PB |
10905 | fi |
10906 | test -n "$ac_cv_prog_AS" && break | |
10907 | done | |
10908 | ||
10909 | if test -z "$ac_cv_prog_AS" ; then | |
10910 | set dummy as | |
10911 | if test $build = $host ; then | |
10912 | AS="$2" | |
ca9f4b81 | 10913 | else |
2693c0b0 | 10914 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 10915 | fi |
ca9f4b81 AO |
10916 | fi |
10917 | ||
278a7a38 AO |
10918 | |
10919 | ||
10920 | if test -n "$DLLTOOL"; then | |
10921 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
10922 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
10923 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10924 | fi | |
10925 | ||
10926 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
10927 | for ncn_progname in dlltool; do | |
10928 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10929 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10931 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10932 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10933 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10934 | else |
10935 | if test -n "$DLLTOOL"; then | |
10936 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10937 | else | |
10938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10939 | for as_dir in $PATH | |
10940 | do | |
10941 | IFS=$as_save_IFS | |
10942 | test -z "$as_dir" && as_dir=. | |
5213506e | 10943 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10945 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 10946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10947 | break 2 |
10948 | fi | |
10949 | done | |
5213506e RW |
10950 | done |
10951 | IFS=$as_save_IFS | |
278a7a38 AO |
10952 | |
10953 | fi | |
10954 | fi | |
10955 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10956 | if test -n "$DLLTOOL"; then | |
5213506e RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10958 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 10959 | else |
5213506e RW |
10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10961 | $as_echo "no" >&6; } | |
278a7a38 AO |
10962 | fi |
10963 | ||
5213506e | 10964 | |
278a7a38 AO |
10965 | done |
10966 | fi | |
10967 | ||
10968 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
10969 | if test -n "$ncn_tool_prefix"; then |
10970 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10971 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10973 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10974 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10975 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10976 | else |
10977 | if test -n "$DLLTOOL"; then | |
10978 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10979 | else | |
1c710c3c DJ |
10980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10981 | for as_dir in $PATH | |
10982 | do | |
10983 | IFS=$as_save_IFS | |
10984 | test -z "$as_dir" && as_dir=. | |
5213506e | 10985 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10987 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10989 | break 2 |
10990 | fi | |
10991 | done | |
5213506e RW |
10992 | done |
10993 | IFS=$as_save_IFS | |
1c710c3c | 10994 | |
ca9f4b81 AO |
10995 | fi |
10996 | fi | |
1c710c3c | 10997 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 10998 | if test -n "$DLLTOOL"; then |
5213506e RW |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11000 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11001 | else |
5213506e RW |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11003 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11004 | fi |
11005 | ||
5213506e | 11006 | |
2693c0b0 PB |
11007 | fi |
11008 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11010 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11012 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11013 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11014 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11015 | else |
2693c0b0 PB |
11016 | if test -n "$DLLTOOL"; then |
11017 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11018 | else |
1c710c3c DJ |
11019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11020 | for as_dir in $PATH | |
11021 | do | |
11022 | IFS=$as_save_IFS | |
11023 | test -z "$as_dir" && as_dir=. | |
5213506e | 11024 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11026 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11028 | break 2 |
11029 | fi | |
11030 | done | |
5213506e RW |
11031 | done |
11032 | IFS=$as_save_IFS | |
1c710c3c | 11033 | |
ca9f4b81 AO |
11034 | fi |
11035 | fi | |
1c710c3c | 11036 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11037 | if test -n "$DLLTOOL"; then |
5213506e RW |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11039 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11040 | else |
5213506e RW |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11042 | $as_echo "no" >&6; } | |
ca9f4b81 | 11043 | fi |
1c710c3c | 11044 | |
5213506e | 11045 | |
2693c0b0 PB |
11046 | fi |
11047 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11048 | done | |
11049 | ||
11050 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11051 | set dummy dlltool | |
11052 | if test $build = $host ; then | |
11053 | DLLTOOL="$2" | |
ca9f4b81 | 11054 | else |
2693c0b0 | 11055 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11056 | fi |
ca9f4b81 AO |
11057 | fi |
11058 | ||
278a7a38 AO |
11059 | |
11060 | ||
3b5e8ee4 IS |
11061 | if test -n "$DSYMUTIL"; then |
11062 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11063 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11064 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11065 | fi | |
11066 | ||
11067 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11068 | for ncn_progname in dsymutil; do | |
11069 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11070 | set dummy ${ncn_progname}; ac_word=$2 | |
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11072 | $as_echo_n "checking for $ac_word... " >&6; } | |
11073 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11074 | $as_echo_n "(cached) " >&6 | |
11075 | else | |
11076 | if test -n "$DSYMUTIL"; then | |
11077 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11078 | else | |
11079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11080 | for as_dir in $PATH | |
11081 | do | |
11082 | IFS=$as_save_IFS | |
11083 | test -z "$as_dir" && as_dir=. | |
11084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11086 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11088 | break 2 | |
11089 | fi | |
11090 | done | |
11091 | done | |
11092 | IFS=$as_save_IFS | |
11093 | ||
11094 | fi | |
11095 | fi | |
11096 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11097 | if test -n "$DSYMUTIL"; then | |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11099 | $as_echo "$DSYMUTIL" >&6; } | |
11100 | else | |
11101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11102 | $as_echo "no" >&6; } | |
11103 | fi | |
11104 | ||
11105 | ||
11106 | done | |
11107 | fi | |
11108 | ||
11109 | for ncn_progname in dsymutil; do | |
11110 | if test -n "$ncn_tool_prefix"; then | |
11111 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11112 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11114 | $as_echo_n "checking for $ac_word... " >&6; } | |
11115 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11116 | $as_echo_n "(cached) " >&6 | |
11117 | else | |
11118 | if test -n "$DSYMUTIL"; then | |
11119 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11120 | else | |
11121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11122 | for as_dir in $PATH | |
11123 | do | |
11124 | IFS=$as_save_IFS | |
11125 | test -z "$as_dir" && as_dir=. | |
11126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11128 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11130 | break 2 | |
11131 | fi | |
11132 | done | |
11133 | done | |
11134 | IFS=$as_save_IFS | |
11135 | ||
11136 | fi | |
11137 | fi | |
11138 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11139 | if test -n "$DSYMUTIL"; then | |
11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11141 | $as_echo "$DSYMUTIL" >&6; } | |
11142 | else | |
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11144 | $as_echo "no" >&6; } | |
11145 | fi | |
11146 | ||
11147 | ||
11148 | fi | |
11149 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11150 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11151 | set dummy ${ncn_progname}; ac_word=$2 | |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11153 | $as_echo_n "checking for $ac_word... " >&6; } | |
11154 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11155 | $as_echo_n "(cached) " >&6 | |
11156 | else | |
11157 | if test -n "$DSYMUTIL"; then | |
11158 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11159 | else | |
11160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11161 | for as_dir in $PATH | |
11162 | do | |
11163 | IFS=$as_save_IFS | |
11164 | test -z "$as_dir" && as_dir=. | |
11165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11167 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11169 | break 2 | |
11170 | fi | |
11171 | done | |
11172 | done | |
11173 | IFS=$as_save_IFS | |
11174 | ||
11175 | fi | |
11176 | fi | |
11177 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11178 | if test -n "$DSYMUTIL"; then | |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11180 | $as_echo "$DSYMUTIL" >&6; } | |
11181 | else | |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11183 | $as_echo "no" >&6; } | |
11184 | fi | |
11185 | ||
11186 | ||
11187 | fi | |
11188 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11189 | done | |
11190 | ||
11191 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11192 | set dummy dsymutil | |
11193 | if test $build = $host ; then | |
11194 | DSYMUTIL="$2" | |
11195 | else | |
11196 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11197 | fi | |
11198 | fi | |
11199 | ||
11200 | ||
11201 | ||
278a7a38 AO |
11202 | if test -n "$LD"; then |
11203 | ac_cv_prog_LD=$LD | |
11204 | elif test -n "$ac_cv_prog_LD"; then | |
11205 | LD=$ac_cv_prog_LD | |
11206 | fi | |
11207 | ||
11208 | if test -n "$ac_cv_prog_LD"; then | |
11209 | for ncn_progname in ld; do | |
11210 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11211 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11213 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11214 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11215 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11216 | else |
11217 | if test -n "$LD"; then | |
11218 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11219 | else | |
11220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11221 | for as_dir in $PATH | |
11222 | do | |
11223 | IFS=$as_save_IFS | |
11224 | test -z "$as_dir" && as_dir=. | |
5213506e | 11225 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11227 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11229 | break 2 |
11230 | fi | |
11231 | done | |
5213506e RW |
11232 | done |
11233 | IFS=$as_save_IFS | |
278a7a38 AO |
11234 | |
11235 | fi | |
11236 | fi | |
11237 | LD=$ac_cv_prog_LD | |
11238 | if test -n "$LD"; then | |
5213506e RW |
11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11240 | $as_echo "$LD" >&6; } | |
278a7a38 | 11241 | else |
5213506e RW |
11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11243 | $as_echo "no" >&6; } | |
278a7a38 AO |
11244 | fi |
11245 | ||
5213506e | 11246 | |
278a7a38 AO |
11247 | done |
11248 | fi | |
11249 | ||
11250 | for ncn_progname in ld; do | |
2693c0b0 PB |
11251 | if test -n "$ncn_tool_prefix"; then |
11252 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11253 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11255 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11256 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11257 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11258 | else |
11259 | if test -n "$LD"; then | |
11260 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11261 | else | |
1c710c3c DJ |
11262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11263 | for as_dir in $PATH | |
11264 | do | |
11265 | IFS=$as_save_IFS | |
11266 | test -z "$as_dir" && as_dir=. | |
5213506e | 11267 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11269 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11271 | break 2 |
11272 | fi | |
11273 | done | |
5213506e RW |
11274 | done |
11275 | IFS=$as_save_IFS | |
1c710c3c | 11276 | |
ca9f4b81 AO |
11277 | fi |
11278 | fi | |
1c710c3c | 11279 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11280 | if test -n "$LD"; then |
5213506e RW |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11282 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11283 | else |
5213506e RW |
11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11285 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11286 | fi |
11287 | ||
5213506e | 11288 | |
2693c0b0 PB |
11289 | fi |
11290 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11292 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11294 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11295 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11296 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11297 | else |
2693c0b0 PB |
11298 | if test -n "$LD"; then |
11299 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11300 | else |
1c710c3c DJ |
11301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11302 | for as_dir in $PATH | |
11303 | do | |
11304 | IFS=$as_save_IFS | |
11305 | test -z "$as_dir" && as_dir=. | |
5213506e | 11306 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11308 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11310 | break 2 |
11311 | fi | |
11312 | done | |
5213506e RW |
11313 | done |
11314 | IFS=$as_save_IFS | |
1c710c3c | 11315 | |
ca9f4b81 AO |
11316 | fi |
11317 | fi | |
1c710c3c | 11318 | LD=$ac_cv_prog_LD |
2693c0b0 | 11319 | if test -n "$LD"; then |
5213506e RW |
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11321 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11322 | else |
5213506e RW |
11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11324 | $as_echo "no" >&6; } | |
ca9f4b81 | 11325 | fi |
1c710c3c | 11326 | |
5213506e | 11327 | |
2693c0b0 PB |
11328 | fi |
11329 | test -n "$ac_cv_prog_LD" && break | |
11330 | done | |
11331 | ||
11332 | if test -z "$ac_cv_prog_LD" ; then | |
11333 | set dummy ld | |
11334 | if test $build = $host ; then | |
11335 | LD="$2" | |
ca9f4b81 | 11336 | else |
2693c0b0 | 11337 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11338 | fi |
ca9f4b81 AO |
11339 | fi |
11340 | ||
278a7a38 AO |
11341 | |
11342 | ||
11343 | if test -n "$LIPO"; then | |
11344 | ac_cv_prog_LIPO=$LIPO | |
11345 | elif test -n "$ac_cv_prog_LIPO"; then | |
11346 | LIPO=$ac_cv_prog_LIPO | |
11347 | fi | |
11348 | ||
11349 | if test -n "$ac_cv_prog_LIPO"; then | |
11350 | for ncn_progname in lipo; do | |
11351 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11352 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11354 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11355 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11356 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11357 | else |
11358 | if test -n "$LIPO"; then | |
11359 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11360 | else | |
11361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11362 | for as_dir in $PATH | |
11363 | do | |
11364 | IFS=$as_save_IFS | |
11365 | test -z "$as_dir" && as_dir=. | |
5213506e | 11366 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11368 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11370 | break 2 |
11371 | fi | |
11372 | done | |
5213506e RW |
11373 | done |
11374 | IFS=$as_save_IFS | |
278a7a38 AO |
11375 | |
11376 | fi | |
11377 | fi | |
11378 | LIPO=$ac_cv_prog_LIPO | |
11379 | if test -n "$LIPO"; then | |
5213506e RW |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11381 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11382 | else |
5213506e RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11384 | $as_echo "no" >&6; } | |
278a7a38 AO |
11385 | fi |
11386 | ||
5213506e | 11387 | |
278a7a38 AO |
11388 | done |
11389 | fi | |
11390 | ||
11391 | for ncn_progname in lipo; do | |
2abefe3d PB |
11392 | if test -n "$ncn_tool_prefix"; then |
11393 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11394 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11396 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11397 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11398 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11399 | else |
11400 | if test -n "$LIPO"; then | |
11401 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11402 | else | |
1c710c3c DJ |
11403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11404 | for as_dir in $PATH | |
11405 | do | |
11406 | IFS=$as_save_IFS | |
11407 | test -z "$as_dir" && as_dir=. | |
5213506e | 11408 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11410 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11412 | break 2 |
11413 | fi | |
11414 | done | |
5213506e RW |
11415 | done |
11416 | IFS=$as_save_IFS | |
1c710c3c | 11417 | |
2abefe3d PB |
11418 | fi |
11419 | fi | |
1c710c3c | 11420 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11421 | if test -n "$LIPO"; then |
5213506e RW |
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11423 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11424 | else |
5213506e RW |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11426 | $as_echo "no" >&6; } | |
2abefe3d PB |
11427 | fi |
11428 | ||
5213506e | 11429 | |
2abefe3d PB |
11430 | fi |
11431 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11433 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11435 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11436 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11437 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11438 | else |
11439 | if test -n "$LIPO"; then | |
11440 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11441 | else | |
1c710c3c DJ |
11442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11443 | for as_dir in $PATH | |
11444 | do | |
11445 | IFS=$as_save_IFS | |
11446 | test -z "$as_dir" && as_dir=. | |
5213506e | 11447 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11449 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11451 | break 2 |
11452 | fi | |
11453 | done | |
5213506e RW |
11454 | done |
11455 | IFS=$as_save_IFS | |
1c710c3c | 11456 | |
2abefe3d PB |
11457 | fi |
11458 | fi | |
1c710c3c | 11459 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11460 | if test -n "$LIPO"; then |
5213506e RW |
11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11462 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11463 | else |
5213506e RW |
11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11465 | $as_echo "no" >&6; } | |
2abefe3d | 11466 | fi |
1c710c3c | 11467 | |
5213506e | 11468 | |
2abefe3d PB |
11469 | fi |
11470 | test -n "$ac_cv_prog_LIPO" && break | |
11471 | done | |
11472 | ||
11473 | if test -z "$ac_cv_prog_LIPO" ; then | |
11474 | set dummy lipo | |
11475 | if test $build = $host ; then | |
11476 | LIPO="$2" | |
11477 | else | |
11478 | LIPO="${ncn_tool_prefix}$2" | |
11479 | fi | |
11480 | fi | |
11481 | ||
278a7a38 AO |
11482 | |
11483 | ||
11484 | if test -n "$NM"; then | |
11485 | ac_cv_prog_NM=$NM | |
11486 | elif test -n "$ac_cv_prog_NM"; then | |
11487 | NM=$ac_cv_prog_NM | |
11488 | fi | |
11489 | ||
11490 | if test -n "$ac_cv_prog_NM"; then | |
11491 | for ncn_progname in nm; do | |
11492 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11493 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11495 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11496 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11497 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11498 | else |
11499 | if test -n "$NM"; then | |
11500 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11501 | else | |
1c710c3c DJ |
11502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11503 | for as_dir in $PATH | |
11504 | do | |
11505 | IFS=$as_save_IFS | |
11506 | test -z "$as_dir" && as_dir=. | |
5213506e | 11507 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11509 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11511 | break 2 |
11512 | fi | |
11513 | done | |
5213506e RW |
11514 | done |
11515 | IFS=$as_save_IFS | |
1c710c3c | 11516 | |
ca9f4b81 AO |
11517 | fi |
11518 | fi | |
1c710c3c | 11519 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11520 | if test -n "$NM"; then |
5213506e RW |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11522 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11523 | else |
5213506e RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11525 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11526 | fi |
11527 | ||
5213506e | 11528 | |
278a7a38 AO |
11529 | done |
11530 | fi | |
11531 | ||
11532 | for ncn_progname in nm; do | |
11533 | if test -n "$ncn_tool_prefix"; then | |
11534 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11535 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11537 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11538 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11539 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11540 | else |
2693c0b0 PB |
11541 | if test -n "$NM"; then |
11542 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11543 | else |
1c710c3c DJ |
11544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11545 | for as_dir in $PATH | |
11546 | do | |
11547 | IFS=$as_save_IFS | |
11548 | test -z "$as_dir" && as_dir=. | |
5213506e | 11549 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11551 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11553 | break 2 |
11554 | fi | |
11555 | done | |
5213506e RW |
11556 | done |
11557 | IFS=$as_save_IFS | |
1c710c3c | 11558 | |
ca9f4b81 AO |
11559 | fi |
11560 | fi | |
1c710c3c | 11561 | NM=$ac_cv_prog_NM |
2693c0b0 | 11562 | if test -n "$NM"; then |
5213506e RW |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11564 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11565 | else |
5213506e RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11567 | $as_echo "no" >&6; } | |
ca9f4b81 | 11568 | fi |
1c710c3c | 11569 | |
5213506e | 11570 | |
2693c0b0 | 11571 | fi |
278a7a38 AO |
11572 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11573 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11574 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11576 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11577 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11578 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11579 | else |
11580 | if test -n "$NM"; then | |
11581 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11582 | else | |
11583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11584 | for as_dir in $PATH | |
11585 | do | |
11586 | IFS=$as_save_IFS | |
11587 | test -z "$as_dir" && as_dir=. | |
5213506e | 11588 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11589 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11590 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11592 | break 2 |
11593 | fi | |
11594 | done | |
5213506e RW |
11595 | done |
11596 | IFS=$as_save_IFS | |
278a7a38 AO |
11597 | |
11598 | fi | |
11599 | fi | |
11600 | NM=$ac_cv_prog_NM | |
11601 | if test -n "$NM"; then | |
5213506e RW |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11603 | $as_echo "$NM" >&6; } | |
278a7a38 | 11604 | else |
5213506e RW |
11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11606 | $as_echo "no" >&6; } | |
278a7a38 AO |
11607 | fi |
11608 | ||
5213506e | 11609 | |
278a7a38 AO |
11610 | fi |
11611 | test -n "$ac_cv_prog_NM" && break | |
11612 | done | |
11613 | ||
11614 | if test -z "$ac_cv_prog_NM" ; then | |
11615 | set dummy nm | |
11616 | if test $build = $host ; then | |
11617 | NM="$2" | |
11618 | else | |
11619 | NM="${ncn_tool_prefix}$2" | |
11620 | fi | |
11621 | fi | |
11622 | ||
11623 | ||
11624 | ||
11625 | if test -n "$RANLIB"; then | |
11626 | ac_cv_prog_RANLIB=$RANLIB | |
11627 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11628 | RANLIB=$ac_cv_prog_RANLIB | |
11629 | fi | |
11630 | ||
11631 | if test -n "$ac_cv_prog_RANLIB"; then | |
11632 | for ncn_progname in ranlib; do | |
11633 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11634 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11636 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11637 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11638 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11639 | else |
11640 | if test -n "$RANLIB"; then | |
11641 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11642 | else | |
11643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11644 | for as_dir in $PATH | |
11645 | do | |
11646 | IFS=$as_save_IFS | |
11647 | test -z "$as_dir" && as_dir=. | |
5213506e | 11648 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11650 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11652 | break 2 |
11653 | fi | |
11654 | done | |
5213506e RW |
11655 | done |
11656 | IFS=$as_save_IFS | |
278a7a38 AO |
11657 | |
11658 | fi | |
11659 | fi | |
11660 | RANLIB=$ac_cv_prog_RANLIB | |
11661 | if test -n "$RANLIB"; then | |
5213506e RW |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11663 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11664 | else |
5213506e RW |
11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11666 | $as_echo "no" >&6; } | |
278a7a38 AO |
11667 | fi |
11668 | ||
5213506e | 11669 | |
278a7a38 AO |
11670 | done |
11671 | fi | |
ca9f4b81 | 11672 | |
278a7a38 | 11673 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11674 | if test -n "$ncn_tool_prefix"; then |
11675 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11676 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11678 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11679 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11680 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11681 | else |
11682 | if test -n "$RANLIB"; then | |
11683 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11684 | else | |
1c710c3c DJ |
11685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11686 | for as_dir in $PATH | |
11687 | do | |
11688 | IFS=$as_save_IFS | |
11689 | test -z "$as_dir" && as_dir=. | |
5213506e | 11690 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11692 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11694 | break 2 |
11695 | fi | |
11696 | done | |
5213506e RW |
11697 | done |
11698 | IFS=$as_save_IFS | |
1c710c3c | 11699 | |
ca9f4b81 AO |
11700 | fi |
11701 | fi | |
1c710c3c | 11702 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11703 | if test -n "$RANLIB"; then |
5213506e RW |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11705 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11706 | else |
5213506e RW |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11708 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11709 | fi |
11710 | ||
5213506e | 11711 | |
2693c0b0 PB |
11712 | fi |
11713 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11714 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11715 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11717 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11718 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11719 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11720 | else |
2693c0b0 PB |
11721 | if test -n "$RANLIB"; then |
11722 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11723 | else |
1c710c3c DJ |
11724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11725 | for as_dir in $PATH | |
11726 | do | |
11727 | IFS=$as_save_IFS | |
11728 | test -z "$as_dir" && as_dir=. | |
5213506e | 11729 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11731 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11733 | break 2 |
11734 | fi | |
11735 | done | |
5213506e RW |
11736 | done |
11737 | IFS=$as_save_IFS | |
1c710c3c | 11738 | |
ca9f4b81 AO |
11739 | fi |
11740 | fi | |
1c710c3c | 11741 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11742 | if test -n "$RANLIB"; then |
5213506e RW |
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11744 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11745 | else |
5213506e RW |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11747 | $as_echo "no" >&6; } | |
ca9f4b81 | 11748 | fi |
1c710c3c | 11749 | |
5213506e | 11750 | |
ca9f4b81 | 11751 | fi |
2693c0b0 PB |
11752 | test -n "$ac_cv_prog_RANLIB" && break |
11753 | done | |
11754 | ||
11755 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11756 | RANLIB="true" |
ca9f4b81 AO |
11757 | fi |
11758 | ||
278a7a38 AO |
11759 | |
11760 | ||
11761 | if test -n "$STRIP"; then | |
11762 | ac_cv_prog_STRIP=$STRIP | |
11763 | elif test -n "$ac_cv_prog_STRIP"; then | |
11764 | STRIP=$ac_cv_prog_STRIP | |
11765 | fi | |
11766 | ||
11767 | if test -n "$ac_cv_prog_STRIP"; then | |
11768 | for ncn_progname in strip; do | |
11769 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11770 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11772 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11773 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11774 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11775 | else |
11776 | if test -n "$STRIP"; then | |
11777 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11778 | else | |
11779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11780 | for as_dir in $PATH | |
11781 | do | |
11782 | IFS=$as_save_IFS | |
11783 | test -z "$as_dir" && as_dir=. | |
5213506e | 11784 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11786 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11788 | break 2 |
11789 | fi | |
11790 | done | |
5213506e RW |
11791 | done |
11792 | IFS=$as_save_IFS | |
278a7a38 AO |
11793 | |
11794 | fi | |
11795 | fi | |
11796 | STRIP=$ac_cv_prog_STRIP | |
11797 | if test -n "$STRIP"; then | |
5213506e RW |
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11799 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11800 | else |
5213506e RW |
11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11802 | $as_echo "no" >&6; } | |
278a7a38 AO |
11803 | fi |
11804 | ||
5213506e | 11805 | |
278a7a38 AO |
11806 | done |
11807 | fi | |
11808 | ||
11809 | for ncn_progname in strip; do | |
2abefe3d PB |
11810 | if test -n "$ncn_tool_prefix"; then |
11811 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11812 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11814 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11815 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11816 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11817 | else |
11818 | if test -n "$STRIP"; then | |
11819 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11820 | else | |
1c710c3c DJ |
11821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11822 | for as_dir in $PATH | |
11823 | do | |
11824 | IFS=$as_save_IFS | |
11825 | test -z "$as_dir" && as_dir=. | |
5213506e | 11826 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11828 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11830 | break 2 |
11831 | fi | |
11832 | done | |
5213506e RW |
11833 | done |
11834 | IFS=$as_save_IFS | |
1c710c3c | 11835 | |
2abefe3d PB |
11836 | fi |
11837 | fi | |
1c710c3c | 11838 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11839 | if test -n "$STRIP"; then |
5213506e RW |
11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11841 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11842 | else |
5213506e RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11844 | $as_echo "no" >&6; } | |
2abefe3d PB |
11845 | fi |
11846 | ||
5213506e | 11847 | |
2abefe3d PB |
11848 | fi |
11849 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11850 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11851 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11853 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11854 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11855 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11856 | else |
11857 | if test -n "$STRIP"; then | |
11858 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11859 | else | |
1c710c3c DJ |
11860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11861 | for as_dir in $PATH | |
11862 | do | |
11863 | IFS=$as_save_IFS | |
11864 | test -z "$as_dir" && as_dir=. | |
5213506e | 11865 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11867 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11869 | break 2 |
11870 | fi | |
11871 | done | |
5213506e RW |
11872 | done |
11873 | IFS=$as_save_IFS | |
1c710c3c | 11874 | |
2abefe3d PB |
11875 | fi |
11876 | fi | |
1c710c3c | 11877 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11878 | if test -n "$STRIP"; then |
5213506e RW |
11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11880 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11881 | else |
5213506e RW |
11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11883 | $as_echo "no" >&6; } | |
2abefe3d | 11884 | fi |
1c710c3c | 11885 | |
5213506e | 11886 | |
2abefe3d PB |
11887 | fi |
11888 | test -n "$ac_cv_prog_STRIP" && break | |
11889 | done | |
11890 | ||
11891 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11892 | STRIP="true" |
2abefe3d PB |
11893 | fi |
11894 | ||
278a7a38 AO |
11895 | |
11896 | ||
11897 | if test -n "$WINDRES"; then | |
11898 | ac_cv_prog_WINDRES=$WINDRES | |
11899 | elif test -n "$ac_cv_prog_WINDRES"; then | |
11900 | WINDRES=$ac_cv_prog_WINDRES | |
11901 | fi | |
11902 | ||
11903 | if test -n "$ac_cv_prog_WINDRES"; then | |
11904 | for ncn_progname in windres; do | |
11905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11906 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11908 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11909 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11910 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11911 | else |
11912 | if test -n "$WINDRES"; then | |
11913 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11914 | else | |
11915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11916 | for as_dir in $PATH | |
11917 | do | |
11918 | IFS=$as_save_IFS | |
11919 | test -z "$as_dir" && as_dir=. | |
5213506e | 11920 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11922 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11924 | break 2 |
11925 | fi | |
11926 | done | |
5213506e RW |
11927 | done |
11928 | IFS=$as_save_IFS | |
278a7a38 AO |
11929 | |
11930 | fi | |
11931 | fi | |
11932 | WINDRES=$ac_cv_prog_WINDRES | |
11933 | if test -n "$WINDRES"; then | |
5213506e RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11935 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 11936 | else |
5213506e RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11938 | $as_echo "no" >&6; } | |
278a7a38 AO |
11939 | fi |
11940 | ||
5213506e | 11941 | |
278a7a38 AO |
11942 | done |
11943 | fi | |
11944 | ||
11945 | for ncn_progname in windres; do | |
2693c0b0 PB |
11946 | if test -n "$ncn_tool_prefix"; then |
11947 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11948 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11950 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11951 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11952 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11953 | else |
11954 | if test -n "$WINDRES"; then | |
11955 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11956 | else | |
1c710c3c DJ |
11957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11958 | for as_dir in $PATH | |
11959 | do | |
11960 | IFS=$as_save_IFS | |
11961 | test -z "$as_dir" && as_dir=. | |
5213506e | 11962 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11964 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11966 | break 2 |
11967 | fi | |
11968 | done | |
5213506e RW |
11969 | done |
11970 | IFS=$as_save_IFS | |
1c710c3c | 11971 | |
ca9f4b81 AO |
11972 | fi |
11973 | fi | |
1c710c3c | 11974 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 11975 | if test -n "$WINDRES"; then |
5213506e RW |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11977 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 11978 | else |
5213506e RW |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11980 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11981 | fi |
11982 | ||
5213506e | 11983 | |
2693c0b0 PB |
11984 | fi |
11985 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
11986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11987 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11989 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11990 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11991 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11992 | else |
2693c0b0 PB |
11993 | if test -n "$WINDRES"; then |
11994 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 11995 | else |
1c710c3c DJ |
11996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11997 | for as_dir in $PATH | |
11998 | do | |
11999 | IFS=$as_save_IFS | |
12000 | test -z "$as_dir" && as_dir=. | |
5213506e | 12001 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12003 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12005 | break 2 |
12006 | fi | |
12007 | done | |
5213506e RW |
12008 | done |
12009 | IFS=$as_save_IFS | |
1c710c3c | 12010 | |
ca9f4b81 AO |
12011 | fi |
12012 | fi | |
1c710c3c | 12013 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12014 | if test -n "$WINDRES"; then |
5213506e RW |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12016 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12017 | else |
5213506e RW |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12019 | $as_echo "no" >&6; } | |
ca9f4b81 | 12020 | fi |
1c710c3c | 12021 | |
5213506e | 12022 | |
2693c0b0 PB |
12023 | fi |
12024 | test -n "$ac_cv_prog_WINDRES" && break | |
12025 | done | |
12026 | ||
12027 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12028 | set dummy windres | |
12029 | if test $build = $host ; then | |
12030 | WINDRES="$2" | |
ca9f4b81 | 12031 | else |
2693c0b0 | 12032 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12033 | fi |
ca9f4b81 AO |
12034 | fi |
12035 | ||
278a7a38 AO |
12036 | |
12037 | ||
901119ae KT |
12038 | if test -n "$WINDMC"; then |
12039 | ac_cv_prog_WINDMC=$WINDMC | |
12040 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12041 | WINDMC=$ac_cv_prog_WINDMC | |
12042 | fi | |
12043 | ||
12044 | if test -n "$ac_cv_prog_WINDMC"; then | |
12045 | for ncn_progname in windmc; do | |
12046 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12047 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12049 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12050 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12051 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12052 | else |
12053 | if test -n "$WINDMC"; then | |
12054 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12055 | else | |
12056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12057 | for as_dir in $PATH | |
12058 | do | |
12059 | IFS=$as_save_IFS | |
12060 | test -z "$as_dir" && as_dir=. | |
5213506e | 12061 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12063 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12065 | break 2 |
12066 | fi | |
12067 | done | |
5213506e RW |
12068 | done |
12069 | IFS=$as_save_IFS | |
901119ae KT |
12070 | |
12071 | fi | |
12072 | fi | |
12073 | WINDMC=$ac_cv_prog_WINDMC | |
12074 | if test -n "$WINDMC"; then | |
5213506e RW |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12076 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12077 | else |
5213506e RW |
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12079 | $as_echo "no" >&6; } | |
901119ae KT |
12080 | fi |
12081 | ||
5213506e | 12082 | |
901119ae KT |
12083 | done |
12084 | fi | |
12085 | ||
12086 | for ncn_progname in windmc; do | |
12087 | if test -n "$ncn_tool_prefix"; then | |
12088 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12089 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12091 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12092 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12093 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12094 | else |
12095 | if test -n "$WINDMC"; then | |
12096 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12097 | else | |
12098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12099 | for as_dir in $PATH | |
12100 | do | |
12101 | IFS=$as_save_IFS | |
12102 | test -z "$as_dir" && as_dir=. | |
5213506e | 12103 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12105 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12107 | break 2 |
12108 | fi | |
12109 | done | |
5213506e RW |
12110 | done |
12111 | IFS=$as_save_IFS | |
901119ae KT |
12112 | |
12113 | fi | |
12114 | fi | |
12115 | WINDMC=$ac_cv_prog_WINDMC | |
12116 | if test -n "$WINDMC"; then | |
5213506e RW |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12118 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12119 | else |
5213506e RW |
12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12121 | $as_echo "no" >&6; } | |
901119ae KT |
12122 | fi |
12123 | ||
5213506e | 12124 | |
901119ae KT |
12125 | fi |
12126 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12128 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12130 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12131 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12132 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12133 | else |
12134 | if test -n "$WINDMC"; then | |
12135 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12136 | else | |
12137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12138 | for as_dir in $PATH | |
12139 | do | |
12140 | IFS=$as_save_IFS | |
12141 | test -z "$as_dir" && as_dir=. | |
5213506e | 12142 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12144 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12146 | break 2 |
12147 | fi | |
12148 | done | |
5213506e RW |
12149 | done |
12150 | IFS=$as_save_IFS | |
901119ae KT |
12151 | |
12152 | fi | |
12153 | fi | |
12154 | WINDMC=$ac_cv_prog_WINDMC | |
12155 | if test -n "$WINDMC"; then | |
5213506e RW |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12157 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12158 | else |
5213506e RW |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12160 | $as_echo "no" >&6; } | |
901119ae KT |
12161 | fi |
12162 | ||
5213506e | 12163 | |
901119ae KT |
12164 | fi |
12165 | test -n "$ac_cv_prog_WINDMC" && break | |
12166 | done | |
12167 | ||
12168 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12169 | set dummy windmc | |
12170 | if test $build = $host ; then | |
12171 | WINDMC="$2" | |
12172 | else | |
12173 | WINDMC="${ncn_tool_prefix}$2" | |
12174 | fi | |
12175 | fi | |
12176 | ||
12177 | ||
12178 | ||
278a7a38 AO |
12179 | if test -n "$OBJCOPY"; then |
12180 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12181 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12182 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12183 | fi | |
12184 | ||
12185 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12186 | for ncn_progname in objcopy; do | |
12187 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12188 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12190 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12191 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12192 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12193 | else |
12194 | if test -n "$OBJCOPY"; then | |
12195 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12196 | else | |
12197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12198 | for as_dir in $PATH | |
12199 | do | |
12200 | IFS=$as_save_IFS | |
12201 | test -z "$as_dir" && as_dir=. | |
5213506e | 12202 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12204 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12206 | break 2 |
12207 | fi | |
12208 | done | |
5213506e RW |
12209 | done |
12210 | IFS=$as_save_IFS | |
278a7a38 AO |
12211 | |
12212 | fi | |
12213 | fi | |
12214 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12215 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12217 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12218 | else |
5213506e RW |
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12220 | $as_echo "no" >&6; } | |
278a7a38 AO |
12221 | fi |
12222 | ||
5213506e | 12223 | |
278a7a38 AO |
12224 | done |
12225 | fi | |
12226 | ||
12227 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12228 | if test -n "$ncn_tool_prefix"; then |
12229 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12230 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12232 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12233 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12234 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12235 | else |
12236 | if test -n "$OBJCOPY"; then | |
12237 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12238 | else | |
1c710c3c DJ |
12239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12240 | for as_dir in $PATH | |
12241 | do | |
12242 | IFS=$as_save_IFS | |
12243 | test -z "$as_dir" && as_dir=. | |
5213506e | 12244 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12246 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12248 | break 2 |
12249 | fi | |
12250 | done | |
5213506e RW |
12251 | done |
12252 | IFS=$as_save_IFS | |
1c710c3c | 12253 | |
ca9f4b81 AO |
12254 | fi |
12255 | fi | |
1c710c3c | 12256 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12257 | if test -n "$OBJCOPY"; then |
5213506e RW |
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12259 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12260 | else |
5213506e RW |
12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12262 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12263 | fi |
12264 | ||
5213506e | 12265 | |
2693c0b0 PB |
12266 | fi |
12267 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12268 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12269 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12271 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12272 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12273 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12274 | else |
2693c0b0 PB |
12275 | if test -n "$OBJCOPY"; then |
12276 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12277 | else |
1c710c3c DJ |
12278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12279 | for as_dir in $PATH | |
12280 | do | |
12281 | IFS=$as_save_IFS | |
12282 | test -z "$as_dir" && as_dir=. | |
5213506e | 12283 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12285 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12287 | break 2 |
12288 | fi | |
12289 | done | |
5213506e RW |
12290 | done |
12291 | IFS=$as_save_IFS | |
1c710c3c | 12292 | |
ca9f4b81 AO |
12293 | fi |
12294 | fi | |
1c710c3c | 12295 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12296 | if test -n "$OBJCOPY"; then |
5213506e RW |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12298 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12299 | else |
5213506e RW |
12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12301 | $as_echo "no" >&6; } | |
ca9f4b81 | 12302 | fi |
1c710c3c | 12303 | |
5213506e | 12304 | |
2693c0b0 PB |
12305 | fi |
12306 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12307 | done | |
12308 | ||
12309 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12310 | set dummy objcopy | |
12311 | if test $build = $host ; then | |
12312 | OBJCOPY="$2" | |
ca9f4b81 | 12313 | else |
2693c0b0 | 12314 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12315 | fi |
ca9f4b81 AO |
12316 | fi |
12317 | ||
278a7a38 AO |
12318 | |
12319 | ||
12320 | if test -n "$OBJDUMP"; then | |
12321 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12322 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12323 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12324 | fi | |
12325 | ||
12326 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12327 | for ncn_progname in objdump; do | |
12328 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12329 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12331 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12332 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12333 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12334 | else |
12335 | if test -n "$OBJDUMP"; then | |
12336 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12337 | else | |
12338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12339 | for as_dir in $PATH | |
12340 | do | |
12341 | IFS=$as_save_IFS | |
12342 | test -z "$as_dir" && as_dir=. | |
5213506e | 12343 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12345 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12347 | break 2 |
12348 | fi | |
12349 | done | |
5213506e RW |
12350 | done |
12351 | IFS=$as_save_IFS | |
278a7a38 AO |
12352 | |
12353 | fi | |
12354 | fi | |
12355 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12356 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12358 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12359 | else |
5213506e RW |
12360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12361 | $as_echo "no" >&6; } | |
278a7a38 AO |
12362 | fi |
12363 | ||
5213506e | 12364 | |
278a7a38 AO |
12365 | done |
12366 | fi | |
12367 | ||
12368 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12369 | if test -n "$ncn_tool_prefix"; then |
12370 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12371 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12373 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12374 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12375 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12376 | else |
12377 | if test -n "$OBJDUMP"; then | |
12378 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12379 | else | |
1c710c3c DJ |
12380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12381 | for as_dir in $PATH | |
12382 | do | |
12383 | IFS=$as_save_IFS | |
12384 | test -z "$as_dir" && as_dir=. | |
5213506e | 12385 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12387 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12389 | break 2 |
12390 | fi | |
12391 | done | |
5213506e RW |
12392 | done |
12393 | IFS=$as_save_IFS | |
1c710c3c | 12394 | |
ca9f4b81 AO |
12395 | fi |
12396 | fi | |
1c710c3c | 12397 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12398 | if test -n "$OBJDUMP"; then |
5213506e RW |
12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12400 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12401 | else |
5213506e RW |
12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12403 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12404 | fi |
12405 | ||
5213506e | 12406 | |
2693c0b0 PB |
12407 | fi |
12408 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12409 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12410 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12412 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12413 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12414 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12415 | else |
2693c0b0 PB |
12416 | if test -n "$OBJDUMP"; then |
12417 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12418 | else |
1c710c3c DJ |
12419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12420 | for as_dir in $PATH | |
12421 | do | |
12422 | IFS=$as_save_IFS | |
12423 | test -z "$as_dir" && as_dir=. | |
5213506e | 12424 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12426 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12428 | break 2 |
12429 | fi | |
12430 | done | |
5213506e RW |
12431 | done |
12432 | IFS=$as_save_IFS | |
1c710c3c | 12433 | |
ca9f4b81 AO |
12434 | fi |
12435 | fi | |
1c710c3c | 12436 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12437 | if test -n "$OBJDUMP"; then |
5213506e RW |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12439 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12440 | else |
5213506e RW |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12442 | $as_echo "no" >&6; } | |
ca9f4b81 | 12443 | fi |
1c710c3c | 12444 | |
5213506e | 12445 | |
2693c0b0 PB |
12446 | fi |
12447 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12448 | done | |
12449 | ||
12450 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12451 | set dummy objdump | |
12452 | if test $build = $host ; then | |
12453 | OBJDUMP="$2" | |
ca9f4b81 | 12454 | else |
2693c0b0 | 12455 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12456 | fi |
ca9f4b81 AO |
12457 | fi |
12458 | ||
671aa708 NN |
12459 | |
12460 | ||
e4a9a572 IS |
12461 | if test -n "$OTOOL"; then |
12462 | ac_cv_prog_OTOOL=$OTOOL | |
12463 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12464 | OTOOL=$ac_cv_prog_OTOOL | |
12465 | fi | |
12466 | ||
12467 | if test -n "$ac_cv_prog_OTOOL"; then | |
12468 | for ncn_progname in otool; do | |
12469 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12470 | set dummy ${ncn_progname}; ac_word=$2 | |
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12472 | $as_echo_n "checking for $ac_word... " >&6; } | |
12473 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12474 | $as_echo_n "(cached) " >&6 | |
12475 | else | |
12476 | if test -n "$OTOOL"; then | |
12477 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12478 | else | |
12479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12480 | for as_dir in $PATH | |
12481 | do | |
12482 | IFS=$as_save_IFS | |
12483 | test -z "$as_dir" && as_dir=. | |
12484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12486 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12488 | break 2 | |
12489 | fi | |
12490 | done | |
12491 | done | |
12492 | IFS=$as_save_IFS | |
12493 | ||
12494 | fi | |
12495 | fi | |
12496 | OTOOL=$ac_cv_prog_OTOOL | |
12497 | if test -n "$OTOOL"; then | |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12499 | $as_echo "$OTOOL" >&6; } | |
12500 | else | |
12501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12502 | $as_echo "no" >&6; } | |
12503 | fi | |
12504 | ||
12505 | ||
12506 | done | |
12507 | fi | |
12508 | ||
12509 | for ncn_progname in otool; do | |
12510 | if test -n "$ncn_tool_prefix"; then | |
12511 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12512 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12514 | $as_echo_n "checking for $ac_word... " >&6; } | |
12515 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12516 | $as_echo_n "(cached) " >&6 | |
12517 | else | |
12518 | if test -n "$OTOOL"; then | |
12519 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12520 | else | |
12521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12522 | for as_dir in $PATH | |
12523 | do | |
12524 | IFS=$as_save_IFS | |
12525 | test -z "$as_dir" && as_dir=. | |
12526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12528 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12530 | break 2 | |
12531 | fi | |
12532 | done | |
12533 | done | |
12534 | IFS=$as_save_IFS | |
12535 | ||
12536 | fi | |
12537 | fi | |
12538 | OTOOL=$ac_cv_prog_OTOOL | |
12539 | if test -n "$OTOOL"; then | |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12541 | $as_echo "$OTOOL" >&6; } | |
12542 | else | |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12544 | $as_echo "no" >&6; } | |
12545 | fi | |
12546 | ||
12547 | ||
12548 | fi | |
12549 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12550 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12551 | set dummy ${ncn_progname}; ac_word=$2 | |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12553 | $as_echo_n "checking for $ac_word... " >&6; } | |
12554 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12555 | $as_echo_n "(cached) " >&6 | |
12556 | else | |
12557 | if test -n "$OTOOL"; then | |
12558 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12559 | else | |
12560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12561 | for as_dir in $PATH | |
12562 | do | |
12563 | IFS=$as_save_IFS | |
12564 | test -z "$as_dir" && as_dir=. | |
12565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12566 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12567 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12569 | break 2 | |
12570 | fi | |
12571 | done | |
12572 | done | |
12573 | IFS=$as_save_IFS | |
12574 | ||
12575 | fi | |
12576 | fi | |
12577 | OTOOL=$ac_cv_prog_OTOOL | |
12578 | if test -n "$OTOOL"; then | |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12580 | $as_echo "$OTOOL" >&6; } | |
12581 | else | |
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12583 | $as_echo "no" >&6; } | |
12584 | fi | |
12585 | ||
12586 | ||
12587 | fi | |
12588 | test -n "$ac_cv_prog_OTOOL" && break | |
12589 | done | |
12590 | ||
12591 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12592 | set dummy otool | |
12593 | if test $build = $host ; then | |
12594 | OTOOL="$2" | |
12595 | else | |
12596 | OTOOL="${ncn_tool_prefix}$2" | |
12597 | fi | |
12598 | fi | |
12599 | ||
12600 | ||
12601 | ||
e7a82751 RM |
12602 | if test -n "$READELF"; then |
12603 | ac_cv_prog_READELF=$READELF | |
12604 | elif test -n "$ac_cv_prog_READELF"; then | |
12605 | READELF=$ac_cv_prog_READELF | |
12606 | fi | |
12607 | ||
12608 | if test -n "$ac_cv_prog_READELF"; then | |
12609 | for ncn_progname in readelf; do | |
12610 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12611 | set dummy ${ncn_progname}; ac_word=$2 | |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12613 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12614 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12615 | $as_echo_n "(cached) " >&6 |
12616 | else | |
12617 | if test -n "$READELF"; then | |
12618 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12619 | else | |
12620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12621 | for as_dir in $PATH | |
12622 | do | |
12623 | IFS=$as_save_IFS | |
12624 | test -z "$as_dir" && as_dir=. | |
12625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12627 | ac_cv_prog_READELF="${ncn_progname}" |
12628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12629 | break 2 | |
12630 | fi | |
12631 | done | |
12632 | done | |
12633 | IFS=$as_save_IFS | |
12634 | ||
12635 | fi | |
12636 | fi | |
12637 | READELF=$ac_cv_prog_READELF | |
12638 | if test -n "$READELF"; then | |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12640 | $as_echo "$READELF" >&6; } | |
12641 | else | |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12643 | $as_echo "no" >&6; } | |
12644 | fi | |
12645 | ||
12646 | ||
12647 | done | |
12648 | fi | |
12649 | ||
12650 | for ncn_progname in readelf; do | |
12651 | if test -n "$ncn_tool_prefix"; then | |
12652 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12653 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12655 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12656 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12657 | $as_echo_n "(cached) " >&6 |
12658 | else | |
12659 | if test -n "$READELF"; then | |
12660 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12661 | else | |
12662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12663 | for as_dir in $PATH | |
12664 | do | |
12665 | IFS=$as_save_IFS | |
12666 | test -z "$as_dir" && as_dir=. | |
12667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12669 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12671 | break 2 | |
12672 | fi | |
12673 | done | |
12674 | done | |
12675 | IFS=$as_save_IFS | |
12676 | ||
12677 | fi | |
12678 | fi | |
12679 | READELF=$ac_cv_prog_READELF | |
12680 | if test -n "$READELF"; then | |
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12682 | $as_echo "$READELF" >&6; } | |
12683 | else | |
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12685 | $as_echo "no" >&6; } | |
12686 | fi | |
12687 | ||
12688 | ||
12689 | fi | |
12690 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12691 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12692 | set dummy ${ncn_progname}; ac_word=$2 | |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12694 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12695 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12696 | $as_echo_n "(cached) " >&6 |
12697 | else | |
12698 | if test -n "$READELF"; then | |
12699 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12700 | else | |
12701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12702 | for as_dir in $PATH | |
12703 | do | |
12704 | IFS=$as_save_IFS | |
12705 | test -z "$as_dir" && as_dir=. | |
12706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12708 | ac_cv_prog_READELF="${ncn_progname}" |
12709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12710 | break 2 | |
12711 | fi | |
12712 | done | |
12713 | done | |
12714 | IFS=$as_save_IFS | |
12715 | ||
12716 | fi | |
12717 | fi | |
12718 | READELF=$ac_cv_prog_READELF | |
12719 | if test -n "$READELF"; then | |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12721 | $as_echo "$READELF" >&6; } | |
12722 | else | |
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12724 | $as_echo "no" >&6; } | |
12725 | fi | |
12726 | ||
12727 | ||
12728 | fi | |
12729 | test -n "$ac_cv_prog_READELF" && break | |
12730 | done | |
12731 | ||
12732 | if test -z "$ac_cv_prog_READELF" ; then | |
12733 | set dummy readelf | |
12734 | if test $build = $host ; then | |
12735 | READELF="$2" | |
12736 | else | |
12737 | READELF="${ncn_tool_prefix}$2" | |
12738 | fi | |
12739 | fi | |
12740 | ||
12741 | ||
12742 | ||
671aa708 NN |
12743 | |
12744 | ||
12745 | ||
5fee5ec3 IB |
12746 | |
12747 | ||
2abefe3d | 12748 | # Target tools. |
1c710c3c | 12749 | |
5213506e RW |
12750 | # Check whether --with-build-time-tools was given. |
12751 | if test "${with_build_time_tools+set}" = set; then : | |
12752 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12753 | x/*) ;; |
12754 | *) | |
12755 | with_build_time_tools= | |
5213506e RW |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12757 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12758 | ;; |
12759 | esac | |
ca9f4b81 | 12760 | else |
e8b05380 | 12761 | with_build_time_tools= |
5213506e RW |
12762 | fi |
12763 | ||
ca9f4b81 | 12764 | |
278a7a38 AO |
12765 | |
12766 | ||
12767 | if test -n "$CC_FOR_TARGET"; then | |
12768 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12769 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12770 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12771 | fi | |
12772 | ||
12773 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12774 | for ncn_progname in cc gcc; do | |
12775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12776 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12778 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12779 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12780 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12781 | else |
12782 | if test -n "$CC_FOR_TARGET"; then | |
12783 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12784 | else | |
12785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12786 | for as_dir in $PATH | |
12787 | do | |
12788 | IFS=$as_save_IFS | |
12789 | test -z "$as_dir" && as_dir=. | |
5213506e | 12790 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12792 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12794 | break 2 |
12795 | fi | |
12796 | done | |
5213506e RW |
12797 | done |
12798 | IFS=$as_save_IFS | |
278a7a38 AO |
12799 | |
12800 | fi | |
12801 | fi | |
12802 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12803 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12805 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12806 | else |
5213506e RW |
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12808 | $as_echo "no" >&6; } | |
278a7a38 AO |
12809 | fi |
12810 | ||
5213506e | 12811 | |
278a7a38 AO |
12812 | done |
12813 | fi | |
12814 | ||
12815 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12816 | for ncn_progname in cc gcc; do |
5213506e RW |
12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12818 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12819 | if test -x $with_build_time_tools/${ncn_progname}; then |
12820 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12822 | $as_echo "yes" >&6; } | |
72a7ab82 | 12823 | break |
e8b05380 | 12824 | else |
5213506e RW |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12826 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12827 | fi |
12828 | done | |
4de997d1 PB |
12829 | fi |
12830 | ||
e8b05380 PB |
12831 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12832 | for ncn_progname in cc gcc; do | |
12833 | if test -n "$ncn_target_tool_prefix"; then | |
12834 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12835 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12837 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12838 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12839 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12840 | else |
12841 | if test -n "$CC_FOR_TARGET"; then | |
12842 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12843 | else | |
1c710c3c DJ |
12844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12845 | for as_dir in $PATH | |
12846 | do | |
12847 | IFS=$as_save_IFS | |
12848 | test -z "$as_dir" && as_dir=. | |
5213506e | 12849 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12851 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12853 | break 2 |
12854 | fi | |
12855 | done | |
5213506e RW |
12856 | done |
12857 | IFS=$as_save_IFS | |
1c710c3c | 12858 | |
4de997d1 PB |
12859 | fi |
12860 | fi | |
1c710c3c | 12861 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12862 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12864 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12865 | else |
5213506e RW |
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12867 | $as_echo "no" >&6; } | |
4de997d1 PB |
12868 | fi |
12869 | ||
5213506e | 12870 | |
e8b05380 PB |
12871 | fi |
12872 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12873 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12874 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12876 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12877 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12878 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12879 | else |
2693c0b0 PB |
12880 | if test -n "$CC_FOR_TARGET"; then |
12881 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12882 | else |
1c710c3c DJ |
12883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12884 | for as_dir in $PATH | |
12885 | do | |
12886 | IFS=$as_save_IFS | |
12887 | test -z "$as_dir" && as_dir=. | |
5213506e | 12888 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12890 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12892 | break 2 |
12893 | fi | |
12894 | done | |
5213506e RW |
12895 | done |
12896 | IFS=$as_save_IFS | |
1c710c3c | 12897 | |
4de997d1 PB |
12898 | fi |
12899 | fi | |
1c710c3c | 12900 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 12901 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12903 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12904 | else |
5213506e RW |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12906 | $as_echo "no" >&6; } | |
4de997d1 | 12907 | fi |
1c710c3c | 12908 | |
5213506e | 12909 | |
e8b05380 PB |
12910 | fi |
12911 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
12912 | done | |
12913 | fi | |
1c710c3c | 12914 | |
2693c0b0 PB |
12915 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
12916 | set dummy cc gcc | |
12917 | if test $build = $target ; then | |
12918 | CC_FOR_TARGET="$2" | |
4de997d1 | 12919 | else |
2693c0b0 | 12920 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12921 | fi |
1c00b503 PB |
12922 | else |
12923 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
12924 | fi |
12925 | ||
278a7a38 AO |
12926 | |
12927 | ||
12928 | if test -n "$CXX_FOR_TARGET"; then | |
12929 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
12930 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12931 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12932 | fi | |
12933 | ||
12934 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12935 | for ncn_progname in c++ g++ cxx gxx; do | |
12936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12937 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12939 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12940 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12941 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12942 | else |
12943 | if test -n "$CXX_FOR_TARGET"; then | |
12944 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
12945 | else | |
12946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12947 | for as_dir in $PATH | |
12948 | do | |
12949 | IFS=$as_save_IFS | |
12950 | test -z "$as_dir" && as_dir=. | |
5213506e | 12951 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12953 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 12954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12955 | break 2 |
12956 | fi | |
12957 | done | |
5213506e RW |
12958 | done |
12959 | IFS=$as_save_IFS | |
278a7a38 AO |
12960 | |
12961 | fi | |
12962 | fi | |
12963 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12964 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12966 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 12967 | else |
5213506e RW |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12969 | $as_echo "no" >&6; } | |
278a7a38 AO |
12970 | fi |
12971 | ||
5213506e | 12972 | |
278a7a38 AO |
12973 | done |
12974 | fi | |
12975 | ||
12976 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12977 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12979 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12980 | if test -x $with_build_time_tools/${ncn_progname}; then |
12981 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12983 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12984 | break |
12985 | else | |
5213506e RW |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12987 | $as_echo "no" >&6; } | |
e8b05380 PB |
12988 | fi |
12989 | done | |
12990 | fi | |
12991 | ||
12992 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12993 | for ncn_progname in c++ g++ cxx gxx; do | |
12994 | if test -n "$ncn_target_tool_prefix"; then | |
12995 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12996 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12998 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12999 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13000 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13001 | else |
13002 | if test -n "$CXX_FOR_TARGET"; then | |
13003 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13004 | else | |
1c710c3c DJ |
13005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13006 | for as_dir in $PATH | |
13007 | do | |
13008 | IFS=$as_save_IFS | |
13009 | test -z "$as_dir" && as_dir=. | |
5213506e | 13010 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13012 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13014 | break 2 |
13015 | fi | |
13016 | done | |
5213506e RW |
13017 | done |
13018 | IFS=$as_save_IFS | |
1c710c3c | 13019 | |
4de997d1 PB |
13020 | fi |
13021 | fi | |
1c710c3c | 13022 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13023 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13025 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13026 | else |
5213506e RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13028 | $as_echo "no" >&6; } | |
4de997d1 PB |
13029 | fi |
13030 | ||
5213506e | 13031 | |
e8b05380 PB |
13032 | fi |
13033 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13034 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13035 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13037 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13038 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13039 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13040 | else |
2693c0b0 PB |
13041 | if test -n "$CXX_FOR_TARGET"; then |
13042 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13043 | else |
1c710c3c DJ |
13044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13045 | for as_dir in $PATH | |
13046 | do | |
13047 | IFS=$as_save_IFS | |
13048 | test -z "$as_dir" && as_dir=. | |
5213506e | 13049 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13051 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13053 | break 2 |
13054 | fi | |
13055 | done | |
5213506e RW |
13056 | done |
13057 | IFS=$as_save_IFS | |
1c710c3c | 13058 | |
4de997d1 PB |
13059 | fi |
13060 | fi | |
1c710c3c | 13061 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13062 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13064 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13065 | else |
5213506e RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13067 | $as_echo "no" >&6; } | |
4de997d1 | 13068 | fi |
1c710c3c | 13069 | |
5213506e | 13070 | |
e8b05380 PB |
13071 | fi |
13072 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13073 | done | |
13074 | fi | |
1c710c3c | 13075 | |
2693c0b0 PB |
13076 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13077 | set dummy c++ g++ cxx gxx | |
13078 | if test $build = $target ; then | |
13079 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13080 | else |
2693c0b0 | 13081 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13082 | fi |
1c00b503 PB |
13083 | else |
13084 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13085 | fi |
13086 | ||
278a7a38 AO |
13087 | |
13088 | ||
13089 | if test -n "$GCC_FOR_TARGET"; then | |
13090 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13091 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13092 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13093 | fi | |
13094 | ||
13095 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13096 | for ncn_progname in gcc; do | |
13097 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13098 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13100 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13101 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13102 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13103 | else |
13104 | if test -n "$GCC_FOR_TARGET"; then | |
13105 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13106 | else | |
13107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13108 | for as_dir in $PATH | |
13109 | do | |
13110 | IFS=$as_save_IFS | |
13111 | test -z "$as_dir" && as_dir=. | |
5213506e | 13112 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13114 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13116 | break 2 |
13117 | fi | |
13118 | done | |
5213506e RW |
13119 | done |
13120 | IFS=$as_save_IFS | |
278a7a38 AO |
13121 | |
13122 | fi | |
13123 | fi | |
13124 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13125 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13127 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13128 | else |
5213506e RW |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13130 | $as_echo "no" >&6; } | |
278a7a38 AO |
13131 | fi |
13132 | ||
5213506e | 13133 | |
278a7a38 AO |
13134 | done |
13135 | fi | |
13136 | ||
13137 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13138 | for ncn_progname in gcc; do |
5213506e RW |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13140 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13141 | if test -x $with_build_time_tools/${ncn_progname}; then |
13142 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13144 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13145 | break |
13146 | else | |
5213506e RW |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13148 | $as_echo "no" >&6; } | |
e8b05380 PB |
13149 | fi |
13150 | done | |
13151 | fi | |
13152 | ||
13153 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13154 | for ncn_progname in gcc; do | |
13155 | if test -n "$ncn_target_tool_prefix"; then | |
13156 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13157 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13159 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13160 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13161 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13162 | else |
e8b05380 PB |
13163 | if test -n "$GCC_FOR_TARGET"; then |
13164 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13165 | else |
1c710c3c DJ |
13166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13167 | for as_dir in $PATH | |
13168 | do | |
13169 | IFS=$as_save_IFS | |
13170 | test -z "$as_dir" && as_dir=. | |
5213506e | 13171 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13173 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13175 | break 2 |
13176 | fi | |
13177 | done | |
5213506e RW |
13178 | done |
13179 | IFS=$as_save_IFS | |
1c710c3c | 13180 | |
ca9f4b81 AO |
13181 | fi |
13182 | fi | |
1c710c3c | 13183 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13184 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13186 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13187 | else |
5213506e RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13189 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13190 | fi |
13191 | ||
5213506e | 13192 | |
e8b05380 PB |
13193 | fi |
13194 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13195 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13196 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13198 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13199 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13200 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13201 | else |
e8b05380 PB |
13202 | if test -n "$GCC_FOR_TARGET"; then |
13203 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13204 | else |
1c710c3c DJ |
13205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13206 | for as_dir in $PATH | |
13207 | do | |
13208 | IFS=$as_save_IFS | |
13209 | test -z "$as_dir" && as_dir=. | |
5213506e | 13210 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13212 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13214 | break 2 |
13215 | fi | |
13216 | done | |
5213506e RW |
13217 | done |
13218 | IFS=$as_save_IFS | |
1c710c3c | 13219 | |
ca9f4b81 AO |
13220 | fi |
13221 | fi | |
1c710c3c | 13222 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13223 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13225 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13226 | else |
5213506e RW |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13228 | $as_echo "no" >&6; } | |
ca9f4b81 | 13229 | fi |
1c710c3c | 13230 | |
5213506e | 13231 | |
e8b05380 PB |
13232 | fi |
13233 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13234 | done | |
13235 | fi | |
1c710c3c | 13236 | |
e8b05380 PB |
13237 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13238 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13239 | else |
13240 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13241 | fi |
13242 | ||
278a7a38 AO |
13243 | |
13244 | ||
278a7a38 AO |
13245 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13246 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13247 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13248 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13249 | fi |
13250 | ||
278a7a38 AO |
13251 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13252 | for ncn_progname in gfortran; do | |
13253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13254 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13256 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13257 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13258 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13259 | else |
278a7a38 AO |
13260 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13261 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13262 | else |
1c710c3c DJ |
13263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13264 | for as_dir in $PATH | |
13265 | do | |
13266 | IFS=$as_save_IFS | |
13267 | test -z "$as_dir" && as_dir=. | |
5213506e | 13268 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13270 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13272 | break 2 |
13273 | fi | |
13274 | done | |
5213506e RW |
13275 | done |
13276 | IFS=$as_save_IFS | |
1c710c3c | 13277 | |
e8b05380 PB |
13278 | fi |
13279 | fi | |
278a7a38 AO |
13280 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13281 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13283 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13284 | else |
5213506e RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13286 | $as_echo "no" >&6; } | |
e8b05380 | 13287 | fi |
1c710c3c | 13288 | |
5213506e | 13289 | |
e8b05380 PB |
13290 | done |
13291 | fi | |
1c710c3c | 13292 | |
278a7a38 | 13293 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13294 | for ncn_progname in gfortran; do |
5213506e RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13296 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13297 | if test -x $with_build_time_tools/${ncn_progname}; then |
13298 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13300 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13301 | break |
13302 | else | |
5213506e RW |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13304 | $as_echo "no" >&6; } | |
e8b05380 PB |
13305 | fi |
13306 | done | |
13307 | fi | |
13308 | ||
13309 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13310 | for ncn_progname in gfortran; do | |
13311 | if test -n "$ncn_target_tool_prefix"; then | |
13312 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13313 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13315 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13316 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13317 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13318 | else |
13319 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13320 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13321 | else | |
13322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13323 | for as_dir in $PATH | |
13324 | do | |
13325 | IFS=$as_save_IFS | |
13326 | test -z "$as_dir" && as_dir=. | |
5213506e | 13327 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13328 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13329 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13331 | break 2 |
13332 | fi | |
13333 | done | |
5213506e RW |
13334 | done |
13335 | IFS=$as_save_IFS | |
1c710c3c | 13336 | |
e8b05380 PB |
13337 | fi |
13338 | fi | |
1c710c3c | 13339 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13340 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13342 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13343 | else |
5213506e RW |
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13345 | $as_echo "no" >&6; } | |
e8b05380 PB |
13346 | fi |
13347 | ||
5213506e | 13348 | |
e8b05380 PB |
13349 | fi |
13350 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13351 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13352 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13354 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13355 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13356 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13357 | else |
13358 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13359 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13360 | else | |
1c710c3c DJ |
13361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13362 | for as_dir in $PATH | |
13363 | do | |
13364 | IFS=$as_save_IFS | |
13365 | test -z "$as_dir" && as_dir=. | |
5213506e | 13366 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13368 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13370 | break 2 |
13371 | fi | |
13372 | done | |
5213506e RW |
13373 | done |
13374 | IFS=$as_save_IFS | |
1c710c3c | 13375 | |
e8b05380 PB |
13376 | fi |
13377 | fi | |
1c710c3c | 13378 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13379 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13381 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13382 | else |
5213506e RW |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13384 | $as_echo "no" >&6; } | |
e8b05380 | 13385 | fi |
1c710c3c | 13386 | |
5213506e | 13387 | |
e8b05380 PB |
13388 | fi |
13389 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13390 | done | |
13391 | fi | |
1c710c3c | 13392 | |
e8b05380 PB |
13393 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13394 | set dummy gfortran | |
2693c0b0 | 13395 | if test $build = $target ; then |
e8b05380 | 13396 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13397 | else |
e8b05380 PB |
13398 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13399 | fi | |
1c00b503 PB |
13400 | else |
13401 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13402 | fi |
13403 | ||
13404 | ||
13405 | ||
632e2a07 ILT |
13406 | if test -n "$GOC_FOR_TARGET"; then |
13407 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13408 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13409 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13410 | fi | |
13411 | ||
13412 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13413 | for ncn_progname in gccgo; do | |
13414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13415 | set dummy ${ncn_progname}; ac_word=$2 | |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13417 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13418 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13419 | $as_echo_n "(cached) " >&6 |
13420 | else | |
13421 | if test -n "$GOC_FOR_TARGET"; then | |
13422 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13423 | else | |
13424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13425 | for as_dir in $PATH | |
13426 | do | |
13427 | IFS=$as_save_IFS | |
13428 | test -z "$as_dir" && as_dir=. | |
13429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13431 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13433 | break 2 | |
13434 | fi | |
13435 | done | |
13436 | done | |
13437 | IFS=$as_save_IFS | |
13438 | ||
13439 | fi | |
13440 | fi | |
13441 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13442 | if test -n "$GOC_FOR_TARGET"; then | |
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13444 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13445 | else | |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13447 | $as_echo "no" >&6; } | |
13448 | fi | |
13449 | ||
13450 | ||
13451 | done | |
13452 | fi | |
13453 | ||
13454 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13455 | for ncn_progname in gccgo; do | |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13457 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13458 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13459 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13461 | $as_echo "yes" >&6; } | |
13462 | break | |
13463 | else | |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13465 | $as_echo "no" >&6; } | |
13466 | fi | |
13467 | done | |
13468 | fi | |
13469 | ||
13470 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13471 | for ncn_progname in gccgo; do | |
13472 | if test -n "$ncn_target_tool_prefix"; then | |
13473 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13474 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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; } | |
22e05272 | 13477 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13478 | $as_echo_n "(cached) " >&6 |
13479 | else | |
13480 | if test -n "$GOC_FOR_TARGET"; then | |
13481 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13482 | else | |
13483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13484 | for as_dir in $PATH | |
13485 | do | |
13486 | IFS=$as_save_IFS | |
13487 | test -z "$as_dir" && as_dir=. | |
13488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13490 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13492 | break 2 | |
13493 | fi | |
13494 | done | |
13495 | done | |
13496 | IFS=$as_save_IFS | |
13497 | ||
13498 | fi | |
13499 | fi | |
13500 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13501 | if test -n "$GOC_FOR_TARGET"; then | |
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13503 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13504 | else | |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13506 | $as_echo "no" >&6; } | |
13507 | fi | |
13508 | ||
13509 | ||
13510 | fi | |
13511 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13513 | set dummy ${ncn_progname}; ac_word=$2 | |
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13515 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13516 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13517 | $as_echo_n "(cached) " >&6 |
13518 | else | |
13519 | if test -n "$GOC_FOR_TARGET"; then | |
13520 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13521 | else | |
13522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13523 | for as_dir in $PATH | |
13524 | do | |
13525 | IFS=$as_save_IFS | |
13526 | test -z "$as_dir" && as_dir=. | |
13527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13529 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13531 | break 2 | |
13532 | fi | |
13533 | done | |
13534 | done | |
13535 | IFS=$as_save_IFS | |
13536 | ||
13537 | fi | |
13538 | fi | |
13539 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13540 | if test -n "$GOC_FOR_TARGET"; then | |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13542 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13543 | else | |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13545 | $as_echo "no" >&6; } | |
13546 | fi | |
13547 | ||
13548 | ||
13549 | fi | |
13550 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13551 | done | |
13552 | fi | |
13553 | ||
13554 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13555 | set dummy gccgo | |
13556 | if test $build = $target ; then | |
13557 | GOC_FOR_TARGET="$2" | |
13558 | else | |
13559 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13560 | fi | |
13561 | else | |
13562 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13563 | fi | |
13564 | ||
13565 | ||
13566 | ||
b4c522fa IB |
13567 | if test -n "$GDC_FOR_TARGET"; then |
13568 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13569 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13570 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13571 | fi | |
13572 | ||
13573 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13574 | for ncn_progname in gdc; do | |
13575 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13576 | set dummy ${ncn_progname}; ac_word=$2 | |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13578 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13579 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13580 | $as_echo_n "(cached) " >&6 |
13581 | else | |
13582 | if test -n "$GDC_FOR_TARGET"; then | |
13583 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13584 | else | |
13585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13586 | for as_dir in $PATH | |
13587 | do | |
13588 | IFS=$as_save_IFS | |
13589 | test -z "$as_dir" && as_dir=. | |
13590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13592 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13594 | break 2 | |
13595 | fi | |
13596 | done | |
13597 | done | |
13598 | IFS=$as_save_IFS | |
13599 | ||
13600 | fi | |
13601 | fi | |
13602 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13603 | if test -n "$GDC_FOR_TARGET"; then | |
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13605 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13606 | else | |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13608 | $as_echo "no" >&6; } | |
13609 | fi | |
13610 | ||
13611 | ||
13612 | done | |
13613 | fi | |
13614 | ||
13615 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13616 | for ncn_progname in gdc; do | |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13618 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13619 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13620 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13622 | $as_echo "yes" >&6; } | |
13623 | break | |
13624 | else | |
13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13626 | $as_echo "no" >&6; } | |
13627 | fi | |
13628 | done | |
13629 | fi | |
13630 | ||
13631 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13632 | for ncn_progname in gdc; do | |
13633 | if test -n "$ncn_target_tool_prefix"; then | |
13634 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13635 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13637 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13638 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13639 | $as_echo_n "(cached) " >&6 |
13640 | else | |
13641 | if test -n "$GDC_FOR_TARGET"; then | |
13642 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13643 | else | |
13644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13645 | for as_dir in $PATH | |
13646 | do | |
13647 | IFS=$as_save_IFS | |
13648 | test -z "$as_dir" && as_dir=. | |
13649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13651 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13653 | break 2 | |
13654 | fi | |
13655 | done | |
13656 | done | |
13657 | IFS=$as_save_IFS | |
13658 | ||
13659 | fi | |
13660 | fi | |
13661 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13662 | if test -n "$GDC_FOR_TARGET"; then | |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13664 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13665 | else | |
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13667 | $as_echo "no" >&6; } | |
13668 | fi | |
13669 | ||
13670 | ||
13671 | fi | |
13672 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13674 | set dummy ${ncn_progname}; ac_word=$2 | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13676 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13677 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13678 | $as_echo_n "(cached) " >&6 |
13679 | else | |
13680 | if test -n "$GDC_FOR_TARGET"; then | |
13681 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13682 | else | |
13683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13684 | for as_dir in $PATH | |
13685 | do | |
13686 | IFS=$as_save_IFS | |
13687 | test -z "$as_dir" && as_dir=. | |
13688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13690 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13692 | break 2 | |
13693 | fi | |
13694 | done | |
13695 | done | |
13696 | IFS=$as_save_IFS | |
13697 | ||
13698 | fi | |
13699 | fi | |
13700 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13701 | if test -n "$GDC_FOR_TARGET"; then | |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13703 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13704 | else | |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13706 | $as_echo "no" >&6; } | |
13707 | fi | |
13708 | ||
13709 | ||
13710 | fi | |
13711 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13712 | done | |
13713 | fi | |
13714 | ||
13715 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13716 | set dummy gdc | |
13717 | if test $build = $target ; then | |
13718 | GDC_FOR_TARGET="$2" | |
13719 | else | |
13720 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13721 | fi | |
13722 | else | |
13723 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13724 | fi | |
13725 | ||
13726 | ||
13727 | ||
e8b05380 PB |
13728 | cat > conftest.c << \EOF |
13729 | #ifdef __GNUC__ | |
13730 | gcc_yay; | |
13731 | #endif | |
13732 | EOF | |
13733 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13734 | have_gcc_for_target=yes | |
13735 | else | |
13736 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13737 | have_gcc_for_target=no | |
13738 | fi | |
13739 | rm conftest.c | |
13740 | ||
13741 | ||
13742 | ||
13743 | ||
13744 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13745 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13747 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13748 | if test -x $with_build_time_tools/ar; then |
13749 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13750 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13752 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13753 | else |
5213506e RW |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13755 | $as_echo "no" >&6; } | |
d1f8db0c | 13756 | fi |
e8b05380 PB |
13757 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13758 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13759 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13760 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13761 | fi |
13762 | fi | |
3e19841a | 13763 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13764 | # Extract the first word of "ar", so it can be a program name with args. |
13765 | set dummy ar; ac_word=$2 | |
5213506e RW |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13767 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13768 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13769 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13770 | else |
1c710c3c DJ |
13771 | case $AR_FOR_TARGET in |
13772 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13773 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13774 | ;; | |
e8b05380 | 13775 | *) |
1c710c3c DJ |
13776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13777 | for as_dir in $gcc_cv_tool_dirs | |
13778 | do | |
13779 | IFS=$as_save_IFS | |
13780 | test -z "$as_dir" && as_dir=. | |
5213506e | 13781 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13783 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13785 | break 2 |
13786 | fi | |
13787 | done | |
5213506e RW |
13788 | done |
13789 | IFS=$as_save_IFS | |
1c710c3c | 13790 | |
e8b05380 PB |
13791 | ;; |
13792 | esac | |
13793 | fi | |
1c710c3c | 13794 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13795 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13797 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13798 | else |
5213506e RW |
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13800 | $as_echo "no" >&6; } | |
4de997d1 PB |
13801 | fi |
13802 | ||
5213506e | 13803 | |
e8b05380 PB |
13804 | fi |
13805 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13806 | |
13807 | ||
13808 | if test -n "$AR_FOR_TARGET"; then | |
13809 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13810 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13811 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13812 | fi | |
13813 | ||
13814 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13815 | for ncn_progname in ar; do | |
13816 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13817 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13819 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13820 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13821 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13822 | else |
13823 | if test -n "$AR_FOR_TARGET"; then | |
13824 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13825 | else | |
13826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13827 | for as_dir in $PATH | |
13828 | do | |
13829 | IFS=$as_save_IFS | |
13830 | test -z "$as_dir" && as_dir=. | |
5213506e | 13831 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13833 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13835 | break 2 |
13836 | fi | |
13837 | done | |
5213506e RW |
13838 | done |
13839 | IFS=$as_save_IFS | |
278a7a38 AO |
13840 | |
13841 | fi | |
13842 | fi | |
13843 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13844 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13846 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13847 | else |
5213506e RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13849 | $as_echo "no" >&6; } | |
278a7a38 AO |
13850 | fi |
13851 | ||
5213506e | 13852 | |
278a7a38 AO |
13853 | done |
13854 | fi | |
13855 | ||
13856 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13857 | for ncn_progname in ar; do |
5213506e RW |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13859 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13860 | if test -x $with_build_time_tools/${ncn_progname}; then |
13861 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13863 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13864 | break |
13865 | else | |
5213506e RW |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13867 | $as_echo "no" >&6; } | |
e8b05380 PB |
13868 | fi |
13869 | done | |
13870 | fi | |
13871 | ||
13872 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13873 | for ncn_progname in ar; do | |
13874 | if test -n "$ncn_target_tool_prefix"; then | |
13875 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13876 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13878 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13879 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13880 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13881 | else |
e8b05380 PB |
13882 | if test -n "$AR_FOR_TARGET"; then |
13883 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13884 | else |
1c710c3c DJ |
13885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13886 | for as_dir in $PATH | |
13887 | do | |
13888 | IFS=$as_save_IFS | |
13889 | test -z "$as_dir" && as_dir=. | |
5213506e | 13890 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13892 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13894 | break 2 |
13895 | fi | |
13896 | done | |
5213506e RW |
13897 | done |
13898 | IFS=$as_save_IFS | |
1c710c3c | 13899 | |
4de997d1 PB |
13900 | fi |
13901 | fi | |
1c710c3c | 13902 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13903 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13905 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 13906 | else |
5213506e RW |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13908 | $as_echo "no" >&6; } | |
4de997d1 PB |
13909 | fi |
13910 | ||
5213506e | 13911 | |
e8b05380 PB |
13912 | fi |
13913 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
13914 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13915 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13917 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13918 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13919 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13920 | else |
13921 | if test -n "$AR_FOR_TARGET"; then | |
13922 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13923 | else | |
1c710c3c DJ |
13924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13925 | for as_dir in $PATH | |
13926 | do | |
13927 | IFS=$as_save_IFS | |
13928 | test -z "$as_dir" && as_dir=. | |
5213506e | 13929 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13931 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13933 | break 2 |
13934 | fi | |
13935 | done | |
5213506e RW |
13936 | done |
13937 | IFS=$as_save_IFS | |
1c710c3c | 13938 | |
e8b05380 PB |
13939 | fi |
13940 | fi | |
1c710c3c | 13941 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13942 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13944 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13945 | else |
5213506e RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13947 | $as_echo "no" >&6; } | |
e8b05380 | 13948 | fi |
1c710c3c | 13949 | |
5213506e | 13950 | |
e8b05380 PB |
13951 | fi |
13952 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
13953 | done | |
13954 | fi | |
1c710c3c | 13955 | |
e8b05380 PB |
13956 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
13957 | set dummy ar | |
13958 | if test $build = $target ; then | |
13959 | AR_FOR_TARGET="$2" | |
13960 | else | |
13961 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 13962 | fi |
1c00b503 PB |
13963 | else |
13964 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
13965 | fi |
13966 | ||
d1f8db0c PB |
13967 | else |
13968 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
13969 | fi |
13970 | ||
13971 | ||
13972 | ||
13973 | ||
13974 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
13975 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
13977 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13978 | if test -x $with_build_time_tools/as; then |
13979 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
13980 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
13982 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 13983 | else |
5213506e RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13985 | $as_echo "no" >&6; } | |
d1f8db0c | 13986 | fi |
e8b05380 PB |
13987 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13988 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
13989 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
13990 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
13991 | fi |
13992 | fi | |
3e19841a | 13993 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13994 | # Extract the first word of "as", so it can be a program name with args. |
13995 | set dummy as; ac_word=$2 | |
5213506e RW |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13997 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13998 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 13999 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14000 | else |
1c710c3c DJ |
14001 | case $AS_FOR_TARGET in |
14002 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14003 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14004 | ;; | |
e8b05380 | 14005 | *) |
1c710c3c DJ |
14006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14007 | for as_dir in $gcc_cv_tool_dirs | |
14008 | do | |
14009 | IFS=$as_save_IFS | |
14010 | test -z "$as_dir" && as_dir=. | |
5213506e | 14011 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14013 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14015 | break 2 |
14016 | fi | |
14017 | done | |
5213506e RW |
14018 | done |
14019 | IFS=$as_save_IFS | |
1c710c3c | 14020 | |
e8b05380 PB |
14021 | ;; |
14022 | esac | |
14023 | fi | |
1c710c3c | 14024 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14025 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14027 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14028 | else |
5213506e RW |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14030 | $as_echo "no" >&6; } | |
e8b05380 PB |
14031 | fi |
14032 | ||
5213506e | 14033 | |
e8b05380 PB |
14034 | fi |
14035 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14036 | |
14037 | ||
14038 | if test -n "$AS_FOR_TARGET"; then | |
14039 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14040 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14041 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14042 | fi | |
14043 | ||
14044 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14045 | for ncn_progname in as; do | |
14046 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14047 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14049 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14050 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14051 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14052 | else |
14053 | if test -n "$AS_FOR_TARGET"; then | |
14054 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14055 | else | |
14056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14057 | for as_dir in $PATH | |
14058 | do | |
14059 | IFS=$as_save_IFS | |
14060 | test -z "$as_dir" && as_dir=. | |
5213506e | 14061 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14063 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14065 | break 2 |
14066 | fi | |
14067 | done | |
5213506e RW |
14068 | done |
14069 | IFS=$as_save_IFS | |
278a7a38 AO |
14070 | |
14071 | fi | |
14072 | fi | |
14073 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14074 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14076 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14077 | else |
5213506e RW |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14079 | $as_echo "no" >&6; } | |
278a7a38 AO |
14080 | fi |
14081 | ||
5213506e | 14082 | |
278a7a38 AO |
14083 | done |
14084 | fi | |
14085 | ||
14086 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14087 | for ncn_progname in as; do |
5213506e RW |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14089 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14090 | if test -x $with_build_time_tools/${ncn_progname}; then |
14091 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14093 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14094 | break |
14095 | else | |
5213506e RW |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14097 | $as_echo "no" >&6; } | |
e8b05380 PB |
14098 | fi |
14099 | done | |
14100 | fi | |
14101 | ||
14102 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14103 | for ncn_progname in as; do | |
14104 | if test -n "$ncn_target_tool_prefix"; then | |
14105 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14106 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14108 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14109 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14110 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14111 | else |
14112 | if test -n "$AS_FOR_TARGET"; then | |
14113 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14114 | else | |
1c710c3c DJ |
14115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14116 | for as_dir in $PATH | |
14117 | do | |
14118 | IFS=$as_save_IFS | |
14119 | test -z "$as_dir" && as_dir=. | |
5213506e | 14120 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14122 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14124 | break 2 |
14125 | fi | |
14126 | done | |
5213506e RW |
14127 | done |
14128 | IFS=$as_save_IFS | |
1c710c3c | 14129 | |
e8b05380 PB |
14130 | fi |
14131 | fi | |
1c710c3c | 14132 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14133 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14135 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14136 | else |
5213506e RW |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14138 | $as_echo "no" >&6; } | |
e8b05380 PB |
14139 | fi |
14140 | ||
5213506e | 14141 | |
e8b05380 PB |
14142 | fi |
14143 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14144 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14145 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14147 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14148 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14149 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14150 | else |
e8b05380 PB |
14151 | if test -n "$AS_FOR_TARGET"; then |
14152 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14153 | else |
1c710c3c DJ |
14154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14155 | for as_dir in $PATH | |
14156 | do | |
14157 | IFS=$as_save_IFS | |
14158 | test -z "$as_dir" && as_dir=. | |
5213506e | 14159 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14161 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14163 | break 2 |
14164 | fi | |
14165 | done | |
5213506e RW |
14166 | done |
14167 | IFS=$as_save_IFS | |
1c710c3c | 14168 | |
4de997d1 PB |
14169 | fi |
14170 | fi | |
1c710c3c | 14171 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14172 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14174 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14175 | else |
5213506e RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14177 | $as_echo "no" >&6; } | |
4de997d1 | 14178 | fi |
1c710c3c | 14179 | |
5213506e | 14180 | |
e8b05380 PB |
14181 | fi |
14182 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14183 | done | |
14184 | fi | |
1c710c3c | 14185 | |
e8b05380 PB |
14186 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14187 | set dummy as | |
14188 | if test $build = $target ; then | |
14189 | AS_FOR_TARGET="$2" | |
14190 | else | |
14191 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14192 | fi |
1c00b503 PB |
14193 | else |
14194 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14195 | fi |
2693c0b0 | 14196 | |
d1f8db0c PB |
14197 | else |
14198 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14199 | fi |
14200 | ||
e8b05380 PB |
14201 | |
14202 | ||
14203 | ||
14204 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14205 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14207 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14208 | if test -x $with_build_time_tools/dlltool; then |
14209 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14210 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14212 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14213 | else |
5213506e RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14215 | $as_echo "no" >&6; } | |
d1f8db0c | 14216 | fi |
e8b05380 PB |
14217 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14218 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14219 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14220 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14221 | fi |
14222 | fi | |
3e19841a | 14223 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14224 | # Extract the first word of "dlltool", so it can be a program name with args. |
14225 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14227 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14228 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14229 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14230 | else |
1c710c3c DJ |
14231 | case $DLLTOOL_FOR_TARGET in |
14232 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14233 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14234 | ;; | |
e8b05380 | 14235 | *) |
1c710c3c DJ |
14236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14237 | for as_dir in $gcc_cv_tool_dirs | |
14238 | do | |
14239 | IFS=$as_save_IFS | |
14240 | test -z "$as_dir" && as_dir=. | |
5213506e | 14241 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14243 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14245 | break 2 |
14246 | fi | |
14247 | done | |
5213506e RW |
14248 | done |
14249 | IFS=$as_save_IFS | |
1c710c3c | 14250 | |
e8b05380 PB |
14251 | ;; |
14252 | esac | |
4de997d1 | 14253 | fi |
1c710c3c | 14254 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14255 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14257 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14258 | else |
5213506e RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14260 | $as_echo "no" >&6; } | |
4de997d1 PB |
14261 | fi |
14262 | ||
5213506e | 14263 | |
e8b05380 PB |
14264 | fi |
14265 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14266 | |
14267 | ||
14268 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14269 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14270 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14271 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14272 | fi | |
14273 | ||
14274 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14275 | for ncn_progname in dlltool; do | |
14276 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14277 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14279 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14280 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14281 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14282 | else |
14283 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14284 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14285 | else | |
14286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14287 | for as_dir in $PATH | |
14288 | do | |
14289 | IFS=$as_save_IFS | |
14290 | test -z "$as_dir" && as_dir=. | |
5213506e | 14291 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14293 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14295 | break 2 |
14296 | fi | |
14297 | done | |
5213506e RW |
14298 | done |
14299 | IFS=$as_save_IFS | |
278a7a38 AO |
14300 | |
14301 | fi | |
14302 | fi | |
14303 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14304 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14306 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14307 | else |
5213506e RW |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14309 | $as_echo "no" >&6; } | |
278a7a38 AO |
14310 | fi |
14311 | ||
5213506e | 14312 | |
278a7a38 AO |
14313 | done |
14314 | fi | |
14315 | ||
14316 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14317 | for ncn_progname in dlltool; do |
5213506e RW |
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14319 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14320 | if test -x $with_build_time_tools/${ncn_progname}; then |
14321 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14323 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14324 | break |
14325 | else | |
5213506e RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14327 | $as_echo "no" >&6; } | |
e8b05380 PB |
14328 | fi |
14329 | done | |
14330 | fi | |
14331 | ||
14332 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14333 | for ncn_progname in dlltool; do | |
14334 | if test -n "$ncn_target_tool_prefix"; then | |
14335 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14336 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14338 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14339 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14340 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14341 | else |
e8b05380 PB |
14342 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14343 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14344 | else |
1c710c3c DJ |
14345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14346 | for as_dir in $PATH | |
14347 | do | |
14348 | IFS=$as_save_IFS | |
14349 | test -z "$as_dir" && as_dir=. | |
5213506e | 14350 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14352 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14354 | break 2 |
14355 | fi | |
14356 | done | |
5213506e RW |
14357 | done |
14358 | IFS=$as_save_IFS | |
1c710c3c | 14359 | |
4de997d1 PB |
14360 | fi |
14361 | fi | |
1c710c3c | 14362 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14363 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14365 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14366 | else |
5213506e RW |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14368 | $as_echo "no" >&6; } | |
4de997d1 | 14369 | fi |
4de997d1 | 14370 | |
5213506e | 14371 | |
e8b05380 PB |
14372 | fi |
14373 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14374 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14375 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14377 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14378 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14379 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14380 | else |
e8b05380 PB |
14381 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14382 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14383 | else |
1c710c3c DJ |
14384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14385 | for as_dir in $PATH | |
14386 | do | |
14387 | IFS=$as_save_IFS | |
14388 | test -z "$as_dir" && as_dir=. | |
5213506e | 14389 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14391 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14393 | break 2 |
14394 | fi | |
14395 | done | |
5213506e RW |
14396 | done |
14397 | IFS=$as_save_IFS | |
1c710c3c | 14398 | |
4de997d1 PB |
14399 | fi |
14400 | fi | |
1c710c3c | 14401 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14402 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14404 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14405 | else |
5213506e RW |
14406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14407 | $as_echo "no" >&6; } | |
4de997d1 | 14408 | fi |
1c710c3c | 14409 | |
5213506e | 14410 | |
e8b05380 PB |
14411 | fi |
14412 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14413 | done | |
14414 | fi | |
1c710c3c | 14415 | |
e8b05380 PB |
14416 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14417 | set dummy dlltool | |
14418 | if test $build = $target ; then | |
14419 | DLLTOOL_FOR_TARGET="$2" | |
14420 | else | |
14421 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14422 | fi | |
1c00b503 PB |
14423 | else |
14424 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14425 | fi |
14426 | ||
d1f8db0c PB |
14427 | else |
14428 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14429 | fi |
14430 | ||
4de997d1 | 14431 | |
e8b05380 PB |
14432 | |
14433 | ||
3b5e8ee4 IS |
14434 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14435 | if test -n "$with_build_time_tools"; then | |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14437 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14438 | if test -x $with_build_time_tools/dsymutil; then | |
14439 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14440 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14442 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14443 | else | |
14444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14445 | $as_echo "no" >&6; } | |
14446 | fi | |
14447 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14448 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14449 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14450 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14451 | fi | |
14452 | fi | |
14453 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14454 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14455 | set dummy dsymutil; ac_word=$2 | |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14457 | $as_echo_n "checking for $ac_word... " >&6; } | |
14458 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14459 | $as_echo_n "(cached) " >&6 | |
14460 | else | |
14461 | case $DSYMUTIL_FOR_TARGET in | |
14462 | [\\/]* | ?:[\\/]*) | |
14463 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14464 | ;; | |
14465 | *) | |
14466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14467 | for as_dir in $gcc_cv_tool_dirs | |
14468 | do | |
14469 | IFS=$as_save_IFS | |
14470 | test -z "$as_dir" && as_dir=. | |
14471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14473 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14475 | break 2 | |
14476 | fi | |
14477 | done | |
14478 | done | |
14479 | IFS=$as_save_IFS | |
14480 | ||
14481 | ;; | |
14482 | esac | |
14483 | fi | |
14484 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14485 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14487 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14488 | else | |
14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14490 | $as_echo "no" >&6; } | |
14491 | fi | |
14492 | ||
14493 | ||
14494 | fi | |
14495 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14496 | ||
14497 | ||
14498 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14499 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14500 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14501 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14502 | fi | |
14503 | ||
14504 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14505 | for ncn_progname in dsymutil; do | |
14506 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14507 | set dummy ${ncn_progname}; ac_word=$2 | |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14509 | $as_echo_n "checking for $ac_word... " >&6; } | |
14510 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14511 | $as_echo_n "(cached) " >&6 | |
14512 | else | |
14513 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14514 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14515 | else | |
14516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14517 | for as_dir in $PATH | |
14518 | do | |
14519 | IFS=$as_save_IFS | |
14520 | test -z "$as_dir" && as_dir=. | |
14521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14523 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14525 | break 2 | |
14526 | fi | |
14527 | done | |
14528 | done | |
14529 | IFS=$as_save_IFS | |
14530 | ||
14531 | fi | |
14532 | fi | |
14533 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14534 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14536 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14537 | else | |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14539 | $as_echo "no" >&6; } | |
14540 | fi | |
14541 | ||
14542 | ||
14543 | done | |
14544 | fi | |
14545 | ||
14546 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14547 | for ncn_progname in dsymutil; do | |
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14549 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14550 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14551 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14553 | $as_echo "yes" >&6; } | |
14554 | break | |
14555 | else | |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14557 | $as_echo "no" >&6; } | |
14558 | fi | |
14559 | done | |
14560 | fi | |
14561 | ||
14562 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14563 | for ncn_progname in dsymutil; do | |
14564 | if test -n "$ncn_target_tool_prefix"; then | |
14565 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14566 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14568 | $as_echo_n "checking for $ac_word... " >&6; } | |
14569 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14570 | $as_echo_n "(cached) " >&6 | |
14571 | else | |
14572 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14573 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14574 | else | |
14575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14576 | for as_dir in $PATH | |
14577 | do | |
14578 | IFS=$as_save_IFS | |
14579 | test -z "$as_dir" && as_dir=. | |
14580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14582 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14584 | break 2 | |
14585 | fi | |
14586 | done | |
14587 | done | |
14588 | IFS=$as_save_IFS | |
14589 | ||
14590 | fi | |
14591 | fi | |
14592 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14593 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14595 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14596 | else | |
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14598 | $as_echo "no" >&6; } | |
14599 | fi | |
14600 | ||
14601 | ||
14602 | fi | |
14603 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14604 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14605 | set dummy ${ncn_progname}; ac_word=$2 | |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14607 | $as_echo_n "checking for $ac_word... " >&6; } | |
14608 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14609 | $as_echo_n "(cached) " >&6 | |
14610 | else | |
14611 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14612 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14613 | else | |
14614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14615 | for as_dir in $PATH | |
14616 | do | |
14617 | IFS=$as_save_IFS | |
14618 | test -z "$as_dir" && as_dir=. | |
14619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14621 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14623 | break 2 | |
14624 | fi | |
14625 | done | |
14626 | done | |
14627 | IFS=$as_save_IFS | |
14628 | ||
14629 | fi | |
14630 | fi | |
14631 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14632 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14634 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14635 | else | |
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14637 | $as_echo "no" >&6; } | |
14638 | fi | |
14639 | ||
14640 | ||
14641 | fi | |
14642 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
14643 | done | |
14644 | fi | |
14645 | ||
14646 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
14647 | set dummy dsymutil | |
14648 | if test $build = $target ; then | |
14649 | DSYMUTIL_FOR_TARGET="$2" | |
14650 | else | |
14651 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14652 | fi | |
14653 | else | |
14654 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
14655 | fi | |
14656 | ||
14657 | else | |
14658 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14659 | fi | |
14660 | ||
14661 | ||
14662 | ||
14663 | ||
e8b05380 PB |
14664 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
14665 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14667 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14668 | if test -x $with_build_time_tools/ld; then |
14669 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14670 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14672 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14673 | else |
5213506e RW |
14674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14675 | $as_echo "no" >&6; } | |
d1f8db0c | 14676 | fi |
e8b05380 PB |
14677 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14678 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14679 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14680 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14681 | fi |
e8b05380 | 14682 | fi |
3e19841a | 14683 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14684 | # Extract the first word of "ld", so it can be a program name with args. |
14685 | set dummy ld; ac_word=$2 | |
5213506e RW |
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14687 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14688 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14689 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14690 | else |
1c710c3c DJ |
14691 | case $LD_FOR_TARGET in |
14692 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14693 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14694 | ;; | |
e8b05380 | 14695 | *) |
1c710c3c DJ |
14696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14697 | for as_dir in $gcc_cv_tool_dirs | |
14698 | do | |
14699 | IFS=$as_save_IFS | |
14700 | test -z "$as_dir" && as_dir=. | |
5213506e | 14701 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14703 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14705 | break 2 |
14706 | fi | |
14707 | done | |
5213506e RW |
14708 | done |
14709 | IFS=$as_save_IFS | |
1c710c3c | 14710 | |
e8b05380 PB |
14711 | ;; |
14712 | esac | |
4de997d1 | 14713 | fi |
1c710c3c | 14714 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14715 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14717 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14718 | else |
5213506e RW |
14719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14720 | $as_echo "no" >&6; } | |
4de997d1 | 14721 | fi |
2693c0b0 | 14722 | |
5213506e | 14723 | |
e8b05380 PB |
14724 | fi |
14725 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14726 | |
14727 | ||
14728 | if test -n "$LD_FOR_TARGET"; then | |
14729 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14730 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14731 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14732 | fi | |
14733 | ||
14734 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14735 | for ncn_progname in ld; do | |
14736 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14737 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14739 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14740 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14741 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14742 | else |
14743 | if test -n "$LD_FOR_TARGET"; then | |
14744 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14745 | else | |
14746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14747 | for as_dir in $PATH | |
14748 | do | |
14749 | IFS=$as_save_IFS | |
14750 | test -z "$as_dir" && as_dir=. | |
5213506e | 14751 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14753 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14755 | break 2 |
14756 | fi | |
14757 | done | |
5213506e RW |
14758 | done |
14759 | IFS=$as_save_IFS | |
278a7a38 AO |
14760 | |
14761 | fi | |
14762 | fi | |
14763 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14764 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14766 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14767 | else |
5213506e RW |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14769 | $as_echo "no" >&6; } | |
278a7a38 AO |
14770 | fi |
14771 | ||
5213506e | 14772 | |
278a7a38 AO |
14773 | done |
14774 | fi | |
14775 | ||
14776 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14777 | for ncn_progname in ld; do |
5213506e RW |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14779 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14780 | if test -x $with_build_time_tools/${ncn_progname}; then |
14781 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14783 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14784 | break |
14785 | else | |
5213506e RW |
14786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14787 | $as_echo "no" >&6; } | |
e8b05380 PB |
14788 | fi |
14789 | done | |
ca9f4b81 AO |
14790 | fi |
14791 | ||
e8b05380 PB |
14792 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14793 | for ncn_progname in ld; do | |
14794 | if test -n "$ncn_target_tool_prefix"; then | |
14795 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14796 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14798 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14799 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14800 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14801 | else |
4de997d1 PB |
14802 | if test -n "$LD_FOR_TARGET"; then |
14803 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14804 | else |
1c710c3c DJ |
14805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14806 | for as_dir in $PATH | |
14807 | do | |
14808 | IFS=$as_save_IFS | |
14809 | test -z "$as_dir" && as_dir=. | |
5213506e | 14810 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14812 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14814 | break 2 |
14815 | fi | |
14816 | done | |
5213506e RW |
14817 | done |
14818 | IFS=$as_save_IFS | |
1c710c3c | 14819 | |
ca9f4b81 AO |
14820 | fi |
14821 | fi | |
1c710c3c | 14822 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14823 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14825 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14826 | else |
5213506e RW |
14827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14828 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14829 | fi |
14830 | ||
5213506e | 14831 | |
e8b05380 PB |
14832 | fi |
14833 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14834 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14835 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14837 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14838 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14839 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14840 | else |
2693c0b0 PB |
14841 | if test -n "$LD_FOR_TARGET"; then |
14842 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14843 | else |
1c710c3c DJ |
14844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14845 | for as_dir in $PATH | |
14846 | do | |
14847 | IFS=$as_save_IFS | |
14848 | test -z "$as_dir" && as_dir=. | |
5213506e | 14849 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14851 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14853 | break 2 |
14854 | fi | |
14855 | done | |
5213506e RW |
14856 | done |
14857 | IFS=$as_save_IFS | |
1c710c3c | 14858 | |
ca9f4b81 AO |
14859 | fi |
14860 | fi | |
1c710c3c | 14861 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14862 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14864 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14865 | else |
5213506e RW |
14866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14867 | $as_echo "no" >&6; } | |
ca9f4b81 | 14868 | fi |
1c710c3c | 14869 | |
5213506e | 14870 | |
e8b05380 PB |
14871 | fi |
14872 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14873 | done | |
14874 | fi | |
1c710c3c | 14875 | |
2693c0b0 PB |
14876 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14877 | set dummy ld | |
14878 | if test $build = $target ; then | |
14879 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14880 | else |
2693c0b0 | 14881 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14882 | fi |
1c00b503 PB |
14883 | else |
14884 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14885 | fi |
14886 | ||
d1f8db0c PB |
14887 | else |
14888 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14889 | fi |
14890 | ||
14891 | ||
14892 | ||
14893 | ||
14894 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14895 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14897 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14898 | if test -x $with_build_time_tools/lipo; then |
14899 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
14900 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
14902 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 14903 | else |
5213506e RW |
14904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14905 | $as_echo "no" >&6; } | |
d1f8db0c | 14906 | fi |
e8b05380 PB |
14907 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14908 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
14909 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
14910 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
14911 | fi |
14912 | fi | |
278a7a38 AO |
14913 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
14914 | # Extract the first word of "lipo", so it can be a program name with args. | |
14915 | set dummy lipo; ac_word=$2 | |
5213506e RW |
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14917 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14918 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14919 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14920 | else |
14921 | case $LIPO_FOR_TARGET in | |
14922 | [\\/]* | ?:[\\/]*) | |
14923 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
14924 | ;; | |
14925 | *) | |
14926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14927 | for as_dir in $gcc_cv_tool_dirs | |
14928 | do | |
14929 | IFS=$as_save_IFS | |
14930 | test -z "$as_dir" && as_dir=. | |
5213506e | 14931 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14933 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14935 | break 2 |
14936 | fi | |
14937 | done | |
5213506e RW |
14938 | done |
14939 | IFS=$as_save_IFS | |
278a7a38 AO |
14940 | |
14941 | ;; | |
14942 | esac | |
14943 | fi | |
14944 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 14945 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14947 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 14948 | else |
5213506e RW |
14949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14950 | $as_echo "no" >&6; } | |
278a7a38 AO |
14951 | fi |
14952 | ||
5213506e | 14953 | |
278a7a38 AO |
14954 | fi |
14955 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14956 | ||
14957 | ||
14958 | if test -n "$LIPO_FOR_TARGET"; then | |
14959 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
14960 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14961 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
14962 | fi | |
14963 | ||
14964 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14965 | for ncn_progname in lipo; do | |
14966 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14967 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14969 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14970 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14971 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14972 | else |
278a7a38 AO |
14973 | if test -n "$LIPO_FOR_TARGET"; then |
14974 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
14975 | else | |
14976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14977 | for as_dir in $PATH | |
1c710c3c DJ |
14978 | do |
14979 | IFS=$as_save_IFS | |
14980 | test -z "$as_dir" && as_dir=. | |
5213506e | 14981 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14983 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 14984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14985 | break 2 |
14986 | fi | |
14987 | done | |
5213506e RW |
14988 | done |
14989 | IFS=$as_save_IFS | |
1c710c3c | 14990 | |
e8b05380 | 14991 | fi |
278a7a38 AO |
14992 | fi |
14993 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 14994 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14996 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 14997 | else |
5213506e RW |
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14999 | $as_echo "no" >&6; } | |
e8b05380 PB |
15000 | fi |
15001 | ||
5213506e | 15002 | |
278a7a38 | 15003 | done |
e8b05380 | 15004 | fi |
278a7a38 AO |
15005 | |
15006 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15007 | for ncn_progname in lipo; do |
5213506e RW |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15009 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15010 | if test -x $with_build_time_tools/${ncn_progname}; then |
15011 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15013 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15014 | break |
15015 | else | |
5213506e RW |
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15017 | $as_echo "no" >&6; } | |
e8b05380 PB |
15018 | fi |
15019 | done | |
15020 | fi | |
15021 | ||
15022 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15023 | for ncn_progname in lipo; do | |
15024 | if test -n "$ncn_target_tool_prefix"; then | |
15025 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15026 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15028 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15029 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15030 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15031 | else |
15032 | if test -n "$LIPO_FOR_TARGET"; then | |
15033 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15034 | else | |
1c710c3c DJ |
15035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15036 | for as_dir in $PATH | |
15037 | do | |
15038 | IFS=$as_save_IFS | |
15039 | test -z "$as_dir" && as_dir=. | |
5213506e | 15040 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15042 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15044 | break 2 |
15045 | fi | |
15046 | done | |
5213506e RW |
15047 | done |
15048 | IFS=$as_save_IFS | |
1c710c3c | 15049 | |
040b1c5a GK |
15050 | fi |
15051 | fi | |
1c710c3c | 15052 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15053 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15055 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15056 | else |
5213506e RW |
15057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15058 | $as_echo "no" >&6; } | |
040b1c5a GK |
15059 | fi |
15060 | ||
5213506e | 15061 | |
e8b05380 PB |
15062 | fi |
15063 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15064 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15065 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15068 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15069 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15070 | else |
15071 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15072 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15073 | else | |
1c710c3c DJ |
15074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15075 | for as_dir in $PATH | |
15076 | do | |
15077 | IFS=$as_save_IFS | |
15078 | test -z "$as_dir" && as_dir=. | |
5213506e | 15079 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15081 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15083 | break 2 |
15084 | fi | |
15085 | done | |
5213506e RW |
15086 | done |
15087 | IFS=$as_save_IFS | |
1c710c3c | 15088 | |
040b1c5a GK |
15089 | fi |
15090 | fi | |
1c710c3c | 15091 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15092 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15094 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15095 | else |
5213506e RW |
15096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15097 | $as_echo "no" >&6; } | |
040b1c5a | 15098 | fi |
1c710c3c | 15099 | |
5213506e | 15100 | |
e8b05380 PB |
15101 | fi |
15102 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15103 | done | |
15104 | fi | |
1c710c3c | 15105 | |
040b1c5a GK |
15106 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15107 | set dummy lipo | |
15108 | if test $build = $target ; then | |
15109 | LIPO_FOR_TARGET="$2" | |
15110 | else | |
15111 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15112 | fi | |
1c00b503 PB |
15113 | else |
15114 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15115 | fi |
15116 | ||
d1f8db0c PB |
15117 | else |
15118 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15119 | fi |
15120 | ||
15121 | ||
15122 | ||
15123 | ||
15124 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15125 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15127 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15128 | if test -x $with_build_time_tools/nm; then |
15129 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15130 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15132 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15133 | else |
5213506e RW |
15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15135 | $as_echo "no" >&6; } | |
d1f8db0c | 15136 | fi |
e8b05380 PB |
15137 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15138 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15139 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15140 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15141 | fi |
15142 | fi | |
3e19841a | 15143 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15144 | # Extract the first word of "nm", so it can be a program name with args. |
15145 | set dummy nm; ac_word=$2 | |
5213506e RW |
15146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15147 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15148 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15149 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15150 | else |
1c710c3c DJ |
15151 | case $NM_FOR_TARGET in |
15152 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15153 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15154 | ;; | |
e8b05380 | 15155 | *) |
1c710c3c DJ |
15156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15157 | for as_dir in $gcc_cv_tool_dirs | |
15158 | do | |
15159 | IFS=$as_save_IFS | |
15160 | test -z "$as_dir" && as_dir=. | |
5213506e | 15161 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15163 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15165 | break 2 |
15166 | fi | |
15167 | done | |
5213506e RW |
15168 | done |
15169 | IFS=$as_save_IFS | |
1c710c3c | 15170 | |
e8b05380 PB |
15171 | ;; |
15172 | esac | |
15173 | fi | |
1c710c3c | 15174 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15175 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15177 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15178 | else |
5213506e RW |
15179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15180 | $as_echo "no" >&6; } | |
e8b05380 PB |
15181 | fi |
15182 | ||
5213506e | 15183 | |
e8b05380 PB |
15184 | fi |
15185 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15186 | |
15187 | ||
15188 | if test -n "$NM_FOR_TARGET"; then | |
15189 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15190 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15191 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15192 | fi | |
15193 | ||
15194 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15195 | for ncn_progname in nm; do | |
15196 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15197 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15199 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15200 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15201 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15202 | else |
15203 | if test -n "$NM_FOR_TARGET"; then | |
15204 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15205 | else | |
15206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15207 | for as_dir in $PATH | |
15208 | do | |
15209 | IFS=$as_save_IFS | |
15210 | test -z "$as_dir" && as_dir=. | |
5213506e | 15211 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15213 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15215 | break 2 |
15216 | fi | |
15217 | done | |
5213506e RW |
15218 | done |
15219 | IFS=$as_save_IFS | |
278a7a38 AO |
15220 | |
15221 | fi | |
15222 | fi | |
15223 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15224 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15226 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15227 | else |
5213506e RW |
15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15229 | $as_echo "no" >&6; } | |
278a7a38 AO |
15230 | fi |
15231 | ||
5213506e | 15232 | |
278a7a38 AO |
15233 | done |
15234 | fi | |
15235 | ||
15236 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15237 | for ncn_progname in nm; do |
5213506e RW |
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15239 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15240 | if test -x $with_build_time_tools/${ncn_progname}; then |
15241 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15243 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15244 | break |
15245 | else | |
5213506e RW |
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15247 | $as_echo "no" >&6; } | |
e8b05380 PB |
15248 | fi |
15249 | done | |
15250 | fi | |
15251 | ||
15252 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15253 | for ncn_progname in nm; do | |
15254 | if test -n "$ncn_target_tool_prefix"; then | |
15255 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15256 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15258 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15259 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15260 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15261 | else |
4de997d1 PB |
15262 | if test -n "$NM_FOR_TARGET"; then |
15263 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15264 | else |
1c710c3c DJ |
15265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15266 | for as_dir in $PATH | |
15267 | do | |
15268 | IFS=$as_save_IFS | |
15269 | test -z "$as_dir" && as_dir=. | |
5213506e | 15270 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15272 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15274 | break 2 |
15275 | fi | |
15276 | done | |
5213506e RW |
15277 | done |
15278 | IFS=$as_save_IFS | |
1c710c3c | 15279 | |
ca9f4b81 AO |
15280 | fi |
15281 | fi | |
1c710c3c | 15282 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15283 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15285 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15286 | else |
5213506e RW |
15287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15288 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15289 | fi |
15290 | ||
5213506e | 15291 | |
e8b05380 PB |
15292 | fi |
15293 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15294 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15295 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15297 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15298 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15299 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15300 | else |
2693c0b0 PB |
15301 | if test -n "$NM_FOR_TARGET"; then |
15302 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15303 | else |
1c710c3c DJ |
15304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15305 | for as_dir in $PATH | |
15306 | do | |
15307 | IFS=$as_save_IFS | |
15308 | test -z "$as_dir" && as_dir=. | |
5213506e | 15309 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15311 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15313 | break 2 |
15314 | fi | |
15315 | done | |
5213506e RW |
15316 | done |
15317 | IFS=$as_save_IFS | |
1c710c3c | 15318 | |
ca9f4b81 AO |
15319 | fi |
15320 | fi | |
1c710c3c | 15321 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15322 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15324 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15325 | else |
5213506e RW |
15326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15327 | $as_echo "no" >&6; } | |
ca9f4b81 | 15328 | fi |
1c710c3c | 15329 | |
5213506e | 15330 | |
e8b05380 PB |
15331 | fi |
15332 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15333 | done | |
15334 | fi | |
1c710c3c | 15335 | |
2693c0b0 PB |
15336 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15337 | set dummy nm | |
15338 | if test $build = $target ; then | |
15339 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15340 | else |
2693c0b0 | 15341 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15342 | fi |
1c00b503 PB |
15343 | else |
15344 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15345 | fi |
15346 | ||
d1f8db0c PB |
15347 | else |
15348 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15349 | fi |
15350 | ||
15351 | ||
15352 | ||
15353 | ||
9bccfdf5 AP |
15354 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15355 | if test -n "$with_build_time_tools"; then | |
15356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15357 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15358 | if test -x $with_build_time_tools/objcopy; then | |
15359 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15360 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15362 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15363 | else | |
15364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15365 | $as_echo "no" >&6; } | |
15366 | fi | |
15367 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15368 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15369 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15370 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15371 | fi | |
15372 | fi | |
15373 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15374 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15375 | set dummy objcopy; ac_word=$2 | |
15376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15377 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15378 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15379 | $as_echo_n "(cached) " >&6 |
15380 | else | |
15381 | case $OBJCOPY_FOR_TARGET in | |
15382 | [\\/]* | ?:[\\/]*) | |
15383 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15384 | ;; | |
15385 | *) | |
15386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15387 | for as_dir in $gcc_cv_tool_dirs | |
15388 | do | |
15389 | IFS=$as_save_IFS | |
15390 | test -z "$as_dir" && as_dir=. | |
15391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15393 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15395 | break 2 | |
15396 | fi | |
15397 | done | |
15398 | done | |
15399 | IFS=$as_save_IFS | |
15400 | ||
15401 | ;; | |
15402 | esac | |
15403 | fi | |
15404 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15405 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15407 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15408 | else | |
15409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15410 | $as_echo "no" >&6; } | |
15411 | fi | |
15412 | ||
15413 | ||
15414 | fi | |
15415 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15416 | ||
15417 | ||
15418 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15419 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15420 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15421 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15422 | fi | |
15423 | ||
15424 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15425 | for ncn_progname in objcopy; do | |
15426 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15427 | set dummy ${ncn_progname}; ac_word=$2 | |
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15429 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15430 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15431 | $as_echo_n "(cached) " >&6 |
15432 | else | |
15433 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15434 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15435 | else | |
15436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15437 | for as_dir in $PATH | |
15438 | do | |
15439 | IFS=$as_save_IFS | |
15440 | test -z "$as_dir" && as_dir=. | |
15441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15443 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15445 | break 2 | |
15446 | fi | |
15447 | done | |
15448 | done | |
15449 | IFS=$as_save_IFS | |
15450 | ||
15451 | fi | |
15452 | fi | |
15453 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15454 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15456 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15457 | else | |
15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15459 | $as_echo "no" >&6; } | |
15460 | fi | |
15461 | ||
15462 | ||
15463 | done | |
15464 | fi | |
15465 | ||
15466 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15467 | for ncn_progname in objcopy; do | |
15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15469 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15470 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15471 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15473 | $as_echo "yes" >&6; } | |
15474 | break | |
15475 | else | |
15476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15477 | $as_echo "no" >&6; } | |
15478 | fi | |
15479 | done | |
15480 | fi | |
15481 | ||
15482 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15483 | for ncn_progname in objcopy; do | |
15484 | if test -n "$ncn_target_tool_prefix"; then | |
15485 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15486 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15488 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15489 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15490 | $as_echo_n "(cached) " >&6 |
15491 | else | |
15492 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15493 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15494 | else | |
15495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15496 | for as_dir in $PATH | |
15497 | do | |
15498 | IFS=$as_save_IFS | |
15499 | test -z "$as_dir" && as_dir=. | |
15500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15502 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15504 | break 2 | |
15505 | fi | |
15506 | done | |
15507 | done | |
15508 | IFS=$as_save_IFS | |
15509 | ||
15510 | fi | |
15511 | fi | |
15512 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15513 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15515 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15516 | else | |
15517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15518 | $as_echo "no" >&6; } | |
15519 | fi | |
15520 | ||
15521 | ||
15522 | fi | |
15523 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15524 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15525 | set dummy ${ncn_progname}; ac_word=$2 | |
15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15527 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15528 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15529 | $as_echo_n "(cached) " >&6 |
15530 | else | |
15531 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15532 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15533 | else | |
15534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15535 | for as_dir in $PATH | |
15536 | do | |
15537 | IFS=$as_save_IFS | |
15538 | test -z "$as_dir" && as_dir=. | |
15539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15541 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15543 | break 2 | |
15544 | fi | |
15545 | done | |
15546 | done | |
15547 | IFS=$as_save_IFS | |
15548 | ||
15549 | fi | |
15550 | fi | |
15551 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15552 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15554 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15555 | else | |
15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15557 | $as_echo "no" >&6; } | |
15558 | fi | |
15559 | ||
15560 | ||
15561 | fi | |
15562 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15563 | done | |
15564 | fi | |
15565 | ||
15566 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15567 | set dummy objcopy | |
15568 | if test $build = $target ; then | |
15569 | OBJCOPY_FOR_TARGET="$2" | |
15570 | else | |
15571 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15572 | fi | |
15573 | else | |
15574 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15575 | fi | |
15576 | ||
15577 | else | |
15578 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15579 | fi | |
15580 | ||
15581 | ||
15582 | ||
15583 | ||
e8b05380 PB |
15584 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15585 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15587 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15588 | if test -x $with_build_time_tools/objdump; then |
15589 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15590 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15592 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15593 | else |
5213506e RW |
15594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15595 | $as_echo "no" >&6; } | |
d1f8db0c | 15596 | fi |
e8b05380 PB |
15597 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15598 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15599 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15600 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15601 | fi |
15602 | fi | |
3e19841a | 15603 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15604 | # Extract the first word of "objdump", so it can be a program name with args. |
15605 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15607 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15608 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15609 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15610 | else |
1c710c3c DJ |
15611 | case $OBJDUMP_FOR_TARGET in |
15612 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15613 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15614 | ;; | |
e8b05380 | 15615 | *) |
1c710c3c DJ |
15616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15617 | for as_dir in $gcc_cv_tool_dirs | |
15618 | do | |
15619 | IFS=$as_save_IFS | |
15620 | test -z "$as_dir" && as_dir=. | |
5213506e | 15621 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15623 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15625 | break 2 |
15626 | fi | |
15627 | done | |
5213506e RW |
15628 | done |
15629 | IFS=$as_save_IFS | |
1c710c3c | 15630 | |
e8b05380 PB |
15631 | ;; |
15632 | esac | |
15633 | fi | |
1c710c3c | 15634 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15635 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15637 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15638 | else |
5213506e RW |
15639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15640 | $as_echo "no" >&6; } | |
e8b05380 PB |
15641 | fi |
15642 | ||
5213506e | 15643 | |
e8b05380 PB |
15644 | fi |
15645 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15646 | |
15647 | ||
15648 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15649 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15650 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15651 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15652 | fi | |
15653 | ||
15654 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15655 | for ncn_progname in objdump; do | |
15656 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15657 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15659 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15660 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15661 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15662 | else |
15663 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15664 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15665 | else | |
15666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15667 | for as_dir in $PATH | |
15668 | do | |
15669 | IFS=$as_save_IFS | |
15670 | test -z "$as_dir" && as_dir=. | |
5213506e | 15671 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15673 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15675 | break 2 |
15676 | fi | |
15677 | done | |
5213506e RW |
15678 | done |
15679 | IFS=$as_save_IFS | |
278a7a38 AO |
15680 | |
15681 | fi | |
15682 | fi | |
15683 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15684 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15686 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15687 | else |
5213506e RW |
15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15689 | $as_echo "no" >&6; } | |
278a7a38 AO |
15690 | fi |
15691 | ||
5213506e | 15692 | |
278a7a38 AO |
15693 | done |
15694 | fi | |
15695 | ||
15696 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15697 | for ncn_progname in objdump; do |
5213506e RW |
15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15699 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15700 | if test -x $with_build_time_tools/${ncn_progname}; then |
15701 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15703 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15704 | break |
15705 | else | |
5213506e RW |
15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15707 | $as_echo "no" >&6; } | |
e8b05380 PB |
15708 | fi |
15709 | done | |
15710 | fi | |
15711 | ||
15712 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15713 | for ncn_progname in objdump; do | |
15714 | if test -n "$ncn_target_tool_prefix"; then | |
15715 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15716 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15718 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15719 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15720 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15721 | else |
15722 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15723 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15724 | else | |
1c710c3c DJ |
15725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15726 | for as_dir in $PATH | |
15727 | do | |
15728 | IFS=$as_save_IFS | |
15729 | test -z "$as_dir" && as_dir=. | |
5213506e | 15730 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15732 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15734 | break 2 |
15735 | fi | |
15736 | done | |
5213506e RW |
15737 | done |
15738 | IFS=$as_save_IFS | |
1c710c3c | 15739 | |
d739199a DJ |
15740 | fi |
15741 | fi | |
1c710c3c | 15742 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15743 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15745 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15746 | else |
5213506e RW |
15747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15748 | $as_echo "no" >&6; } | |
d739199a DJ |
15749 | fi |
15750 | ||
5213506e | 15751 | |
e8b05380 PB |
15752 | fi |
15753 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15754 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15755 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15757 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15758 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15759 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15760 | else |
15761 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15762 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15763 | else | |
1c710c3c DJ |
15764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15765 | for as_dir in $PATH | |
15766 | do | |
15767 | IFS=$as_save_IFS | |
15768 | test -z "$as_dir" && as_dir=. | |
5213506e | 15769 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15771 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15773 | break 2 |
15774 | fi | |
15775 | done | |
5213506e RW |
15776 | done |
15777 | IFS=$as_save_IFS | |
1c710c3c | 15778 | |
d739199a DJ |
15779 | fi |
15780 | fi | |
1c710c3c | 15781 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15782 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15784 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15785 | else |
5213506e RW |
15786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15787 | $as_echo "no" >&6; } | |
d739199a | 15788 | fi |
1c710c3c | 15789 | |
5213506e | 15790 | |
e8b05380 PB |
15791 | fi |
15792 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15793 | done | |
15794 | fi | |
1c710c3c | 15795 | |
d739199a DJ |
15796 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15797 | set dummy objdump | |
15798 | if test $build = $target ; then | |
15799 | OBJDUMP_FOR_TARGET="$2" | |
15800 | else | |
15801 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15802 | fi | |
1c00b503 PB |
15803 | else |
15804 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15805 | fi |
15806 | ||
d1f8db0c PB |
15807 | else |
15808 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15809 | fi |
15810 | ||
15811 | ||
15812 | ||
15813 | ||
e4a9a572 IS |
15814 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15815 | if test -n "$with_build_time_tools"; then | |
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15817 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15818 | if test -x $with_build_time_tools/otool; then | |
15819 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15820 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15822 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15823 | else | |
15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15825 | $as_echo "no" >&6; } | |
15826 | fi | |
15827 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15828 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15829 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15830 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15831 | fi | |
15832 | fi | |
15833 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15834 | # Extract the first word of "otool", so it can be a program name with args. | |
15835 | set dummy otool; ac_word=$2 | |
15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15837 | $as_echo_n "checking for $ac_word... " >&6; } | |
15838 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15839 | $as_echo_n "(cached) " >&6 | |
15840 | else | |
15841 | case $OTOOL_FOR_TARGET in | |
15842 | [\\/]* | ?:[\\/]*) | |
15843 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15844 | ;; | |
15845 | *) | |
15846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15847 | for as_dir in $gcc_cv_tool_dirs | |
15848 | do | |
15849 | IFS=$as_save_IFS | |
15850 | test -z "$as_dir" && as_dir=. | |
15851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15853 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15855 | break 2 | |
15856 | fi | |
15857 | done | |
15858 | done | |
15859 | IFS=$as_save_IFS | |
15860 | ||
15861 | ;; | |
15862 | esac | |
15863 | fi | |
15864 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15865 | if test -n "$OTOOL_FOR_TARGET"; then | |
15866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15867 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15868 | else | |
15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15870 | $as_echo "no" >&6; } | |
15871 | fi | |
15872 | ||
15873 | ||
15874 | fi | |
15875 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15876 | ||
15877 | ||
15878 | if test -n "$OTOOL_FOR_TARGET"; then | |
15879 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15880 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15881 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15882 | fi | |
15883 | ||
15884 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15885 | for ncn_progname in otool; do | |
15886 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15887 | set dummy ${ncn_progname}; ac_word=$2 | |
15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15889 | $as_echo_n "checking for $ac_word... " >&6; } | |
15890 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15891 | $as_echo_n "(cached) " >&6 | |
15892 | else | |
15893 | if test -n "$OTOOL_FOR_TARGET"; then | |
15894 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15895 | else | |
15896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15897 | for as_dir in $PATH | |
15898 | do | |
15899 | IFS=$as_save_IFS | |
15900 | test -z "$as_dir" && as_dir=. | |
15901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15903 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15905 | break 2 | |
15906 | fi | |
15907 | done | |
15908 | done | |
15909 | IFS=$as_save_IFS | |
15910 | ||
15911 | fi | |
15912 | fi | |
15913 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15914 | if test -n "$OTOOL_FOR_TARGET"; then | |
15915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15916 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15917 | else | |
15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15919 | $as_echo "no" >&6; } | |
15920 | fi | |
15921 | ||
15922 | ||
15923 | done | |
15924 | fi | |
15925 | ||
15926 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15927 | for ncn_progname in otool; do | |
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15929 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15930 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15931 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15933 | $as_echo "yes" >&6; } | |
15934 | break | |
15935 | else | |
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15937 | $as_echo "no" >&6; } | |
15938 | fi | |
15939 | done | |
15940 | fi | |
15941 | ||
15942 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15943 | for ncn_progname in otool; do | |
15944 | if test -n "$ncn_target_tool_prefix"; then | |
15945 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15946 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15948 | $as_echo_n "checking for $ac_word... " >&6; } | |
15949 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15950 | $as_echo_n "(cached) " >&6 | |
15951 | else | |
15952 | if test -n "$OTOOL_FOR_TARGET"; then | |
15953 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15954 | else | |
15955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15956 | for as_dir in $PATH | |
15957 | do | |
15958 | IFS=$as_save_IFS | |
15959 | test -z "$as_dir" && as_dir=. | |
15960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15962 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
15963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15964 | break 2 | |
15965 | fi | |
15966 | done | |
15967 | done | |
15968 | IFS=$as_save_IFS | |
15969 | ||
15970 | fi | |
15971 | fi | |
15972 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15973 | if test -n "$OTOOL_FOR_TARGET"; then | |
15974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15975 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15976 | else | |
15977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15978 | $as_echo "no" >&6; } | |
15979 | fi | |
15980 | ||
15981 | ||
15982 | fi | |
15983 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
15984 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15985 | set dummy ${ncn_progname}; ac_word=$2 | |
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15987 | $as_echo_n "checking for $ac_word... " >&6; } | |
15988 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15989 | $as_echo_n "(cached) " >&6 | |
15990 | else | |
15991 | if test -n "$OTOOL_FOR_TARGET"; then | |
15992 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15993 | else | |
15994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15995 | for as_dir in $PATH | |
15996 | do | |
15997 | IFS=$as_save_IFS | |
15998 | test -z "$as_dir" && as_dir=. | |
15999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16001 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16003 | break 2 | |
16004 | fi | |
16005 | done | |
16006 | done | |
16007 | IFS=$as_save_IFS | |
16008 | ||
16009 | fi | |
16010 | fi | |
16011 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16012 | if test -n "$OTOOL_FOR_TARGET"; then | |
16013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16014 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16015 | else | |
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16017 | $as_echo "no" >&6; } | |
16018 | fi | |
16019 | ||
16020 | ||
16021 | fi | |
16022 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16023 | done | |
16024 | fi | |
16025 | ||
16026 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16027 | set dummy otool | |
16028 | if test $build = $target ; then | |
16029 | OTOOL_FOR_TARGET="$2" | |
16030 | else | |
16031 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16032 | fi | |
16033 | else | |
16034 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16035 | fi | |
16036 | ||
16037 | else | |
16038 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16039 | fi | |
16040 | ||
16041 | ||
16042 | ||
16043 | ||
e8b05380 PB |
16044 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16045 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16047 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16048 | if test -x $with_build_time_tools/ranlib; then |
16049 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16050 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16052 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16053 | else |
5213506e RW |
16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16055 | $as_echo "no" >&6; } | |
d1f8db0c | 16056 | fi |
e8b05380 PB |
16057 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16058 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16059 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16060 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16061 | fi |
16062 | fi | |
3e19841a | 16063 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16064 | # Extract the first word of "ranlib", so it can be a program name with args. |
16065 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16068 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16069 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16070 | else |
1c710c3c DJ |
16071 | case $RANLIB_FOR_TARGET in |
16072 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16073 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16074 | ;; | |
e8b05380 | 16075 | *) |
1c710c3c DJ |
16076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16077 | for as_dir in $gcc_cv_tool_dirs | |
16078 | do | |
16079 | IFS=$as_save_IFS | |
16080 | test -z "$as_dir" && as_dir=. | |
5213506e | 16081 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16083 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16085 | break 2 |
16086 | fi | |
16087 | done | |
5213506e RW |
16088 | done |
16089 | IFS=$as_save_IFS | |
1c710c3c | 16090 | |
e8b05380 PB |
16091 | ;; |
16092 | esac | |
16093 | fi | |
1c710c3c | 16094 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16095 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16097 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16098 | else |
5213506e RW |
16099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16100 | $as_echo "no" >&6; } | |
e8b05380 PB |
16101 | fi |
16102 | ||
5213506e | 16103 | |
e8b05380 PB |
16104 | fi |
16105 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16106 | |
16107 | ||
16108 | if test -n "$RANLIB_FOR_TARGET"; then | |
16109 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16110 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16111 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16112 | fi | |
16113 | ||
16114 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16115 | for ncn_progname in ranlib; do | |
16116 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16117 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16119 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16120 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16121 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16122 | else |
16123 | if test -n "$RANLIB_FOR_TARGET"; then | |
16124 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16125 | else | |
16126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16127 | for as_dir in $PATH | |
16128 | do | |
16129 | IFS=$as_save_IFS | |
16130 | test -z "$as_dir" && as_dir=. | |
5213506e | 16131 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16133 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16135 | break 2 |
16136 | fi | |
16137 | done | |
5213506e RW |
16138 | done |
16139 | IFS=$as_save_IFS | |
278a7a38 AO |
16140 | |
16141 | fi | |
16142 | fi | |
16143 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16144 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16146 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16147 | else |
5213506e RW |
16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16149 | $as_echo "no" >&6; } | |
278a7a38 AO |
16150 | fi |
16151 | ||
5213506e | 16152 | |
278a7a38 AO |
16153 | done |
16154 | fi | |
16155 | ||
16156 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16157 | for ncn_progname in ranlib; do |
5213506e RW |
16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16159 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16160 | if test -x $with_build_time_tools/${ncn_progname}; then |
16161 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16163 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16164 | break |
16165 | else | |
5213506e RW |
16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16167 | $as_echo "no" >&6; } | |
e8b05380 PB |
16168 | fi |
16169 | done | |
16170 | fi | |
16171 | ||
16172 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16173 | for ncn_progname in ranlib; do | |
16174 | if test -n "$ncn_target_tool_prefix"; then | |
16175 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16176 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16178 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16179 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16180 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16181 | else |
4de997d1 PB |
16182 | if test -n "$RANLIB_FOR_TARGET"; then |
16183 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16184 | else |
1c710c3c DJ |
16185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16186 | for as_dir in $PATH | |
16187 | do | |
16188 | IFS=$as_save_IFS | |
16189 | test -z "$as_dir" && as_dir=. | |
5213506e | 16190 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16192 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16194 | break 2 |
16195 | fi | |
16196 | done | |
5213506e RW |
16197 | done |
16198 | IFS=$as_save_IFS | |
1c710c3c | 16199 | |
ca9f4b81 AO |
16200 | fi |
16201 | fi | |
1c710c3c | 16202 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16203 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16205 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16206 | else |
5213506e RW |
16207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16208 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16209 | fi |
16210 | ||
5213506e | 16211 | |
e8b05380 PB |
16212 | fi |
16213 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16214 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16215 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16217 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16218 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16219 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16220 | else |
2693c0b0 PB |
16221 | if test -n "$RANLIB_FOR_TARGET"; then |
16222 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16223 | else |
1c710c3c DJ |
16224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16225 | for as_dir in $PATH | |
16226 | do | |
16227 | IFS=$as_save_IFS | |
16228 | test -z "$as_dir" && as_dir=. | |
5213506e | 16229 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16231 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16233 | break 2 |
16234 | fi | |
16235 | done | |
5213506e RW |
16236 | done |
16237 | IFS=$as_save_IFS | |
1c710c3c | 16238 | |
ca9f4b81 AO |
16239 | fi |
16240 | fi | |
1c710c3c | 16241 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16242 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16244 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16245 | else |
5213506e RW |
16246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16247 | $as_echo "no" >&6; } | |
ca9f4b81 | 16248 | fi |
1c710c3c | 16249 | |
5213506e | 16250 | |
e8b05380 PB |
16251 | fi |
16252 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16253 | done | |
16254 | fi | |
1c710c3c | 16255 | |
e8b05380 PB |
16256 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16257 | set dummy ranlib | |
16258 | if test $build = $target ; then | |
16259 | RANLIB_FOR_TARGET="$2" | |
16260 | else | |
16261 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16262 | fi |
1c00b503 PB |
16263 | else |
16264 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16265 | fi |
2693c0b0 | 16266 | |
d1f8db0c PB |
16267 | else |
16268 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16269 | fi |
16270 | ||
e8b05380 PB |
16271 | |
16272 | ||
16273 | ||
e7a82751 RM |
16274 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16275 | if test -n "$with_build_time_tools"; then | |
16276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16277 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16278 | if test -x $with_build_time_tools/readelf; then | |
16279 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16280 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16282 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16283 | else | |
16284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16285 | $as_echo "no" >&6; } | |
16286 | fi | |
16287 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16288 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16289 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16290 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16291 | fi | |
16292 | fi | |
16293 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16294 | # Extract the first word of "readelf", so it can be a program name with args. | |
16295 | set dummy readelf; ac_word=$2 | |
16296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16297 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16298 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16299 | $as_echo_n "(cached) " >&6 |
16300 | else | |
16301 | case $READELF_FOR_TARGET in | |
16302 | [\\/]* | ?:[\\/]*) | |
16303 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16304 | ;; | |
16305 | *) | |
16306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16307 | for as_dir in $gcc_cv_tool_dirs | |
16308 | do | |
16309 | IFS=$as_save_IFS | |
16310 | test -z "$as_dir" && as_dir=. | |
16311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16313 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16315 | break 2 | |
16316 | fi | |
16317 | done | |
16318 | done | |
16319 | IFS=$as_save_IFS | |
16320 | ||
16321 | ;; | |
16322 | esac | |
16323 | fi | |
16324 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16325 | if test -n "$READELF_FOR_TARGET"; then | |
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16327 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16328 | else | |
16329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16330 | $as_echo "no" >&6; } | |
16331 | fi | |
16332 | ||
16333 | ||
16334 | fi | |
16335 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16336 | ||
16337 | ||
16338 | if test -n "$READELF_FOR_TARGET"; then | |
16339 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16340 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16341 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16342 | fi | |
16343 | ||
16344 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16345 | for ncn_progname in readelf; do | |
16346 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16347 | set dummy ${ncn_progname}; ac_word=$2 | |
16348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16349 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16350 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16351 | $as_echo_n "(cached) " >&6 |
16352 | else | |
16353 | if test -n "$READELF_FOR_TARGET"; then | |
16354 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16355 | else | |
16356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16357 | for as_dir in $PATH | |
16358 | do | |
16359 | IFS=$as_save_IFS | |
16360 | test -z "$as_dir" && as_dir=. | |
16361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16363 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16365 | break 2 | |
16366 | fi | |
16367 | done | |
16368 | done | |
16369 | IFS=$as_save_IFS | |
16370 | ||
16371 | fi | |
16372 | fi | |
16373 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16374 | if test -n "$READELF_FOR_TARGET"; then | |
16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16376 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16377 | else | |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16379 | $as_echo "no" >&6; } | |
16380 | fi | |
16381 | ||
16382 | ||
16383 | done | |
16384 | fi | |
16385 | ||
16386 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16387 | for ncn_progname in readelf; do | |
16388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16389 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16390 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16391 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16393 | $as_echo "yes" >&6; } | |
16394 | break | |
16395 | else | |
16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16397 | $as_echo "no" >&6; } | |
16398 | fi | |
16399 | done | |
16400 | fi | |
16401 | ||
16402 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16403 | for ncn_progname in readelf; do | |
16404 | if test -n "$ncn_target_tool_prefix"; then | |
16405 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16406 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16408 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16409 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16410 | $as_echo_n "(cached) " >&6 |
16411 | else | |
16412 | if test -n "$READELF_FOR_TARGET"; then | |
16413 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16414 | else | |
16415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16416 | for as_dir in $PATH | |
16417 | do | |
16418 | IFS=$as_save_IFS | |
16419 | test -z "$as_dir" && as_dir=. | |
16420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16422 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16424 | break 2 | |
16425 | fi | |
16426 | done | |
16427 | done | |
16428 | IFS=$as_save_IFS | |
16429 | ||
16430 | fi | |
16431 | fi | |
16432 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16433 | if test -n "$READELF_FOR_TARGET"; then | |
16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16435 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16436 | else | |
16437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16438 | $as_echo "no" >&6; } | |
16439 | fi | |
16440 | ||
16441 | ||
16442 | fi | |
16443 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16444 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16445 | set dummy ${ncn_progname}; ac_word=$2 | |
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16447 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16448 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16449 | $as_echo_n "(cached) " >&6 |
16450 | else | |
16451 | if test -n "$READELF_FOR_TARGET"; then | |
16452 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16453 | else | |
16454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16455 | for as_dir in $PATH | |
16456 | do | |
16457 | IFS=$as_save_IFS | |
16458 | test -z "$as_dir" && as_dir=. | |
16459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16461 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16463 | break 2 | |
16464 | fi | |
16465 | done | |
16466 | done | |
16467 | IFS=$as_save_IFS | |
16468 | ||
16469 | fi | |
16470 | fi | |
16471 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16472 | if test -n "$READELF_FOR_TARGET"; then | |
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16474 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16475 | else | |
16476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16477 | $as_echo "no" >&6; } | |
16478 | fi | |
16479 | ||
16480 | ||
16481 | fi | |
16482 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16483 | done | |
16484 | fi | |
16485 | ||
16486 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16487 | set dummy readelf | |
16488 | if test $build = $target ; then | |
16489 | READELF_FOR_TARGET="$2" | |
16490 | else | |
16491 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16492 | fi | |
16493 | else | |
16494 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16495 | fi | |
16496 | ||
16497 | else | |
16498 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16499 | fi | |
16500 | ||
16501 | ||
16502 | ||
16503 | ||
e8b05380 PB |
16504 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16505 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16507 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16508 | if test -x $with_build_time_tools/strip; then |
16509 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16510 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
16511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16512 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 16513 | else |
5213506e RW |
16514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16515 | $as_echo "no" >&6; } | |
d1f8db0c | 16516 | fi |
e8b05380 PB |
16517 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16518 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
16519 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16520 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
16521 | fi |
16522 | fi | |
3e19841a | 16523 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16524 | # Extract the first word of "strip", so it can be a program name with args. |
16525 | set dummy strip; ac_word=$2 | |
5213506e RW |
16526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16527 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16528 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16529 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16530 | else |
1c710c3c DJ |
16531 | case $STRIP_FOR_TARGET in |
16532 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16533 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16534 | ;; | |
e8b05380 | 16535 | *) |
1c710c3c DJ |
16536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16537 | for as_dir in $gcc_cv_tool_dirs | |
16538 | do | |
16539 | IFS=$as_save_IFS | |
16540 | test -z "$as_dir" && as_dir=. | |
5213506e | 16541 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16543 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16545 | break 2 |
16546 | fi | |
16547 | done | |
5213506e RW |
16548 | done |
16549 | IFS=$as_save_IFS | |
1c710c3c | 16550 | |
e8b05380 PB |
16551 | ;; |
16552 | esac | |
16553 | fi | |
1c710c3c | 16554 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16555 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16557 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16558 | else |
5213506e RW |
16559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16560 | $as_echo "no" >&6; } | |
e8b05380 PB |
16561 | fi |
16562 | ||
5213506e | 16563 | |
e8b05380 PB |
16564 | fi |
16565 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16566 | |
16567 | ||
16568 | if test -n "$STRIP_FOR_TARGET"; then | |
16569 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16570 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16571 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16572 | fi | |
16573 | ||
16574 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16575 | for ncn_progname in strip; do | |
16576 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16577 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16579 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16580 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16581 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16582 | else |
16583 | if test -n "$STRIP_FOR_TARGET"; then | |
16584 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16585 | else | |
16586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16587 | for as_dir in $PATH | |
16588 | do | |
16589 | IFS=$as_save_IFS | |
16590 | test -z "$as_dir" && as_dir=. | |
5213506e | 16591 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16593 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16595 | break 2 |
16596 | fi | |
16597 | done | |
5213506e RW |
16598 | done |
16599 | IFS=$as_save_IFS | |
278a7a38 AO |
16600 | |
16601 | fi | |
16602 | fi | |
16603 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16604 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16606 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16607 | else |
5213506e RW |
16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16609 | $as_echo "no" >&6; } | |
278a7a38 AO |
16610 | fi |
16611 | ||
5213506e | 16612 | |
278a7a38 AO |
16613 | done |
16614 | fi | |
16615 | ||
16616 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16617 | for ncn_progname in strip; do |
5213506e RW |
16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16619 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16620 | if test -x $with_build_time_tools/${ncn_progname}; then |
16621 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16623 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16624 | break |
16625 | else | |
5213506e RW |
16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16627 | $as_echo "no" >&6; } | |
e8b05380 PB |
16628 | fi |
16629 | done | |
16630 | fi | |
16631 | ||
16632 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16633 | for ncn_progname in strip; do | |
16634 | if test -n "$ncn_target_tool_prefix"; then | |
16635 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16636 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16638 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16639 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16640 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16641 | else |
16642 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16643 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16644 | else | |
16645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16646 | for as_dir in $PATH | |
16647 | do | |
16648 | IFS=$as_save_IFS | |
16649 | test -z "$as_dir" && as_dir=. | |
5213506e | 16650 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16652 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16654 | break 2 |
16655 | fi | |
16656 | done | |
5213506e RW |
16657 | done |
16658 | IFS=$as_save_IFS | |
1c710c3c | 16659 | |
040b1c5a GK |
16660 | fi |
16661 | fi | |
1c710c3c | 16662 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16663 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16665 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16666 | else |
5213506e RW |
16667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16668 | $as_echo "no" >&6; } | |
040b1c5a GK |
16669 | fi |
16670 | ||
5213506e | 16671 | |
e8b05380 PB |
16672 | fi |
16673 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16674 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16675 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16677 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16678 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16679 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16680 | else |
16681 | if test -n "$STRIP_FOR_TARGET"; then | |
16682 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16683 | else | |
1c710c3c DJ |
16684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16685 | for as_dir in $PATH | |
16686 | do | |
16687 | IFS=$as_save_IFS | |
16688 | test -z "$as_dir" && as_dir=. | |
5213506e | 16689 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16691 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16693 | break 2 |
16694 | fi | |
16695 | done | |
5213506e RW |
16696 | done |
16697 | IFS=$as_save_IFS | |
1c710c3c | 16698 | |
040b1c5a GK |
16699 | fi |
16700 | fi | |
1c710c3c | 16701 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16702 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16704 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16705 | else |
5213506e RW |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16707 | $as_echo "no" >&6; } | |
040b1c5a | 16708 | fi |
1c710c3c | 16709 | |
5213506e | 16710 | |
e8b05380 PB |
16711 | fi |
16712 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16713 | done | |
16714 | fi | |
1c710c3c | 16715 | |
040b1c5a GK |
16716 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16717 | set dummy strip | |
16718 | if test $build = $target ; then | |
16719 | STRIP_FOR_TARGET="$2" | |
16720 | else | |
16721 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16722 | fi | |
1c00b503 PB |
16723 | else |
16724 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16725 | fi |
16726 | ||
d1f8db0c PB |
16727 | else |
16728 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16729 | fi |
16730 | ||
16731 | ||
16732 | ||
16733 | ||
16734 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16735 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16737 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16738 | if test -x $with_build_time_tools/windres; then |
16739 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16740 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16742 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16743 | else |
5213506e RW |
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16745 | $as_echo "no" >&6; } | |
d1f8db0c | 16746 | fi |
e8b05380 PB |
16747 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16748 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16749 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16750 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16751 | fi |
16752 | fi | |
3e19841a | 16753 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16754 | # Extract the first word of "windres", so it can be a program name with args. |
16755 | set dummy windres; ac_word=$2 | |
5213506e RW |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16757 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16758 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16759 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16760 | else |
1c710c3c DJ |
16761 | case $WINDRES_FOR_TARGET in |
16762 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16763 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16764 | ;; | |
e8b05380 | 16765 | *) |
1c710c3c DJ |
16766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16767 | for as_dir in $gcc_cv_tool_dirs | |
16768 | do | |
16769 | IFS=$as_save_IFS | |
16770 | test -z "$as_dir" && as_dir=. | |
5213506e | 16771 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16773 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16775 | break 2 |
16776 | fi | |
16777 | done | |
5213506e RW |
16778 | done |
16779 | IFS=$as_save_IFS | |
1c710c3c | 16780 | |
e8b05380 PB |
16781 | ;; |
16782 | esac | |
16783 | fi | |
1c710c3c | 16784 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16785 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16787 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16788 | else |
5213506e RW |
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16790 | $as_echo "no" >&6; } | |
e8b05380 PB |
16791 | fi |
16792 | ||
5213506e | 16793 | |
e8b05380 PB |
16794 | fi |
16795 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16796 | |
16797 | ||
16798 | if test -n "$WINDRES_FOR_TARGET"; then | |
16799 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16800 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16801 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16802 | fi | |
16803 | ||
16804 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16805 | for ncn_progname in windres; do | |
16806 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16807 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16809 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16810 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16811 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16812 | else |
16813 | if test -n "$WINDRES_FOR_TARGET"; then | |
16814 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16815 | else | |
16816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16817 | for as_dir in $PATH | |
16818 | do | |
16819 | IFS=$as_save_IFS | |
16820 | test -z "$as_dir" && as_dir=. | |
5213506e | 16821 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16823 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16825 | break 2 |
16826 | fi | |
16827 | done | |
5213506e RW |
16828 | done |
16829 | IFS=$as_save_IFS | |
278a7a38 AO |
16830 | |
16831 | fi | |
16832 | fi | |
16833 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16834 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16836 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16837 | else |
5213506e RW |
16838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16839 | $as_echo "no" >&6; } | |
278a7a38 AO |
16840 | fi |
16841 | ||
5213506e | 16842 | |
278a7a38 AO |
16843 | done |
16844 | fi | |
16845 | ||
16846 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16847 | for ncn_progname in windres; do |
5213506e RW |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16849 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16850 | if test -x $with_build_time_tools/${ncn_progname}; then |
16851 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16853 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16854 | break |
16855 | else | |
5213506e RW |
16856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16857 | $as_echo "no" >&6; } | |
e8b05380 PB |
16858 | fi |
16859 | done | |
16860 | fi | |
16861 | ||
16862 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16863 | for ncn_progname in windres; do | |
16864 | if test -n "$ncn_target_tool_prefix"; then | |
16865 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16866 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16868 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16869 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16870 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16871 | else |
4de997d1 PB |
16872 | if test -n "$WINDRES_FOR_TARGET"; then |
16873 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16874 | else |
1c710c3c DJ |
16875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16876 | for as_dir in $PATH | |
16877 | do | |
16878 | IFS=$as_save_IFS | |
16879 | test -z "$as_dir" && as_dir=. | |
5213506e | 16880 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16882 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16884 | break 2 |
16885 | fi | |
16886 | done | |
5213506e RW |
16887 | done |
16888 | IFS=$as_save_IFS | |
1c710c3c | 16889 | |
ca9f4b81 AO |
16890 | fi |
16891 | fi | |
1c710c3c | 16892 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16893 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16895 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16896 | else |
5213506e RW |
16897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16898 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16899 | fi |
16900 | ||
5213506e | 16901 | |
e8b05380 PB |
16902 | fi |
16903 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
16904 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16905 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16907 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16908 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16909 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16910 | else |
2693c0b0 PB |
16911 | if test -n "$WINDRES_FOR_TARGET"; then |
16912 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16913 | else |
1c710c3c DJ |
16914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16915 | for as_dir in $PATH | |
16916 | do | |
16917 | IFS=$as_save_IFS | |
16918 | test -z "$as_dir" && as_dir=. | |
5213506e | 16919 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16921 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16923 | break 2 |
16924 | fi | |
16925 | done | |
5213506e RW |
16926 | done |
16927 | IFS=$as_save_IFS | |
1c710c3c | 16928 | |
ca9f4b81 AO |
16929 | fi |
16930 | fi | |
1c710c3c | 16931 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 16932 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16934 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16935 | else |
5213506e RW |
16936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16937 | $as_echo "no" >&6; } | |
ca9f4b81 | 16938 | fi |
1c710c3c | 16939 | |
5213506e | 16940 | |
e8b05380 PB |
16941 | fi |
16942 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
16943 | done | |
16944 | fi | |
1c710c3c | 16945 | |
2693c0b0 PB |
16946 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
16947 | set dummy windres | |
16948 | if test $build = $target ; then | |
16949 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 16950 | else |
2693c0b0 | 16951 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 16952 | fi |
1c00b503 PB |
16953 | else |
16954 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
16955 | fi |
16956 | ||
d1f8db0c PB |
16957 | else |
16958 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
16959 | fi |
16960 | ||
4977bab6 | 16961 | |
901119ae KT |
16962 | |
16963 | ||
16964 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
16965 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
16967 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
16968 | if test -x $with_build_time_tools/windmc; then |
16969 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
16970 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
16972 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16973 | else |
5213506e RW |
16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16975 | $as_echo "no" >&6; } | |
901119ae KT |
16976 | fi |
16977 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16978 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
16979 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
16980 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
16981 | fi |
16982 | fi | |
16983 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16984 | # Extract the first word of "windmc", so it can be a program name with args. | |
16985 | set dummy windmc; ac_word=$2 | |
5213506e RW |
16986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16987 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16988 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16989 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16990 | else |
16991 | case $WINDMC_FOR_TARGET in | |
16992 | [\\/]* | ?:[\\/]*) | |
16993 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
16994 | ;; | |
16995 | *) | |
16996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16997 | for as_dir in $gcc_cv_tool_dirs | |
16998 | do | |
16999 | IFS=$as_save_IFS | |
17000 | test -z "$as_dir" && as_dir=. | |
5213506e | 17001 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17003 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17005 | break 2 |
17006 | fi | |
17007 | done | |
5213506e RW |
17008 | done |
17009 | IFS=$as_save_IFS | |
901119ae KT |
17010 | |
17011 | ;; | |
17012 | esac | |
17013 | fi | |
17014 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17015 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17017 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17018 | else |
5213506e RW |
17019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17020 | $as_echo "no" >&6; } | |
901119ae KT |
17021 | fi |
17022 | ||
5213506e | 17023 | |
901119ae KT |
17024 | fi |
17025 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17026 | ||
17027 | ||
17028 | if test -n "$WINDMC_FOR_TARGET"; then | |
17029 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17030 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17031 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17032 | fi | |
17033 | ||
17034 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17035 | for ncn_progname in windmc; do | |
17036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17037 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17039 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17040 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17041 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17042 | else |
17043 | if test -n "$WINDMC_FOR_TARGET"; then | |
17044 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17045 | else | |
17046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17047 | for as_dir in $PATH | |
17048 | do | |
17049 | IFS=$as_save_IFS | |
17050 | test -z "$as_dir" && as_dir=. | |
5213506e | 17051 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17053 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17055 | break 2 |
17056 | fi | |
17057 | done | |
5213506e RW |
17058 | done |
17059 | IFS=$as_save_IFS | |
901119ae KT |
17060 | |
17061 | fi | |
17062 | fi | |
17063 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17064 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17066 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17067 | else |
5213506e RW |
17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17069 | $as_echo "no" >&6; } | |
901119ae KT |
17070 | fi |
17071 | ||
5213506e | 17072 | |
901119ae KT |
17073 | done |
17074 | fi | |
17075 | ||
17076 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17077 | for ncn_progname in windmc; do | |
5213506e RW |
17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17079 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17080 | if test -x $with_build_time_tools/${ncn_progname}; then |
17081 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17083 | $as_echo "yes" >&6; } | |
901119ae KT |
17084 | break |
17085 | else | |
5213506e RW |
17086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17087 | $as_echo "no" >&6; } | |
901119ae KT |
17088 | fi |
17089 | done | |
17090 | fi | |
17091 | ||
17092 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17093 | for ncn_progname in windmc; do | |
17094 | if test -n "$ncn_target_tool_prefix"; then | |
17095 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17096 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17098 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17099 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17100 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17101 | else |
17102 | if test -n "$WINDMC_FOR_TARGET"; then | |
17103 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17104 | else | |
17105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17106 | for as_dir in $PATH | |
17107 | do | |
17108 | IFS=$as_save_IFS | |
17109 | test -z "$as_dir" && as_dir=. | |
5213506e | 17110 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17112 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17114 | break 2 |
17115 | fi | |
17116 | done | |
5213506e RW |
17117 | done |
17118 | IFS=$as_save_IFS | |
901119ae KT |
17119 | |
17120 | fi | |
17121 | fi | |
17122 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17123 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17125 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17126 | else |
5213506e RW |
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17128 | $as_echo "no" >&6; } | |
901119ae KT |
17129 | fi |
17130 | ||
5213506e | 17131 | |
901119ae KT |
17132 | fi |
17133 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17134 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17135 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17137 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17138 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17139 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17140 | else |
17141 | if test -n "$WINDMC_FOR_TARGET"; then | |
17142 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17143 | else | |
17144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17145 | for as_dir in $PATH | |
17146 | do | |
17147 | IFS=$as_save_IFS | |
17148 | test -z "$as_dir" && as_dir=. | |
5213506e | 17149 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17151 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17153 | break 2 |
17154 | fi | |
17155 | done | |
5213506e RW |
17156 | done |
17157 | IFS=$as_save_IFS | |
901119ae KT |
17158 | |
17159 | fi | |
17160 | fi | |
17161 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17162 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17164 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17165 | else |
5213506e RW |
17166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17167 | $as_echo "no" >&6; } | |
901119ae KT |
17168 | fi |
17169 | ||
5213506e | 17170 | |
901119ae KT |
17171 | fi |
17172 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17173 | done | |
17174 | fi | |
17175 | ||
17176 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17177 | set dummy windmc | |
17178 | if test $build = $target ; then | |
17179 | WINDMC_FOR_TARGET="$2" | |
17180 | else | |
17181 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17182 | fi | |
1c00b503 PB |
17183 | else |
17184 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17185 | fi |
17186 | ||
17187 | else | |
17188 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17189 | fi | |
17190 | ||
17191 | ||
2abefe3d PB |
17192 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17193 | ||
5213506e RW |
17194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17195 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17196 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17197 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17198 | # We already found the complete path | |
172e41aa | 17199 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17201 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17202 | else |
17203 | # Canadian cross, just use what we found | |
5213506e RW |
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17205 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17206 | fi |
2abefe3d PB |
17207 | else |
17208 | ok=yes | |
17209 | case " ${configdirs} " in | |
17210 | *" binutils "*) ;; | |
17211 | *) ok=no ;; | |
17212 | esac | |
1c710c3c | 17213 | |
2abefe3d PB |
17214 | if test $ok = yes; then |
17215 | # An in-tree tool is available and we can use it | |
17216 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17218 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17219 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17220 | # We already found the complete path | |
172e41aa | 17221 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17223 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17224 | elif test "x$target" = "x$host"; then |
17225 | # We can use an host tool | |
17226 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17228 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17229 | else |
17230 | # We need a cross tool | |
5213506e RW |
17231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17232 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17233 | fi |
17234 | fi | |
0b0dc272 | 17235 | |
5213506e RW |
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17237 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17238 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17239 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17240 | # We already found the complete path | |
172e41aa | 17241 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17243 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17244 | else |
17245 | # Canadian cross, just use what we found | |
5213506e RW |
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17247 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17248 | fi |
2abefe3d PB |
17249 | else |
17250 | ok=yes | |
17251 | case " ${configdirs} " in | |
17252 | *" gas "*) ;; | |
17253 | *) ok=no ;; | |
17254 | esac | |
1c710c3c | 17255 | |
2abefe3d PB |
17256 | if test $ok = yes; then |
17257 | # An in-tree tool is available and we can use it | |
17258 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17260 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17261 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17262 | # We already found the complete path | |
172e41aa | 17263 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17265 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17266 | elif test "x$target" = "x$host"; then |
17267 | # We can use an host tool | |
17268 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17270 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17271 | else |
17272 | # We need a cross tool | |
5213506e RW |
17273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17274 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17275 | fi |
17276 | fi | |
0b0dc272 | 17277 | |
5213506e RW |
17278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17279 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17280 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17281 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17282 | # We already found the complete path | |
172e41aa | 17283 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17285 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17286 | else |
17287 | # Canadian cross, just use what we found | |
5213506e RW |
17288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17289 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17290 | fi |
2abefe3d PB |
17291 | else |
17292 | ok=yes | |
17293 | case " ${configdirs} " in | |
17294 | *" gcc "*) ;; | |
17295 | *) ok=no ;; | |
17296 | esac | |
1c710c3c | 17297 | |
2abefe3d PB |
17298 | if test $ok = yes; then |
17299 | # An in-tree tool is available and we can use it | |
17300 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17302 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17303 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17304 | # We already found the complete path | |
172e41aa | 17305 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17307 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17308 | elif test "x$target" = "x$host"; then |
17309 | # We can use an host tool | |
17310 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17312 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17313 | else |
17314 | # We need a cross tool | |
5213506e RW |
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17316 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17317 | fi |
17318 | fi | |
0b0dc272 | 17319 | |
5213506e RW |
17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17321 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17322 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17323 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17324 | # We already found the complete path | |
172e41aa | 17325 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17327 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17328 | else |
17329 | # Canadian cross, just use what we found | |
5213506e RW |
17330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17331 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17332 | fi |
2abefe3d PB |
17333 | else |
17334 | ok=yes | |
17335 | case " ${configdirs} " in | |
17336 | *" gcc "*) ;; | |
17337 | *) ok=no ;; | |
17338 | esac | |
17339 | case ,${enable_languages}, in | |
17340 | *,c++,*) ;; | |
17341 | *) ok=no ;; | |
17342 | esac | |
17343 | if test $ok = yes; then | |
17344 | # An in-tree tool is available and we can use it | |
2077db1b | 17345 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17347 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17348 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17349 | # We already found the complete path | |
172e41aa | 17350 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17352 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17353 | elif test "x$target" = "x$host"; then |
17354 | # We can use an host tool | |
17355 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17357 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17358 | else |
17359 | # We need a cross tool | |
5213506e RW |
17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17361 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17362 | fi |
17363 | fi | |
0b0dc272 | 17364 | |
5213506e RW |
17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17366 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17367 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17368 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17369 | # We already found the complete path | |
172e41aa | 17370 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17372 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17373 | else |
17374 | # Canadian cross, just use what we found | |
5213506e RW |
17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17376 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17377 | fi |
2abefe3d PB |
17378 | else |
17379 | ok=yes | |
17380 | case " ${configdirs} " in | |
17381 | *" gcc "*) ;; | |
17382 | *) ok=no ;; | |
17383 | esac | |
17384 | case ,${enable_languages}, in | |
17385 | *,c++,*) ;; | |
17386 | *) ok=no ;; | |
17387 | esac | |
17388 | if test $ok = yes; then | |
17389 | # An in-tree tool is available and we can use it | |
2077db1b | 17390 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
17391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17392 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17393 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17394 | # We already found the complete path | |
172e41aa | 17395 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17397 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17398 | elif test "x$target" = "x$host"; then |
17399 | # We can use an host tool | |
17400 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17402 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17403 | else |
17404 | # We need a cross tool | |
5213506e RW |
17405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17406 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17407 | fi |
17408 | fi | |
0b0dc272 | 17409 | |
5213506e RW |
17410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17411 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17412 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17413 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17414 | # We already found the complete path | |
172e41aa | 17415 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17417 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17418 | else |
17419 | # Canadian cross, just use what we found | |
5213506e RW |
17420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17421 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17422 | fi |
2abefe3d PB |
17423 | else |
17424 | ok=yes | |
17425 | case " ${configdirs} " in | |
17426 | *" binutils "*) ;; | |
17427 | *) ok=no ;; | |
17428 | esac | |
1c710c3c | 17429 | |
2abefe3d PB |
17430 | if test $ok = yes; then |
17431 | # An in-tree tool is available and we can use it | |
17432 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17434 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17435 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17436 | # We already found the complete path | |
172e41aa | 17437 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17439 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17440 | elif test "x$target" = "x$host"; then |
17441 | # We can use an host tool | |
17442 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17444 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17445 | else |
17446 | # We need a cross tool | |
5213506e RW |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17448 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17449 | fi |
17450 | fi | |
0b0dc272 | 17451 | |
3b5e8ee4 IS |
17452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17453 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17454 | if test "x${build}" != "x${host}" ; then | |
17455 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17456 | # We already found the complete path | |
17457 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17459 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17460 | else | |
17461 | # Canadian cross, just use what we found | |
17462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17463 | $as_echo "pre-installed" >&6; } | |
17464 | fi | |
17465 | else | |
17466 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17467 | # We already found the complete path | |
17468 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17470 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17471 | elif test "x$target" = "x$host"; then | |
17472 | # We can use an host tool | |
17473 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17475 | $as_echo "host tool" >&6; } | |
17476 | else | |
17477 | # We need a cross tool | |
17478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17479 | $as_echo "pre-installed" >&6; } | |
17480 | fi | |
17481 | fi | |
17482 | ||
5213506e RW |
17483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17484 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 17485 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17486 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17487 | # We already found the complete path | |
172e41aa | 17488 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17490 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17491 | else |
17492 | # Canadian cross, just use what we found | |
5213506e RW |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17494 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17495 | fi |
2abefe3d PB |
17496 | else |
17497 | ok=yes | |
17498 | case " ${configdirs} " in | |
17499 | *" gcc "*) ;; | |
17500 | *) ok=no ;; | |
17501 | esac | |
1c710c3c | 17502 | |
2abefe3d PB |
17503 | if test $ok = yes; then |
17504 | # An in-tree tool is available and we can use it | |
17505 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17507 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17508 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17509 | # We already found the complete path | |
172e41aa | 17510 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17512 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17513 | elif test "x$target" = "x$host"; then |
17514 | # We can use an host tool | |
17515 | GCC_FOR_TARGET='$()' | |
5213506e RW |
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17517 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17518 | else |
17519 | # We need a cross tool | |
5213506e RW |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17521 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17522 | fi |
17523 | fi | |
0b0dc272 | 17524 | |
5213506e RW |
17525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17526 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 17527 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17528 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17529 | # We already found the complete path | |
172e41aa | 17530 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17532 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17533 | else |
17534 | # Canadian cross, just use what we found | |
5213506e RW |
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17536 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17537 | fi |
2abefe3d PB |
17538 | else |
17539 | ok=yes | |
17540 | case " ${configdirs} " in | |
17541 | *" gcc "*) ;; | |
17542 | *) ok=no ;; | |
17543 | esac | |
17544 | case ,${enable_languages}, in | |
17545 | *,fortran,*) ;; | |
17546 | *) ok=no ;; | |
17547 | esac | |
17548 | if test $ok = yes; then | |
17549 | # An in-tree tool is available and we can use it | |
17550 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17552 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17553 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17554 | # We already found the complete path | |
172e41aa | 17555 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17557 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17558 | elif test "x$target" = "x$host"; then |
17559 | # We can use an host tool | |
17560 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
17561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17562 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17563 | else |
17564 | # We need a cross tool | |
5213506e RW |
17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17566 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17567 | fi |
17568 | fi | |
0b0dc272 | 17569 | |
632e2a07 ILT |
17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17571 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17572 | if test "x${build}" != "x${host}" ; then | |
17573 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17574 | # We already found the complete path | |
17575 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17577 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17578 | else | |
17579 | # Canadian cross, just use what we found | |
17580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17581 | $as_echo "pre-installed" >&6; } | |
17582 | fi | |
17583 | else | |
17584 | ok=yes | |
17585 | case " ${configdirs} " in | |
17586 | *" gcc "*) ;; | |
17587 | *) ok=no ;; | |
17588 | esac | |
17589 | case ,${enable_languages}, in | |
17590 | *,go,*) ;; | |
17591 | *) ok=no ;; | |
17592 | esac | |
17593 | if test $ok = yes; then | |
17594 | # An in-tree tool is available and we can use it | |
17595 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17597 | $as_echo "just compiled" >&6; } | |
17598 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17599 | # We already found the complete path | |
17600 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17602 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17603 | elif test "x$target" = "x$host"; then | |
17604 | # We can use an host tool | |
17605 | GOC_FOR_TARGET='$(GOC)' | |
17606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17607 | $as_echo "host tool" >&6; } | |
17608 | else | |
17609 | # We need a cross tool | |
17610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17611 | $as_echo "pre-installed" >&6; } | |
17612 | fi | |
17613 | fi | |
17614 | ||
b4c522fa IB |
17615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17616 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17617 | if test "x${build}" != "x${host}" ; then | |
17618 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17619 | # We already found the complete path | |
17620 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17622 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17623 | else | |
17624 | # Canadian cross, just use what we found | |
17625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17626 | $as_echo "pre-installed" >&6; } | |
17627 | fi | |
17628 | else | |
17629 | ok=yes | |
17630 | case " ${configdirs} " in | |
17631 | *" gcc "*) ;; | |
17632 | *) ok=no ;; | |
17633 | esac | |
17634 | case ,${enable_languages}, in | |
17635 | *,d,*) ;; | |
17636 | *) ok=no ;; | |
17637 | esac | |
17638 | if test $ok = yes; then | |
17639 | # An in-tree tool is available and we can use it | |
17640 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17642 | $as_echo "just compiled" >&6; } | |
17643 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17644 | # We already found the complete path | |
17645 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17647 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17648 | elif test "x$target" = "x$host"; then | |
17649 | # We can use an host tool | |
17650 | GDC_FOR_TARGET='$(GDC)' | |
17651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17652 | $as_echo "host tool" >&6; } | |
17653 | else | |
17654 | # We need a cross tool | |
17655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17656 | $as_echo "pre-installed" >&6; } | |
17657 | fi | |
17658 | fi | |
17659 | ||
5213506e RW |
17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17661 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17662 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17663 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17664 | # We already found the complete path | |
172e41aa | 17665 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17667 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17668 | else |
17669 | # Canadian cross, just use what we found | |
5213506e RW |
17670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17671 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17672 | fi |
2abefe3d PB |
17673 | else |
17674 | ok=yes | |
17675 | case " ${configdirs} " in | |
17676 | *" ld "*) ;; | |
17677 | *) ok=no ;; | |
17678 | esac | |
1c710c3c | 17679 | |
2abefe3d PB |
17680 | if test $ok = yes; then |
17681 | # An in-tree tool is available and we can use it | |
17682 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17684 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17685 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17686 | # We already found the complete path | |
172e41aa | 17687 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17689 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17690 | elif test "x$target" = "x$host"; then |
17691 | # We can use an host tool | |
17692 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17694 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17695 | else |
17696 | # We need a cross tool | |
5213506e RW |
17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17698 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17699 | fi |
17700 | fi | |
0b0dc272 | 17701 | |
5213506e RW |
17702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17703 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17704 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17705 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17706 | # We already found the complete path | |
172e41aa | 17707 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17709 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17710 | else |
17711 | # Canadian cross, just use what we found | |
5213506e RW |
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17713 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17714 | fi |
2abefe3d | 17715 | else |
e8b05380 PB |
17716 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17717 | # We already found the complete path | |
172e41aa | 17718 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17720 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17721 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17722 | # We can use an host tool |
17723 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17725 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17726 | else |
17727 | # We need a cross tool | |
5213506e RW |
17728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17729 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17730 | fi |
17731 | fi | |
0b0dc272 | 17732 | |
5213506e RW |
17733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17734 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17735 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17736 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17737 | # We already found the complete path | |
172e41aa | 17738 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17740 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17741 | else |
17742 | # Canadian cross, just use what we found | |
5213506e RW |
17743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17744 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17745 | fi |
2abefe3d PB |
17746 | else |
17747 | ok=yes | |
17748 | case " ${configdirs} " in | |
17749 | *" binutils "*) ;; | |
17750 | *) ok=no ;; | |
17751 | esac | |
1c710c3c | 17752 | |
2abefe3d PB |
17753 | if test $ok = yes; then |
17754 | # An in-tree tool is available and we can use it | |
17755 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17757 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17758 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17759 | # We already found the complete path | |
172e41aa | 17760 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17762 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17763 | elif test "x$target" = "x$host"; then |
17764 | # We can use an host tool | |
17765 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17767 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17768 | else |
17769 | # We need a cross tool | |
5213506e RW |
17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17771 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17772 | fi |
17773 | fi | |
0b0dc272 | 17774 | |
9bccfdf5 AP |
17775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17776 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17777 | if test "x${build}" != "x${host}" ; then | |
17778 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17779 | # We already found the complete path | |
17780 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17782 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17783 | else | |
17784 | # Canadian cross, just use what we found | |
17785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17786 | $as_echo "pre-installed" >&6; } | |
17787 | fi | |
17788 | else | |
17789 | ok=yes | |
17790 | case " ${configdirs} " in | |
17791 | *" binutils "*) ;; | |
17792 | *) ok=no ;; | |
17793 | esac | |
17794 | ||
17795 | if test $ok = yes; then | |
17796 | # An in-tree tool is available and we can use it | |
17797 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17799 | $as_echo "just compiled" >&6; } | |
17800 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17801 | # We already found the complete path | |
17802 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17804 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17805 | elif test "x$target" = "x$host"; then | |
17806 | # We can use an host tool | |
ec8fd1c0 | 17807 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17809 | $as_echo "host tool" >&6; } | |
17810 | else | |
17811 | # We need a cross tool | |
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17813 | $as_echo "pre-installed" >&6; } | |
17814 | fi | |
17815 | fi | |
17816 | ||
5213506e RW |
17817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17818 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17819 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17820 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17821 | # We already found the complete path | |
172e41aa | 17822 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17824 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17825 | else |
17826 | # Canadian cross, just use what we found | |
5213506e RW |
17827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17828 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17829 | fi |
2abefe3d PB |
17830 | else |
17831 | ok=yes | |
17832 | case " ${configdirs} " in | |
17833 | *" binutils "*) ;; | |
17834 | *) ok=no ;; | |
17835 | esac | |
1c710c3c | 17836 | |
2abefe3d PB |
17837 | if test $ok = yes; then |
17838 | # An in-tree tool is available and we can use it | |
17839 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17841 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17842 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17843 | # We already found the complete path | |
172e41aa | 17844 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17846 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17847 | elif test "x$target" = "x$host"; then |
17848 | # We can use an host tool | |
17849 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17851 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17852 | else |
17853 | # We need a cross tool | |
5213506e RW |
17854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17855 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17856 | fi |
17857 | fi | |
0b0dc272 | 17858 | |
e4a9a572 IS |
17859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17860 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17861 | if test "x${build}" != "x${host}" ; then | |
17862 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17863 | # We already found the complete path | |
17864 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17866 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17867 | else | |
17868 | # Canadian cross, just use what we found | |
17869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17870 | $as_echo "pre-installed" >&6; } | |
17871 | fi | |
17872 | else | |
17873 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17874 | # We already found the complete path | |
17875 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17877 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17878 | elif test "x$target" = "x$host"; then | |
17879 | # We can use an host tool | |
17880 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17882 | $as_echo "host tool" >&6; } | |
17883 | else | |
17884 | # We need a cross tool | |
17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17886 | $as_echo "pre-installed" >&6; } | |
17887 | fi | |
17888 | fi | |
17889 | ||
5213506e RW |
17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17891 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17892 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17893 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17894 | # We already found the complete path | |
172e41aa | 17895 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17897 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17898 | else |
17899 | # Canadian cross, just use what we found | |
5213506e RW |
17900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17901 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17902 | fi |
2abefe3d PB |
17903 | else |
17904 | ok=yes | |
17905 | case " ${configdirs} " in | |
17906 | *" binutils "*) ;; | |
17907 | *) ok=no ;; | |
17908 | esac | |
1c710c3c | 17909 | |
2abefe3d PB |
17910 | if test $ok = yes; then |
17911 | # An in-tree tool is available and we can use it | |
17912 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
17913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17914 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17915 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17916 | # We already found the complete path | |
172e41aa | 17917 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17919 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17920 | elif test "x$target" = "x$host"; then |
17921 | # We can use an host tool | |
17922 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
17923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17924 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17925 | else |
17926 | # We need a cross tool | |
5213506e RW |
17927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17928 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17929 | fi |
17930 | fi | |
0b0dc272 | 17931 | |
e7a82751 RM |
17932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
17933 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
17934 | if test "x${build}" != "x${host}" ; then | |
17935 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17936 | # We already found the complete path | |
17937 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17939 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17940 | else | |
17941 | # Canadian cross, just use what we found | |
17942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17943 | $as_echo "pre-installed" >&6; } | |
17944 | fi | |
17945 | else | |
17946 | ok=yes | |
17947 | case " ${configdirs} " in | |
17948 | *" binutils "*) ;; | |
17949 | *) ok=no ;; | |
17950 | esac | |
17951 | ||
17952 | if test $ok = yes; then | |
17953 | # An in-tree tool is available and we can use it | |
17954 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
17955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17956 | $as_echo "just compiled" >&6; } | |
17957 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17958 | # We already found the complete path | |
17959 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17961 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17962 | elif test "x$target" = "x$host"; then | |
17963 | # We can use an host tool | |
17964 | READELF_FOR_TARGET='$(READELF)' | |
17965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17966 | $as_echo "host tool" >&6; } | |
17967 | else | |
17968 | # We need a cross tool | |
17969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17970 | $as_echo "pre-installed" >&6; } | |
17971 | fi | |
17972 | fi | |
17973 | ||
5213506e RW |
17974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
17975 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 17976 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17977 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
17978 | # We already found the complete path | |
172e41aa | 17979 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
17980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17981 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17982 | else |
17983 | # Canadian cross, just use what we found | |
5213506e RW |
17984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17985 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17986 | fi |
2abefe3d PB |
17987 | else |
17988 | ok=yes | |
17989 | case " ${configdirs} " in | |
17990 | *" binutils "*) ;; | |
17991 | *) ok=no ;; | |
17992 | esac | |
1c710c3c | 17993 | |
2abefe3d PB |
17994 | if test $ok = yes; then |
17995 | # An in-tree tool is available and we can use it | |
455c8f48 | 17996 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
17997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17998 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17999 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18000 | # We already found the complete path | |
172e41aa | 18001 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18003 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18004 | elif test "x$target" = "x$host"; then |
18005 | # We can use an host tool | |
18006 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18008 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18009 | else |
18010 | # We need a cross tool | |
5213506e RW |
18011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18012 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18013 | fi |
18014 | fi | |
0b0dc272 | 18015 | |
5213506e RW |
18016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18017 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18018 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18019 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18020 | # We already found the complete path | |
172e41aa | 18021 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18023 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18024 | else |
18025 | # Canadian cross, just use what we found | |
5213506e RW |
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18027 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18028 | fi |
2abefe3d PB |
18029 | else |
18030 | ok=yes | |
18031 | case " ${configdirs} " in | |
18032 | *" binutils "*) ;; | |
18033 | *) ok=no ;; | |
18034 | esac | |
1c710c3c | 18035 | |
2abefe3d PB |
18036 | if test $ok = yes; then |
18037 | # An in-tree tool is available and we can use it | |
18038 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18040 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18041 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18042 | # We already found the complete path | |
172e41aa | 18043 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18045 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18046 | elif test "x$target" = "x$host"; then |
18047 | # We can use an host tool | |
18048 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18050 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18051 | else |
18052 | # We need a cross tool | |
5213506e RW |
18053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18054 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18055 | fi |
671aa708 | 18056 | fi |
be912515 | 18057 | |
5213506e RW |
18058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18059 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18060 | if test "x${build}" != "x${host}" ; then |
18061 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18062 | # We already found the complete path | |
18063 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18065 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18066 | else |
18067 | # Canadian cross, just use what we found | |
5213506e RW |
18068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18069 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18070 | fi |
18071 | else | |
18072 | ok=yes | |
18073 | case " ${configdirs} " in | |
18074 | *" binutils "*) ;; | |
18075 | *) ok=no ;; | |
18076 | esac | |
18077 | ||
18078 | if test $ok = yes; then | |
18079 | # An in-tree tool is available and we can use it | |
18080 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18082 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18083 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18084 | # We already found the complete path | |
18085 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18087 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18088 | elif test "x$target" = "x$host"; then |
18089 | # We can use an host tool | |
18090 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18092 | $as_echo "host tool" >&6; } | |
901119ae KT |
18093 | else |
18094 | # We need a cross tool | |
5213506e RW |
18095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18096 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18097 | fi |
18098 | fi | |
18099 | ||
be912515 NN |
18100 | |
18101 | ||
2abefe3d | 18102 | |
0b0dc272 | 18103 | |
671aa708 NN |
18104 | # Certain tools may need extra flags. |
18105 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18106 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18107 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18108 | ||
2abefe3d PB |
18109 | # When building target libraries, except in a Canadian cross, we use |
18110 | # the same toolchain as the compiler we just built. | |
18111 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18112 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18113 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18114 | if test $host = $build; then | |
18115 | case " $configdirs " in | |
18116 | *" gcc "*) | |
18117 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18118 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18119 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18120 | ;; | |
18121 | esac | |
18122 | fi | |
18123 | ||
18124 | ||
18125 | ||
18126 | ||
18127 | ||
5213506e RW |
18128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18129 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18130 | # Check whether --enable-maintainer-mode was given. | |
18131 | if test "${enable_maintainer_mode+set}" = set; then : | |
18132 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18133 | else |
18134 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18135 | fi |
18136 | ||
18137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18138 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18139 | |
18140 | ||
18141 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18142 | MAINTAINER_MODE_TRUE= | |
18143 | MAINTAINER_MODE_FALSE='#' | |
18144 | else | |
18145 | MAINTAINER_MODE_TRUE='#' | |
18146 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18147 | fi |
ee03dc5e AO |
18148 | MAINT=$MAINTAINER_MODE_TRUE |
18149 | ||
2805b53a NN |
18150 | # --------------------- |
18151 | # GCC bootstrap support | |
18152 | # --------------------- | |
18153 | ||
18154 | # Stage specific cflags for build. | |
18155 | stage1_cflags="-g" | |
18156 | case $build in | |
18157 | vax-*-*) | |
18158 | case ${GCC} in | |
18159 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18160 | *) stage1_cflags="-g -J" ;; | |
18161 | esac ;; | |
2805b53a NN |
18162 | esac |
18163 | ||
0b50988a | 18164 | |
2805b53a | 18165 | |
8efea775 | 18166 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18167 | # Check whether --enable-stage1-checking was given. |
18168 | if test "${enable_stage1_checking+set}" = set; then : | |
18169 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18170 | else |
e643dc23 | 18171 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18172 | # For --disable-checking or implicit --enable-checking=release, avoid |
18173 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18174 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18175 | case $BUILD_CONFIG in |
18176 | *lto*) | |
7db11a5a JJ |
18177 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18178 | *) | |
18179 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18180 | esac |
7db11a5a JJ |
18181 | if test "x$enable_checking" = x && \ |
18182 | test -d ${srcdir}/gcc && \ | |
18183 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18184 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18185 | fi |
8efea775 | 18186 | else |
e643dc23 | 18187 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18188 | fi |
5213506e | 18189 | fi |
8efea775 PB |
18190 | |
18191 | ||
2aeb72e9 | 18192 | |
5213506e RW |
18193 | # Enable -Werror in bootstrap stage2 and later. |
18194 | # Check whether --enable-werror was given. | |
18195 | if test "${enable_werror+set}" = set; then : | |
18196 | enableval=$enable_werror; | |
09a9c095 NN |
18197 | case ${enable_werror} in |
18198 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18199 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18200 | esac |
18201 | ||
afd88efc ML |
18202 | else |
18203 | ||
01c712cb ML |
18204 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18205 | case $BUILD_CONFIG in | |
18206 | bootstrap-debug) | |
18207 | stage2_werror_flag="--enable-werror-always" ;; | |
18208 | "") | |
18209 | stage2_werror_flag="--enable-werror-always" ;; | |
18210 | esac | |
18211 | fi | |
18212 | ||
afd88efc ML |
18213 | fi |
18214 | ||
18215 | ||
01c712cb | 18216 | |
2805b53a | 18217 | |
f2689b09 SE |
18218 | # Specify what files to not compare during bootstrap. |
18219 | ||
18220 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18221 | case "$target" in | |
18222 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
18223 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
18224 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
18225 | esac |
18226 | ||
18227 | ||
5213506e RW |
18228 | ac_config_files="$ac_config_files Makefile" |
18229 | ||
1c710c3c | 18230 | cat >confcache <<\_ACEOF |
671aa708 NN |
18231 | # This file is a shell script that caches the results of configure |
18232 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18233 | # scripts and configure runs, see configure's option --config-cache. |
18234 | # It is not useful on other systems. If it contains results you don't | |
18235 | # want to keep, you may remove or edit it. | |
671aa708 | 18236 | # |
1c710c3c DJ |
18237 | # config.status only pays attention to the cache file if you give it |
18238 | # the --recheck option to rerun configure. | |
671aa708 | 18239 | # |
1c710c3c DJ |
18240 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18241 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18242 | # following values. | |
18243 | ||
18244 | _ACEOF | |
18245 | ||
671aa708 NN |
18246 | # The following way of writing the cache mishandles newlines in values, |
18247 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18248 | # So, we kill variables containing newlines. |
671aa708 NN |
18249 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18250 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18251 | ( |
18252 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18253 | eval ac_val=\$$ac_var | |
18254 | case $ac_val in #( | |
18255 | *${as_nl}*) | |
18256 | case $ac_var in #( | |
18257 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18258 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18259 | esac | |
18260 | case $ac_var in #( | |
18261 | _ | IFS | as_nl) ;; #( | |
18262 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18263 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18264 | esac ;; | |
18265 | esac | |
18266 | done | |
18267 | ||
1c710c3c | 18268 | (set) 2>&1 | |
5213506e RW |
18269 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18270 | *${as_nl}ac_space=\ *) | |
18271 | # `set' does not quote correctly, so add quotes: double-quote | |
18272 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18273 | sed -n \ |
18274 | "s/'/'\\\\''/g; | |
18275 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18276 | ;; #( |
1c710c3c DJ |
18277 | *) |
18278 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18279 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18280 | ;; |
5213506e RW |
18281 | esac | |
18282 | sort | |
18283 | ) | | |
1c710c3c | 18284 | sed ' |
5213506e | 18285 | /^ac_cv_env_/b end |
1c710c3c | 18286 | t clear |
5213506e | 18287 | :clear |
1c710c3c DJ |
18288 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18289 | t end | |
5213506e RW |
18290 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18291 | :end' >>confcache | |
18292 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18293 | if test -w "$cache_file"; then | |
22e05272 | 18294 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18295 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18296 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18297 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18298 | cat confcache >"$cache_file" | |
18299 | else | |
18300 | case $cache_file in #( | |
18301 | */* | ?:*) | |
18302 | mv -f confcache "$cache_file"$$ && | |
18303 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18304 | *) | |
18305 | mv -f confcache "$cache_file" ;; | |
18306 | esac | |
18307 | fi | |
18308 | fi | |
671aa708 | 18309 | else |
5213506e RW |
18310 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18311 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18312 | fi |
4977bab6 | 18313 | fi |
671aa708 | 18314 | rm -f confcache |
79c06341 | 18315 | |
671aa708 NN |
18316 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18317 | # Let make expand exec_prefix. | |
18318 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18319 | |
671aa708 NN |
18320 | # Transform confdefs.h into DEFS. |
18321 | # Protect against shell expansion while executing Makefile rules. | |
18322 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18323 | # |
18324 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18325 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18326 | # look for a macro that doesn't take arguments. |
5213506e RW |
18327 | ac_script=' |
18328 | :mline | |
18329 | /\\$/{ | |
18330 | N | |
18331 | s,\\\n,, | |
18332 | b mline | |
18333 | } | |
1c710c3c | 18334 | t clear |
5213506e RW |
18335 | :clear |
18336 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18337 | t quote |
5213506e | 18338 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18339 | t quote |
5213506e RW |
18340 | b any |
18341 | :quote | |
18342 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18343 | s/\[/\\&/g | |
18344 | s/\]/\\&/g | |
18345 | s/\$/$$/g | |
18346 | H | |
18347 | :any | |
18348 | ${ | |
18349 | g | |
18350 | s/^\n// | |
18351 | s/\n/ /g | |
18352 | p | |
18353 | } | |
18354 | ' | |
18355 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18356 | |
18357 | ||
18358 | ac_libobjs= | |
18359 | ac_ltlibobjs= | |
22e05272 | 18360 | U= |
1c710c3c DJ |
18361 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18362 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18363 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18364 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18365 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18366 | # will be set to the directory where LIBOBJS objects are built. | |
18367 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18368 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18369 | done |
18370 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18371 | |
1c710c3c | 18372 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18373 | |
af71363e | 18374 | |
1c710c3c | 18375 | |
22e05272 | 18376 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18377 | ac_write_fail=0 |
1c710c3c DJ |
18378 | ac_clean_files_save=$ac_clean_files |
18379 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18380 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18381 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18382 | as_write_fail=0 | |
18383 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18384 | #! $SHELL |
18385 | # Generated by $as_me. | |
671aa708 | 18386 | # Run this file to recreate the current configuration. |
671aa708 | 18387 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18388 | # configure, is in config.log if it exists. |
0b0dc272 | 18389 | |
1c710c3c DJ |
18390 | debug=false |
18391 | ac_cs_recheck=false | |
18392 | ac_cs_silent=false | |
1c710c3c | 18393 | |
5213506e RW |
18394 | SHELL=\${CONFIG_SHELL-$SHELL} |
18395 | export SHELL | |
18396 | _ASEOF | |
18397 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18398 | ## -------------------- ## | |
18399 | ## M4sh Initialization. ## | |
18400 | ## -------------------- ## | |
18401 | ||
18402 | # Be more Bourne compatible | |
18403 | DUALCASE=1; export DUALCASE # for MKS sh | |
18404 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18405 | emulate sh |
18406 | NULLCMD=: | |
5213506e | 18407 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
18408 | # is contrary to our usage. Disable this feature. |
18409 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
18410 | setopt NO_GLOB_SUBST |
18411 | else | |
18412 | case `(set -o) 2>/dev/null` in #( | |
18413 | *posix*) : | |
18414 | set -o posix ;; #( | |
18415 | *) : | |
18416 | ;; | |
18417 | esac | |
1c710c3c | 18418 | fi |
1c710c3c | 18419 | |
5213506e RW |
18420 | |
18421 | as_nl=' | |
18422 | ' | |
18423 | export as_nl | |
18424 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18425 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18426 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18427 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18428 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18429 | # but without wasting forks for bash or zsh. | |
18430 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18431 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18432 | as_echo='print -r --' | |
18433 | as_echo_n='print -rn --' | |
18434 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18435 | as_echo='printf %s\n' | |
18436 | as_echo_n='printf %s' | |
18437 | else | |
18438 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18439 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18440 | as_echo_n='/usr/ucb/echo -n' | |
18441 | else | |
18442 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18443 | as_echo_n_body='eval | |
18444 | arg=$1; | |
18445 | case $arg in #( | |
18446 | *"$as_nl"*) | |
18447 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18448 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18449 | esac; | |
18450 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18451 | ' | |
18452 | export as_echo_n_body | |
18453 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18454 | fi | |
18455 | export as_echo_body | |
18456 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
18457 | fi |
18458 | ||
5213506e RW |
18459 | # The user is always right. |
18460 | if test "${PATH_SEPARATOR+set}" != set; then | |
18461 | PATH_SEPARATOR=: | |
18462 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18463 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18464 | PATH_SEPARATOR=';' | |
18465 | } | |
18466 | fi | |
18467 | ||
18468 | ||
18469 | # IFS | |
18470 | # We need space, tab and new line, in precisely that order. Quoting is | |
18471 | # there to prevent editors from complaining about space-tab. | |
18472 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18473 | # splitting by setting IFS to empty value.) | |
18474 | IFS=" "" $as_nl" | |
18475 | ||
18476 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18477 | as_myself= |
5213506e RW |
18478 | case $0 in #(( |
18479 | *[\\/]* ) as_myself=$0 ;; | |
18480 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18481 | for as_dir in $PATH | |
18482 | do | |
18483 | IFS=$as_save_IFS | |
18484 | test -z "$as_dir" && as_dir=. | |
18485 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18486 | done | |
18487 | IFS=$as_save_IFS | |
18488 | ||
18489 | ;; | |
18490 | esac | |
18491 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18492 | # in which case we are not to be found in the path. | |
18493 | if test "x$as_myself" = x; then | |
18494 | as_myself=$0 | |
18495 | fi | |
18496 | if test ! -f "$as_myself"; then | |
18497 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18498 | exit 1 | |
18499 | fi | |
1c710c3c | 18500 | |
5213506e RW |
18501 | # Unset variables that we do not need and which cause bugs (e.g. in |
18502 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18503 | # suppresses any "Segmentation fault" message there. '((' could | |
18504 | # trigger a bug in pdksh 5.2.14. | |
18505 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18506 | do eval test x\${$as_var+set} = xset \ | |
18507 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18508 | done | |
1c710c3c DJ |
18509 | PS1='$ ' |
18510 | PS2='> ' | |
18511 | PS4='+ ' | |
18512 | ||
18513 | # NLS nuisances. | |
5213506e RW |
18514 | LC_ALL=C |
18515 | export LC_ALL | |
18516 | LANGUAGE=C | |
18517 | export LANGUAGE | |
18518 | ||
18519 | # CDPATH. | |
18520 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18521 | ||
18522 | ||
22e05272 JM |
18523 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18524 | # ---------------------------------------- | |
5213506e RW |
18525 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18526 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18527 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
18528 | as_fn_error () |
18529 | { | |
22e05272 JM |
18530 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18531 | if test "$4"; then | |
18532 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18533 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 18534 | fi |
22e05272 | 18535 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
18536 | as_fn_exit $as_status |
18537 | } # as_fn_error | |
18538 | ||
18539 | ||
18540 | # as_fn_set_status STATUS | |
18541 | # ----------------------- | |
18542 | # Set $? to STATUS, without forking. | |
18543 | as_fn_set_status () | |
18544 | { | |
18545 | return $1 | |
18546 | } # as_fn_set_status | |
18547 | ||
18548 | # as_fn_exit STATUS | |
18549 | # ----------------- | |
18550 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18551 | as_fn_exit () | |
18552 | { | |
18553 | set +e | |
18554 | as_fn_set_status $1 | |
18555 | exit $1 | |
18556 | } # as_fn_exit | |
18557 | ||
18558 | # as_fn_unset VAR | |
18559 | # --------------- | |
18560 | # Portably unset VAR. | |
18561 | as_fn_unset () | |
18562 | { | |
18563 | { eval $1=; unset $1;} | |
18564 | } | |
18565 | as_unset=as_fn_unset | |
18566 | # as_fn_append VAR VALUE | |
18567 | # ---------------------- | |
18568 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18569 | # advantage of any shell optimizations that allow amortized linear growth over | |
18570 | # repeated appends, instead of the typical quadratic growth present in naive | |
18571 | # implementations. | |
18572 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18573 | eval 'as_fn_append () | |
18574 | { | |
18575 | eval $1+=\$2 | |
18576 | }' | |
18577 | else | |
18578 | as_fn_append () | |
18579 | { | |
18580 | eval $1=\$$1\$2 | |
18581 | } | |
18582 | fi # as_fn_append | |
18583 | ||
18584 | # as_fn_arith ARG... | |
18585 | # ------------------ | |
18586 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18587 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18588 | # must be portable across $(()) and expr. | |
18589 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18590 | eval 'as_fn_arith () | |
18591 | { | |
18592 | as_val=$(( $* )) | |
18593 | }' | |
18594 | else | |
18595 | as_fn_arith () | |
18596 | { | |
18597 | as_val=`expr "$@" || test $? -eq 1` | |
18598 | } | |
18599 | fi # as_fn_arith | |
18600 | ||
1c710c3c | 18601 | |
5213506e RW |
18602 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18603 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18604 | as_expr=expr |
18605 | else | |
18606 | as_expr=false | |
18607 | fi | |
18608 | ||
5213506e | 18609 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18610 | as_basename=basename |
18611 | else | |
18612 | as_basename=false | |
18613 | fi | |
18614 | ||
5213506e RW |
18615 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18616 | as_dirname=dirname | |
18617 | else | |
18618 | as_dirname=false | |
18619 | fi | |
1c710c3c | 18620 | |
5213506e | 18621 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18622 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18623 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18624 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18625 | $as_echo X/"$0" | | |
18626 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18627 | s//\1/ | |
18628 | q | |
18629 | } | |
18630 | /^X\/\(\/\/\)$/{ | |
18631 | s//\1/ | |
18632 | q | |
18633 | } | |
18634 | /^X\/\(\/\).*/{ | |
18635 | s//\1/ | |
18636 | q | |
18637 | } | |
18638 | s/.*/./; q'` | |
2aeb72e9 | 18639 | |
2aeb72e9 DD |
18640 | # Avoid depending upon Character Ranges. |
18641 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18642 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18643 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18644 | as_cr_digits='0123456789' | |
18645 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18646 | ||
5213506e RW |
18647 | ECHO_C= ECHO_N= ECHO_T= |
18648 | case `echo -n x` in #((((( | |
18649 | -n*) | |
18650 | case `echo 'xy\c'` in | |
18651 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18652 | xy) ECHO_C='\c';; | |
18653 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18654 | ECHO_T=' ';; | |
18655 | esac;; | |
18656 | *) | |
18657 | ECHO_N='-n';; | |
1c710c3c DJ |
18658 | esac |
18659 | ||
5213506e RW |
18660 | rm -f conf$$ conf$$.exe conf$$.file |
18661 | if test -d conf$$.dir; then | |
18662 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18663 | else |
5213506e RW |
18664 | rm -f conf$$.dir |
18665 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18666 | fi |
5213506e RW |
18667 | if (echo >conf$$.file) 2>/dev/null; then |
18668 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18669 | as_ln_s='ln -s' |
5213506e RW |
18670 | # ... but there are two gotchas: |
18671 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18672 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18673 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18674 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18675 | as_ln_s='cp -pR' |
5213506e RW |
18676 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18677 | as_ln_s=ln | |
18678 | else | |
22e05272 | 18679 | as_ln_s='cp -pR' |
2aeb72e9 | 18680 | fi |
1c710c3c | 18681 | else |
22e05272 | 18682 | as_ln_s='cp -pR' |
1c710c3c | 18683 | fi |
5213506e RW |
18684 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18685 | rmdir conf$$.dir 2>/dev/null | |
18686 | ||
18687 | ||
18688 | # as_fn_mkdir_p | |
18689 | # ------------- | |
18690 | # Create "$as_dir" as a directory, including parents if necessary. | |
18691 | as_fn_mkdir_p () | |
18692 | { | |
18693 | ||
18694 | case $as_dir in #( | |
18695 | -*) as_dir=./$as_dir;; | |
18696 | esac | |
18697 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18698 | as_dirs= | |
18699 | while :; do | |
18700 | case $as_dir in #( | |
18701 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18702 | *) as_qdir=$as_dir;; | |
18703 | esac | |
18704 | as_dirs="'$as_qdir' $as_dirs" | |
18705 | as_dir=`$as_dirname -- "$as_dir" || | |
18706 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18707 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18708 | X"$as_dir" : 'X\(//\)$' \| \ | |
18709 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18710 | $as_echo X"$as_dir" | | |
18711 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18712 | s//\1/ | |
18713 | q | |
18714 | } | |
18715 | /^X\(\/\/\)[^/].*/{ | |
18716 | s//\1/ | |
18717 | q | |
18718 | } | |
18719 | /^X\(\/\/\)$/{ | |
18720 | s//\1/ | |
18721 | q | |
18722 | } | |
18723 | /^X\(\/\).*/{ | |
18724 | s//\1/ | |
18725 | q | |
18726 | } | |
18727 | s/.*/./; q'` | |
18728 | test -d "$as_dir" && break | |
18729 | done | |
18730 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18731 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18732 | |
1c710c3c | 18733 | |
5213506e | 18734 | } # as_fn_mkdir_p |
1c710c3c | 18735 | if mkdir -p . 2>/dev/null; then |
5213506e | 18736 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18737 | else |
18738 | test -d ./-p && rmdir ./-p | |
18739 | as_mkdir_p=false | |
18740 | fi | |
18741 | ||
22e05272 JM |
18742 | |
18743 | # as_fn_executable_p FILE | |
18744 | # ----------------------- | |
18745 | # Test if FILE is an executable regular file. | |
18746 | as_fn_executable_p () | |
18747 | { | |
18748 | test -f "$1" && test -x "$1" | |
18749 | } # as_fn_executable_p | |
18750 | as_test_x='test -x' | |
18751 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18752 | |
18753 | # Sed expression to map a string onto a valid CPP name. | |
18754 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18755 | ||
18756 | # Sed expression to map a string onto a valid variable name. | |
18757 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18758 | ||
18759 | ||
1c710c3c | 18760 | exec 6>&1 |
5213506e RW |
18761 | ## ----------------------------------- ## |
18762 | ## Main body of $CONFIG_STATUS script. ## | |
18763 | ## ----------------------------------- ## | |
18764 | _ASEOF | |
18765 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18766 | ||
18767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18768 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18769 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18770 | # values after options handling. |
18771 | ac_log=" | |
1c710c3c | 18772 | This file was extended by $as_me, which was |
22e05272 | 18773 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18774 | |
18775 | CONFIG_FILES = $CONFIG_FILES | |
18776 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18777 | CONFIG_LINKS = $CONFIG_LINKS | |
18778 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18779 | $ $0 $@ | |
18780 | ||
5213506e RW |
18781 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18782 | " | |
18783 | ||
1c710c3c DJ |
18784 | _ACEOF |
18785 | ||
5213506e RW |
18786 | case $ac_config_files in *" |
18787 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18788 | esac | |
1c710c3c | 18789 | |
2aeb72e9 | 18790 | |
2aeb72e9 | 18791 | |
5213506e RW |
18792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18793 | # Files that config.status was made for. | |
18794 | config_files="$ac_config_files" | |
1c710c3c | 18795 | |
5213506e | 18796 | _ACEOF |
2aeb72e9 | 18797 | |
5213506e | 18798 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18799 | ac_cs_usage="\ |
5213506e RW |
18800 | \`$as_me' instantiates files and other configuration actions |
18801 | from templates according to the current configuration. Unless the files | |
18802 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18803 | |
5213506e | 18804 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18805 | |
18806 | -h, --help print this help, then exit | |
5213506e | 18807 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18808 | --config print configuration, then exit |
5213506e RW |
18809 | -q, --quiet, --silent |
18810 | do not print progress messages | |
1c710c3c DJ |
18811 | -d, --debug don't remove temporary files |
18812 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18813 | --file=FILE[:TEMPLATE] |
18814 | instantiate the configuration file FILE | |
1c710c3c DJ |
18815 | |
18816 | Configuration files: | |
18817 | $config_files | |
18818 | ||
5213506e | 18819 | Report bugs to the package provider." |
2aeb72e9 | 18820 | |
5213506e RW |
18821 | _ACEOF |
18822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18823 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18824 | ac_cs_version="\\ |
18825 | config.status | |
22e05272 JM |
18826 | configured by $0, generated by GNU Autoconf 2.69, |
18827 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18828 | |
22e05272 | 18829 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18830 | This config.status script is free software; the Free Software Foundation |
18831 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18832 | |
18833 | ac_pwd='$ac_pwd' | |
18834 | srcdir='$srcdir' | |
18835 | INSTALL='$INSTALL' | |
87264276 | 18836 | AWK='$AWK' |
5213506e | 18837 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18838 | _ACEOF |
18839 | ||
5213506e RW |
18840 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18841 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18842 | ac_need_defaults=: |
18843 | while test $# != 0 | |
a4b9e93e | 18844 | do |
1c710c3c | 18845 | case $1 in |
22e05272 | 18846 | --*=?*) |
5213506e RW |
18847 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18848 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18849 | ac_shift=: |
18850 | ;; | |
22e05272 JM |
18851 | --*=) |
18852 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18853 | ac_optarg= | |
18854 | ac_shift=: | |
18855 | ;; | |
5213506e | 18856 | *) |
1c710c3c DJ |
18857 | ac_option=$1 |
18858 | ac_optarg=$2 | |
18859 | ac_shift=shift | |
18860 | ;; | |
1c710c3c DJ |
18861 | esac |
18862 | ||
18863 | case $ac_option in | |
18864 | # Handling of the options. | |
671aa708 | 18865 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18866 | ac_cs_recheck=: ;; |
5213506e RW |
18867 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18868 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18869 | --config | --confi | --conf | --con | --co | --c ) |
18870 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18871 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18872 | debug=: ;; |
18873 | --file | --fil | --fi | --f ) | |
18874 | $ac_shift | |
5213506e RW |
18875 | case $ac_optarg in |
18876 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18877 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18878 | esac |
18879 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18880 | ac_need_defaults=false;; |
5213506e RW |
18881 | --he | --h | --help | --hel | -h ) |
18882 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18883 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18884 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18885 | ac_cs_silent=: ;; | |
18886 | ||
18887 | # This is an error. | |
22e05272 | 18888 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18889 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18890 | |
5213506e RW |
18891 | *) as_fn_append ac_config_targets " $1" |
18892 | ac_need_defaults=false ;; | |
1c710c3c | 18893 | |
0b0dc272 | 18894 | esac |
1c710c3c | 18895 | shift |
0b0dc272 AM |
18896 | done |
18897 | ||
1c710c3c | 18898 | ac_configure_extra_args= |
0b0dc272 | 18899 | |
1c710c3c DJ |
18900 | if $ac_cs_silent; then |
18901 | exec 6>/dev/null | |
18902 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18903 | fi | |
0b0dc272 | 18904 | |
1c710c3c | 18905 | _ACEOF |
5213506e | 18906 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 18907 | if \$ac_cs_recheck; then |
22e05272 | 18908 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
18909 | shift |
18910 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18911 | CONFIG_SHELL='$SHELL' | |
18912 | export CONFIG_SHELL | |
18913 | exec "\$@" | |
1c710c3c DJ |
18914 | fi |
18915 | ||
18916 | _ACEOF | |
5213506e RW |
18917 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18918 | exec 5>>config.log | |
18919 | { | |
18920 | echo | |
18921 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18922 | ## Running $as_me. ## | |
18923 | _ASBOX | |
18924 | $as_echo "$ac_log" | |
18925 | } >&5 | |
1c710c3c | 18926 | |
5213506e RW |
18927 | _ACEOF |
18928 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
18929 | # |
18930 | # INIT-COMMANDS | |
18931 | # | |
18932 | extrasub_build="$extrasub_build" | |
18933 | extrasub_host="$extrasub_host" | |
18934 | extrasub_target="$extrasub_target" | |
18935 | ||
5213506e | 18936 | _ACEOF |
1c710c3c | 18937 | |
5213506e | 18938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 18939 | |
5213506e | 18940 | # Handling of arguments. |
1c710c3c DJ |
18941 | for ac_config_target in $ac_config_targets |
18942 | do | |
5213506e RW |
18943 | case $ac_config_target in |
18944 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18945 | ||
22e05272 | 18946 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
18947 | esac |
18948 | done | |
18949 | ||
5213506e | 18950 | |
1c710c3c DJ |
18951 | # If the user did not use the arguments to specify the items to instantiate, |
18952 | # then the envvar interface is used. Set only those that are not. | |
18953 | # We use the long form for the default assignment because of an extremely | |
18954 | # bizarre bug on SunOS 4.1.3. | |
18955 | if $ac_need_defaults; then | |
18956 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18957 | fi | |
18958 | ||
18959 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 18960 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 18961 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
18962 | # Hook for its removal unless debugging. |
18963 | # Note that there is a small window in which the directory will not be cleaned: | |
18964 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
18965 | $debug || |
18966 | { | |
22e05272 | 18967 | tmp= ac_tmp= |
5213506e | 18968 | trap 'exit_status=$? |
22e05272 JM |
18969 | : "${ac_tmp:=$tmp}" |
18970 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
18971 | ' 0 |
18972 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 18973 | } |
1c710c3c DJ |
18974 | # Create a (secure) tmp directory for tmp files. |
18975 | ||
18976 | { | |
5213506e | 18977 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 18978 | test -d "$tmp" |
1c710c3c DJ |
18979 | } || |
18980 | { | |
5213506e RW |
18981 | tmp=./conf$$-$RANDOM |
18982 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
18983 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18984 | ac_tmp=$tmp | |
5213506e RW |
18985 | |
18986 | # Set up the scripts for CONFIG_FILES section. | |
18987 | # No need to generate them if there are no CONFIG_FILES. | |
18988 | # This happens for instance with `./config.status config.h'. | |
18989 | if test -n "$CONFIG_FILES"; then | |
18990 | ||
18991 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18992 | ac_cs_awk_getline=: | |
18993 | ac_cs_awk_pipe_init= | |
18994 | ac_cs_awk_read_file=' | |
18995 | while ((getline aline < (F[key])) > 0) | |
18996 | print(aline) | |
18997 | close(F[key])' | |
18998 | ac_cs_awk_pipe_fini= | |
18999 | else | |
19000 | ac_cs_awk_getline=false | |
19001 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19002 | ac_cs_awk_read_file=' | |
19003 | print "|#_!!_#|" | |
19004 | print "cat " F[key] " &&" | |
19005 | '$ac_cs_awk_pipe_init | |
19006 | # The final `:' finishes the AND list. | |
19007 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19008 | fi | |
19009 | ac_cr=`echo X | tr X '\015'` | |
19010 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19011 | # But we know of no other shell where ac_cr would be empty at this | |
19012 | # point, so we can use a bashism as a fallback. | |
19013 | if test "x$ac_cr" = x; then | |
19014 | eval ac_cr=\$\'\\r\' | |
19015 | fi | |
19016 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19017 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19018 | ac_cs_awk_cr='\\r' |
5213506e RW |
19019 | else |
19020 | ac_cs_awk_cr=$ac_cr | |
19021 | fi | |
19022 | ||
22e05272 | 19023 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19024 | _ACEOF |
19025 | ||
19026 | # Create commands to substitute file output variables. | |
1c710c3c | 19027 | { |
5213506e | 19028 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19029 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19030 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19031 | echo "_ACAWK" && | |
19032 | echo "_ACEOF" | |
19033 | } >conf$$files.sh && | |
19034 | . ./conf$$files.sh || | |
22e05272 | 19035 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19036 | rm -f conf$$files.sh |
1c710c3c | 19037 | |
5213506e RW |
19038 | { |
19039 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19040 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19041 | echo "_ACEOF" | |
19042 | } >conf$$subs.sh || | |
22e05272 JM |
19043 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19044 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19045 | ac_delim='%!_!# ' |
19046 | for ac_last_try in false false false false false :; do | |
19047 | . ./conf$$subs.sh || | |
22e05272 | 19048 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19049 | |
19050 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19051 | if test $ac_delim_n = $ac_delim_num; then | |
19052 | break | |
19053 | elif $ac_last_try; then | |
22e05272 | 19054 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19055 | else |
19056 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19057 | fi | |
19058 | done | |
19059 | rm -f conf$$subs.sh | |
19060 | ||
19061 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19062 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19063 | _ACEOF |
5213506e RW |
19064 | sed -n ' |
19065 | h | |
19066 | s/^/S["/; s/!.*/"]=/ | |
19067 | p | |
19068 | g | |
19069 | s/^[^!]*!// | |
19070 | :repl | |
19071 | t repl | |
19072 | s/'"$ac_delim"'$// | |
19073 | t delim | |
19074 | :nl | |
19075 | h | |
22e05272 | 19076 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19077 | t more1 |
19078 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19079 | p | |
19080 | n | |
19081 | b repl | |
19082 | :more1 | |
19083 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19084 | p | |
19085 | g | |
19086 | s/.\{148\}// | |
19087 | t nl | |
19088 | :delim | |
19089 | h | |
22e05272 | 19090 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19091 | t more2 |
19092 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19093 | p | |
19094 | b | |
19095 | :more2 | |
19096 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19097 | p | |
19098 | g | |
19099 | s/.\{148\}// | |
19100 | t delim | |
19101 | ' <conf$$subs.awk | sed ' | |
19102 | /^[^""]/{ | |
19103 | N | |
19104 | s/\n// | |
19105 | } | |
19106 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19107 | rm -f conf$$subs.awk | |
19108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19109 | _ACAWK | |
22e05272 | 19110 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19111 | for (key in S) S_is_set[key] = 1 |
19112 | FS = "\a" | |
19113 | \$ac_cs_awk_pipe_init | |
19114 | } | |
19115 | { | |
19116 | line = $ 0 | |
19117 | nfields = split(line, field, "@") | |
19118 | substed = 0 | |
19119 | len = length(field[1]) | |
19120 | for (i = 2; i < nfields; i++) { | |
19121 | key = field[i] | |
19122 | keylen = length(key) | |
19123 | if (S_is_set[key]) { | |
19124 | value = S[key] | |
19125 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19126 | len += length(value) + length(field[++i]) | |
19127 | substed = 1 | |
19128 | } else | |
19129 | len += 1 + keylen | |
19130 | } | |
19131 | if (nfields == 3 && !substed) { | |
19132 | key = field[2] | |
19133 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19134 | \$ac_cs_awk_read_file | |
19135 | next | |
19136 | } | |
19137 | } | |
19138 | print line | |
19139 | } | |
19140 | \$ac_cs_awk_pipe_fini | |
19141 | _ACAWK | |
19142 | _ACEOF | |
19143 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19144 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19145 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19146 | else | |
19147 | cat | |
22e05272 JM |
19148 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19149 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19150 | _ACEOF |
19151 | ||
22e05272 JM |
19152 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19153 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19154 | # trailing colons and then remove the whole line if VPATH becomes empty |
19155 | # (actually we leave an empty line to preserve line numbers). | |
19156 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19157 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19158 | h | |
19159 | s/// | |
19160 | s/^/:/ | |
19161 | s/[ ]*$/:/ | |
19162 | s/:\$(srcdir):/:/g | |
19163 | s/:\${srcdir}:/:/g | |
19164 | s/:@srcdir@:/:/g | |
19165 | s/^:*// | |
5213506e | 19166 | s/:*$// |
22e05272 JM |
19167 | x |
19168 | s/\(=[ ]*\).*/\1/ | |
19169 | G | |
19170 | s/\n// | |
5213506e RW |
19171 | s/^[^=]*=[ ]*$// |
19172 | }' | |
19173 | fi | |
2aeb72e9 | 19174 | |
5213506e RW |
19175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19176 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19177 | |
1c710c3c | 19178 | |
5213506e RW |
19179 | eval set X " :F $CONFIG_FILES " |
19180 | shift | |
19181 | for ac_tag | |
19182 | do | |
19183 | case $ac_tag in | |
19184 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19185 | esac | |
19186 | case $ac_mode$ac_tag in | |
19187 | :[FHL]*:*);; | |
22e05272 | 19188 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19189 | :[FH]-) ac_tag=-:-;; |
19190 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19191 | esac | |
19192 | ac_save_IFS=$IFS | |
19193 | IFS=: | |
19194 | set x $ac_tag | |
19195 | IFS=$ac_save_IFS | |
19196 | shift | |
19197 | ac_file=$1 | |
19198 | shift | |
79c06341 | 19199 | |
5213506e RW |
19200 | case $ac_mode in |
19201 | :L) ac_source=$1;; | |
19202 | :[FH]) | |
19203 | ac_file_inputs= | |
19204 | for ac_f | |
19205 | do | |
19206 | case $ac_f in | |
22e05272 | 19207 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19208 | *) # Look for the file first in the build tree, then in the source tree |
19209 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19210 | # because $ac_f cannot contain `:'. | |
19211 | test -f "$ac_f" || | |
19212 | case $ac_f in | |
19213 | [\\/$]*) false;; | |
19214 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19215 | esac || | |
22e05272 | 19216 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19217 | esac |
19218 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19219 | as_fn_append ac_file_inputs " '$ac_f'" | |
19220 | done | |
1c710c3c | 19221 | |
5213506e RW |
19222 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19223 | # use $as_me), people would be surprised to read: | |
19224 | # /* config.h. Generated by config.status. */ | |
19225 | configure_input='Generated from '` | |
19226 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19227 | `' by configure.' | |
19228 | if test x"$ac_file" != x-; then | |
19229 | configure_input="$ac_file. $configure_input" | |
19230 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19231 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19232 | fi |
5213506e RW |
19233 | # Neutralize special characters interpreted by sed in replacement strings. |
19234 | case $configure_input in #( | |
19235 | *\&* | *\|* | *\\* ) | |
19236 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19237 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19238 | *) ac_sed_conf_input=$configure_input;; | |
19239 | esac | |
11a67599 | 19240 | |
5213506e | 19241 | case $ac_tag in |
22e05272 JM |
19242 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19243 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19244 | esac |
19245 | ;; | |
11a67599 ZW |
19246 | esac |
19247 | ||
5213506e | 19248 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19249 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19250 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19251 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19252 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19253 | $as_echo X"$ac_file" | | |
19254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19255 | s//\1/ | |
19256 | q | |
19257 | } | |
19258 | /^X\(\/\/\)[^/].*/{ | |
19259 | s//\1/ | |
19260 | q | |
19261 | } | |
19262 | /^X\(\/\/\)$/{ | |
19263 | s//\1/ | |
19264 | q | |
19265 | } | |
19266 | /^X\(\/\).*/{ | |
19267 | s//\1/ | |
19268 | q | |
19269 | } | |
19270 | s/.*/./; q'` | |
19271 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19272 | ac_builddir=. |
0b0dc272 | 19273 | |
5213506e RW |
19274 | case "$ac_dir" in |
19275 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19276 | *) | |
19277 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19278 | # A ".." for each directory in $ac_dir_suffix. | |
19279 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19280 | case $ac_top_builddir_sub in | |
19281 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19282 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19283 | esac ;; | |
19284 | esac | |
19285 | ac_abs_top_builddir=$ac_pwd | |
19286 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19287 | # for backward compatibility: | |
19288 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19289 | |
19290 | case $srcdir in | |
5213506e | 19291 | .) # We are building in place. |
1c710c3c | 19292 | ac_srcdir=. |
5213506e RW |
19293 | ac_top_srcdir=$ac_top_builddir_sub |
19294 | ac_abs_top_srcdir=$ac_pwd ;; | |
19295 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19296 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19297 | ac_top_srcdir=$srcdir |
19298 | ac_abs_top_srcdir=$srcdir ;; | |
19299 | *) # Relative name. | |
19300 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19301 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19302 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19303 | esac |
5213506e | 19304 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19305 | |
0b0dc272 | 19306 | |
5213506e RW |
19307 | case $ac_mode in |
19308 | :F) | |
19309 | # | |
19310 | # CONFIG_FILE | |
19311 | # | |
1c710c3c DJ |
19312 | |
19313 | case $INSTALL in | |
19314 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19315 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19316 | esac |
5213506e | 19317 | _ACEOF |
11a67599 | 19318 | |
5213506e RW |
19319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19320 | # If the template does not know about datarootdir, expand it. | |
19321 | # FIXME: This hack should be removed a few years after 2.60. | |
19322 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19323 | ac_sed_dataroot=' | |
19324 | /datarootdir/ { | |
19325 | p | |
19326 | q | |
19327 | } | |
19328 | /@datadir@/p | |
19329 | /@docdir@/p | |
19330 | /@infodir@/p | |
19331 | /@localedir@/p | |
19332 | /@mandir@/p' | |
19333 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19334 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19335 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19337 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19338 | _ACEOF |
5213506e RW |
19339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19340 | ac_datarootdir_hack=' | |
19341 | s&@datadir@&$datadir&g | |
19342 | s&@docdir@&$docdir&g | |
19343 | s&@infodir@&$infodir&g | |
19344 | s&@localedir@&$localedir&g | |
19345 | s&@mandir@&$mandir&g | |
19346 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19347 | esac | |
19348 | _ACEOF | |
19349 | ||
19350 | # Neutralize VPATH when `$srcdir' = `.'. | |
19351 | # Shell code in configure.ac might set extrasub. | |
19352 | # FIXME: do we really want to maintain this feature? | |
19353 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19354 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19355 | $extrasub |
19356 | _ACEOF | |
5213506e | 19357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19358 | :t |
19359 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19360 | s|@configure_input@|$ac_sed_conf_input|;t t |
19361 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19362 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19363 | s&@srcdir@&$ac_srcdir&;t t | |
19364 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19365 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19366 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19367 | s&@builddir@&$ac_builddir&;t t | |
19368 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19369 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19370 | s&@INSTALL@&$ac_INSTALL&;t t | |
19371 | $ac_datarootdir_hack | |
19372 | " | |
19373 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19374 | if $ac_cs_awk_getline; then | |
22e05272 | 19375 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19376 | else |
22e05272 JM |
19377 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19378 | fi \ | |
19379 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19380 | |
19381 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19382 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19383 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19384 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19386 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19387 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19388 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19389 | |
22e05272 | 19390 | rm -f "$ac_tmp/stdin" |
5213506e | 19391 | case $ac_file in |
22e05272 JM |
19392 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19393 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19394 | esac \ |
22e05272 | 19395 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19396 | ;; |
11a67599 | 19397 | |
11a67599 | 19398 | |
79c06341 | 19399 | |
5213506e RW |
19400 | esac |
19401 | ||
3e54529c RW |
19402 | |
19403 | case $ac_file$ac_mode in | |
19404 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19405 | sed "$extrasub_host" | | |
19406 | sed "$extrasub_target" > mf$$ | |
19407 | mv -f mf$$ Makefile ;; | |
19408 | ||
19409 | esac | |
5213506e RW |
19410 | done # for ac_tag |
19411 | ||
19412 | ||
19413 | as_fn_exit 0 | |
1c710c3c | 19414 | _ACEOF |
1c710c3c DJ |
19415 | ac_clean_files=$ac_clean_files_save |
19416 | ||
5213506e | 19417 | test $ac_write_fail = 0 || |
22e05272 | 19418 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19419 | |
1c710c3c DJ |
19420 | |
19421 | # configure is writing to config.log, and then calls config.status. | |
19422 | # config.status does its own redirection, appending to config.log. | |
19423 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19424 | # by configure, so config.status won't be able to write to it; its | |
19425 | # output is simply discarded. So we exec the FD to /dev/null, | |
19426 | # effectively closing config.log, so it can be properly (re)opened and | |
19427 | # appended to by config.status. When coming back to configure, we | |
19428 | # need to make the FD available again. | |
19429 | if test "$no_create" != yes; then | |
19430 | ac_cs_success=: | |
19431 | ac_config_status_args= | |
19432 | test "$silent" = yes && | |
19433 | ac_config_status_args="$ac_config_status_args --quiet" | |
19434 | exec 5>/dev/null | |
19435 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19436 | exec 5>>config.log | |
19437 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19438 | # would make configure fail if this is the last instruction. | |
22e05272 | 19439 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19440 | fi |
19441 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19443 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 19444 | fi |
79c06341 | 19445 |