]>
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 | |
1eee94d3 | 616 | GM2_FOR_TARGET |
b4c522fa | 617 | GDC_FOR_TARGET |
632e2a07 | 618 | GOC_FOR_TARGET |
5213506e | 619 | GFORTRAN_FOR_TARGET |
5213506e RW |
620 | GCC_FOR_TARGET |
621 | CXX_FOR_TARGET | |
622 | CC_FOR_TARGET | |
126f707e L |
623 | RANLIB_PLUGIN_OPTION |
624 | AR_PLUGIN_OPTION | |
1ddd41fd | 625 | PKG_CONFIG_PATH |
5fee5ec3 | 626 | GDCFLAGS |
e7a82751 | 627 | READELF |
e4a9a572 | 628 | OTOOL |
5213506e RW |
629 | OBJDUMP |
630 | OBJCOPY | |
631 | WINDMC | |
632 | WINDRES | |
633 | STRIP | |
634 | RANLIB | |
635 | NM | |
636 | LIPO | |
637 | LD | |
3b5e8ee4 | 638 | DSYMUTIL |
5213506e RW |
639 | DLLTOOL |
640 | AS | |
641 | AR | |
642 | RUNTEST | |
643 | EXPECT | |
644 | MAKEINFO | |
645 | FLEX | |
646 | LEX | |
647 | M4 | |
648 | BISON | |
649 | YACC | |
5213506e RW |
650 | WINDRES_FOR_BUILD |
651 | WINDMC_FOR_BUILD | |
652 | RANLIB_FOR_BUILD | |
653 | NM_FOR_BUILD | |
654 | LD_FOR_BUILD | |
655 | LDFLAGS_FOR_BUILD | |
b4c522fa | 656 | GDC_FOR_BUILD |
632e2a07 | 657 | GOC_FOR_BUILD |
5213506e | 658 | GFORTRAN_FOR_BUILD |
3b5e8ee4 | 659 | DSYMUTIL_FOR_BUILD |
5213506e RW |
660 | DLLTOOL_FOR_BUILD |
661 | CXX_FOR_BUILD | |
662 | CXXFLAGS_FOR_BUILD | |
84401ce5 RP |
663 | CPPFLAGS_FOR_BUILD |
664 | CPP_FOR_BUILD | |
5213506e RW |
665 | CFLAGS_FOR_BUILD |
666 | CC_FOR_BUILD | |
667 | AS_FOR_BUILD | |
668 | AR_FOR_BUILD | |
aae29963 | 669 | target_configdirs |
5213506e | 670 | configdirs |
5213506e | 671 | build_configdirs |
5213506e RW |
672 | INSTALL_GDB_TK |
673 | GDB_TK | |
674 | CONFIGURE_GDB_TK | |
675 | build_tooldir | |
676 | tooldir | |
677 | GCC_SHLIB_SUBDIR | |
678 | RPATH_ENVVAR | |
ffedf511 RW |
679 | target_configargs |
680 | host_configargs | |
681 | build_configargs | |
e12c4094 | 682 | BUILD_CONFIG |
6f57bdf6 | 683 | LDFLAGS_FOR_TARGET |
5213506e RW |
684 | CXXFLAGS_FOR_TARGET |
685 | CFLAGS_FOR_TARGET | |
686 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
687 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 688 | get_gcc_base_ver |
1c01ebf6 | 689 | extra_host_zlib_configure_flags |
d7f09764 | 690 | extra_host_libiberty_configure_flags |
fca38047 | 691 | stage1_languages |
05048fc2 | 692 | host_libs_picflag |
b6cb10af | 693 | PICFLAG |
cdfee50a | 694 | host_shared |
c1fecabe | 695 | gcc_host_pie |
b6cb10af | 696 | host_pie |
45b3824d TS |
697 | extra_linker_plugin_flags |
698 | extra_linker_plugin_configure_flags | |
33ad93b9 | 699 | islinc |
eae1a5d4 | 700 | isllibs |
5213506e | 701 | poststage1_ldflags |
ed2eaa9f | 702 | poststage1_libs |
5213506e | 703 | stage1_ldflags |
0b21f5d3 | 704 | stage1_libs |
0ff2d841 | 705 | extra_isl_gmp_configure_flags |
5213506e RW |
706 | extra_mpc_mpfr_configure_flags |
707 | extra_mpc_gmp_configure_flags | |
708 | extra_mpfr_configure_flags | |
709 | gmpinc | |
710 | gmplibs | |
4a5e71f2 L |
711 | PGO_BUILD_LTO_CFLAGS |
712 | PGO_BUILD_USE_CFLAGS | |
713 | PGO_BUILD_GEN_CFLAGS | |
7ffcf5d6 | 714 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 715 | HAVE_CXX11 |
5213506e | 716 | do_compare |
5fee5ec3 | 717 | GDC |
5213506e RW |
718 | GNATMAKE |
719 | GNATBIND | |
720 | ac_ct_CXX | |
721 | CXXFLAGS | |
722 | CXX | |
723 | OBJEXT | |
724 | EXEEXT | |
725 | ac_ct_CC | |
726 | CPPFLAGS | |
727 | LDFLAGS | |
728 | CFLAGS | |
729 | CC | |
730 | target_subdir | |
731 | host_subdir | |
732 | build_subdir | |
733 | build_libsubdir | |
87264276 PB |
734 | AWK |
735 | SED | |
5213506e RW |
736 | LN_S |
737 | LN | |
738 | INSTALL_DATA | |
739 | INSTALL_SCRIPT | |
740 | INSTALL_PROGRAM | |
741 | target_os | |
742 | target_vendor | |
743 | target_cpu | |
744 | target | |
745 | host_os | |
746 | host_vendor | |
747 | host_cpu | |
748 | host | |
749 | target_noncanonical | |
750 | host_noncanonical | |
751 | build_noncanonical | |
752 | build_os | |
753 | build_vendor | |
754 | build_cpu | |
755 | build | |
756 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
757 | target_alias | |
758 | host_alias | |
759 | build_alias | |
760 | LIBS | |
761 | ECHO_T | |
762 | ECHO_N | |
763 | ECHO_C | |
764 | DEFS | |
765 | mandir | |
766 | localedir | |
767 | libdir | |
768 | psdir | |
769 | pdfdir | |
770 | dvidir | |
771 | htmldir | |
772 | infodir | |
773 | docdir | |
774 | oldincludedir | |
775 | includedir | |
776 | localstatedir | |
777 | sharedstatedir | |
778 | sysconfdir | |
779 | datadir | |
780 | datarootdir | |
781 | libexecdir | |
782 | sbindir | |
783 | bindir | |
784 | program_transform_name | |
785 | prefix | |
786 | exec_prefix | |
787 | PACKAGE_URL | |
788 | PACKAGE_BUGREPORT | |
789 | PACKAGE_STRING | |
790 | PACKAGE_VERSION | |
791 | PACKAGE_TARNAME | |
792 | PACKAGE_NAME | |
793 | PATH_SEPARATOR | |
794 | SHELL' | |
795 | ac_subst_files='serialization_dependencies | |
796 | host_makefile_frag | |
797 | target_makefile_frag | |
798 | alphaieee_frag | |
799 | ospace_frag' | |
800 | ac_user_opts=' | |
801 | enable_option_checking | |
802 | with_build_libsubdir | |
a05c2c75 | 803 | with_system_zlib |
407a2c9a | 804 | with_zstd |
85c64bbe BS |
805 | enable_as_accelerator_for |
806 | enable_offload_targets | |
fe5bfa67 | 807 | enable_offload_defaulted |
5213506e | 808 | enable_gold |
21539e2e | 809 | enable_ld |
24552056 | 810 | enable_gprofng |
78edb32f | 811 | enable_compressed_debug_sections |
c9884636 | 812 | enable_default_compressed_debug_sections_algorithm |
a49d42e8 | 813 | enable_year2038 |
87e6d9dc TB |
814 | enable_libquadmath |
815 | enable_libquadmath_support | |
5213506e | 816 | enable_libada |
1eee94d3 | 817 | enable_libgm2 |
5213506e | 818 | enable_libssp |
1873ec0c | 819 | enable_libstdcxx |
ff3ac0f4 | 820 | enable_bootstrap |
4a5e71f2 | 821 | enable_pgo_build |
5213506e RW |
822 | with_mpc |
823 | with_mpc_include | |
824 | with_mpc_lib | |
5213506e RW |
825 | with_mpfr |
826 | with_mpfr_include | |
827 | with_mpfr_lib | |
5213506e RW |
828 | with_gmp |
829 | with_gmp_include | |
830 | with_gmp_lib | |
5213506e | 831 | with_stage1_libs |
aac9103b | 832 | with_static_standard_libraries |
0b21f5d3 | 833 | with_stage1_ldflags |
5213506e | 834 | with_boot_libs |
ed2eaa9f | 835 | with_boot_ldflags |
33ad93b9 RG |
836 | with_isl |
837 | with_isl_include | |
838 | with_isl_lib | |
839 | enable_isl_version_check | |
d7f09764 | 840 | enable_lto |
45b3824d TS |
841 | enable_linker_plugin_configure_flags |
842 | enable_linker_plugin_flags | |
b6cb10af | 843 | enable_host_pie |
cdfee50a | 844 | enable_host_shared |
5213506e | 845 | enable_stage1_languages |
43c40f3e | 846 | enable_objc_gc |
114bf3f1 MK |
847 | with_target_bdw_gc |
848 | with_target_bdw_gc_include | |
849 | with_target_bdw_gc_lib | |
3c36aa6b | 850 | with_gcc_major_version_only |
5213506e RW |
851 | with_build_sysroot |
852 | with_debug_prefix_map | |
5646b7b9 | 853 | with_build_config |
beeda1d9 | 854 | enable_vtable_verify |
5213506e RW |
855 | enable_serial_configure |
856 | with_build_time_tools | |
857 | enable_maintainer_mode | |
858 | enable_stage1_checking | |
859 | enable_werror | |
5213506e RW |
860 | ' |
861 | ac_precious_vars='build_alias | |
862 | host_alias | |
863 | target_alias | |
864 | CC | |
865 | CFLAGS | |
866 | LDFLAGS | |
867 | LIBS | |
868 | CPPFLAGS | |
869 | CXX | |
870 | CXXFLAGS | |
871 | CCC | |
ffedf511 RW |
872 | build_configargs |
873 | host_configargs | |
874 | target_configargs | |
5213506e RW |
875 | AR |
876 | AS | |
877 | DLLTOOL | |
3b5e8ee4 | 878 | DSYMUTIL |
5213506e RW |
879 | LD |
880 | LIPO | |
881 | NM | |
882 | RANLIB | |
883 | STRIP | |
884 | WINDRES | |
885 | WINDMC | |
886 | OBJCOPY | |
887 | OBJDUMP | |
e4a9a572 | 888 | OTOOL |
e7a82751 | 889 | READELF |
5213506e RW |
890 | CC_FOR_TARGET |
891 | CXX_FOR_TARGET | |
892 | GCC_FOR_TARGET | |
5213506e | 893 | GFORTRAN_FOR_TARGET |
632e2a07 | 894 | GOC_FOR_TARGET |
b4c522fa | 895 | GDC_FOR_TARGET |
1eee94d3 | 896 | GM2_FOR_TARGET |
5213506e RW |
897 | AR_FOR_TARGET |
898 | AS_FOR_TARGET | |
899 | DLLTOOL_FOR_TARGET | |
3b5e8ee4 | 900 | DSYMUTIL_FOR_TARGET |
5213506e RW |
901 | LD_FOR_TARGET |
902 | LIPO_FOR_TARGET | |
903 | NM_FOR_TARGET | |
9bccfdf5 | 904 | OBJCOPY_FOR_TARGET |
5213506e | 905 | OBJDUMP_FOR_TARGET |
e4a9a572 | 906 | OTOOL_FOR_TARGET |
5213506e | 907 | RANLIB_FOR_TARGET |
e7a82751 | 908 | READELF_FOR_TARGET |
5213506e RW |
909 | STRIP_FOR_TARGET |
910 | WINDRES_FOR_TARGET | |
911 | WINDMC_FOR_TARGET' | |
912 | ||
671aa708 NN |
913 | |
914 | # Initialize some variables set by options. | |
1c710c3c DJ |
915 | ac_init_help= |
916 | ac_init_version=false | |
5213506e RW |
917 | ac_unrecognized_opts= |
918 | ac_unrecognized_sep= | |
671aa708 NN |
919 | # The variables have the same names as the options, with |
920 | # dashes changed to underlines. | |
1c710c3c | 921 | cache_file=/dev/null |
671aa708 | 922 | exec_prefix=NONE |
671aa708 | 923 | no_create= |
671aa708 NN |
924 | no_recursion= |
925 | prefix=NONE | |
926 | program_prefix=NONE | |
927 | program_suffix=NONE | |
928 | program_transform_name=s,x,x, | |
929 | silent= | |
930 | site= | |
931 | srcdir= | |
671aa708 NN |
932 | verbose= |
933 | x_includes=NONE | |
934 | x_libraries=NONE | |
1c710c3c DJ |
935 | |
936 | # Installation directory options. | |
937 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
938 | # and all the variables that are supposed to be based on exec_prefix | |
939 | # by default will actually change. | |
940 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 941 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
942 | bindir='${exec_prefix}/bin' |
943 | sbindir='${exec_prefix}/sbin' | |
944 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
945 | datarootdir='${prefix}/share' |
946 | datadir='${datarootdir}' | |
671aa708 NN |
947 | sysconfdir='${prefix}/etc' |
948 | sharedstatedir='${prefix}/com' | |
949 | localstatedir='${prefix}/var' | |
671aa708 NN |
950 | includedir='${prefix}/include' |
951 | oldincludedir='/usr/include' | |
5213506e RW |
952 | docdir='${datarootdir}/doc/${PACKAGE}' |
953 | infodir='${datarootdir}/info' | |
954 | htmldir='${docdir}' | |
955 | dvidir='${docdir}' | |
956 | pdfdir='${docdir}' | |
957 | psdir='${docdir}' | |
958 | libdir='${exec_prefix}/lib' | |
959 | localedir='${datarootdir}/locale' | |
960 | mandir='${datarootdir}/man' | |
79c06341 | 961 | |
671aa708 | 962 | ac_prev= |
5213506e | 963 | ac_dashdash= |
671aa708 NN |
964 | for ac_option |
965 | do | |
671aa708 NN |
966 | # If the previous option needs an argument, assign it. |
967 | if test -n "$ac_prev"; then | |
5213506e | 968 | eval $ac_prev=\$ac_option |
671aa708 NN |
969 | ac_prev= |
970 | continue | |
971 | fi | |
79c06341 | 972 | |
5213506e | 973 | case $ac_option in |
22e05272 JM |
974 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
975 | *=) ac_optarg= ;; | |
976 | *) ac_optarg=yes ;; | |
5213506e | 977 | esac |
671aa708 NN |
978 | |
979 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
980 | ||
5213506e RW |
981 | case $ac_dashdash$ac_option in |
982 | --) | |
983 | ac_dashdash=yes ;; | |
671aa708 NN |
984 | |
985 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
986 | ac_prev=bindir ;; | |
987 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 988 | bindir=$ac_optarg ;; |
671aa708 NN |
989 | |
990 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 991 | ac_prev=build_alias ;; |
671aa708 | 992 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 993 | build_alias=$ac_optarg ;; |
671aa708 NN |
994 | |
995 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
996 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
997 | ac_prev=cache_file ;; | |
998 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
999 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
1000 | cache_file=$ac_optarg ;; |
1001 | ||
1002 | --config-cache | -C) | |
1003 | cache_file=config.cache ;; | |
671aa708 | 1004 | |
5213506e | 1005 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 1006 | ac_prev=datadir ;; |
5213506e | 1007 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 1008 | datadir=$ac_optarg ;; |
671aa708 | 1009 | |
5213506e RW |
1010 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1011 | | --dataroo | --dataro | --datar) | |
1012 | ac_prev=datarootdir ;; | |
1013 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1014 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1015 | datarootdir=$ac_optarg ;; | |
1016 | ||
671aa708 | 1017 | -disable-* | --disable-*) |
5213506e | 1018 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 1019 | # Reject names that are not valid shell variable names. |
5213506e | 1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1021 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1022 | ac_useropt_orig=$ac_useropt |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=no ;; | |
1032 | ||
1033 | -docdir | --docdir | --docdi | --doc | --do) | |
1034 | ac_prev=docdir ;; | |
1035 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1036 | docdir=$ac_optarg ;; | |
1037 | ||
1038 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1039 | ac_prev=dvidir ;; | |
1040 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1041 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1042 | |
1043 | -enable-* | --enable-*) | |
5213506e | 1044 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1045 | # Reject names that are not valid shell variable names. |
5213506e | 1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1047 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1048 | ac_useropt_orig=$ac_useropt |
1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1050 | case $ac_user_opts in | |
1051 | *" | |
1052 | "enable_$ac_useropt" | |
1053 | "*) ;; | |
1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1055 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1056 | esac |
5213506e | 1057 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1058 | |
1059 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1060 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1061 | | --exec | --exe | --ex) | |
1062 | ac_prev=exec_prefix ;; | |
1063 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1064 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1065 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1066 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1067 | |
1068 | -gas | --gas | --ga | --g) | |
1069 | # Obsolete; use --with-gas. | |
1070 | with_gas=yes ;; | |
1071 | ||
1c710c3c DJ |
1072 | -help | --help | --hel | --he | -h) |
1073 | ac_init_help=long ;; | |
1074 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1075 | ac_init_help=recursive ;; | |
1076 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1077 | ac_init_help=short ;; | |
671aa708 NN |
1078 | |
1079 | -host | --host | --hos | --ho) | |
1c710c3c | 1080 | ac_prev=host_alias ;; |
671aa708 | 1081 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1082 | host_alias=$ac_optarg ;; |
671aa708 | 1083 | |
5213506e RW |
1084 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1085 | ac_prev=htmldir ;; | |
1086 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1087 | | --ht=*) | |
1088 | htmldir=$ac_optarg ;; | |
1089 | ||
671aa708 NN |
1090 | -includedir | --includedir | --includedi | --included | --include \ |
1091 | | --includ | --inclu | --incl | --inc) | |
1092 | ac_prev=includedir ;; | |
1093 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1094 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1095 | includedir=$ac_optarg ;; |
671aa708 NN |
1096 | |
1097 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1098 | ac_prev=infodir ;; | |
1099 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1100 | infodir=$ac_optarg ;; |
671aa708 NN |
1101 | |
1102 | -libdir | --libdir | --libdi | --libd) | |
1103 | ac_prev=libdir ;; | |
1104 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1105 | libdir=$ac_optarg ;; |
671aa708 NN |
1106 | |
1107 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1108 | | --libexe | --libex | --libe) | |
1109 | ac_prev=libexecdir ;; | |
1110 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1111 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1112 | libexecdir=$ac_optarg ;; |
671aa708 | 1113 | |
5213506e RW |
1114 | -localedir | --localedir | --localedi | --localed | --locale) |
1115 | ac_prev=localedir ;; | |
1116 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1117 | localedir=$ac_optarg ;; | |
1118 | ||
671aa708 | 1119 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1120 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1121 | ac_prev=localstatedir ;; |
1122 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1123 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1124 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1125 | |
1126 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1127 | ac_prev=mandir ;; | |
1128 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1129 | mandir=$ac_optarg ;; |
671aa708 NN |
1130 | |
1131 | -nfp | --nfp | --nf) | |
1132 | # Obsolete; use --without-fp. | |
1133 | with_fp=no ;; | |
1134 | ||
1135 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1136 | | --no-cr | --no-c | -n) |
671aa708 NN |
1137 | no_create=yes ;; |
1138 | ||
1139 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1140 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1141 | no_recursion=yes ;; | |
1142 | ||
1143 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1144 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1145 | | --oldin | --oldi | --old | --ol | --o) | |
1146 | ac_prev=oldincludedir ;; | |
1147 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1148 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1149 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1150 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1151 | |
1152 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1153 | ac_prev=prefix ;; | |
1154 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1155 | prefix=$ac_optarg ;; |
671aa708 NN |
1156 | |
1157 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1158 | | --program-pre | --program-pr | --program-p) | |
1159 | ac_prev=program_prefix ;; | |
1160 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1161 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1162 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1163 | |
1164 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1165 | | --program-suf | --program-su | --program-s) | |
1166 | ac_prev=program_suffix ;; | |
1167 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1168 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1169 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1170 | |
1171 | -program-transform-name | --program-transform-name \ | |
1172 | | --program-transform-nam | --program-transform-na \ | |
1173 | | --program-transform-n | --program-transform- \ | |
1174 | | --program-transform | --program-transfor \ | |
1175 | | --program-transfo | --program-transf \ | |
1176 | | --program-trans | --program-tran \ | |
1177 | | --progr-tra | --program-tr | --program-t) | |
1178 | ac_prev=program_transform_name ;; | |
1179 | -program-transform-name=* | --program-transform-name=* \ | |
1180 | | --program-transform-nam=* | --program-transform-na=* \ | |
1181 | | --program-transform-n=* | --program-transform-=* \ | |
1182 | | --program-transform=* | --program-transfor=* \ | |
1183 | | --program-transfo=* | --program-transf=* \ | |
1184 | | --program-trans=* | --program-tran=* \ | |
1185 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1186 | program_transform_name=$ac_optarg ;; |
671aa708 | 1187 | |
5213506e RW |
1188 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1189 | ac_prev=pdfdir ;; | |
1190 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1191 | pdfdir=$ac_optarg ;; | |
1192 | ||
1193 | -psdir | --psdir | --psdi | --psd | --ps) | |
1194 | ac_prev=psdir ;; | |
1195 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1196 | psdir=$ac_optarg ;; | |
1197 | ||
671aa708 NN |
1198 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1199 | | -silent | --silent | --silen | --sile | --sil) | |
1200 | silent=yes ;; | |
1201 | ||
1202 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1203 | ac_prev=sbindir ;; | |
1204 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1205 | | --sbi=* | --sb=*) | |
1c710c3c | 1206 | sbindir=$ac_optarg ;; |
671aa708 NN |
1207 | |
1208 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1209 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1210 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1211 | | --sha | --sh) | |
1212 | ac_prev=sharedstatedir ;; | |
1213 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1214 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1215 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1216 | | --sha=* | --sh=*) | |
1c710c3c | 1217 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1218 | |
1219 | -site | --site | --sit) | |
1220 | ac_prev=site ;; | |
1221 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1222 | site=$ac_optarg ;; |
671aa708 NN |
1223 | |
1224 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1225 | ac_prev=srcdir ;; | |
1226 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1227 | srcdir=$ac_optarg ;; |
671aa708 NN |
1228 | |
1229 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1230 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1231 | ac_prev=sysconfdir ;; | |
1232 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1233 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1234 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1235 | |
1236 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1237 | ac_prev=target_alias ;; |
671aa708 | 1238 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1239 | target_alias=$ac_optarg ;; |
671aa708 NN |
1240 | |
1241 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1242 | verbose=yes ;; | |
1243 | ||
1c710c3c DJ |
1244 | -version | --version | --versio | --versi | --vers | -V) |
1245 | ac_init_version=: ;; | |
671aa708 NN |
1246 | |
1247 | -with-* | --with-*) | |
5213506e | 1248 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1249 | # Reject names that are not valid shell variable names. |
5213506e | 1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1251 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1252 | ac_useropt_orig=$ac_useropt |
1253 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1254 | case $ac_user_opts in | |
1255 | *" | |
1256 | "with_$ac_useropt" | |
1257 | "*) ;; | |
1258 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1259 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1260 | esac |
5213506e | 1261 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1262 | |
1263 | -without-* | --without-*) | |
5213506e | 1264 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1265 | # Reject names that are not valid shell variable names. |
5213506e | 1266 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1267 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1268 | ac_useropt_orig=$ac_useropt |
1269 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1270 | case $ac_user_opts in | |
1271 | *" | |
1272 | "with_$ac_useropt" | |
1273 | "*) ;; | |
1274 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1275 | ac_unrecognized_sep=', ';; | |
1276 | esac | |
1277 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1278 | |
1279 | --x) | |
1280 | # Obsolete; use --with-x. | |
1281 | with_x=yes ;; | |
1282 | ||
1283 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1284 | | --x-incl | --x-inc | --x-in | --x-i) | |
1285 | ac_prev=x_includes ;; | |
1286 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1287 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1288 | x_includes=$ac_optarg ;; |
671aa708 NN |
1289 | |
1290 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1291 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1292 | ac_prev=x_libraries ;; | |
1293 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1294 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1295 | x_libraries=$ac_optarg ;; |
671aa708 | 1296 | |
22e05272 JM |
1297 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1298 | Try \`$0 --help' for more information" | |
671aa708 NN |
1299 | ;; |
1300 | ||
1c710c3c DJ |
1301 | *=*) |
1302 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1303 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1304 | case $ac_envvar in #( |
1305 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1306 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1307 | esac |
1308 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1309 | export $ac_envvar ;; |
1310 | ||
671aa708 | 1311 | *) |
1c710c3c | 1312 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1313 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1314 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1315 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1316 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1317 | ;; |
1318 | ||
1319 | esac | |
1320 | done | |
1321 | ||
1322 | if test -n "$ac_prev"; then | |
1c710c3c | 1323 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1324 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1325 | fi |
af71363e | 1326 | |
5213506e RW |
1327 | if test -n "$ac_unrecognized_opts"; then |
1328 | case $enable_option_checking in | |
1329 | no) ;; | |
22e05272 | 1330 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1331 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1332 | esac |
5213506e | 1333 | fi |
2aeb72e9 | 1334 | |
5213506e RW |
1335 | # Check all directory arguments for consistency. |
1336 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1337 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1338 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1339 | libdir localedir mandir | |
2aeb72e9 | 1340 | do |
5213506e RW |
1341 | eval ac_val=\$$ac_var |
1342 | # Remove trailing slashes. | |
1343 | case $ac_val in | |
1344 | */ ) | |
1345 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1346 | eval $ac_var=\$ac_val;; | |
1347 | esac | |
1348 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1349 | case $ac_val in |
5213506e RW |
1350 | [\\/$]* | ?:[\\/]* ) continue;; |
1351 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1352 | esac |
22e05272 | 1353 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1354 | done |
1355 | ||
1c710c3c DJ |
1356 | # There might be people who depend on the old broken behavior: `$host' |
1357 | # used to hold the argument of --host etc. | |
1358 | # FIXME: To remove some day. | |
1359 | build=$build_alias | |
1360 | host=$host_alias | |
1361 | target=$target_alias | |
0b0dc272 | 1362 | |
1c710c3c DJ |
1363 | # FIXME: To remove some day. |
1364 | if test "x$host_alias" != x; then | |
1365 | if test "x$build_alias" = x; then | |
1366 | cross_compiling=maybe | |
1c710c3c DJ |
1367 | elif test "x$build_alias" != "x$host_alias"; then |
1368 | cross_compiling=yes | |
1369 | fi | |
1370 | fi | |
1371 | ||
1372 | ac_tool_prefix= | |
1373 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1374 | ||
1375 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1376 | |
671aa708 | 1377 | |
5213506e RW |
1378 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1379 | ac_ls_di=`ls -di .` && | |
1380 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1381 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1382 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1383 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1384 | |
1385 | ||
671aa708 NN |
1386 | # Find the source files, if location was not specified. |
1387 | if test -z "$srcdir"; then | |
1388 | ac_srcdir_defaulted=yes | |
5213506e RW |
1389 | # Try the directory containing this script, then the parent directory. |
1390 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1391 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1392 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1393 | X"$as_myself" : 'X\(//\)$' \| \ | |
1394 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1395 | $as_echo X"$as_myself" | | |
1396 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1397 | s//\1/ | |
1398 | q | |
1399 | } | |
1400 | /^X\(\/\/\)[^/].*/{ | |
1401 | s//\1/ | |
1402 | q | |
1403 | } | |
1404 | /^X\(\/\/\)$/{ | |
1405 | s//\1/ | |
1406 | q | |
1407 | } | |
1408 | /^X\(\/\).*/{ | |
1409 | s//\1/ | |
1410 | q | |
1411 | } | |
1412 | s/.*/./; q'` | |
671aa708 | 1413 | srcdir=$ac_confdir |
5213506e | 1414 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1415 | srcdir=.. |
1416 | fi | |
1417 | else | |
1418 | ac_srcdir_defaulted=no | |
1419 | fi | |
5213506e RW |
1420 | if test ! -r "$srcdir/$ac_unique_file"; then |
1421 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1422 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1423 | fi |
1424 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1425 | ac_abs_confdir=`( | |
22e05272 | 1426 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1427 | pwd)` |
1428 | # When building in place, set srcdir=. | |
1429 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1430 | srcdir=. | |
1431 | fi | |
1432 | # Remove unnecessary trailing slashes from srcdir. | |
1433 | # Double slashes in file names in object file debugging info | |
1434 | # mess up M-x gdb in Emacs. | |
1435 | case $srcdir in | |
1436 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1437 | esac | |
87841584 AM |
1438 | case $srcdir in |
1439 | *" "*) | |
22e05272 | 1440 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1441 | ;; |
1442 | esac | |
ac9e6043 RW |
1443 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1444 | ||
5213506e RW |
1445 | for ac_var in $ac_precious_vars; do |
1446 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1447 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1448 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1450 | done | |
1c710c3c DJ |
1451 | |
1452 | # | |
1453 | # Report the --help message. | |
1454 | # | |
1455 | if test "$ac_init_help" = "long"; then | |
1456 | # Omit some internal or obsolete options to make the list less imposing. | |
1457 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1458 | cat <<_ACEOF | |
1459 | \`configure' configures this package to adapt to many kinds of systems. | |
1460 | ||
1461 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1462 | ||
1463 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1464 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1465 | ||
1466 | Defaults for the options are specified in brackets. | |
1467 | ||
1468 | Configuration: | |
1469 | -h, --help display this help and exit | |
1470 | --help=short display options specific to this package | |
1471 | --help=recursive display the short help of all the included packages | |
1472 | -V, --version display version information and exit | |
22e05272 | 1473 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1474 | --cache-file=FILE cache test results in FILE [disabled] |
1475 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1476 | -n, --no-create do not create output files | |
1477 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1478 | ||
1c710c3c DJ |
1479 | Installation directories: |
1480 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1481 | [$ac_default_prefix] |
1c710c3c | 1482 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1483 | [PREFIX] |
1c710c3c DJ |
1484 | |
1485 | By default, \`make install' will install all the files in | |
1486 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1487 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1488 | for instance \`--prefix=\$HOME'. | |
1489 | ||
1490 | For better control, use the options below. | |
1491 | ||
1492 | Fine tuning of the installation directories: | |
5213506e RW |
1493 | --bindir=DIR user executables [EPREFIX/bin] |
1494 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1495 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1496 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1497 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1498 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1499 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1500 | --includedir=DIR C header files [PREFIX/include] | |
1501 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1502 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1503 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1504 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1505 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1506 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1507 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1508 | --htmldir=DIR html documentation [DOCDIR] | |
1509 | --dvidir=DIR dvi documentation [DOCDIR] | |
1510 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1511 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1512 | _ACEOF |
1513 | ||
1514 | cat <<\_ACEOF | |
1515 | ||
1516 | Program names: | |
1517 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1518 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1519 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1520 | ||
1521 | System types: | |
1522 | --build=BUILD configure for building on BUILD [guessed] | |
1523 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1524 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1525 | _ACEOF | |
1526 | fi | |
1527 | ||
1528 | if test -n "$ac_init_help"; then | |
1529 | ||
1530 | cat <<\_ACEOF | |
1531 | ||
1532 | Optional Features: | |
5213506e | 1533 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1534 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1535 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1536 | --enable-as-accelerator-for=ARG |
1537 | build as offload target compiler. Specify offload | |
1538 | host triple by ARG | |
1539 | --enable-offload-targets=LIST | |
1540 | enable offloading to devices from comma-separated | |
1541 | LIST of TARGET[=DIR]. Use optional path to find | |
1542 | offload target compiler during the build | |
fe5bfa67 TB |
1543 | --enable-offload-defaulted |
1544 | If enabled, configured but not installed offload compilers and | |
1545 | libgomp plugins are silently ignored. Useful for distribution | |
1546 | compilers where those are in separate optional packages. | |
1547 | ||
21539e2e | 1548 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1549 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
24552056 | 1550 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
324402a0 | 1551 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1552 | Enable compressed debug sections for gas, gold or ld |
1553 | by default | |
c9884636 ML |
1554 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1555 | Default compression algorithm for | |
1556 | --enable-compressed-debug-sections. | |
a49d42e8 | 1557 | --enable-year2038 enable support for timestamps past the year 2038 |
87e6d9dc TB |
1558 | --disable-libquadmath do not build libquadmath directory |
1559 | --disable-libquadmath-support | |
1560 | disable libquadmath support for Fortran | |
30b74385 | 1561 | --enable-libada build libada directory |
1eee94d3 | 1562 | --enable-libgm2 build libgm2 directory |
30b74385 | 1563 | --enable-libssp build libssp directory |
1873ec0c | 1564 | --disable-libstdcxx do not build libstdc++-v3 directory |
ff3ac0f4 | 1565 | --enable-bootstrap enable bootstrapping [yes if native build] |
4a5e71f2 L |
1566 | --enable-pgo-build[=lto] |
1567 | enable the PGO build | |
33ad93b9 | 1568 | --disable-isl-version-check |
560d18d3 | 1569 | disable check for isl version |
d7f09764 | 1570 | --enable-lto enable link time optimization support |
45b3824d TS |
1571 | --enable-linker-plugin-configure-flags=FLAGS |
1572 | additional flags for configuring linker plugins | |
1573 | [none] | |
1574 | --enable-linker-plugin-flags=FLAGS | |
1575 | additional flags for configuring and building linker | |
1576 | plugins [none] | |
b6cb10af | 1577 | --enable-host-pie build position independent host executables |
cdfee50a | 1578 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1579 | --enable-stage1-languages[=all] |
1580 | choose additional languages to build during stage1. | |
1581 | Mostly useful for compiler development | |
43c40f3e RO |
1582 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1583 | Objective-C runtime | |
318a4e6d | 1584 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1585 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1586 | force sequential configuration of sub-packages for |
1587 | the host, target or build machine, or all | |
1588 | sub-packages | |
1589 | --enable-maintainer-mode | |
1590 | enable make rules and dependencies not useful (and | |
1591 | sometimes confusing) to the casual installer | |
1592 | --enable-stage1-checking[=all] | |
1593 | choose additional checking for stage1 of the | |
1594 | compiler | |
1c710c3c DJ |
1595 | --enable-werror enable -Werror in bootstrap stage2 and later |
1596 | ||
1597 | Optional Packages: | |
1598 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1599 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1600 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1601 | --with-system-zlib use installed libz |
407a2c9a FS |
1602 | --with-zstd Support zstd compressed debug sections |
1603 | (default=auto) | |
33e39b66 AS |
1604 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1605 | Equivalent to --with-mpc-include=PATH/include plus | |
1606 | --with-mpc-lib=PATH/lib | |
1607 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1608 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 | 1609 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
33e39b66 AS |
1610 | Equivalent to --with-mpfr-include=PATH/include plus |
1611 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1612 | --with-mpfr-include=PATH |
30b74385 RW |
1613 | specify directory for installed MPFR include files |
1614 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
33e39b66 AS |
1615 | --with-gmp=PATH specify prefix directory for the installed GMP |
1616 | package. Equivalent to | |
1617 | --with-gmp-include=PATH/include plus | |
1618 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1619 | --with-gmp-include=PATH specify directory for installed GMP include files |
1620 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1621 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1622 | --with-static-standard-libraries |
1623 | use -static-libstdc++ and -static-libgcc | |
1624 | (default=auto) | |
33e39b66 AS |
1625 | --with-stage1-ldflags=FLAGS |
1626 | linker flags for stage1 | |
33e39b66 AS |
1627 | --with-boot-libs=LIBS libraries for stage2 and later |
1628 | --with-boot-ldflags=FLAGS | |
1629 | linker flags for stage2 and later | |
e357a5e0 | 1630 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1631 | package. Equivalent to |
33ad93b9 RG |
1632 | --with-isl-include=PATH/include plus |
1633 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1634 | --with-isl-include=PATH Specify directory for installed isl include files |
1635 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1636 | --with-target-bdw-gc=PATHLIST |
1637 | specify prefix directory for installed bdw-gc | |
1638 | package. Equivalent to | |
1639 | --with-target-bdw-gc-include=PATH/include plus | |
1640 | --with-target-bdw-gc-lib=PATH/lib | |
1641 | --with-target-bdw-gc-include=PATHLIST | |
1642 | specify directories for installed bdw-gc include | |
1643 | files | |
1644 | --with-target-bdw-gc-lib=PATHLIST | |
1645 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1646 | --with-gcc-major-version-only |
1647 | use only GCC major number in filesystem paths | |
30b74385 | 1648 | --with-build-sysroot=SYSROOT |
1c710c3c | 1649 | use sysroot as the system root during the build |
c8aea42c | 1650 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1651 | map A to B, C to D ... in debug information |
1652 | --with-build-config='NAME NAME2...' | |
1653 | use config/NAME.mk build configuration | |
30b74385 | 1654 | --with-build-time-tools=PATH |
1c710c3c | 1655 | use given path to find target tools during the build |
1c710c3c DJ |
1656 | |
1657 | Some influential environment variables: | |
1658 | CC C compiler command | |
1659 | CFLAGS C compiler flags | |
1660 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1661 | nonstandard directory <lib dir> | |
5213506e | 1662 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1663 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1664 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1665 | CXX C++ compiler command |
1666 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1667 | build_configargs |
1668 | additional configure arguments for build directories | |
1669 | host_configargs | |
1670 | additional configure arguments for host directories | |
1671 | target_configargs | |
1672 | additional configure arguments for target directories | |
278a7a38 AO |
1673 | AR AR for the host |
1674 | AS AS for the host | |
1675 | DLLTOOL DLLTOOL for the host | |
3b5e8ee4 | 1676 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1677 | LD LD for the host |
1678 | LIPO LIPO for the host | |
1679 | NM NM for the host | |
1680 | RANLIB RANLIB for the host | |
1681 | STRIP STRIP for the host | |
1682 | WINDRES WINDRES for the host | |
901119ae | 1683 | WINDMC WINDMC for the host |
278a7a38 AO |
1684 | OBJCOPY OBJCOPY for the host |
1685 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1686 | OTOOL OTOOL for the host |
e7a82751 | 1687 | READELF READELF for the host |
278a7a38 AO |
1688 | CC_FOR_TARGET |
1689 | CC for the target | |
1690 | CXX_FOR_TARGET | |
1691 | CXX for the target | |
1692 | GCC_FOR_TARGET | |
1693 | GCC for the target | |
278a7a38 AO |
1694 | GFORTRAN_FOR_TARGET |
1695 | GFORTRAN for the target | |
632e2a07 ILT |
1696 | GOC_FOR_TARGET |
1697 | GOC for the target | |
b4c522fa IB |
1698 | GDC_FOR_TARGET |
1699 | GDC for the target | |
1eee94d3 GM |
1700 | GM2_FOR_TARGET |
1701 | GM2 for the target | |
278a7a38 AO |
1702 | AR_FOR_TARGET |
1703 | AR for the target | |
1704 | AS_FOR_TARGET | |
1705 | AS for the target | |
1706 | DLLTOOL_FOR_TARGET | |
1707 | DLLTOOL for the target | |
3b5e8ee4 IS |
1708 | DSYMUTIL_FOR_TARGET |
1709 | DSYMUTIL for the target | |
278a7a38 AO |
1710 | LD_FOR_TARGET |
1711 | LD for the target | |
1712 | LIPO_FOR_TARGET | |
1713 | LIPO for the target | |
1714 | NM_FOR_TARGET | |
1715 | NM for the target | |
9bccfdf5 AP |
1716 | OBJCOPY_FOR_TARGET |
1717 | OBJCOPY for the target | |
278a7a38 AO |
1718 | OBJDUMP_FOR_TARGET |
1719 | OBJDUMP for the target | |
e4a9a572 IS |
1720 | OTOOL_FOR_TARGET |
1721 | OTOOL for the target | |
278a7a38 AO |
1722 | RANLIB_FOR_TARGET |
1723 | RANLIB for the target | |
e7a82751 RM |
1724 | READELF_FOR_TARGET |
1725 | READELF for the target | |
278a7a38 AO |
1726 | STRIP_FOR_TARGET |
1727 | STRIP for the target | |
1728 | WINDRES_FOR_TARGET | |
1729 | WINDRES for the target | |
901119ae KT |
1730 | WINDMC_FOR_TARGET |
1731 | WINDMC for the target | |
1c710c3c DJ |
1732 | |
1733 | Use these variables to override the choices made by `configure' or to help | |
1734 | it to find libraries and programs with nonstandard names/locations. | |
1735 | ||
5213506e | 1736 | Report bugs to the package provider. |
1c710c3c | 1737 | _ACEOF |
5213506e | 1738 | ac_status=$? |
1c710c3c DJ |
1739 | fi |
1740 | ||
1741 | if test "$ac_init_help" = "recursive"; then | |
1742 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1743 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1744 | test -d "$ac_dir" || |
1745 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1746 | continue | |
1c710c3c DJ |
1747 | ac_builddir=. |
1748 | ||
5213506e RW |
1749 | case "$ac_dir" in |
1750 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1751 | *) | |
1752 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1753 | # A ".." for each directory in $ac_dir_suffix. | |
1754 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1755 | case $ac_top_builddir_sub in | |
1756 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1757 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1758 | esac ;; | |
1759 | esac | |
1760 | ac_abs_top_builddir=$ac_pwd | |
1761 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1762 | # for backward compatibility: | |
1763 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1764 | |
1765 | case $srcdir in | |
5213506e | 1766 | .) # We are building in place. |
1c710c3c | 1767 | ac_srcdir=. |
5213506e RW |
1768 | ac_top_srcdir=$ac_top_builddir_sub |
1769 | ac_abs_top_srcdir=$ac_pwd ;; | |
1770 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1771 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1772 | ac_top_srcdir=$srcdir |
1773 | ac_abs_top_srcdir=$srcdir ;; | |
1774 | *) # Relative name. | |
1775 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1776 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1777 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1778 | esac |
5213506e RW |
1779 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1780 | ||
1781 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1782 | # Check for guested configure. | |
1783 | if test -f "$ac_srcdir/configure.gnu"; then | |
1784 | echo && | |
1785 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1786 | elif test -f "$ac_srcdir/configure"; then | |
1787 | echo && | |
1788 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1789 | else |
5213506e RW |
1790 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1791 | fi || ac_status=$? | |
1792 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1793 | done |
1794 | fi | |
1795 | ||
5213506e | 1796 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1797 | if $ac_init_version; then |
1798 | cat <<\_ACEOF | |
5213506e | 1799 | configure |
22e05272 | 1800 | generated by GNU Autoconf 2.69 |
1c710c3c | 1801 | |
22e05272 | 1802 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1803 | This configure script is free software; the Free Software Foundation |
1804 | gives unlimited permission to copy, distribute and modify it. | |
1805 | _ACEOF | |
5213506e | 1806 | exit |
0b0dc272 | 1807 | fi |
5213506e RW |
1808 | |
1809 | ## ------------------------ ## | |
1810 | ## Autoconf initialization. ## | |
1811 | ## ------------------------ ## | |
1812 | ||
1813 | # ac_fn_c_try_compile LINENO | |
1814 | # -------------------------- | |
1815 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1816 | ac_fn_c_try_compile () | |
1817 | { | |
1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1819 | rm -f conftest.$ac_objext | |
1820 | if { { ac_try="$ac_compile" | |
1821 | case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_compile") 2>conftest.err | |
1828 | ac_status=$? | |
1829 | if test -s conftest.err; then | |
1830 | grep -v '^ *+' conftest.err >conftest.er1 | |
1831 | cat conftest.er1 >&5 | |
1832 | mv -f conftest.er1 conftest.err | |
1833 | fi | |
1834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1835 | test $ac_status = 0; } && { | |
1836 | test -z "$ac_c_werror_flag" || | |
1837 | test ! -s conftest.err | |
1838 | } && test -s conftest.$ac_objext; then : | |
1839 | ac_retval=0 | |
1840 | else | |
1841 | $as_echo "$as_me: failed program was:" >&5 | |
1842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1843 | ||
1844 | ac_retval=1 | |
1845 | fi | |
22e05272 JM |
1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1847 | as_fn_set_status $ac_retval | |
5213506e RW |
1848 | |
1849 | } # ac_fn_c_try_compile | |
1850 | ||
1851 | # ac_fn_cxx_try_compile LINENO | |
1852 | # ---------------------------- | |
1853 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1854 | ac_fn_cxx_try_compile () | |
1855 | { | |
1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1857 | rm -f conftest.$ac_objext | |
1858 | if { { ac_try="$ac_compile" | |
1859 | case "(($ac_try" in | |
1860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1861 | *) ac_try_echo=$ac_try;; | |
1862 | esac | |
1863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1864 | $as_echo "$ac_try_echo"; } >&5 | |
1865 | (eval "$ac_compile") 2>conftest.err | |
1866 | ac_status=$? | |
1867 | if test -s conftest.err; then | |
1868 | grep -v '^ *+' conftest.err >conftest.er1 | |
1869 | cat conftest.er1 >&5 | |
1870 | mv -f conftest.er1 conftest.err | |
1871 | fi | |
1872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1873 | test $ac_status = 0; } && { | |
1874 | test -z "$ac_cxx_werror_flag" || | |
1875 | test ! -s conftest.err | |
1876 | } && test -s conftest.$ac_objext; then : | |
1877 | ac_retval=0 | |
1878 | else | |
1879 | $as_echo "$as_me: failed program was:" >&5 | |
1880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1881 | ||
1882 | ac_retval=1 | |
1883 | fi | |
22e05272 JM |
1884 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1885 | as_fn_set_status $ac_retval | |
5213506e RW |
1886 | |
1887 | } # ac_fn_cxx_try_compile | |
1888 | ||
0b21f5d3 EB |
1889 | # ac_fn_cxx_try_link LINENO |
1890 | # ------------------------- | |
1891 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1892 | ac_fn_cxx_try_link () | |
1893 | { | |
1894 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1896 | if { { ac_try="$ac_link" | |
1897 | case "(($ac_try" in | |
1898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1899 | *) ac_try_echo=$ac_try;; | |
1900 | esac | |
1901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1902 | $as_echo "$ac_try_echo"; } >&5 | |
1903 | (eval "$ac_link") 2>conftest.err | |
1904 | ac_status=$? | |
1905 | if test -s conftest.err; then | |
1906 | grep -v '^ *+' conftest.err >conftest.er1 | |
1907 | cat conftest.er1 >&5 | |
1908 | mv -f conftest.er1 conftest.err | |
1909 | fi | |
1910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1911 | test $ac_status = 0; } && { | |
1912 | test -z "$ac_cxx_werror_flag" || | |
1913 | test ! -s conftest.err | |
1914 | } && test -s conftest$ac_exeext && { | |
1915 | test "$cross_compiling" = yes || | |
22e05272 | 1916 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1917 | }; then : |
1918 | ac_retval=0 | |
1919 | else | |
1920 | $as_echo "$as_me: failed program was:" >&5 | |
1921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1922 | ||
1923 | ac_retval=1 | |
1924 | fi | |
1925 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1926 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1927 | # interfere with the next link command; also delete a directory that is | |
1928 | # left behind by Apple's compiler. We do this before executing the actions. | |
1929 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1930 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1931 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1932 | |
1933 | } # ac_fn_cxx_try_link | |
1934 | ||
5213506e RW |
1935 | # ac_fn_c_try_link LINENO |
1936 | # ----------------------- | |
1937 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1938 | ac_fn_c_try_link () | |
1939 | { | |
1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1942 | if { { ac_try="$ac_link" | |
1943 | case "(($ac_try" in | |
1944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1945 | *) ac_try_echo=$ac_try;; | |
1946 | esac | |
1947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1948 | $as_echo "$ac_try_echo"; } >&5 | |
1949 | (eval "$ac_link") 2>conftest.err | |
1950 | ac_status=$? | |
1951 | if test -s conftest.err; then | |
1952 | grep -v '^ *+' conftest.err >conftest.er1 | |
1953 | cat conftest.er1 >&5 | |
1954 | mv -f conftest.er1 conftest.err | |
1955 | fi | |
1956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1957 | test $ac_status = 0; } && { | |
1958 | test -z "$ac_c_werror_flag" || | |
1959 | test ! -s conftest.err | |
1960 | } && test -s conftest$ac_exeext && { | |
1961 | test "$cross_compiling" = yes || | |
22e05272 | 1962 | test -x conftest$ac_exeext |
5213506e RW |
1963 | }; then : |
1964 | ac_retval=0 | |
1965 | else | |
1966 | $as_echo "$as_me: failed program was:" >&5 | |
1967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1968 | ||
1969 | ac_retval=1 | |
1970 | fi | |
1971 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1972 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1973 | # interfere with the next link command; also delete a directory that is | |
1974 | # left behind by Apple's compiler. We do this before executing the actions. | |
1975 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1976 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1977 | as_fn_set_status $ac_retval | |
5213506e RW |
1978 | |
1979 | } # ac_fn_c_try_link | |
1980 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1981 | This file contains any messages produced by compilers while |
1982 | running configure, to aid debugging if configure makes a mistake. | |
1983 | ||
1984 | It was created by $as_me, which was | |
22e05272 | 1985 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1986 | |
1987 | $ $0 $@ | |
1988 | ||
1989 | _ACEOF | |
5213506e | 1990 | exec 5>>config.log |
1c710c3c DJ |
1991 | { |
1992 | cat <<_ASUNAME | |
1993 | ## --------- ## | |
1994 | ## Platform. ## | |
1995 | ## --------- ## | |
1996 | ||
1997 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1998 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1999 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2000 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2001 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2002 | ||
2003 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2004 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2005 | ||
2006 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2007 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2008 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 2009 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
2010 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2011 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2012 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2013 | ||
2014 | _ASUNAME | |
2015 | ||
2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2017 | for as_dir in $PATH | |
2018 | do | |
2019 | IFS=$as_save_IFS | |
2020 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2021 | $as_echo "PATH: $as_dir" |
2022 | done | |
2023 | IFS=$as_save_IFS | |
1c710c3c DJ |
2024 | |
2025 | } >&5 | |
2026 | ||
2027 | cat >&5 <<_ACEOF | |
2028 | ||
2029 | ||
2030 | ## ----------- ## | |
2031 | ## Core tests. ## | |
2032 | ## ----------- ## | |
2033 | ||
2034 | _ACEOF | |
2035 | ||
2036 | ||
2037 | # Keep a trace of the command line. | |
2038 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2039 | # Strip out --silent because we don't want to record it for future runs. | |
2040 | # Also quote any args containing shell meta-characters. | |
2041 | # Make two passes to allow for proper duplicate-argument suppression. | |
2042 | ac_configure_args= | |
2043 | ac_configure_args0= | |
2044 | ac_configure_args1= | |
1c710c3c DJ |
2045 | ac_must_keep_next=false |
2046 | for ac_pass in 1 2 | |
2047 | do | |
2048 | for ac_arg | |
2049 | do | |
2050 | case $ac_arg in | |
2051 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2053 | | -silent | --silent | --silen | --sile | --sil) | |
2054 | continue ;; | |
5213506e RW |
2055 | *\'*) |
2056 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2057 | esac |
2058 | case $ac_pass in | |
5213506e | 2059 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2060 | 2) |
5213506e | 2061 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2062 | if test $ac_must_keep_next = true; then |
2063 | ac_must_keep_next=false # Got value, back to normal. | |
2064 | else | |
2065 | case $ac_arg in | |
2066 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2067 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2068 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2069 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2070 | case "$ac_configure_args0 " in | |
2071 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2072 | esac | |
2073 | ;; | |
2074 | -* ) ac_must_keep_next=true ;; | |
2075 | esac | |
2076 | fi | |
5213506e | 2077 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2078 | ;; |
2079 | esac | |
2080 | done | |
2081 | done | |
5213506e RW |
2082 | { ac_configure_args0=; unset ac_configure_args0;} |
2083 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2084 | |
2085 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2086 | # config.log. We remove comments because anyway the quotes in there | |
2087 | # would cause problems or look ugly. | |
5213506e RW |
2088 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2089 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2090 | trap 'exit_status=$? |
2091 | # Save into config.log some information that might help in debugging. | |
2092 | { | |
2093 | echo | |
2094 | ||
22e05272 | 2095 | $as_echo "## ---------------- ## |
1c710c3c | 2096 | ## Cache variables. ## |
22e05272 | 2097 | ## ---------------- ##" |
1c710c3c DJ |
2098 | echo |
2099 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2100 | ( |
2101 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2102 | eval ac_val=\$$ac_var | |
2103 | case $ac_val in #( | |
2104 | *${as_nl}*) | |
2105 | case $ac_var in #( | |
2106 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2107 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2108 | esac | |
2109 | case $ac_var in #( | |
2110 | _ | IFS | as_nl) ;; #( | |
2111 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2112 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2113 | esac ;; | |
2114 | esac | |
2115 | done | |
1c710c3c | 2116 | (set) 2>&1 | |
5213506e RW |
2117 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2118 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2119 | sed -n \ |
5213506e RW |
2120 | "s/'\''/'\''\\\\'\'''\''/g; |
2121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2122 | ;; #( | |
1c710c3c | 2123 | *) |
5213506e | 2124 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2125 | ;; |
5213506e RW |
2126 | esac | |
2127 | sort | |
2128 | ) | |
1c710c3c DJ |
2129 | echo |
2130 | ||
22e05272 | 2131 | $as_echo "## ----------------- ## |
1c710c3c | 2132 | ## Output variables. ## |
22e05272 | 2133 | ## ----------------- ##" |
1c710c3c DJ |
2134 | echo |
2135 | for ac_var in $ac_subst_vars | |
2136 | do | |
5213506e RW |
2137 | eval ac_val=\$$ac_var |
2138 | case $ac_val in | |
2139 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2140 | esac | |
2141 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2142 | done | sort |
2143 | echo | |
2144 | ||
2145 | if test -n "$ac_subst_files"; then | |
22e05272 | 2146 | $as_echo "## ------------------- ## |
5213506e | 2147 | ## File substitutions. ## |
22e05272 | 2148 | ## ------------------- ##" |
1c710c3c DJ |
2149 | echo |
2150 | for ac_var in $ac_subst_files | |
2151 | do | |
5213506e RW |
2152 | eval ac_val=\$$ac_var |
2153 | case $ac_val in | |
2154 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2155 | esac | |
2156 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2157 | done | sort |
2158 | echo | |
2159 | fi | |
2160 | ||
2161 | if test -s confdefs.h; then | |
22e05272 | 2162 | $as_echo "## ----------- ## |
1c710c3c | 2163 | ## confdefs.h. ## |
22e05272 | 2164 | ## ----------- ##" |
1c710c3c | 2165 | echo |
5213506e | 2166 | cat confdefs.h |
1c710c3c DJ |
2167 | echo |
2168 | fi | |
2169 | test "$ac_signal" != 0 && | |
5213506e RW |
2170 | $as_echo "$as_me: caught signal $ac_signal" |
2171 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2172 | } >&5 |
5213506e RW |
2173 | rm -f core *.core core.conftest.* && |
2174 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2175 | exit $exit_status |
5213506e | 2176 | ' 0 |
1c710c3c | 2177 | for ac_signal in 1 2 13 15; do |
5213506e | 2178 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2179 | done |
2180 | ac_signal=0 | |
2181 | ||
2182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2183 | rm -f -r conftest* confdefs.h |
2184 | ||
2185 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2186 | |
2187 | # Predefined preprocessor variables. | |
2188 | ||
2189 | cat >>confdefs.h <<_ACEOF | |
2190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2191 | _ACEOF | |
2192 | ||
1c710c3c DJ |
2193 | cat >>confdefs.h <<_ACEOF |
2194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2195 | _ACEOF | |
2196 | ||
1c710c3c DJ |
2197 | cat >>confdefs.h <<_ACEOF |
2198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2199 | _ACEOF | |
0b0dc272 | 2200 | |
1c710c3c DJ |
2201 | cat >>confdefs.h <<_ACEOF |
2202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2203 | _ACEOF | |
2204 | ||
1c710c3c DJ |
2205 | cat >>confdefs.h <<_ACEOF |
2206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2207 | _ACEOF | |
2208 | ||
5213506e RW |
2209 | cat >>confdefs.h <<_ACEOF |
2210 | #define PACKAGE_URL "$PACKAGE_URL" | |
2211 | _ACEOF | |
2212 | ||
1c710c3c DJ |
2213 | |
2214 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2215 | # Prefer an explicitly selected file to automatically selected ones. |
2216 | ac_site_file1=NONE | |
2217 | ac_site_file2=NONE | |
2218 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2219 | # We do not want a PATH search for config.site. |
2220 | case $CONFIG_SITE in #(( | |
2221 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2222 | */*) ac_site_file1=$CONFIG_SITE;; | |
2223 | *) ac_site_file1=./$CONFIG_SITE;; | |
2224 | esac | |
5213506e RW |
2225 | elif test "x$prefix" != xNONE; then |
2226 | ac_site_file1=$prefix/share/config.site | |
2227 | ac_site_file2=$prefix/etc/config.site | |
2228 | else | |
2229 | ac_site_file1=$ac_default_prefix/share/config.site | |
2230 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2231 | fi |
5213506e RW |
2232 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2233 | do | |
2234 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2235 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2237 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2238 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2239 | . "$ac_site_file" \ |
2240 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2242 | as_fn_error $? "failed to load site script $ac_site_file | |
2243 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2244 | fi |
2245 | done | |
2246 | ||
2247 | if test -r "$cache_file"; then | |
22e05272 JM |
2248 | # Some versions of bash will fail to source /dev/null (special files |
2249 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2250 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2252 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2253 | case $cache_file in |
5213506e RW |
2254 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2255 | *) . "./$cache_file";; | |
1c710c3c DJ |
2256 | esac |
2257 | fi | |
671aa708 | 2258 | else |
5213506e RW |
2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2260 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2261 | >$cache_file |
2262 | fi | |
2263 | ||
2264 | # Check that the precious variables saved in the cache have kept the same | |
2265 | # value. | |
2266 | ac_cache_corrupted=false | |
5213506e | 2267 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2269 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2270 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2271 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2272 | case $ac_old_set,$ac_new_set in |
2273 | set,) | |
5213506e RW |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2275 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2276 | ac_cache_corrupted=: ;; |
2277 | ,set) | |
5213506e RW |
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2279 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2280 | ac_cache_corrupted=: ;; |
2281 | ,);; | |
2282 | *) | |
2283 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2284 | # differences in whitespace do not lead to failure. |
2285 | ac_old_val_w=`echo x $ac_old_val` | |
2286 | ac_new_val_w=`echo x $ac_new_val` | |
2287 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2289 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2290 | ac_cache_corrupted=: | |
2291 | else | |
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2293 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2294 | eval $ac_var=\$ac_old_val | |
2295 | fi | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2297 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2299 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2300 | fi;; |
2301 | esac | |
2302 | # Pass precious variables to config.status. | |
2303 | if test "$ac_new_set" = set; then | |
2304 | case $ac_new_val in | |
5213506e | 2305 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2306 | *) ac_arg=$ac_var=$ac_new_val ;; |
2307 | esac | |
2308 | case " $ac_configure_args " in | |
2309 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2310 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2311 | esac |
2312 | fi | |
2313 | done | |
2314 | if $ac_cache_corrupted; then | |
5213506e RW |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2316 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2318 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2319 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2320 | fi |
5213506e RW |
2321 | ## -------------------- ## |
2322 | ## Main body of script. ## | |
2323 | ## -------------------- ## | |
671aa708 | 2324 | |
2aeb72e9 DD |
2325 | ac_ext=c |
2326 | ac_cpp='$CPP $CPPFLAGS' | |
2327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2330 | ||
1c710c3c DJ |
2331 | |
2332 | ||
2333 | ||
1c710c3c DJ |
2334 | |
2335 | ||
0115d4a3 | 2336 | |
1c710c3c | 2337 | |
ad33ff57 RW |
2338 | progname=$0 |
2339 | # if PWD already has a value, it is probably wrong. | |
2340 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2341 | ||
2342 | # Export original configure arguments for use by sub-configures. | |
2343 | # Quote arguments with shell meta charatcers. | |
2344 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2345 | set -- "$progname" "$@" | |
2346 | for ac_arg | |
2347 | do | |
2348 | case "$ac_arg" in | |
2349 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2350 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2351 | # if the argument is of the form -foo=baz, quote the baz part only | |
2352 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2353 | *) ;; | |
2354 | esac | |
2355 | # Add the quoted argument to the list. | |
2356 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2357 | done | |
2358 | if test "$silent" = yes; then | |
2359 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2360 | fi | |
2361 | # Remove the initial space we just introduced and, as these will be | |
2362 | # expanded by make, quote '$'. | |
2363 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2364 | ||
1c710c3c DJ |
2365 | |
2366 | # Find the build, host, and target systems. | |
671aa708 | 2367 | ac_aux_dir= |
5213506e | 2368 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2369 | if test -f "$ac_dir/install-sh"; then |
2370 | ac_aux_dir=$ac_dir | |
2371 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2372 | break | |
2373 | elif test -f "$ac_dir/install.sh"; then | |
2374 | ac_aux_dir=$ac_dir | |
2375 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2376 | break | |
2377 | elif test -f "$ac_dir/shtool"; then | |
2378 | ac_aux_dir=$ac_dir | |
2379 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2380 | break | |
2381 | fi | |
671aa708 NN |
2382 | done |
2383 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2384 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2385 | fi |
5213506e RW |
2386 | |
2387 | # These three variables are undocumented and unsupported, | |
2388 | # and are intended to be withdrawn in a future Autoconf release. | |
2389 | # They can cause serious problems if a builder's source tree is in a directory | |
2390 | # whose full name contains unusual characters. | |
2391 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2392 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2393 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2394 | ||
671aa708 | 2395 | |
1c710c3c | 2396 | # Make sure we can run config.sub. |
5213506e | 2397 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2398 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2399 | |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2401 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2402 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2403 | $as_echo_n "(cached) " >&6 |
2404 | else | |
2405 | ac_build_alias=$build_alias | |
2406 | test "x$ac_build_alias" = x && | |
2407 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2408 | test "x$ac_build_alias" = x && | |
22e05272 | 2409 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2410 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2411 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2412 | |
2413 | fi | |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2415 | $as_echo "$ac_cv_build" >&6; } | |
2416 | case $ac_cv_build in | |
2417 | *-*-*) ;; | |
22e05272 | 2418 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2419 | esac |
1c710c3c | 2420 | build=$ac_cv_build |
5213506e RW |
2421 | ac_save_IFS=$IFS; IFS='-' |
2422 | set x $ac_cv_build | |
2423 | shift | |
2424 | build_cpu=$1 | |
2425 | build_vendor=$2 | |
2426 | shift; shift | |
2427 | # Remember, the first character of IFS is used to create $*, | |
2428 | # except with old shells: | |
2429 | build_os=$* | |
2430 | IFS=$ac_save_IFS | |
2431 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2432 | |
671aa708 | 2433 | |
1c710c3c DJ |
2434 | case ${build_alias} in |
2435 | "") build_noncanonical=${build} ;; | |
2436 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2437 | esac |
2438 | ||
2439 | ||
af71363e | 2440 | |
1c710c3c DJ |
2441 | case ${host_alias} in |
2442 | "") host_noncanonical=${build_noncanonical} ;; | |
2443 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2444 | esac |
2445 | ||
af71363e | 2446 | |
1c710c3c DJ |
2447 | |
2448 | case ${target_alias} in | |
2449 | "") target_noncanonical=${host_noncanonical} ;; | |
2450 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2451 | esac |
2452 | ||
af71363e | 2453 | |
1c710c3c DJ |
2454 | |
2455 | ||
2456 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2457 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2458 | NONENONEs,x,x, && | |
1c710c3c | 2459 | program_transform_name=s,y,y, |
af71363e | 2460 | |
5213506e RW |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2462 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2463 | if ${ac_cv_host+:} false; then : |
5213506e | 2464 | $as_echo_n "(cached) " >&6 |
af71363e | 2465 | else |
5213506e RW |
2466 | if test "x$host_alias" = x; then |
2467 | ac_cv_host=$ac_cv_build | |
2468 | else | |
2469 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2470 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2471 | fi |
1c710c3c | 2472 | |
af71363e | 2473 | fi |
5213506e RW |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2475 | $as_echo "$ac_cv_host" >&6; } | |
2476 | case $ac_cv_host in | |
2477 | *-*-*) ;; | |
22e05272 | 2478 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2479 | esac |
1c710c3c | 2480 | host=$ac_cv_host |
5213506e RW |
2481 | ac_save_IFS=$IFS; IFS='-' |
2482 | set x $ac_cv_host | |
2483 | shift | |
2484 | host_cpu=$1 | |
2485 | host_vendor=$2 | |
2486 | shift; shift | |
2487 | # Remember, the first character of IFS is used to create $*, | |
2488 | # except with old shells: | |
2489 | host_os=$* | |
2490 | IFS=$ac_save_IFS | |
2491 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2492 | |
2493 | ||
5213506e RW |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2495 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2496 | if ${ac_cv_target+:} false; then : |
5213506e | 2497 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2498 | else |
5213506e RW |
2499 | if test "x$target_alias" = x; then |
2500 | ac_cv_target=$ac_cv_host | |
2501 | else | |
2502 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2503 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2504 | fi |
1c710c3c DJ |
2505 | |
2506 | fi | |
5213506e RW |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2508 | $as_echo "$ac_cv_target" >&6; } | |
2509 | case $ac_cv_target in | |
2510 | *-*-*) ;; | |
22e05272 | 2511 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2512 | esac |
1c710c3c | 2513 | target=$ac_cv_target |
5213506e RW |
2514 | ac_save_IFS=$IFS; IFS='-' |
2515 | set x $ac_cv_target | |
2516 | shift | |
2517 | target_cpu=$1 | |
2518 | target_vendor=$2 | |
2519 | shift; shift | |
2520 | # Remember, the first character of IFS is used to create $*, | |
2521 | # except with old shells: | |
2522 | target_os=$* | |
2523 | IFS=$ac_save_IFS | |
2524 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2525 | |
2526 | ||
2527 | # The aliases save the names the user supplied, while $host etc. | |
2528 | # will get canonicalized. | |
2529 | test -n "$target_alias" && | |
2530 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2531 | NONENONEs,x,x, && | |
2532 | program_prefix=${target_alias}- | |
5213506e | 2533 | |
671aa708 | 2534 | test "$program_prefix" != NONE && |
5213506e | 2535 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2536 | # Use a double $ so make ignores it. |
2537 | test "$program_suffix" != NONE && | |
5213506e RW |
2538 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2539 | # Double any \ or $. | |
1c710c3c | 2540 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2541 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2542 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2543 | |
671aa708 NN |
2544 | |
2545 | ||
775956d0 NN |
2546 | # Get 'install' or 'install-sh' and its variants. |
2547 | # Find a good install program. We prefer a C program (faster), | |
2548 | # so one script is as good as another. But avoid the broken or | |
2549 | # incompatible versions: | |
2550 | # SysV /etc/install, /usr/sbin/install | |
2551 | # SunOS /usr/etc/install | |
2552 | # IRIX /sbin/install | |
2553 | # AIX /bin/install | |
1c710c3c | 2554 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2555 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2556 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2557 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2558 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2559 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2560 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2562 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2563 | if test -z "$INSTALL"; then |
22e05272 | 2564 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2565 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2566 | else |
2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2568 | for as_dir in $PATH | |
2569 | do | |
2570 | IFS=$as_save_IFS | |
2571 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2572 | # Account for people who put trailing slashes in PATH elements. |
2573 | case $as_dir/ in #(( | |
2574 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2575 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2576 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2577 | /usr/ucb/* ) ;; |
2578 | *) | |
2579 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2580 | # Don't use installbsd from OSF since it installs stuff as root | |
2581 | # by default. | |
2582 | for ac_prog in ginstall scoinst install; do | |
2583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2584 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2585 | if test $ac_prog = install && |
1c710c3c | 2586 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2587 | # AIX install. It has an incompatible calling convention. |
2588 | : | |
1c710c3c DJ |
2589 | elif test $ac_prog = install && |
2590 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2591 | # program-specific install script used by HP pwplus--don't use. | |
2592 | : | |
775956d0 | 2593 | else |
38d24731 RW |
2594 | rm -rf conftest.one conftest.two conftest.dir |
2595 | echo one > conftest.one | |
2596 | echo two > conftest.two | |
2597 | mkdir conftest.dir | |
2598 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2599 | test -s conftest.one && test -s conftest.two && | |
2600 | test -s conftest.dir/conftest.one && | |
2601 | test -s conftest.dir/conftest.two | |
2602 | then | |
2603 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2604 | break 3 | |
2605 | fi | |
775956d0 NN |
2606 | fi |
2607 | fi | |
2608 | done | |
1c710c3c DJ |
2609 | done |
2610 | ;; | |
2611 | esac | |
5213506e RW |
2612 | |
2613 | done | |
2614 | IFS=$as_save_IFS | |
1c710c3c | 2615 | |
38d24731 | 2616 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2617 | |
2618 | fi | |
2619 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2620 | INSTALL=$ac_cv_path_install |
775956d0 | 2621 | else |
38d24731 RW |
2622 | # As a last resort, use the slow shell script. Don't cache a |
2623 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2624 | # break other packages using the cache if that directory is |
38d24731 | 2625 | # removed, or if the value is a relative name. |
1c710c3c | 2626 | INSTALL=$ac_install_sh |
775956d0 NN |
2627 | fi |
2628 | fi | |
5213506e RW |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2630 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2631 | |
2632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2633 | # It thinks the first close brace ends the variable substitution. | |
2634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2635 | ||
1c710c3c | 2636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2637 | |
2638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2639 | ||
5213506e RW |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2641 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2642 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2643 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2644 | else |
2645 | rm -f conftestdata_t | |
2646 | echo >conftestdata_f | |
2647 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2648 | then | |
2649 | acx_cv_prog_LN=ln | |
2650 | else | |
2651 | acx_cv_prog_LN=no | |
2652 | fi | |
2653 | rm -f conftestdata_f conftestdata_t | |
2654 | ||
2655 | fi | |
2656 | if test $acx_cv_prog_LN = no; then | |
2657 | LN="cp" | |
5213506e RW |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2659 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2660 | else |
2661 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2663 | $as_echo "yes" >&6; } | |
ad6717df PB |
2664 | fi |
2665 | ||
5213506e RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2667 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2668 | LN_S=$as_ln_s |
2669 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2671 | $as_echo "yes" >&6; } | |
fb0103e5 | 2672 | else |
5213506e RW |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2674 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2675 | fi |
2676 | ||
87264276 PB |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2678 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2679 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2680 | $as_echo_n "(cached) " >&6 |
2681 | else | |
2682 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2683 | for ac_i in 1 2 3 4 5 6 7; do | |
2684 | ac_script="$ac_script$as_nl$ac_script" | |
2685 | done | |
2686 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2687 | { ac_script=; unset ac_script;} | |
2688 | if test -z "$SED"; then | |
2689 | ac_path_SED_found=false | |
2690 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2692 | for as_dir in $PATH | |
2693 | do | |
2694 | IFS=$as_save_IFS | |
2695 | test -z "$as_dir" && as_dir=. | |
2696 | for ac_prog in sed gsed; do | |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2698 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2699 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2700 | # Check for GNU ac_path_SED and select it if it is found. |
2701 | # Check for GNU $ac_path_SED | |
2702 | case `"$ac_path_SED" --version 2>&1` in | |
2703 | *GNU*) | |
2704 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2705 | *) | |
2706 | ac_count=0 | |
2707 | $as_echo_n 0123456789 >"conftest.in" | |
2708 | while : | |
2709 | do | |
2710 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2711 | mv "conftest.tmp" "conftest.in" | |
2712 | cp "conftest.in" "conftest.nl" | |
2713 | $as_echo '' >> "conftest.nl" | |
2714 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2715 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2716 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2717 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2718 | # Best one so far, save it but keep looking for a better one | |
2719 | ac_cv_path_SED="$ac_path_SED" | |
2720 | ac_path_SED_max=$ac_count | |
2721 | fi | |
2722 | # 10*(2^10) chars as input seems more than enough | |
2723 | test $ac_count -gt 10 && break | |
2724 | done | |
2725 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2726 | esac | |
2727 | ||
2728 | $ac_path_SED_found && break 3 | |
2729 | done | |
2730 | done | |
2731 | done | |
2732 | IFS=$as_save_IFS | |
2733 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2734 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2735 | fi |
2736 | else | |
2737 | ac_cv_path_SED=$SED | |
2738 | fi | |
2739 | ||
2740 | fi | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2742 | $as_echo "$ac_cv_path_SED" >&6; } | |
2743 | SED="$ac_cv_path_SED" | |
2744 | rm -f conftest.sed | |
2745 | ||
2746 | for ac_prog in gawk mawk nawk awk | |
2747 | do | |
2748 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2749 | set dummy $ac_prog; ac_word=$2 | |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2751 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2752 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2753 | $as_echo_n "(cached) " >&6 |
2754 | else | |
2755 | if test -n "$AWK"; then | |
2756 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2757 | else | |
2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2759 | for as_dir in $PATH | |
2760 | do | |
2761 | IFS=$as_save_IFS | |
2762 | test -z "$as_dir" && as_dir=. | |
2763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2765 | ac_cv_prog_AWK="$ac_prog" |
2766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2767 | break 2 | |
2768 | fi | |
2769 | done | |
2770 | done | |
2771 | IFS=$as_save_IFS | |
2772 | ||
2773 | fi | |
2774 | fi | |
2775 | AWK=$ac_cv_prog_AWK | |
2776 | if test -n "$AWK"; then | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2778 | $as_echo "$AWK" >&6; } | |
2779 | else | |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2781 | $as_echo "no" >&6; } | |
2782 | fi | |
2783 | ||
2784 | ||
2785 | test -n "$AWK" && break | |
2786 | done | |
2787 | ||
775956d0 | 2788 | |
ee6a22df L |
2789 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2790 | ||
2791 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2792 | # a relative path. | |
2793 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2794 | INSTALL="${srcpwd}/install-sh -c" | |
2795 | fi | |
2796 | ||
671aa708 NN |
2797 | # Set srcdir to "." if that's what it is. |
2798 | # This is important for multilib support. | |
2799 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2800 | if test "${pwd}" = "${srcpwd}" ; then |
2801 | srcdir=. | |
79c06341 JL |
2802 | fi |
2803 | ||
671aa708 | 2804 | topsrcdir=$srcpwd |
5d4a5ee6 | 2805 | |
671aa708 | 2806 | extra_host_args= |
afabd8e6 | 2807 | |
671aa708 NN |
2808 | ### To add a new directory to the tree, first choose whether it is a target |
2809 | ### or a host dependent tool. Then put it into the appropriate list | |
2810 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2811 | |
1c710c3c | 2812 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2813 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2814 | |
1c710c3c DJ |
2815 | # Dependency sorting is only needed when *configuration* must be done in |
2816 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2817 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2818 | |
671aa708 NN |
2819 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2820 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2821 | |
23f6b2f9 PB |
2822 | # these library is used by various programs built for the build |
2823 | # environment | |
2824 | # | |
929315a9 | 2825 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2826 | |
2827 | # these tools are built for the build environment | |
85bfb75e | 2828 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2829 | |
671aa708 | 2830 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2831 | #f |
725fb359 | 2832 | host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust " |
671aa708 | 2833 | |
671aa708 NN |
2834 | # these tools are built for the host environment |
2835 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2836 | # know that we are building the simulator. | |
2837 | # binutils, gas and ld appear in that order because it makes sense to run | |
2838 | # "make check" in that particular order. | |
38e3d868 | 2839 | # If --enable-gold is used, "gold" may replace "ld". |
1eee94d3 | 2840 | 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 gm2tools gotools c++tools" |
671aa708 | 2841 | |
671aa708 NN |
2842 | # these libraries are built for the target environment, and are built after |
2843 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2844 | # Note that libiberty is not a target library. |
291f172e | 2845 | target_libraries="target-libgcc \ |
eff02e4f | 2846 | target-libbacktrace \ |
671aa708 NN |
2847 | target-libgloss \ |
2848 | target-newlib \ | |
6d3b5aea | 2849 | target-libgomp \ |
48310492 | 2850 | target-libatomic \ |
0a35513e | 2851 | target-libitm \ |
cb543528 | 2852 | target-libstdc++-v3 \ |
f35db108 | 2853 | target-libsanitizer \ |
2077db1b | 2854 | target-libvtv \ |
77008252 | 2855 | target-libssp \ |
1ec601bf | 2856 | target-libquadmath \ |
6de9cd9a | 2857 | target-libgfortran \ |
012447ea | 2858 | target-libffi \ |
d9cdb878 | 2859 | target-libobjc \ |
632e2a07 | 2860 | target-libada \ |
1eee94d3 | 2861 | target-libgm2 \ |
b4c522fa | 2862 | target-libgo \ |
725fb359 | 2863 | target-libgrust \ |
bb50312e IB |
2864 | target-libphobos \ |
2865 | target-zlib" | |
671aa708 | 2866 | |
4dbda6f0 NN |
2867 | # these tools are built using the target libraries, and are intended to |
2868 | # run only in the target environment | |
671aa708 | 2869 | # |
4dbda6f0 | 2870 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2871 | # list belongs in this list. |
671aa708 | 2872 | # |
85bfb75e | 2873 | target_tools="target-rda" |
79c06341 | 2874 | |
671aa708 | 2875 | ################################################################################ |
79c06341 | 2876 | |
671aa708 NN |
2877 | ## All tools belong in one of the four categories, and are assigned above |
2878 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2879 | ## is important because configure will choke if they ever get through. | |
2880 | ## ${configdirs} is directories we build using the host tools. | |
2881 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2882 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2883 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2884 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2885 | |
ac9e6043 RW |
2886 | |
2887 | ||
671aa708 | 2888 | ################################################################################ |
79c06341 | 2889 | |
671aa708 | 2890 | srcname="gnu development package" |
79c06341 | 2891 | |
671aa708 NN |
2892 | # This gets set non-empty for some net releases of packages. |
2893 | appdirs="" | |
79c06341 | 2894 | |
671aa708 NN |
2895 | # Define is_cross_compiler to save on calls to 'test'. |
2896 | is_cross_compiler= | |
2897 | if test x"${host}" = x"${target}" ; then | |
2898 | is_cross_compiler=no | |
79c06341 | 2899 | else |
671aa708 | 2900 | is_cross_compiler=yes |
1c710c3c | 2901 | fi |
79c06341 | 2902 | |
b4acb5ef | 2903 | # Find the build and target subdir names. |
8b87bb96 | 2904 | |
2e9e6f68 DJ |
2905 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2906 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2907 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2908 | # However, they still use the build modules, because the corresponding | |
2909 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2910 | # finishes. So: | |
2911 | # - build_subdir is where we find build modules, and never changes. | |
2912 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2913 | ||
2914 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2915 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2916 | |
5213506e RW |
2917 | # Check whether --with-build-libsubdir was given. |
2918 | if test "${with_build_libsubdir+set}" = set; then : | |
2919 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2920 | else |
2921 | build_libsubdir="$build_subdir" | |
5213506e RW |
2922 | fi |
2923 | ||
215c351a PB |
2924 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2925 | if ( test $srcdir = . && test -d gcc ) \ | |
2926 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2927 | host_subdir="host-${host_noncanonical}" | |
2928 | else | |
2929 | host_subdir=. | |
2930 | fi | |
8b87bb96 NN |
2931 | # No prefix. |
2932 | target_subdir=${target_noncanonical} | |
1c710c3c | 2933 | |
0db770bd RW |
2934 | # Be sure to cover against remnants of an in-tree build. |
2935 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2936 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2937 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2938 | fi | |
79c06341 | 2939 | |
671aa708 NN |
2940 | # Skipdirs are removed silently. |
2941 | skipdirs= | |
2942 | # Noconfigdirs are removed loudly. | |
2943 | noconfigdirs="" | |
79c06341 | 2944 | |
671aa708 NN |
2945 | use_gnu_ld= |
2946 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2947 | if test x$with_gnu_ld = xno ; then | |
2948 | use_gnu_ld=no | |
5afab7ad | 2949 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2950 | fi |
2951 | ||
671aa708 NN |
2952 | use_gnu_as= |
2953 | # Make sure we don't let GNU as be added if we didn't want it. | |
2954 | if test x$with_gnu_as = xno ; then | |
2955 | use_gnu_as=no | |
2956 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2957 | fi |
2958 | ||
d7f09764 | 2959 | use_included_zlib= |
a05c2c75 L |
2960 | |
2961 | # Check whether --with-system-zlib was given. | |
2962 | if test "${with_system_zlib+set}" = set; then : | |
2963 | withval=$with_system_zlib; | |
2964 | fi | |
2965 | ||
d7f09764 DN |
2966 | # Make sure we don't let ZLIB be added if we didn't want it. |
2967 | if test x$with_system_zlib = xyes ; then | |
2968 | use_included_zlib=no | |
2969 | noconfigdirs="$noconfigdirs zlib" | |
2970 | fi | |
2971 | ||
36ba9851 ДП |
2972 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2973 | # is provided. | |
2974 | if test x$with_system_readline = xyes ; then | |
2975 | noconfigdirs="$noconfigdirs readline" | |
2976 | fi | |
2977 | ||
407a2c9a FS |
2978 | |
2979 | # Check whether --with-zstd was given. | |
2980 | if test "${with_zstd+set}" = set; then : | |
2981 | withval=$with_zstd; | |
2982 | fi | |
2983 | ||
2984 | ||
1c710c3c | 2985 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2986 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2987 | |
671aa708 NN |
2988 | case ${with_x} in |
2989 | yes | "") ;; # the default value for this tree is that X11 is available | |
2990 | no) | |
b4f96efe | 2991 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2992 | # We won't be able to build gdbtk without X. |
1c710c3c | 2993 | enable_gdbtk=no |
671aa708 NN |
2994 | ;; |
2995 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2996 | esac | |
79c06341 | 2997 | |
1bcce263 | 2998 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2999 | # Remove these if host=target. |
3000 | cross_only="target-libgloss target-newlib target-opcodes" | |
3001 | ||
3002 | case $is_cross_compiler in | |
3003 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 3004 | esac |
79c06341 | 3005 | |
671aa708 NN |
3006 | # If both --with-headers and --with-libs are specified, default to |
3007 | # --without-newlib. | |
ee6a22df L |
3008 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
3009 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
3010 | if test x"${with_newlib}" = x ; then |
3011 | with_newlib=no | |
3012 | fi | |
79c06341 JL |
3013 | fi |
3014 | ||
671aa708 NN |
3015 | # Recognize --with-newlib/--without-newlib. |
3016 | case ${with_newlib} in | |
3017 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3018 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3019 | esac | |
79c06341 | 3020 | |
85c64bbe BS |
3021 | # Check whether --enable-as-accelerator-for was given. |
3022 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 3023 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
3024 | fi |
3025 | ||
3026 | ||
3027 | # Check whether --enable-offload-targets was given. | |
3028 | if test "${enable_offload_targets+set}" = set; then : | |
3029 | enableval=$enable_offload_targets; | |
3030 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 3031 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
3032 | fi |
3033 | ||
3034 | else | |
3035 | enable_offload_targets= | |
3036 | fi | |
3037 | ||
3038 | ||
fe5bfa67 TB |
3039 | # Check whether --enable-offload-defaulted was given. |
3040 | if test "${enable_offload_defaulted+set}" = set; then : | |
3041 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3042 | else | |
3043 | enable_offload_defaulted= | |
3044 | fi | |
3045 | ||
3046 | ||
21539e2e MK |
3047 | # Handle --enable-gold, --enable-ld. |
3048 | # --disable-gold [--enable-ld] | |
3049 | # Build only ld. Default option. | |
9580395f L |
3050 | # --enable-gold [--enable-ld] |
3051 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3052 | # as "ld.bfd" and "ld". | |
3053 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3054 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3055 | # install ld as "ld.bfd". | |
3056 | # --enable-gold[=default] --disable-ld | |
3057 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3058 | # --enable-gold --enable-ld=default | |
9580395f L |
3059 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3060 | # and ld.bfd). | |
21539e2e MK |
3061 | # In other words, ld is default |
3062 | # --enable-gold=default --enable-ld=default | |
3063 | # Error. | |
3064 | ||
3065 | default_ld= | |
5213506e RW |
3066 | # Check whether --enable-gold was given. |
3067 | if test "${enable_gold+set}" = set; then : | |
3068 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3069 | else |
3070 | ENABLE_GOLD=no | |
5213506e RW |
3071 | fi |
3072 | ||
21539e2e MK |
3073 | case "${ENABLE_GOLD}" in |
3074 | yes|default) | |
38e3d868 RM |
3075 | # Check for ELF target. |
3076 | is_elf=no | |
3077 | case "${target}" in | |
3078 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3079 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3080 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ead5103c | 3081 | | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*) |
38e3d868 RM |
3082 | case "${target}" in |
3083 | *-*-linux*aout* | *-*-linux*oldld*) | |
3084 | ;; | |
3085 | *) | |
3086 | is_elf=yes | |
3087 | ;; | |
3088 | esac | |
3089 | esac | |
3090 | ||
3091 | if test "$is_elf" = "yes"; then | |
3092 | # Check for target supported by gold. | |
5afab7ad | 3093 | case "${target}" in |
7705dfd1 | 3094 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
f09a9dd3 | 3095 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3096 | configdirs="$configdirs gold" |
3097 | if test x${ENABLE_GOLD} = xdefault; then | |
3098 | default_ld=gold | |
3099 | fi | |
38e3d868 | 3100 | ENABLE_GOLD=yes |
5afab7ad ILT |
3101 | ;; |
3102 | esac | |
38e3d868 RM |
3103 | fi |
3104 | ;; | |
3105 | no) | |
3106 | ;; | |
3107 | *) | |
22e05272 | 3108 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3109 | ;; |
21539e2e MK |
3110 | esac |
3111 | ||
3112 | # Check whether --enable-ld was given. | |
3113 | if test "${enable_ld+set}" = set; then : | |
3114 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3115 | else | |
3116 | ENABLE_LD=yes | |
3117 | fi | |
3118 | ||
3119 | ||
3120 | case "${ENABLE_LD}" in | |
3121 | default) | |
9580395f | 3122 | if test x${default_ld} != x; then |
22e05272 | 3123 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3124 | fi |
3125 | ;; | |
3126 | yes) | |
3127 | ;; | |
3128 | no) | |
3129 | if test x${ENABLE_GOLD} != xyes; then | |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3131 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3132 | fi | |
3133 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3134 | ;; | |
3135 | *) | |
22e05272 | 3136 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3137 | ;; |
3138 | esac | |
5afab7ad | 3139 | |
24552056 VM |
3140 | # Check whether --enable-gprofng was given. |
3141 | if test "${enable_gprofng+set}" = set; then : | |
3142 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3143 | else | |
3144 | enable_gprofng=yes | |
3145 | fi | |
3146 | ||
3147 | if test "$enable_gprofng" = "yes"; then | |
3148 | case "${target}" in | |
3149 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3150 | configdirs="$configdirs gprofng" | |
3151 | ;; | |
3152 | esac | |
3153 | fi | |
3154 | ||
3155 | ||
78edb32f L |
3156 | # PR gas/19109 |
3157 | # Decide the default method for compressing debug sections. | |
3158 | # Provide a configure time option to override our default. | |
3159 | # Check whether --enable-compressed_debug_sections was given. | |
3160 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3161 | enableval=$enable_compressed_debug_sections; | |
3162 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3163 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3164 | fi |
3165 | ||
3166 | else | |
3167 | enable_compressed_debug_sections= | |
3168 | fi | |
3169 | ||
3170 | ||
c9884636 ML |
3171 | # Select default compression algorithm. |
3172 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3173 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3174 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3175 | else | |
3176 | default_compressed_debug_sections_algorithm= | |
3177 | fi | |
3178 | ||
3179 | ||
671aa708 | 3180 | # Configure extra directories which are host specific |
79c06341 | 3181 | |
671aa708 NN |
3182 | case "${host}" in |
3183 | *-cygwin*) | |
3184 | configdirs="$configdirs libtermcap" ;; | |
3185 | esac | |
79c06341 | 3186 | |
4fab7234 HPN |
3187 | # A target can indicate whether a language isn't supported for some reason. |
3188 | # Only spaces may be used in this macro; not newlines or tabs. | |
3189 | unsupported_languages= | |
3190 | ||
1c710c3c | 3191 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3192 | # target this usually means that a port of the program doesn't |
3193 | # exist yet. | |
ec8d6ddc | 3194 | |
671aa708 | 3195 | case "${host}" in |
111eeb6e | 3196 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3197 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3198 | ;; |
671aa708 | 3199 | esac |
ec8d6ddc | 3200 | |
a49d42e8 LM |
3201 | # Default to --disable-year2038 until we can handle differences between |
3202 | # projects that use gnulib (which understands year 2038) and projects that | |
3203 | # do not (like BFD). | |
3204 | # Check whether --enable-year2038 was given. | |
3205 | if test "${enable_year2038+set}" = set; then : | |
3206 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3207 | else | |
3208 | ENABLE_YEAR2038=no | |
3209 | fi | |
3210 | ||
3211 | enable_year2038= | |
3212 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3213 | enable_year2038=no | |
3214 | fi | |
6de9cd9a | 3215 | |
87e6d9dc TB |
3216 | # Check whether --enable-libquadmath was given. |
3217 | if test "${enable_libquadmath+set}" = set; then : | |
3218 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3219 | else | |
3220 | ENABLE_LIBQUADMATH=yes | |
3221 | fi | |
3222 | ||
3223 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3224 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3225 | fi | |
3226 | ||
3227 | ||
3228 | # Check whether --enable-libquadmath-support was given. | |
3229 | if test "${enable_libquadmath_support+set}" = set; then : | |
3230 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3231 | else | |
3232 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3233 | fi | |
3234 | ||
3235 | enable_libquadmath_support= | |
3236 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3237 | enable_libquadmath_support=no | |
3238 | fi | |
3239 | ||
3240 | ||
5213506e RW |
3241 | # Check whether --enable-libada was given. |
3242 | if test "${enable_libada+set}" = set; then : | |
3243 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3244 | else |
3245 | ENABLE_LIBADA=yes | |
5213506e RW |
3246 | fi |
3247 | ||
d9cdb878 | 3248 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3249 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3250 | fi |
3251 | ||
1eee94d3 GM |
3252 | # Check whether --enable-libgm2 was given. |
3253 | if test "${enable_libgm2+set}" = set; then : | |
3254 | enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval | |
3255 | else | |
3256 | ENABLE_LIBGM2=no | |
3257 | fi | |
3258 | ||
3259 | if test "${ENABLE_LIBGM2}" != "yes" ; then | |
3260 | noconfigdirs="$noconfigdirs gm2tools" | |
3261 | fi | |
3262 | ||
5213506e RW |
3263 | # Check whether --enable-libssp was given. |
3264 | if test "${enable_libssp+set}" = set; then : | |
3265 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3266 | else |
3267 | ENABLE_LIBSSP=yes | |
5213506e RW |
3268 | fi |
3269 | ||
ef0087a7 | 3270 | |
1873ec0c L |
3271 | # Check whether --enable-libstdcxx was given. |
3272 | if test "${enable_libstdcxx+set}" = set; then : | |
3273 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3274 | else | |
3275 | ENABLE_LIBSTDCXX=default | |
3276 | fi | |
3277 | ||
3278 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3279 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3280 | fi |
3281 | ||
44a7d18d | 3282 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3283 | if test x$enable_libgomp = x ; then |
953ff289 | 3284 | case "${target}" in |
416ac4d4 | 3285 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3286 | ;; |
8c6d158a | 3287 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3288 | ;; |
b24513a1 | 3289 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3290 | ;; |
cac90078 | 3291 | *-*-darwin* | *-*-aix*) |
953ff289 | 3292 | ;; |
29b1533a | 3293 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3294 | ;; |
953ff289 DN |
3295 | *) |
3296 | noconfigdirs="$noconfigdirs target-libgomp" | |
3297 | ;; | |
3298 | esac | |
27079765 | 3299 | fi |
953ff289 | 3300 | |
48310492 RH |
3301 | # Disable libatomic on unsupported systems. |
3302 | if test -d ${srcdir}/libatomic; then | |
3303 | if test x$enable_libatomic = x; then | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3305 | $as_echo_n "checking for libatomic support... " >&6; } | |
3306 | if (srcdir=${srcdir}/libatomic; \ | |
3307 | . ${srcdir}/configure.tgt; \ | |
3308 | test -n "$UNSUPPORTED") | |
3309 | then | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3311 | $as_echo "no" >&6; } | |
3312 | noconfigdirs="$noconfigdirs target-libatomic" | |
3313 | else | |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3315 | $as_echo "yes" >&6; } | |
3316 | fi | |
3317 | fi | |
3318 | fi | |
3319 | ||
e948157d RH |
3320 | # Disable libitm on unsupported systems. |
3321 | if test -d ${srcdir}/libitm; then | |
3322 | if test x$enable_libitm = x; then | |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3324 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3325 | if (srcdir=${srcdir}/libitm; \ |
3326 | . ${srcdir}/configure.tgt; \ | |
3327 | test -n "$UNSUPPORTED") | |
3328 | then | |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3330 | $as_echo "no" >&6; } |
e948157d RH |
3331 | noconfigdirs="$noconfigdirs target-libitm" |
3332 | else | |
3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3334 | $as_echo "yes" >&6; } |
e948157d RH |
3335 | fi |
3336 | fi | |
0a35513e AH |
3337 | fi |
3338 | ||
93bf5390 RH |
3339 | # Disable libsanitizer on unsupported systems. |
3340 | if test -d ${srcdir}/libsanitizer; then | |
3341 | if test x$enable_libsanitizer = x; then | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3343 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3344 | if (srcdir=${srcdir}/libsanitizer; \ | |
3345 | . ${srcdir}/configure.tgt; \ | |
3346 | test -n "$UNSUPPORTED") | |
3347 | then | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3349 | $as_echo "no" >&6; } | |
3350 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3351 | else | |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3353 | $as_echo "yes" >&6; } | |
3354 | fi | |
3355 | fi | |
3356 | fi | |
3357 | ||
2077db1b CT |
3358 | # Disable libvtv on unsupported systems. |
3359 | if test -d ${srcdir}/libvtv; then | |
3360 | if test x$enable_libvtv = x; then | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3362 | $as_echo_n "checking for libvtv support... " >&6; } | |
3363 | if (srcdir=${srcdir}/libvtv; \ | |
3364 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3365 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3366 | then |
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3368 | $as_echo "no" >&6; } | |
3369 | noconfigdirs="$noconfigdirs target-libvtv" | |
3370 | else | |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3372 | $as_echo "yes" >&6; } | |
3373 | fi | |
3374 | fi | |
3375 | fi | |
3376 | ||
d91491e5 SE |
3377 | # Disable libquadmath for some systems. |
3378 | case "${target}" in | |
e7fae550 DE |
3379 | avr-*-*) |
3380 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3381 | ;; | |
d91491e5 SE |
3382 | # libquadmath is unused on AIX and libquadmath build process use of |
3383 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3384 | powerpc-*-aix* | rs6000-*-aix*) | |
3385 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3386 | ;; | |
3387 | esac | |
3388 | ||
1e9e0e23 JM |
3389 | # Disable libssp for some systems. |
3390 | case "${target}" in | |
3391 | avr-*-*) | |
b318fb4b | 3392 | # No hosted I/O support. |
1e9e0e23 JM |
3393 | noconfigdirs="$noconfigdirs target-libssp" |
3394 | ;; | |
91dfef96 JM |
3395 | bpf-*-*) |
3396 | noconfigdirs="$noconfigdirs target-libssp" | |
3397 | ;; | |
1e9e0e23 JM |
3398 | powerpc-*-aix* | rs6000-*-aix*) |
3399 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3400 | ;; |
8d2af3a2 DD |
3401 | pru-*-*) |
3402 | # No hosted I/O support. | |
3403 | noconfigdirs="$noconfigdirs target-libssp" | |
3404 | ;; | |
85b8555e | 3405 | rl78-*-*) |
7cb62ef1 EB |
3406 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3407 | # doesn't fault for those - instead, it gives a build-time error | |
3408 | # for explicit misaligned loads. | |
85b8555e | 3409 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3410 | ;; |
0969ec7d EB |
3411 | visium-*-*) |
3412 | # No hosted I/O support. | |
3413 | noconfigdirs="$noconfigdirs target-libssp" | |
3414 | ;; | |
1e9e0e23 JM |
3415 | esac |
3416 | ||
1e9e0e23 | 3417 | # Disable libstdc++-v3 for some systems. |
67a1cb2a | 3418 | # Allow user to override this if they pass --enable-libstdcxx |
1873ec0c L |
3419 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3420 | case "${target}" in | |
3421 | *-*-vxworks*) | |
3422 | # VxWorks uses the Dinkumware C++ library. | |
3423 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3424 | ;; | |
afa3d80e TS |
3425 | amdgcn*-*-*) |
3426 | # Not ported/fails to build when using newlib. | |
3427 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3428 | ;; | |
1873ec0c L |
3429 | arm*-wince-pe*) |
3430 | # the C++ libraries don't build on top of CE's C libraries | |
3431 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3432 | ;; | |
3433 | avr-*-*) | |
3434 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3435 | ;; | |
91dfef96 JM |
3436 | bpf-*-*) |
3437 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3438 | ;; | |
fef939d6 JB |
3439 | ft32-*-*) |
3440 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3441 | ;; | |
1873ec0c L |
3442 | esac |
3443 | fi | |
1e9e0e23 | 3444 | |
91dfef96 JM |
3445 | # Disable C++ on systems where it is known to not work. |
3446 | # For testing, you can override this with --enable-languages=c++. | |
3447 | case ,${enable_languages}, in | |
3448 | *,c++,*) | |
3449 | ;; | |
3450 | *) | |
3451 | case "${target}" in | |
3452 | bpf-*-*) | |
3453 | unsupported_languages="$unsupported_languages c++" | |
3454 | ;; | |
3455 | esac | |
3456 | ;; | |
3457 | esac | |
3458 | ||
3459 | # Disable Objc on systems where it is known to not work. | |
3460 | # For testing, you can override this with --enable-languages=objc. | |
3461 | case ,${enable_languages}, in | |
3462 | *,objc,*) | |
3463 | ;; | |
3464 | *) | |
3465 | case "${target}" in | |
3466 | bpf-*-*) | |
3467 | unsupported_languages="$unsupported_languages objc" | |
3468 | ;; | |
3469 | esac | |
3470 | ;; | |
3471 | esac | |
3472 | ||
260eedb9 IB |
3473 | # Disable D on systems where it is known to not work. |
3474 | # For testing, you can override this with --enable-languages=d. | |
3475 | case ,${enable_languages}, in | |
3476 | *,d,*) | |
3477 | ;; | |
3478 | *) | |
3479 | case "${target}" in | |
91dfef96 | 3480 | bpf-*-*) |
260eedb9 IB |
3481 | unsupported_languages="$unsupported_languages d" |
3482 | ;; | |
3483 | esac | |
3484 | ;; | |
3485 | esac | |
3486 | ||
3487 | # Disable libphobos on unsupported systems. | |
3488 | # For testing, you can override this with --enable-libphobos. | |
3489 | if test -d ${srcdir}/libphobos; then | |
3490 | if test x$enable_libphobos = x; then | |
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3492 | $as_echo_n "checking for libphobos support... " >&6; } | |
3493 | if (srcdir=${srcdir}/libphobos; \ | |
3494 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3495 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3496 | then |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3498 | $as_echo "no" >&6; } | |
3499 | noconfigdirs="$noconfigdirs target-libphobos" | |
3500 | else | |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3502 | $as_echo "yes" >&6; } | |
3503 | fi | |
3504 | fi | |
3505 | fi | |
3506 | ||
1e9e0e23 JM |
3507 | # Disable Fortran for some systems. |
3508 | case "${target}" in | |
3509 | mmix-*-*) | |
3510 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3511 | unsupported_languages="$unsupported_languages fortran" | |
3512 | ;; | |
91dfef96 JM |
3513 | bpf-*-*) |
3514 | unsupported_languages="$unsupported_languages fortran" | |
3515 | ;; | |
1e9e0e23 JM |
3516 | esac |
3517 | ||
012447ea JJ |
3518 | # Disable libffi for some systems. |
3519 | case "${target}" in | |
3520 | powerpc-*-darwin*) | |
3521 | ;; | |
3522 | i[3456789]86-*-darwin*) | |
3523 | ;; | |
3524 | x86_64-*-darwin[912]*) | |
3525 | ;; | |
3526 | *-*-darwin*) | |
3527 | noconfigdirs="$noconfigdirs target-libffi" | |
3528 | ;; | |
3529 | *-*-netware*) | |
3530 | noconfigdirs="$noconfigdirs target-libffi" | |
3531 | ;; | |
3532 | *-*-phoenix*) | |
3533 | noconfigdirs="$noconfigdirs target-libffi" | |
3534 | ;; | |
3535 | *-*-rtems*) | |
3536 | noconfigdirs="$noconfigdirs target-libffi" | |
3537 | ;; | |
3538 | *-*-tpf*) | |
3539 | noconfigdirs="$noconfigdirs target-libffi" | |
3540 | ;; | |
3541 | *-*-uclinux*) | |
3542 | noconfigdirs="$noconfigdirs target-libffi" | |
3543 | ;; | |
3544 | *-*-vxworks*) | |
3545 | noconfigdirs="$noconfigdirs target-libffi" | |
3546 | ;; | |
b20e7532 AT |
3547 | aarch64*-*-freebsd*) |
3548 | noconfigdirs="$noconfigdirs target-libffi" | |
3549 | ;; | |
012447ea JJ |
3550 | alpha*-*-*vms*) |
3551 | noconfigdirs="$noconfigdirs target-libffi" | |
3552 | ;; | |
3553 | arm*-*-freebsd*) | |
3554 | noconfigdirs="$noconfigdirs target-libffi" | |
3555 | ;; | |
3556 | arm-wince-pe) | |
3557 | noconfigdirs="$noconfigdirs target-libffi" | |
3558 | ;; | |
3559 | arm*-*-symbianelf*) | |
3560 | noconfigdirs="$noconfigdirs target-libffi" | |
3561 | ;; | |
91dfef96 JM |
3562 | bpf-*-*) |
3563 | noconfigdirs="$noconfigdirs target-libffi" | |
3564 | ;; | |
012447ea JJ |
3565 | cris-*-* | crisv32-*-*) |
3566 | case "${target}" in | |
3567 | *-*-linux*) | |
3568 | ;; | |
3569 | *) # See PR46792 regarding target-libffi. | |
3570 | noconfigdirs="$noconfigdirs target-libffi";; | |
3571 | esac | |
3572 | ;; | |
3573 | hppa*64*-*-hpux*) | |
3574 | noconfigdirs="$noconfigdirs target-libffi" | |
3575 | ;; | |
b48e9940 AA |
3576 | hppa*-hp-hpux11*) |
3577 | ;; | |
3578 | hppa*-*-hpux*) | |
3579 | noconfigdirs="$noconfigdirs target-libffi" | |
3580 | ;; | |
012447ea JJ |
3581 | ia64*-*-*vms*) |
3582 | noconfigdirs="$noconfigdirs target-libffi" | |
3583 | ;; | |
3584 | i[3456789]86-w64-mingw*) | |
3585 | noconfigdirs="$noconfigdirs target-libffi" | |
3586 | ;; | |
3587 | i[3456789]86-*-mingw*) | |
3588 | noconfigdirs="$noconfigdirs target-libffi" | |
3589 | ;; | |
3590 | x86_64-*-mingw*) | |
3591 | noconfigdirs="$noconfigdirs target-libffi" | |
3592 | ;; | |
3593 | mmix-*-*) | |
3594 | noconfigdirs="$noconfigdirs target-libffi" | |
3595 | ;; | |
3596 | powerpc-*-aix*) | |
012447ea JJ |
3597 | ;; |
3598 | rs6000-*-aix*) | |
012447ea JJ |
3599 | ;; |
3600 | ft32-*-*) | |
3601 | noconfigdirs="$noconfigdirs target-libffi" | |
3602 | ;; | |
3603 | *-*-lynxos*) | |
3604 | noconfigdirs="$noconfigdirs target-libffi" | |
3605 | ;; | |
3606 | esac | |
3607 | ||
3608 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3609 | # this in sync with contrib/config-list.mk. | |
3610 | case "${target}" in | |
91dfef96 | 3611 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3612 | unsupported_languages="$unsupported_languages go" |
3613 | ;; | |
3614 | esac | |
3615 | ||
f9d09df0 TT |
3616 | # Only allow gdbserver on some systems. |
3617 | if test -d ${srcdir}/gdbserver; then | |
3618 | if test x$enable_gdbserver = x; then | |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3620 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3621 | if (srcdir=${srcdir}/gdbserver; \ | |
3622 | . ${srcdir}/configure.srv; \ | |
3623 | test -n "$UNSUPPORTED") | |
3624 | then | |
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3626 | $as_echo "no" >&6; } | |
3627 | noconfigdirs="$noconfigdirs gdbserver" | |
3628 | else | |
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3630 | $as_echo "yes" >&6; } | |
3631 | fi | |
3632 | fi | |
3633 | fi | |
3634 | ||
cdbc9e92 ILT |
3635 | # Disable libgo for some systems where it is known to not work. |
3636 | # For testing, you can easily override this with --enable-libgo. | |
3637 | if test x$enable_libgo = x; then | |
3638 | case "${target}" in | |
3639 | *-*-darwin*) | |
3640 | # PR 46986 | |
3641 | noconfigdirs="$noconfigdirs target-libgo" | |
3642 | ;; | |
3643 | *-*-cygwin* | *-*-mingw*) | |
3644 | noconfigdirs="$noconfigdirs target-libgo" | |
3645 | ;; | |
91dfef96 JM |
3646 | bpf-*-*) |
3647 | noconfigdirs="$noconfigdirs target-libgo" | |
3648 | ;; | |
cdbc9e92 ILT |
3649 | esac |
3650 | fi | |
3651 | ||
c03353e2 RIL |
3652 | # Default libgloss CPU subdirectory. |
3653 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3654 | |
fbcf0dca JM |
3655 | case "${target}" in |
3656 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3657 | libgloss_dir=wince | |
3658 | ;; | |
4dddfc74 YZ |
3659 | aarch64*-*-* ) |
3660 | libgloss_dir=aarch64 | |
3661 | ;; | |
fbcf0dca JM |
3662 | arm*-*-*) |
3663 | libgloss_dir=arm | |
3664 | ;; | |
3665 | cris-*-* | crisv32-*-*) | |
3666 | libgloss_dir=cris | |
3667 | ;; | |
3668 | hppa*-*-*) | |
3669 | libgloss_dir=pa | |
3670 | ;; | |
3671 | i[3456789]86-*-*) | |
3672 | libgloss_dir=i386 | |
3673 | ;; | |
c6c0594e | 3674 | loongarch*-*-*) |
3675 | libgloss_dir=loongarch | |
3676 | ;; | |
fbcf0dca JM |
3677 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3678 | libgloss_dir=m68hc11 | |
3679 | ;; | |
3680 | m68*-*-* | fido-*-*) | |
3681 | libgloss_dir=m68k | |
3682 | ;; | |
3683 | mips*-*-*) | |
3684 | libgloss_dir=mips | |
3685 | ;; | |
3686 | powerpc*-*-*) | |
3687 | libgloss_dir=rs6000 | |
3688 | ;; | |
8d2af3a2 DD |
3689 | pru-*-*) |
3690 | libgloss_dir=pru | |
3691 | ;; | |
fbcf0dca JM |
3692 | sparc*-*-*) |
3693 | libgloss_dir=sparc | |
3694 | ;; | |
3695 | esac | |
3696 | ||
6a789d5e | 3697 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3698 | case "${target}" in |
6a789d5e JM |
3699 | alpha*-dec-osf*) |
3700 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3701 | ;; | |
3702 | i[3456789]86-*-linux*) | |
3703 | # This section makes it possible to build newlib natively on linux. | |
3704 | # If we are using a cross compiler then don't configure newlib. | |
3705 | if test x${is_cross_compiler} != xno ; then | |
3706 | noconfigdirs="$noconfigdirs target-newlib" | |
3707 | fi | |
3708 | noconfigdirs="$noconfigdirs target-libgloss" | |
3709 | # If we are not using a cross compiler, do configure newlib. | |
3710 | # Note however, that newlib will only be configured in this situation | |
3711 | # if the --with-newlib option has been given, because otherwise | |
3712 | # 'target-newlib' will appear in skipdirs. | |
3713 | ;; | |
3714 | i[3456789]86-*-rdos*) | |
3715 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3716 | ;; | |
3717 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3718 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3719 | ;; | |
3720 | sparc-*-sunos4*) | |
3721 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3722 | ;; | |
91dfef96 JM |
3723 | bpf-*-*) |
3724 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3725 | ;; | |
6a789d5e JM |
3726 | *-*-aix*) |
3727 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3728 | ;; | |
3729 | *-*-beos*) | |
3730 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3731 | ;; | |
671aa708 | 3732 | *-*-chorusos) |
0036370f | 3733 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3734 | ;; |
6a789d5e JM |
3735 | *-*-dragonfly*) |
3736 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3737 | ;; | |
3738 | *-*-freebsd*) | |
3739 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3740 | ;; | |
3741 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3742 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3743 | ;; | |
3744 | *-*-lynxos*) | |
3745 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3746 | ;; | |
3747 | *-*-mingw*) | |
3748 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3749 | ;; | |
3750 | *-*-netbsd*) | |
3751 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3752 | ;; | |
3753 | *-*-netware*) | |
3754 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3755 | ;; | |
3756 | *-*-tpf*) | |
3757 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3758 | ;; | |
3759 | *-*-uclinux*) | |
3760 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3761 | ;; | |
3762 | *-*-vxworks*) | |
3763 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3764 | ;; | |
3765 | esac | |
3766 | ||
3767 | case "${target}" in | |
3768 | *-*-chorusos) | |
3769 | ;; | |
3be96231 TG |
3770 | aarch64-*-darwin*) |
3771 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3772 | noconfigdirs="$noconfigdirs sim target-rda" | |
3773 | ;; | |
7431c1a1 AS |
3774 | amdgcn*-*-*) |
3775 | ;; | |
3be96231 TG |
3776 | arm-*-darwin*) |
3777 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3778 | noconfigdirs="$noconfigdirs sim target-rda" | |
3779 | ;; | |
75eeae1a | 3780 | powerpc-*-darwin*) |
e1514c3f | 3781 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3782 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3783 | ;; |
354ebf88 RW |
3784 | i[3456789]86-*-darwin*) |
3785 | noconfigdirs="$noconfigdirs ld gprof" | |
3786 | noconfigdirs="$noconfigdirs sim target-rda" | |
3787 | ;; | |
3788 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3789 | noconfigdirs="$noconfigdirs ld gas gprof" |
3790 | noconfigdirs="$noconfigdirs sim target-rda" | |
3791 | ;; | |
42c1cd8a AT |
3792 | *-*-darwin*) |
3793 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3794 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3795 | ;; |
8c6d158a | 3796 | *-*-dragonfly*) |
8c6d158a | 3797 | ;; |
c3f84f61 | 3798 | *-*-freebsd*) |
88252529 | 3799 | if test "x$with_gmp" = x \ |
c0d0a722 | 3800 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3801 | && test -f /usr/local/include/gmp.h; then |
3802 | with_gmp=/usr/local | |
3803 | fi | |
6de9cd9a | 3804 | ;; |
ef4e7569 US |
3805 | *-*-kaos*) |
3806 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3807 | noconfigdirs="$noconfigdirs target-libgloss" |
3808 | ;; | |
671aa708 | 3809 | *-*-netbsd*) |
671aa708 | 3810 | ;; |
61fec9ff | 3811 | *-*-netware*) |
671aa708 | 3812 | ;; |
fd6487af JS |
3813 | *-*-phoenix*) |
3814 | noconfigdirs="$noconfigdirs target-libgloss" | |
3815 | ;; | |
671aa708 | 3816 | *-*-rtems*) |
2909494b | 3817 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3818 | ;; |
a8ba31f2 EC |
3819 | # The tpf target doesn't support gdb yet. |
3820 | *-*-tpf*) | |
6a789d5e | 3821 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3822 | ;; |
5785c0ed | 3823 | *-*-uclinux*) |
6a789d5e | 3824 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3825 | ;; |
671aa708 | 3826 | *-*-vxworks*) |
671aa708 NN |
3827 | ;; |
3828 | alpha*-dec-osf*) | |
3829 | # ld works, but does not support shared libraries. | |
671aa708 | 3830 | # gas doesn't generate exception information. |
6a789d5e | 3831 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3832 | ;; |
3833 | alpha*-*-*vms*) | |
2909494b | 3834 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3835 | ;; |
671aa708 NN |
3836 | alpha*-*-*) |
3837 | # newlib is not 64 bit ready | |
2909494b | 3838 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3839 | ;; |
91dfef96 JM |
3840 | bpf-*-*) |
3841 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3842 | ;; | |
671aa708 | 3843 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3844 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3845 | ;; |
2fd88f4f AK |
3846 | arc*-*-*) |
3847 | noconfigdirs="$noconfigdirs sim" | |
3848 | ;; | |
671aa708 | 3849 | arm-*-pe*) |
2909494b | 3850 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3851 | ;; |
671aa708 | 3852 | arm-*-riscix*) |
0036370f | 3853 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3854 | ;; |
b588ae30 GJL |
3855 | avr-*-*) |
3856 | if test x${with_avrlibc} != xno; then | |
3857 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3858 | fi | |
3859 | ;; | |
671aa708 | 3860 | c4x-*-* | tic4x-*-*) |
0036370f | 3861 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3862 | ;; |
0036370f JM |
3863 | tic54x-*-*) |
3864 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3865 | ;; |
671aa708 | 3866 | d10v-*-*) |
0036370f | 3867 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3868 | ;; |
3869 | d30v-*-*) | |
0036370f | 3870 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3871 | ;; |
3872 | fr30-*-elf*) | |
2909494b | 3873 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3874 | ;; |
a05c2c75 L |
3875 | ft32-*-*) |
3876 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3877 | ;; | |
55f2d967 | 3878 | moxie-*-*) |
a05c2c75 | 3879 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3880 | ;; |
671aa708 | 3881 | h8300*-*-*) |
2909494b | 3882 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3883 | ;; |
3884 | h8500-*-*) | |
0036370f | 3885 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3886 | ;; |
b48e9940 AA |
3887 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
3888 | ;; | |
a05c2c75 L |
3889 | hppa*64*-*-hpux*) |
3890 | noconfigdirs="$noconfigdirs gdb" | |
3891 | ;; | |
b48e9940 AA |
3892 | hppa*-*-hpux11*) |
3893 | noconfigdirs="$noconfigdirs gdb ld" | |
3894 | ;; | |
4569f85e | 3895 | hppa*64*-*-linux*) |
671aa708 | 3896 | ;; |
56f8587a | 3897 | hppa*-*-linux*) |
3e732ba0 | 3898 | ;; |
671aa708 | 3899 | hppa*-*-*elf* | \ |
671aa708 NN |
3900 | hppa*-*-lites* | \ |
3901 | hppa*-*-openbsd* | \ | |
3902 | hppa*64*-*-*) | |
671aa708 | 3903 | ;; |
c03353e2 | 3904 | hppa*-*-pro*) |
c03353e2 | 3905 | ;; |
671aa708 | 3906 | hppa*-*-*) |
2909494b | 3907 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3908 | ;; |
fb87ad5d | 3909 | i960-*-*) |
0036370f | 3910 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3911 | ;; |
671aa708 NN |
3912 | ia64*-*-elf*) |
3913 | # No gdb support yet. | |
1bcce263 | 3914 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3915 | ;; |
3916 | ia64*-**-hpux*) | |
5a2931d1 | 3917 | # No ld support yet. |
a05c2c75 | 3918 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3919 | ;; |
52535a64 | 3920 | ia64*-*-*vms*) |
091fe9ca TG |
3921 | # No ld support yet. |
3922 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3923 | ;; |
ef4c4300 | 3924 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3925 | ;; |
3926 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3927 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3928 | ;; |
671aa708 NN |
3929 | *-*-cygwin*) |
3930 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3931 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3932 | # always build newlib if winsup directory is present. |
b91f0a41 | 3933 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3934 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3935 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3936 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3937 | fi |
1c710c3c | 3938 | ;; |
f2a0e225 | 3939 | i[3456789]86-*-pe) |
ebb9f8b0 | 3940 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3941 | ;; |
f2a0e225 | 3942 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3943 | # The linker does not yet know about weak symbols in COFF, |
3944 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3945 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3946 | ;; |
f2a0e225 | 3947 | i[3456789]86-*-sco*) |
0036370f | 3948 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3949 | ;; |
fbdd5d87 | 3950 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3951 | noconfigdirs="$noconfigdirs target-libgloss" |
3952 | ;; | |
f2a0e225 | 3953 | i[3456789]86-*-sysv4*) |
0036370f | 3954 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3955 | ;; |
f2a0e225 | 3956 | i[3456789]86-*-beos*) |
6a789d5e | 3957 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3958 | ;; |
d1f8db0c | 3959 | i[3456789]86-*-rdos*) |
6a789d5e | 3960 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3961 | ;; |
671aa708 | 3962 | mmix-*-*) |
2909494b | 3963 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3964 | ;; |
ab34901f | 3965 | mt-*-*) |
79dd769c AH |
3966 | noconfigdirs="$noconfigdirs sim" |
3967 | ;; | |
58b40a67 FT |
3968 | nfp-*-*) |
3969 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3970 | noconfigdirs="$noconfigdirs $target_libraries" | |
3971 | ;; | |
e6cbe965 SC |
3972 | pdp11-*-*) |
3973 | noconfigdirs="$noconfigdirs gdb gprof" | |
3974 | ;; | |
671aa708 NN |
3975 | powerpc-*-aix*) |
3976 | # copied from rs6000-*-* entry | |
6a789d5e | 3977 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3978 | ;; |
4569f85e | 3979 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3980 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3981 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3982 | # always build newlib. |
3983 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3984 | ;; | |
3985 | # This is temporary until we can link against shared libraries | |
3986 | powerpcle-*-solaris*) | |
0036370f | 3987 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3988 | ;; |
3989 | powerpc-*-beos*) | |
6a789d5e | 3990 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3991 | ;; |
671aa708 | 3992 | rs6000-*-lynxos*) |
6a789d5e | 3993 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3994 | ;; |
3995 | rs6000-*-aix*) | |
6a789d5e | 3996 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3997 | ;; |
3998 | rs6000-*-*) | |
2909494b | 3999 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
4000 | ;; |
4001 | m68k-apollo-*) | |
0036370f | 4002 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 4003 | ;; |
ca9fe997 | 4004 | microblaze*) |
2909494b | 4005 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 4006 | ;; |
d896cc4d | 4007 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
4008 | if test x$with_newlib = xyes; then |
4009 | noconfigdirs="$noconfigdirs gprof" | |
4010 | fi | |
d9dced13 | 4011 | ;; |
671aa708 | 4012 | mips*-*-irix5*) |
0036370f | 4013 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
4014 | ;; |
4015 | mips*-*-irix6*) | |
2909494b | 4016 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 4017 | ;; |
671aa708 | 4018 | mips*-*-bsd*) |
bc98bcc4 | 4019 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 4020 | ;; |
671aa708 | 4021 | mips*-*-linux*) |
671aa708 | 4022 | ;; |
bc98bcc4 JBG |
4023 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
4024 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
4025 | noconfigdirs="$noconfigdirs ld gas gprof" | |
4026 | ;; | |
671aa708 | 4027 | mips*-*-*) |
2909494b | 4028 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 4029 | ;; |
738f2522 | 4030 | nvptx*-*-*) |
738f2522 BS |
4031 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4032 | ;; | |
bc6d9014 | 4033 | sh-*-*) |
ea2002ba CB |
4034 | case "${target}" in |
4035 | sh*-*-elf) | |
2909494b | 4036 | ;; |
ea2002ba | 4037 | *) |
2909494b | 4038 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4039 | esac |
671aa708 | 4040 | ;; |
671aa708 | 4041 | sparc-*-sunos4*) |
6a789d5e | 4042 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4043 | use_gnu_ld=no |
4044 | fi | |
4045 | ;; | |
b42f0d7e | 4046 | tic6x-*-*) |
0d557ff8 | 4047 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4048 | ;; |
a885ec24 AA |
4049 | tilepro*-*-* | tilegx*-*-*) |
4050 | noconfigdirs="$noconfigdirs sim" | |
4051 | ;; | |
671aa708 | 4052 | v810-*-*) |
0036370f | 4053 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4054 | ;; |
4055 | vax-*-*) | |
2909494b | 4056 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4057 | ;; |
1fc1d82e MR |
4058 | wasm32-*-*) |
4059 | noconfigdirs="$noconfigdirs ld" | |
4060 | ;; | |
c6c0594e | 4061 | loongarch*-*-linux*) |
4062 | ;; | |
4063 | loongarch*-*-*) | |
4064 | noconfigdirs="$noconfigdirs gprof" | |
4065 | ;; | |
671aa708 | 4066 | esac |
79c06341 | 4067 | |
671aa708 NN |
4068 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4069 | # depends upon some newlib header files. | |
4070 | case "${noconfigdirs}" in | |
4071 | *target-libgloss*) ;; | |
4072 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4073 | esac | |
4074 | ||
671aa708 | 4075 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4076 | host_makefile_frag=/dev/null |
4077 | if test -d ${srcdir}/config ; then | |
4078 | case "${host}" in | |
f2a0e225 | 4079 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4080 | host_makefile_frag="config/mh-djgpp" |
4081 | ;; | |
4082 | *-cygwin*) | |
2a79c47f | 4083 | |
5213506e RW |
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4085 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4086 | echo a >cygwin-cat-check |
e25a8c82 | 4087 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4088 | rm cygwin-cat-check |
5213506e RW |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4090 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4091 | else |
4092 | rm cygwin-cat-check | |
5213506e RW |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4094 | $as_echo "no" >&6; } | |
22e05272 | 4095 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4096 | Please either mount the build directory in binary mode or run the following |
4097 | commands before running any configure script: | |
4098 | set -o igncr | |
4099 | export SHELLOPTS | |
5213506e | 4100 | " "$LINENO" 5 |
2a79c47f NC |
4101 | fi |
4102 | ||
671aa708 NN |
4103 | host_makefile_frag="config/mh-cygwin" |
4104 | ;; | |
c53a18d3 | 4105 | *-mingw*) |
1f5a6b84 | 4106 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4107 | ;; |
cabb9d59 | 4108 | alpha*-linux*) |
13be44ed UB |
4109 | host_makefile_frag="config/mh-alpha-linux" |
4110 | ;; | |
111eeb6e | 4111 | hppa*-hp-hpux*) |
efd41714 PB |
4112 | host_makefile_frag="config/mh-pa" |
4113 | ;; | |
4114 | hppa*-*) | |
4115 | host_makefile_frag="config/mh-pa" | |
4116 | ;; | |
54258e22 | 4117 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4118 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4119 | ;; |
d19bca38 PB |
4120 | powerpc-*-aix*) |
4121 | host_makefile_frag="config/mh-ppc-aix" | |
4122 | ;; | |
4123 | rs6000-*-aix*) | |
4124 | host_makefile_frag="config/mh-ppc-aix" | |
4125 | ;; | |
671aa708 NN |
4126 | esac |
4127 | fi | |
4128 | ||
55ffb5ed | 4129 | if test "${build}" != "${host}" ; then |
0999159b PB |
4130 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4131 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4132 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4133 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4134 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4135 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4136 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4137 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4138 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4139 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4140 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4141 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4142 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4143 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4144 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4145 | else | |
4146 | AR_FOR_BUILD="\$(AR)" | |
4147 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4148 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4149 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4150 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4151 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4152 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4153 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4154 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4155 | LD_FOR_BUILD="\$(LD)" | |
4156 | NM_FOR_BUILD="\$(NM)" | |
4157 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4158 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4159 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4160 | fi |
4161 | ||
4162 | ac_ext=c | |
1c710c3c DJ |
4163 | ac_cpp='$CPP $CPPFLAGS' |
4164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4167 | if test -n "$ac_tool_prefix"; then | |
4168 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4169 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4171 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4172 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4173 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4174 | else |
4175 | if test -n "$CC"; then | |
4176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4177 | else | |
4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
5213506e | 4183 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4185 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4187 | break 2 |
4188 | fi | |
4189 | done | |
5213506e RW |
4190 | done |
4191 | IFS=$as_save_IFS | |
1c710c3c DJ |
4192 | |
4193 | fi | |
4194 | fi | |
4195 | CC=$ac_cv_prog_CC | |
4196 | if test -n "$CC"; then | |
5213506e RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4198 | $as_echo "$CC" >&6; } | |
1c710c3c | 4199 | else |
5213506e RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4202 | fi |
4203 | ||
5213506e | 4204 | |
1c710c3c DJ |
4205 | fi |
4206 | if test -z "$ac_cv_prog_CC"; then | |
4207 | ac_ct_CC=$CC | |
fb0103e5 RG |
4208 | # Extract the first word of "gcc", so it can be a program name with args. |
4209 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4211 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4212 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4213 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4214 | else |
4215 | if test -n "$ac_ct_CC"; then | |
4216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4217 | else | |
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4219 | for as_dir in $PATH | |
4220 | do | |
4221 | IFS=$as_save_IFS | |
4222 | test -z "$as_dir" && as_dir=. | |
5213506e | 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4225 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4227 | break 2 |
4228 | fi | |
4229 | done | |
5213506e RW |
4230 | done |
4231 | IFS=$as_save_IFS | |
1c710c3c DJ |
4232 | |
4233 | fi | |
4234 | fi | |
4235 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4236 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4238 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4239 | else |
5213506e RW |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4241 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4242 | fi |
4243 | ||
5213506e RW |
4244 | if test "x$ac_ct_CC" = x; then |
4245 | CC="" | |
4246 | else | |
4247 | case $cross_compiling:$ac_tool_warned in | |
4248 | yes:) | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4251 | ac_tool_warned=yes ;; | |
4252 | esac | |
4253 | CC=$ac_ct_CC | |
4254 | fi | |
1c710c3c DJ |
4255 | else |
4256 | CC="$ac_cv_prog_CC" | |
4257 | fi | |
4258 | ||
4259 | if test -z "$CC"; then | |
5213506e RW |
4260 | if test -n "$ac_tool_prefix"; then |
4261 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4262 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4264 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4265 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4266 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4267 | else |
4268 | if test -n "$CC"; then | |
4269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4270 | else | |
1c710c3c DJ |
4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4272 | for as_dir in $PATH | |
4273 | do | |
4274 | IFS=$as_save_IFS | |
4275 | test -z "$as_dir" && as_dir=. | |
5213506e | 4276 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4278 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4280 | break 2 |
4281 | fi | |
4282 | done | |
5213506e RW |
4283 | done |
4284 | IFS=$as_save_IFS | |
1c710c3c | 4285 | |
0b0dc272 | 4286 | fi |
0b0dc272 | 4287 | fi |
1c710c3c | 4288 | CC=$ac_cv_prog_CC |
af71363e | 4289 | if test -n "$CC"; then |
5213506e RW |
4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4291 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4292 | else |
5213506e RW |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4294 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4295 | fi |
4296 | ||
2aeb72e9 | 4297 | |
5213506e | 4298 | fi |
1c710c3c | 4299 | fi |
55ffb5ed NN |
4300 | if test -z "$CC"; then |
4301 | # Extract the first word of "cc", so it can be a program name with args. | |
4302 | set dummy cc; ac_word=$2 | |
5213506e RW |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4304 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4305 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4306 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4307 | else |
4308 | if test -n "$CC"; then | |
4309 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4310 | else | |
0b0dc272 | 4311 | ac_prog_rejected=no |
1c710c3c DJ |
4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4313 | for as_dir in $PATH | |
4314 | do | |
4315 | IFS=$as_save_IFS | |
4316 | test -z "$as_dir" && as_dir=. | |
5213506e | 4317 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4319 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4320 | ac_prog_rejected=yes | |
4321 | continue | |
4322 | fi | |
4323 | ac_cv_prog_CC="cc" | |
5213506e | 4324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4325 | break 2 |
4326 | fi | |
4327 | done | |
5213506e RW |
4328 | done |
4329 | IFS=$as_save_IFS | |
1c710c3c | 4330 | |
55ffb5ed NN |
4331 | if test $ac_prog_rejected = yes; then |
4332 | # We found a bogon in the path, so make sure we never use it. | |
4333 | set dummy $ac_cv_prog_CC | |
4334 | shift | |
1c710c3c | 4335 | if test $# != 0; then |
55ffb5ed NN |
4336 | # We chose a different compiler from the bogus one. |
4337 | # However, it has the same basename, so the bogon will be chosen | |
4338 | # first if we set CC to just the basename; use the full file name. | |
4339 | shift | |
1c710c3c | 4340 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4341 | fi |
4342 | fi | |
4343 | fi | |
4344 | fi | |
1c710c3c | 4345 | CC=$ac_cv_prog_CC |
55ffb5ed | 4346 | if test -n "$CC"; then |
5213506e RW |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4348 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4349 | else |
5213506e RW |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4351 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4352 | fi |
4353 | ||
5213506e | 4354 | |
1c710c3c DJ |
4355 | fi |
4356 | if test -z "$CC"; then | |
4357 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4358 | for ac_prog in cl.exe |
1c710c3c DJ |
4359 | do |
4360 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4361 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4363 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4364 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4365 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4366 | else |
4367 | if test -n "$CC"; then | |
4368 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4369 | else | |
1c710c3c DJ |
4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4371 | for as_dir in $PATH | |
4372 | do | |
4373 | IFS=$as_save_IFS | |
4374 | test -z "$as_dir" && as_dir=. | |
5213506e | 4375 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4377 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4379 | break 2 |
4380 | fi | |
4381 | done | |
5213506e RW |
4382 | done |
4383 | IFS=$as_save_IFS | |
1c710c3c | 4384 | |
55ffb5ed NN |
4385 | fi |
4386 | fi | |
1c710c3c | 4387 | CC=$ac_cv_prog_CC |
55ffb5ed | 4388 | if test -n "$CC"; then |
5213506e RW |
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4390 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4391 | else |
5213506e RW |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4393 | $as_echo "no" >&6; } | |
fb0103e5 | 4394 | fi |
af71363e | 4395 | |
5213506e | 4396 | |
1c710c3c DJ |
4397 | test -n "$CC" && break |
4398 | done | |
af71363e | 4399 | fi |
1c710c3c DJ |
4400 | if test -z "$CC"; then |
4401 | ac_ct_CC=$CC | |
5213506e | 4402 | for ac_prog in cl.exe |
1c710c3c DJ |
4403 | do |
4404 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4405 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4407 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4408 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4409 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4410 | else |
1c710c3c DJ |
4411 | if test -n "$ac_ct_CC"; then |
4412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4413 | else |
1c710c3c DJ |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
5213506e | 4419 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4421 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4423 | break 2 |
4424 | fi | |
4425 | done | |
5213506e RW |
4426 | done |
4427 | IFS=$as_save_IFS | |
1c710c3c | 4428 | |
af71363e AS |
4429 | fi |
4430 | fi | |
1c710c3c DJ |
4431 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4432 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4434 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4435 | else |
5213506e RW |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4437 | $as_echo "no" >&6; } | |
af71363e | 4438 | fi |
0b0dc272 | 4439 | |
5213506e | 4440 | |
1c710c3c DJ |
4441 | test -n "$ac_ct_CC" && break |
4442 | done | |
4443 | ||
5213506e RW |
4444 | if test "x$ac_ct_CC" = x; then |
4445 | CC="" | |
4446 | else | |
4447 | case $cross_compiling:$ac_tool_warned in | |
4448 | yes:) | |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4451 | ac_tool_warned=yes ;; | |
4452 | esac | |
4453 | CC=$ac_ct_CC | |
4454 | fi | |
1c710c3c DJ |
4455 | fi |
4456 | ||
4457 | fi | |
4458 | ||
4459 | ||
5213506e RW |
4460 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4462 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4463 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4464 | |
4465 | # Provide some information about the compiler. | |
5213506e RW |
4466 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4467 | set X $ac_compile | |
4468 | ac_compiler=$2 | |
4469 | for ac_option in --version -v -V -qversion; do | |
4470 | { { ac_try="$ac_compiler $ac_option >&5" | |
4471 | case "(($ac_try" in | |
4472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4473 | *) ac_try_echo=$ac_try;; | |
4474 | esac | |
4475 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4476 | $as_echo "$ac_try_echo"; } >&5 | |
4477 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4478 | ac_status=$? |
5213506e RW |
4479 | if test -s conftest.err; then |
4480 | sed '10a\ | |
4481 | ... rest of stderr output deleted ... | |
4482 | 10q' conftest.err >conftest.er1 | |
4483 | cat conftest.er1 >&5 | |
5213506e | 4484 | fi |
22e05272 | 4485 | rm -f conftest.er1 conftest.err |
5213506e RW |
4486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4487 | test $ac_status = 0; } | |
4488 | done | |
1c710c3c | 4489 | |
5213506e | 4490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4491 | /* end confdefs.h. */ |
4492 | ||
4493 | int | |
4494 | main () | |
4495 | { | |
4496 | ||
4497 | ; | |
4498 | return 0; | |
4499 | } | |
4500 | _ACEOF | |
4501 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4502 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4503 | # Try to create an executable without -o first, disregard a.out. |
4504 | # It will help us diagnose broken compilers, and finding out an intuition | |
4505 | # of exeext. | |
22e05272 JM |
4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4507 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4508 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4509 | ||
4510 | # The possible output files: | |
4511 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4512 | ||
4513 | ac_rmfiles= | |
4514 | for ac_file in $ac_files | |
4515 | do | |
4516 | case $ac_file in | |
4517 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4518 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4519 | esac | |
4520 | done | |
4521 | rm -f $ac_rmfiles | |
4522 | ||
4523 | if { { ac_try="$ac_link_default" | |
4524 | case "(($ac_try" in | |
4525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4526 | *) ac_try_echo=$ac_try;; | |
4527 | esac | |
4528 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4529 | $as_echo "$ac_try_echo"; } >&5 | |
4530 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4531 | ac_status=$? |
5213506e RW |
4532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4533 | test $ac_status = 0; }; then : | |
4534 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4535 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4536 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4537 | # so that the user can short-circuit this test for compilers unknown to | |
4538 | # Autoconf. | |
4539 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4540 | do |
4541 | test -f "$ac_file" || continue | |
4542 | case $ac_file in | |
5213506e | 4543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4544 | ;; |
4545 | [ab].out ) | |
4546 | # We found the default executable, but exeext='' is most | |
4547 | # certainly right. | |
4548 | break;; | |
4549 | *.* ) | |
5213506e RW |
4550 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4551 | then :; else | |
4552 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4553 | fi | |
4554 | # We set ac_cv_exeext here because the later test for it is not | |
4555 | # safe: cross compilers may not add the suffix if given an `-o' | |
4556 | # argument, so we may need to know it at that point already. | |
4557 | # Even if this section looks crufty: it has the advantage of | |
4558 | # actually working. | |
1c710c3c DJ |
4559 | break;; |
4560 | * ) | |
4561 | break;; | |
4562 | esac | |
4563 | done | |
5213506e RW |
4564 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4565 | ||
1c710c3c | 4566 | else |
5213506e RW |
4567 | ac_file='' |
4568 | fi | |
5213506e | 4569 | if test -z "$ac_file"; then : |
22e05272 JM |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4571 | $as_echo "no" >&6; } | |
4572 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4573 | sed 's/^/| /' conftest.$ac_ext >&5 |
4574 | ||
5213506e RW |
4575 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4577 | as_fn_error 77 "C compiler cannot create executables |
4578 | See \`config.log' for more details" "$LINENO" 5; } | |
4579 | else | |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4581 | $as_echo "yes" >&6; } | |
1c710c3c | 4582 | fi |
22e05272 JM |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4584 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4586 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4587 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4588 | |
22e05272 | 4589 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4590 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4592 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4593 | if { { ac_try="$ac_link" | |
4594 | case "(($ac_try" in | |
4595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4596 | *) ac_try_echo=$ac_try;; | |
4597 | esac | |
4598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4599 | $as_echo "$ac_try_echo"; } >&5 | |
4600 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4601 | ac_status=$? |
5213506e RW |
4602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4603 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4604 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4605 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4606 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4607 | # `rm'. | |
4608 | for ac_file in conftest.exe conftest conftest.*; do | |
4609 | test -f "$ac_file" || continue | |
4610 | case $ac_file in | |
5213506e | 4611 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4612 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4613 | break;; |
4614 | * ) break;; | |
4615 | esac | |
4616 | done | |
af71363e | 4617 | else |
5213506e RW |
4618 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4619 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4620 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4621 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4622 | fi |
22e05272 | 4623 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4625 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4626 | |
4627 | rm -f conftest.$ac_ext | |
4628 | EXEEXT=$ac_cv_exeext | |
4629 | ac_exeext=$EXEEXT | |
22e05272 JM |
4630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4631 | /* end confdefs.h. */ | |
4632 | #include <stdio.h> | |
4633 | int | |
4634 | main () | |
4635 | { | |
4636 | FILE *f = fopen ("conftest.out", "w"); | |
4637 | return ferror (f) || fclose (f) != 0; | |
4638 | ||
4639 | ; | |
4640 | return 0; | |
4641 | } | |
4642 | _ACEOF | |
4643 | ac_clean_files="$ac_clean_files conftest.out" | |
4644 | # Check that the compiler produces executables we can run. If not, either | |
4645 | # the compiler is broken, or we cross compile. | |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4647 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4648 | if test "$cross_compiling" != yes; then | |
4649 | { { ac_try="$ac_link" | |
4650 | case "(($ac_try" in | |
4651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4652 | *) ac_try_echo=$ac_try;; | |
4653 | esac | |
4654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4655 | $as_echo "$ac_try_echo"; } >&5 | |
4656 | (eval "$ac_link") 2>&5 | |
4657 | ac_status=$? | |
4658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4659 | test $ac_status = 0; } | |
4660 | if { ac_try='./conftest$ac_cv_exeext' | |
4661 | { { case "(($ac_try" in | |
4662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4663 | *) ac_try_echo=$ac_try;; | |
4664 | esac | |
4665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4666 | $as_echo "$ac_try_echo"; } >&5 | |
4667 | (eval "$ac_try") 2>&5 | |
4668 | ac_status=$? | |
4669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4670 | test $ac_status = 0; }; }; then | |
4671 | cross_compiling=no | |
4672 | else | |
4673 | if test "$cross_compiling" = maybe; then | |
4674 | cross_compiling=yes | |
4675 | else | |
4676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4678 | as_fn_error $? "cannot run C compiled programs. | |
4679 | If you meant to cross compile, use \`--host'. | |
4680 | See \`config.log' for more details" "$LINENO" 5; } | |
4681 | fi | |
4682 | fi | |
4683 | fi | |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4685 | $as_echo "$cross_compiling" >&6; } | |
4686 | ||
4687 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4688 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4690 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4691 | if ${ac_cv_objext+:} false; then : |
5213506e | 4692 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4693 | else |
5213506e | 4694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4695 | /* end confdefs.h. */ |
4696 | ||
4697 | int | |
4698 | main () | |
4699 | { | |
4700 | ||
4701 | ; | |
4702 | return 0; | |
4703 | } | |
4704 | _ACEOF | |
4705 | rm -f conftest.o conftest.obj | |
5213506e RW |
4706 | if { { ac_try="$ac_compile" |
4707 | case "(($ac_try" in | |
4708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4709 | *) ac_try_echo=$ac_try;; | |
4710 | esac | |
4711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4712 | $as_echo "$ac_try_echo"; } >&5 | |
4713 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4714 | ac_status=$? |
5213506e RW |
4715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4716 | test $ac_status = 0; }; then : | |
4717 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4718 | test -f "$ac_file" || continue; | |
1c710c3c | 4719 | case $ac_file in |
5213506e | 4720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4721 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4722 | break;; | |
4723 | esac | |
4724 | done | |
4725 | else | |
5213506e | 4726 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4727 | sed 's/^/| /' conftest.$ac_ext >&5 |
4728 | ||
5213506e RW |
4729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4731 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4732 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4733 | fi |
1c710c3c DJ |
4734 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4735 | fi | |
5213506e RW |
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4737 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4738 | OBJEXT=$ac_cv_objext |
4739 | ac_objext=$OBJEXT | |
5213506e RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4741 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4742 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4743 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4744 | else |
5213506e | 4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4746 | /* end confdefs.h. */ |
4747 | ||
4748 | int | |
4749 | main () | |
4750 | { | |
4751 | #ifndef __GNUC__ | |
4752 | choke me | |
4753 | #endif | |
4754 | ||
4755 | ; | |
4756 | return 0; | |
4757 | } | |
4758 | _ACEOF | |
5213506e | 4759 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4760 | ac_compiler_gnu=yes |
4761 | else | |
5213506e | 4762 | ac_compiler_gnu=no |
1c710c3c | 4763 | fi |
5213506e | 4764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4765 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4766 | ||
4767 | fi | |
5213506e RW |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4769 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4770 | if test $ac_compiler_gnu = yes; then | |
4771 | GCC=yes | |
4772 | else | |
4773 | GCC= | |
4774 | fi | |
1c710c3c DJ |
4775 | ac_test_CFLAGS=${CFLAGS+set} |
4776 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4778 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4779 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4780 | $as_echo_n "(cached) " >&6 |
4781 | else | |
4782 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4783 | ac_c_werror_flag=yes | |
4784 | ac_cv_prog_cc_g=no | |
4785 | CFLAGS="-g" | |
4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4787 | /* end confdefs.h. */ |
4788 | ||
4789 | int | |
4790 | main () | |
4791 | { | |
4792 | ||
4793 | ; | |
4794 | return 0; | |
4795 | } | |
4796 | _ACEOF | |
5213506e | 4797 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4798 | ac_cv_prog_cc_g=yes |
4799 | else | |
5213506e RW |
4800 | CFLAGS="" |
4801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4802 | /* end confdefs.h. */ | |
4803 | ||
4804 | int | |
4805 | main () | |
4806 | { | |
4807 | ||
4808 | ; | |
4809 | return 0; | |
4810 | } | |
4811 | _ACEOF | |
4812 | if ac_fn_c_try_compile "$LINENO"; then : | |
4813 | ||
4814 | else | |
4815 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4816 | CFLAGS="-g" | |
4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4818 | /* end confdefs.h. */ | |
af71363e | 4819 | |
5213506e RW |
4820 | int |
4821 | main () | |
4822 | { | |
4823 | ||
4824 | ; | |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
4828 | if ac_fn_c_try_compile "$LINENO"; then : | |
4829 | ac_cv_prog_cc_g=yes | |
4830 | fi | |
4831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4832 | fi |
5213506e | 4833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4834 | fi |
5213506e RW |
4835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4836 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4837 | fi | |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4839 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4840 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4841 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4842 | elif test $ac_cv_prog_cc_g = yes; then |
4843 | if test "$GCC" = yes; then | |
4844 | CFLAGS="-g -O2" | |
4845 | else | |
4846 | CFLAGS="-g" | |
4847 | fi | |
4848 | else | |
4849 | if test "$GCC" = yes; then | |
4850 | CFLAGS="-O2" | |
4851 | else | |
4852 | CFLAGS= | |
4853 | fi | |
4854 | fi | |
5213506e RW |
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4856 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4857 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4858 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4859 | else |
5213506e | 4860 | ac_cv_prog_cc_c89=no |
1c710c3c | 4861 | ac_save_CC=$CC |
5213506e | 4862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4863 | /* end confdefs.h. */ |
4864 | #include <stdarg.h> | |
4865 | #include <stdio.h> | |
22e05272 | 4866 | struct stat; |
1c710c3c DJ |
4867 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4868 | struct buf { int x; }; | |
4869 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4870 | static char *e (p, i) | |
4871 | char **p; | |
4872 | int i; | |
4873 | { | |
4874 | return p[i]; | |
4875 | } | |
4876 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4877 | { | |
4878 | char *s; | |
4879 | va_list v; | |
4880 | va_start (v,p); | |
4881 | s = g (p, va_arg (v,int)); | |
4882 | va_end (v); | |
4883 | return s; | |
4884 | } | |
4885 | ||
4886 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4887 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4888 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4889 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4890 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4891 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4892 | that's true only with -std. */ |
1c710c3c DJ |
4893 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4894 | ||
5213506e RW |
4895 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4896 | inside strings and character constants. */ | |
4897 | #define FOO(x) 'x' | |
4898 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4899 | ||
1c710c3c DJ |
4900 | int test (int i, double x); |
4901 | struct s1 {int (*f) (int a);}; | |
4902 | struct s2 {int (*f) (double a);}; | |
4903 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4904 | int argc; | |
4905 | char **argv; | |
4906 | int | |
4907 | main () | |
4908 | { | |
4909 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4910 | ; | |
4911 | return 0; | |
4912 | } | |
4913 | _ACEOF | |
5213506e RW |
4914 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4915 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4916 | do |
4917 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4918 | if ac_fn_c_try_compile "$LINENO"; then : |
4919 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4920 | fi |
5213506e RW |
4921 | rm -f core conftest.err conftest.$ac_objext |
4922 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4923 | done |
5213506e | 4924 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4925 | CC=$ac_save_CC |
4926 | ||
4927 | fi | |
5213506e RW |
4928 | # AC_CACHE_VAL |
4929 | case "x$ac_cv_prog_cc_c89" in | |
4930 | x) | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4932 | $as_echo "none needed" >&6; } ;; | |
4933 | xno) | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4935 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4936 | *) |
5213506e RW |
4937 | CC="$CC $ac_cv_prog_cc_c89" |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4939 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4940 | esac |
5213506e | 4941 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4942 | |
2aeb72e9 DD |
4943 | fi |
4944 | ||
2aeb72e9 DD |
4945 | ac_ext=c |
4946 | ac_cpp='$CPP $CPPFLAGS' | |
4947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4950 | ||
91743432 NC |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4952 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4953 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4954 | $as_echo_n "(cached) " >&6 | |
4955 | else | |
4956 | ac_cv_prog_cc_c99=no | |
4957 | ac_save_CC=$CC | |
4958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4959 | /* end confdefs.h. */ | |
4960 | #include <stdarg.h> | |
4961 | #include <stdbool.h> | |
4962 | #include <stdlib.h> | |
4963 | #include <wchar.h> | |
4964 | #include <stdio.h> | |
4965 | ||
4966 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4967 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4968 | #define showlist(...) puts (#__VA_ARGS__) | |
4969 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4970 | static void | |
4971 | test_varargs_macros (void) | |
4972 | { | |
4973 | int x = 1234; | |
4974 | int y = 5678; | |
4975 | debug ("Flag"); | |
4976 | debug ("X = %d\n", x); | |
4977 | showlist (The first, second, and third items.); | |
4978 | report (x>y, "x is %d but y is %d", x, y); | |
4979 | } | |
4980 | ||
4981 | // Check long long types. | |
4982 | #define BIG64 18446744073709551615ull | |
4983 | #define BIG32 4294967295ul | |
4984 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4985 | #if !BIG_OK | |
4986 | your preprocessor is broken; | |
4987 | #endif | |
4988 | #if BIG_OK | |
4989 | #else | |
4990 | your preprocessor is broken; | |
4991 | #endif | |
4992 | static long long int bignum = -9223372036854775807LL; | |
4993 | static unsigned long long int ubignum = BIG64; | |
4994 | ||
4995 | struct incomplete_array | |
4996 | { | |
4997 | int datasize; | |
4998 | double data[]; | |
4999 | }; | |
5000 | ||
5001 | struct named_init { | |
5002 | int number; | |
5003 | const wchar_t *name; | |
5004 | double average; | |
5005 | }; | |
5006 | ||
5007 | typedef const char *ccp; | |
5008 | ||
5009 | static inline int | |
5010 | test_restrict (ccp restrict text) | |
5011 | { | |
5012 | // See if C++-style comments work. | |
5013 | // Iterate through items via the restricted pointer. | |
5014 | // Also check for declarations in for loops. | |
5015 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5016 | continue; | |
5017 | return 0; | |
5018 | } | |
5019 | ||
5020 | // Check varargs and va_copy. | |
5021 | static void | |
5022 | test_varargs (const char *format, ...) | |
5023 | { | |
5024 | va_list args; | |
5025 | va_start (args, format); | |
5026 | va_list args_copy; | |
5027 | va_copy (args_copy, args); | |
5028 | ||
5029 | const char *str; | |
5030 | int number; | |
5031 | float fnumber; | |
5032 | ||
5033 | while (*format) | |
5034 | { | |
5035 | switch (*format++) | |
5036 | { | |
5037 | case 's': // string | |
5038 | str = va_arg (args_copy, const char *); | |
5039 | break; | |
5040 | case 'd': // int | |
5041 | number = va_arg (args_copy, int); | |
5042 | break; | |
5043 | case 'f': // float | |
5044 | fnumber = va_arg (args_copy, double); | |
5045 | break; | |
5046 | default: | |
5047 | break; | |
5048 | } | |
5049 | } | |
5050 | va_end (args_copy); | |
5051 | va_end (args); | |
5052 | } | |
5053 | ||
5054 | int | |
5055 | main () | |
5056 | { | |
5057 | ||
5058 | // Check bool. | |
5059 | _Bool success = false; | |
5060 | ||
5061 | // Check restrict. | |
5062 | if (test_restrict ("String literal") == 0) | |
5063 | success = true; | |
5064 | char *restrict newvar = "Another string"; | |
5065 | ||
5066 | // Check varargs. | |
5067 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5068 | test_varargs_macros (); | |
5069 | ||
5070 | // Check flexible array members. | |
5071 | struct incomplete_array *ia = | |
5072 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5073 | ia->datasize = 10; | |
5074 | for (int i = 0; i < ia->datasize; ++i) | |
5075 | ia->data[i] = i * 1.234; | |
5076 | ||
5077 | // Check named initializers. | |
5078 | struct named_init ni = { | |
5079 | .number = 34, | |
5080 | .name = L"Test wide string", | |
5081 | .average = 543.34343, | |
5082 | }; | |
5083 | ||
5084 | ni.number = 58; | |
5085 | ||
5086 | int dynamic_array[ni.number]; | |
5087 | dynamic_array[ni.number - 1] = 543; | |
5088 | ||
5089 | // work around unused variable warnings | |
5090 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5091 | || dynamic_array[ni.number - 1] != 543); | |
5092 | ||
5093 | ; | |
5094 | return 0; | |
5095 | } | |
5096 | _ACEOF | |
5097 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5098 | do | |
5099 | CC="$ac_save_CC $ac_arg" | |
5100 | if ac_fn_c_try_compile "$LINENO"; then : | |
5101 | ac_cv_prog_cc_c99=$ac_arg | |
5102 | fi | |
5103 | rm -f core conftest.err conftest.$ac_objext | |
5104 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5105 | done | |
5106 | rm -f conftest.$ac_ext | |
5107 | CC=$ac_save_CC | |
5108 | ||
5109 | fi | |
5110 | # AC_CACHE_VAL | |
5111 | case "x$ac_cv_prog_cc_c99" in | |
5112 | x) | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5114 | $as_echo "none needed" >&6; } ;; | |
5115 | xno) | |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5117 | $as_echo "unsupported" >&6; } ;; | |
5118 | *) | |
5119 | CC="$CC $ac_cv_prog_cc_c99" | |
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5121 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5122 | esac | |
5123 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5124 | ||
5125 | fi | |
5126 | ||
5127 | ||
5213506e | 5128 | ac_ext=cpp |
2aeb72e9 DD |
5129 | ac_cpp='$CXXCPP $CPPFLAGS' |
5130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5133 | if test -z "$CXX"; then |
5134 | if test -n "$CCC"; then | |
5135 | CXX=$CCC | |
5136 | else | |
5137 | if test -n "$ac_tool_prefix"; then | |
5138 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5139 | do |
5140 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5141 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5143 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5144 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5145 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5146 | else |
5147 | if test -n "$CXX"; then | |
5148 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5149 | else | |
5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5151 | for as_dir in $PATH | |
5152 | do | |
5153 | IFS=$as_save_IFS | |
5154 | test -z "$as_dir" && as_dir=. | |
5213506e | 5155 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5157 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5159 | break 2 |
5160 | fi | |
5161 | done | |
5213506e RW |
5162 | done |
5163 | IFS=$as_save_IFS | |
55ffb5ed | 5164 | |
c3a86da9 DJ |
5165 | fi |
5166 | fi | |
5167 | CXX=$ac_cv_prog_CXX | |
5168 | if test -n "$CXX"; then | |
5213506e RW |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5170 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5171 | else |
5213506e RW |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5173 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5174 | fi |
5175 | ||
5213506e | 5176 | |
c3a86da9 DJ |
5177 | test -n "$CXX" && break |
5178 | done | |
5179 | fi | |
5180 | if test -z "$CXX"; then | |
5181 | ac_ct_CXX=$CXX | |
5213506e | 5182 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5183 | do |
5184 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5185 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5187 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5188 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5189 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5190 | else |
5191 | if test -n "$ac_ct_CXX"; then | |
5192 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5193 | else | |
5194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5195 | for as_dir in $PATH | |
5196 | do | |
5197 | IFS=$as_save_IFS | |
5198 | test -z "$as_dir" && as_dir=. | |
5213506e | 5199 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5200 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5201 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5203 | break 2 |
5204 | fi | |
5205 | done | |
5213506e RW |
5206 | done |
5207 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5208 | |
5209 | fi | |
5210 | fi | |
5211 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5212 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5214 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5215 | else |
5213506e RW |
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5217 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5218 | fi |
5219 | ||
5213506e | 5220 | |
c3a86da9 DJ |
5221 | test -n "$ac_ct_CXX" && break |
5222 | done | |
c3a86da9 | 5223 | |
5213506e RW |
5224 | if test "x$ac_ct_CXX" = x; then |
5225 | CXX="g++" | |
5226 | else | |
5227 | case $cross_compiling:$ac_tool_warned in | |
5228 | yes:) | |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5230 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5231 | ac_tool_warned=yes ;; | |
5232 | esac | |
5233 | CXX=$ac_ct_CXX | |
5234 | fi | |
c3a86da9 DJ |
5235 | fi |
5236 | ||
5213506e RW |
5237 | fi |
5238 | fi | |
c3a86da9 | 5239 | # Provide some information about the compiler. |
5213506e RW |
5240 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5241 | set X $ac_compile | |
5242 | ac_compiler=$2 | |
5243 | for ac_option in --version -v -V -qversion; do | |
5244 | { { ac_try="$ac_compiler $ac_option >&5" | |
5245 | case "(($ac_try" in | |
5246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5247 | *) ac_try_echo=$ac_try;; | |
5248 | esac | |
5249 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5250 | $as_echo "$ac_try_echo"; } >&5 | |
5251 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5252 | ac_status=$? |
5213506e RW |
5253 | if test -s conftest.err; then |
5254 | sed '10a\ | |
5255 | ... rest of stderr output deleted ... | |
5256 | 10q' conftest.err >conftest.er1 | |
5257 | cat conftest.er1 >&5 | |
5213506e | 5258 | fi |
22e05272 | 5259 | rm -f conftest.er1 conftest.err |
5213506e RW |
5260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5261 | test $ac_status = 0; } | |
5262 | done | |
c3a86da9 | 5263 | |
5213506e RW |
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5265 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5266 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5267 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5268 | else |
5213506e | 5269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5270 | /* end confdefs.h. */ |
5271 | ||
5272 | int | |
5273 | main () | |
5274 | { | |
5275 | #ifndef __GNUC__ | |
5276 | choke me | |
5277 | #endif | |
5278 | ||
5279 | ; | |
5280 | return 0; | |
5281 | } | |
5282 | _ACEOF | |
5213506e | 5283 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5284 | ac_compiler_gnu=yes |
5285 | else | |
5213506e | 5286 | ac_compiler_gnu=no |
c3a86da9 | 5287 | fi |
5213506e | 5288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5289 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5290 | ||
5291 | fi | |
5213506e RW |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5293 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5294 | if test $ac_compiler_gnu = yes; then | |
5295 | GXX=yes | |
5296 | else | |
5297 | GXX= | |
5298 | fi | |
c3a86da9 DJ |
5299 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5300 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5302 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5303 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5304 | $as_echo_n "(cached) " >&6 |
5305 | else | |
5306 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5307 | ac_cxx_werror_flag=yes | |
5308 | ac_cv_prog_cxx_g=no | |
5309 | CXXFLAGS="-g" | |
5310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5311 | /* end confdefs.h. */ |
5312 | ||
5313 | int | |
5314 | main () | |
5315 | { | |
5316 | ||
5317 | ; | |
5318 | return 0; | |
5319 | } | |
5320 | _ACEOF | |
5213506e | 5321 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5322 | ac_cv_prog_cxx_g=yes |
5323 | else | |
5213506e RW |
5324 | CXXFLAGS="" |
5325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5326 | /* end confdefs.h. */ |
5213506e | 5327 | |
c3a86da9 DJ |
5328 | int |
5329 | main () | |
5330 | { | |
5213506e | 5331 | |
c3a86da9 DJ |
5332 | ; |
5333 | return 0; | |
5334 | } | |
5335 | _ACEOF | |
5213506e | 5336 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5337 | |
5213506e RW |
5338 | else |
5339 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5340 | CXXFLAGS="-g" | |
5341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5342 | /* end confdefs.h. */ |
5213506e | 5343 | |
c3a86da9 DJ |
5344 | int |
5345 | main () | |
5346 | { | |
5213506e | 5347 | |
c3a86da9 DJ |
5348 | ; |
5349 | return 0; | |
5350 | } | |
5351 | _ACEOF | |
5213506e RW |
5352 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5353 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5354 | fi |
5213506e RW |
5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5356 | fi | |
5357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5358 | fi | |
5359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5360 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5361 | fi | |
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5363 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5364 | if test "$ac_test_CXXFLAGS" = set; then | |
5365 | CXXFLAGS=$ac_save_CXXFLAGS | |
5366 | elif test $ac_cv_prog_cxx_g = yes; then | |
5367 | if test "$GXX" = yes; then | |
5368 | CXXFLAGS="-g -O2" | |
5369 | else | |
5370 | CXXFLAGS="-g" | |
5371 | fi | |
5372 | else | |
5373 | if test "$GXX" = yes; then | |
5374 | CXXFLAGS="-O2" | |
5375 | else | |
5376 | CXXFLAGS= | |
5377 | fi | |
c3a86da9 | 5378 | fi |
c3a86da9 DJ |
5379 | ac_ext=c |
5380 | ac_cpp='$CPP $CPPFLAGS' | |
5381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5384 | ||
5385 | ||
5386 | # We must set the default linker to the linker used by gcc for the correct | |
5387 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5388 | # set the LD default to the ld used by gcc. | |
5389 | if test -z "$LD"; then | |
5390 | if test "$GCC" = yes; then | |
5391 | case $build in | |
5392 | *-*-mingw*) | |
5393 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5394 | *) | |
5395 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5396 | esac | |
5397 | case $gcc_prog_ld in | |
5398 | # Accept absolute paths. | |
5399 | [\\/]* | [A-Za-z]:[\\/]*) | |
5400 | LD="$gcc_prog_ld" ;; | |
5401 | esac | |
5402 | fi | |
23f6b2f9 PB |
5403 | fi |
5404 | ||
0b21f5d3 EB |
5405 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5406 | have_static_libs=no | |
5407 | if test "$GCC" = yes; then | |
5408 | saved_LDFLAGS="$LDFLAGS" | |
5409 | ||
5410 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5412 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5413 | ac_ext=cpp | |
5414 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5415 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5416 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5417 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5418 | ||
5419 | ||
5420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5421 | /* end confdefs.h. */ | |
0d6414b2 EB |
5422 | |
5423 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5424 | #error -static-libstdc++ not implemented | |
5425 | #endif | |
0b21f5d3 EB |
5426 | int main() {} |
5427 | _ACEOF | |
5428 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5430 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5431 | else | |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5433 | $as_echo "no" >&6; } | |
5434 | fi | |
5435 | rm -f core conftest.err conftest.$ac_objext \ | |
5436 | conftest$ac_exeext conftest.$ac_ext | |
5437 | ac_ext=c | |
5438 | ac_cpp='$CPP $CPPFLAGS' | |
5439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5442 | ||
5443 | ||
5444 | LDFLAGS="$saved_LDFLAGS" | |
5445 | fi | |
5446 | ||
23f6b2f9 PB |
5447 | |
5448 | ||
55ffb5ed | 5449 | |
1c710c3c DJ |
5450 | if test -n "$ac_tool_prefix"; then |
5451 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5452 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5454 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5455 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5456 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5457 | else |
5458 | if test -n "$GNATBIND"; then | |
5459 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5460 | else | |
1c710c3c DJ |
5461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5462 | for as_dir in $PATH | |
5463 | do | |
5464 | IFS=$as_save_IFS | |
5465 | test -z "$as_dir" && as_dir=. | |
5213506e | 5466 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5468 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5470 | break 2 |
5471 | fi | |
5472 | done | |
5213506e RW |
5473 | done |
5474 | IFS=$as_save_IFS | |
1c710c3c | 5475 | |
55ffb5ed NN |
5476 | fi |
5477 | fi | |
1c710c3c | 5478 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5479 | if test -n "$GNATBIND"; then |
5213506e RW |
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5481 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5482 | else |
5213506e RW |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5484 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5485 | fi |
5486 | ||
5213506e | 5487 | |
1c710c3c | 5488 | fi |
55ffb5ed | 5489 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5490 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5491 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5492 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5494 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5495 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5496 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5497 | else |
1c710c3c DJ |
5498 | if test -n "$ac_ct_GNATBIND"; then |
5499 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5500 | else |
1c710c3c DJ |
5501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5502 | for as_dir in $PATH | |
5503 | do | |
5504 | IFS=$as_save_IFS | |
5505 | test -z "$as_dir" && as_dir=. | |
5213506e | 5506 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5508 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5510 | break 2 |
5511 | fi | |
5512 | done | |
5213506e RW |
5513 | done |
5514 | IFS=$as_save_IFS | |
1c710c3c | 5515 | |
55ffb5ed NN |
5516 | fi |
5517 | fi | |
1c710c3c DJ |
5518 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5519 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5521 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5522 | else |
5213506e RW |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5524 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5525 | fi |
5526 | ||
5213506e RW |
5527 | if test "x$ac_ct_GNATBIND" = x; then |
5528 | GNATBIND="no" | |
5529 | else | |
5530 | case $cross_compiling:$ac_tool_warned in | |
5531 | yes:) | |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5533 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5534 | ac_tool_warned=yes ;; | |
5535 | esac | |
5536 | GNATBIND=$ac_ct_GNATBIND | |
5537 | fi | |
55ffb5ed | 5538 | else |
1c710c3c | 5539 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5540 | fi |
5541 | ||
1c710c3c DJ |
5542 | if test -n "$ac_tool_prefix"; then |
5543 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5544 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5546 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5547 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5548 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5549 | else |
5550 | if test -n "$GNATMAKE"; then | |
5551 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5552 | else | |
1c710c3c DJ |
5553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5554 | for as_dir in $PATH | |
5555 | do | |
5556 | IFS=$as_save_IFS | |
5557 | test -z "$as_dir" && as_dir=. | |
5213506e | 5558 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5560 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5562 | break 2 |
5563 | fi | |
5564 | done | |
5213506e RW |
5565 | done |
5566 | IFS=$as_save_IFS | |
1c710c3c | 5567 | |
5305be7e RG |
5568 | fi |
5569 | fi | |
1c710c3c | 5570 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5571 | if test -n "$GNATMAKE"; then |
5213506e RW |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5573 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5574 | else |
5213506e RW |
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5576 | $as_echo "no" >&6; } | |
5305be7e RG |
5577 | fi |
5578 | ||
5213506e | 5579 | |
1c710c3c | 5580 | fi |
5305be7e | 5581 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5582 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5583 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5584 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5586 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5587 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5588 | $as_echo_n "(cached) " >&6 |
5305be7e | 5589 | else |
1c710c3c DJ |
5590 | if test -n "$ac_ct_GNATMAKE"; then |
5591 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5592 | else |
1c710c3c DJ |
5593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5594 | for as_dir in $PATH | |
5595 | do | |
5596 | IFS=$as_save_IFS | |
5597 | test -z "$as_dir" && as_dir=. | |
5213506e | 5598 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5600 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5602 | break 2 |
5603 | fi | |
5604 | done | |
5213506e RW |
5605 | done |
5606 | IFS=$as_save_IFS | |
1c710c3c | 5607 | |
5305be7e RG |
5608 | fi |
5609 | fi | |
1c710c3c DJ |
5610 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5611 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5613 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5614 | else |
5213506e RW |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5616 | $as_echo "no" >&6; } | |
5305be7e RG |
5617 | fi |
5618 | ||
5213506e RW |
5619 | if test "x$ac_ct_GNATMAKE" = x; then |
5620 | GNATMAKE="no" | |
5621 | else | |
5622 | case $cross_compiling:$ac_tool_warned in | |
5623 | yes:) | |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5625 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5626 | ac_tool_warned=yes ;; | |
5627 | esac | |
5628 | GNATMAKE=$ac_ct_GNATMAKE | |
5629 | fi | |
5305be7e | 5630 | else |
1c710c3c | 5631 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5632 | fi |
5633 | ||
71f068a9 RS |
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5635 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
22e05272 | 5636 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5637 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5638 | else |
5639 | cat >conftest.adb <<EOF | |
71f068a9 RS |
5640 | pragma Warnings (Off); |
5641 | with System.CRTL; | |
5642 | pragma Warnings (On); | |
5643 | use type System.CRTL.int64; | |
55ffb5ed NN |
5644 | procedure conftest is begin null; end conftest; |
5645 | EOF | |
5646 | acx_cv_cc_gcc_supports_ada=no | |
5647 | # There is a bug in old released versions of GCC which causes the | |
5648 | # driver to exit successfully when the appropriate language module | |
5649 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5650 | # Therefore we must check for the error message as well as an | |
5651 | # unsuccessful exit. | |
1db673ca RO |
5652 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5653 | # given a .adb file, but produce no object file. So we must check | |
5654 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5655 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5656 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5657 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5658 | fi |
5659 | rm -f conftest.* | |
5660 | fi | |
5213506e RW |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5662 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5663 | |
7cb62ef1 | 5664 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5665 | have_gnat=yes |
5666 | else | |
5667 | have_gnat=no | |
5668 | fi | |
5669 | ||
5fee5ec3 IB |
5670 | |
5671 | ||
5672 | if test -n "$ac_tool_prefix"; then | |
5673 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5674 | set dummy ${ac_tool_prefix}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_GDC+:} false; then : | |
5678 | $as_echo_n "(cached) " >&6 | |
5679 | else | |
5680 | if test -n "$GDC"; then | |
5681 | ac_cv_prog_GDC="$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_GDC="${ac_tool_prefix}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 | GDC=$ac_cv_prog_GDC | |
5701 | if test -n "$GDC"; then | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5703 | $as_echo "$GDC" >&6; } | |
5704 | else | |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5706 | $as_echo "no" >&6; } | |
5707 | fi | |
5708 | ||
5709 | ||
5710 | fi | |
5711 | if test -z "$ac_cv_prog_GDC"; then | |
5712 | ac_ct_GDC=$GDC | |
5713 | # Extract the first word of "gdc", so it can be a program name with args. | |
5714 | set dummy gdc; ac_word=$2 | |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5716 | $as_echo_n "checking for $ac_word... " >&6; } | |
5717 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5718 | $as_echo_n "(cached) " >&6 | |
5719 | else | |
5720 | if test -n "$ac_ct_GDC"; then | |
5721 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5722 | else | |
5723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5724 | for as_dir in $PATH | |
5725 | do | |
5726 | IFS=$as_save_IFS | |
5727 | test -z "$as_dir" && as_dir=. | |
5728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5730 | ac_cv_prog_ac_ct_GDC="gdc" | |
5731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5732 | break 2 | |
5733 | fi | |
5734 | done | |
5735 | done | |
5736 | IFS=$as_save_IFS | |
5737 | ||
5738 | fi | |
5739 | fi | |
5740 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5741 | if test -n "$ac_ct_GDC"; then | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5743 | $as_echo "$ac_ct_GDC" >&6; } | |
5744 | else | |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5746 | $as_echo "no" >&6; } | |
5747 | fi | |
5748 | ||
5749 | if test "x$ac_ct_GDC" = x; then | |
5750 | GDC="no" | |
5751 | else | |
5752 | case $cross_compiling:$ac_tool_warned in | |
5753 | yes:) | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5756 | ac_tool_warned=yes ;; | |
5757 | esac | |
5758 | GDC=$ac_ct_GDC | |
5759 | fi | |
5760 | else | |
5761 | GDC="$ac_cv_prog_GDC" | |
5762 | fi | |
5763 | ||
7c6ae994 IB |
5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 |
5765 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5766 | if ${acx_cv_d_compiler_works+:} false; then : | |
5767 | $as_echo_n "(cached) " >&6 | |
5768 | else | |
5769 | cat >conftest.d <<EOF | |
5770 | module conftest; int main() { return 0; } | |
5771 | EOF | |
5772 | acx_cv_d_compiler_works=no | |
5fee5ec3 | 5773 | if test "x$GDC" != xno; then |
7c6ae994 IB |
5774 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` |
5775 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5776 | acx_cv_d_compiler_works=yes | |
5777 | fi | |
5778 | rm -f conftest.* | |
5779 | fi | |
5780 | fi | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5782 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5783 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5fee5ec3 IB |
5784 | have_gdc=yes |
5785 | else | |
5786 | have_gdc=no | |
5787 | fi | |
5788 | ||
5213506e RW |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5790 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5791 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5792 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5793 | else |
5794 | echo abfoo >t1 | |
5795 | echo cdfoo >t2 | |
b55e6680 | 5796 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5797 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5798 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5799 | : | |
5800 | else | |
5801 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5802 | fi | |
5803 | fi | |
a76494aa PB |
5804 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5805 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5806 | : |
a76494aa PB |
5807 | else |
5808 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5809 | fi | |
5810 | fi | |
5811 | rm t1 t2 | |
5812 | ||
5813 | fi | |
5213506e RW |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5815 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5816 | do_compare="$gcc_cv_prog_cmp_skip" |
5817 | ||
5818 | ||
55ffb5ed | 5819 | |
ff3ac0f4 ILT |
5820 | # Check whether --enable-bootstrap was given. |
5821 | if test "${enable_bootstrap+set}" = set; then : | |
5822 | enableval=$enable_bootstrap; | |
5823 | else | |
5824 | enable_bootstrap=default | |
5825 | fi | |
5826 | ||
5827 | ||
5828 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5829 | if test -r $srcdir/gcc/configure; then |
5830 | have_compiler=yes | |
5831 | else | |
5832 | have_compiler=no | |
5833 | fi | |
ff3ac0f4 ILT |
5834 | |
5835 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5836 | *:*:*:no) ;; | |
5837 | ||
5838 | # Default behavior. Enable bootstrap if we have a compiler | |
5839 | # and we are in a native configuration. | |
5840 | yes:$build:$build:default) | |
5841 | enable_bootstrap=yes ;; | |
5842 | ||
5843 | *:*:*:default) | |
5844 | enable_bootstrap=no ;; | |
5845 | ||
5846 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5847 | yes:$build:$build:yes) | |
5848 | ;; | |
5849 | ||
5850 | # Other configurations, but we have a compiler. Assume the user knows | |
5851 | # what he's doing. | |
5852 | yes:*:*:yes) | |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5854 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5855 | ;; | |
5856 | ||
5857 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5858 | no:*:*:yes) | |
22e05272 | 5859 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5860 | |
5861 | # Fail if wrong command line | |
5862 | *) | |
22e05272 | 5863 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5864 | ;; |
5865 | esac | |
5866 | ||
5329b59a | 5867 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5868 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5869 | # require C++11 (or higher). | |
46070488 | 5870 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5871 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5872 | elif test "$have_compiler" = yes; then |
5873 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5874 | ac_ext=cpp | |
5875 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5876 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5877 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5879 | ac_success=no | |
5880 | ||
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5882 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5883 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5884 | $as_echo_n "(cached) " >&6 | |
5885 | else | |
5886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5887 | /* end confdefs.h. */ | |
5888 | ||
5889 | ||
5890 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5891 | // Hopefully, this will speed up the test. | |
5892 | ||
5893 | #ifndef __cplusplus | |
5894 | ||
5895 | #error "This is not a C++ compiler" | |
5896 | ||
5897 | #elif __cplusplus < 201103L | |
5898 | ||
5899 | #error "This is not a C++11 compiler" | |
5900 | ||
5901 | #else | |
5902 | ||
5903 | namespace cxx11 | |
5904 | { | |
5905 | ||
5906 | namespace test_static_assert | |
5907 | { | |
5908 | ||
5909 | template <typename T> | |
5910 | struct check | |
5911 | { | |
5912 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5913 | }; | |
5914 | ||
5915 | } | |
5916 | ||
5917 | namespace test_final_override | |
5918 | { | |
5919 | ||
5920 | struct Base | |
5921 | { | |
5922 | virtual ~Base() {} | |
5923 | virtual void f() {} | |
5924 | }; | |
5925 | ||
5926 | struct Derived : public Base | |
5927 | { | |
5928 | virtual ~Derived() override {} | |
5929 | virtual void f() override {} | |
5930 | }; | |
5931 | ||
5932 | } | |
5933 | ||
5934 | namespace test_double_right_angle_brackets | |
5935 | { | |
5936 | ||
5937 | template < typename T > | |
5938 | struct check {}; | |
5939 | ||
5940 | typedef check<void> single_type; | |
5941 | typedef check<check<void>> double_type; | |
5942 | typedef check<check<check<void>>> triple_type; | |
5943 | typedef check<check<check<check<void>>>> quadruple_type; | |
5944 | ||
5945 | } | |
5946 | ||
5947 | namespace test_decltype | |
5948 | { | |
5949 | ||
5950 | int | |
5951 | f() | |
5952 | { | |
5953 | int a = 1; | |
5954 | decltype(a) b = 2; | |
5955 | return a + b; | |
5956 | } | |
5957 | ||
5958 | } | |
5959 | ||
5960 | namespace test_type_deduction | |
5961 | { | |
5962 | ||
5963 | template < typename T1, typename T2 > | |
5964 | struct is_same | |
5965 | { | |
5966 | static const bool value = false; | |
5967 | }; | |
5968 | ||
5969 | template < typename T > | |
5970 | struct is_same<T, T> | |
5971 | { | |
5972 | static const bool value = true; | |
5973 | }; | |
5974 | ||
5975 | template < typename T1, typename T2 > | |
5976 | auto | |
5977 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5978 | { | |
5979 | return a1 + a2; | |
5980 | } | |
5981 | ||
5982 | int | |
5983 | test(const int c, volatile int v) | |
5984 | { | |
5985 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5986 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5987 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5988 | auto ac = c; | |
5989 | auto av = v; | |
5990 | auto sumi = ac + av + 'x'; | |
5991 | auto sumf = ac + av + 1.0; | |
5992 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5993 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5994 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5995 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5996 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5997 | return (sumf > 0.0) ? sumi : add(c, v); | |
5998 | } | |
5999 | ||
6000 | } | |
6001 | ||
6002 | namespace test_noexcept | |
6003 | { | |
6004 | ||
6005 | int f() { return 0; } | |
6006 | int g() noexcept { return 0; } | |
6007 | ||
6008 | static_assert(noexcept(f()) == false, ""); | |
6009 | static_assert(noexcept(g()) == true, ""); | |
6010 | ||
6011 | } | |
6012 | ||
6013 | namespace test_constexpr | |
6014 | { | |
6015 | ||
6016 | template < typename CharT > | |
6017 | unsigned long constexpr | |
6018 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6019 | { | |
6020 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6021 | } | |
6022 | ||
6023 | template < typename CharT > | |
6024 | unsigned long constexpr | |
6025 | strlen_c(const CharT *const s) noexcept | |
6026 | { | |
6027 | return strlen_c_r(s, 0UL); | |
6028 | } | |
6029 | ||
6030 | static_assert(strlen_c("") == 0UL, ""); | |
6031 | static_assert(strlen_c("1") == 1UL, ""); | |
6032 | static_assert(strlen_c("example") == 7UL, ""); | |
6033 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6034 | ||
6035 | } | |
6036 | ||
6037 | namespace test_rvalue_references | |
6038 | { | |
6039 | ||
6040 | template < int N > | |
6041 | struct answer | |
6042 | { | |
6043 | static constexpr int value = N; | |
6044 | }; | |
6045 | ||
6046 | answer<1> f(int&) { return answer<1>(); } | |
6047 | answer<2> f(const int&) { return answer<2>(); } | |
6048 | answer<3> f(int&&) { return answer<3>(); } | |
6049 | ||
6050 | void | |
6051 | test() | |
6052 | { | |
6053 | int i = 0; | |
6054 | const int c = 0; | |
6055 | static_assert(decltype(f(i))::value == 1, ""); | |
6056 | static_assert(decltype(f(c))::value == 2, ""); | |
6057 | static_assert(decltype(f(0))::value == 3, ""); | |
6058 | } | |
6059 | ||
6060 | } | |
6061 | ||
6062 | namespace test_uniform_initialization | |
6063 | { | |
6064 | ||
6065 | struct test | |
6066 | { | |
6067 | static const int zero {}; | |
6068 | static const int one {1}; | |
6069 | }; | |
6070 | ||
6071 | static_assert(test::zero == 0, ""); | |
6072 | static_assert(test::one == 1, ""); | |
6073 | ||
6074 | } | |
6075 | ||
6076 | namespace test_lambdas | |
6077 | { | |
6078 | ||
6079 | void | |
6080 | test1() | |
6081 | { | |
6082 | auto lambda1 = [](){}; | |
6083 | auto lambda2 = lambda1; | |
6084 | lambda1(); | |
6085 | lambda2(); | |
6086 | } | |
6087 | ||
6088 | int | |
6089 | test2() | |
6090 | { | |
6091 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6092 | auto b = []() -> int { return '0'; }(); | |
6093 | auto c = [=](){ return a + b; }(); | |
6094 | auto d = [&](){ return c; }(); | |
6095 | auto e = [a, &b](int x) mutable { | |
6096 | const auto identity = [](int y){ return y; }; | |
6097 | for (auto i = 0; i < a; ++i) | |
6098 | a += b--; | |
6099 | return x + identity(a + b); | |
6100 | }(0); | |
6101 | return a + b + c + d + e; | |
6102 | } | |
6103 | ||
6104 | int | |
6105 | test3() | |
6106 | { | |
6107 | const auto nullary = [](){ return 0; }; | |
6108 | const auto unary = [](int x){ return x; }; | |
6109 | using nullary_t = decltype(nullary); | |
6110 | using unary_t = decltype(unary); | |
6111 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6112 | const auto higher2nd = [unary](nullary_t f1){ | |
6113 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6114 | }; | |
6115 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6116 | } | |
6117 | ||
6118 | } | |
6119 | ||
6120 | namespace test_variadic_templates | |
6121 | { | |
6122 | ||
6123 | template <int...> | |
6124 | struct sum; | |
6125 | ||
6126 | template <int N0, int... N1toN> | |
6127 | struct sum<N0, N1toN...> | |
6128 | { | |
6129 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6130 | }; | |
6131 | ||
6132 | template <> | |
6133 | struct sum<> | |
6134 | { | |
6135 | static constexpr auto value = 0; | |
6136 | }; | |
6137 | ||
6138 | static_assert(sum<>::value == 0, ""); | |
6139 | static_assert(sum<1>::value == 1, ""); | |
6140 | static_assert(sum<23>::value == 23, ""); | |
6141 | static_assert(sum<1, 2>::value == 3, ""); | |
6142 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6143 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6144 | ||
6145 | } | |
6146 | ||
6147 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6148 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6149 | // because of this. | |
6150 | namespace test_template_alias_sfinae | |
6151 | { | |
6152 | ||
6153 | struct foo {}; | |
6154 | ||
6155 | template<typename T> | |
6156 | using member = typename T::member_type; | |
6157 | ||
6158 | template<typename T> | |
6159 | void func(...) {} | |
6160 | ||
6161 | template<typename T> | |
6162 | void func(member<T>*) {} | |
6163 | ||
6164 | void test(); | |
6165 | ||
6166 | void test() { func<foo>(0); } | |
6167 | ||
6168 | } | |
6169 | ||
6170 | } // namespace cxx11 | |
6171 | ||
6172 | #endif // __cplusplus >= 201103L | |
6173 | ||
6174 | ||
6175 | ||
6176 | _ACEOF | |
6177 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6178 | ax_cv_cxx_compile_cxx11=yes | |
6179 | else | |
6180 | ax_cv_cxx_compile_cxx11=no | |
6181 | fi | |
6182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6183 | fi | |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6185 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6186 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6187 | ac_success=yes | |
6188 | fi | |
6189 | ||
6190 | if test x$ac_success = xno; then | |
6191 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6192 | switch="-std=gnu++${alternative}" | |
6193 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6195 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6196 | if eval \${$cachevar+:} false; then : | |
6197 | $as_echo_n "(cached) " >&6 | |
6198 | else | |
6199 | ac_save_CXX="$CXX" | |
6200 | CXX="$CXX $switch" | |
6201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6202 | /* end confdefs.h. */ | |
6203 | ||
6204 | ||
6205 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6206 | // Hopefully, this will speed up the test. | |
6207 | ||
6208 | #ifndef __cplusplus | |
6209 | ||
6210 | #error "This is not a C++ compiler" | |
6211 | ||
6212 | #elif __cplusplus < 201103L | |
6213 | ||
6214 | #error "This is not a C++11 compiler" | |
6215 | ||
6216 | #else | |
6217 | ||
6218 | namespace cxx11 | |
6219 | { | |
6220 | ||
6221 | namespace test_static_assert | |
6222 | { | |
6223 | ||
6224 | template <typename T> | |
6225 | struct check | |
6226 | { | |
6227 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6228 | }; | |
6229 | ||
6230 | } | |
6231 | ||
6232 | namespace test_final_override | |
6233 | { | |
6234 | ||
6235 | struct Base | |
6236 | { | |
6237 | virtual ~Base() {} | |
6238 | virtual void f() {} | |
6239 | }; | |
6240 | ||
6241 | struct Derived : public Base | |
6242 | { | |
6243 | virtual ~Derived() override {} | |
6244 | virtual void f() override {} | |
6245 | }; | |
6246 | ||
6247 | } | |
6248 | ||
6249 | namespace test_double_right_angle_brackets | |
6250 | { | |
6251 | ||
6252 | template < typename T > | |
6253 | struct check {}; | |
6254 | ||
6255 | typedef check<void> single_type; | |
6256 | typedef check<check<void>> double_type; | |
6257 | typedef check<check<check<void>>> triple_type; | |
6258 | typedef check<check<check<check<void>>>> quadruple_type; | |
6259 | ||
6260 | } | |
6261 | ||
6262 | namespace test_decltype | |
6263 | { | |
6264 | ||
6265 | int | |
6266 | f() | |
6267 | { | |
6268 | int a = 1; | |
6269 | decltype(a) b = 2; | |
6270 | return a + b; | |
6271 | } | |
6272 | ||
6273 | } | |
6274 | ||
6275 | namespace test_type_deduction | |
6276 | { | |
6277 | ||
6278 | template < typename T1, typename T2 > | |
6279 | struct is_same | |
6280 | { | |
6281 | static const bool value = false; | |
6282 | }; | |
6283 | ||
6284 | template < typename T > | |
6285 | struct is_same<T, T> | |
6286 | { | |
6287 | static const bool value = true; | |
6288 | }; | |
6289 | ||
6290 | template < typename T1, typename T2 > | |
6291 | auto | |
6292 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6293 | { | |
6294 | return a1 + a2; | |
6295 | } | |
6296 | ||
6297 | int | |
6298 | test(const int c, volatile int v) | |
6299 | { | |
6300 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6301 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6302 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6303 | auto ac = c; | |
6304 | auto av = v; | |
6305 | auto sumi = ac + av + 'x'; | |
6306 | auto sumf = ac + av + 1.0; | |
6307 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6308 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6309 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6310 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6311 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6312 | return (sumf > 0.0) ? sumi : add(c, v); | |
6313 | } | |
6314 | ||
6315 | } | |
6316 | ||
6317 | namespace test_noexcept | |
6318 | { | |
6319 | ||
6320 | int f() { return 0; } | |
6321 | int g() noexcept { return 0; } | |
6322 | ||
6323 | static_assert(noexcept(f()) == false, ""); | |
6324 | static_assert(noexcept(g()) == true, ""); | |
6325 | ||
6326 | } | |
6327 | ||
6328 | namespace test_constexpr | |
6329 | { | |
6330 | ||
6331 | template < typename CharT > | |
6332 | unsigned long constexpr | |
6333 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6334 | { | |
6335 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6336 | } | |
6337 | ||
6338 | template < typename CharT > | |
6339 | unsigned long constexpr | |
6340 | strlen_c(const CharT *const s) noexcept | |
6341 | { | |
6342 | return strlen_c_r(s, 0UL); | |
6343 | } | |
6344 | ||
6345 | static_assert(strlen_c("") == 0UL, ""); | |
6346 | static_assert(strlen_c("1") == 1UL, ""); | |
6347 | static_assert(strlen_c("example") == 7UL, ""); | |
6348 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6349 | ||
6350 | } | |
6351 | ||
6352 | namespace test_rvalue_references | |
6353 | { | |
6354 | ||
6355 | template < int N > | |
6356 | struct answer | |
6357 | { | |
6358 | static constexpr int value = N; | |
6359 | }; | |
6360 | ||
6361 | answer<1> f(int&) { return answer<1>(); } | |
6362 | answer<2> f(const int&) { return answer<2>(); } | |
6363 | answer<3> f(int&&) { return answer<3>(); } | |
6364 | ||
6365 | void | |
6366 | test() | |
6367 | { | |
6368 | int i = 0; | |
6369 | const int c = 0; | |
6370 | static_assert(decltype(f(i))::value == 1, ""); | |
6371 | static_assert(decltype(f(c))::value == 2, ""); | |
6372 | static_assert(decltype(f(0))::value == 3, ""); | |
6373 | } | |
6374 | ||
6375 | } | |
6376 | ||
6377 | namespace test_uniform_initialization | |
6378 | { | |
6379 | ||
6380 | struct test | |
6381 | { | |
6382 | static const int zero {}; | |
6383 | static const int one {1}; | |
6384 | }; | |
6385 | ||
6386 | static_assert(test::zero == 0, ""); | |
6387 | static_assert(test::one == 1, ""); | |
6388 | ||
6389 | } | |
6390 | ||
6391 | namespace test_lambdas | |
6392 | { | |
6393 | ||
6394 | void | |
6395 | test1() | |
6396 | { | |
6397 | auto lambda1 = [](){}; | |
6398 | auto lambda2 = lambda1; | |
6399 | lambda1(); | |
6400 | lambda2(); | |
6401 | } | |
6402 | ||
6403 | int | |
6404 | test2() | |
6405 | { | |
6406 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6407 | auto b = []() -> int { return '0'; }(); | |
6408 | auto c = [=](){ return a + b; }(); | |
6409 | auto d = [&](){ return c; }(); | |
6410 | auto e = [a, &b](int x) mutable { | |
6411 | const auto identity = [](int y){ return y; }; | |
6412 | for (auto i = 0; i < a; ++i) | |
6413 | a += b--; | |
6414 | return x + identity(a + b); | |
6415 | }(0); | |
6416 | return a + b + c + d + e; | |
6417 | } | |
6418 | ||
6419 | int | |
6420 | test3() | |
6421 | { | |
6422 | const auto nullary = [](){ return 0; }; | |
6423 | const auto unary = [](int x){ return x; }; | |
6424 | using nullary_t = decltype(nullary); | |
6425 | using unary_t = decltype(unary); | |
6426 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6427 | const auto higher2nd = [unary](nullary_t f1){ | |
6428 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6429 | }; | |
6430 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6431 | } | |
6432 | ||
6433 | } | |
6434 | ||
6435 | namespace test_variadic_templates | |
6436 | { | |
6437 | ||
6438 | template <int...> | |
6439 | struct sum; | |
6440 | ||
6441 | template <int N0, int... N1toN> | |
6442 | struct sum<N0, N1toN...> | |
6443 | { | |
6444 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6445 | }; | |
6446 | ||
6447 | template <> | |
6448 | struct sum<> | |
6449 | { | |
6450 | static constexpr auto value = 0; | |
6451 | }; | |
6452 | ||
6453 | static_assert(sum<>::value == 0, ""); | |
6454 | static_assert(sum<1>::value == 1, ""); | |
6455 | static_assert(sum<23>::value == 23, ""); | |
6456 | static_assert(sum<1, 2>::value == 3, ""); | |
6457 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6458 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6459 | ||
6460 | } | |
6461 | ||
6462 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6463 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6464 | // because of this. | |
6465 | namespace test_template_alias_sfinae | |
6466 | { | |
6467 | ||
6468 | struct foo {}; | |
6469 | ||
6470 | template<typename T> | |
6471 | using member = typename T::member_type; | |
6472 | ||
6473 | template<typename T> | |
6474 | void func(...) {} | |
6475 | ||
6476 | template<typename T> | |
6477 | void func(member<T>*) {} | |
6478 | ||
6479 | void test(); | |
6480 | ||
6481 | void test() { func<foo>(0); } | |
6482 | ||
6483 | } | |
6484 | ||
6485 | } // namespace cxx11 | |
6486 | ||
6487 | #endif // __cplusplus >= 201103L | |
6488 | ||
6489 | ||
6490 | ||
6491 | _ACEOF | |
6492 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6493 | eval $cachevar=yes | |
6494 | else | |
6495 | eval $cachevar=no | |
6496 | fi | |
6497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6498 | CXX="$ac_save_CXX" | |
6499 | fi | |
6500 | eval ac_res=\$$cachevar | |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6502 | $as_echo "$ac_res" >&6; } | |
6503 | if eval test x\$$cachevar = xyes; then | |
6504 | CXX="$CXX $switch" | |
6505 | if test -n "$CXXCPP" ; then | |
6506 | CXXCPP="$CXXCPP $switch" | |
6507 | fi | |
6508 | ac_success=yes | |
6509 | break | |
6510 | fi | |
6511 | done | |
6512 | fi | |
6513 | ||
6514 | if test x$ac_success = xno; then | |
6515 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6516 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6517 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6519 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6520 | if eval \${$cachevar+:} false; then : | |
6521 | $as_echo_n "(cached) " >&6 | |
6522 | else | |
6523 | ac_save_CXX="$CXX" | |
6524 | CXX="$CXX $switch" | |
6525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6526 | /* end confdefs.h. */ | |
6527 | ||
6528 | ||
6529 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6530 | // Hopefully, this will speed up the test. | |
6531 | ||
6532 | #ifndef __cplusplus | |
6533 | ||
6534 | #error "This is not a C++ compiler" | |
6535 | ||
6536 | #elif __cplusplus < 201103L | |
6537 | ||
6538 | #error "This is not a C++11 compiler" | |
6539 | ||
6540 | #else | |
6541 | ||
6542 | namespace cxx11 | |
6543 | { | |
6544 | ||
6545 | namespace test_static_assert | |
6546 | { | |
6547 | ||
6548 | template <typename T> | |
6549 | struct check | |
6550 | { | |
6551 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6552 | }; | |
6553 | ||
6554 | } | |
6555 | ||
6556 | namespace test_final_override | |
6557 | { | |
6558 | ||
6559 | struct Base | |
6560 | { | |
6561 | virtual ~Base() {} | |
6562 | virtual void f() {} | |
6563 | }; | |
6564 | ||
6565 | struct Derived : public Base | |
6566 | { | |
6567 | virtual ~Derived() override {} | |
6568 | virtual void f() override {} | |
6569 | }; | |
6570 | ||
6571 | } | |
6572 | ||
6573 | namespace test_double_right_angle_brackets | |
6574 | { | |
6575 | ||
6576 | template < typename T > | |
6577 | struct check {}; | |
6578 | ||
6579 | typedef check<void> single_type; | |
6580 | typedef check<check<void>> double_type; | |
6581 | typedef check<check<check<void>>> triple_type; | |
6582 | typedef check<check<check<check<void>>>> quadruple_type; | |
6583 | ||
6584 | } | |
6585 | ||
6586 | namespace test_decltype | |
6587 | { | |
6588 | ||
6589 | int | |
6590 | f() | |
6591 | { | |
6592 | int a = 1; | |
6593 | decltype(a) b = 2; | |
6594 | return a + b; | |
6595 | } | |
6596 | ||
6597 | } | |
6598 | ||
6599 | namespace test_type_deduction | |
6600 | { | |
6601 | ||
6602 | template < typename T1, typename T2 > | |
6603 | struct is_same | |
6604 | { | |
6605 | static const bool value = false; | |
6606 | }; | |
6607 | ||
6608 | template < typename T > | |
6609 | struct is_same<T, T> | |
6610 | { | |
6611 | static const bool value = true; | |
6612 | }; | |
6613 | ||
6614 | template < typename T1, typename T2 > | |
6615 | auto | |
6616 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6617 | { | |
6618 | return a1 + a2; | |
6619 | } | |
6620 | ||
6621 | int | |
6622 | test(const int c, volatile int v) | |
6623 | { | |
6624 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6625 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6626 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6627 | auto ac = c; | |
6628 | auto av = v; | |
6629 | auto sumi = ac + av + 'x'; | |
6630 | auto sumf = ac + av + 1.0; | |
6631 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6632 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6633 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6634 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6635 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6636 | return (sumf > 0.0) ? sumi : add(c, v); | |
6637 | } | |
6638 | ||
6639 | } | |
6640 | ||
6641 | namespace test_noexcept | |
6642 | { | |
6643 | ||
6644 | int f() { return 0; } | |
6645 | int g() noexcept { return 0; } | |
6646 | ||
6647 | static_assert(noexcept(f()) == false, ""); | |
6648 | static_assert(noexcept(g()) == true, ""); | |
6649 | ||
6650 | } | |
6651 | ||
6652 | namespace test_constexpr | |
6653 | { | |
6654 | ||
6655 | template < typename CharT > | |
6656 | unsigned long constexpr | |
6657 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6658 | { | |
6659 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6660 | } | |
6661 | ||
6662 | template < typename CharT > | |
6663 | unsigned long constexpr | |
6664 | strlen_c(const CharT *const s) noexcept | |
6665 | { | |
6666 | return strlen_c_r(s, 0UL); | |
6667 | } | |
6668 | ||
6669 | static_assert(strlen_c("") == 0UL, ""); | |
6670 | static_assert(strlen_c("1") == 1UL, ""); | |
6671 | static_assert(strlen_c("example") == 7UL, ""); | |
6672 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6673 | ||
6674 | } | |
6675 | ||
6676 | namespace test_rvalue_references | |
6677 | { | |
6678 | ||
6679 | template < int N > | |
6680 | struct answer | |
6681 | { | |
6682 | static constexpr int value = N; | |
6683 | }; | |
6684 | ||
6685 | answer<1> f(int&) { return answer<1>(); } | |
6686 | answer<2> f(const int&) { return answer<2>(); } | |
6687 | answer<3> f(int&&) { return answer<3>(); } | |
6688 | ||
6689 | void | |
6690 | test() | |
6691 | { | |
6692 | int i = 0; | |
6693 | const int c = 0; | |
6694 | static_assert(decltype(f(i))::value == 1, ""); | |
6695 | static_assert(decltype(f(c))::value == 2, ""); | |
6696 | static_assert(decltype(f(0))::value == 3, ""); | |
6697 | } | |
6698 | ||
6699 | } | |
6700 | ||
6701 | namespace test_uniform_initialization | |
6702 | { | |
6703 | ||
6704 | struct test | |
6705 | { | |
6706 | static const int zero {}; | |
6707 | static const int one {1}; | |
6708 | }; | |
6709 | ||
6710 | static_assert(test::zero == 0, ""); | |
6711 | static_assert(test::one == 1, ""); | |
6712 | ||
6713 | } | |
6714 | ||
6715 | namespace test_lambdas | |
6716 | { | |
6717 | ||
6718 | void | |
6719 | test1() | |
6720 | { | |
6721 | auto lambda1 = [](){}; | |
6722 | auto lambda2 = lambda1; | |
6723 | lambda1(); | |
6724 | lambda2(); | |
6725 | } | |
6726 | ||
6727 | int | |
6728 | test2() | |
6729 | { | |
6730 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6731 | auto b = []() -> int { return '0'; }(); | |
6732 | auto c = [=](){ return a + b; }(); | |
6733 | auto d = [&](){ return c; }(); | |
6734 | auto e = [a, &b](int x) mutable { | |
6735 | const auto identity = [](int y){ return y; }; | |
6736 | for (auto i = 0; i < a; ++i) | |
6737 | a += b--; | |
6738 | return x + identity(a + b); | |
6739 | }(0); | |
6740 | return a + b + c + d + e; | |
6741 | } | |
6742 | ||
6743 | int | |
6744 | test3() | |
6745 | { | |
6746 | const auto nullary = [](){ return 0; }; | |
6747 | const auto unary = [](int x){ return x; }; | |
6748 | using nullary_t = decltype(nullary); | |
6749 | using unary_t = decltype(unary); | |
6750 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6751 | const auto higher2nd = [unary](nullary_t f1){ | |
6752 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6753 | }; | |
6754 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6755 | } | |
6756 | ||
6757 | } | |
6758 | ||
6759 | namespace test_variadic_templates | |
6760 | { | |
6761 | ||
6762 | template <int...> | |
6763 | struct sum; | |
6764 | ||
6765 | template <int N0, int... N1toN> | |
6766 | struct sum<N0, N1toN...> | |
6767 | { | |
6768 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6769 | }; | |
6770 | ||
6771 | template <> | |
6772 | struct sum<> | |
6773 | { | |
6774 | static constexpr auto value = 0; | |
6775 | }; | |
6776 | ||
6777 | static_assert(sum<>::value == 0, ""); | |
6778 | static_assert(sum<1>::value == 1, ""); | |
6779 | static_assert(sum<23>::value == 23, ""); | |
6780 | static_assert(sum<1, 2>::value == 3, ""); | |
6781 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6782 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6783 | ||
6784 | } | |
6785 | ||
6786 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6787 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6788 | // because of this. | |
6789 | namespace test_template_alias_sfinae | |
6790 | { | |
6791 | ||
6792 | struct foo {}; | |
6793 | ||
6794 | template<typename T> | |
6795 | using member = typename T::member_type; | |
6796 | ||
6797 | template<typename T> | |
6798 | void func(...) {} | |
6799 | ||
6800 | template<typename T> | |
6801 | void func(member<T>*) {} | |
6802 | ||
6803 | void test(); | |
6804 | ||
6805 | void test() { func<foo>(0); } | |
6806 | ||
6807 | } | |
6808 | ||
6809 | } // namespace cxx11 | |
6810 | ||
6811 | #endif // __cplusplus >= 201103L | |
6812 | ||
6813 | ||
6814 | ||
6815 | _ACEOF | |
6816 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6817 | eval $cachevar=yes | |
6818 | else | |
6819 | eval $cachevar=no | |
6820 | fi | |
6821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6822 | CXX="$ac_save_CXX" | |
6823 | fi | |
6824 | eval ac_res=\$$cachevar | |
6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6826 | $as_echo "$ac_res" >&6; } | |
6827 | if eval test x\$$cachevar = xyes; then | |
6828 | CXX="$CXX $switch" | |
6829 | if test -n "$CXXCPP" ; then | |
6830 | CXXCPP="$CXXCPP $switch" | |
6831 | fi | |
6832 | ac_success=yes | |
6833 | break | |
6834 | fi | |
6835 | done | |
6836 | if test x$ac_success = xyes; then | |
6837 | break | |
6838 | fi | |
6839 | done | |
6840 | fi | |
7ffcf5d6 | 6841 | |
ffac9597 JM |
6842 | ac_ext=c |
6843 | ac_cpp='$CPP $CPPFLAGS' | |
6844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6847 | ||
6848 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6849 | if test x$ac_success = xno; then | |
6850 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6851 | fi | |
6852 | fi | |
6853 | if test x$ac_success = xno; then | |
6854 | HAVE_CXX11=0 | |
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6856 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6857 | else | |
6858 | HAVE_CXX11=1 | |
6859 | ||
6860 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6861 | ||
6862 | fi | |
6863 | ||
6864 | ||
7ffcf5d6 TB |
6865 | |
6866 | if test "${build}" != "${host}"; then | |
6867 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6868 | ac_ext=cpp | |
6869 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6873 | ac_success=no | |
6874 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6875 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6876 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6877 | CXX="$CXX_FOR_BUILD" | |
6878 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6879 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6881 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6882 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6883 | $as_echo_n "(cached) " >&6 | |
6884 | else | |
6885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6886 | /* end confdefs.h. */ | |
6887 | ||
6888 | ||
6889 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6890 | // Hopefully, this will speed up the test. | |
6891 | ||
6892 | #ifndef __cplusplus | |
6893 | ||
6894 | #error "This is not a C++ compiler" | |
6895 | ||
6896 | #elif __cplusplus < 201103L | |
6897 | ||
6898 | #error "This is not a C++11 compiler" | |
6899 | ||
6900 | #else | |
6901 | ||
6902 | namespace cxx11 | |
6903 | { | |
6904 | ||
6905 | namespace test_static_assert | |
6906 | { | |
6907 | ||
6908 | template <typename T> | |
6909 | struct check | |
6910 | { | |
6911 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6912 | }; | |
6913 | ||
6914 | } | |
6915 | ||
6916 | namespace test_final_override | |
6917 | { | |
6918 | ||
6919 | struct Base | |
6920 | { | |
6921 | virtual ~Base() {} | |
6922 | virtual void f() {} | |
6923 | }; | |
6924 | ||
6925 | struct Derived : public Base | |
6926 | { | |
6927 | virtual ~Derived() override {} | |
6928 | virtual void f() override {} | |
6929 | }; | |
6930 | ||
6931 | } | |
6932 | ||
6933 | namespace test_double_right_angle_brackets | |
6934 | { | |
6935 | ||
6936 | template < typename T > | |
6937 | struct check {}; | |
6938 | ||
6939 | typedef check<void> single_type; | |
6940 | typedef check<check<void>> double_type; | |
6941 | typedef check<check<check<void>>> triple_type; | |
6942 | typedef check<check<check<check<void>>>> quadruple_type; | |
6943 | ||
6944 | } | |
6945 | ||
6946 | namespace test_decltype | |
6947 | { | |
6948 | ||
6949 | int | |
6950 | f() | |
6951 | { | |
6952 | int a = 1; | |
6953 | decltype(a) b = 2; | |
6954 | return a + b; | |
6955 | } | |
6956 | ||
6957 | } | |
6958 | ||
6959 | namespace test_type_deduction | |
6960 | { | |
6961 | ||
6962 | template < typename T1, typename T2 > | |
6963 | struct is_same | |
6964 | { | |
6965 | static const bool value = false; | |
6966 | }; | |
6967 | ||
6968 | template < typename T > | |
6969 | struct is_same<T, T> | |
6970 | { | |
6971 | static const bool value = true; | |
6972 | }; | |
6973 | ||
6974 | template < typename T1, typename T2 > | |
6975 | auto | |
6976 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6977 | { | |
6978 | return a1 + a2; | |
6979 | } | |
6980 | ||
6981 | int | |
6982 | test(const int c, volatile int v) | |
6983 | { | |
6984 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6985 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6986 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6987 | auto ac = c; | |
6988 | auto av = v; | |
6989 | auto sumi = ac + av + 'x'; | |
6990 | auto sumf = ac + av + 1.0; | |
6991 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6992 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6993 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6994 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6995 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6996 | return (sumf > 0.0) ? sumi : add(c, v); | |
6997 | } | |
6998 | ||
6999 | } | |
7000 | ||
7001 | namespace test_noexcept | |
7002 | { | |
7003 | ||
7004 | int f() { return 0; } | |
7005 | int g() noexcept { return 0; } | |
7006 | ||
7007 | static_assert(noexcept(f()) == false, ""); | |
7008 | static_assert(noexcept(g()) == true, ""); | |
7009 | ||
7010 | } | |
7011 | ||
7012 | namespace test_constexpr | |
7013 | { | |
7014 | ||
7015 | template < typename CharT > | |
7016 | unsigned long constexpr | |
7017 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7018 | { | |
7019 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7020 | } | |
7021 | ||
7022 | template < typename CharT > | |
7023 | unsigned long constexpr | |
7024 | strlen_c(const CharT *const s) noexcept | |
7025 | { | |
7026 | return strlen_c_r(s, 0UL); | |
7027 | } | |
7028 | ||
7029 | static_assert(strlen_c("") == 0UL, ""); | |
7030 | static_assert(strlen_c("1") == 1UL, ""); | |
7031 | static_assert(strlen_c("example") == 7UL, ""); | |
7032 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7033 | ||
7034 | } | |
7035 | ||
7036 | namespace test_rvalue_references | |
7037 | { | |
7038 | ||
7039 | template < int N > | |
7040 | struct answer | |
7041 | { | |
7042 | static constexpr int value = N; | |
7043 | }; | |
7044 | ||
7045 | answer<1> f(int&) { return answer<1>(); } | |
7046 | answer<2> f(const int&) { return answer<2>(); } | |
7047 | answer<3> f(int&&) { return answer<3>(); } | |
7048 | ||
7049 | void | |
7050 | test() | |
7051 | { | |
7052 | int i = 0; | |
7053 | const int c = 0; | |
7054 | static_assert(decltype(f(i))::value == 1, ""); | |
7055 | static_assert(decltype(f(c))::value == 2, ""); | |
7056 | static_assert(decltype(f(0))::value == 3, ""); | |
7057 | } | |
7058 | ||
7059 | } | |
7060 | ||
7061 | namespace test_uniform_initialization | |
7062 | { | |
7063 | ||
7064 | struct test | |
7065 | { | |
7066 | static const int zero {}; | |
7067 | static const int one {1}; | |
7068 | }; | |
7069 | ||
7070 | static_assert(test::zero == 0, ""); | |
7071 | static_assert(test::one == 1, ""); | |
7072 | ||
7073 | } | |
7074 | ||
7075 | namespace test_lambdas | |
7076 | { | |
7077 | ||
7078 | void | |
7079 | test1() | |
7080 | { | |
7081 | auto lambda1 = [](){}; | |
7082 | auto lambda2 = lambda1; | |
7083 | lambda1(); | |
7084 | lambda2(); | |
7085 | } | |
7086 | ||
7087 | int | |
7088 | test2() | |
7089 | { | |
7090 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7091 | auto b = []() -> int { return '0'; }(); | |
7092 | auto c = [=](){ return a + b; }(); | |
7093 | auto d = [&](){ return c; }(); | |
7094 | auto e = [a, &b](int x) mutable { | |
7095 | const auto identity = [](int y){ return y; }; | |
7096 | for (auto i = 0; i < a; ++i) | |
7097 | a += b--; | |
7098 | return x + identity(a + b); | |
7099 | }(0); | |
7100 | return a + b + c + d + e; | |
7101 | } | |
7102 | ||
7103 | int | |
7104 | test3() | |
7105 | { | |
7106 | const auto nullary = [](){ return 0; }; | |
7107 | const auto unary = [](int x){ return x; }; | |
7108 | using nullary_t = decltype(nullary); | |
7109 | using unary_t = decltype(unary); | |
7110 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7111 | const auto higher2nd = [unary](nullary_t f1){ | |
7112 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7113 | }; | |
7114 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7115 | } | |
7116 | ||
7117 | } | |
7118 | ||
7119 | namespace test_variadic_templates | |
7120 | { | |
7121 | ||
7122 | template <int...> | |
7123 | struct sum; | |
7124 | ||
7125 | template <int N0, int... N1toN> | |
7126 | struct sum<N0, N1toN...> | |
7127 | { | |
7128 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7129 | }; | |
7130 | ||
7131 | template <> | |
7132 | struct sum<> | |
7133 | { | |
7134 | static constexpr auto value = 0; | |
7135 | }; | |
7136 | ||
7137 | static_assert(sum<>::value == 0, ""); | |
7138 | static_assert(sum<1>::value == 1, ""); | |
7139 | static_assert(sum<23>::value == 23, ""); | |
7140 | static_assert(sum<1, 2>::value == 3, ""); | |
7141 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7142 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7143 | ||
7144 | } | |
7145 | ||
7146 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7147 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7148 | // because of this. | |
7149 | namespace test_template_alias_sfinae | |
7150 | { | |
7151 | ||
7152 | struct foo {}; | |
7153 | ||
7154 | template<typename T> | |
7155 | using member = typename T::member_type; | |
7156 | ||
7157 | template<typename T> | |
7158 | void func(...) {} | |
7159 | ||
7160 | template<typename T> | |
7161 | void func(member<T>*) {} | |
7162 | ||
7163 | void test(); | |
7164 | ||
7165 | void test() { func<foo>(0); } | |
7166 | ||
7167 | } | |
7168 | ||
7169 | } // namespace cxx11 | |
7170 | ||
7171 | #endif // __cplusplus >= 201103L | |
7172 | ||
7173 | ||
7174 | ||
7175 | _ACEOF | |
7176 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7177 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7178 | else | |
7179 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7180 | fi | |
7181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7182 | fi | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7184 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7185 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7186 | ac_success=yes | |
7187 | fi | |
7188 | ||
7189 | if test x$ac_success = xno; then | |
7190 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7191 | switch="-std=gnu++${alternative}" | |
7192 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7194 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7195 | if eval \${$cachevar+:} false; then : | |
7196 | $as_echo_n "(cached) " >&6 | |
7197 | else | |
7198 | ac_save_CXX="$CXX" | |
7199 | CXX="$CXX $switch" | |
7200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7201 | /* end confdefs.h. */ | |
7202 | ||
7203 | ||
7204 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7205 | // Hopefully, this will speed up the test. | |
7206 | ||
7207 | #ifndef __cplusplus | |
7208 | ||
7209 | #error "This is not a C++ compiler" | |
7210 | ||
7211 | #elif __cplusplus < 201103L | |
7212 | ||
7213 | #error "This is not a C++11 compiler" | |
7214 | ||
7215 | #else | |
7216 | ||
7217 | namespace cxx11 | |
7218 | { | |
7219 | ||
7220 | namespace test_static_assert | |
7221 | { | |
7222 | ||
7223 | template <typename T> | |
7224 | struct check | |
7225 | { | |
7226 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7227 | }; | |
7228 | ||
7229 | } | |
7230 | ||
7231 | namespace test_final_override | |
7232 | { | |
7233 | ||
7234 | struct Base | |
7235 | { | |
7236 | virtual ~Base() {} | |
7237 | virtual void f() {} | |
7238 | }; | |
7239 | ||
7240 | struct Derived : public Base | |
7241 | { | |
7242 | virtual ~Derived() override {} | |
7243 | virtual void f() override {} | |
7244 | }; | |
7245 | ||
7246 | } | |
7247 | ||
7248 | namespace test_double_right_angle_brackets | |
7249 | { | |
7250 | ||
7251 | template < typename T > | |
7252 | struct check {}; | |
7253 | ||
7254 | typedef check<void> single_type; | |
7255 | typedef check<check<void>> double_type; | |
7256 | typedef check<check<check<void>>> triple_type; | |
7257 | typedef check<check<check<check<void>>>> quadruple_type; | |
7258 | ||
7259 | } | |
7260 | ||
7261 | namespace test_decltype | |
7262 | { | |
7263 | ||
7264 | int | |
7265 | f() | |
7266 | { | |
7267 | int a = 1; | |
7268 | decltype(a) b = 2; | |
7269 | return a + b; | |
7270 | } | |
7271 | ||
7272 | } | |
7273 | ||
7274 | namespace test_type_deduction | |
7275 | { | |
7276 | ||
7277 | template < typename T1, typename T2 > | |
7278 | struct is_same | |
7279 | { | |
7280 | static const bool value = false; | |
7281 | }; | |
7282 | ||
7283 | template < typename T > | |
7284 | struct is_same<T, T> | |
7285 | { | |
7286 | static const bool value = true; | |
7287 | }; | |
7288 | ||
7289 | template < typename T1, typename T2 > | |
7290 | auto | |
7291 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7292 | { | |
7293 | return a1 + a2; | |
7294 | } | |
7295 | ||
7296 | int | |
7297 | test(const int c, volatile int v) | |
7298 | { | |
7299 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7300 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7301 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7302 | auto ac = c; | |
7303 | auto av = v; | |
7304 | auto sumi = ac + av + 'x'; | |
7305 | auto sumf = ac + av + 1.0; | |
7306 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7307 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7308 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7309 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7310 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7311 | return (sumf > 0.0) ? sumi : add(c, v); | |
7312 | } | |
7313 | ||
7314 | } | |
7315 | ||
7316 | namespace test_noexcept | |
7317 | { | |
7318 | ||
7319 | int f() { return 0; } | |
7320 | int g() noexcept { return 0; } | |
7321 | ||
7322 | static_assert(noexcept(f()) == false, ""); | |
7323 | static_assert(noexcept(g()) == true, ""); | |
7324 | ||
7325 | } | |
7326 | ||
7327 | namespace test_constexpr | |
7328 | { | |
7329 | ||
7330 | template < typename CharT > | |
7331 | unsigned long constexpr | |
7332 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7333 | { | |
7334 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7335 | } | |
7336 | ||
7337 | template < typename CharT > | |
7338 | unsigned long constexpr | |
7339 | strlen_c(const CharT *const s) noexcept | |
7340 | { | |
7341 | return strlen_c_r(s, 0UL); | |
7342 | } | |
7343 | ||
7344 | static_assert(strlen_c("") == 0UL, ""); | |
7345 | static_assert(strlen_c("1") == 1UL, ""); | |
7346 | static_assert(strlen_c("example") == 7UL, ""); | |
7347 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7348 | ||
7349 | } | |
7350 | ||
7351 | namespace test_rvalue_references | |
7352 | { | |
7353 | ||
7354 | template < int N > | |
7355 | struct answer | |
7356 | { | |
7357 | static constexpr int value = N; | |
7358 | }; | |
7359 | ||
7360 | answer<1> f(int&) { return answer<1>(); } | |
7361 | answer<2> f(const int&) { return answer<2>(); } | |
7362 | answer<3> f(int&&) { return answer<3>(); } | |
7363 | ||
7364 | void | |
7365 | test() | |
7366 | { | |
7367 | int i = 0; | |
7368 | const int c = 0; | |
7369 | static_assert(decltype(f(i))::value == 1, ""); | |
7370 | static_assert(decltype(f(c))::value == 2, ""); | |
7371 | static_assert(decltype(f(0))::value == 3, ""); | |
7372 | } | |
7373 | ||
7374 | } | |
7375 | ||
7376 | namespace test_uniform_initialization | |
7377 | { | |
7378 | ||
7379 | struct test | |
7380 | { | |
7381 | static const int zero {}; | |
7382 | static const int one {1}; | |
7383 | }; | |
7384 | ||
7385 | static_assert(test::zero == 0, ""); | |
7386 | static_assert(test::one == 1, ""); | |
7387 | ||
7388 | } | |
7389 | ||
7390 | namespace test_lambdas | |
7391 | { | |
7392 | ||
7393 | void | |
7394 | test1() | |
7395 | { | |
7396 | auto lambda1 = [](){}; | |
7397 | auto lambda2 = lambda1; | |
7398 | lambda1(); | |
7399 | lambda2(); | |
7400 | } | |
7401 | ||
7402 | int | |
7403 | test2() | |
7404 | { | |
7405 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7406 | auto b = []() -> int { return '0'; }(); | |
7407 | auto c = [=](){ return a + b; }(); | |
7408 | auto d = [&](){ return c; }(); | |
7409 | auto e = [a, &b](int x) mutable { | |
7410 | const auto identity = [](int y){ return y; }; | |
7411 | for (auto i = 0; i < a; ++i) | |
7412 | a += b--; | |
7413 | return x + identity(a + b); | |
7414 | }(0); | |
7415 | return a + b + c + d + e; | |
7416 | } | |
7417 | ||
7418 | int | |
7419 | test3() | |
7420 | { | |
7421 | const auto nullary = [](){ return 0; }; | |
7422 | const auto unary = [](int x){ return x; }; | |
7423 | using nullary_t = decltype(nullary); | |
7424 | using unary_t = decltype(unary); | |
7425 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7426 | const auto higher2nd = [unary](nullary_t f1){ | |
7427 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7428 | }; | |
7429 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7430 | } | |
7431 | ||
7432 | } | |
7433 | ||
7434 | namespace test_variadic_templates | |
7435 | { | |
7436 | ||
7437 | template <int...> | |
7438 | struct sum; | |
7439 | ||
7440 | template <int N0, int... N1toN> | |
7441 | struct sum<N0, N1toN...> | |
7442 | { | |
7443 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7444 | }; | |
7445 | ||
7446 | template <> | |
7447 | struct sum<> | |
7448 | { | |
7449 | static constexpr auto value = 0; | |
7450 | }; | |
7451 | ||
7452 | static_assert(sum<>::value == 0, ""); | |
7453 | static_assert(sum<1>::value == 1, ""); | |
7454 | static_assert(sum<23>::value == 23, ""); | |
7455 | static_assert(sum<1, 2>::value == 3, ""); | |
7456 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7457 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7458 | ||
7459 | } | |
7460 | ||
7461 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7462 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7463 | // because of this. | |
7464 | namespace test_template_alias_sfinae | |
7465 | { | |
7466 | ||
7467 | struct foo {}; | |
7468 | ||
7469 | template<typename T> | |
7470 | using member = typename T::member_type; | |
7471 | ||
7472 | template<typename T> | |
7473 | void func(...) {} | |
7474 | ||
7475 | template<typename T> | |
7476 | void func(member<T>*) {} | |
7477 | ||
7478 | void test(); | |
7479 | ||
7480 | void test() { func<foo>(0); } | |
7481 | ||
7482 | } | |
7483 | ||
7484 | } // namespace cxx11 | |
7485 | ||
7486 | #endif // __cplusplus >= 201103L | |
7487 | ||
7488 | ||
7489 | ||
7490 | _ACEOF | |
7491 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7492 | eval $cachevar=yes | |
7493 | else | |
7494 | eval $cachevar=no | |
7495 | fi | |
7496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7497 | CXX="$ac_save_CXX" | |
7498 | fi | |
7499 | eval ac_res=\$$cachevar | |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7501 | $as_echo "$ac_res" >&6; } | |
7502 | if eval test x\$$cachevar = xyes; then | |
7503 | CXX="$CXX $switch" | |
7504 | if test -n "$CXXCPP" ; then | |
7505 | CXXCPP="$CXXCPP $switch" | |
7506 | fi | |
7507 | ac_success=yes | |
7508 | break | |
7509 | fi | |
7510 | done | |
7511 | fi | |
7512 | ||
7513 | if test x$ac_success = xno; then | |
7514 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7515 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7516 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7518 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7519 | if eval \${$cachevar+:} false; then : | |
7520 | $as_echo_n "(cached) " >&6 | |
7521 | else | |
7522 | ac_save_CXX="$CXX" | |
7523 | CXX="$CXX $switch" | |
7524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7525 | /* end confdefs.h. */ | |
7526 | ||
7527 | ||
7528 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7529 | // Hopefully, this will speed up the test. | |
7530 | ||
7531 | #ifndef __cplusplus | |
7532 | ||
7533 | #error "This is not a C++ compiler" | |
7534 | ||
7535 | #elif __cplusplus < 201103L | |
7536 | ||
7537 | #error "This is not a C++11 compiler" | |
7538 | ||
7539 | #else | |
7540 | ||
7541 | namespace cxx11 | |
7542 | { | |
7543 | ||
7544 | namespace test_static_assert | |
7545 | { | |
7546 | ||
7547 | template <typename T> | |
7548 | struct check | |
7549 | { | |
7550 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7551 | }; | |
7552 | ||
7553 | } | |
7554 | ||
7555 | namespace test_final_override | |
7556 | { | |
7557 | ||
7558 | struct Base | |
7559 | { | |
7560 | virtual ~Base() {} | |
7561 | virtual void f() {} | |
7562 | }; | |
7563 | ||
7564 | struct Derived : public Base | |
7565 | { | |
7566 | virtual ~Derived() override {} | |
7567 | virtual void f() override {} | |
7568 | }; | |
7569 | ||
7570 | } | |
7571 | ||
7572 | namespace test_double_right_angle_brackets | |
7573 | { | |
7574 | ||
7575 | template < typename T > | |
7576 | struct check {}; | |
7577 | ||
7578 | typedef check<void> single_type; | |
7579 | typedef check<check<void>> double_type; | |
7580 | typedef check<check<check<void>>> triple_type; | |
7581 | typedef check<check<check<check<void>>>> quadruple_type; | |
7582 | ||
7583 | } | |
7584 | ||
7585 | namespace test_decltype | |
7586 | { | |
7587 | ||
7588 | int | |
7589 | f() | |
7590 | { | |
7591 | int a = 1; | |
7592 | decltype(a) b = 2; | |
7593 | return a + b; | |
7594 | } | |
7595 | ||
7596 | } | |
7597 | ||
7598 | namespace test_type_deduction | |
7599 | { | |
7600 | ||
7601 | template < typename T1, typename T2 > | |
7602 | struct is_same | |
7603 | { | |
7604 | static const bool value = false; | |
7605 | }; | |
7606 | ||
7607 | template < typename T > | |
7608 | struct is_same<T, T> | |
7609 | { | |
7610 | static const bool value = true; | |
7611 | }; | |
7612 | ||
7613 | template < typename T1, typename T2 > | |
7614 | auto | |
7615 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7616 | { | |
7617 | return a1 + a2; | |
7618 | } | |
7619 | ||
7620 | int | |
7621 | test(const int c, volatile int v) | |
7622 | { | |
7623 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7624 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7625 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7626 | auto ac = c; | |
7627 | auto av = v; | |
7628 | auto sumi = ac + av + 'x'; | |
7629 | auto sumf = ac + av + 1.0; | |
7630 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7631 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7632 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7633 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7634 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7635 | return (sumf > 0.0) ? sumi : add(c, v); | |
7636 | } | |
7637 | ||
7638 | } | |
7639 | ||
7640 | namespace test_noexcept | |
7641 | { | |
7642 | ||
7643 | int f() { return 0; } | |
7644 | int g() noexcept { return 0; } | |
7645 | ||
7646 | static_assert(noexcept(f()) == false, ""); | |
7647 | static_assert(noexcept(g()) == true, ""); | |
7648 | ||
7649 | } | |
7650 | ||
7651 | namespace test_constexpr | |
7652 | { | |
7653 | ||
7654 | template < typename CharT > | |
7655 | unsigned long constexpr | |
7656 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7657 | { | |
7658 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7659 | } | |
7660 | ||
7661 | template < typename CharT > | |
7662 | unsigned long constexpr | |
7663 | strlen_c(const CharT *const s) noexcept | |
7664 | { | |
7665 | return strlen_c_r(s, 0UL); | |
7666 | } | |
7667 | ||
7668 | static_assert(strlen_c("") == 0UL, ""); | |
7669 | static_assert(strlen_c("1") == 1UL, ""); | |
7670 | static_assert(strlen_c("example") == 7UL, ""); | |
7671 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7672 | ||
7673 | } | |
7674 | ||
7675 | namespace test_rvalue_references | |
7676 | { | |
7677 | ||
7678 | template < int N > | |
7679 | struct answer | |
7680 | { | |
7681 | static constexpr int value = N; | |
7682 | }; | |
7683 | ||
7684 | answer<1> f(int&) { return answer<1>(); } | |
7685 | answer<2> f(const int&) { return answer<2>(); } | |
7686 | answer<3> f(int&&) { return answer<3>(); } | |
7687 | ||
7688 | void | |
7689 | test() | |
7690 | { | |
7691 | int i = 0; | |
7692 | const int c = 0; | |
7693 | static_assert(decltype(f(i))::value == 1, ""); | |
7694 | static_assert(decltype(f(c))::value == 2, ""); | |
7695 | static_assert(decltype(f(0))::value == 3, ""); | |
7696 | } | |
7697 | ||
7698 | } | |
7699 | ||
7700 | namespace test_uniform_initialization | |
7701 | { | |
7702 | ||
7703 | struct test | |
7704 | { | |
7705 | static const int zero {}; | |
7706 | static const int one {1}; | |
7707 | }; | |
7708 | ||
7709 | static_assert(test::zero == 0, ""); | |
7710 | static_assert(test::one == 1, ""); | |
7711 | ||
7712 | } | |
7713 | ||
7714 | namespace test_lambdas | |
7715 | { | |
7716 | ||
7717 | void | |
7718 | test1() | |
7719 | { | |
7720 | auto lambda1 = [](){}; | |
7721 | auto lambda2 = lambda1; | |
7722 | lambda1(); | |
7723 | lambda2(); | |
7724 | } | |
7725 | ||
7726 | int | |
7727 | test2() | |
7728 | { | |
7729 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7730 | auto b = []() -> int { return '0'; }(); | |
7731 | auto c = [=](){ return a + b; }(); | |
7732 | auto d = [&](){ return c; }(); | |
7733 | auto e = [a, &b](int x) mutable { | |
7734 | const auto identity = [](int y){ return y; }; | |
7735 | for (auto i = 0; i < a; ++i) | |
7736 | a += b--; | |
7737 | return x + identity(a + b); | |
7738 | }(0); | |
7739 | return a + b + c + d + e; | |
7740 | } | |
7741 | ||
7742 | int | |
7743 | test3() | |
7744 | { | |
7745 | const auto nullary = [](){ return 0; }; | |
7746 | const auto unary = [](int x){ return x; }; | |
7747 | using nullary_t = decltype(nullary); | |
7748 | using unary_t = decltype(unary); | |
7749 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7750 | const auto higher2nd = [unary](nullary_t f1){ | |
7751 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7752 | }; | |
7753 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7754 | } | |
7755 | ||
7756 | } | |
7757 | ||
7758 | namespace test_variadic_templates | |
7759 | { | |
7760 | ||
7761 | template <int...> | |
7762 | struct sum; | |
7763 | ||
7764 | template <int N0, int... N1toN> | |
7765 | struct sum<N0, N1toN...> | |
7766 | { | |
7767 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7768 | }; | |
7769 | ||
7770 | template <> | |
7771 | struct sum<> | |
7772 | { | |
7773 | static constexpr auto value = 0; | |
7774 | }; | |
7775 | ||
7776 | static_assert(sum<>::value == 0, ""); | |
7777 | static_assert(sum<1>::value == 1, ""); | |
7778 | static_assert(sum<23>::value == 23, ""); | |
7779 | static_assert(sum<1, 2>::value == 3, ""); | |
7780 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7781 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7782 | ||
7783 | } | |
7784 | ||
7785 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7786 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7787 | // because of this. | |
7788 | namespace test_template_alias_sfinae | |
7789 | { | |
7790 | ||
7791 | struct foo {}; | |
7792 | ||
7793 | template<typename T> | |
7794 | using member = typename T::member_type; | |
7795 | ||
7796 | template<typename T> | |
7797 | void func(...) {} | |
7798 | ||
7799 | template<typename T> | |
7800 | void func(member<T>*) {} | |
7801 | ||
7802 | void test(); | |
7803 | ||
7804 | void test() { func<foo>(0); } | |
7805 | ||
7806 | } | |
7807 | ||
7808 | } // namespace cxx11 | |
7809 | ||
7810 | #endif // __cplusplus >= 201103L | |
7811 | ||
7812 | ||
7813 | ||
7814 | _ACEOF | |
7815 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7816 | eval $cachevar=yes | |
7817 | else | |
7818 | eval $cachevar=no | |
7819 | fi | |
7820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7821 | CXX="$ac_save_CXX" | |
7822 | fi | |
7823 | eval ac_res=\$$cachevar | |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7825 | $as_echo "$ac_res" >&6; } | |
7826 | if eval test x\$$cachevar = xyes; then | |
7827 | CXX="$CXX $switch" | |
7828 | if test -n "$CXXCPP" ; then | |
7829 | CXXCPP="$CXXCPP $switch" | |
7830 | fi | |
7831 | ac_success=yes | |
7832 | break | |
7833 | fi | |
7834 | done | |
7835 | if test x$ac_success = xyes; then | |
7836 | break | |
7837 | fi | |
7838 | done | |
7839 | fi | |
7840 | CXX_FOR_BUILD="$CXX" | |
7841 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7842 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7843 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7844 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7845 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7846 | ac_ext=c | |
7847 | ac_cpp='$CPP $CPPFLAGS' | |
7848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7851 | ||
7852 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7853 | if test x$ac_success = xno; then | |
7854 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7855 | fi | |
7856 | fi | |
7857 | if test x$ac_success = xno; then | |
7858 | HAVE_CXX11_FOR_BUILD=0 | |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7860 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7861 | else | |
7862 | HAVE_CXX11_FOR_BUILD=1 | |
7863 | ||
7864 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7865 | ||
7866 | fi | |
7867 | ||
7868 | ||
7869 | fi | |
46070488 JM |
7870 | fi |
7871 | ||
4a5e71f2 L |
7872 | # Check whether --enable-pgo-build was given. |
7873 | if test "${enable_pgo_build+set}" = set; then : | |
7874 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7875 | else | |
7876 | enable_pgo_build=no | |
7877 | fi | |
7878 | ||
7879 | ||
7880 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7881 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7882 | *:*:*:no) ;; | |
7883 | ||
7884 | # Allow the PGO build only if we aren't building a compiler and | |
7885 | # we are in a native configuration. | |
7886 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7887 | ||
7888 | # Disallow the PGO bootstrap if we are building a compiler. | |
7889 | yes:*:*:yes | yes:*:*:lto) | |
7890 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7891 | ||
7892 | *) | |
7893 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7894 | ;; | |
7895 | esac | |
7896 | ||
7897 | if test "$enable_pgo_build" != "no"; then | |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7899 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7900 | old_CFLAGS="$CFLAGS" | |
7901 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7902 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7903 | ||
7904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7905 | /* end confdefs.h. */ | |
7906 | int foo; | |
7907 | _ACEOF | |
7908 | if ac_fn_c_try_compile "$LINENO"; then : | |
7909 | ||
7910 | else | |
7911 | PGO_BUILD_GEN_CFLAGS= | |
7912 | fi | |
7913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7914 | CFLAGS="$old_CFLAGS" | |
7915 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7917 | $as_echo "yes" >&6; } | |
7918 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7919 | else | |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7921 | $as_echo "no" >&6; } | |
7922 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7923 | fi | |
7924 | ||
7925 | if test "$enable_pgo_build" = "lto"; then | |
7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7927 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7928 | old_CFLAGS="$CFLAGS" | |
7929 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7930 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7932 | /* end confdefs.h. */ | |
7933 | int foo; | |
7934 | _ACEOF | |
7935 | if ac_fn_c_try_compile "$LINENO"; then : | |
7936 | ||
7937 | else | |
7938 | PGO_BUILD_LTO_CFLAGS= | |
7939 | fi | |
7940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7941 | CFLAGS="$old_CFLAGS" | |
7942 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7944 | $as_echo "yes" >&6; } | |
7945 | else | |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7947 | $as_echo "no" >&6; } | |
7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7949 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7950 | fi | |
7951 | fi | |
7952 | fi | |
7953 | ||
7954 | ||
7955 | ||
7956 | ||
592c90ff KG |
7957 | # Used for setting $lt_cv_objdir |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7959 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7960 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7961 | $as_echo_n "(cached) " >&6 |
7962 | else | |
7963 | rm -f .libs 2>/dev/null | |
7964 | mkdir .libs 2>/dev/null | |
7965 | if test -d .libs; then | |
7966 | lt_cv_objdir=.libs | |
7967 | else | |
7968 | # MS-DOS does not allow filenames that begin with a dot. | |
7969 | lt_cv_objdir=_libs | |
7970 | fi | |
7971 | rmdir .libs 2>/dev/null | |
7972 | fi | |
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7974 | $as_echo "$lt_cv_objdir" >&6; } | |
7975 | objdir=$lt_cv_objdir | |
7976 | ||
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | cat >>confdefs.h <<_ACEOF | |
7982 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7983 | _ACEOF | |
7984 | ||
7985 | ||
7986 | ||
acd26225 | 7987 | # Check for GMP, MPFR and MPC |
91e0d220 AP |
7988 | require_gmp=no |
7989 | require_mpc=no | |
7990 | if test -d ${srcdir}/gcc ; then | |
7991 | require_gmp=yes | |
7992 | require_mpc=yes | |
7993 | fi | |
7994 | if test -d ${srcdir}/gdb ; then | |
5977d14a CC |
7995 | if test "x$enable_gdb" != xno; then |
7996 | require_gmp=yes | |
7997 | fi | |
91e0d220 AP |
7998 | fi |
7999 | ||
8000 | gmplibs="-lmpfr -lgmp" | |
8001 | if test x"$require_mpc" = "xyes" ; then | |
8002 | gmplibs="-lmpc $gmplibs" | |
8003 | fi | |
6de9cd9a | 8004 | gmpinc= |
e69bf64b | 8005 | have_gmp=no |
acd26225 KG |
8006 | |
8007 | # Specify a location for mpc | |
8008 | # check for this first so it ends up on the link line before mpfr. | |
8009 | ||
5213506e RW |
8010 | # Check whether --with-mpc was given. |
8011 | if test "${with_mpc+set}" = set; then : | |
8012 | withval=$with_mpc; | |
8013 | fi | |
acd26225 | 8014 | |
acd26225 | 8015 | |
9965e3cd | 8016 | # Check whether --with-mpc-include was given. |
5213506e RW |
8017 | if test "${with_mpc_include+set}" = set; then : |
8018 | withval=$with_mpc_include; | |
8019 | fi | |
acd26225 | 8020 | |
acd26225 | 8021 | |
9965e3cd | 8022 | # Check whether --with-mpc-lib was given. |
5213506e RW |
8023 | if test "${with_mpc_lib+set}" = set; then : |
8024 | withval=$with_mpc_lib; | |
8025 | fi | |
acd26225 | 8026 | |
acd26225 KG |
8027 | |
8028 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
8029 | gmplibs="-L$with_mpc/lib $gmplibs" |
8030 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
8031 | fi |
8032 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 8033 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
8034 | fi |
8035 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 8036 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
8037 | fi |
8038 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 8039 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 8040 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
8041 | # Do not test the mpc version. Assume that it is sufficient, since |
8042 | # it is in the source tree, and the library has not been built yet | |
8043 | # but it would be included on the link line in the version check below | |
8044 | # hence making the test fail. | |
3a5729ea | 8045 | have_gmp=yes |
acd26225 | 8046 | fi |
e69bf64b | 8047 | |
bebf829d PB |
8048 | # Specify a location for mpfr |
8049 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 8050 | |
5213506e RW |
8051 | # Check whether --with-mpfr was given. |
8052 | if test "${with_mpfr+set}" = set; then : | |
8053 | withval=$with_mpfr; | |
8054 | fi | |
1c710c3c | 8055 | |
bebf829d | 8056 | |
9965e3cd | 8057 | # Check whether --with-mpfr-include was given. |
5213506e RW |
8058 | if test "${with_mpfr_include+set}" = set; then : |
8059 | withval=$with_mpfr_include; | |
8060 | fi | |
1c710c3c | 8061 | |
8a877c9c | 8062 | |
9965e3cd | 8063 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
8064 | if test "${with_mpfr_lib+set}" = set; then : |
8065 | withval=$with_mpfr_lib; | |
8066 | fi | |
8a877c9c | 8067 | |
bebf829d PB |
8068 | |
8069 | if test "x$with_mpfr" != x; then | |
8070 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 8071 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 8072 | fi |
8a877c9c | 8073 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 8074 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
8075 | fi |
8076 | if test "x$with_mpfr_lib" != x; then | |
8077 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8078 | fi | |
e69bf64b | 8079 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
8080 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
8081 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 8082 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 8083 | fi |
00f35794 BE |
8084 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8085 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8086 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
8087 | # Do not test the mpfr version. Assume that it is sufficient, since |
8088 | # it is in the source tree, and the library has not been built yet | |
8089 | # but it would be included on the link line in the version check below | |
8090 | # hence making the test fail. | |
8091 | have_gmp=yes | |
8092 | fi | |
bebf829d | 8093 | |
6de9cd9a | 8094 | # Specify a location for gmp |
1c710c3c | 8095 | |
5213506e RW |
8096 | # Check whether --with-gmp was given. |
8097 | if test "${with_gmp+set}" = set; then : | |
8098 | withval=$with_gmp; | |
8099 | fi | |
1c710c3c | 8100 | |
6de9cd9a | 8101 | |
9965e3cd | 8102 | # Check whether --with-gmp-include was given. |
5213506e RW |
8103 | if test "${with_gmp_include+set}" = set; then : |
8104 | withval=$with_gmp_include; | |
8105 | fi | |
1c710c3c | 8106 | |
8a877c9c | 8107 | |
9965e3cd | 8108 | # Check whether --with-gmp-lib was given. |
5213506e RW |
8109 | if test "${with_gmp_lib+set}" = set; then : |
8110 | withval=$with_gmp_lib; | |
8111 | fi | |
8a877c9c KG |
8112 | |
8113 | ||
6de9cd9a | 8114 | |
bebf829d PB |
8115 | if test "x$with_gmp" != x; then |
8116 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8117 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 8118 | fi |
8a877c9c KG |
8119 | if test "x$with_gmp_include" != x; then |
8120 | gmpinc="-I$with_gmp_include $gmpinc" | |
8121 | fi | |
8122 | if test "x$with_gmp_lib" != x; then | |
8123 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8124 | fi | |
e69bf64b | 8125 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 8126 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 8127 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 8128 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 8129 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 8130 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
8131 | # Do not test the gmp version. Assume that it is sufficient, since |
8132 | # it is in the source tree, and the library has not been built yet | |
8133 | # but it would be included on the link line in the version check below | |
8134 | # hence making the test fail. | |
8135 | have_gmp=yes | |
8136 | fi | |
6de9cd9a | 8137 | |
91e0d220 | 8138 | if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then |
e69bf64b PB |
8139 | have_gmp=yes |
8140 | saved_CFLAGS="$CFLAGS" | |
8141 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8142 | # Check for the recommended and required versions of GMP. |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8144 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4a5e71f2 | 8145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
362c6d2f KG |
8146 | /* end confdefs.h. */ |
8147 | #include "gmp.h" | |
8148 | int | |
8149 | main () | |
8150 | { | |
8151 | ||
8152 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8153 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8154 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8155 | choke me |
8156 | #endif | |
8157 | ||
8158 | ; | |
8159 | return 0; | |
8160 | } | |
8161 | _ACEOF | |
8162 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8164 | /* end confdefs.h. */ |
362c6d2f | 8165 | #include <gmp.h> |
1c710c3c DJ |
8166 | int |
8167 | main () | |
8168 | { | |
6de9cd9a | 8169 | |
362c6d2f KG |
8170 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8171 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8172 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8173 | choke me |
8174 | #endif | |
1c710c3c DJ |
8175 | |
8176 | ; | |
8177 | return 0; | |
8178 | } | |
8179 | _ACEOF | |
5213506e RW |
8180 | if ac_fn_c_try_compile "$LINENO"; then : |
8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8182 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8183 | else |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8185 | $as_echo "buggy but acceptable" >&6; } | |
8186 | fi | |
8187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8188 | else |
5213506e RW |
8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8190 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8191 | fi |
5213506e | 8192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8193 | |
acd26225 | 8194 | # If we have GMP, check the MPFR version. |
e69bf64b | 8195 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8196 | # Check for the recommended and required versions of MPFR. |
8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8198 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8200 | /* end confdefs.h. */ |
70ec446f | 8201 | #include <gmp.h> |
e69bf64b | 8202 | #include <mpfr.h> |
1c710c3c DJ |
8203 | int |
8204 | main () | |
8205 | { | |
e48d66a9 | 8206 | |
8be34204 | 8207 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8208 | choke me |
8209 | #endif | |
1c710c3c DJ |
8210 | |
8211 | ; | |
8212 | return 0; | |
8213 | } | |
8214 | _ACEOF | |
5213506e RW |
8215 | if ac_fn_c_try_compile "$LINENO"; then : |
8216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8217 | /* end confdefs.h. */ |
a3993f33 | 8218 | #include <gmp.h> |
e69bf64b | 8219 | #include <mpfr.h> |
1c710c3c DJ |
8220 | int |
8221 | main () | |
8222 | { | |
a3993f33 | 8223 | |
8be34204 | 8224 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8225 | choke me |
8226 | #endif | |
acd26225 KG |
8227 | |
8228 | ; | |
8229 | return 0; | |
8230 | } | |
8231 | _ACEOF | |
5213506e RW |
8232 | if ac_fn_c_try_compile "$LINENO"; then : |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8234 | $as_echo "yes" >&6; } | |
acd26225 | 8235 | else |
5213506e RW |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8237 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8238 | fi |
5213506e | 8239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8240 | else |
5213506e RW |
8241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8242 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8243 | fi |
5213506e | 8244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8245 | fi |
8246 | ||
8247 | # Check for the MPC header version. | |
91e0d220 | 8248 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then |
362c6d2f | 8249 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8251 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8253 | /* end confdefs.h. */ |
8254 | #include <mpc.h> | |
8255 | int | |
8256 | main () | |
8257 | { | |
8258 | ||
362c6d2f KG |
8259 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8260 | choke me | |
8261 | #endif | |
8262 | ||
8263 | ; | |
8264 | return 0; | |
8265 | } | |
8266 | _ACEOF | |
8267 | if ac_fn_c_try_compile "$LINENO"; then : | |
8268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8269 | /* end confdefs.h. */ | |
8270 | #include <mpc.h> | |
8271 | int | |
8272 | main () | |
8273 | { | |
8274 | ||
8275 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8276 | choke me |
8277 | #endif | |
8278 | ||
8279 | ; | |
8280 | return 0; | |
8281 | } | |
8282 | _ACEOF | |
5213506e RW |
8283 | if ac_fn_c_try_compile "$LINENO"; then : |
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8285 | $as_echo "yes" >&6; } |
362c6d2f KG |
8286 | else |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8288 | $as_echo "buggy but acceptable" >&6; } | |
8289 | fi | |
8290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8291 | else |
5213506e | 8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8293 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8294 | fi |
5213506e | 8295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8296 | fi |
8297 | ||
8298 | # Now check the MPFR library. | |
8299 | if test x"$have_gmp" = xyes; then | |
8300 | saved_LIBS="$LIBS" | |
8301 | LIBS="$LIBS $gmplibs" | |
91e0d220 AP |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5 |
8303 | $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; } | |
5213506e | 8304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8305 | /* end confdefs.h. */ |
91e0d220 | 8306 | #include <mpfr.h> |
acd26225 KG |
8307 | int |
8308 | main () | |
8309 | { | |
8310 | ||
8311 | mpfr_t n; | |
8312 | mpfr_t x; | |
8313 | int t; | |
8314 | mpfr_init (n); | |
8315 | mpfr_init (x); | |
90ca6847 TB |
8316 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8317 | mpfr_erfc (n, x, MPFR_RNDN); | |
8318 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8319 | mpfr_clear(n); |
8320 | mpfr_clear(x); | |
91e0d220 AP |
8321 | |
8322 | ; | |
8323 | return 0; | |
8324 | } | |
8325 | _ACEOF | |
8326 | if ac_fn_c_try_link "$LINENO"; then : | |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8328 | $as_echo "yes" >&6; } | |
8329 | else | |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8331 | $as_echo "no" >&6; }; have_gmp=no | |
8332 | fi | |
8333 | rm -f core conftest.err conftest.$ac_objext \ | |
8334 | conftest$ac_exeext conftest.$ac_ext | |
8335 | LIBS="$saved_LIBS" | |
8336 | fi | |
8337 | ||
8338 | # Now check the MPC library | |
8339 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then | |
8340 | saved_LIBS="$LIBS" | |
8341 | LIBS="$LIBS $gmplibs" | |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5 | |
8343 | $as_echo_n "checking for the correct version of the mpc libraries... " >&6; } | |
8344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8345 | /* end confdefs.h. */ | |
8346 | #include <mpc.h> | |
8347 | int | |
8348 | main () | |
8349 | { | |
8350 | ||
8351 | mpc_t c; | |
3a5729ea KG |
8352 | mpc_init2 (c, 53); |
8353 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8354 | mpc_cosh (c, c, MPC_RNDNN); | |
8355 | mpc_pow (c, c, c, MPC_RNDNN); | |
8356 | mpc_acosh (c, c, MPC_RNDNN); | |
8357 | mpc_clear (c); | |
1c710c3c DJ |
8358 | |
8359 | ; | |
8360 | return 0; | |
8361 | } | |
8362 | _ACEOF | |
5213506e RW |
8363 | if ac_fn_c_try_link "$LINENO"; then : |
8364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8365 | $as_echo "yes" >&6; } | |
1c710c3c | 8366 | else |
5213506e RW |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8368 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8369 | fi |
5213506e RW |
8370 | rm -f core conftest.err conftest.$ac_objext \ |
8371 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8372 | LIBS="$saved_LIBS" |
8373 | fi | |
8374 | ||
e69bf64b | 8375 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8376 | |
362c6d2f KG |
8377 | # The library versions listed in the error message below should match |
8378 | # the HARD-minimums enforced above. | |
e69bf64b | 8379 | if test x$have_gmp != xyes; then |
91e0d220 AP |
8380 | if test -d ${srcdir}/gcc ; then |
8381 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. | |
3a5729ea KG |
8382 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8383 | their locations. Source code for these libraries can be found at | |
8384 | their respective hosting sites as well as at | |
aeebd94c | 8385 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
45ab87d4 | 8386 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
3a5729ea KG |
8387 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, |
8388 | make sure that you have installed both the libraries and the header | |
8389 | files. They may be located in separate packages." "$LINENO" 5 | |
91e0d220 AP |
8390 | else |
8391 | as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. | |
8392 | Try the --with-gmp and/or --with-mpfr options to specify | |
8393 | their locations. If you obtained GMP and/or MPFR from a vendor | |
8394 | distribution package, make sure that you have installed both the libraries | |
8395 | and the header files. They may be located in separate packages." "$LINENO" 5 | |
8396 | fi | |
e69bf64b | 8397 | fi |
70ec446f KG |
8398 | fi |
8399 | ||
acd26225 KG |
8400 | # Flags needed for both GMP, MPFR and/or MPC. |
8401 | ||
8402 | ||
6de9cd9a DN |
8403 | |
8404 | ||
8405 | ||
9e3eba15 | 8406 | |
0ff2d841 | 8407 | |
0b21f5d3 | 8408 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8409 | |
0b21f5d3 EB |
8410 | # Check whether --with-stage1-libs was given. |
8411 | if test "${with_stage1_libs+set}" = set; then : | |
8412 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8413 | stage1_libs= | |
00020c16 | 8414 | else |
0b21f5d3 | 8415 | stage1_libs=$withval |
00020c16 ILT |
8416 | fi |
8417 | else | |
5dc85f7e | 8418 | stage1_libs= |
5213506e RW |
8419 | fi |
8420 | ||
00020c16 ILT |
8421 | |
8422 | ||
aac9103b TT |
8423 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8424 | # default is yes if gcc is being built; no otherwise. The reason for | |
8425 | # this default is that gdb is sometimes linked against GNU Source | |
8426 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8427 | # this case, -static-libstdc++ will cause crashes. | |
8428 | ||
8429 | # Check whether --with-static-standard-libraries was given. | |
8430 | if test "${with_static_standard_libraries+set}" = set; then : | |
8431 | withval=$with_static_standard_libraries; | |
8432 | else | |
8433 | with_static_standard_libraries=auto | |
8434 | fi | |
8435 | ||
8436 | if test "$with_static_standard_libraries" = auto; then | |
8437 | with_static_standard_libraries=$have_compiler | |
8438 | fi | |
8439 | ||
0b21f5d3 | 8440 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8441 | |
0b21f5d3 EB |
8442 | # Check whether --with-stage1-ldflags was given. |
8443 | if test "${with_stage1_ldflags+set}" = set; then : | |
8444 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8445 | stage1_ldflags= | |
00020c16 | 8446 | else |
0b21f5d3 | 8447 | stage1_ldflags=$withval |
00020c16 ILT |
8448 | fi |
8449 | else | |
0b21f5d3 EB |
8450 | stage1_ldflags= |
8451 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8452 | # if supported. But if the user explicitly specified the libraries to use, | |
8453 | # trust that they are doing what they want. | |
aac9103b TT |
8454 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8455 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8456 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8457 | fi | |
5213506e RW |
8458 | fi |
8459 | ||
00020c16 ILT |
8460 | |
8461 | ||
5dc85f7e | 8462 | # Libraries to use for stage2 and later builds. |
00020c16 | 8463 | |
5213506e RW |
8464 | # Check whether --with-boot-libs was given. |
8465 | if test "${with_boot_libs+set}" = set; then : | |
8466 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8467 | poststage1_libs= |
8468 | else | |
8469 | poststage1_libs=$withval | |
8470 | fi | |
8471 | else | |
5dc85f7e | 8472 | poststage1_libs= |
5213506e RW |
8473 | fi |
8474 | ||
00020c16 ILT |
8475 | |
8476 | ||
ed2eaa9f ILT |
8477 | # Linker flags to use for stage2 and later builds. |
8478 | ||
8479 | # Check whether --with-boot-ldflags was given. | |
8480 | if test "${with_boot_ldflags+set}" = set; then : | |
8481 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8482 | poststage1_ldflags= | |
8483 | else | |
8484 | poststage1_ldflags=$withval | |
8485 | fi | |
8486 | else | |
8487 | poststage1_ldflags= | |
bec93d73 ILT |
8488 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8489 | # statically. But if the user explicitly specified the libraries to | |
8490 | # use, trust that they are doing what they want. | |
8491 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8492 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8493 | fi | |
8494 | fi | |
8495 | ||
6a6d3817 IS |
8496 | case $target in |
8497 | *-darwin2* | *-darwin1[56789]*) | |
8498 | # For these versions, we default to using embedded rpaths. | |
8499 | if test "x$enable_darwin_at_rpath" != "xno"; then | |
8500 | poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths" | |
8501 | fi | |
8502 | ;; | |
8503 | *-darwin*) | |
8504 | # For these versions, we only use embedded rpaths on demand. | |
8505 | if test "x$enable_darwin_at_rpath" = "xyes"; then | |
8506 | poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths" | |
8507 | fi | |
8508 | ;; | |
8509 | esac | |
ed2eaa9f ILT |
8510 | |
8511 | ||
e357a5e0 | 8512 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8513 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8514 | |
8515 | ||
33ad93b9 RG |
8516 | # Check whether --with-isl was given. |
8517 | if test "${with_isl+set}" = set; then : | |
8518 | withval=$with_isl; | |
5213506e | 8519 | fi |
f8bf9252 | 8520 | |
f8bf9252 | 8521 | |
eae1a5d4 | 8522 | # Treat --without-isl as a request to disable |
625afa23 | 8523 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8524 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8525 | # Check for isl |
625afa23 RG |
8526 | |
8527 | ||
33ad93b9 RG |
8528 | # Check whether --with-isl-include was given. |
8529 | if test "${with_isl_include+set}" = set; then : | |
8530 | withval=$with_isl_include; | |
5213506e RW |
8531 | fi |
8532 | ||
f8bf9252 | 8533 | |
33ad93b9 RG |
8534 | # Check whether --with-isl-lib was given. |
8535 | if test "${with_isl_lib+set}" = set; then : | |
8536 | withval=$with_isl_lib; | |
5213506e | 8537 | fi |
f8bf9252 | 8538 | |
f8bf9252 | 8539 | |
33ad93b9 RG |
8540 | # Check whether --enable-isl-version-check was given. |
8541 | if test "${enable_isl_version_check+set}" = set; then : | |
8542 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8543 | else | |
8544 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8545 | fi |
8546 | ||
8547 | ||
33ad93b9 RG |
8548 | # Initialize isllibs and islinc. |
8549 | case $with_isl in | |
8550 | no) | |
8551 | isllibs= | |
8552 | islinc= | |
8553 | ;; | |
8554 | "" | yes) | |
8555 | ;; | |
8556 | *) | |
8557 | isllibs="-L$with_isl/lib" | |
8558 | islinc="-I$with_isl/include" | |
8559 | ;; | |
8560 | esac | |
8561 | if test "x${with_isl_include}" != x ; then | |
8562 | islinc="-I$with_isl_include" | |
8563 | fi | |
8564 | if test "x${with_isl_lib}" != x; then | |
8565 | isllibs="-L$with_isl_lib" | |
8566 | fi | |
8567 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8568 | && test -d ${srcdir}/isl; then | |
8569 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8570 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8571 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8573 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8574 | fi |
7d32a440 | 8575 | |
eae1a5d4 RG |
8576 | isllibs="${isllibs} -lisl" |
8577 | ||
7d32a440 | 8578 | |
7d32a440 | 8579 | |
9847828b RB |
8580 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8581 | _isl_saved_CFLAGS=$CFLAGS | |
8582 | _isl_saved_LDFLAGS=$LDFLAGS | |
8583 | _isl_saved_LIBS=$LIBS | |
8584 | ||
8585 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8586 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8587 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8588 | |
f877b3ad RB |
8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8590 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8592 | /* end confdefs.h. */ |
f877b3ad | 8593 | #include <isl/schedule.h> |
622dbadf BC |
8594 | int |
8595 | main () | |
8596 | { | |
f877b3ad | 8597 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8598 | ; |
8599 | return 0; | |
8600 | } | |
8601 | _ACEOF | |
8602 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8603 | gcc_cv_isl=yes |
622dbadf BC |
8604 | else |
8605 | gcc_cv_isl=no | |
8606 | fi | |
8607 | rm -f core conftest.err conftest.$ac_objext \ | |
8608 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8610 | $as_echo "$gcc_cv_isl" >&6; } | |
8611 | ||
560d18d3 | 8612 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8614 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8615 | fi |
8616 | ||
9847828b RB |
8617 | CFLAGS=$_isl_saved_CFLAGS |
8618 | LDFLAGS=$_isl_saved_LDFLAGS | |
8619 | LIBS=$_isl_saved_LIBS | |
8620 | fi | |
8621 | ||
8622 | ||
f8bf9252 | 8623 | |
f8bf9252 | 8624 | |
33ad93b9 RG |
8625 | |
8626 | ||
33ad93b9 RG |
8627 | if test "x${with_isl}" = xno; then |
8628 | graphite_requested=no | |
8629 | elif test "x${with_isl}" != x \ | |
8630 | || test "x${with_isl_include}" != x \ | |
8631 | || test "x${with_isl_lib}" != x ; then | |
8632 | graphite_requested=yes | |
8633 | else | |
8634 | graphite_requested=no | |
7d32a440 | 8635 | fi |
d789184e | 8636 | |
d789184e SP |
8637 | |
8638 | ||
33ad93b9 RG |
8639 | if test "${gcc_cv_isl}" = no ; then |
8640 | isllibs= | |
8641 | islinc= | |
8642 | fi | |
8643 | ||
8644 | if test "${graphite_requested}" = yes \ | |
8645 | && test "x${isllibs}" = x \ | |
8646 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8647 | |
22e05272 | 8648 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8649 | fi |
f8bf9252 | 8650 | |
d32ef397 | 8651 | |
d32ef397 AS |
8652 | fi |
8653 | ||
e357a5e0 | 8654 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8655 | if test "x$with_isl" = xno || |
625afa23 | 8656 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8657 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8658 | islinc= |
32d024bf RG |
8659 | fi |
8660 | ||
625afa23 RG |
8661 | |
8662 | ||
8663 | ||
d7f09764 DN |
8664 | # Check for LTO support. |
8665 | # Check whether --enable-lto was given. | |
8666 | if test "${enable_lto+set}" = set; then : | |
8667 | enableval=$enable_lto; enable_lto=$enableval | |
8668 | else | |
8669 | enable_lto=yes; default_enable_lto=yes | |
8670 | fi | |
8671 | ||
8672 | ||
7413962d | 8673 | |
9a02962b DK |
8674 | |
8675 | ||
8676 | target_elf=no | |
8677 | case $target in | |
8678 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8679 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8680 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8681 | nvptx-*-none) |
9a02962b DK |
8682 | target_elf=no |
8683 | ;; | |
8684 | *) | |
8685 | target_elf=yes | |
8686 | ;; | |
8687 | esac | |
8688 | ||
8689 | if test $target_elf = yes; then : | |
48215350 DK |
8690 | # ELF platforms build the lto-plugin always. |
8691 | build_lto_plugin=yes | |
9a02962b | 8692 | |
9a02962b DK |
8693 | else |
8694 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8695 | case $target in |
deeba76a | 8696 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8697 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8698 | *) enable_lto=no ;; |
8699 | esac | |
9a02962b | 8700 | else |
db50fe7d IS |
8701 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8702 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8703 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8704 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8705 | # -flto it won't be needed until after installation anyway. | |
8706 | case $target in | |
9e530bcd | 8707 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8708 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8709 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8710 | fi |
8711 | ;; | |
8712 | esac | |
8713 | fi | |
1cd0b716 | 8714 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8715 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8716 | case $target in |
48215350 | 8717 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8718 | *) ;; |
8719 | esac | |
48215350 | 8720 | |
9a02962b DK |
8721 | fi |
8722 | ||
d7f09764 | 8723 | |
45b3824d TS |
8724 | # Check whether --enable-linker-plugin-configure-flags was given. |
8725 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8726 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8727 | else | |
8728 | extra_linker_plugin_configure_flags= | |
8729 | fi | |
8730 | ||
8731 | ||
8732 | # Check whether --enable-linker-plugin-flags was given. | |
8733 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8734 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8735 | else | |
8736 | extra_linker_plugin_flags= | |
8737 | fi | |
8738 | ||
8739 | ||
8740 | ||
c1fecabe IS |
8741 | # Handle --enable-host-pie |
8742 | # If host PIE executables are the default (or must be forced on) for some host, | |
8743 | # we must pass that configuration to the gcc directory. | |
8744 | gcc_host_pie= | |
b6cb10af MP |
8745 | # Check whether --enable-host-pie was given. |
8746 | if test "${enable_host_pie+set}" = set; then : | |
8747 | enableval=$enable_host_pie; host_pie=$enableval | |
8748 | case $host in | |
c1fecabe | 8749 | *-*-darwin2*) |
b6cb10af | 8750 | if test x$host_pie != xyes ; then |
c1fecabe IS |
8751 | # for Darwin20+ this is required. |
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5 | |
8753 | $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;} | |
b6cb10af | 8754 | host_pie=yes |
c1fecabe | 8755 | gcc_host_pie=--enable-host-pie |
b6cb10af MP |
8756 | fi ;; |
8757 | *) ;; | |
8758 | esac | |
8759 | else | |
8760 | case $host in | |
c1fecabe IS |
8761 | *-*-darwin2*) |
8762 | # Default to PIE (mandatory for aarch64). | |
8763 | host_pie=yes | |
8764 | gcc_host_pie=--enable-host-pie | |
8765 | ;; | |
b6cb10af MP |
8766 | *) host_pie=no ;; |
8767 | esac | |
8768 | fi | |
8769 | ||
8770 | ||
8771 | ||
8772 | ||
c1fecabe | 8773 | |
cdfee50a NS |
8774 | # Enable --enable-host-shared. |
8775 | # Checked early to determine whether jit is an 'all' language | |
8776 | # Check whether --enable-host-shared was given. | |
8777 | if test "${enable_host_shared+set}" = set; then : | |
8778 | enableval=$enable_host_shared; host_shared=$enableval | |
1edfc8f2 | 8779 | case $host in |
a1d2b162 IS |
8780 | x86_64-*-darwin* | aarch64-*-darwin*) |
8781 | if test x$host_shared != xyes ; then | |
8782 | # PIC is the default, and actually cannot be switched off. | |
c1fecabe IS |
8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5 |
8784 | $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;} | |
a1d2b162 IS |
8785 | host_shared=yes |
8786 | fi ;; | |
b6cb10af | 8787 | *-*-darwin*) |
c1fecabe IS |
8788 | if test x$host_pie = xyes -a x$host_shared != xyes ; then |
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5 | |
8790 | $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;} | |
b6cb10af MP |
8791 | host_shared=yes |
8792 | fi ;; | |
a1d2b162 IS |
8793 | *) ;; |
8794 | esac | |
cdfee50a | 8795 | else |
1edfc8f2 | 8796 | case $host in |
c1fecabe | 8797 | # 64B x86_64 and Aarch64 Darwin default to PIC. |
a1d2b162 | 8798 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
c1fecabe IS |
8799 | # 32B and powerpc64 Darwin must use PIC to link PIE exes. |
8800 | *-*-darwin*) host_shared=$host_pie ;; | |
b6cb10af | 8801 | *) host_shared=no;; |
a1d2b162 | 8802 | esac |
cdfee50a NS |
8803 | fi |
8804 | ||
8805 | ||
f8bf9252 | 8806 | |
05048fc2 | 8807 | |
b6cb10af | 8808 | if test x$host_shared = xyes; then |
c1fecabe IS |
8809 | case $host in |
8810 | *-*-darwin*) | |
8811 | # Since host shared is the default for 64b Darwin, and also enabled for | |
8812 | # host_pie, ensure that we present the PIE flag when host_pie is active. | |
8813 | if test x$host_pie = xyes; then | |
8814 | PICFLAG=-fPIE | |
8815 | fi | |
8816 | ;; | |
8817 | *) | |
8818 | PICFLAG=-fPIC | |
8819 | ;; | |
8820 | esac | |
b6cb10af MP |
8821 | elif test x$host_pie = xyes; then |
8822 | PICFLAG=-fPIE | |
8823 | else | |
8824 | PICFLAG= | |
8825 | fi | |
8826 | ||
8827 | ||
8828 | ||
05048fc2 IS |
8829 | # If we are building PIC/PIE host executables, and we are building dependent |
8830 | # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC | |
8831 | # code. | |
8832 | host_libs_picflag= | |
b6cb10af | 8833 | if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then |
05048fc2 IS |
8834 | host_libs_picflag='--with-pic' |
8835 | fi | |
8836 | ||
8837 | ||
0823efed | 8838 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8839 | stage1_languages=,c, |
2805b53a | 8840 | |
00020c16 | 8841 | # Target libraries that we bootstrap. |
ad1e5170 | 8842 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8843 | |
55ffb5ed NN |
8844 | # Figure out what language subdirectories are present. |
8845 | # Look if the user specified --enable-languages="..."; if not, use | |
8846 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8847 | # go away some day. | |
8848 | # NB: embedded tabs in this IF block -- do not untabify | |
8849 | if test -d ${srcdir}/gcc; then | |
8850 | if test x"${enable_languages+set}" != xset; then | |
8851 | if test x"${LANGUAGES+set}" = xset; then | |
8852 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8853 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8854 | else |
cdfee50a | 8855 | enable_languages=default |
55ffb5ed NN |
8856 | fi |
8857 | else | |
8858 | if test x"${enable_languages}" = x || | |
8859 | test x"${enable_languages}" = xyes; | |
8860 | then | |
6b1786aa | 8861 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8862 | exit 1 |
8863 | fi | |
8864 | fi | |
8865 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8866 | ||
7f26dfa3 FXC |
8867 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8868 | # and make the substitution. | |
8869 | case ,${enable_languages}, in | |
8870 | *,f95,*) | |
6b1786aa | 8871 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8872 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8873 | ;; | |
8874 | esac | |
8875 | ||
0823efed DN |
8876 | # If bootstrapping, C++ must be enabled. |
8877 | case ",$enable_languages,:$enable_bootstrap" in | |
8878 | *,c++,*:*) ;; | |
8879 | *:yes) | |
ff3ac0f4 ILT |
8880 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8881 | enable_languages="${enable_languages},c++" | |
8882 | else | |
22e05272 | 8883 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8884 | fi |
8885 | ;; | |
8886 | esac | |
8887 | ||
55ffb5ed NN |
8888 | # First scan to see if an enabled language requires some other language. |
8889 | # We assume that a given config-lang.in will list all the language | |
8890 | # front ends it requires, even if some are required indirectly. | |
8891 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8892 | case ${lang_frag} in | |
8893 | ..) ;; | |
8894 | # The odd quoting in the next line works around | |
8895 | # an apparent bug in bash 1.12 on linux. | |
8896 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8897 | *) | |
69ecd18f ILT |
8898 | # From the config-lang.in, get $language, $lang_requires, and |
8899 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8900 | language= |
8901 | lang_requires= | |
69ecd18f | 8902 | lang_requires_boot_languages= |
d4360477 NS |
8903 | # set srcdir during sourcing lang_frag to the gcc dir. |
8904 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8905 | # polutes this shell | |
8906 | saved_srcdir=${srcdir} | |
8907 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8908 | srcdir=${saved_srcdir} | |
69ecd18f | 8909 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8910 | case ,${enable_languages}, in |
8911 | *,$other,*) ;; | |
cdfee50a | 8912 | *,default,*) ;; |
55ffb5ed NN |
8913 | *,all,*) ;; |
8914 | *,$language,*) | |
8915 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8916 | enable_languages="${enable_languages},${other}" | |
8917 | ;; | |
8918 | esac | |
8919 | done | |
69ecd18f ILT |
8920 | for other in ${lang_requires_boot_languages} ; do |
8921 | if test "$other" != "c"; then | |
8922 | case ,${enable_stage1_languages}, in | |
8923 | *,$other,*) ;; | |
cdfee50a | 8924 | *,default,*) ;; |
69ecd18f ILT |
8925 | *,all,*) ;; |
8926 | *) | |
8927 | case ,${enable_languages}, in | |
8928 | *,$language,*) | |
8929 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8930 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8931 | ;; | |
8932 | esac | |
8933 | ;; | |
8934 | esac | |
8935 | fi | |
8936 | done | |
55ffb5ed NN |
8937 | ;; |
8938 | esac | |
8939 | done | |
8940 | ||
e1888513 | 8941 | new_enable_languages=,c, |
d7f09764 DN |
8942 | |
8943 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8944 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8945 | case ,${enable_languages}, in |
8946 | *,lto,*) ;; | |
8947 | *) enable_languages="${enable_languages},lto" ;; | |
8948 | esac | |
1cd0b716 | 8949 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8950 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8951 | fi |
8952 | fi | |
8953 | ||
426c1eb0 TS |
8954 | # If we're building an offloading compiler, add the LTO front end. |
8955 | if test x"$enable_as_accelerator_for" != x ; then | |
8956 | case ,${enable_languages}, in | |
8957 | *,lto,*) ;; | |
8958 | *) enable_languages="${enable_languages},lto" ;; | |
8959 | esac | |
8960 | fi | |
8961 | ||
cdfee50a | 8962 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8963 | potential_languages=,c, |
55ffb5ed | 8964 | |
4da3b0f8 ILT |
8965 | enabled_target_libs= |
8966 | disabled_target_libs= | |
8967 | ||
55ffb5ed NN |
8968 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8969 | case ${lang_frag} in | |
8970 | ..) ;; | |
8971 | # The odd quoting in the next line works around | |
8972 | # an apparent bug in bash 1.12 on linux. | |
8973 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8974 | *) | |
1c710c3c | 8975 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8976 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8977 | language= |
8978 | target_libs= | |
8979 | lang_dirs= | |
1546bb64 | 8980 | subdir_requires= |
e1888513 PB |
8981 | boot_language=no |
8982 | build_by_default=yes | |
d4360477 NS |
8983 | # set srcdir during sourcing. See above about save & restore |
8984 | saved_srcdir=${srcdir} | |
8985 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8986 | srcdir=${saved_srcdir} | |
e1888513 PB |
8987 | if test x${language} = x; then |
8988 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8989 | exit 1 | |
8990 | fi | |
8991 | ||
78767fd9 | 8992 | if test "$language" = "c++"; then |
0823efed | 8993 | boot_language=yes |
00020c16 ILT |
8994 | fi |
8995 | ||
178f875a | 8996 | add_this_lang=no |
cdfee50a NS |
8997 | # C is always enabled, so no need to add it again |
8998 | if test "$language" != "c"; then | |
8999 | case ,${enable_languages}, in | |
9000 | *,${language},*) | |
9001 | # Language was explicitly selected; include it | |
d4a10d0a | 9002 | add_this_lang=yes |
cdfee50a NS |
9003 | ;; |
9004 | *,all,*) | |
9005 | # All languages are enabled | |
9006 | add_this_lang=all | |
9007 | ;; | |
9008 | *,default,*) | |
9009 | # 'default' was selected, select it if it is a default language | |
178f875a | 9010 | add_this_lang=${build_by_default} |
cdfee50a NS |
9011 | ;; |
9012 | esac | |
9013 | fi | |
6de9cd9a | 9014 | |
1546bb64 | 9015 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 9016 | for i in $subdir_requires; do |
b6348cb3 | 9017 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
9018 | case ${add_this_lang} in |
9019 | yes) | |
1546bb64 | 9020 | # Specifically requested language; tell them. |
22e05272 | 9021 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 9022 | ;; |
cdfee50a NS |
9023 | all) |
9024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
9025 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
9026 | add_this_lang=unsupported | |
9027 | ;; | |
1546bb64 PB |
9028 | *) |
9029 | # Silently disable. | |
e1888513 | 9030 | add_this_lang=unsupported |
1546bb64 PB |
9031 | ;; |
9032 | esac | |
9033 | done | |
9034 | ||
e1888513 | 9035 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
9036 | case ${add_this_lang}:${language}:${have_gnat} in |
9037 | yes:ada:no) | |
e1888513 | 9038 | # Specifically requested language; tell them. |
22e05272 | 9039 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 9040 | ;; |
cdfee50a NS |
9041 | all:ada:no) |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
9043 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
9044 | add_this_lang=unsupported | |
9045 | ;; | |
e1888513 PB |
9046 | *:ada:no) |
9047 | # Silently disable. | |
9048 | add_this_lang=unsupported | |
9049 | ;; | |
9050 | esac | |
9051 | ||
5fee5ec3 IB |
9052 | # Disable D if no preexisting GDC is available. |
9053 | case ${add_this_lang}:${language}:${have_gdc} in | |
9054 | yes:d:no) | |
9055 | # Specifically requested language; tell them. | |
9056 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
9057 | ;; | |
9058 | all:d:no) | |
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
9060 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
9061 | add_this_lang=unsupported | |
9062 | ;; | |
9063 | *:d:no) | |
9064 | # Silently disable. | |
9065 | add_this_lang=unsupported | |
9066 | ;; | |
9067 | esac | |
9068 | ||
cdfee50a | 9069 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
9070 | # but not if building for Mingw. All code in Windows |
9071 | # is position independent code (PIC). | |
c83027f3 NB |
9072 | case $target in |
9073 | *mingw*) ;; | |
9074 | *) | |
9075 | case ${add_this_lang}:${language}:${host_shared} in | |
9076 | yes:jit:no) | |
9077 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 9078 | as_fn_error $? " |
cdfee50a NS |
9079 | Enabling language \"jit\" requires --enable-host-shared. |
9080 | ||
9081 | --enable-host-shared typically slows the rest of the compiler down by | |
9082 | a few %, so you must explicitly enable it. | |
9083 | ||
9084 | If you want to build both the jit and the regular compiler, it is often | |
9085 | best to do this via two separate configure/builds, in separate | |
9086 | directories, to avoid imposing the performance cost of | |
9087 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
9088 | ;; |
9089 | all:jit:no) | |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 9091 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
9092 | add_this_lang=unsupported |
9093 | ;; | |
9094 | *:jit:no) | |
9095 | # Silently disable. | |
9096 | add_this_lang=unsupported | |
9097 | ;; | |
9098 | esac | |
9099 | ;; | |
9100 | esac | |
cdfee50a NS |
9101 | |
9102 | # Disable a language that is unsupported by the target. | |
9103 | case "${add_this_lang}: $unsupported_languages " in | |
9104 | no:*) ;; | |
9105 | unsupported:*) ;; | |
9106 | *:*" $language "*) | |
9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9108 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 9109 | add_this_lang=unsupported |
4fab7234 HPN |
9110 | ;; |
9111 | esac | |
9112 | ||
6de9cd9a | 9113 | case $add_this_lang in |
e1888513 | 9114 | unsupported) |
55ffb5ed | 9115 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
9116 | disabled_target_libs="$disabled_target_libs $target_libs" |
9117 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 9118 | ;; |
e1888513 PB |
9119 | no) |
9120 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
9121 | disabled_target_libs="$disabled_target_libs $target_libs" |
9122 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
9123 | potential_languages="${potential_languages}${language}," |
9124 | ;; | |
cdfee50a | 9125 | all|yes) |
e1888513 PB |
9126 | new_enable_languages="${new_enable_languages}${language}," |
9127 | potential_languages="${potential_languages}${language}," | |
2805b53a | 9128 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 9129 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
9130 | case "${boot_language}:,$enable_stage1_languages," in |
9131 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 9132 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
9133 | case ",$stage1_languages," in |
9134 | *,$language,* | ,yes, | ,all,) ;; | |
9135 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9136 | esac | |
00020c16 | 9137 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 9138 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
9139 | ;; |
9140 | esac | |
9141 | ;; | |
55ffb5ed NN |
9142 | esac |
9143 | ;; | |
9144 | esac | |
9145 | done | |
9146 | ||
4da3b0f8 ILT |
9147 | # Add target libraries which are only needed for disabled languages |
9148 | # to noconfigdirs. | |
9149 | if test -n "$disabled_target_libs"; then | |
9150 | for dir in $disabled_target_libs; do | |
9151 | case " $enabled_target_libs " in | |
9152 | *" ${dir} "*) ;; | |
9153 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9154 | esac | |
9155 | done | |
9156 | fi | |
9157 | ||
5213506e RW |
9158 | # Check whether --enable-stage1-languages was given. |
9159 | if test "${enable_stage1_languages+set}" = set; then : | |
9160 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
9161 | ,no,|,,) |
9162 | # Set it to something that will have no effect in the loop below | |
9163 | enable_stage1_languages=c ;; | |
9164 | ,yes,) | |
9165 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9166 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9167 | *,all,*) | |
9168 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9169 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9170 | esac | |
9171 | ||
9172 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9173 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9174 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9175 | case $potential_languages in | |
9176 | *,$i,*) | |
9177 | case $stage1_languages in | |
9178 | *,$i,*) ;; | |
9179 | *) stage1_languages="$stage1_languages$i," ;; | |
9180 | esac ;; | |
9181 | *) | |
9182 | case $missing_languages in | |
9183 | *,$i,*) ;; | |
9184 | *) missing_languages="$missing_languages$i," ;; | |
9185 | esac ;; | |
9186 | esac | |
9187 | done | |
5213506e RW |
9188 | fi |
9189 | ||
e1888513 PB |
9190 | |
9191 | # Remove leading/trailing commas that were added for simplicity | |
9192 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 9193 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
9194 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9195 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9196 | ||
55ffb5ed | 9197 | if test "x$missing_languages" != x; then |
22e05272 | 9198 | as_fn_error $? " |
0cf085e4 | 9199 | The following requested languages could not be built: ${missing_languages} |
5213506e | 9200 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 9201 | fi |
55ffb5ed NN |
9202 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9203 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 9204 | enable_languages="$new_enable_languages" |
55ffb5ed | 9205 | fi |
e1888513 | 9206 | |
1c710c3c | 9207 | |
b2eaac4a | 9208 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
9209 | fi |
9210 | ||
27079765 AH |
9211 | # Handle --disable-<component> generically. |
9212 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9213 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
9214 | varname=`echo $dirname | sed -e s/+/_/g` |
9215 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
9216 | noconfigdirs="$noconfigdirs $dir" |
9217 | fi | |
9218 | done | |
9219 | ||
43c40f3e RO |
9220 | # Check for Boehm's garbage collector |
9221 | # Check whether --enable-objc-gc was given. | |
9222 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
9223 | enableval=$enable_objc_gc; |
9224 | fi | |
9225 | ||
9226 | ||
9227 | # Check whether --with-target-bdw-gc was given. | |
9228 | if test "${with_target_bdw_gc+set}" = set; then : | |
9229 | withval=$with_target_bdw_gc; | |
9230 | fi | |
9231 | ||
9232 | ||
9233 | # Check whether --with-target-bdw-gc-include was given. | |
9234 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9235 | withval=$with_target_bdw_gc_include; | |
9236 | fi | |
9237 | ||
9238 | ||
9239 | # Check whether --with-target-bdw-gc-lib was given. | |
9240 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9241 | withval=$with_target_bdw_gc_lib; | |
9242 | fi | |
9243 | ||
9244 | ||
9245 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9247 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9248 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
9250 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
9251 | else |
9252 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 9253 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 9254 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 9255 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
9256 | else |
9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9258 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
9259 | fi | |
9260 | fi | |
43c40f3e RO |
9261 | esac |
9262 | ||
e4cba494 | 9263 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
99776ebd | 9264 | case ,${enable_languages}, in |
1007a55c | 9265 | *,c++,*) |
5e9d6aa4 | 9266 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9267 | case "${noconfigdirs}" in |
9268 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9269 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9270 | ;; |
9271 | *) ;; | |
9272 | esac | |
9273 | ;; | |
99776ebd | 9274 | *) |
e4cba494 | 9275 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9276 | ;; |
9277 | esac | |
9278 | ||
725fb359 PEP |
9279 | case ,${enable_languages}, in |
9280 | *,rust,*) | |
9281 | case " ${noconfigdirs} " in | |
9282 | *\ target-libstdc++-v3\ *) | |
9283 | # Disable target libgrust if we're not building target libstdc++. | |
9284 | noconfigdirs="$noconfigdirs target-libgrust" | |
9285 | ;; | |
9286 | esac | |
9287 | ;; | |
9288 | esac | |
9289 | ||
dc614a83 AB |
9290 | # If gcc/ is not in the source tree then we'll not be building a |
9291 | # target compiler, assume in that case we don't want to build any | |
9292 | # target libraries or tools. | |
9293 | # | |
9294 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9295 | # this configure script, but don't always have target tools available. | |
9296 | if test ! -d ${srcdir}/gcc; then | |
9297 | skipdirs="${skipdirs} ${target_configdirs}" | |
9298 | fi | |
9299 | ||
ee6a22df L |
9300 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9301 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9302 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9303 | ||
9304 | notsupp="" | |
9305 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9306 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9307 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9308 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9309 | if test -r $srcdir/$dirname/configure ; then | |
9310 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9311 | true | |
9312 | else | |
9313 | notsupp="$notsupp $dir" | |
9314 | fi | |
9315 | fi | |
9316 | fi | |
ee6a22df L |
9317 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9318 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9319 | if test -r $srcdir/$dirname/configure ; then | |
9320 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9321 | true | |
9322 | else | |
9323 | notsupp="$notsupp $dir" | |
9324 | fi | |
9325 | fi | |
9326 | fi | |
55ffb5ed NN |
9327 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9328 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9329 | if test -r $srcdir/$dirname/configure ; then | |
9330 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9331 | true | |
9332 | else | |
9333 | notsupp="$notsupp $dir" | |
9334 | fi | |
9335 | fi | |
9336 | fi | |
9337 | done | |
9338 | ||
55ffb5ed NN |
9339 | # Quietly strip out all directories which aren't configurable in this tree. |
9340 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9341 | # is now the case. | |
23f6b2f9 PB |
9342 | build_configdirs_all="$build_configdirs" |
9343 | build_configdirs= | |
9344 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9345 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9346 | if test -f ${srcdir}/$j/configure ; then |
9347 | build_configdirs="${build_configdirs} $i" | |
9348 | fi | |
9349 | done | |
9350 | ||
55ffb5ed NN |
9351 | configdirs_all="$configdirs" |
9352 | configdirs= | |
9353 | for i in ${configdirs_all} ; do | |
9354 | if test -f ${srcdir}/$i/configure ; then | |
9355 | configdirs="${configdirs} $i" | |
9356 | fi | |
9357 | done | |
23f6b2f9 | 9358 | |
55ffb5ed NN |
9359 | target_configdirs_all="$target_configdirs" |
9360 | target_configdirs= | |
9361 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9362 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9363 | if test -f ${srcdir}/$j/configure ; then |
9364 | target_configdirs="${target_configdirs} $i" | |
9365 | fi | |
9366 | done | |
9367 | ||
45b3824d TS |
9368 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9369 | # so we have to add it after the preceding checks. | |
9370 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9371 | then | |
9372 | case " $configdirs " in | |
9373 | *" libiberty "*) | |
9374 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9375 | configdirs="$configdirs libiberty-linker-plugin" | |
9376 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9377 | --with-libiberty=../libiberty-linker-plugin";; | |
9378 | *) | |
22e05272 | 9379 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9380 | esac |
9381 | fi | |
9382 | ||
fca38047 TS |
9383 | # Sometimes we have special requirements for the host libiberty. |
9384 | extra_host_libiberty_configure_flags= | |
9385 | case " $configdirs " in | |
15368960 | 9386 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
fca38047 TS |
9387 | # When these are to be built as shared libraries, the same applies to |
9388 | # libiberty. | |
9389 | extra_host_libiberty_configure_flags=--enable-shared | |
9390 | ;; | |
04bb15e4 TV |
9391 | esac |
9392 | ||
9393 | ||
9394 | # Sometimes we have special requirements for the host zlib. | |
9395 | extra_host_zlib_configure_flags= | |
9396 | case " $configdirs " in | |
1c01ebf6 L |
9397 | *" bfd "*) |
9398 | # When bfd is to be built as a shared library, the same applies to | |
9399 | # zlib. | |
9400 | if test "$enable_shared" = "yes"; then | |
9401 | extra_host_zlib_configure_flags=--enable-host-shared | |
9402 | fi | |
9403 | ;; | |
fca38047 TS |
9404 | esac |
9405 | ||
9406 | ||
55ffb5ed NN |
9407 | # Produce a warning message for the subdirs we can't configure. |
9408 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9409 | # FSF releases, it's important to let people know when their machine isn't | |
9410 | # supported by the one or two programs in a package. | |
9411 | ||
9412 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9413 | # If $appdirs is non-empty, at least one of those directories must still | |
9414 | # be configured, or we error out. (E.g., if the gas release supports a | |
9415 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9416 | # pretend that all is well.) | |
9417 | if test -n "$appdirs" ; then | |
9418 | for dir in $appdirs ; do | |
9419 | if test -r $dir/Makefile.in ; then | |
9420 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9421 | appdirs="" | |
9422 | break | |
9423 | fi | |
23f6b2f9 | 9424 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9425 | appdirs="" |
9426 | break | |
9427 | fi | |
9428 | fi | |
9429 | done | |
9430 | if test -n "$appdirs" ; then | |
9431 | echo "*** This configuration is not supported by this package." 1>&2 | |
9432 | exit 1 | |
9433 | fi | |
9434 | fi | |
9435 | # Okay, some application will build, or we don't care to check. Still | |
9436 | # notify of subdirs not getting built. | |
9437 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9438 | echo " ${notsupp}" 1>&2 | |
9439 | echo " (Any other directories should still work fine.)" 1>&2 | |
9440 | fi | |
9441 | ||
9442 | case "$host" in | |
9443 | *msdosdjgpp*) | |
9444 | enable_gdbtk=no ;; | |
9445 | esac | |
9446 | ||
c3a86da9 DJ |
9447 | # To find our prefix, in gcc_cv_tool_prefix. |
9448 | ||
9449 | # The user is always right. | |
9450 | if test "${PATH_SEPARATOR+set}" != set; then | |
9451 | echo "#! /bin/sh" >conf$$.sh | |
9452 | echo "exit 0" >>conf$$.sh | |
9453 | chmod +x conf$$.sh | |
9454 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9455 | PATH_SEPARATOR=';' | |
9456 | else | |
9457 | PATH_SEPARATOR=: | |
9458 | fi | |
9459 | rm -f conf$$.sh | |
9460 | fi | |
9461 | ||
9462 | ||
3c36aa6b JJ |
9463 | get_gcc_base_ver="cat" |
9464 | ||
9465 | # Check whether --with-gcc-major-version-only was given. | |
9466 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9467 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9468 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9469 | fi |
9470 | ||
9471 | fi | |
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
c3a86da9 DJ |
9477 | |
9478 | if test "x$exec_prefix" = xNONE; then | |
9479 | if test "x$prefix" = xNONE; then | |
9480 | gcc_cv_tool_prefix=$ac_default_prefix | |
9481 | else | |
9482 | gcc_cv_tool_prefix=$prefix | |
9483 | fi | |
9484 | else | |
9485 | gcc_cv_tool_prefix=$exec_prefix | |
9486 | fi | |
9487 | ||
9488 | # If there is no compiler in the tree, use the PATH only. In any | |
9489 | # case, if there is no compiler in the tree nobody should use | |
9490 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9491 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9492 | if test x$with_gcc_major_version_only = xyes ; then |
9493 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9494 | else | |
9495 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9496 | fi | |
c3a86da9 DJ |
9497 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9498 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9499 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9500 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9501 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9502 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9503 | else | |
9504 | gcc_cv_tool_dirs= | |
9505 | fi | |
9506 | ||
9507 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9508 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | ||
55ffb5ed NN |
9513 | copy_dirs= |
9514 | ||
1c710c3c | 9515 | |
5213506e RW |
9516 | # Check whether --with-build-sysroot was given. |
9517 | if test "${with_build_sysroot+set}" = set; then : | |
9518 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9519 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9520 | fi | |
9521 | else | |
9522 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9523 | fi |
526635cb MM |
9524 | |
9525 | ||
c8aea42c | 9526 | |
5213506e RW |
9527 | |
9528 | # Check whether --with-debug-prefix-map was given. | |
9529 | if test "${with_debug_prefix_map+set}" = set; then : | |
9530 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9531 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9532 | for debug_map in $withval; do | |
9533 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9534 | done | |
9535 | fi | |
9536 | else | |
9537 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9538 | fi |
9539 | ||
c8aea42c PB |
9540 | |
9541 | ||
1c8bd6a3 PB |
9542 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9543 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9544 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9545 | # We want to ensure that TARGET libraries (which we know are built with | |
9546 | # gcc) are built with "-O2 -g", so include those options when setting | |
9547 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9548 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9549 | if test "x${is_cross_compiler}" = xyes; then |
9550 | CFLAGS_FOR_TARGET="-g -O2" | |
9551 | else | |
9552 | CFLAGS_FOR_TARGET=$CFLAGS | |
9553 | case " $CFLAGS " in | |
9554 | *" -O2 "*) ;; | |
9555 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9556 | esac | |
9557 | case " $CFLAGS " in | |
9558 | *" -g "* | *" -g3 "*) ;; | |
9559 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9560 | esac | |
9561 | fi | |
1c8bd6a3 PB |
9562 | fi |
9563 | ||
9564 | ||
9565 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9566 | if test "x${is_cross_compiler}" = xyes; then |
9567 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9568 | else | |
9569 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9570 | case " $CXXFLAGS " in | |
9571 | *" -O2 "*) ;; | |
9572 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9573 | esac | |
9574 | case " $CXXFLAGS " in | |
9575 | *" -g "* | *" -g3 "*) ;; | |
9576 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9577 | esac | |
9578 | fi | |
1c8bd6a3 PB |
9579 | fi |
9580 | ||
9581 | ||
6f57bdf6 DK |
9582 | |
9583 | ||
55ffb5ed NN |
9584 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9585 | # the named directory are copied to $(tooldir)/sys-include. | |
9586 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9587 | if test x${is_cross_compiler} = xno ; then | |
9588 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9589 | exit 1 | |
9590 | fi | |
9591 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9592 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9593 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9594 | fi |
9595 | fi | |
9596 | ||
9597 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9598 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9599 | # are permitted. | |
9600 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9601 | if test x${is_cross_compiler} = xno ; then | |
9602 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9603 | exit 1 | |
9604 | fi | |
9605 | if test x"${with_libs}" != xyes ; then | |
9606 | # Copy the libraries in reverse order, so that files in the first named | |
9607 | # library override files in subsequent libraries. | |
c3a86da9 | 9608 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9609 | for l in ${with_libs}; do |
1c710c3c | 9610 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9611 | done |
9612 | fi | |
9613 | fi | |
9614 | ||
d7f09764 | 9615 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9616 | # |
9617 | # This is done by determining whether or not the appropriate directory | |
9618 | # is available, and by checking whether or not specific configurations | |
9619 | # have requested that this magic not happen. | |
1c710c3c DJ |
9620 | # |
9621 | # The command line options always override the explicit settings in | |
6b1786aa | 9622 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9623 | # |
1c710c3c | 9624 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9625 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9626 | # --without-gnu-ld options for the configure script. Similarly, if |
9627 | # the default is to use the included zlib and you don't want to do that, | |
9628 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9629 | |
9630 | if test x${use_gnu_as} = x && | |
9631 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9632 | with_gnu_as=yes | |
9633 | extra_host_args="$extra_host_args --with-gnu-as" | |
9634 | fi | |
9635 | ||
9636 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9637 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9638 | with_gnu_ld=yes |
9639 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9640 | fi | |
9641 | ||
d7f09764 DN |
9642 | if test x${use_included_zlib} = x && |
9643 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9644 | : | |
9645 | else | |
9646 | with_system_zlib=yes | |
9647 | extra_host_args="$extra_host_args --with-system-zlib" | |
9648 | fi | |
9649 | ||
e8b05380 PB |
9650 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9651 | # can detect this case. | |
9652 | ||
9653 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9654 | with_newlib=yes | |
9655 | extra_host_args="$extra_host_args --with-newlib" | |
9656 | fi | |
9657 | ||
55ffb5ed NN |
9658 | # Handle ${copy_dirs} |
9659 | set fnord ${copy_dirs} | |
9660 | shift | |
9661 | while test $# != 0 ; do | |
9662 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9663 | : | |
9664 | else | |
9665 | echo Copying $1 to $2 | |
9666 | ||
9667 | # Use the install script to create the directory and all required | |
9668 | # parent directories. | |
9669 | if test -d $2 ; then | |
9670 | : | |
9671 | else | |
9672 | echo >config.temp | |
9673 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9674 | fi | |
9675 | ||
9676 | # Copy the directory, assuming we have tar. | |
9677 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9678 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9679 | ||
9680 | # It is the responsibility of the user to correctly adjust all | |
9681 | # symlinks. If somebody can figure out how to handle them correctly | |
9682 | # here, feel free to add the code. | |
9683 | ||
9684 | echo $1 > $2/COPIED | |
9685 | fi | |
9686 | shift; shift | |
9687 | done | |
9688 | ||
e8b05380 PB |
9689 | # Determine a target-dependent exec_prefix that the installed |
9690 | # gcc will search in. Keep this list sorted by triplet, with | |
9691 | # the *-*-osname triplets last. | |
9692 | md_exec_prefix= | |
9693 | case "${target}" in | |
30b74385 | 9694 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9695 | md_exec_prefix=/dev/env/DJDIR/bin |
9696 | ;; | |
e8b05380 | 9697 | *-*-hpux* | \ |
e8b05380 | 9698 | *-*-nto-qnx* | \ |
6de66370 | 9699 | *-*-solaris2*) |
e8b05380 PB |
9700 | md_exec_prefix=/usr/ccs/bin |
9701 | ;; | |
9702 | esac | |
9703 | ||
671aa708 NN |
9704 | extra_arflags_for_target= |
9705 | extra_nmflags_for_target= | |
9706 | extra_ranlibflags_for_target= | |
9707 | target_makefile_frag=/dev/null | |
9708 | case "${target}" in | |
58e24147 AM |
9709 | spu-*-*) |
9710 | target_makefile_frag="config/mt-spu" | |
9711 | ;; | |
227b18f5 YY |
9712 | loongarch*-*linux* | loongarch*-*gnu*) |
9713 | target_makefile_frag="config/mt-loongarch-gnu" | |
9714 | ;; | |
9715 | loongarch*-*elf*) | |
9716 | target_makefile_frag="config/mt-loongarch-elf" | |
9717 | ;; | |
d896cc4d | 9718 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9719 | target_makefile_frag="config/mt-sde" |
9720 | ;; | |
1ec3b87b RS |
9721 | mipsisa*-*-elfoabi*) |
9722 | target_makefile_frag="config/mt-mips-elfoabi" | |
9723 | ;; | |
08d0963a RS |
9724 | mips*-*-*linux* | mips*-*-gnu*) |
9725 | target_makefile_frag="config/mt-mips-gnu" | |
9726 | ;; | |
707f1839 SL |
9727 | nios2-*-elf*) |
9728 | target_makefile_frag="config/mt-nios2-elf" | |
9729 | ;; | |
76052545 EB |
9730 | *-*-linux-android*) |
9731 | target_makefile_frag="config/mt-android" | |
9732 | ;; | |
416ac4d4 | 9733 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9734 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9735 | ;; |
9736 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9737 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9738 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9739 | # harmless if we're using GNU nm or ar. | |
9740 | extra_arflags_for_target=" -X32_64" | |
9741 | extra_nmflags_for_target=" -B -X32_64" | |
9742 | ;; | |
671aa708 NN |
9743 | esac |
9744 | ||
9745 | alphaieee_frag=/dev/null | |
9746 | case $target in | |
9747 | alpha*-*-*) | |
9748 | # This just makes sure to use the -mieee option to build target libs. | |
9749 | # This should probably be set individually by each library. | |
9750 | alphaieee_frag="config/mt-alphaieee" | |
9751 | ;; | |
9752 | esac | |
9753 | ||
9754 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9755 | # the target libraries, similarly if it is not specified, use -Os | |
9756 | # on selected platforms. | |
9757 | ospace_frag=/dev/null | |
9758 | case "${enable_target_optspace}:${target}" in | |
9759 | yes:*) | |
9760 | ospace_frag="config/mt-ospace" | |
9761 | ;; | |
9762 | :d30v-*) | |
9763 | ospace_frag="config/mt-d30v" | |
9764 | ;; | |
d9063947 | 9765 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9766 | ospace_frag="config/mt-ospace" |
9767 | ;; | |
9768 | no:* | :*) | |
9769 | ;; | |
9770 | *) | |
9771 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9772 | ;; | |
9773 | esac | |
9774 | ||
671aa708 NN |
9775 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9776 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9777 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9778 | build_tooldir=${tooldir} |
9779 | ||
671aa708 NN |
9780 | # Create a .gdbinit file which runs the one in srcdir |
9781 | # and tells GDB to look there for source files. | |
9782 | ||
9783 | if test -r ${srcdir}/.gdbinit ; then | |
9784 | case ${srcdir} in | |
9785 | .) ;; | |
9786 | *) cat > ./.gdbinit <<EOF | |
9787 | # ${NO_EDIT} | |
9788 | dir ${srcdir} | |
9789 | dir . | |
9790 | source ${srcdir}/.gdbinit | |
9791 | EOF | |
9792 | ;; | |
9793 | esac | |
9794 | fi | |
9795 | ||
671aa708 NN |
9796 | # Make sure that the compiler is able to generate an executable. If it |
9797 | # can't, we are probably in trouble. We don't care whether we can run the | |
9798 | # executable--we might be using a cross compiler--we only care whether it | |
9799 | # can be created. At this point the main configure script has set CC. | |
9800 | we_are_ok=no | |
9801 | echo "int main () { return 0; }" > conftest.c | |
9802 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9803 | if test $? = 0 ; then | |
9804 | if test -s conftest || test -s conftest.exe ; then | |
9805 | we_are_ok=yes | |
9806 | fi | |
1c710c3c | 9807 | fi |
671aa708 NN |
9808 | case $we_are_ok in |
9809 | no) | |
9810 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9811 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9812 | rm -f conftest* | |
9813 | exit 1 | |
9814 | ;; | |
9815 | esac | |
9816 | rm -f conftest* | |
9817 | ||
d89f0ad6 | 9818 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9819 | case "${host}" in |
9820 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9821 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9822 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9823 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9824 | esac | |
9825 | ||
d89f0ad6 AL |
9826 | # On systems where the dynamic library environment variable is PATH, |
9827 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9828 | # built executables to PATH. | |
9829 | if test "$RPATH_ENVVAR" = PATH; then | |
9830 | GCC_SHLIB_SUBDIR=/shlib | |
9831 | else | |
9832 | GCC_SHLIB_SUBDIR= | |
9833 | fi | |
9834 | ||
beeda1d9 JJ |
9835 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9836 | case $enable_bootstrap in | |
9837 | yes) | |
9838 | bootstrap_suffix=bootstrap | |
9839 | BUILD_CONFIG=bootstrap-debug | |
9840 | ;; | |
9841 | no) | |
9842 | bootstrap_suffix=no-bootstrap | |
9843 | BUILD_CONFIG= | |
9844 | ;; | |
9845 | esac | |
9846 | ||
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9848 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9849 | ||
9850 | ||
9851 | # Check whether --with-build-config was given. | |
9852 | if test "${with_build_config+set}" = set; then : | |
9853 | withval=$with_build_config; case $with_build_config in | |
9854 | yes) with_build_config= ;; | |
9855 | no) with_build_config= BUILD_CONFIG= ;; | |
9856 | esac | |
9857 | fi | |
9858 | ||
9859 | ||
9860 | if test "x${with_build_config}" != x; then | |
9861 | BUILD_CONFIG=$with_build_config | |
9862 | else | |
9863 | case $BUILD_CONFIG in | |
9864 | bootstrap-debug) | |
9865 | if echo "int f (void) { return 0; }" > conftest.c && | |
9866 | ${CC} -c conftest.c && | |
9867 | mv conftest.o conftest.o.g0 && | |
9868 | ${CC} -c -g conftest.c && | |
9869 | mv conftest.o conftest.o.g && | |
9870 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9871 | : | |
9872 | else | |
9873 | BUILD_CONFIG= | |
9874 | fi | |
9875 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9876 | ;; | |
9877 | esac | |
9878 | fi | |
9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9880 | $as_echo "$BUILD_CONFIG" >&6; } | |
9881 | ||
9882 | ||
9883 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9885 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9886 | # Check whether --enable-vtable-verify was given. | |
9887 | if test "${enable_vtable_verify+set}" = set; then : | |
9888 | enableval=$enable_vtable_verify; case "$enableval" in | |
9889 | yes) enable_vtable_verify=yes ;; | |
9890 | no) enable_vtable_verify=no ;; | |
9891 | *) enable_vtable_verify=no;; | |
9892 | esac | |
9893 | else | |
9894 | enable_vtable_verify=no | |
9895 | fi | |
9896 | ||
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9898 | $as_echo "$enable_vtable_verify" >&6; } | |
9899 | ||
671aa708 NN |
9900 | # Record target_configdirs and the configure arguments for target and |
9901 | # build configuration in Makefile. | |
9902 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9903 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9904 | bootstrap_fixincludes=no |
671aa708 | 9905 | |
ad1e5170 JR |
9906 | # If we are building libgomp, bootstrap it. |
9907 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9908 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9909 | fi | |
9910 | ||
beeda1d9 JJ |
9911 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9912 | # or bootstrap-ubsan, bootstrap it. | |
9913 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9914 | case "$BUILD_CONFIG" in | |
170e618e | 9915 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9916 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9917 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9918 | ;; |
9919 | esac | |
ac8701fe L |
9920 | fi |
9921 | ||
beeda1d9 JJ |
9922 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9923 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9924 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9925 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9926 | fi | |
9927 | ||
5fee5ec3 IB |
9928 | # If we are building libatomic and the list of enabled languages includes the |
9929 | # D frontend, bootstrap it. | |
9930 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9931 | case ,${enable_languages}, in | |
9932 | *,d,*) | |
9933 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9934 | ;; | |
9935 | esac | |
9936 | fi | |
9937 | ||
671aa708 NN |
9938 | # Determine whether gdb needs tk/tcl or not. |
9939 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9940 | # and in that case we want gdb to be built without tk. Ugh! | |
9941 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9942 | # so we should be able to put the 'maybe's in unconditionally and | |
9943 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9944 | # 100% sure that that's safe though. | |
e914a571 | 9945 | |
b4f96efe | 9946 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9947 | case "$enable_gdbtk" in |
9948 | no) | |
9949 | GDB_TK="" ;; | |
e914a571 AC |
9950 | yes) |
9951 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9952 | *) |
e914a571 AC |
9953 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9954 | # distro. Eventually someone will fix this and move Insight, nee | |
9955 | # gdbtk to a separate directory. | |
9956 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9957 | GDB_TK="${gdb_tk}" | |
9958 | else | |
9959 | GDB_TK="" | |
9960 | fi | |
9961 | ;; | |
671aa708 | 9962 | esac |
ef9db8d5 DJ |
9963 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9964 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9965 | |
f9d09df0 TT |
9966 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9967 | # else does, only include them if one of these is built. The Makefile | |
9968 | # provides the ordering, so it's enough here to add to the list. | |
9969 | case " ${configdirs} " in | |
9970 | *\ gdb\ *) | |
9971 | configdirs="${configdirs} gnulib gdbsupport" | |
9972 | ;; | |
9973 | *\ gdbserver\ *) | |
9974 | configdirs="${configdirs} gnulib gdbsupport" | |
9975 | ;; | |
f14c9bd4 MF |
9976 | *\ sim\ *) |
9977 | configdirs="${configdirs} gnulib" | |
9978 | ;; | |
f9d09df0 | 9979 | esac |
98e5be21 | 9980 | |
60975492 | 9981 | # Strip out unwanted targets. |
8b87bb96 NN |
9982 | |
9983 | # While at that, we remove Makefiles if we were started for recursive | |
9984 | # configuration, so that the top-level Makefile reconfigures them, | |
9985 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9986 | |
3e54529c RW |
9987 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9988 | # but now we're fixing up the Makefile ourselves with the additional | |
9989 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9990 | # extrasub-{build,host,target} not because there is any reason to split | |
9991 | # the substitutions up that way, but only to remain below the limit of | |
9992 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9993 | |
9994 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9995 | # configure will not warn you at all. | |
8b87bb96 | 9996 | |
79cd2b23 RW |
9997 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9998 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9999 | yes:yes:*\ gold\ *:*) | |
22e05272 | 10000 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
10001 | ;; |
10002 | esac | |
10003 | ||
3e54529c | 10004 | extrasub_build= |
23f6b2f9 | 10005 | for module in ${build_configdirs} ; do |
5607edfd PB |
10006 | if test -z "${no_recursion}" \ |
10007 | && test -f ${build_subdir}/${module}/Makefile; then | |
10008 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
10009 | rm -f ${build_subdir}/${module}/Makefile | |
10010 | fi | |
3e54529c | 10011 | extrasub_build="$extrasub_build |
5607edfd PB |
10012 | /^@if build-$module\$/d |
10013 | /^@endif build-$module\$/d | |
da34ca3f | 10014 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 10015 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
10016 | /^@endif build-$module-$bootstrap_suffix\$/d |
10017 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 10018 | done |
3e54529c | 10019 | extrasub_host= |
5607edfd | 10020 | for module in ${configdirs} ; do |
a6fbc1e2 | 10021 | if test -z "${no_recursion}"; then |
f063a9ed | 10022 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
10023 | if test -f ${file}; then |
10024 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
10025 | rm -f ${file} | |
10026 | fi | |
10027 | done | |
5607edfd | 10028 | fi |
9e1c8fc1 JJ |
10029 | case ${module},${bootstrap_fixincludes} in |
10030 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
10031 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
10032 | esac | |
3e54529c | 10033 | extrasub_host="$extrasub_host |
5607edfd PB |
10034 | /^@if $module\$/d |
10035 | /^@endif $module\$/d | |
da34ca3f | 10036 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 10037 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
10038 | /^@endif $module-$host_bootstrap_suffix\$/d |
10039 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 10040 | done |
3e54529c | 10041 | extrasub_target= |
5607edfd PB |
10042 | for module in ${target_configdirs} ; do |
10043 | if test -z "${no_recursion}" \ | |
10044 | && test -f ${target_subdir}/${module}/Makefile; then | |
10045 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
10046 | rm -f ${target_subdir}/${module}/Makefile | |
10047 | fi | |
00020c16 ILT |
10048 | |
10049 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
10050 | case $bootstrap_target_libs in | |
10051 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
10052 | *) target_bootstrap_suffix=no-bootstrap ;; | |
10053 | esac | |
10054 | ||
3e54529c | 10055 | extrasub_target="$extrasub_target |
5607edfd PB |
10056 | /^@if target-$module\$/d |
10057 | /^@endif target-$module\$/d | |
da34ca3f | 10058 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 10059 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
10060 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
10061 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
10062 | done |
10063 | ||
3e54529c RW |
10064 | # Do the final fixup along with target modules. |
10065 | extrasub_target="$extrasub_target | |
da34ca3f AO |
10066 | /^@if /,/^@endif /d |
10067 | /^@unless /d | |
10068 | /^@endunless /d" | |
671aa708 | 10069 | |
4a5e71f2 L |
10070 | if test "$enable_pgo_build" != "no"; then |
10071 | extrasub_build="$extrasub_build | |
10072 | /^@if pgo-build\$/d | |
10073 | /^@endif pgo-build\$/d" | |
10074 | fi | |
10075 | ||
671aa708 NN |
10076 | # Create the serialization dependencies. This uses a temporary file. |
10077 | ||
5213506e RW |
10078 | # Check whether --enable-serial-configure was given. |
10079 | if test "${enable_serial_configure+set}" = set; then : | |
10080 | enableval=$enable_serial_configure; | |
10081 | fi | |
ade82b16 AO |
10082 | |
10083 | ||
bf1d3e81 NN |
10084 | case ${enable_serial_configure} in |
10085 | yes) | |
10086 | enable_serial_build_configure=yes | |
10087 | enable_serial_host_configure=yes | |
10088 | enable_serial_target_configure=yes | |
10089 | ;; | |
10090 | esac | |
10091 | ||
671aa708 NN |
10092 | # These force 'configure's to be done one at a time, to avoid problems |
10093 | # with contention over a shared config.cache. | |
10094 | rm -f serdep.tmp | |
7d115e01 | 10095 | if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then |
ade82b16 | 10096 | echo '# serdep.tmp' > serdep.tmp |
7d115e01 | 10097 | fi |
671aa708 | 10098 | olditem= |
bf1d3e81 | 10099 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
10100 | for item in ${build_configdirs} ; do |
10101 | case ${olditem} in | |
10102 | "") ;; | |
ade82b16 | 10103 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10104 | esac |
10105 | olditem=${item} | |
10106 | done | |
10107 | olditem= | |
bf1d3e81 | 10108 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
10109 | for item in ${configdirs} ; do |
10110 | case ${olditem} in | |
10111 | "") ;; | |
ade82b16 | 10112 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10113 | esac |
10114 | olditem=${item} | |
10115 | done | |
10116 | olditem= | |
bf1d3e81 | 10117 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
10118 | for item in ${target_configdirs} ; do |
10119 | case ${olditem} in | |
10120 | "") ;; | |
ade82b16 | 10121 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10122 | esac |
10123 | olditem=${item} | |
10124 | done | |
10125 | serialization_dependencies=serdep.tmp | |
10126 | ||
10127 | ||
ade82b16 | 10128 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 10129 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
10130 | # might not want to pass down to subconfigures. The exception being |
10131 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10132 | # files altogether, and which should be passed on to subconfigures. | |
10133 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10134 | # so that we can pass down a consistent program-transform-name. | |
db50aea6 AA |
10135 | hbaseargs= |
10136 | bbaseargs= | |
29a63921 | 10137 | tbaseargs= |
1c710c3c DJ |
10138 | keep_next=no |
10139 | skip_next=no | |
10140 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
10141 | for ac_arg |
10142 | do | |
1c710c3c DJ |
10143 | if test X"$skip_next" = X"yes"; then |
10144 | skip_next=no | |
10145 | continue | |
10146 | fi | |
10147 | if test X"$keep_next" = X"yes"; then | |
10148 | case $ac_arg in | |
10149 | *\'*) | |
10150 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10151 | esac | |
db50aea6 AA |
10152 | hbaseargs="$hbaseargs '$ac_arg'" |
10153 | bbaseargs="$bbaseargs '$ac_arg'" | |
29a63921 | 10154 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
10155 | keep_next=no |
10156 | continue | |
10157 | fi | |
10158 | ||
10159 | # Handle separated arguments. Based on the logic generated by | |
10160 | # autoconf 2.59. | |
10161 | case $ac_arg in | |
10162 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10163 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10164 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10165 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10166 | separate_arg=no | |
10167 | ;; | |
10168 | -*) | |
10169 | separate_arg=yes | |
10170 | ;; | |
10171 | *) | |
10172 | separate_arg=no | |
10173 | ;; | |
10174 | esac | |
10175 | ||
29a63921 | 10176 | skip_targ=no |
db50aea6 | 10177 | skip_barg=no |
29a63921 AO |
10178 | case $ac_arg in |
10179 | ||
10180 | --with-* | --without-*) | |
10181 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10182 | ||
10183 | case $libopt in | |
10184 | *[-_]include) | |
10185 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10186 | ;; | |
10187 | *[-_]lib) | |
10188 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10189 | ;; | |
db50aea6 AA |
10190 | *[-_]prefix) |
10191 | lib=`echo "$libopt" | sed 's,[-_]prefix$,,'` | |
10192 | ;; | |
10193 | *[-_]type) | |
10194 | lib=`echo "$libopt" | sed 's,[-_]type$,,'` | |
10195 | ;; | |
29a63921 AO |
10196 | *) |
10197 | lib=$libopt | |
10198 | ;; | |
10199 | esac | |
10200 | ||
10201 | ||
10202 | case $lib in | |
4a9bb2aa | 10203 | mpc | mpfr | gmp | isl) |
29a63921 AO |
10204 | # If we're processing --with-$lib, --with-$lib-include or |
10205 | # --with-$lib-lib, for one of the libs above, and target is | |
10206 | # different from host, don't pass the current argument to any | |
10207 | # target library's configure. | |
10208 | if test x$is_cross_compiler = xyes; then | |
10209 | skip_targ=yes | |
10210 | fi | |
10211 | ;; | |
db50aea6 AA |
10212 | libintl | libiconv) |
10213 | # We don't want libintl (and co.) in anything but the host arguments. | |
10214 | skip_targ=yes | |
10215 | skip_barg=yes | |
10216 | ;; | |
29a63921 AO |
10217 | esac |
10218 | ;; | |
10219 | esac | |
10220 | ||
1c710c3c | 10221 | case "$ac_arg" in |
f1a036e4 NC |
10222 | --cache-file=/dev/null | \ |
10223 | -cache-file=/dev/null ) | |
10224 | # Handled here to avoid the test to skip args below. | |
db50aea6 AA |
10225 | hbaseargs="$hbaseargs '$ac_arg'" |
10226 | bbaseargs="$bbaseargs '$ac_arg'" | |
29a63921 | 10227 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
10228 | # Assert: $separate_arg should always be no. |
10229 | keep_next=$separate_arg | |
10230 | ;; | |
1c710c3c DJ |
10231 | --no*) |
10232 | continue | |
10233 | ;; | |
10234 | --c* | \ | |
10235 | --sr* | \ | |
10236 | --ho* | \ | |
10237 | --bu* | \ | |
10238 | --t* | \ | |
10239 | --program-* | \ | |
10240 | -cache_file* | \ | |
10241 | -srcdir* | \ | |
10242 | -host* | \ | |
10243 | -build* | \ | |
10244 | -target* | \ | |
10245 | -program-prefix* | \ | |
10246 | -program-suffix* | \ | |
10247 | -program-transform-name* ) | |
10248 | skip_next=$separate_arg | |
10249 | continue | |
10250 | ;; | |
10251 | -*) | |
10252 | # An option. Add it. | |
10253 | case $ac_arg in | |
10254 | *\'*) | |
10255 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10256 | esac | |
db50aea6 AA |
10257 | hbaseargs="$hbaseargs '$ac_arg'" |
10258 | if test X"$skip_barg" = Xno; then | |
10259 | bbaseargs="$bbaseargs '$ac_arg'" | |
10260 | fi | |
29a63921 AO |
10261 | if test X"$skip_targ" = Xno; then |
10262 | tbaseargs="$tbaseargs '$ac_arg'" | |
10263 | fi | |
1c710c3c DJ |
10264 | keep_next=$separate_arg |
10265 | ;; | |
10266 | *) | |
10267 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10268 | # pass it down; let the Makefile handle this. | |
10269 | continue | |
10270 | ;; | |
10271 | esac | |
10272 | done | |
10273 | # Remove the initial space we just introduced and, as these will be | |
10274 | # expanded by make, quote '$'. | |
db50aea6 AA |
10275 | hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` |
10276 | bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 10277 | |
43bb47c2 DJ |
10278 | # Add in --program-transform-name, after --program-prefix and |
10279 | # --program-suffix have been applied to it. Autoconf has already | |
10280 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10281 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 10282 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
10283 | # Also, because we want to override the logic in subdir configure scripts to |
10284 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10285 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10286 | ${program_transform_name} | |
10287 | EOF_SED | |
10288 | gcc_transform_name=`cat conftestsed.out` | |
10289 | rm -f conftestsed.out | |
db50aea6 AA |
10290 | hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'" |
10291 | bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 10292 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 | 10293 | if test "$silent" = yes; then |
db50aea6 AA |
10294 | bbaseargs="$bbaseargs --silent" |
10295 | hbaseargs="$hbaseargs --silent" | |
29a63921 | 10296 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 10297 | fi |
a49d42e8 | 10298 | |
db50aea6 AA |
10299 | bbaseargs="$bbaseargs --disable-option-checking" |
10300 | hbaseargs="$hbaseargs --disable-option-checking" | |
29a63921 | 10301 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 10302 | |
a49d42e8 LM |
10303 | if test "$enable_year2038" = no; then |
10304 | baseargs="$baseargs --disable-year2038" | |
10305 | tbaseargs="$tbaseargs --disable-year2038" | |
10306 | fi | |
10307 | ||
ffedf511 RW |
10308 | # Record and document user additions to sub configure arguments. |
10309 | ||
10310 | ||
10311 | ||
10312 | ||
671aa708 NN |
10313 | # For the build-side libraries, we just need to pretend we're native, |
10314 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
10315 | # desired. We can't even use the same cache file for all build-side |
10316 | # libraries, as they're compiled differently; some with C, some with | |
10317 | # C++ or with different feature-enabling options. | |
db50aea6 | 10318 | build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}" |
671aa708 NN |
10319 | |
10320 | # For host modules, accept cache file option, or specification as blank. | |
10321 | case "${cache_file}" in | |
10322 | "") # empty | |
10323 | cache_file_option="" ;; | |
10324 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10325 | cache_file_option="--cache-file=${cache_file}" ;; | |
10326 | *) # relative path | |
10327 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10328 | esac | |
10329 | ||
09438bde NN |
10330 | # Host dirs don't like to share a cache file either, horribly enough. |
10331 | # This seems to be due to autoconf 2.5x stupidity. | |
db50aea6 | 10332 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}" |
671aa708 | 10333 | |
29a63921 | 10334 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10335 | |
10336 | # Passing a --with-cross-host argument lets the target libraries know | |
10337 | # whether they are being built with a cross-compiler or being built | |
10338 | # native. However, it would be better to use other mechanisms to make the | |
10339 | # sorts of decisions they want to make on this basis. Please consider | |
10340 | # this option to be deprecated. FIXME. | |
10341 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10342 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10343 | fi |
10344 | ||
79e0604d FXC |
10345 | # Special user-friendly check for native x86_64-linux build, if |
10346 | # multilib is not explicitly enabled. | |
10347 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10348 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10349 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10350 | dev64=no |
10351 | echo "int main () { return 0; }" > conftest.c | |
10352 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10353 | if test $? = 0 ; then | |
10354 | if test -s conftest || test -s conftest.exe ; then | |
10355 | dev64=yes | |
10356 | fi | |
10357 | fi | |
10358 | rm -f conftest* | |
10359 | if test x${dev64} != xyes ; then | |
22e05272 | 10360 | 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 |
10361 | fi |
10362 | ;; | |
10363 | esac | |
10364 | ||
dc683a3f RW |
10365 | # Default to --enable-multilib. |
10366 | if test x${enable_multilib} = x ; then | |
671aa708 | 10367 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10368 | fi |
671aa708 NN |
10369 | |
10370 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10371 | # changed from the earlier setting of with_newlib. | |
10372 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10373 | target_configargs="--with-newlib ${target_configargs}" | |
10374 | fi | |
10375 | ||
6b9eb62c NN |
10376 | # Different target subdirs use different values of certain variables |
10377 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10378 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10379 | # it doesn't automatically accept command-line overrides of them. | |
10380 | # This means it's not safe for target subdirs to share a cache file, | |
10381 | # which is disgusting, but there you have it. Hopefully this can be | |
10382 | # fixed in future. It's still worthwhile to use a cache file for each | |
10383 | # directory. I think. | |
10384 | ||
bebcd931 MS |
10385 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10386 | # We need to pass --target, as newer autoconf's requires consistency | |
10387 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10388 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10389 | |
671aa708 NN |
10390 | FLAGS_FOR_TARGET= |
10391 | case " $target_configdirs " in | |
10392 | *" newlib "*) | |
10393 | case " $target_configargs " in | |
10394 | *" --with-newlib "*) | |
10395 | case "$target" in | |
5d571eaa | 10396 | *-cygwin*) |
443e6238 | 10397 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10398 | ;; |
671aa708 NN |
10399 | esac |
10400 | ||
10401 | # If we're not building GCC, don't discard standard headers. | |
10402 | if test -d ${srcdir}/gcc; then | |
10403 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10404 | ||
10405 | if test "${build}" != "${host}"; then | |
10406 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10407 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10408 | # to it. This is right: we don't want to search that directory | |
10409 | # for binaries, but we want the header files in there, so add | |
10410 | # them explicitly. | |
0463992b | 10411 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10412 | |
10413 | # Someone might think of using the pre-installed headers on | |
10414 | # Canadian crosses, in case the installed compiler is not fully | |
10415 | # compatible with the compiler being built. In this case, it | |
10416 | # would be better to flag an error than risking having | |
10417 | # incompatible object files being constructed. We can't | |
10418 | # guarantee that an error will be flagged, but let's hope the | |
10419 | # compiler will do it, when presented with incompatible header | |
10420 | # files. | |
10421 | fi | |
10422 | fi | |
10423 | ||
10424 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10425 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10426 | # Here host == target, so we don't need to build gcc, |
10427 | # so we don't want to discard standard headers. | |
10428 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10429 | ;; | |
10430 | *) | |
10431 | # If we're building newlib, use its generic headers last, but search | |
10432 | # for any libc-related directories first (so make it the last -B | |
10433 | # switch). | |
10434 | 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 |
10435 | |
10436 | # If we're building libgloss, find the startup file, simulator library | |
10437 | # and linker script. | |
10438 | case " $target_configdirs " in | |
10439 | *" libgloss "*) | |
10440 | # Look for startup file, simulator library and maybe linker script. | |
10441 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10442 | # Look for libnosys.a in case the target needs it. | |
10443 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10444 | # Most targets have the linker script in the source directory. | |
10445 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10446 | ;; | |
10447 | esac | |
671aa708 NN |
10448 | ;; |
10449 | esac | |
10450 | ;; | |
10451 | esac | |
10452 | ;; | |
10453 | esac | |
5d571eaa | 10454 | |
b91f0a41 | 10455 | case "$target" in |
5d571eaa OS |
10456 | x86_64-*mingw* | *-w64-mingw*) |
10457 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10458 | # however, use a symlink named 'mingw' in ${prefix} . | |
10459 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10460 | ;; | |
10461 | *-mingw*) | |
10462 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10463 | 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' | |
10464 | ;; | |
b91f0a41 | 10465 | esac |
671aa708 | 10466 | |
6691a79e ME |
10467 | # Allow the user to override the flags for |
10468 | # our build compiler if desired. | |
f019adc1 MF |
10469 | if test x"${build}" = x"${host}" ; then |
10470 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10471 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10472 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10473 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10474 | fi | |
6691a79e | 10475 | |
671aa708 NN |
10476 | # On Canadian crosses, we'll be searching the right directories for |
10477 | # the previously-installed cross compiler, so don't bother to add | |
10478 | # flags for directories within the install tree of the compiler | |
10479 | # being built; programs in there won't even run. | |
10480 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10481 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10482 | 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 |
10483 | fi |
10484 | ||
10485 | if test "x${use_gnu_ld}" = x && | |
10486 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10487 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10488 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10489 | fi |
10490 | ||
e88a2c09 DD |
10491 | # Search for other target-specific linker scripts and such. |
10492 | case "${target}" in | |
3e19841a PB |
10493 | mep*) |
10494 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10495 | ;; | |
9b8ffbb8 OH |
10496 | # The VxWorks support for shared libraries is getting in |
10497 | # incrementally. Make sure it doesn't get activated implicitly: | |
10498 | *vxworks*) | |
10499 | if test "${enable_shared-unset}" = unset ; then | |
10500 | enable_shared=no | |
10501 | # So the build of libraries knows ... | |
10502 | target_configargs="${target_configargs} --disable-shared" | |
10503 | # So gcc knows ... | |
10504 | host_configargs="${host_configargs} --disable-shared" | |
10505 | fi | |
10506 | ;; | |
e88a2c09 DD |
10507 | esac |
10508 | ||
671aa708 | 10509 | # Makefile fragments. |
7b61653a PE |
10510 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10511 | do | |
10512 | eval fragval=\$$frag | |
10513 | if test $fragval != /dev/null; then | |
10514 | eval $frag=${srcdir}/$fragval | |
10515 | fi | |
10516 | done | |
671aa708 NN |
10517 | |
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | # Miscellanea: directories, flags, etc. | |
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
d89f0ad6 | 10530 | |
23f6b2f9 | 10531 | # Build module lists & subconfigure args. |
671aa708 NN |
10532 | |
10533 | ||
10534 | ||
2abefe3d PB |
10535 | # Host module lists & subconfigure args. |
10536 | ||
10537 | ||
10538 | ||
aae29963 | 10539 | |
2abefe3d PB |
10540 | # Target module lists & subconfigure args. |
10541 | ||
10542 | ||
10543 | ||
10544 | # Build tools. | |
10545 | ||
10546 | ||
10547 | ||
0999159b PB |
10548 | |
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
b4c522fa | 10561 | |
3b5e8ee4 | 10562 | |
a1d2b162 IS |
10563 | |
10564 | ||
2abefe3d PB |
10565 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10566 | # on the build machine. These are used if the Makefile can't locate these | |
10567 | # programs in objdir. | |
10568 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10569 | ||
10570 | for ac_prog in 'bison -y' byacc yacc | |
10571 | do | |
1c710c3c | 10572 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10573 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10575 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10576 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10577 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10578 | else |
10579 | if test -n "$YACC"; then | |
10580 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10581 | else | |
1c710c3c DJ |
10582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10583 | for as_dir in $PATH | |
10584 | do | |
10585 | IFS=$as_save_IFS | |
10586 | test -z "$as_dir" && as_dir=. | |
5213506e | 10587 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10589 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10591 | break 2 |
10592 | fi | |
10593 | done | |
5213506e RW |
10594 | done |
10595 | IFS=$as_save_IFS | |
1c710c3c | 10596 | |
2abefe3d PB |
10597 | fi |
10598 | fi | |
1c710c3c | 10599 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10600 | if test -n "$YACC"; then |
5213506e RW |
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10602 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10603 | else |
5213506e RW |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10605 | $as_echo "no" >&6; } | |
2abefe3d PB |
10606 | fi |
10607 | ||
5213506e | 10608 | |
1c710c3c | 10609 | test -n "$YACC" && break |
2abefe3d PB |
10610 | done |
10611 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10612 | ||
10613 | case " $build_configdirs " in | |
10614 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10615 | esac |
10616 | ||
10617 | for ac_prog in bison | |
10618 | do | |
1c710c3c | 10619 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10620 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10622 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10623 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10624 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10625 | else |
10626 | if test -n "$BISON"; then | |
10627 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10628 | else | |
1c710c3c DJ |
10629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10630 | for as_dir in $PATH | |
10631 | do | |
10632 | IFS=$as_save_IFS | |
10633 | test -z "$as_dir" && as_dir=. | |
5213506e | 10634 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10636 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10638 | break 2 |
10639 | fi | |
10640 | done | |
5213506e RW |
10641 | done |
10642 | IFS=$as_save_IFS | |
1c710c3c | 10643 | |
2abefe3d PB |
10644 | fi |
10645 | fi | |
1c710c3c | 10646 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10647 | if test -n "$BISON"; then |
5213506e RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10649 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10650 | else |
5213506e RW |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10652 | $as_echo "no" >&6; } | |
2abefe3d PB |
10653 | fi |
10654 | ||
5213506e | 10655 | |
1c710c3c | 10656 | test -n "$BISON" && break |
2abefe3d PB |
10657 | done |
10658 | test -n "$BISON" || BISON="$MISSING bison" | |
10659 | ||
10660 | case " $build_configdirs " in | |
10661 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10662 | esac | |
10663 | ||
10664 | for ac_prog in gm4 gnum4 m4 | |
10665 | do | |
1c710c3c | 10666 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10667 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10669 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10670 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10671 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10672 | else |
10673 | if test -n "$M4"; then | |
10674 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10675 | else | |
1c710c3c DJ |
10676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10677 | for as_dir in $PATH | |
10678 | do | |
10679 | IFS=$as_save_IFS | |
10680 | test -z "$as_dir" && as_dir=. | |
5213506e | 10681 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10683 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10685 | break 2 |
10686 | fi | |
10687 | done | |
5213506e RW |
10688 | done |
10689 | IFS=$as_save_IFS | |
1c710c3c | 10690 | |
2abefe3d PB |
10691 | fi |
10692 | fi | |
1c710c3c | 10693 | M4=$ac_cv_prog_M4 |
2abefe3d | 10694 | if test -n "$M4"; then |
5213506e RW |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10696 | $as_echo "$M4" >&6; } | |
2abefe3d | 10697 | else |
5213506e RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10699 | $as_echo "no" >&6; } | |
2abefe3d PB |
10700 | fi |
10701 | ||
5213506e | 10702 | |
1c710c3c | 10703 | test -n "$M4" && break |
2abefe3d PB |
10704 | done |
10705 | test -n "$M4" || M4="$MISSING m4" | |
10706 | ||
10707 | case " $build_configdirs " in | |
10708 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10709 | esac | |
10710 | ||
10711 | for ac_prog in flex lex | |
10712 | do | |
1c710c3c | 10713 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10714 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10716 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10717 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10718 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10719 | else |
10720 | if test -n "$LEX"; then | |
10721 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10722 | else | |
1c710c3c DJ |
10723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10724 | for as_dir in $PATH | |
10725 | do | |
10726 | IFS=$as_save_IFS | |
10727 | test -z "$as_dir" && as_dir=. | |
5213506e | 10728 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10730 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10732 | break 2 |
10733 | fi | |
10734 | done | |
5213506e RW |
10735 | done |
10736 | IFS=$as_save_IFS | |
1c710c3c | 10737 | |
2abefe3d PB |
10738 | fi |
10739 | fi | |
1c710c3c | 10740 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10741 | if test -n "$LEX"; then |
5213506e RW |
10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10743 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10744 | else |
5213506e RW |
10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10746 | $as_echo "no" >&6; } | |
2abefe3d PB |
10747 | fi |
10748 | ||
5213506e | 10749 | |
1c710c3c | 10750 | test -n "$LEX" && break |
2abefe3d PB |
10751 | done |
10752 | test -n "$LEX" || LEX="$MISSING flex" | |
10753 | ||
10754 | case " $build_configdirs " in | |
10755 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10756 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10757 | esac | |
10758 | ||
10759 | for ac_prog in flex | |
10760 | do | |
1c710c3c | 10761 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10762 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10764 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10765 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10766 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10767 | else |
10768 | if test -n "$FLEX"; then | |
10769 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10770 | else | |
1c710c3c DJ |
10771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10772 | for as_dir in $PATH | |
10773 | do | |
10774 | IFS=$as_save_IFS | |
10775 | test -z "$as_dir" && as_dir=. | |
5213506e | 10776 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10778 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10780 | break 2 |
10781 | fi | |
10782 | done | |
5213506e RW |
10783 | done |
10784 | IFS=$as_save_IFS | |
1c710c3c | 10785 | |
2abefe3d PB |
10786 | fi |
10787 | fi | |
1c710c3c | 10788 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10789 | if test -n "$FLEX"; then |
5213506e RW |
10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10791 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10792 | else |
5213506e RW |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10794 | $as_echo "no" >&6; } | |
2abefe3d PB |
10795 | fi |
10796 | ||
5213506e | 10797 | |
1c710c3c | 10798 | test -n "$FLEX" && break |
2abefe3d PB |
10799 | done |
10800 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10801 | ||
10802 | case " $build_configdirs " in | |
10803 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10804 | esac | |
10805 | ||
10806 | for ac_prog in makeinfo | |
10807 | do | |
1c710c3c | 10808 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10809 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10811 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10812 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10813 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10814 | else |
10815 | if test -n "$MAKEINFO"; then | |
10816 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10817 | else | |
1c710c3c DJ |
10818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10819 | for as_dir in $PATH | |
10820 | do | |
10821 | IFS=$as_save_IFS | |
10822 | test -z "$as_dir" && as_dir=. | |
5213506e | 10823 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10825 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10827 | break 2 |
10828 | fi | |
10829 | done | |
5213506e RW |
10830 | done |
10831 | IFS=$as_save_IFS | |
1c710c3c | 10832 | |
2abefe3d PB |
10833 | fi |
10834 | fi | |
1c710c3c | 10835 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10836 | if test -n "$MAKEINFO"; then |
5213506e RW |
10837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10838 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10839 | else |
5213506e RW |
10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10841 | $as_echo "no" >&6; } | |
2abefe3d PB |
10842 | fi |
10843 | ||
5213506e | 10844 | |
1c710c3c | 10845 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10846 | done |
10847 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10848 | ||
10849 | case " $build_configdirs " in | |
10850 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10851 | *) | |
10852 | ||
d18ff35a | 10853 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10854 | # higher, else we use the "missing" dummy. |
10855 | if ${MAKEINFO} --version \ | |
d18ff35a | 10856 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10857 | : |
10858 | else | |
10859 | MAKEINFO="$MISSING makeinfo" | |
10860 | fi | |
10861 | ;; | |
10862 | ||
10863 | esac | |
671aa708 | 10864 | |
2abefe3d | 10865 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10866 | |
2abefe3d PB |
10867 | for ac_prog in expect |
10868 | do | |
1c710c3c | 10869 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10870 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10872 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10873 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10874 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10875 | else |
10876 | if test -n "$EXPECT"; then | |
10877 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10878 | else | |
1c710c3c DJ |
10879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10880 | for as_dir in $PATH | |
10881 | do | |
10882 | IFS=$as_save_IFS | |
10883 | test -z "$as_dir" && as_dir=. | |
5213506e | 10884 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10886 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10888 | break 2 |
10889 | fi | |
10890 | done | |
5213506e RW |
10891 | done |
10892 | IFS=$as_save_IFS | |
1c710c3c | 10893 | |
2abefe3d PB |
10894 | fi |
10895 | fi | |
1c710c3c | 10896 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10897 | if test -n "$EXPECT"; then |
5213506e RW |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10899 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10900 | else |
5213506e RW |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10902 | $as_echo "no" >&6; } | |
2abefe3d | 10903 | fi |
671aa708 | 10904 | |
5213506e | 10905 | |
1c710c3c | 10906 | test -n "$EXPECT" && break |
2abefe3d PB |
10907 | done |
10908 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10909 | |
2abefe3d PB |
10910 | case " $configdirs " in |
10911 | *" expect "*) | |
10912 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10913 | ;; | |
10914 | esac | |
671aa708 | 10915 | |
2abefe3d PB |
10916 | for ac_prog in runtest |
10917 | do | |
1c710c3c | 10918 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10919 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10921 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10922 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10923 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10924 | else |
10925 | if test -n "$RUNTEST"; then | |
10926 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10927 | else |
1c710c3c DJ |
10928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10929 | for as_dir in $PATH | |
10930 | do | |
10931 | IFS=$as_save_IFS | |
10932 | test -z "$as_dir" && as_dir=. | |
5213506e | 10933 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10935 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10937 | break 2 |
10938 | fi | |
10939 | done | |
5213506e RW |
10940 | done |
10941 | IFS=$as_save_IFS | |
1c710c3c | 10942 | |
2abefe3d PB |
10943 | fi |
10944 | fi | |
1c710c3c | 10945 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10946 | if test -n "$RUNTEST"; then |
5213506e RW |
10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10948 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10949 | else |
5213506e RW |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10951 | $as_echo "no" >&6; } | |
2abefe3d | 10952 | fi |
671aa708 | 10953 | |
5213506e | 10954 | |
1c710c3c | 10955 | test -n "$RUNTEST" && break |
2abefe3d PB |
10956 | done |
10957 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10958 | |
2abefe3d PB |
10959 | case " $configdirs " in |
10960 | *" dejagnu "*) | |
c394e891 | 10961 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10962 | ;; |
10963 | esac | |
671aa708 | 10964 | |
4e3dcf20 | 10965 | |
671aa708 | 10966 | # Host tools. |
ca9f4b81 AO |
10967 | ncn_tool_prefix= |
10968 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10969 | ncn_target_tool_prefix= | |
10970 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10971 | ||
278a7a38 AO |
10972 | |
10973 | ||
10974 | if test -n "$AR"; then | |
10975 | ac_cv_prog_AR=$AR | |
10976 | elif test -n "$ac_cv_prog_AR"; then | |
10977 | AR=$ac_cv_prog_AR | |
10978 | fi | |
10979 | ||
10980 | if test -n "$ac_cv_prog_AR"; then | |
10981 | for ncn_progname in ar; do | |
10982 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10983 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10985 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10986 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10987 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10988 | else |
10989 | if test -n "$AR"; then | |
10990 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10991 | else | |
10992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10993 | for as_dir in $PATH | |
10994 | do | |
10995 | IFS=$as_save_IFS | |
10996 | test -z "$as_dir" && as_dir=. | |
5213506e | 10997 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10999 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 11000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11001 | break 2 |
11002 | fi | |
11003 | done | |
5213506e RW |
11004 | done |
11005 | IFS=$as_save_IFS | |
278a7a38 AO |
11006 | |
11007 | fi | |
11008 | fi | |
11009 | AR=$ac_cv_prog_AR | |
11010 | if test -n "$AR"; then | |
5213506e RW |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11012 | $as_echo "$AR" >&6; } | |
278a7a38 | 11013 | else |
5213506e RW |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11015 | $as_echo "no" >&6; } | |
278a7a38 AO |
11016 | fi |
11017 | ||
5213506e | 11018 | |
278a7a38 AO |
11019 | done |
11020 | fi | |
11021 | ||
11022 | for ncn_progname in ar; do | |
2693c0b0 PB |
11023 | if test -n "$ncn_tool_prefix"; then |
11024 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11025 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11027 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11028 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 11029 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11030 | else |
11031 | if test -n "$AR"; then | |
11032 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11033 | else | |
1c710c3c DJ |
11034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11035 | for as_dir in $PATH | |
11036 | do | |
11037 | IFS=$as_save_IFS | |
11038 | test -z "$as_dir" && as_dir=. | |
5213506e | 11039 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11041 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11043 | break 2 |
11044 | fi | |
11045 | done | |
5213506e RW |
11046 | done |
11047 | IFS=$as_save_IFS | |
1c710c3c | 11048 | |
ca9f4b81 AO |
11049 | fi |
11050 | fi | |
1c710c3c | 11051 | AR=$ac_cv_prog_AR |
ca9f4b81 | 11052 | if test -n "$AR"; then |
5213506e RW |
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11054 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 11055 | else |
5213506e RW |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11057 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11058 | fi |
11059 | ||
5213506e | 11060 | |
2693c0b0 PB |
11061 | fi |
11062 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
11063 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11064 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11066 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11067 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 11068 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11069 | else |
2693c0b0 | 11070 | if test -n "$AR"; then |
af71363e AS |
11071 | ac_cv_prog_AR="$AR" # Let the user override the test. |
11072 | else | |
1c710c3c DJ |
11073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11074 | for as_dir in $PATH | |
11075 | do | |
11076 | IFS=$as_save_IFS | |
11077 | test -z "$as_dir" && as_dir=. | |
5213506e | 11078 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11080 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 11081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11082 | break 2 |
11083 | fi | |
11084 | done | |
5213506e RW |
11085 | done |
11086 | IFS=$as_save_IFS | |
1c710c3c | 11087 | |
ca9f4b81 AO |
11088 | fi |
11089 | fi | |
1c710c3c | 11090 | AR=$ac_cv_prog_AR |
2693c0b0 | 11091 | if test -n "$AR"; then |
5213506e RW |
11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11093 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 11094 | else |
5213506e RW |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11096 | $as_echo "no" >&6; } | |
ca9f4b81 | 11097 | fi |
1c710c3c | 11098 | |
5213506e | 11099 | |
2693c0b0 PB |
11100 | fi |
11101 | test -n "$ac_cv_prog_AR" && break | |
11102 | done | |
11103 | ||
11104 | if test -z "$ac_cv_prog_AR" ; then | |
11105 | set dummy ar | |
11106 | if test $build = $host ; then | |
11107 | AR="$2" | |
ca9f4b81 | 11108 | else |
2693c0b0 | 11109 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 11110 | fi |
ca9f4b81 AO |
11111 | fi |
11112 | ||
278a7a38 AO |
11113 | |
11114 | ||
11115 | if test -n "$AS"; then | |
11116 | ac_cv_prog_AS=$AS | |
11117 | elif test -n "$ac_cv_prog_AS"; then | |
11118 | AS=$ac_cv_prog_AS | |
11119 | fi | |
11120 | ||
11121 | if test -n "$ac_cv_prog_AS"; then | |
11122 | for ncn_progname in as; do | |
11123 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11124 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11126 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11127 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11128 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11129 | else |
11130 | if test -n "$AS"; then | |
11131 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
11132 | else | |
11133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11134 | for as_dir in $PATH | |
11135 | do | |
11136 | IFS=$as_save_IFS | |
11137 | test -z "$as_dir" && as_dir=. | |
5213506e | 11138 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11140 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 11141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11142 | break 2 |
11143 | fi | |
11144 | done | |
5213506e RW |
11145 | done |
11146 | IFS=$as_save_IFS | |
278a7a38 AO |
11147 | |
11148 | fi | |
11149 | fi | |
11150 | AS=$ac_cv_prog_AS | |
11151 | if test -n "$AS"; then | |
5213506e RW |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11153 | $as_echo "$AS" >&6; } | |
278a7a38 | 11154 | else |
5213506e RW |
11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11156 | $as_echo "no" >&6; } | |
278a7a38 AO |
11157 | fi |
11158 | ||
5213506e | 11159 | |
278a7a38 AO |
11160 | done |
11161 | fi | |
11162 | ||
11163 | for ncn_progname in as; do | |
2693c0b0 PB |
11164 | if test -n "$ncn_tool_prefix"; then |
11165 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11166 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11168 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11169 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11170 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11171 | else |
11172 | if test -n "$AS"; then | |
11173 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 11174 | else |
1c710c3c DJ |
11175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11176 | for as_dir in $PATH | |
11177 | do | |
11178 | IFS=$as_save_IFS | |
11179 | test -z "$as_dir" && as_dir=. | |
5213506e | 11180 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11182 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11184 | break 2 |
11185 | fi | |
11186 | done | |
5213506e RW |
11187 | done |
11188 | IFS=$as_save_IFS | |
1c710c3c | 11189 | |
ca9f4b81 AO |
11190 | fi |
11191 | fi | |
1c710c3c | 11192 | AS=$ac_cv_prog_AS |
ca9f4b81 | 11193 | if test -n "$AS"; then |
5213506e RW |
11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11195 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 11196 | else |
5213506e RW |
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11198 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11199 | fi |
11200 | ||
5213506e | 11201 | |
2693c0b0 PB |
11202 | fi |
11203 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11204 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11205 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11207 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11208 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11209 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11210 | else |
2693c0b0 PB |
11211 | if test -n "$AS"; then |
11212 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 11213 | else |
1c710c3c DJ |
11214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11215 | for as_dir in $PATH | |
11216 | do | |
11217 | IFS=$as_save_IFS | |
11218 | test -z "$as_dir" && as_dir=. | |
5213506e | 11219 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11221 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 11222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11223 | break 2 |
11224 | fi | |
11225 | done | |
5213506e RW |
11226 | done |
11227 | IFS=$as_save_IFS | |
1c710c3c | 11228 | |
ca9f4b81 AO |
11229 | fi |
11230 | fi | |
1c710c3c | 11231 | AS=$ac_cv_prog_AS |
2693c0b0 | 11232 | if test -n "$AS"; then |
5213506e RW |
11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11234 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 11235 | else |
5213506e RW |
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11237 | $as_echo "no" >&6; } | |
ca9f4b81 | 11238 | fi |
1c710c3c | 11239 | |
5213506e | 11240 | |
2693c0b0 PB |
11241 | fi |
11242 | test -n "$ac_cv_prog_AS" && break | |
11243 | done | |
11244 | ||
11245 | if test -z "$ac_cv_prog_AS" ; then | |
11246 | set dummy as | |
11247 | if test $build = $host ; then | |
11248 | AS="$2" | |
ca9f4b81 | 11249 | else |
2693c0b0 | 11250 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 11251 | fi |
ca9f4b81 AO |
11252 | fi |
11253 | ||
278a7a38 AO |
11254 | |
11255 | ||
11256 | if test -n "$DLLTOOL"; then | |
11257 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11258 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11259 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11260 | fi | |
11261 | ||
11262 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11263 | for ncn_progname in dlltool; do | |
11264 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11265 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11267 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11268 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11269 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11270 | else |
11271 | if test -n "$DLLTOOL"; then | |
11272 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11273 | else | |
11274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11275 | for as_dir in $PATH | |
11276 | do | |
11277 | IFS=$as_save_IFS | |
11278 | test -z "$as_dir" && as_dir=. | |
5213506e | 11279 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11281 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11283 | break 2 |
11284 | fi | |
11285 | done | |
5213506e RW |
11286 | done |
11287 | IFS=$as_save_IFS | |
278a7a38 AO |
11288 | |
11289 | fi | |
11290 | fi | |
11291 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11292 | if test -n "$DLLTOOL"; then | |
5213506e RW |
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11294 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 11295 | else |
5213506e RW |
11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11297 | $as_echo "no" >&6; } | |
278a7a38 AO |
11298 | fi |
11299 | ||
5213506e | 11300 | |
278a7a38 AO |
11301 | done |
11302 | fi | |
11303 | ||
11304 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
11305 | if test -n "$ncn_tool_prefix"; then |
11306 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11307 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11309 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11310 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11311 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11312 | else |
11313 | if test -n "$DLLTOOL"; then | |
11314 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11315 | else | |
1c710c3c DJ |
11316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11317 | for as_dir in $PATH | |
11318 | do | |
11319 | IFS=$as_save_IFS | |
11320 | test -z "$as_dir" && as_dir=. | |
5213506e | 11321 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11323 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11325 | break 2 |
11326 | fi | |
11327 | done | |
5213506e RW |
11328 | done |
11329 | IFS=$as_save_IFS | |
1c710c3c | 11330 | |
ca9f4b81 AO |
11331 | fi |
11332 | fi | |
1c710c3c | 11333 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 11334 | if test -n "$DLLTOOL"; then |
5213506e RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11336 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11337 | else |
5213506e RW |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11339 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11340 | fi |
11341 | ||
5213506e | 11342 | |
2693c0b0 PB |
11343 | fi |
11344 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11345 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11346 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11348 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11349 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11350 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11351 | else |
2693c0b0 PB |
11352 | if test -n "$DLLTOOL"; then |
11353 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11354 | else |
1c710c3c DJ |
11355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11356 | for as_dir in $PATH | |
11357 | do | |
11358 | IFS=$as_save_IFS | |
11359 | test -z "$as_dir" && as_dir=. | |
5213506e | 11360 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11362 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11364 | break 2 |
11365 | fi | |
11366 | done | |
5213506e RW |
11367 | done |
11368 | IFS=$as_save_IFS | |
1c710c3c | 11369 | |
ca9f4b81 AO |
11370 | fi |
11371 | fi | |
1c710c3c | 11372 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11373 | if test -n "$DLLTOOL"; then |
5213506e RW |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11375 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11376 | else |
5213506e RW |
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11378 | $as_echo "no" >&6; } | |
ca9f4b81 | 11379 | fi |
1c710c3c | 11380 | |
5213506e | 11381 | |
2693c0b0 PB |
11382 | fi |
11383 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11384 | done | |
11385 | ||
11386 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11387 | set dummy dlltool | |
11388 | if test $build = $host ; then | |
11389 | DLLTOOL="$2" | |
ca9f4b81 | 11390 | else |
2693c0b0 | 11391 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11392 | fi |
ca9f4b81 AO |
11393 | fi |
11394 | ||
278a7a38 AO |
11395 | |
11396 | ||
3b5e8ee4 IS |
11397 | if test -n "$DSYMUTIL"; then |
11398 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11399 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11400 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11401 | fi | |
11402 | ||
11403 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11404 | for ncn_progname in dsymutil; do | |
11405 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11406 | set dummy ${ncn_progname}; ac_word=$2 | |
11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11408 | $as_echo_n "checking for $ac_word... " >&6; } | |
11409 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11410 | $as_echo_n "(cached) " >&6 | |
11411 | else | |
11412 | if test -n "$DSYMUTIL"; then | |
11413 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11414 | else | |
11415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11416 | for as_dir in $PATH | |
11417 | do | |
11418 | IFS=$as_save_IFS | |
11419 | test -z "$as_dir" && as_dir=. | |
11420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11422 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11424 | break 2 | |
11425 | fi | |
11426 | done | |
11427 | done | |
11428 | IFS=$as_save_IFS | |
11429 | ||
11430 | fi | |
11431 | fi | |
11432 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11433 | if test -n "$DSYMUTIL"; then | |
11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11435 | $as_echo "$DSYMUTIL" >&6; } | |
11436 | else | |
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11438 | $as_echo "no" >&6; } | |
11439 | fi | |
11440 | ||
11441 | ||
11442 | done | |
11443 | fi | |
11444 | ||
11445 | for ncn_progname in dsymutil; do | |
11446 | if test -n "$ncn_tool_prefix"; then | |
11447 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11448 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11450 | $as_echo_n "checking for $ac_word... " >&6; } | |
11451 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11452 | $as_echo_n "(cached) " >&6 | |
11453 | else | |
11454 | if test -n "$DSYMUTIL"; then | |
11455 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11456 | else | |
11457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11458 | for as_dir in $PATH | |
11459 | do | |
11460 | IFS=$as_save_IFS | |
11461 | test -z "$as_dir" && as_dir=. | |
11462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11463 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11464 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11466 | break 2 | |
11467 | fi | |
11468 | done | |
11469 | done | |
11470 | IFS=$as_save_IFS | |
11471 | ||
11472 | fi | |
11473 | fi | |
11474 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11475 | if test -n "$DSYMUTIL"; then | |
11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11477 | $as_echo "$DSYMUTIL" >&6; } | |
11478 | else | |
11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11480 | $as_echo "no" >&6; } | |
11481 | fi | |
11482 | ||
11483 | ||
11484 | fi | |
11485 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11486 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11487 | set dummy ${ncn_progname}; ac_word=$2 | |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11489 | $as_echo_n "checking for $ac_word... " >&6; } | |
11490 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11491 | $as_echo_n "(cached) " >&6 | |
11492 | else | |
11493 | if test -n "$DSYMUTIL"; then | |
11494 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11495 | else | |
11496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11497 | for as_dir in $PATH | |
11498 | do | |
11499 | IFS=$as_save_IFS | |
11500 | test -z "$as_dir" && as_dir=. | |
11501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11503 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11505 | break 2 | |
11506 | fi | |
11507 | done | |
11508 | done | |
11509 | IFS=$as_save_IFS | |
11510 | ||
11511 | fi | |
11512 | fi | |
11513 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11514 | if test -n "$DSYMUTIL"; then | |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11516 | $as_echo "$DSYMUTIL" >&6; } | |
11517 | else | |
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11519 | $as_echo "no" >&6; } | |
11520 | fi | |
11521 | ||
11522 | ||
11523 | fi | |
11524 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11525 | done | |
11526 | ||
11527 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11528 | set dummy dsymutil | |
11529 | if test $build = $host ; then | |
11530 | DSYMUTIL="$2" | |
11531 | else | |
11532 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11533 | fi | |
11534 | fi | |
11535 | ||
11536 | ||
11537 | ||
278a7a38 AO |
11538 | if test -n "$LD"; then |
11539 | ac_cv_prog_LD=$LD | |
11540 | elif test -n "$ac_cv_prog_LD"; then | |
11541 | LD=$ac_cv_prog_LD | |
11542 | fi | |
11543 | ||
11544 | if test -n "$ac_cv_prog_LD"; then | |
11545 | for ncn_progname in ld; do | |
11546 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11547 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11549 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11550 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11551 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11552 | else |
11553 | if test -n "$LD"; then | |
11554 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11555 | else | |
11556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11557 | for as_dir in $PATH | |
11558 | do | |
11559 | IFS=$as_save_IFS | |
11560 | test -z "$as_dir" && as_dir=. | |
5213506e | 11561 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11563 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11565 | break 2 |
11566 | fi | |
11567 | done | |
5213506e RW |
11568 | done |
11569 | IFS=$as_save_IFS | |
278a7a38 AO |
11570 | |
11571 | fi | |
11572 | fi | |
11573 | LD=$ac_cv_prog_LD | |
11574 | if test -n "$LD"; then | |
5213506e RW |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11576 | $as_echo "$LD" >&6; } | |
278a7a38 | 11577 | else |
5213506e RW |
11578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11579 | $as_echo "no" >&6; } | |
278a7a38 AO |
11580 | fi |
11581 | ||
5213506e | 11582 | |
278a7a38 AO |
11583 | done |
11584 | fi | |
11585 | ||
11586 | for ncn_progname in ld; do | |
2693c0b0 PB |
11587 | if test -n "$ncn_tool_prefix"; then |
11588 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11589 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11591 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11592 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11593 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11594 | else |
11595 | if test -n "$LD"; then | |
11596 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11597 | else | |
1c710c3c DJ |
11598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11599 | for as_dir in $PATH | |
11600 | do | |
11601 | IFS=$as_save_IFS | |
11602 | test -z "$as_dir" && as_dir=. | |
5213506e | 11603 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11605 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11607 | break 2 |
11608 | fi | |
11609 | done | |
5213506e RW |
11610 | done |
11611 | IFS=$as_save_IFS | |
1c710c3c | 11612 | |
ca9f4b81 AO |
11613 | fi |
11614 | fi | |
1c710c3c | 11615 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11616 | if test -n "$LD"; then |
5213506e RW |
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11618 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11619 | else |
5213506e RW |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11621 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11622 | fi |
11623 | ||
5213506e | 11624 | |
2693c0b0 PB |
11625 | fi |
11626 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11627 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11628 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11630 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11631 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11632 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11633 | else |
2693c0b0 PB |
11634 | if test -n "$LD"; then |
11635 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11636 | else |
1c710c3c DJ |
11637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11638 | for as_dir in $PATH | |
11639 | do | |
11640 | IFS=$as_save_IFS | |
11641 | test -z "$as_dir" && as_dir=. | |
5213506e | 11642 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11644 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11646 | break 2 |
11647 | fi | |
11648 | done | |
5213506e RW |
11649 | done |
11650 | IFS=$as_save_IFS | |
1c710c3c | 11651 | |
ca9f4b81 AO |
11652 | fi |
11653 | fi | |
1c710c3c | 11654 | LD=$ac_cv_prog_LD |
2693c0b0 | 11655 | if test -n "$LD"; then |
5213506e RW |
11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11657 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11658 | else |
5213506e RW |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11660 | $as_echo "no" >&6; } | |
ca9f4b81 | 11661 | fi |
1c710c3c | 11662 | |
5213506e | 11663 | |
2693c0b0 PB |
11664 | fi |
11665 | test -n "$ac_cv_prog_LD" && break | |
11666 | done | |
11667 | ||
11668 | if test -z "$ac_cv_prog_LD" ; then | |
11669 | set dummy ld | |
11670 | if test $build = $host ; then | |
11671 | LD="$2" | |
ca9f4b81 | 11672 | else |
2693c0b0 | 11673 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11674 | fi |
ca9f4b81 AO |
11675 | fi |
11676 | ||
278a7a38 AO |
11677 | |
11678 | ||
11679 | if test -n "$LIPO"; then | |
11680 | ac_cv_prog_LIPO=$LIPO | |
11681 | elif test -n "$ac_cv_prog_LIPO"; then | |
11682 | LIPO=$ac_cv_prog_LIPO | |
11683 | fi | |
11684 | ||
11685 | if test -n "$ac_cv_prog_LIPO"; then | |
11686 | for ncn_progname in lipo; do | |
11687 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11688 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11690 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11691 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11692 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11693 | else |
11694 | if test -n "$LIPO"; then | |
11695 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11696 | else | |
11697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11698 | for as_dir in $PATH | |
11699 | do | |
11700 | IFS=$as_save_IFS | |
11701 | test -z "$as_dir" && as_dir=. | |
5213506e | 11702 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11704 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11706 | break 2 |
11707 | fi | |
11708 | done | |
5213506e RW |
11709 | done |
11710 | IFS=$as_save_IFS | |
278a7a38 AO |
11711 | |
11712 | fi | |
11713 | fi | |
11714 | LIPO=$ac_cv_prog_LIPO | |
11715 | if test -n "$LIPO"; then | |
5213506e RW |
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11717 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11718 | else |
5213506e RW |
11719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11720 | $as_echo "no" >&6; } | |
278a7a38 AO |
11721 | fi |
11722 | ||
5213506e | 11723 | |
278a7a38 AO |
11724 | done |
11725 | fi | |
11726 | ||
11727 | for ncn_progname in lipo; do | |
2abefe3d PB |
11728 | if test -n "$ncn_tool_prefix"; then |
11729 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11730 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11732 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11733 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11734 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11735 | else |
11736 | if test -n "$LIPO"; then | |
11737 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11738 | else | |
1c710c3c DJ |
11739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11740 | for as_dir in $PATH | |
11741 | do | |
11742 | IFS=$as_save_IFS | |
11743 | test -z "$as_dir" && as_dir=. | |
5213506e | 11744 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11746 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11748 | break 2 |
11749 | fi | |
11750 | done | |
5213506e RW |
11751 | done |
11752 | IFS=$as_save_IFS | |
1c710c3c | 11753 | |
2abefe3d PB |
11754 | fi |
11755 | fi | |
1c710c3c | 11756 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11757 | if test -n "$LIPO"; then |
5213506e RW |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11759 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11760 | else |
5213506e RW |
11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11762 | $as_echo "no" >&6; } | |
2abefe3d PB |
11763 | fi |
11764 | ||
5213506e | 11765 | |
2abefe3d PB |
11766 | fi |
11767 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11768 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11769 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11771 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11772 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11773 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11774 | else |
11775 | if test -n "$LIPO"; then | |
11776 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11777 | else | |
1c710c3c DJ |
11778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11779 | for as_dir in $PATH | |
11780 | do | |
11781 | IFS=$as_save_IFS | |
11782 | test -z "$as_dir" && as_dir=. | |
5213506e | 11783 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11785 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11787 | break 2 |
11788 | fi | |
11789 | done | |
5213506e RW |
11790 | done |
11791 | IFS=$as_save_IFS | |
1c710c3c | 11792 | |
2abefe3d PB |
11793 | fi |
11794 | fi | |
1c710c3c | 11795 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11796 | if test -n "$LIPO"; then |
5213506e RW |
11797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11798 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11799 | else |
5213506e RW |
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11801 | $as_echo "no" >&6; } | |
2abefe3d | 11802 | fi |
1c710c3c | 11803 | |
5213506e | 11804 | |
2abefe3d PB |
11805 | fi |
11806 | test -n "$ac_cv_prog_LIPO" && break | |
11807 | done | |
11808 | ||
11809 | if test -z "$ac_cv_prog_LIPO" ; then | |
11810 | set dummy lipo | |
11811 | if test $build = $host ; then | |
11812 | LIPO="$2" | |
11813 | else | |
11814 | LIPO="${ncn_tool_prefix}$2" | |
11815 | fi | |
11816 | fi | |
11817 | ||
278a7a38 AO |
11818 | |
11819 | ||
11820 | if test -n "$NM"; then | |
11821 | ac_cv_prog_NM=$NM | |
11822 | elif test -n "$ac_cv_prog_NM"; then | |
11823 | NM=$ac_cv_prog_NM | |
11824 | fi | |
11825 | ||
11826 | if test -n "$ac_cv_prog_NM"; then | |
11827 | for ncn_progname in nm; do | |
11828 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11829 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11831 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11832 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11833 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11834 | else |
11835 | if test -n "$NM"; then | |
11836 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11837 | else | |
1c710c3c DJ |
11838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11839 | for as_dir in $PATH | |
11840 | do | |
11841 | IFS=$as_save_IFS | |
11842 | test -z "$as_dir" && as_dir=. | |
5213506e | 11843 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11845 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11847 | break 2 |
11848 | fi | |
11849 | done | |
5213506e RW |
11850 | done |
11851 | IFS=$as_save_IFS | |
1c710c3c | 11852 | |
ca9f4b81 AO |
11853 | fi |
11854 | fi | |
1c710c3c | 11855 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11856 | if test -n "$NM"; then |
5213506e RW |
11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11858 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11859 | else |
5213506e RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11861 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11862 | fi |
11863 | ||
5213506e | 11864 | |
278a7a38 AO |
11865 | done |
11866 | fi | |
11867 | ||
11868 | for ncn_progname in nm; do | |
11869 | if test -n "$ncn_tool_prefix"; then | |
11870 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11871 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11873 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11874 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11875 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11876 | else |
2693c0b0 PB |
11877 | if test -n "$NM"; then |
11878 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11879 | else |
1c710c3c DJ |
11880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11881 | for as_dir in $PATH | |
11882 | do | |
11883 | IFS=$as_save_IFS | |
11884 | test -z "$as_dir" && as_dir=. | |
5213506e | 11885 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11887 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11889 | break 2 |
11890 | fi | |
11891 | done | |
5213506e RW |
11892 | done |
11893 | IFS=$as_save_IFS | |
1c710c3c | 11894 | |
ca9f4b81 AO |
11895 | fi |
11896 | fi | |
1c710c3c | 11897 | NM=$ac_cv_prog_NM |
2693c0b0 | 11898 | if test -n "$NM"; then |
5213506e RW |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11900 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11901 | else |
5213506e RW |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11903 | $as_echo "no" >&6; } | |
ca9f4b81 | 11904 | fi |
1c710c3c | 11905 | |
5213506e | 11906 | |
2693c0b0 | 11907 | fi |
278a7a38 AO |
11908 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11909 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11910 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11912 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11913 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11914 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11915 | else |
11916 | if test -n "$NM"; then | |
11917 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11918 | else | |
11919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11920 | for as_dir in $PATH | |
11921 | do | |
11922 | IFS=$as_save_IFS | |
11923 | test -z "$as_dir" && as_dir=. | |
5213506e | 11924 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11926 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11928 | break 2 |
11929 | fi | |
11930 | done | |
5213506e RW |
11931 | done |
11932 | IFS=$as_save_IFS | |
278a7a38 AO |
11933 | |
11934 | fi | |
11935 | fi | |
11936 | NM=$ac_cv_prog_NM | |
11937 | if test -n "$NM"; then | |
5213506e RW |
11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11939 | $as_echo "$NM" >&6; } | |
278a7a38 | 11940 | else |
5213506e RW |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11942 | $as_echo "no" >&6; } | |
278a7a38 AO |
11943 | fi |
11944 | ||
5213506e | 11945 | |
278a7a38 AO |
11946 | fi |
11947 | test -n "$ac_cv_prog_NM" && break | |
11948 | done | |
11949 | ||
11950 | if test -z "$ac_cv_prog_NM" ; then | |
11951 | set dummy nm | |
11952 | if test $build = $host ; then | |
11953 | NM="$2" | |
11954 | else | |
11955 | NM="${ncn_tool_prefix}$2" | |
11956 | fi | |
11957 | fi | |
11958 | ||
11959 | ||
11960 | ||
11961 | if test -n "$RANLIB"; then | |
11962 | ac_cv_prog_RANLIB=$RANLIB | |
11963 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11964 | RANLIB=$ac_cv_prog_RANLIB | |
11965 | fi | |
11966 | ||
11967 | if test -n "$ac_cv_prog_RANLIB"; then | |
11968 | for ncn_progname in ranlib; do | |
11969 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11970 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11972 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11973 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11974 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11975 | else |
11976 | if test -n "$RANLIB"; then | |
11977 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11978 | else | |
11979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11980 | for as_dir in $PATH | |
11981 | do | |
11982 | IFS=$as_save_IFS | |
11983 | test -z "$as_dir" && as_dir=. | |
5213506e | 11984 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11986 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11988 | break 2 |
11989 | fi | |
11990 | done | |
5213506e RW |
11991 | done |
11992 | IFS=$as_save_IFS | |
278a7a38 AO |
11993 | |
11994 | fi | |
11995 | fi | |
11996 | RANLIB=$ac_cv_prog_RANLIB | |
11997 | if test -n "$RANLIB"; then | |
5213506e RW |
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11999 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 12000 | else |
5213506e RW |
12001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12002 | $as_echo "no" >&6; } | |
278a7a38 AO |
12003 | fi |
12004 | ||
5213506e | 12005 | |
278a7a38 AO |
12006 | done |
12007 | fi | |
ca9f4b81 | 12008 | |
278a7a38 | 12009 | for ncn_progname in ranlib; do |
2693c0b0 PB |
12010 | if test -n "$ncn_tool_prefix"; then |
12011 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12012 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12014 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12015 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 12016 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12017 | else |
12018 | if test -n "$RANLIB"; then | |
12019 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12020 | else | |
1c710c3c DJ |
12021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12022 | for as_dir in $PATH | |
12023 | do | |
12024 | IFS=$as_save_IFS | |
12025 | test -z "$as_dir" && as_dir=. | |
5213506e | 12026 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12028 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12030 | break 2 |
12031 | fi | |
12032 | done | |
5213506e RW |
12033 | done |
12034 | IFS=$as_save_IFS | |
1c710c3c | 12035 | |
ca9f4b81 AO |
12036 | fi |
12037 | fi | |
1c710c3c | 12038 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 12039 | if test -n "$RANLIB"; then |
5213506e RW |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
12041 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 12042 | else |
5213506e RW |
12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12044 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12045 | fi |
12046 | ||
5213506e | 12047 | |
2693c0b0 PB |
12048 | fi |
12049 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
12050 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12051 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12053 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12054 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 12055 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12056 | else |
2693c0b0 PB |
12057 | if test -n "$RANLIB"; then |
12058 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 12059 | else |
1c710c3c DJ |
12060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12061 | for as_dir in $PATH | |
12062 | do | |
12063 | IFS=$as_save_IFS | |
12064 | test -z "$as_dir" && as_dir=. | |
5213506e | 12065 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12067 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 12068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12069 | break 2 |
12070 | fi | |
12071 | done | |
5213506e RW |
12072 | done |
12073 | IFS=$as_save_IFS | |
1c710c3c | 12074 | |
ca9f4b81 AO |
12075 | fi |
12076 | fi | |
1c710c3c | 12077 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 12078 | if test -n "$RANLIB"; then |
5213506e RW |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
12080 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 12081 | else |
5213506e RW |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12083 | $as_echo "no" >&6; } | |
ca9f4b81 | 12084 | fi |
1c710c3c | 12085 | |
5213506e | 12086 | |
ca9f4b81 | 12087 | fi |
2693c0b0 PB |
12088 | test -n "$ac_cv_prog_RANLIB" && break |
12089 | done | |
12090 | ||
12091 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 12092 | RANLIB="true" |
ca9f4b81 AO |
12093 | fi |
12094 | ||
278a7a38 AO |
12095 | |
12096 | ||
12097 | if test -n "$STRIP"; then | |
12098 | ac_cv_prog_STRIP=$STRIP | |
12099 | elif test -n "$ac_cv_prog_STRIP"; then | |
12100 | STRIP=$ac_cv_prog_STRIP | |
12101 | fi | |
12102 | ||
12103 | if test -n "$ac_cv_prog_STRIP"; then | |
12104 | for ncn_progname in strip; do | |
12105 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12106 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12108 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12109 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12110 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12111 | else |
12112 | if test -n "$STRIP"; then | |
12113 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12114 | else | |
12115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12116 | for as_dir in $PATH | |
12117 | do | |
12118 | IFS=$as_save_IFS | |
12119 | test -z "$as_dir" && as_dir=. | |
5213506e | 12120 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12122 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 12123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12124 | break 2 |
12125 | fi | |
12126 | done | |
5213506e RW |
12127 | done |
12128 | IFS=$as_save_IFS | |
278a7a38 AO |
12129 | |
12130 | fi | |
12131 | fi | |
12132 | STRIP=$ac_cv_prog_STRIP | |
12133 | if test -n "$STRIP"; then | |
5213506e RW |
12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12135 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 12136 | else |
5213506e RW |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12138 | $as_echo "no" >&6; } | |
278a7a38 AO |
12139 | fi |
12140 | ||
5213506e | 12141 | |
278a7a38 AO |
12142 | done |
12143 | fi | |
12144 | ||
12145 | for ncn_progname in strip; do | |
2abefe3d PB |
12146 | if test -n "$ncn_tool_prefix"; then |
12147 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12148 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12150 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12151 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12152 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
12153 | else |
12154 | if test -n "$STRIP"; then | |
12155 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12156 | else | |
1c710c3c DJ |
12157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12158 | for as_dir in $PATH | |
12159 | do | |
12160 | IFS=$as_save_IFS | |
12161 | test -z "$as_dir" && as_dir=. | |
5213506e | 12162 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12164 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12166 | break 2 |
12167 | fi | |
12168 | done | |
5213506e RW |
12169 | done |
12170 | IFS=$as_save_IFS | |
1c710c3c | 12171 | |
2abefe3d PB |
12172 | fi |
12173 | fi | |
1c710c3c | 12174 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 12175 | if test -n "$STRIP"; then |
5213506e RW |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12177 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 12178 | else |
5213506e RW |
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12180 | $as_echo "no" >&6; } | |
2abefe3d PB |
12181 | fi |
12182 | ||
5213506e | 12183 | |
2abefe3d PB |
12184 | fi |
12185 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12186 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12187 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12189 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12190 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12191 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
12192 | else |
12193 | if test -n "$STRIP"; then | |
12194 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12195 | else | |
1c710c3c DJ |
12196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12197 | for as_dir in $PATH | |
12198 | do | |
12199 | IFS=$as_save_IFS | |
12200 | test -z "$as_dir" && as_dir=. | |
5213506e | 12201 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12203 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 12204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12205 | break 2 |
12206 | fi | |
12207 | done | |
5213506e RW |
12208 | done |
12209 | IFS=$as_save_IFS | |
1c710c3c | 12210 | |
2abefe3d PB |
12211 | fi |
12212 | fi | |
1c710c3c | 12213 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 12214 | if test -n "$STRIP"; then |
5213506e RW |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12216 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 12217 | else |
5213506e RW |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12219 | $as_echo "no" >&6; } | |
2abefe3d | 12220 | fi |
1c710c3c | 12221 | |
5213506e | 12222 | |
2abefe3d PB |
12223 | fi |
12224 | test -n "$ac_cv_prog_STRIP" && break | |
12225 | done | |
12226 | ||
12227 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 12228 | STRIP="true" |
2abefe3d PB |
12229 | fi |
12230 | ||
278a7a38 AO |
12231 | |
12232 | ||
12233 | if test -n "$WINDRES"; then | |
12234 | ac_cv_prog_WINDRES=$WINDRES | |
12235 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12236 | WINDRES=$ac_cv_prog_WINDRES | |
12237 | fi | |
12238 | ||
12239 | if test -n "$ac_cv_prog_WINDRES"; then | |
12240 | for ncn_progname in windres; do | |
12241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12242 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12244 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12245 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12246 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12247 | else |
12248 | if test -n "$WINDRES"; then | |
12249 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12250 | else | |
12251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12252 | for as_dir in $PATH | |
12253 | do | |
12254 | IFS=$as_save_IFS | |
12255 | test -z "$as_dir" && as_dir=. | |
5213506e | 12256 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12258 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12260 | break 2 |
12261 | fi | |
12262 | done | |
5213506e RW |
12263 | done |
12264 | IFS=$as_save_IFS | |
278a7a38 AO |
12265 | |
12266 | fi | |
12267 | fi | |
12268 | WINDRES=$ac_cv_prog_WINDRES | |
12269 | if test -n "$WINDRES"; then | |
5213506e RW |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12271 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 12272 | else |
5213506e RW |
12273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12274 | $as_echo "no" >&6; } | |
278a7a38 AO |
12275 | fi |
12276 | ||
5213506e | 12277 | |
278a7a38 AO |
12278 | done |
12279 | fi | |
12280 | ||
12281 | for ncn_progname in windres; do | |
2693c0b0 PB |
12282 | if test -n "$ncn_tool_prefix"; then |
12283 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12284 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12286 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12287 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12288 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12289 | else |
12290 | if test -n "$WINDRES"; then | |
12291 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12292 | else | |
1c710c3c DJ |
12293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12294 | for as_dir in $PATH | |
12295 | do | |
12296 | IFS=$as_save_IFS | |
12297 | test -z "$as_dir" && as_dir=. | |
5213506e | 12298 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12300 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12302 | break 2 |
12303 | fi | |
12304 | done | |
5213506e RW |
12305 | done |
12306 | IFS=$as_save_IFS | |
1c710c3c | 12307 | |
ca9f4b81 AO |
12308 | fi |
12309 | fi | |
1c710c3c | 12310 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 12311 | if test -n "$WINDRES"; then |
5213506e RW |
12312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12313 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12314 | else |
5213506e RW |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12316 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12317 | fi |
12318 | ||
5213506e | 12319 | |
2693c0b0 PB |
12320 | fi |
12321 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12322 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12323 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12325 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12326 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12327 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12328 | else |
2693c0b0 PB |
12329 | if test -n "$WINDRES"; then |
12330 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 12331 | else |
1c710c3c DJ |
12332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12333 | for as_dir in $PATH | |
12334 | do | |
12335 | IFS=$as_save_IFS | |
12336 | test -z "$as_dir" && as_dir=. | |
5213506e | 12337 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12339 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12341 | break 2 |
12342 | fi | |
12343 | done | |
5213506e RW |
12344 | done |
12345 | IFS=$as_save_IFS | |
1c710c3c | 12346 | |
ca9f4b81 AO |
12347 | fi |
12348 | fi | |
1c710c3c | 12349 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12350 | if test -n "$WINDRES"; then |
5213506e RW |
12351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12352 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12353 | else |
5213506e RW |
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12355 | $as_echo "no" >&6; } | |
ca9f4b81 | 12356 | fi |
1c710c3c | 12357 | |
5213506e | 12358 | |
2693c0b0 PB |
12359 | fi |
12360 | test -n "$ac_cv_prog_WINDRES" && break | |
12361 | done | |
12362 | ||
12363 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12364 | set dummy windres | |
12365 | if test $build = $host ; then | |
12366 | WINDRES="$2" | |
ca9f4b81 | 12367 | else |
2693c0b0 | 12368 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12369 | fi |
ca9f4b81 AO |
12370 | fi |
12371 | ||
278a7a38 AO |
12372 | |
12373 | ||
901119ae KT |
12374 | if test -n "$WINDMC"; then |
12375 | ac_cv_prog_WINDMC=$WINDMC | |
12376 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12377 | WINDMC=$ac_cv_prog_WINDMC | |
12378 | fi | |
12379 | ||
12380 | if test -n "$ac_cv_prog_WINDMC"; then | |
12381 | for ncn_progname in windmc; do | |
12382 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12383 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12385 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12386 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12387 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12388 | else |
12389 | if test -n "$WINDMC"; then | |
12390 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12391 | else | |
12392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12393 | for as_dir in $PATH | |
12394 | do | |
12395 | IFS=$as_save_IFS | |
12396 | test -z "$as_dir" && as_dir=. | |
5213506e | 12397 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12399 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12401 | break 2 |
12402 | fi | |
12403 | done | |
5213506e RW |
12404 | done |
12405 | IFS=$as_save_IFS | |
901119ae KT |
12406 | |
12407 | fi | |
12408 | fi | |
12409 | WINDMC=$ac_cv_prog_WINDMC | |
12410 | if test -n "$WINDMC"; then | |
5213506e RW |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12412 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12413 | else |
5213506e RW |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12415 | $as_echo "no" >&6; } | |
901119ae KT |
12416 | fi |
12417 | ||
5213506e | 12418 | |
901119ae KT |
12419 | done |
12420 | fi | |
12421 | ||
12422 | for ncn_progname in windmc; do | |
12423 | if test -n "$ncn_tool_prefix"; then | |
12424 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12425 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12427 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12428 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12429 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12430 | else |
12431 | if test -n "$WINDMC"; then | |
12432 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12433 | else | |
12434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12435 | for as_dir in $PATH | |
12436 | do | |
12437 | IFS=$as_save_IFS | |
12438 | test -z "$as_dir" && as_dir=. | |
5213506e | 12439 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12441 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12443 | break 2 |
12444 | fi | |
12445 | done | |
5213506e RW |
12446 | done |
12447 | IFS=$as_save_IFS | |
901119ae KT |
12448 | |
12449 | fi | |
12450 | fi | |
12451 | WINDMC=$ac_cv_prog_WINDMC | |
12452 | if test -n "$WINDMC"; then | |
5213506e RW |
12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12454 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12455 | else |
5213506e RW |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12457 | $as_echo "no" >&6; } | |
901119ae KT |
12458 | fi |
12459 | ||
5213506e | 12460 | |
901119ae KT |
12461 | fi |
12462 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12463 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12464 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12466 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12467 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12468 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12469 | else |
12470 | if test -n "$WINDMC"; then | |
12471 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12472 | else | |
12473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12474 | for as_dir in $PATH | |
12475 | do | |
12476 | IFS=$as_save_IFS | |
12477 | test -z "$as_dir" && as_dir=. | |
5213506e | 12478 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12479 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12480 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12482 | break 2 |
12483 | fi | |
12484 | done | |
5213506e RW |
12485 | done |
12486 | IFS=$as_save_IFS | |
901119ae KT |
12487 | |
12488 | fi | |
12489 | fi | |
12490 | WINDMC=$ac_cv_prog_WINDMC | |
12491 | if test -n "$WINDMC"; then | |
5213506e RW |
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12493 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12494 | else |
5213506e RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12496 | $as_echo "no" >&6; } | |
901119ae KT |
12497 | fi |
12498 | ||
5213506e | 12499 | |
901119ae KT |
12500 | fi |
12501 | test -n "$ac_cv_prog_WINDMC" && break | |
12502 | done | |
12503 | ||
12504 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12505 | set dummy windmc | |
12506 | if test $build = $host ; then | |
12507 | WINDMC="$2" | |
12508 | else | |
12509 | WINDMC="${ncn_tool_prefix}$2" | |
12510 | fi | |
12511 | fi | |
12512 | ||
12513 | ||
12514 | ||
278a7a38 AO |
12515 | if test -n "$OBJCOPY"; then |
12516 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12517 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12518 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12519 | fi | |
12520 | ||
12521 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12522 | for ncn_progname in objcopy; do | |
12523 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12524 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12526 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12527 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12528 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12529 | else |
12530 | if test -n "$OBJCOPY"; then | |
12531 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12532 | else | |
12533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12534 | for as_dir in $PATH | |
12535 | do | |
12536 | IFS=$as_save_IFS | |
12537 | test -z "$as_dir" && as_dir=. | |
5213506e | 12538 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12540 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12542 | break 2 |
12543 | fi | |
12544 | done | |
5213506e RW |
12545 | done |
12546 | IFS=$as_save_IFS | |
278a7a38 AO |
12547 | |
12548 | fi | |
12549 | fi | |
12550 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12551 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12553 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12554 | else |
5213506e RW |
12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12556 | $as_echo "no" >&6; } | |
278a7a38 AO |
12557 | fi |
12558 | ||
5213506e | 12559 | |
278a7a38 AO |
12560 | done |
12561 | fi | |
12562 | ||
12563 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12564 | if test -n "$ncn_tool_prefix"; then |
12565 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12566 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12568 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12569 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12570 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12571 | else |
12572 | if test -n "$OBJCOPY"; then | |
12573 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12574 | else | |
1c710c3c DJ |
12575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12576 | for as_dir in $PATH | |
12577 | do | |
12578 | IFS=$as_save_IFS | |
12579 | test -z "$as_dir" && as_dir=. | |
5213506e | 12580 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12582 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12584 | break 2 |
12585 | fi | |
12586 | done | |
5213506e RW |
12587 | done |
12588 | IFS=$as_save_IFS | |
1c710c3c | 12589 | |
ca9f4b81 AO |
12590 | fi |
12591 | fi | |
1c710c3c | 12592 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12593 | if test -n "$OBJCOPY"; then |
5213506e RW |
12594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12595 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12596 | else |
5213506e RW |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12598 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12599 | fi |
12600 | ||
5213506e | 12601 | |
2693c0b0 PB |
12602 | fi |
12603 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12604 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12605 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12607 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12608 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12609 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12610 | else |
2693c0b0 PB |
12611 | if test -n "$OBJCOPY"; then |
12612 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12613 | else |
1c710c3c DJ |
12614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12615 | for as_dir in $PATH | |
12616 | do | |
12617 | IFS=$as_save_IFS | |
12618 | test -z "$as_dir" && as_dir=. | |
5213506e | 12619 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12621 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12623 | break 2 |
12624 | fi | |
12625 | done | |
5213506e RW |
12626 | done |
12627 | IFS=$as_save_IFS | |
1c710c3c | 12628 | |
ca9f4b81 AO |
12629 | fi |
12630 | fi | |
1c710c3c | 12631 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12632 | if test -n "$OBJCOPY"; then |
5213506e RW |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12634 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12635 | else |
5213506e RW |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12637 | $as_echo "no" >&6; } | |
ca9f4b81 | 12638 | fi |
1c710c3c | 12639 | |
5213506e | 12640 | |
2693c0b0 PB |
12641 | fi |
12642 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12643 | done | |
12644 | ||
12645 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12646 | set dummy objcopy | |
12647 | if test $build = $host ; then | |
12648 | OBJCOPY="$2" | |
ca9f4b81 | 12649 | else |
2693c0b0 | 12650 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12651 | fi |
ca9f4b81 AO |
12652 | fi |
12653 | ||
278a7a38 AO |
12654 | |
12655 | ||
12656 | if test -n "$OBJDUMP"; then | |
12657 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12658 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12659 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12660 | fi | |
12661 | ||
12662 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12663 | for ncn_progname in objdump; do | |
12664 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12665 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12667 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12668 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12669 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12670 | else |
12671 | if test -n "$OBJDUMP"; then | |
12672 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12673 | else | |
12674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12675 | for as_dir in $PATH | |
12676 | do | |
12677 | IFS=$as_save_IFS | |
12678 | test -z "$as_dir" && as_dir=. | |
5213506e | 12679 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12681 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12683 | break 2 |
12684 | fi | |
12685 | done | |
5213506e RW |
12686 | done |
12687 | IFS=$as_save_IFS | |
278a7a38 AO |
12688 | |
12689 | fi | |
12690 | fi | |
12691 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12692 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12694 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12695 | else |
5213506e RW |
12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12697 | $as_echo "no" >&6; } | |
278a7a38 AO |
12698 | fi |
12699 | ||
5213506e | 12700 | |
278a7a38 AO |
12701 | done |
12702 | fi | |
12703 | ||
12704 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12705 | if test -n "$ncn_tool_prefix"; then |
12706 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12707 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12709 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12710 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12711 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12712 | else |
12713 | if test -n "$OBJDUMP"; then | |
12714 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12715 | else | |
1c710c3c DJ |
12716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12717 | for as_dir in $PATH | |
12718 | do | |
12719 | IFS=$as_save_IFS | |
12720 | test -z "$as_dir" && as_dir=. | |
5213506e | 12721 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12723 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12725 | break 2 |
12726 | fi | |
12727 | done | |
5213506e RW |
12728 | done |
12729 | IFS=$as_save_IFS | |
1c710c3c | 12730 | |
ca9f4b81 AO |
12731 | fi |
12732 | fi | |
1c710c3c | 12733 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12734 | if test -n "$OBJDUMP"; then |
5213506e RW |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12736 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12737 | else |
5213506e RW |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12739 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12740 | fi |
12741 | ||
5213506e | 12742 | |
2693c0b0 PB |
12743 | fi |
12744 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12745 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12746 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12748 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12749 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12750 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12751 | else |
2693c0b0 PB |
12752 | if test -n "$OBJDUMP"; then |
12753 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12754 | else |
1c710c3c DJ |
12755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12756 | for as_dir in $PATH | |
12757 | do | |
12758 | IFS=$as_save_IFS | |
12759 | test -z "$as_dir" && as_dir=. | |
5213506e | 12760 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12762 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12764 | break 2 |
12765 | fi | |
12766 | done | |
5213506e RW |
12767 | done |
12768 | IFS=$as_save_IFS | |
1c710c3c | 12769 | |
ca9f4b81 AO |
12770 | fi |
12771 | fi | |
1c710c3c | 12772 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12773 | if test -n "$OBJDUMP"; then |
5213506e RW |
12774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12775 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12776 | else |
5213506e RW |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12778 | $as_echo "no" >&6; } | |
ca9f4b81 | 12779 | fi |
1c710c3c | 12780 | |
5213506e | 12781 | |
2693c0b0 PB |
12782 | fi |
12783 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12784 | done | |
12785 | ||
12786 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12787 | set dummy objdump | |
12788 | if test $build = $host ; then | |
12789 | OBJDUMP="$2" | |
ca9f4b81 | 12790 | else |
2693c0b0 | 12791 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12792 | fi |
ca9f4b81 AO |
12793 | fi |
12794 | ||
671aa708 NN |
12795 | |
12796 | ||
e4a9a572 IS |
12797 | if test -n "$OTOOL"; then |
12798 | ac_cv_prog_OTOOL=$OTOOL | |
12799 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12800 | OTOOL=$ac_cv_prog_OTOOL | |
12801 | fi | |
12802 | ||
12803 | if test -n "$ac_cv_prog_OTOOL"; then | |
12804 | for ncn_progname in otool; do | |
12805 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12806 | set dummy ${ncn_progname}; ac_word=$2 | |
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12808 | $as_echo_n "checking for $ac_word... " >&6; } | |
12809 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12810 | $as_echo_n "(cached) " >&6 | |
12811 | else | |
12812 | if test -n "$OTOOL"; then | |
12813 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12814 | else | |
12815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12816 | for as_dir in $PATH | |
12817 | do | |
12818 | IFS=$as_save_IFS | |
12819 | test -z "$as_dir" && as_dir=. | |
12820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12822 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12824 | break 2 | |
12825 | fi | |
12826 | done | |
12827 | done | |
12828 | IFS=$as_save_IFS | |
12829 | ||
12830 | fi | |
12831 | fi | |
12832 | OTOOL=$ac_cv_prog_OTOOL | |
12833 | if test -n "$OTOOL"; then | |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12835 | $as_echo "$OTOOL" >&6; } | |
12836 | else | |
12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12838 | $as_echo "no" >&6; } | |
12839 | fi | |
12840 | ||
12841 | ||
12842 | done | |
12843 | fi | |
12844 | ||
12845 | for ncn_progname in otool; do | |
12846 | if test -n "$ncn_tool_prefix"; then | |
12847 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12848 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12850 | $as_echo_n "checking for $ac_word... " >&6; } | |
12851 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12852 | $as_echo_n "(cached) " >&6 | |
12853 | else | |
12854 | if test -n "$OTOOL"; then | |
12855 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12856 | else | |
12857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12858 | for as_dir in $PATH | |
12859 | do | |
12860 | IFS=$as_save_IFS | |
12861 | test -z "$as_dir" && as_dir=. | |
12862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12864 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12866 | break 2 | |
12867 | fi | |
12868 | done | |
12869 | done | |
12870 | IFS=$as_save_IFS | |
12871 | ||
12872 | fi | |
12873 | fi | |
12874 | OTOOL=$ac_cv_prog_OTOOL | |
12875 | if test -n "$OTOOL"; then | |
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12877 | $as_echo "$OTOOL" >&6; } | |
12878 | else | |
12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12880 | $as_echo "no" >&6; } | |
12881 | fi | |
12882 | ||
12883 | ||
12884 | fi | |
12885 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12886 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12887 | set dummy ${ncn_progname}; ac_word=$2 | |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12889 | $as_echo_n "checking for $ac_word... " >&6; } | |
12890 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12891 | $as_echo_n "(cached) " >&6 | |
12892 | else | |
12893 | if test -n "$OTOOL"; then | |
12894 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12895 | else | |
12896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12897 | for as_dir in $PATH | |
12898 | do | |
12899 | IFS=$as_save_IFS | |
12900 | test -z "$as_dir" && as_dir=. | |
12901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12903 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12905 | break 2 | |
12906 | fi | |
12907 | done | |
12908 | done | |
12909 | IFS=$as_save_IFS | |
12910 | ||
12911 | fi | |
12912 | fi | |
12913 | OTOOL=$ac_cv_prog_OTOOL | |
12914 | if test -n "$OTOOL"; then | |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12916 | $as_echo "$OTOOL" >&6; } | |
12917 | else | |
12918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12919 | $as_echo "no" >&6; } | |
12920 | fi | |
12921 | ||
12922 | ||
12923 | fi | |
12924 | test -n "$ac_cv_prog_OTOOL" && break | |
12925 | done | |
12926 | ||
12927 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12928 | set dummy otool | |
12929 | if test $build = $host ; then | |
12930 | OTOOL="$2" | |
12931 | else | |
12932 | OTOOL="${ncn_tool_prefix}$2" | |
12933 | fi | |
12934 | fi | |
12935 | ||
12936 | ||
12937 | ||
e7a82751 RM |
12938 | if test -n "$READELF"; then |
12939 | ac_cv_prog_READELF=$READELF | |
12940 | elif test -n "$ac_cv_prog_READELF"; then | |
12941 | READELF=$ac_cv_prog_READELF | |
12942 | fi | |
12943 | ||
12944 | if test -n "$ac_cv_prog_READELF"; then | |
12945 | for ncn_progname in readelf; do | |
12946 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12947 | set dummy ${ncn_progname}; ac_word=$2 | |
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12949 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12950 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12951 | $as_echo_n "(cached) " >&6 |
12952 | else | |
12953 | if test -n "$READELF"; then | |
12954 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12955 | else | |
12956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12957 | for as_dir in $PATH | |
12958 | do | |
12959 | IFS=$as_save_IFS | |
12960 | test -z "$as_dir" && as_dir=. | |
12961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12963 | ac_cv_prog_READELF="${ncn_progname}" |
12964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12965 | break 2 | |
12966 | fi | |
12967 | done | |
12968 | done | |
12969 | IFS=$as_save_IFS | |
12970 | ||
12971 | fi | |
12972 | fi | |
12973 | READELF=$ac_cv_prog_READELF | |
12974 | if test -n "$READELF"; then | |
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12976 | $as_echo "$READELF" >&6; } | |
12977 | else | |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12979 | $as_echo "no" >&6; } | |
12980 | fi | |
12981 | ||
12982 | ||
12983 | done | |
12984 | fi | |
12985 | ||
12986 | for ncn_progname in readelf; do | |
12987 | if test -n "$ncn_tool_prefix"; then | |
12988 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12989 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12991 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12992 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12993 | $as_echo_n "(cached) " >&6 |
12994 | else | |
12995 | if test -n "$READELF"; then | |
12996 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12997 | else | |
12998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12999 | for as_dir in $PATH | |
13000 | do | |
13001 | IFS=$as_save_IFS | |
13002 | test -z "$as_dir" && as_dir=. | |
13003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13005 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
13006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13007 | break 2 | |
13008 | fi | |
13009 | done | |
13010 | done | |
13011 | IFS=$as_save_IFS | |
13012 | ||
13013 | fi | |
13014 | fi | |
13015 | READELF=$ac_cv_prog_READELF | |
13016 | if test -n "$READELF"; then | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
13018 | $as_echo "$READELF" >&6; } | |
13019 | else | |
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13021 | $as_echo "no" >&6; } | |
13022 | fi | |
13023 | ||
13024 | ||
13025 | fi | |
13026 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
13027 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13028 | set dummy ${ncn_progname}; ac_word=$2 | |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13030 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13031 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
13032 | $as_echo_n "(cached) " >&6 |
13033 | else | |
13034 | if test -n "$READELF"; then | |
13035 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
13036 | else | |
13037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13038 | for as_dir in $PATH | |
13039 | do | |
13040 | IFS=$as_save_IFS | |
13041 | test -z "$as_dir" && as_dir=. | |
13042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
13044 | ac_cv_prog_READELF="${ncn_progname}" |
13045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13046 | break 2 | |
13047 | fi | |
13048 | done | |
13049 | done | |
13050 | IFS=$as_save_IFS | |
13051 | ||
13052 | fi | |
13053 | fi | |
13054 | READELF=$ac_cv_prog_READELF | |
13055 | if test -n "$READELF"; then | |
13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
13057 | $as_echo "$READELF" >&6; } | |
13058 | else | |
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13060 | $as_echo "no" >&6; } | |
13061 | fi | |
13062 | ||
13063 | ||
13064 | fi | |
13065 | test -n "$ac_cv_prog_READELF" && break | |
13066 | done | |
13067 | ||
13068 | if test -z "$ac_cv_prog_READELF" ; then | |
13069 | set dummy readelf | |
13070 | if test $build = $host ; then | |
13071 | READELF="$2" | |
13072 | else | |
13073 | READELF="${ncn_tool_prefix}$2" | |
13074 | fi | |
13075 | fi | |
13076 | ||
13077 | ||
13078 | ||
671aa708 NN |
13079 | |
13080 | ||
13081 | ||
5fee5ec3 | 13082 | |
1ed21e23 | 13083 | GDCFLAGS=${GDCFLAGS-${CFLAGS}} |
5fee5ec3 | 13084 | |
1ddd41fd | 13085 | |
126f707e L |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
13087 | $as_echo_n "checking for -plugin option... " >&6; } | |
13088 | ||
13089 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
13090 | plugin_option= | |
13091 | for plugin in $plugin_names; do | |
13092 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
13093 | if test x$plugin_so = x$plugin; then | |
13094 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
13095 | fi | |
13096 | if test x$plugin_so != x$plugin; then | |
13097 | plugin_option="--plugin $plugin_so" | |
13098 | break | |
13099 | fi | |
13100 | done | |
9c7797a8 L |
13101 | if test -n "$ac_tool_prefix"; then |
13102 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13103 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13105 | $as_echo_n "checking for $ac_word... " >&6; } | |
13106 | if ${ac_cv_prog_AR+:} false; then : | |
13107 | $as_echo_n "(cached) " >&6 | |
13108 | else | |
13109 | if test -n "$AR"; then | |
13110 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13111 | else | |
13112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13113 | for as_dir in $PATH | |
13114 | do | |
13115 | IFS=$as_save_IFS | |
13116 | test -z "$as_dir" && as_dir=. | |
13117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13119 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
13120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13121 | break 2 | |
13122 | fi | |
13123 | done | |
13124 | done | |
13125 | IFS=$as_save_IFS | |
13126 | ||
13127 | fi | |
13128 | fi | |
13129 | AR=$ac_cv_prog_AR | |
13130 | if test -n "$AR"; then | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13132 | $as_echo "$AR" >&6; } | |
13133 | else | |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13135 | $as_echo "no" >&6; } | |
13136 | fi | |
13137 | ||
13138 | ||
13139 | fi | |
13140 | if test -z "$ac_cv_prog_AR"; then | |
13141 | ac_ct_AR=$AR | |
13142 | # Extract the first word of "ar", so it can be a program name with args. | |
13143 | set dummy ar; ac_word=$2 | |
13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13145 | $as_echo_n "checking for $ac_word... " >&6; } | |
13146 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
13147 | $as_echo_n "(cached) " >&6 | |
13148 | else | |
13149 | if test -n "$ac_ct_AR"; then | |
13150 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13151 | else | |
13152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13153 | for as_dir in $PATH | |
13154 | do | |
13155 | IFS=$as_save_IFS | |
13156 | test -z "$as_dir" && as_dir=. | |
13157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13158 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13159 | ac_cv_prog_ac_ct_AR="ar" | |
13160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13161 | break 2 | |
13162 | fi | |
13163 | done | |
13164 | done | |
13165 | IFS=$as_save_IFS | |
13166 | ||
13167 | fi | |
13168 | fi | |
13169 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13170 | if test -n "$ac_ct_AR"; then | |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13172 | $as_echo "$ac_ct_AR" >&6; } | |
13173 | else | |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13175 | $as_echo "no" >&6; } | |
13176 | fi | |
13177 | ||
13178 | if test "x$ac_ct_AR" = x; then | |
13179 | AR="" | |
13180 | else | |
13181 | case $cross_compiling:$ac_tool_warned in | |
13182 | yes:) | |
13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13184 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13185 | ac_tool_warned=yes ;; | |
13186 | esac | |
13187 | AR=$ac_ct_AR | |
13188 | fi | |
13189 | else | |
13190 | AR="$ac_cv_prog_AR" | |
13191 | fi | |
13192 | ||
13193 | if test "${AR}" = "" ; then | |
13194 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13195 | fi | |
13196 | touch conftest.c | |
13197 | ${AR} $plugin_option rc conftest.a conftest.c | |
13198 | if test "$?" != 0; then | |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13200 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13201 | plugin_option= | |
13202 | fi | |
13203 | rm -f conftest.* | |
126f707e L |
13204 | if test -n "$plugin_option"; then |
13205 | PLUGIN_OPTION="$plugin_option" | |
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13207 | $as_echo "$plugin_option" >&6; } | |
13208 | else | |
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13210 | $as_echo "no" >&6; } | |
13211 | fi | |
13212 | ||
13213 | AR_PLUGIN_OPTION= | |
13214 | RANLIB_PLUGIN_OPTION= | |
13215 | if test -n "$PLUGIN_OPTION"; then | |
13216 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13217 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13218 | fi | |
13219 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13220 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13221 | fi | |
13222 | fi | |
13223 | ||
13224 | ||
13225 | ||
2abefe3d | 13226 | # Target tools. |
1c710c3c | 13227 | |
5213506e RW |
13228 | # Check whether --with-build-time-tools was given. |
13229 | if test "${with_build_time_tools+set}" = set; then : | |
13230 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
13231 | x/*) ;; |
13232 | *) | |
13233 | with_build_time_tools= | |
5213506e RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13235 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
13236 | ;; |
13237 | esac | |
ca9f4b81 | 13238 | else |
e8b05380 | 13239 | with_build_time_tools= |
5213506e RW |
13240 | fi |
13241 | ||
ca9f4b81 | 13242 | |
278a7a38 AO |
13243 | |
13244 | ||
13245 | if test -n "$CC_FOR_TARGET"; then | |
13246 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13247 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13248 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13249 | fi | |
13250 | ||
13251 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13252 | for ncn_progname in cc gcc; do | |
13253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
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_CC_FOR_TARGET+:} false; then : |
5213506e | 13258 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13259 | else |
13260 | if test -n "$CC_FOR_TARGET"; then | |
13261 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13262 | else | |
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_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 13271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13272 | break 2 |
13273 | fi | |
13274 | done | |
5213506e RW |
13275 | done |
13276 | IFS=$as_save_IFS | |
278a7a38 AO |
13277 | |
13278 | fi | |
13279 | fi | |
13280 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13281 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13283 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 13284 | else |
5213506e RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13286 | $as_echo "no" >&6; } | |
278a7a38 AO |
13287 | fi |
13288 | ||
5213506e | 13289 | |
278a7a38 AO |
13290 | done |
13291 | fi | |
13292 | ||
13293 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13294 | for ncn_progname in cc gcc; 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_CC_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; } | |
72a7ab82 | 13301 | break |
e8b05380 | 13302 | else |
5213506e RW |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13304 | $as_echo "no" >&6; } | |
72a7ab82 AP |
13305 | fi |
13306 | done | |
4de997d1 PB |
13307 | fi |
13308 | ||
e8b05380 PB |
13309 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13310 | for ncn_progname in cc gcc; 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. | |
2693c0b0 | 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_CC_FOR_TARGET+:} false; then : |
5213506e | 13317 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13318 | else |
13319 | if test -n "$CC_FOR_TARGET"; then | |
13320 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13321 | else | |
1c710c3c DJ |
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_CC_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 | |
4de997d1 PB |
13337 | fi |
13338 | fi | |
1c710c3c | 13339 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 13340 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13342 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13343 | else |
5213506e RW |
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13345 | $as_echo "no" >&6; } | |
4de997d1 PB |
13346 | fi |
13347 | ||
5213506e | 13348 | |
e8b05380 PB |
13349 | fi |
13350 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13351 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 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_CC_FOR_TARGET+:} false; then : |
5213506e | 13356 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13357 | else |
2693c0b0 PB |
13358 | if test -n "$CC_FOR_TARGET"; then |
13359 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 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_CC_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 | |
4de997d1 PB |
13376 | fi |
13377 | fi | |
1c710c3c | 13378 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 13379 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13381 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13382 | else |
5213506e RW |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13384 | $as_echo "no" >&6; } | |
4de997d1 | 13385 | fi |
1c710c3c | 13386 | |
5213506e | 13387 | |
e8b05380 PB |
13388 | fi |
13389 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13390 | done | |
13391 | fi | |
1c710c3c | 13392 | |
2693c0b0 PB |
13393 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13394 | set dummy cc gcc | |
13395 | if test $build = $target ; then | |
13396 | CC_FOR_TARGET="$2" | |
4de997d1 | 13397 | else |
2693c0b0 | 13398 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13399 | fi |
1c00b503 PB |
13400 | else |
13401 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
13402 | fi |
13403 | ||
278a7a38 AO |
13404 | |
13405 | ||
13406 | if test -n "$CXX_FOR_TARGET"; then | |
13407 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13408 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13409 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13410 | fi | |
13411 | ||
13412 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13413 | for ncn_progname in c++ g++ cxx gxx; 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 | |
5213506e RW |
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_CXX_FOR_TARGET+:} false; then : |
5213506e | 13419 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13420 | else |
13421 | if test -n "$CXX_FOR_TARGET"; then | |
13422 | ac_cv_prog_CXX_FOR_TARGET="$CXX_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=. | |
5213506e | 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 |
278a7a38 | 13431 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13433 | break 2 |
13434 | fi | |
13435 | done | |
5213506e RW |
13436 | done |
13437 | IFS=$as_save_IFS | |
278a7a38 AO |
13438 | |
13439 | fi | |
13440 | fi | |
13441 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13442 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13444 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13445 | else |
5213506e RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13447 | $as_echo "no" >&6; } | |
278a7a38 AO |
13448 | fi |
13449 | ||
5213506e | 13450 | |
278a7a38 AO |
13451 | done |
13452 | fi | |
13453 | ||
13454 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13455 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
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; } | |
d1f8db0c PB |
13458 | if test -x $with_build_time_tools/${ncn_progname}; then |
13459 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13461 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13462 | break |
13463 | else | |
5213506e RW |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13465 | $as_echo "no" >&6; } | |
e8b05380 PB |
13466 | fi |
13467 | done | |
13468 | fi | |
13469 | ||
13470 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13471 | for ncn_progname in c++ g++ cxx gxx; 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. | |
2693c0b0 | 13474 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
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_CXX_FOR_TARGET+:} false; then : |
5213506e | 13478 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13479 | else |
13480 | if test -n "$CXX_FOR_TARGET"; then | |
13481 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13482 | else | |
1c710c3c DJ |
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=. | |
5213506e | 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 |
1c710c3c | 13490 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13492 | break 2 |
13493 | fi | |
13494 | done | |
5213506e RW |
13495 | done |
13496 | IFS=$as_save_IFS | |
1c710c3c | 13497 | |
4de997d1 PB |
13498 | fi |
13499 | fi | |
1c710c3c | 13500 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13501 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13503 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13504 | else |
5213506e RW |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13506 | $as_echo "no" >&6; } | |
4de997d1 PB |
13507 | fi |
13508 | ||
5213506e | 13509 | |
e8b05380 PB |
13510 | fi |
13511 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13513 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
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_CXX_FOR_TARGET+:} false; then : |
5213506e | 13517 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13518 | else |
2693c0b0 PB |
13519 | if test -n "$CXX_FOR_TARGET"; then |
13520 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13521 | else |
1c710c3c DJ |
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=. | |
5213506e | 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 |
1c710c3c | 13529 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13531 | break 2 |
13532 | fi | |
13533 | done | |
5213506e RW |
13534 | done |
13535 | IFS=$as_save_IFS | |
1c710c3c | 13536 | |
4de997d1 PB |
13537 | fi |
13538 | fi | |
1c710c3c | 13539 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13540 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13542 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13543 | else |
5213506e RW |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13545 | $as_echo "no" >&6; } | |
4de997d1 | 13546 | fi |
1c710c3c | 13547 | |
5213506e | 13548 | |
e8b05380 PB |
13549 | fi |
13550 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13551 | done | |
13552 | fi | |
1c710c3c | 13553 | |
2693c0b0 PB |
13554 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13555 | set dummy c++ g++ cxx gxx | |
13556 | if test $build = $target ; then | |
13557 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13558 | else |
2693c0b0 | 13559 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13560 | fi |
1c00b503 PB |
13561 | else |
13562 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13563 | fi |
13564 | ||
278a7a38 AO |
13565 | |
13566 | ||
13567 | if test -n "$GCC_FOR_TARGET"; then | |
13568 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13569 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13570 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13571 | fi | |
13572 | ||
13573 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13574 | for ncn_progname in gcc; 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 | |
5213506e RW |
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_GCC_FOR_TARGET+:} false; then : |
5213506e | 13580 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13581 | else |
13582 | if test -n "$GCC_FOR_TARGET"; then | |
13583 | ac_cv_prog_GCC_FOR_TARGET="$GCC_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=. | |
5213506e | 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 |
278a7a38 | 13592 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13594 | break 2 |
13595 | fi | |
13596 | done | |
5213506e RW |
13597 | done |
13598 | IFS=$as_save_IFS | |
278a7a38 AO |
13599 | |
13600 | fi | |
13601 | fi | |
13602 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13603 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13605 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13606 | else |
5213506e RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13608 | $as_echo "no" >&6; } | |
278a7a38 AO |
13609 | fi |
13610 | ||
5213506e | 13611 | |
278a7a38 AO |
13612 | done |
13613 | fi | |
13614 | ||
13615 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13616 | for ncn_progname in gcc; do |
5213506e RW |
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; } | |
d1f8db0c PB |
13619 | if test -x $with_build_time_tools/${ncn_progname}; then |
13620 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13622 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13623 | break |
13624 | else | |
5213506e RW |
13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13626 | $as_echo "no" >&6; } | |
e8b05380 PB |
13627 | fi |
13628 | done | |
13629 | fi | |
13630 | ||
13631 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13632 | for ncn_progname in gcc; 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. | |
2693c0b0 | 13635 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
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_GCC_FOR_TARGET+:} false; then : |
5213506e | 13639 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13640 | else |
e8b05380 PB |
13641 | if test -n "$GCC_FOR_TARGET"; then |
13642 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13643 | else |
1c710c3c DJ |
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=. | |
5213506e | 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 |
1c710c3c | 13651 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13653 | break 2 |
13654 | fi | |
13655 | done | |
5213506e RW |
13656 | done |
13657 | IFS=$as_save_IFS | |
1c710c3c | 13658 | |
ca9f4b81 AO |
13659 | fi |
13660 | fi | |
1c710c3c | 13661 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13662 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13664 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13665 | else |
5213506e RW |
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13667 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13668 | fi |
13669 | ||
5213506e | 13670 | |
e8b05380 PB |
13671 | fi |
13672 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13674 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
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_GCC_FOR_TARGET+:} false; then : |
5213506e | 13678 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13679 | else |
e8b05380 PB |
13680 | if test -n "$GCC_FOR_TARGET"; then |
13681 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13682 | else |
1c710c3c DJ |
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=. | |
5213506e | 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 |
1c710c3c | 13690 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13692 | break 2 |
13693 | fi | |
13694 | done | |
5213506e RW |
13695 | done |
13696 | IFS=$as_save_IFS | |
1c710c3c | 13697 | |
ca9f4b81 AO |
13698 | fi |
13699 | fi | |
1c710c3c | 13700 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13701 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13703 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13704 | else |
5213506e RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13706 | $as_echo "no" >&6; } | |
ca9f4b81 | 13707 | fi |
1c710c3c | 13708 | |
5213506e | 13709 | |
e8b05380 PB |
13710 | fi |
13711 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13712 | done | |
13713 | fi | |
1c710c3c | 13714 | |
e8b05380 PB |
13715 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13716 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13717 | else |
13718 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13719 | fi |
13720 | ||
278a7a38 AO |
13721 | |
13722 | ||
278a7a38 AO |
13723 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13724 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13725 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13726 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13727 | fi |
13728 | ||
278a7a38 AO |
13729 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13730 | for ncn_progname in gfortran; do | |
13731 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13732 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13734 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13735 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13736 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13737 | else |
278a7a38 AO |
13738 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13739 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13740 | else |
1c710c3c DJ |
13741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13742 | for as_dir in $PATH | |
13743 | do | |
13744 | IFS=$as_save_IFS | |
13745 | test -z "$as_dir" && as_dir=. | |
5213506e | 13746 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13748 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13750 | break 2 |
13751 | fi | |
13752 | done | |
5213506e RW |
13753 | done |
13754 | IFS=$as_save_IFS | |
1c710c3c | 13755 | |
e8b05380 PB |
13756 | fi |
13757 | fi | |
278a7a38 AO |
13758 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13759 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13761 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13762 | else |
5213506e RW |
13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13764 | $as_echo "no" >&6; } | |
e8b05380 | 13765 | fi |
1c710c3c | 13766 | |
5213506e | 13767 | |
e8b05380 PB |
13768 | done |
13769 | fi | |
1c710c3c | 13770 | |
278a7a38 | 13771 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13772 | for ncn_progname in gfortran; do |
5213506e RW |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13774 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13775 | if test -x $with_build_time_tools/${ncn_progname}; then |
13776 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13778 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13779 | break |
13780 | else | |
5213506e RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13782 | $as_echo "no" >&6; } | |
e8b05380 PB |
13783 | fi |
13784 | done | |
13785 | fi | |
13786 | ||
13787 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13788 | for ncn_progname in gfortran; do | |
13789 | if test -n "$ncn_target_tool_prefix"; then | |
13790 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13791 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13793 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13794 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13795 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13796 | else |
13797 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13798 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13799 | else | |
13800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13801 | for as_dir in $PATH | |
13802 | do | |
13803 | IFS=$as_save_IFS | |
13804 | test -z "$as_dir" && as_dir=. | |
5213506e | 13805 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13807 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13809 | break 2 |
13810 | fi | |
13811 | done | |
5213506e RW |
13812 | done |
13813 | IFS=$as_save_IFS | |
1c710c3c | 13814 | |
e8b05380 PB |
13815 | fi |
13816 | fi | |
1c710c3c | 13817 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13818 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13820 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13821 | else |
5213506e RW |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13823 | $as_echo "no" >&6; } | |
e8b05380 PB |
13824 | fi |
13825 | ||
5213506e | 13826 | |
e8b05380 PB |
13827 | fi |
13828 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13829 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13830 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13832 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13833 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13834 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13835 | else |
13836 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13837 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13838 | else | |
1c710c3c DJ |
13839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13840 | for as_dir in $PATH | |
13841 | do | |
13842 | IFS=$as_save_IFS | |
13843 | test -z "$as_dir" && as_dir=. | |
5213506e | 13844 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13846 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13848 | break 2 |
13849 | fi | |
13850 | done | |
5213506e RW |
13851 | done |
13852 | IFS=$as_save_IFS | |
1c710c3c | 13853 | |
e8b05380 PB |
13854 | fi |
13855 | fi | |
1c710c3c | 13856 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13857 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13859 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13860 | else |
5213506e RW |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13862 | $as_echo "no" >&6; } | |
e8b05380 | 13863 | fi |
1c710c3c | 13864 | |
5213506e | 13865 | |
e8b05380 PB |
13866 | fi |
13867 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13868 | done | |
13869 | fi | |
1c710c3c | 13870 | |
e8b05380 PB |
13871 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13872 | set dummy gfortran | |
2693c0b0 | 13873 | if test $build = $target ; then |
e8b05380 | 13874 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13875 | else |
e8b05380 PB |
13876 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13877 | fi | |
1c00b503 PB |
13878 | else |
13879 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13880 | fi |
13881 | ||
13882 | ||
13883 | ||
632e2a07 ILT |
13884 | if test -n "$GOC_FOR_TARGET"; then |
13885 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13886 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13887 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13888 | fi | |
13889 | ||
13890 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13891 | for ncn_progname in gccgo; do | |
13892 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13893 | set dummy ${ncn_progname}; ac_word=$2 | |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13895 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13896 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13897 | $as_echo_n "(cached) " >&6 |
13898 | else | |
13899 | if test -n "$GOC_FOR_TARGET"; then | |
13900 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13901 | else | |
13902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13903 | for as_dir in $PATH | |
13904 | do | |
13905 | IFS=$as_save_IFS | |
13906 | test -z "$as_dir" && as_dir=. | |
13907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13909 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13911 | break 2 | |
13912 | fi | |
13913 | done | |
13914 | done | |
13915 | IFS=$as_save_IFS | |
13916 | ||
13917 | fi | |
13918 | fi | |
13919 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13920 | if test -n "$GOC_FOR_TARGET"; then | |
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13922 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13923 | else | |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13925 | $as_echo "no" >&6; } | |
13926 | fi | |
13927 | ||
13928 | ||
13929 | done | |
13930 | fi | |
13931 | ||
13932 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13933 | for ncn_progname in gccgo; do | |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13935 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13936 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13937 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13939 | $as_echo "yes" >&6; } | |
13940 | break | |
13941 | else | |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13943 | $as_echo "no" >&6; } | |
13944 | fi | |
13945 | done | |
13946 | fi | |
13947 | ||
13948 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13949 | for ncn_progname in gccgo; do | |
13950 | if test -n "$ncn_target_tool_prefix"; then | |
13951 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13952 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13954 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13955 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13956 | $as_echo_n "(cached) " >&6 |
13957 | else | |
13958 | if test -n "$GOC_FOR_TARGET"; then | |
13959 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13960 | else | |
13961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13962 | for as_dir in $PATH | |
13963 | do | |
13964 | IFS=$as_save_IFS | |
13965 | test -z "$as_dir" && as_dir=. | |
13966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13968 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13970 | break 2 | |
13971 | fi | |
13972 | done | |
13973 | done | |
13974 | IFS=$as_save_IFS | |
13975 | ||
13976 | fi | |
13977 | fi | |
13978 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13979 | if test -n "$GOC_FOR_TARGET"; then | |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13981 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13982 | else | |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13984 | $as_echo "no" >&6; } | |
13985 | fi | |
13986 | ||
13987 | ||
13988 | fi | |
13989 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13990 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13991 | set dummy ${ncn_progname}; ac_word=$2 | |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13993 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13994 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13995 | $as_echo_n "(cached) " >&6 |
13996 | else | |
13997 | if test -n "$GOC_FOR_TARGET"; then | |
13998 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13999 | else | |
14000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14001 | for as_dir in $PATH | |
14002 | do | |
14003 | IFS=$as_save_IFS | |
14004 | test -z "$as_dir" && as_dir=. | |
14005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
14007 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
14008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14009 | break 2 | |
14010 | fi | |
14011 | done | |
14012 | done | |
14013 | IFS=$as_save_IFS | |
14014 | ||
14015 | fi | |
14016 | fi | |
14017 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
14018 | if test -n "$GOC_FOR_TARGET"; then | |
14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
14020 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
14021 | else | |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14023 | $as_echo "no" >&6; } | |
14024 | fi | |
14025 | ||
14026 | ||
14027 | fi | |
14028 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
14029 | done | |
14030 | fi | |
14031 | ||
14032 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
14033 | set dummy gccgo | |
14034 | if test $build = $target ; then | |
14035 | GOC_FOR_TARGET="$2" | |
14036 | else | |
14037 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14038 | fi | |
14039 | else | |
14040 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
14041 | fi | |
14042 | ||
14043 | ||
14044 | ||
b4c522fa IB |
14045 | if test -n "$GDC_FOR_TARGET"; then |
14046 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
14047 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14048 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14049 | fi | |
14050 | ||
14051 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14052 | for ncn_progname in gdc; do | |
14053 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14054 | set dummy ${ncn_progname}; ac_word=$2 | |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14056 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14057 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14058 | $as_echo_n "(cached) " >&6 |
14059 | else | |
14060 | if test -n "$GDC_FOR_TARGET"; then | |
14061 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14062 | else | |
14063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14064 | for as_dir in $PATH | |
14065 | do | |
14066 | IFS=$as_save_IFS | |
14067 | test -z "$as_dir" && as_dir=. | |
14068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14070 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
14071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14072 | break 2 | |
14073 | fi | |
14074 | done | |
14075 | done | |
14076 | IFS=$as_save_IFS | |
14077 | ||
14078 | fi | |
14079 | fi | |
14080 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14081 | if test -n "$GDC_FOR_TARGET"; then | |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14083 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14084 | else | |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14086 | $as_echo "no" >&6; } | |
14087 | fi | |
14088 | ||
14089 | ||
14090 | done | |
14091 | fi | |
14092 | ||
14093 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14094 | for ncn_progname in gdc; do | |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14096 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14097 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14098 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14100 | $as_echo "yes" >&6; } | |
14101 | break | |
14102 | else | |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14104 | $as_echo "no" >&6; } | |
14105 | fi | |
14106 | done | |
14107 | fi | |
14108 | ||
14109 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14110 | for ncn_progname in gdc; do | |
14111 | if test -n "$ncn_target_tool_prefix"; then | |
14112 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14113 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14115 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14116 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14117 | $as_echo_n "(cached) " >&6 |
14118 | else | |
14119 | if test -n "$GDC_FOR_TARGET"; then | |
14120 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14121 | else | |
14122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14123 | for as_dir in $PATH | |
14124 | do | |
14125 | IFS=$as_save_IFS | |
14126 | test -z "$as_dir" && as_dir=. | |
14127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14129 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
14130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14131 | break 2 | |
14132 | fi | |
14133 | done | |
14134 | done | |
14135 | IFS=$as_save_IFS | |
14136 | ||
14137 | fi | |
14138 | fi | |
14139 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14140 | if test -n "$GDC_FOR_TARGET"; then | |
14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14142 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14143 | else | |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14145 | $as_echo "no" >&6; } | |
14146 | fi | |
14147 | ||
14148 | ||
14149 | fi | |
14150 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
14151 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14152 | set dummy ${ncn_progname}; ac_word=$2 | |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14154 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14155 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14156 | $as_echo_n "(cached) " >&6 |
14157 | else | |
14158 | if test -n "$GDC_FOR_TARGET"; then | |
14159 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14160 | else | |
14161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14162 | for as_dir in $PATH | |
14163 | do | |
14164 | IFS=$as_save_IFS | |
14165 | test -z "$as_dir" && as_dir=. | |
14166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14168 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
14169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14170 | break 2 | |
14171 | fi | |
14172 | done | |
14173 | done | |
14174 | IFS=$as_save_IFS | |
14175 | ||
14176 | fi | |
14177 | fi | |
14178 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14179 | if test -n "$GDC_FOR_TARGET"; then | |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14181 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14182 | else | |
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14184 | $as_echo "no" >&6; } | |
14185 | fi | |
14186 | ||
14187 | ||
14188 | fi | |
14189 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
14190 | done | |
14191 | fi | |
14192 | ||
14193 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
14194 | set dummy gdc | |
14195 | if test $build = $target ; then | |
14196 | GDC_FOR_TARGET="$2" | |
14197 | else | |
14198 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14199 | fi | |
14200 | else | |
14201 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
14202 | fi | |
14203 | ||
14204 | ||
14205 | ||
1eee94d3 GM |
14206 | if test -n "$GM2_FOR_TARGET"; then |
14207 | ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET | |
14208 | elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14209 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14210 | fi | |
14211 | ||
14212 | if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14213 | for ncn_progname in gm2; do | |
14214 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14215 | set dummy ${ncn_progname}; ac_word=$2 | |
14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14217 | $as_echo_n "checking for $ac_word... " >&6; } | |
14218 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14219 | $as_echo_n "(cached) " >&6 | |
14220 | else | |
14221 | if test -n "$GM2_FOR_TARGET"; then | |
14222 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14223 | else | |
14224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14225 | for as_dir in $PATH | |
14226 | do | |
14227 | IFS=$as_save_IFS | |
14228 | test -z "$as_dir" && as_dir=. | |
14229 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14231 | ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}" | |
14232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14233 | break 2 | |
14234 | fi | |
14235 | done | |
14236 | done | |
14237 | IFS=$as_save_IFS | |
14238 | ||
14239 | fi | |
14240 | fi | |
14241 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14242 | if test -n "$GM2_FOR_TARGET"; then | |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14244 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14245 | else | |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14247 | $as_echo "no" >&6; } | |
14248 | fi | |
14249 | ||
14250 | ||
14251 | done | |
14252 | fi | |
14253 | ||
14254 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14255 | for ncn_progname in gm2; do | |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14257 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14258 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14259 | ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14261 | $as_echo "yes" >&6; } | |
14262 | break | |
14263 | else | |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14265 | $as_echo "no" >&6; } | |
14266 | fi | |
14267 | done | |
14268 | fi | |
14269 | ||
14270 | if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14271 | for ncn_progname in gm2; do | |
14272 | if test -n "$ncn_target_tool_prefix"; then | |
14273 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14274 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14276 | $as_echo_n "checking for $ac_word... " >&6; } | |
14277 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14278 | $as_echo_n "(cached) " >&6 | |
14279 | else | |
14280 | if test -n "$GM2_FOR_TARGET"; then | |
14281 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14282 | else | |
14283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14284 | for as_dir in $PATH | |
14285 | do | |
14286 | IFS=$as_save_IFS | |
14287 | test -z "$as_dir" && as_dir=. | |
14288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14290 | ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14292 | break 2 | |
14293 | fi | |
14294 | done | |
14295 | done | |
14296 | IFS=$as_save_IFS | |
14297 | ||
14298 | fi | |
14299 | fi | |
14300 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14301 | if test -n "$GM2_FOR_TARGET"; then | |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14303 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14304 | else | |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14306 | $as_echo "no" >&6; } | |
14307 | fi | |
14308 | ||
14309 | ||
14310 | fi | |
14311 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then | |
14312 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14313 | set dummy ${ncn_progname}; ac_word=$2 | |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14315 | $as_echo_n "checking for $ac_word... " >&6; } | |
14316 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14317 | $as_echo_n "(cached) " >&6 | |
14318 | else | |
14319 | if test -n "$GM2_FOR_TARGET"; then | |
14320 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14321 | else | |
14322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14323 | for as_dir in $PATH | |
14324 | do | |
14325 | IFS=$as_save_IFS | |
14326 | test -z "$as_dir" && as_dir=. | |
14327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14328 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14329 | ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}" | |
14330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14331 | break 2 | |
14332 | fi | |
14333 | done | |
14334 | done | |
14335 | IFS=$as_save_IFS | |
14336 | ||
14337 | fi | |
14338 | fi | |
14339 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14340 | if test -n "$GM2_FOR_TARGET"; then | |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14342 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14343 | else | |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14345 | $as_echo "no" >&6; } | |
14346 | fi | |
14347 | ||
14348 | ||
14349 | fi | |
14350 | test -n "$ac_cv_prog_GM2_FOR_TARGET" && break | |
14351 | done | |
14352 | fi | |
14353 | ||
14354 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then | |
14355 | set dummy gm2 | |
14356 | if test $build = $target ; then | |
14357 | GM2_FOR_TARGET="$2" | |
14358 | else | |
14359 | GM2_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14360 | fi | |
14361 | else | |
14362 | GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET" | |
14363 | fi | |
14364 | ||
14365 | ||
14366 | ||
e8b05380 PB |
14367 | cat > conftest.c << \EOF |
14368 | #ifdef __GNUC__ | |
14369 | gcc_yay; | |
14370 | #endif | |
14371 | EOF | |
14372 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14373 | have_gcc_for_target=yes | |
14374 | else | |
14375 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
14376 | have_gcc_for_target=no | |
14377 | fi | |
14378 | rm conftest.c | |
14379 | ||
14380 | ||
14381 | ||
14382 | ||
14383 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
14384 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14386 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14387 | if test -x $with_build_time_tools/ar; then |
14388 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14389 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14391 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 14392 | else |
5213506e RW |
14393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14394 | $as_echo "no" >&6; } | |
d1f8db0c | 14395 | fi |
e8b05380 PB |
14396 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14397 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
14398 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14399 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
14400 | fi |
14401 | fi | |
3e19841a | 14402 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14403 | # Extract the first word of "ar", so it can be a program name with args. |
14404 | set dummy ar; ac_word=$2 | |
5213506e RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14406 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14407 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 14408 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14409 | else |
1c710c3c DJ |
14410 | case $AR_FOR_TARGET in |
14411 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14412 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14413 | ;; | |
e8b05380 | 14414 | *) |
1c710c3c DJ |
14415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14416 | for as_dir in $gcc_cv_tool_dirs | |
14417 | do | |
14418 | IFS=$as_save_IFS | |
14419 | test -z "$as_dir" && as_dir=. | |
5213506e | 14420 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14422 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14424 | break 2 |
14425 | fi | |
14426 | done | |
5213506e RW |
14427 | done |
14428 | IFS=$as_save_IFS | |
1c710c3c | 14429 | |
e8b05380 PB |
14430 | ;; |
14431 | esac | |
14432 | fi | |
1c710c3c | 14433 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 14434 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14436 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14437 | else |
5213506e RW |
14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14439 | $as_echo "no" >&6; } | |
4de997d1 PB |
14440 | fi |
14441 | ||
5213506e | 14442 | |
e8b05380 PB |
14443 | fi |
14444 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
14445 | |
14446 | ||
14447 | if test -n "$AR_FOR_TARGET"; then | |
14448 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14449 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14450 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14451 | fi | |
14452 | ||
14453 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14454 | for ncn_progname in ar; do | |
14455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14456 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14458 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14459 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14460 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14461 | else |
14462 | if test -n "$AR_FOR_TARGET"; then | |
14463 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14464 | else | |
14465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14466 | for as_dir in $PATH | |
14467 | do | |
14468 | IFS=$as_save_IFS | |
14469 | test -z "$as_dir" && as_dir=. | |
5213506e | 14470 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14472 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14474 | break 2 |
14475 | fi | |
14476 | done | |
5213506e RW |
14477 | done |
14478 | IFS=$as_save_IFS | |
278a7a38 AO |
14479 | |
14480 | fi | |
14481 | fi | |
14482 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14483 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
14484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14485 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 14486 | else |
5213506e RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14488 | $as_echo "no" >&6; } | |
278a7a38 AO |
14489 | fi |
14490 | ||
5213506e | 14491 | |
278a7a38 AO |
14492 | done |
14493 | fi | |
14494 | ||
14495 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14496 | for ncn_progname in ar; do |
5213506e RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14498 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14499 | if test -x $with_build_time_tools/${ncn_progname}; then |
14500 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14502 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14503 | break |
14504 | else | |
5213506e RW |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14506 | $as_echo "no" >&6; } | |
e8b05380 PB |
14507 | fi |
14508 | done | |
14509 | fi | |
14510 | ||
14511 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
14512 | for ncn_progname in ar; do | |
14513 | if test -n "$ncn_target_tool_prefix"; then | |
14514 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14515 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14517 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14518 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14519 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14520 | else |
e8b05380 PB |
14521 | if test -n "$AR_FOR_TARGET"; then |
14522 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14523 | else |
1c710c3c DJ |
14524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14525 | for as_dir in $PATH | |
14526 | do | |
14527 | IFS=$as_save_IFS | |
14528 | test -z "$as_dir" && as_dir=. | |
5213506e | 14529 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14531 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14533 | break 2 |
14534 | fi | |
14535 | done | |
5213506e RW |
14536 | done |
14537 | IFS=$as_save_IFS | |
1c710c3c | 14538 | |
4de997d1 PB |
14539 | fi |
14540 | fi | |
1c710c3c | 14541 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14542 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14544 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 14545 | else |
5213506e RW |
14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14547 | $as_echo "no" >&6; } | |
4de997d1 PB |
14548 | fi |
14549 | ||
5213506e | 14550 | |
e8b05380 PB |
14551 | fi |
14552 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14553 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14554 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14556 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14557 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14558 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14559 | else |
14560 | if test -n "$AR_FOR_TARGET"; then | |
14561 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14562 | else | |
1c710c3c DJ |
14563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14564 | for as_dir in $PATH | |
14565 | do | |
14566 | IFS=$as_save_IFS | |
14567 | test -z "$as_dir" && as_dir=. | |
5213506e | 14568 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14570 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14572 | break 2 |
14573 | fi | |
14574 | done | |
5213506e RW |
14575 | done |
14576 | IFS=$as_save_IFS | |
1c710c3c | 14577 | |
e8b05380 PB |
14578 | fi |
14579 | fi | |
1c710c3c | 14580 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14581 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14583 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14584 | else |
5213506e RW |
14585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14586 | $as_echo "no" >&6; } | |
e8b05380 | 14587 | fi |
1c710c3c | 14588 | |
5213506e | 14589 | |
e8b05380 PB |
14590 | fi |
14591 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14592 | done | |
14593 | fi | |
1c710c3c | 14594 | |
e8b05380 PB |
14595 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14596 | set dummy ar | |
14597 | if test $build = $target ; then | |
14598 | AR_FOR_TARGET="$2" | |
14599 | else | |
14600 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14601 | fi |
1c00b503 PB |
14602 | else |
14603 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14604 | fi |
14605 | ||
d1f8db0c PB |
14606 | else |
14607 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14608 | fi |
14609 | ||
14610 | ||
14611 | ||
14612 | ||
14613 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14614 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14616 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14617 | if test -x $with_build_time_tools/as; then |
14618 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14619 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14621 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14622 | else |
5213506e RW |
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14624 | $as_echo "no" >&6; } | |
d1f8db0c | 14625 | fi |
e8b05380 PB |
14626 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14627 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14628 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14629 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14630 | fi |
14631 | fi | |
3e19841a | 14632 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14633 | # Extract the first word of "as", so it can be a program name with args. |
14634 | set dummy as; ac_word=$2 | |
5213506e RW |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14636 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14637 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14638 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14639 | else |
1c710c3c DJ |
14640 | case $AS_FOR_TARGET in |
14641 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14642 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14643 | ;; | |
e8b05380 | 14644 | *) |
1c710c3c DJ |
14645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14646 | for as_dir in $gcc_cv_tool_dirs | |
14647 | do | |
14648 | IFS=$as_save_IFS | |
14649 | test -z "$as_dir" && as_dir=. | |
5213506e | 14650 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14652 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14654 | break 2 |
14655 | fi | |
14656 | done | |
5213506e RW |
14657 | done |
14658 | IFS=$as_save_IFS | |
1c710c3c | 14659 | |
e8b05380 PB |
14660 | ;; |
14661 | esac | |
14662 | fi | |
1c710c3c | 14663 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14664 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14666 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14667 | else |
5213506e RW |
14668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14669 | $as_echo "no" >&6; } | |
e8b05380 PB |
14670 | fi |
14671 | ||
5213506e | 14672 | |
e8b05380 PB |
14673 | fi |
14674 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14675 | |
14676 | ||
14677 | if test -n "$AS_FOR_TARGET"; then | |
14678 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14679 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14680 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14681 | fi | |
14682 | ||
14683 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14684 | for ncn_progname in as; do | |
14685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14686 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14688 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14689 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14690 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14691 | else |
14692 | if test -n "$AS_FOR_TARGET"; then | |
14693 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14694 | else | |
14695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14696 | for as_dir in $PATH | |
14697 | do | |
14698 | IFS=$as_save_IFS | |
14699 | test -z "$as_dir" && as_dir=. | |
5213506e | 14700 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14702 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14704 | break 2 |
14705 | fi | |
14706 | done | |
5213506e RW |
14707 | done |
14708 | IFS=$as_save_IFS | |
278a7a38 AO |
14709 | |
14710 | fi | |
14711 | fi | |
14712 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14713 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14715 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14716 | else |
5213506e RW |
14717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14718 | $as_echo "no" >&6; } | |
278a7a38 AO |
14719 | fi |
14720 | ||
5213506e | 14721 | |
278a7a38 AO |
14722 | done |
14723 | fi | |
14724 | ||
14725 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14726 | for ncn_progname in as; do |
5213506e RW |
14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14728 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14729 | if test -x $with_build_time_tools/${ncn_progname}; then |
14730 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14732 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14733 | break |
14734 | else | |
5213506e RW |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14736 | $as_echo "no" >&6; } | |
e8b05380 PB |
14737 | fi |
14738 | done | |
14739 | fi | |
14740 | ||
14741 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14742 | for ncn_progname in as; do | |
14743 | if test -n "$ncn_target_tool_prefix"; then | |
14744 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14745 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14747 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14748 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14749 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14750 | else |
14751 | if test -n "$AS_FOR_TARGET"; then | |
14752 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14753 | else | |
1c710c3c DJ |
14754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14755 | for as_dir in $PATH | |
14756 | do | |
14757 | IFS=$as_save_IFS | |
14758 | test -z "$as_dir" && as_dir=. | |
5213506e | 14759 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14761 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14763 | break 2 |
14764 | fi | |
14765 | done | |
5213506e RW |
14766 | done |
14767 | IFS=$as_save_IFS | |
1c710c3c | 14768 | |
e8b05380 PB |
14769 | fi |
14770 | fi | |
1c710c3c | 14771 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14772 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14774 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14775 | else |
5213506e RW |
14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14777 | $as_echo "no" >&6; } | |
e8b05380 PB |
14778 | fi |
14779 | ||
5213506e | 14780 | |
e8b05380 PB |
14781 | fi |
14782 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14784 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14786 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14787 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14788 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14789 | else |
e8b05380 PB |
14790 | if test -n "$AS_FOR_TARGET"; then |
14791 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14792 | else |
1c710c3c DJ |
14793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14794 | for as_dir in $PATH | |
14795 | do | |
14796 | IFS=$as_save_IFS | |
14797 | test -z "$as_dir" && as_dir=. | |
5213506e | 14798 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14800 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14802 | break 2 |
14803 | fi | |
14804 | done | |
5213506e RW |
14805 | done |
14806 | IFS=$as_save_IFS | |
1c710c3c | 14807 | |
4de997d1 PB |
14808 | fi |
14809 | fi | |
1c710c3c | 14810 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14811 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14813 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14814 | else |
5213506e RW |
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14816 | $as_echo "no" >&6; } | |
4de997d1 | 14817 | fi |
1c710c3c | 14818 | |
5213506e | 14819 | |
e8b05380 PB |
14820 | fi |
14821 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14822 | done | |
14823 | fi | |
1c710c3c | 14824 | |
e8b05380 PB |
14825 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14826 | set dummy as | |
14827 | if test $build = $target ; then | |
14828 | AS_FOR_TARGET="$2" | |
14829 | else | |
14830 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14831 | fi |
1c00b503 PB |
14832 | else |
14833 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14834 | fi |
2693c0b0 | 14835 | |
d1f8db0c PB |
14836 | else |
14837 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14838 | fi |
14839 | ||
e8b05380 PB |
14840 | |
14841 | ||
14842 | ||
14843 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14844 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14846 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14847 | if test -x $with_build_time_tools/dlltool; then |
14848 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14849 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14851 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14852 | else |
5213506e RW |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14854 | $as_echo "no" >&6; } | |
d1f8db0c | 14855 | fi |
e8b05380 PB |
14856 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14857 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14858 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14859 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14860 | fi |
14861 | fi | |
3e19841a | 14862 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14863 | # Extract the first word of "dlltool", so it can be a program name with args. |
14864 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14866 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14867 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14868 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14869 | else |
1c710c3c DJ |
14870 | case $DLLTOOL_FOR_TARGET in |
14871 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14872 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14873 | ;; | |
e8b05380 | 14874 | *) |
1c710c3c DJ |
14875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14876 | for as_dir in $gcc_cv_tool_dirs | |
14877 | do | |
14878 | IFS=$as_save_IFS | |
14879 | test -z "$as_dir" && as_dir=. | |
5213506e | 14880 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14882 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14884 | break 2 |
14885 | fi | |
14886 | done | |
5213506e RW |
14887 | done |
14888 | IFS=$as_save_IFS | |
1c710c3c | 14889 | |
e8b05380 PB |
14890 | ;; |
14891 | esac | |
4de997d1 | 14892 | fi |
1c710c3c | 14893 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14894 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14896 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14897 | else |
5213506e RW |
14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14899 | $as_echo "no" >&6; } | |
4de997d1 PB |
14900 | fi |
14901 | ||
5213506e | 14902 | |
e8b05380 PB |
14903 | fi |
14904 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14905 | |
14906 | ||
14907 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14908 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14909 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14910 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14911 | fi | |
14912 | ||
14913 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14914 | for ncn_progname in dlltool; do | |
14915 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14916 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14918 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14919 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14920 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14921 | else |
14922 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14923 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14924 | else | |
14925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14926 | for as_dir in $PATH | |
14927 | do | |
14928 | IFS=$as_save_IFS | |
14929 | test -z "$as_dir" && as_dir=. | |
5213506e | 14930 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14932 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14934 | break 2 |
14935 | fi | |
14936 | done | |
5213506e RW |
14937 | done |
14938 | IFS=$as_save_IFS | |
278a7a38 AO |
14939 | |
14940 | fi | |
14941 | fi | |
14942 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14943 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14945 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14946 | else |
5213506e RW |
14947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14948 | $as_echo "no" >&6; } | |
278a7a38 AO |
14949 | fi |
14950 | ||
5213506e | 14951 | |
278a7a38 AO |
14952 | done |
14953 | fi | |
14954 | ||
14955 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14956 | for ncn_progname in dlltool; do |
5213506e RW |
14957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14958 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14959 | if test -x $with_build_time_tools/${ncn_progname}; then |
14960 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14962 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14963 | break |
14964 | else | |
5213506e RW |
14965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14966 | $as_echo "no" >&6; } | |
e8b05380 PB |
14967 | fi |
14968 | done | |
14969 | fi | |
14970 | ||
14971 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14972 | for ncn_progname in dlltool; do | |
14973 | if test -n "$ncn_target_tool_prefix"; then | |
14974 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14975 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14977 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14978 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14979 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14980 | else |
e8b05380 PB |
14981 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14982 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14983 | else |
1c710c3c DJ |
14984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14985 | for as_dir in $PATH | |
14986 | do | |
14987 | IFS=$as_save_IFS | |
14988 | test -z "$as_dir" && as_dir=. | |
5213506e | 14989 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14990 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14991 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14993 | break 2 |
14994 | fi | |
14995 | done | |
5213506e RW |
14996 | done |
14997 | IFS=$as_save_IFS | |
1c710c3c | 14998 | |
4de997d1 PB |
14999 | fi |
15000 | fi | |
1c710c3c | 15001 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 15002 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
15003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
15004 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 15005 | else |
5213506e RW |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15007 | $as_echo "no" >&6; } | |
4de997d1 | 15008 | fi |
4de997d1 | 15009 | |
5213506e | 15010 | |
e8b05380 PB |
15011 | fi |
15012 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
15013 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15014 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15016 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15017 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 15018 | $as_echo_n "(cached) " >&6 |
4de997d1 | 15019 | else |
e8b05380 PB |
15020 | if test -n "$DLLTOOL_FOR_TARGET"; then |
15021 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 15022 | else |
1c710c3c DJ |
15023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15024 | for as_dir in $PATH | |
15025 | do | |
15026 | IFS=$as_save_IFS | |
15027 | test -z "$as_dir" && as_dir=. | |
5213506e | 15028 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15030 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 15031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15032 | break 2 |
15033 | fi | |
15034 | done | |
5213506e RW |
15035 | done |
15036 | IFS=$as_save_IFS | |
1c710c3c | 15037 | |
4de997d1 PB |
15038 | fi |
15039 | fi | |
1c710c3c | 15040 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 15041 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
15042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
15043 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 15044 | else |
5213506e RW |
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15046 | $as_echo "no" >&6; } | |
4de997d1 | 15047 | fi |
1c710c3c | 15048 | |
5213506e | 15049 | |
e8b05380 PB |
15050 | fi |
15051 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
15052 | done | |
15053 | fi | |
1c710c3c | 15054 | |
e8b05380 PB |
15055 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
15056 | set dummy dlltool | |
15057 | if test $build = $target ; then | |
15058 | DLLTOOL_FOR_TARGET="$2" | |
15059 | else | |
15060 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15061 | fi | |
1c00b503 PB |
15062 | else |
15063 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
15064 | fi |
15065 | ||
d1f8db0c PB |
15066 | else |
15067 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
15068 | fi |
15069 | ||
4de997d1 | 15070 | |
e8b05380 PB |
15071 | |
15072 | ||
3b5e8ee4 IS |
15073 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
15074 | if test -n "$with_build_time_tools"; then | |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
15076 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
15077 | if test -x $with_build_time_tools/dsymutil; then | |
15078 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
15079 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
15081 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
15082 | else | |
15083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15084 | $as_echo "no" >&6; } | |
15085 | fi | |
15086 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15087 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
15088 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
15089 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15090 | fi | |
15091 | fi | |
15092 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15093 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
15094 | set dummy dsymutil; ac_word=$2 | |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15096 | $as_echo_n "checking for $ac_word... " >&6; } | |
15097 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
15098 | $as_echo_n "(cached) " >&6 | |
15099 | else | |
15100 | case $DSYMUTIL_FOR_TARGET in | |
15101 | [\\/]* | ?:[\\/]*) | |
15102 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
15103 | ;; | |
15104 | *) | |
15105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15106 | for as_dir in $gcc_cv_tool_dirs | |
15107 | do | |
15108 | IFS=$as_save_IFS | |
15109 | test -z "$as_dir" && as_dir=. | |
15110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15112 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15114 | break 2 | |
15115 | fi | |
15116 | done | |
15117 | done | |
15118 | IFS=$as_save_IFS | |
15119 | ||
15120 | ;; | |
15121 | esac | |
15122 | fi | |
15123 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
15124 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15126 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15127 | else | |
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15129 | $as_echo "no" >&6; } | |
15130 | fi | |
15131 | ||
15132 | ||
15133 | fi | |
15134 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
15135 | ||
15136 | ||
15137 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15138 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15139 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15140 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15141 | fi | |
15142 | ||
15143 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15144 | for ncn_progname in dsymutil; do | |
15145 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15146 | set dummy ${ncn_progname}; ac_word=$2 | |
15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15148 | $as_echo_n "checking for $ac_word... " >&6; } | |
15149 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15150 | $as_echo_n "(cached) " >&6 | |
15151 | else | |
15152 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15153 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15154 | else | |
15155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15156 | for as_dir in $PATH | |
15157 | do | |
15158 | IFS=$as_save_IFS | |
15159 | test -z "$as_dir" && as_dir=. | |
15160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15162 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15164 | break 2 | |
15165 | fi | |
15166 | done | |
15167 | done | |
15168 | IFS=$as_save_IFS | |
15169 | ||
15170 | fi | |
15171 | fi | |
15172 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15173 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15175 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15176 | else | |
15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15178 | $as_echo "no" >&6; } | |
15179 | fi | |
15180 | ||
15181 | ||
15182 | done | |
15183 | fi | |
15184 | ||
15185 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15186 | for ncn_progname in dsymutil; do | |
15187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15188 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15189 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15190 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15192 | $as_echo "yes" >&6; } | |
15193 | break | |
15194 | else | |
15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15196 | $as_echo "no" >&6; } | |
15197 | fi | |
15198 | done | |
15199 | fi | |
15200 | ||
15201 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15202 | for ncn_progname in dsymutil; do | |
15203 | if test -n "$ncn_target_tool_prefix"; then | |
15204 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15205 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15207 | $as_echo_n "checking for $ac_word... " >&6; } | |
15208 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15209 | $as_echo_n "(cached) " >&6 | |
15210 | else | |
15211 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15212 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15213 | else | |
15214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15215 | for as_dir in $PATH | |
15216 | do | |
15217 | IFS=$as_save_IFS | |
15218 | test -z "$as_dir" && as_dir=. | |
15219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15221 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
15222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15223 | break 2 | |
15224 | fi | |
15225 | done | |
15226 | done | |
15227 | IFS=$as_save_IFS | |
15228 | ||
15229 | fi | |
15230 | fi | |
15231 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15232 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15234 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15235 | else | |
15236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15237 | $as_echo "no" >&6; } | |
15238 | fi | |
15239 | ||
15240 | ||
15241 | fi | |
15242 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
15243 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15244 | set dummy ${ncn_progname}; ac_word=$2 | |
15245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15246 | $as_echo_n "checking for $ac_word... " >&6; } | |
15247 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15248 | $as_echo_n "(cached) " >&6 | |
15249 | else | |
15250 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15251 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15252 | else | |
15253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15254 | for as_dir in $PATH | |
15255 | do | |
15256 | IFS=$as_save_IFS | |
15257 | test -z "$as_dir" && as_dir=. | |
15258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15260 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15262 | break 2 | |
15263 | fi | |
15264 | done | |
15265 | done | |
15266 | IFS=$as_save_IFS | |
15267 | ||
15268 | fi | |
15269 | fi | |
15270 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15271 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15273 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15274 | else | |
15275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15276 | $as_echo "no" >&6; } | |
15277 | fi | |
15278 | ||
15279 | ||
15280 | fi | |
15281 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
15282 | done | |
15283 | fi | |
15284 | ||
15285 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
15286 | set dummy dsymutil | |
15287 | if test $build = $target ; then | |
15288 | DSYMUTIL_FOR_TARGET="$2" | |
15289 | else | |
15290 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15291 | fi | |
15292 | else | |
15293 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
15294 | fi | |
15295 | ||
15296 | else | |
15297 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
15298 | fi | |
15299 | ||
15300 | ||
15301 | ||
15302 | ||
e8b05380 PB |
15303 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
15304 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
15306 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15307 | if test -x $with_build_time_tools/ld; then |
15308 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
15309 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
15310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
15311 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 15312 | else |
5213506e RW |
15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15314 | $as_echo "no" >&6; } | |
d1f8db0c | 15315 | fi |
e8b05380 PB |
15316 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15317 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
15318 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15319 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 15320 | fi |
e8b05380 | 15321 | fi |
3e19841a | 15322 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15323 | # Extract the first word of "ld", so it can be a program name with args. |
15324 | set dummy ld; ac_word=$2 | |
5213506e RW |
15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15326 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15327 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 15328 | $as_echo_n "(cached) " >&6 |
4de997d1 | 15329 | else |
1c710c3c DJ |
15330 | case $LD_FOR_TARGET in |
15331 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15332 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15333 | ;; | |
e8b05380 | 15334 | *) |
1c710c3c DJ |
15335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15336 | for as_dir in $gcc_cv_tool_dirs | |
15337 | do | |
15338 | IFS=$as_save_IFS | |
15339 | test -z "$as_dir" && as_dir=. | |
5213506e | 15340 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15342 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15344 | break 2 |
15345 | fi | |
15346 | done | |
5213506e RW |
15347 | done |
15348 | IFS=$as_save_IFS | |
1c710c3c | 15349 | |
e8b05380 PB |
15350 | ;; |
15351 | esac | |
4de997d1 | 15352 | fi |
1c710c3c | 15353 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 15354 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15356 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 15357 | else |
5213506e RW |
15358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15359 | $as_echo "no" >&6; } | |
4de997d1 | 15360 | fi |
2693c0b0 | 15361 | |
5213506e | 15362 | |
e8b05380 PB |
15363 | fi |
15364 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
15365 | |
15366 | ||
15367 | if test -n "$LD_FOR_TARGET"; then | |
15368 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15369 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15370 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15371 | fi | |
15372 | ||
15373 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15374 | for ncn_progname in ld; do | |
15375 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15376 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15378 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15379 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15380 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15381 | else |
15382 | if test -n "$LD_FOR_TARGET"; then | |
15383 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15384 | else | |
15385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15386 | for as_dir in $PATH | |
15387 | do | |
15388 | IFS=$as_save_IFS | |
15389 | test -z "$as_dir" && as_dir=. | |
5213506e | 15390 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15392 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 15393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15394 | break 2 |
15395 | fi | |
15396 | done | |
5213506e RW |
15397 | done |
15398 | IFS=$as_save_IFS | |
278a7a38 AO |
15399 | |
15400 | fi | |
15401 | fi | |
15402 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15403 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15405 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 15406 | else |
5213506e RW |
15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15408 | $as_echo "no" >&6; } | |
278a7a38 AO |
15409 | fi |
15410 | ||
5213506e | 15411 | |
278a7a38 AO |
15412 | done |
15413 | fi | |
15414 | ||
15415 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15416 | for ncn_progname in ld; do |
5213506e RW |
15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15418 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15419 | if test -x $with_build_time_tools/${ncn_progname}; then |
15420 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15422 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15423 | break |
15424 | else | |
5213506e RW |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15426 | $as_echo "no" >&6; } | |
e8b05380 PB |
15427 | fi |
15428 | done | |
ca9f4b81 AO |
15429 | fi |
15430 | ||
e8b05380 PB |
15431 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
15432 | for ncn_progname in ld; do | |
15433 | if test -n "$ncn_target_tool_prefix"; then | |
15434 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15435 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15437 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15438 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15439 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15440 | else |
4de997d1 PB |
15441 | if test -n "$LD_FOR_TARGET"; then |
15442 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15443 | else |
1c710c3c DJ |
15444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15445 | for as_dir in $PATH | |
15446 | do | |
15447 | IFS=$as_save_IFS | |
15448 | test -z "$as_dir" && as_dir=. | |
5213506e | 15449 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15451 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15453 | break 2 |
15454 | fi | |
15455 | done | |
5213506e RW |
15456 | done |
15457 | IFS=$as_save_IFS | |
1c710c3c | 15458 | |
ca9f4b81 AO |
15459 | fi |
15460 | fi | |
1c710c3c | 15461 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 15462 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15464 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 15465 | else |
5213506e RW |
15466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15467 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15468 | fi |
15469 | ||
5213506e | 15470 | |
e8b05380 PB |
15471 | fi |
15472 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15473 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15474 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15476 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15477 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15478 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15479 | else |
2693c0b0 PB |
15480 | if test -n "$LD_FOR_TARGET"; then |
15481 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15482 | else |
1c710c3c DJ |
15483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15484 | for as_dir in $PATH | |
15485 | do | |
15486 | IFS=$as_save_IFS | |
15487 | test -z "$as_dir" && as_dir=. | |
5213506e | 15488 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15490 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 15491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15492 | break 2 |
15493 | fi | |
15494 | done | |
5213506e RW |
15495 | done |
15496 | IFS=$as_save_IFS | |
1c710c3c | 15497 | |
ca9f4b81 AO |
15498 | fi |
15499 | fi | |
1c710c3c | 15500 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 15501 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15503 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 15504 | else |
5213506e RW |
15505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15506 | $as_echo "no" >&6; } | |
ca9f4b81 | 15507 | fi |
1c710c3c | 15508 | |
5213506e | 15509 | |
e8b05380 PB |
15510 | fi |
15511 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15512 | done | |
15513 | fi | |
1c710c3c | 15514 | |
2693c0b0 PB |
15515 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15516 | set dummy ld | |
15517 | if test $build = $target ; then | |
15518 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 15519 | else |
2693c0b0 | 15520 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15521 | fi |
1c00b503 PB |
15522 | else |
15523 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
15524 | fi |
15525 | ||
d1f8db0c PB |
15526 | else |
15527 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
15528 | fi |
15529 | ||
15530 | ||
15531 | ||
15532 | ||
15533 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15534 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15536 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15537 | if test -x $with_build_time_tools/lipo; then |
15538 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15539 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
15540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15541 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 15542 | else |
5213506e RW |
15543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15544 | $as_echo "no" >&6; } | |
d1f8db0c | 15545 | fi |
e8b05380 PB |
15546 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15547 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
15548 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15549 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
15550 | fi |
15551 | fi | |
278a7a38 AO |
15552 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15553 | # Extract the first word of "lipo", so it can be a program name with args. | |
15554 | set dummy lipo; ac_word=$2 | |
5213506e RW |
15555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15556 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15557 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15558 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15559 | else |
15560 | case $LIPO_FOR_TARGET in | |
15561 | [\\/]* | ?:[\\/]*) | |
15562 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15563 | ;; | |
15564 | *) | |
15565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15566 | for as_dir in $gcc_cv_tool_dirs | |
15567 | do | |
15568 | IFS=$as_save_IFS | |
15569 | test -z "$as_dir" && as_dir=. | |
5213506e | 15570 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15572 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15574 | break 2 |
15575 | fi | |
15576 | done | |
5213506e RW |
15577 | done |
15578 | IFS=$as_save_IFS | |
278a7a38 AO |
15579 | |
15580 | ;; | |
15581 | esac | |
15582 | fi | |
15583 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 15584 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15586 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 15587 | else |
5213506e RW |
15588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15589 | $as_echo "no" >&6; } | |
278a7a38 AO |
15590 | fi |
15591 | ||
5213506e | 15592 | |
278a7a38 AO |
15593 | fi |
15594 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15595 | ||
15596 | ||
15597 | if test -n "$LIPO_FOR_TARGET"; then | |
15598 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15599 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15600 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15601 | fi | |
15602 | ||
15603 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15604 | for ncn_progname in lipo; do | |
15605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15606 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15608 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15609 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15610 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15611 | else |
278a7a38 AO |
15612 | if test -n "$LIPO_FOR_TARGET"; then |
15613 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15614 | else | |
15615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15616 | for as_dir in $PATH | |
1c710c3c DJ |
15617 | do |
15618 | IFS=$as_save_IFS | |
15619 | test -z "$as_dir" && as_dir=. | |
5213506e | 15620 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15622 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15624 | break 2 |
15625 | fi | |
15626 | done | |
5213506e RW |
15627 | done |
15628 | IFS=$as_save_IFS | |
1c710c3c | 15629 | |
e8b05380 | 15630 | fi |
278a7a38 AO |
15631 | fi |
15632 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15633 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15635 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15636 | else |
5213506e RW |
15637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15638 | $as_echo "no" >&6; } | |
e8b05380 PB |
15639 | fi |
15640 | ||
5213506e | 15641 | |
278a7a38 | 15642 | done |
e8b05380 | 15643 | fi |
278a7a38 AO |
15644 | |
15645 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15646 | for ncn_progname in lipo; do |
5213506e RW |
15647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15648 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15649 | if test -x $with_build_time_tools/${ncn_progname}; then |
15650 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15652 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15653 | break |
15654 | else | |
5213506e RW |
15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15656 | $as_echo "no" >&6; } | |
e8b05380 PB |
15657 | fi |
15658 | done | |
15659 | fi | |
15660 | ||
15661 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15662 | for ncn_progname in lipo; do | |
15663 | if test -n "$ncn_target_tool_prefix"; then | |
15664 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15665 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15667 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15668 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15669 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15670 | else |
15671 | if test -n "$LIPO_FOR_TARGET"; then | |
15672 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15673 | else | |
1c710c3c DJ |
15674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15675 | for as_dir in $PATH | |
15676 | do | |
15677 | IFS=$as_save_IFS | |
15678 | test -z "$as_dir" && as_dir=. | |
5213506e | 15679 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15681 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15683 | break 2 |
15684 | fi | |
15685 | done | |
5213506e RW |
15686 | done |
15687 | IFS=$as_save_IFS | |
1c710c3c | 15688 | |
040b1c5a GK |
15689 | fi |
15690 | fi | |
1c710c3c | 15691 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15692 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15694 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15695 | else |
5213506e RW |
15696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15697 | $as_echo "no" >&6; } | |
040b1c5a GK |
15698 | fi |
15699 | ||
5213506e | 15700 | |
e8b05380 PB |
15701 | fi |
15702 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15704 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15706 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15707 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15708 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15709 | else |
15710 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15711 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15712 | else | |
1c710c3c DJ |
15713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15714 | for as_dir in $PATH | |
15715 | do | |
15716 | IFS=$as_save_IFS | |
15717 | test -z "$as_dir" && as_dir=. | |
5213506e | 15718 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15720 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15722 | break 2 |
15723 | fi | |
15724 | done | |
5213506e RW |
15725 | done |
15726 | IFS=$as_save_IFS | |
1c710c3c | 15727 | |
040b1c5a GK |
15728 | fi |
15729 | fi | |
1c710c3c | 15730 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15731 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15733 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15734 | else |
5213506e RW |
15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15736 | $as_echo "no" >&6; } | |
040b1c5a | 15737 | fi |
1c710c3c | 15738 | |
5213506e | 15739 | |
e8b05380 PB |
15740 | fi |
15741 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15742 | done | |
15743 | fi | |
1c710c3c | 15744 | |
040b1c5a GK |
15745 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15746 | set dummy lipo | |
15747 | if test $build = $target ; then | |
15748 | LIPO_FOR_TARGET="$2" | |
15749 | else | |
15750 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15751 | fi | |
1c00b503 PB |
15752 | else |
15753 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15754 | fi |
15755 | ||
d1f8db0c PB |
15756 | else |
15757 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15758 | fi |
15759 | ||
15760 | ||
15761 | ||
15762 | ||
15763 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15764 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15766 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15767 | if test -x $with_build_time_tools/nm; then |
15768 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15769 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15771 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15772 | else |
5213506e RW |
15773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15774 | $as_echo "no" >&6; } | |
d1f8db0c | 15775 | fi |
e8b05380 PB |
15776 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15777 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15778 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15779 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15780 | fi |
15781 | fi | |
3e19841a | 15782 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15783 | # Extract the first word of "nm", so it can be a program name with args. |
15784 | set dummy nm; ac_word=$2 | |
5213506e RW |
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15786 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15787 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15788 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15789 | else |
1c710c3c DJ |
15790 | case $NM_FOR_TARGET in |
15791 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15792 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15793 | ;; | |
e8b05380 | 15794 | *) |
1c710c3c DJ |
15795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15796 | for as_dir in $gcc_cv_tool_dirs | |
15797 | do | |
15798 | IFS=$as_save_IFS | |
15799 | test -z "$as_dir" && as_dir=. | |
5213506e | 15800 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15802 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15804 | break 2 |
15805 | fi | |
15806 | done | |
5213506e RW |
15807 | done |
15808 | IFS=$as_save_IFS | |
1c710c3c | 15809 | |
e8b05380 PB |
15810 | ;; |
15811 | esac | |
15812 | fi | |
1c710c3c | 15813 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15814 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15816 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15817 | else |
5213506e RW |
15818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15819 | $as_echo "no" >&6; } | |
e8b05380 PB |
15820 | fi |
15821 | ||
5213506e | 15822 | |
e8b05380 PB |
15823 | fi |
15824 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15825 | |
15826 | ||
15827 | if test -n "$NM_FOR_TARGET"; then | |
15828 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15829 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15830 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15831 | fi | |
15832 | ||
15833 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15834 | for ncn_progname in nm; do | |
15835 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15836 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15838 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15839 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15840 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15841 | else |
15842 | if test -n "$NM_FOR_TARGET"; then | |
15843 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15844 | else | |
15845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15846 | for as_dir in $PATH | |
15847 | do | |
15848 | IFS=$as_save_IFS | |
15849 | test -z "$as_dir" && as_dir=. | |
5213506e | 15850 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15852 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15854 | break 2 |
15855 | fi | |
15856 | done | |
5213506e RW |
15857 | done |
15858 | IFS=$as_save_IFS | |
278a7a38 AO |
15859 | |
15860 | fi | |
15861 | fi | |
15862 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15863 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15865 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15866 | else |
5213506e RW |
15867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15868 | $as_echo "no" >&6; } | |
278a7a38 AO |
15869 | fi |
15870 | ||
5213506e | 15871 | |
278a7a38 AO |
15872 | done |
15873 | fi | |
15874 | ||
15875 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15876 | for ncn_progname in nm; do |
5213506e RW |
15877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15878 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15879 | if test -x $with_build_time_tools/${ncn_progname}; then |
15880 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15882 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15883 | break |
15884 | else | |
5213506e RW |
15885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15886 | $as_echo "no" >&6; } | |
e8b05380 PB |
15887 | fi |
15888 | done | |
15889 | fi | |
15890 | ||
15891 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15892 | for ncn_progname in nm; do | |
15893 | if test -n "$ncn_target_tool_prefix"; then | |
15894 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15895 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15897 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15898 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15899 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15900 | else |
4de997d1 PB |
15901 | if test -n "$NM_FOR_TARGET"; then |
15902 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15903 | else |
1c710c3c DJ |
15904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15905 | for as_dir in $PATH | |
15906 | do | |
15907 | IFS=$as_save_IFS | |
15908 | test -z "$as_dir" && as_dir=. | |
5213506e | 15909 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15911 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15913 | break 2 |
15914 | fi | |
15915 | done | |
5213506e RW |
15916 | done |
15917 | IFS=$as_save_IFS | |
1c710c3c | 15918 | |
ca9f4b81 AO |
15919 | fi |
15920 | fi | |
1c710c3c | 15921 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15922 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15924 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15925 | else |
5213506e RW |
15926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15927 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15928 | fi |
15929 | ||
5213506e | 15930 | |
e8b05380 PB |
15931 | fi |
15932 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15933 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15934 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15936 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15937 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15938 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15939 | else |
2693c0b0 PB |
15940 | if test -n "$NM_FOR_TARGET"; then |
15941 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15942 | else |
1c710c3c DJ |
15943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15944 | for as_dir in $PATH | |
15945 | do | |
15946 | IFS=$as_save_IFS | |
15947 | test -z "$as_dir" && as_dir=. | |
5213506e | 15948 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15950 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15952 | break 2 |
15953 | fi | |
15954 | done | |
5213506e RW |
15955 | done |
15956 | IFS=$as_save_IFS | |
1c710c3c | 15957 | |
ca9f4b81 AO |
15958 | fi |
15959 | fi | |
1c710c3c | 15960 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15961 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15963 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15964 | else |
5213506e RW |
15965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15966 | $as_echo "no" >&6; } | |
ca9f4b81 | 15967 | fi |
1c710c3c | 15968 | |
5213506e | 15969 | |
e8b05380 PB |
15970 | fi |
15971 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15972 | done | |
15973 | fi | |
1c710c3c | 15974 | |
2693c0b0 PB |
15975 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15976 | set dummy nm | |
15977 | if test $build = $target ; then | |
15978 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15979 | else |
2693c0b0 | 15980 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15981 | fi |
1c00b503 PB |
15982 | else |
15983 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15984 | fi |
15985 | ||
d1f8db0c PB |
15986 | else |
15987 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15988 | fi |
15989 | ||
15990 | ||
15991 | ||
15992 | ||
9bccfdf5 AP |
15993 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15994 | if test -n "$with_build_time_tools"; then | |
15995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15996 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15997 | if test -x $with_build_time_tools/objcopy; then | |
15998 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15999 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
16001 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
16002 | else | |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16004 | $as_echo "no" >&6; } | |
16005 | fi | |
16006 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16007 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
16008 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
16009 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
16010 | fi | |
16011 | fi | |
16012 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16013 | # Extract the first word of "objcopy", so it can be a program name with args. | |
16014 | set dummy objcopy; ac_word=$2 | |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16016 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16017 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16018 | $as_echo_n "(cached) " >&6 |
16019 | else | |
16020 | case $OBJCOPY_FOR_TARGET in | |
16021 | [\\/]* | ?:[\\/]*) | |
16022 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
16023 | ;; | |
16024 | *) | |
16025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16026 | for as_dir in $gcc_cv_tool_dirs | |
16027 | do | |
16028 | IFS=$as_save_IFS | |
16029 | test -z "$as_dir" && as_dir=. | |
16030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16032 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16034 | break 2 | |
16035 | fi | |
16036 | done | |
16037 | done | |
16038 | IFS=$as_save_IFS | |
16039 | ||
16040 | ;; | |
16041 | esac | |
16042 | fi | |
16043 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
16044 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16046 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16047 | else | |
16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16049 | $as_echo "no" >&6; } | |
16050 | fi | |
16051 | ||
16052 | ||
16053 | fi | |
16054 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
16055 | ||
16056 | ||
16057 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16058 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
16059 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16060 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16061 | fi | |
16062 | ||
16063 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16064 | for ncn_progname in objcopy; do | |
16065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16066 | set dummy ${ncn_progname}; ac_word=$2 | |
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16068 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16069 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16070 | $as_echo_n "(cached) " >&6 |
16071 | else | |
16072 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16073 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16074 | else | |
16075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16076 | for as_dir in $PATH | |
16077 | do | |
16078 | IFS=$as_save_IFS | |
16079 | test -z "$as_dir" && as_dir=. | |
16080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16082 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
16083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16084 | break 2 | |
16085 | fi | |
16086 | done | |
16087 | done | |
16088 | IFS=$as_save_IFS | |
16089 | ||
16090 | fi | |
16091 | fi | |
16092 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16093 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16095 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16096 | else | |
16097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16098 | $as_echo "no" >&6; } | |
16099 | fi | |
16100 | ||
16101 | ||
16102 | done | |
16103 | fi | |
16104 | ||
16105 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16106 | for ncn_progname in objcopy; do | |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16108 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16109 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16110 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16112 | $as_echo "yes" >&6; } | |
16113 | break | |
16114 | else | |
16115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16116 | $as_echo "no" >&6; } | |
16117 | fi | |
16118 | done | |
16119 | fi | |
16120 | ||
16121 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16122 | for ncn_progname in objcopy; do | |
16123 | if test -n "$ncn_target_tool_prefix"; then | |
16124 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16125 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16127 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16128 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16129 | $as_echo_n "(cached) " >&6 |
16130 | else | |
16131 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16132 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16133 | else | |
16134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16135 | for as_dir in $PATH | |
16136 | do | |
16137 | IFS=$as_save_IFS | |
16138 | test -z "$as_dir" && as_dir=. | |
16139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16141 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16143 | break 2 | |
16144 | fi | |
16145 | done | |
16146 | done | |
16147 | IFS=$as_save_IFS | |
16148 | ||
16149 | fi | |
16150 | fi | |
16151 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16152 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16154 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16155 | else | |
16156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16157 | $as_echo "no" >&6; } | |
16158 | fi | |
16159 | ||
16160 | ||
16161 | fi | |
16162 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
16163 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16164 | set dummy ${ncn_progname}; ac_word=$2 | |
16165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16166 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16167 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16168 | $as_echo_n "(cached) " >&6 |
16169 | else | |
16170 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16171 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16172 | else | |
16173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16174 | for as_dir in $PATH | |
16175 | do | |
16176 | IFS=$as_save_IFS | |
16177 | test -z "$as_dir" && as_dir=. | |
16178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16180 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
16181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16182 | break 2 | |
16183 | fi | |
16184 | done | |
16185 | done | |
16186 | IFS=$as_save_IFS | |
16187 | ||
16188 | fi | |
16189 | fi | |
16190 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16191 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16193 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16194 | else | |
16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16196 | $as_echo "no" >&6; } | |
16197 | fi | |
16198 | ||
16199 | ||
16200 | fi | |
16201 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
16202 | done | |
16203 | fi | |
16204 | ||
16205 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
16206 | set dummy objcopy | |
16207 | if test $build = $target ; then | |
16208 | OBJCOPY_FOR_TARGET="$2" | |
16209 | else | |
16210 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16211 | fi | |
16212 | else | |
16213 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
16214 | fi | |
16215 | ||
16216 | else | |
16217 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
16218 | fi | |
16219 | ||
16220 | ||
16221 | ||
16222 | ||
e8b05380 PB |
16223 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
16224 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
16226 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16227 | if test -x $with_build_time_tools/objdump; then |
16228 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
16229 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
16230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
16231 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 16232 | else |
5213506e RW |
16233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16234 | $as_echo "no" >&6; } | |
d1f8db0c | 16235 | fi |
e8b05380 PB |
16236 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16237 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
16238 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
16239 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
16240 | fi |
16241 | fi | |
3e19841a | 16242 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16243 | # Extract the first word of "objdump", so it can be a program name with args. |
16244 | set dummy objdump; ac_word=$2 | |
5213506e RW |
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16246 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16247 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16248 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16249 | else |
1c710c3c DJ |
16250 | case $OBJDUMP_FOR_TARGET in |
16251 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16252 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
16253 | ;; | |
e8b05380 | 16254 | *) |
1c710c3c DJ |
16255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16256 | for as_dir in $gcc_cv_tool_dirs | |
16257 | do | |
16258 | IFS=$as_save_IFS | |
16259 | test -z "$as_dir" && as_dir=. | |
5213506e | 16260 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16262 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16264 | break 2 |
16265 | fi | |
16266 | done | |
5213506e RW |
16267 | done |
16268 | IFS=$as_save_IFS | |
1c710c3c | 16269 | |
e8b05380 PB |
16270 | ;; |
16271 | esac | |
16272 | fi | |
1c710c3c | 16273 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 16274 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16276 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 16277 | else |
5213506e RW |
16278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16279 | $as_echo "no" >&6; } | |
e8b05380 PB |
16280 | fi |
16281 | ||
5213506e | 16282 | |
e8b05380 PB |
16283 | fi |
16284 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
16285 | |
16286 | ||
16287 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16288 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
16289 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16290 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16291 | fi | |
16292 | ||
16293 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16294 | for ncn_progname in objdump; do | |
16295 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16296 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16298 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16299 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16300 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16301 | else |
16302 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16303 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16304 | else | |
16305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16306 | for as_dir in $PATH | |
16307 | do | |
16308 | IFS=$as_save_IFS | |
16309 | test -z "$as_dir" && as_dir=. | |
5213506e | 16310 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16312 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 16313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16314 | break 2 |
16315 | fi | |
16316 | done | |
5213506e RW |
16317 | done |
16318 | IFS=$as_save_IFS | |
278a7a38 AO |
16319 | |
16320 | fi | |
16321 | fi | |
16322 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16323 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
16324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16325 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 16326 | else |
5213506e RW |
16327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16328 | $as_echo "no" >&6; } | |
278a7a38 AO |
16329 | fi |
16330 | ||
5213506e | 16331 | |
278a7a38 AO |
16332 | done |
16333 | fi | |
16334 | ||
16335 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16336 | for ncn_progname in objdump; do |
5213506e RW |
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16338 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16339 | if test -x $with_build_time_tools/${ncn_progname}; then |
16340 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16342 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16343 | break |
16344 | else | |
5213506e RW |
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16346 | $as_echo "no" >&6; } | |
e8b05380 PB |
16347 | fi |
16348 | done | |
16349 | fi | |
16350 | ||
16351 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16352 | for ncn_progname in objdump; do | |
16353 | if test -n "$ncn_target_tool_prefix"; then | |
16354 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16355 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16357 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16358 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16359 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
16360 | else |
16361 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16362 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16363 | else | |
1c710c3c DJ |
16364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16365 | for as_dir in $PATH | |
16366 | do | |
16367 | IFS=$as_save_IFS | |
16368 | test -z "$as_dir" && as_dir=. | |
5213506e | 16369 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16371 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16373 | break 2 |
16374 | fi | |
16375 | done | |
5213506e RW |
16376 | done |
16377 | IFS=$as_save_IFS | |
1c710c3c | 16378 | |
d739199a DJ |
16379 | fi |
16380 | fi | |
1c710c3c | 16381 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 16382 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16384 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 16385 | else |
5213506e RW |
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16387 | $as_echo "no" >&6; } | |
d739199a DJ |
16388 | fi |
16389 | ||
5213506e | 16390 | |
e8b05380 PB |
16391 | fi |
16392 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16393 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 16394 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16396 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16397 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16398 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
16399 | else |
16400 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16401 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16402 | else | |
1c710c3c DJ |
16403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16404 | for as_dir in $PATH | |
16405 | do | |
16406 | IFS=$as_save_IFS | |
16407 | test -z "$as_dir" && as_dir=. | |
5213506e | 16408 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16410 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 16411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16412 | break 2 |
16413 | fi | |
16414 | done | |
5213506e RW |
16415 | done |
16416 | IFS=$as_save_IFS | |
1c710c3c | 16417 | |
d739199a DJ |
16418 | fi |
16419 | fi | |
1c710c3c | 16420 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 16421 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16423 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 16424 | else |
5213506e RW |
16425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16426 | $as_echo "no" >&6; } | |
d739199a | 16427 | fi |
1c710c3c | 16428 | |
5213506e | 16429 | |
e8b05380 PB |
16430 | fi |
16431 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16432 | done | |
16433 | fi | |
1c710c3c | 16434 | |
d739199a DJ |
16435 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16436 | set dummy objdump | |
16437 | if test $build = $target ; then | |
16438 | OBJDUMP_FOR_TARGET="$2" | |
16439 | else | |
16440 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16441 | fi | |
1c00b503 PB |
16442 | else |
16443 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
16444 | fi |
16445 | ||
d1f8db0c PB |
16446 | else |
16447 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
16448 | fi |
16449 | ||
16450 | ||
16451 | ||
16452 | ||
e4a9a572 IS |
16453 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16454 | if test -n "$with_build_time_tools"; then | |
16455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16456 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16457 | if test -x $with_build_time_tools/otool; then | |
16458 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16459 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16461 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16462 | else | |
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16464 | $as_echo "no" >&6; } | |
16465 | fi | |
16466 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16467 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16468 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16469 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16470 | fi | |
16471 | fi | |
16472 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16473 | # Extract the first word of "otool", so it can be a program name with args. | |
16474 | set dummy otool; ac_word=$2 | |
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16476 | $as_echo_n "checking for $ac_word... " >&6; } | |
16477 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16478 | $as_echo_n "(cached) " >&6 | |
16479 | else | |
16480 | case $OTOOL_FOR_TARGET in | |
16481 | [\\/]* | ?:[\\/]*) | |
16482 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16483 | ;; | |
16484 | *) | |
16485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16486 | for as_dir in $gcc_cv_tool_dirs | |
16487 | do | |
16488 | IFS=$as_save_IFS | |
16489 | test -z "$as_dir" && as_dir=. | |
16490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16492 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16494 | break 2 | |
16495 | fi | |
16496 | done | |
16497 | done | |
16498 | IFS=$as_save_IFS | |
16499 | ||
16500 | ;; | |
16501 | esac | |
16502 | fi | |
16503 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16504 | if test -n "$OTOOL_FOR_TARGET"; then | |
16505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16506 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16507 | else | |
16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16509 | $as_echo "no" >&6; } | |
16510 | fi | |
16511 | ||
16512 | ||
16513 | fi | |
16514 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16515 | ||
16516 | ||
16517 | if test -n "$OTOOL_FOR_TARGET"; then | |
16518 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16519 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16520 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16521 | fi | |
16522 | ||
16523 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16524 | for ncn_progname in otool; do | |
16525 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16526 | set dummy ${ncn_progname}; ac_word=$2 | |
16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16528 | $as_echo_n "checking for $ac_word... " >&6; } | |
16529 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16530 | $as_echo_n "(cached) " >&6 | |
16531 | else | |
16532 | if test -n "$OTOOL_FOR_TARGET"; then | |
16533 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16534 | else | |
16535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16536 | for as_dir in $PATH | |
16537 | do | |
16538 | IFS=$as_save_IFS | |
16539 | test -z "$as_dir" && as_dir=. | |
16540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16542 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16544 | break 2 | |
16545 | fi | |
16546 | done | |
16547 | done | |
16548 | IFS=$as_save_IFS | |
16549 | ||
16550 | fi | |
16551 | fi | |
16552 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16553 | if test -n "$OTOOL_FOR_TARGET"; then | |
16554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16555 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16556 | else | |
16557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16558 | $as_echo "no" >&6; } | |
16559 | fi | |
16560 | ||
16561 | ||
16562 | done | |
16563 | fi | |
16564 | ||
16565 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16566 | for ncn_progname in otool; do | |
16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16568 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16569 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16570 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16572 | $as_echo "yes" >&6; } | |
16573 | break | |
16574 | else | |
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16576 | $as_echo "no" >&6; } | |
16577 | fi | |
16578 | done | |
16579 | fi | |
16580 | ||
16581 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16582 | for ncn_progname in otool; do | |
16583 | if test -n "$ncn_target_tool_prefix"; then | |
16584 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16585 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16587 | $as_echo_n "checking for $ac_word... " >&6; } | |
16588 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16589 | $as_echo_n "(cached) " >&6 | |
16590 | else | |
16591 | if test -n "$OTOOL_FOR_TARGET"; then | |
16592 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16593 | else | |
16594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16595 | for as_dir in $PATH | |
16596 | do | |
16597 | IFS=$as_save_IFS | |
16598 | test -z "$as_dir" && as_dir=. | |
16599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16601 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16603 | break 2 | |
16604 | fi | |
16605 | done | |
16606 | done | |
16607 | IFS=$as_save_IFS | |
16608 | ||
16609 | fi | |
16610 | fi | |
16611 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16612 | if test -n "$OTOOL_FOR_TARGET"; then | |
16613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16614 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16615 | else | |
16616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16617 | $as_echo "no" >&6; } | |
16618 | fi | |
16619 | ||
16620 | ||
16621 | fi | |
16622 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16623 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16624 | set dummy ${ncn_progname}; ac_word=$2 | |
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16626 | $as_echo_n "checking for $ac_word... " >&6; } | |
16627 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16628 | $as_echo_n "(cached) " >&6 | |
16629 | else | |
16630 | if test -n "$OTOOL_FOR_TARGET"; then | |
16631 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16632 | else | |
16633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16634 | for as_dir in $PATH | |
16635 | do | |
16636 | IFS=$as_save_IFS | |
16637 | test -z "$as_dir" && as_dir=. | |
16638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16640 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16642 | break 2 | |
16643 | fi | |
16644 | done | |
16645 | done | |
16646 | IFS=$as_save_IFS | |
16647 | ||
16648 | fi | |
16649 | fi | |
16650 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16651 | if test -n "$OTOOL_FOR_TARGET"; then | |
16652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16653 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16654 | else | |
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16656 | $as_echo "no" >&6; } | |
16657 | fi | |
16658 | ||
16659 | ||
16660 | fi | |
16661 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16662 | done | |
16663 | fi | |
16664 | ||
16665 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16666 | set dummy otool | |
16667 | if test $build = $target ; then | |
16668 | OTOOL_FOR_TARGET="$2" | |
16669 | else | |
16670 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16671 | fi | |
16672 | else | |
16673 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16674 | fi | |
16675 | ||
16676 | else | |
16677 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16678 | fi | |
16679 | ||
16680 | ||
16681 | ||
16682 | ||
e8b05380 PB |
16683 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16684 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16686 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16687 | if test -x $with_build_time_tools/ranlib; then |
16688 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16689 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16691 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16692 | else |
5213506e RW |
16693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16694 | $as_echo "no" >&6; } | |
d1f8db0c | 16695 | fi |
e8b05380 PB |
16696 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16697 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16698 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16699 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16700 | fi |
16701 | fi | |
3e19841a | 16702 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16703 | # Extract the first word of "ranlib", so it can be a program name with args. |
16704 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16706 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16707 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16708 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16709 | else |
1c710c3c DJ |
16710 | case $RANLIB_FOR_TARGET in |
16711 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16712 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16713 | ;; | |
e8b05380 | 16714 | *) |
1c710c3c DJ |
16715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16716 | for as_dir in $gcc_cv_tool_dirs | |
16717 | do | |
16718 | IFS=$as_save_IFS | |
16719 | test -z "$as_dir" && as_dir=. | |
5213506e | 16720 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16722 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16724 | break 2 |
16725 | fi | |
16726 | done | |
5213506e RW |
16727 | done |
16728 | IFS=$as_save_IFS | |
1c710c3c | 16729 | |
e8b05380 PB |
16730 | ;; |
16731 | esac | |
16732 | fi | |
1c710c3c | 16733 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16734 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16736 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16737 | else |
5213506e RW |
16738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16739 | $as_echo "no" >&6; } | |
e8b05380 PB |
16740 | fi |
16741 | ||
5213506e | 16742 | |
e8b05380 PB |
16743 | fi |
16744 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16745 | |
16746 | ||
16747 | if test -n "$RANLIB_FOR_TARGET"; then | |
16748 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16749 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16750 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16751 | fi | |
16752 | ||
16753 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16754 | for ncn_progname in ranlib; do | |
16755 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16756 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16758 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16759 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16760 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16761 | else |
16762 | if test -n "$RANLIB_FOR_TARGET"; then | |
16763 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16764 | else | |
16765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16766 | for as_dir in $PATH | |
16767 | do | |
16768 | IFS=$as_save_IFS | |
16769 | test -z "$as_dir" && as_dir=. | |
5213506e | 16770 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16772 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16774 | break 2 |
16775 | fi | |
16776 | done | |
5213506e RW |
16777 | done |
16778 | IFS=$as_save_IFS | |
278a7a38 AO |
16779 | |
16780 | fi | |
16781 | fi | |
16782 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16783 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16785 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16786 | else |
5213506e RW |
16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16788 | $as_echo "no" >&6; } | |
278a7a38 AO |
16789 | fi |
16790 | ||
5213506e | 16791 | |
278a7a38 AO |
16792 | done |
16793 | fi | |
16794 | ||
16795 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16796 | for ncn_progname in ranlib; do |
5213506e RW |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16798 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16799 | if test -x $with_build_time_tools/${ncn_progname}; then |
16800 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16802 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16803 | break |
16804 | else | |
5213506e RW |
16805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16806 | $as_echo "no" >&6; } | |
e8b05380 PB |
16807 | fi |
16808 | done | |
16809 | fi | |
16810 | ||
16811 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16812 | for ncn_progname in ranlib; do | |
16813 | if test -n "$ncn_target_tool_prefix"; then | |
16814 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16815 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16817 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16818 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16819 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16820 | else |
4de997d1 PB |
16821 | if test -n "$RANLIB_FOR_TARGET"; then |
16822 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16823 | else |
1c710c3c DJ |
16824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16825 | for as_dir in $PATH | |
16826 | do | |
16827 | IFS=$as_save_IFS | |
16828 | test -z "$as_dir" && as_dir=. | |
5213506e | 16829 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16831 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16833 | break 2 |
16834 | fi | |
16835 | done | |
5213506e RW |
16836 | done |
16837 | IFS=$as_save_IFS | |
1c710c3c | 16838 | |
ca9f4b81 AO |
16839 | fi |
16840 | fi | |
1c710c3c | 16841 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16842 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16844 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16845 | else |
5213506e RW |
16846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16847 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16848 | fi |
16849 | ||
5213506e | 16850 | |
e8b05380 PB |
16851 | fi |
16852 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16853 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16854 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16856 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16857 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16858 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16859 | else |
2693c0b0 PB |
16860 | if test -n "$RANLIB_FOR_TARGET"; then |
16861 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16862 | else |
1c710c3c DJ |
16863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16864 | for as_dir in $PATH | |
16865 | do | |
16866 | IFS=$as_save_IFS | |
16867 | test -z "$as_dir" && as_dir=. | |
5213506e | 16868 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16870 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16872 | break 2 |
16873 | fi | |
16874 | done | |
5213506e RW |
16875 | done |
16876 | IFS=$as_save_IFS | |
1c710c3c | 16877 | |
ca9f4b81 AO |
16878 | fi |
16879 | fi | |
1c710c3c | 16880 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16881 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16883 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16884 | else |
5213506e RW |
16885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16886 | $as_echo "no" >&6; } | |
ca9f4b81 | 16887 | fi |
1c710c3c | 16888 | |
5213506e | 16889 | |
e8b05380 PB |
16890 | fi |
16891 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16892 | done | |
16893 | fi | |
1c710c3c | 16894 | |
e8b05380 PB |
16895 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16896 | set dummy ranlib | |
16897 | if test $build = $target ; then | |
16898 | RANLIB_FOR_TARGET="$2" | |
16899 | else | |
16900 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16901 | fi |
1c00b503 PB |
16902 | else |
16903 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16904 | fi |
2693c0b0 | 16905 | |
d1f8db0c PB |
16906 | else |
16907 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16908 | fi |
16909 | ||
e8b05380 PB |
16910 | |
16911 | ||
16912 | ||
e7a82751 RM |
16913 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16914 | if test -n "$with_build_time_tools"; then | |
16915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16916 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16917 | if test -x $with_build_time_tools/readelf; then | |
16918 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16919 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16921 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16922 | else | |
16923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16924 | $as_echo "no" >&6; } | |
16925 | fi | |
16926 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16927 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16928 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16929 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16930 | fi | |
16931 | fi | |
16932 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16933 | # Extract the first word of "readelf", so it can be a program name with args. | |
16934 | set dummy readelf; ac_word=$2 | |
16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16936 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16937 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16938 | $as_echo_n "(cached) " >&6 |
16939 | else | |
16940 | case $READELF_FOR_TARGET in | |
16941 | [\\/]* | ?:[\\/]*) | |
16942 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16943 | ;; | |
16944 | *) | |
16945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16946 | for as_dir in $gcc_cv_tool_dirs | |
16947 | do | |
16948 | IFS=$as_save_IFS | |
16949 | test -z "$as_dir" && as_dir=. | |
16950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16952 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16954 | break 2 | |
16955 | fi | |
16956 | done | |
16957 | done | |
16958 | IFS=$as_save_IFS | |
16959 | ||
16960 | ;; | |
16961 | esac | |
16962 | fi | |
16963 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16964 | if test -n "$READELF_FOR_TARGET"; then | |
16965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16966 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16967 | else | |
16968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16969 | $as_echo "no" >&6; } | |
16970 | fi | |
16971 | ||
16972 | ||
16973 | fi | |
16974 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16975 | ||
16976 | ||
16977 | if test -n "$READELF_FOR_TARGET"; then | |
16978 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16979 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16980 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16981 | fi | |
16982 | ||
16983 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16984 | for ncn_progname in readelf; do | |
16985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16986 | set dummy ${ncn_progname}; ac_word=$2 | |
16987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16988 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16989 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16990 | $as_echo_n "(cached) " >&6 |
16991 | else | |
16992 | if test -n "$READELF_FOR_TARGET"; then | |
16993 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16994 | else | |
16995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16996 | for as_dir in $PATH | |
16997 | do | |
16998 | IFS=$as_save_IFS | |
16999 | test -z "$as_dir" && as_dir=. | |
17000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 17001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
17002 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
17003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17004 | break 2 | |
17005 | fi | |
17006 | done | |
17007 | done | |
17008 | IFS=$as_save_IFS | |
17009 | ||
17010 | fi | |
17011 | fi | |
17012 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
17013 | if test -n "$READELF_FOR_TARGET"; then | |
17014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
17015 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
17016 | else | |
17017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17018 | $as_echo "no" >&6; } | |
17019 | fi | |
17020 | ||
17021 | ||
17022 | done | |
17023 | fi | |
17024 | ||
17025 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17026 | for ncn_progname in readelf; do | |
17027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
17028 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
17029 | if test -x $with_build_time_tools/${ncn_progname}; then | |
17030 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17032 | $as_echo "yes" >&6; } | |
17033 | break | |
17034 | else | |
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17036 | $as_echo "no" >&6; } | |
17037 | fi | |
17038 | done | |
17039 | fi | |
17040 | ||
17041 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
17042 | for ncn_progname in readelf; do | |
17043 | if test -n "$ncn_target_tool_prefix"; then | |
17044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17047 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17048 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
17049 | $as_echo_n "(cached) " >&6 |
17050 | else | |
17051 | if test -n "$READELF_FOR_TARGET"; then | |
17052 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
17053 | else | |
17054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17055 | for as_dir in $PATH | |
17056 | do | |
17057 | IFS=$as_save_IFS | |
17058 | test -z "$as_dir" && as_dir=. | |
17059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 17060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
17061 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
17062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17063 | break 2 | |
17064 | fi | |
17065 | done | |
17066 | done | |
17067 | IFS=$as_save_IFS | |
17068 | ||
17069 | fi | |
17070 | fi | |
17071 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
17072 | if test -n "$READELF_FOR_TARGET"; then | |
17073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
17074 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
17075 | else | |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17077 | $as_echo "no" >&6; } | |
17078 | fi | |
17079 | ||
17080 | ||
17081 | fi | |
17082 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
17083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17084 | set dummy ${ncn_progname}; ac_word=$2 | |
17085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17086 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17087 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
17088 | $as_echo_n "(cached) " >&6 |
17089 | else | |
17090 | if test -n "$READELF_FOR_TARGET"; then | |
17091 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
17092 | else | |
17093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17094 | for as_dir in $PATH | |
17095 | do | |
17096 | IFS=$as_save_IFS | |
17097 | test -z "$as_dir" && as_dir=. | |
17098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 17099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
17100 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
17101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17102 | break 2 | |
17103 | fi | |
17104 | done | |
17105 | done | |
17106 | IFS=$as_save_IFS | |
17107 | ||
17108 | fi | |
17109 | fi | |
17110 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
17111 | if test -n "$READELF_FOR_TARGET"; then | |
17112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
17113 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
17114 | else | |
17115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17116 | $as_echo "no" >&6; } | |
17117 | fi | |
17118 | ||
17119 | ||
17120 | fi | |
17121 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
17122 | done | |
17123 | fi | |
17124 | ||
17125 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
17126 | set dummy readelf | |
17127 | if test $build = $target ; then | |
17128 | READELF_FOR_TARGET="$2" | |
17129 | else | |
17130 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17131 | fi | |
17132 | else | |
17133 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
17134 | fi | |
17135 | ||
17136 | else | |
17137 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
17138 | fi | |
17139 | ||
17140 | ||
17141 | ||
17142 | ||
e8b05380 PB |
17143 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
17144 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
17146 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17147 | if test -x $with_build_time_tools/strip; then |
17148 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
17149 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
17151 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 17152 | else |
5213506e RW |
17153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17154 | $as_echo "no" >&6; } | |
d1f8db0c | 17155 | fi |
e8b05380 PB |
17156 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17157 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
17158 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
17159 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
17160 | fi |
17161 | fi | |
3e19841a | 17162 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
17163 | # Extract the first word of "strip", so it can be a program name with args. |
17164 | set dummy strip; ac_word=$2 | |
5213506e RW |
17165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17166 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17167 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17168 | $as_echo_n "(cached) " >&6 |
e8b05380 | 17169 | else |
1c710c3c DJ |
17170 | case $STRIP_FOR_TARGET in |
17171 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
17172 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
17173 | ;; | |
e8b05380 | 17174 | *) |
1c710c3c DJ |
17175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17176 | for as_dir in $gcc_cv_tool_dirs | |
17177 | do | |
17178 | IFS=$as_save_IFS | |
17179 | test -z "$as_dir" && as_dir=. | |
5213506e | 17180 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17182 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17184 | break 2 |
17185 | fi | |
17186 | done | |
5213506e RW |
17187 | done |
17188 | IFS=$as_save_IFS | |
1c710c3c | 17189 | |
e8b05380 PB |
17190 | ;; |
17191 | esac | |
17192 | fi | |
1c710c3c | 17193 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 17194 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17196 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 17197 | else |
5213506e RW |
17198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17199 | $as_echo "no" >&6; } | |
e8b05380 PB |
17200 | fi |
17201 | ||
5213506e | 17202 | |
e8b05380 PB |
17203 | fi |
17204 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
17205 | |
17206 | ||
17207 | if test -n "$STRIP_FOR_TARGET"; then | |
17208 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
17209 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17210 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
17211 | fi | |
17212 | ||
17213 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17214 | for ncn_progname in strip; do | |
17215 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17216 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17218 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17219 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17220 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
17221 | else |
17222 | if test -n "$STRIP_FOR_TARGET"; then | |
17223 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17224 | else | |
17225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17226 | for as_dir in $PATH | |
17227 | do | |
17228 | IFS=$as_save_IFS | |
17229 | test -z "$as_dir" && as_dir=. | |
5213506e | 17230 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 17232 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 17233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
17234 | break 2 |
17235 | fi | |
17236 | done | |
5213506e RW |
17237 | done |
17238 | IFS=$as_save_IFS | |
278a7a38 AO |
17239 | |
17240 | fi | |
17241 | fi | |
17242 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
17243 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17245 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 17246 | else |
5213506e RW |
17247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17248 | $as_echo "no" >&6; } | |
278a7a38 AO |
17249 | fi |
17250 | ||
5213506e | 17251 | |
278a7a38 AO |
17252 | done |
17253 | fi | |
17254 | ||
17255 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 17256 | for ncn_progname in strip; do |
5213506e RW |
17257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17258 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17259 | if test -x $with_build_time_tools/${ncn_progname}; then |
17260 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17262 | $as_echo "yes" >&6; } | |
e8b05380 PB |
17263 | break |
17264 | else | |
5213506e RW |
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17266 | $as_echo "no" >&6; } | |
e8b05380 PB |
17267 | fi |
17268 | done | |
17269 | fi | |
17270 | ||
17271 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17272 | for ncn_progname in strip; do | |
17273 | if test -n "$ncn_target_tool_prefix"; then | |
17274 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 17275 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
17276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17277 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17278 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17279 | $as_echo_n "(cached) " >&6 |
af71363e AS |
17280 | else |
17281 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
17282 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
17283 | else | |
17284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17285 | for as_dir in $PATH | |
17286 | do | |
17287 | IFS=$as_save_IFS | |
17288 | test -z "$as_dir" && as_dir=. | |
5213506e | 17289 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17291 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17293 | break 2 |
17294 | fi | |
17295 | done | |
5213506e RW |
17296 | done |
17297 | IFS=$as_save_IFS | |
1c710c3c | 17298 | |
040b1c5a GK |
17299 | fi |
17300 | fi | |
1c710c3c | 17301 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 17302 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17304 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 17305 | else |
5213506e RW |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17307 | $as_echo "no" >&6; } | |
040b1c5a GK |
17308 | fi |
17309 | ||
5213506e | 17310 | |
e8b05380 PB |
17311 | fi |
17312 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17313 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 17314 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17316 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17317 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17318 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
17319 | else |
17320 | if test -n "$STRIP_FOR_TARGET"; then | |
17321 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17322 | else | |
1c710c3c DJ |
17323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17324 | for as_dir in $PATH | |
17325 | do | |
17326 | IFS=$as_save_IFS | |
17327 | test -z "$as_dir" && as_dir=. | |
5213506e | 17328 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17330 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 17331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17332 | break 2 |
17333 | fi | |
17334 | done | |
5213506e RW |
17335 | done |
17336 | IFS=$as_save_IFS | |
1c710c3c | 17337 | |
040b1c5a GK |
17338 | fi |
17339 | fi | |
1c710c3c | 17340 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 17341 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17343 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 17344 | else |
5213506e RW |
17345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17346 | $as_echo "no" >&6; } | |
040b1c5a | 17347 | fi |
1c710c3c | 17348 | |
5213506e | 17349 | |
e8b05380 PB |
17350 | fi |
17351 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17352 | done | |
17353 | fi | |
1c710c3c | 17354 | |
040b1c5a GK |
17355 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17356 | set dummy strip | |
17357 | if test $build = $target ; then | |
17358 | STRIP_FOR_TARGET="$2" | |
17359 | else | |
17360 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17361 | fi | |
1c00b503 PB |
17362 | else |
17363 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
17364 | fi |
17365 | ||
d1f8db0c PB |
17366 | else |
17367 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
17368 | fi |
17369 | ||
17370 | ||
17371 | ||
17372 | ||
17373 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17374 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17376 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17377 | if test -x $with_build_time_tools/windres; then |
17378 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17379 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
17380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17381 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 17382 | else |
5213506e RW |
17383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17384 | $as_echo "no" >&6; } | |
d1f8db0c | 17385 | fi |
e8b05380 PB |
17386 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17387 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
17388 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17389 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
17390 | fi |
17391 | fi | |
3e19841a | 17392 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
17393 | # Extract the first word of "windres", so it can be a program name with args. |
17394 | set dummy windres; ac_word=$2 | |
5213506e RW |
17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17396 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17397 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17398 | $as_echo_n "(cached) " >&6 |
e8b05380 | 17399 | else |
1c710c3c DJ |
17400 | case $WINDRES_FOR_TARGET in |
17401 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
17402 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17403 | ;; | |
e8b05380 | 17404 | *) |
1c710c3c DJ |
17405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17406 | for as_dir in $gcc_cv_tool_dirs | |
17407 | do | |
17408 | IFS=$as_save_IFS | |
17409 | test -z "$as_dir" && as_dir=. | |
5213506e | 17410 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17412 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17414 | break 2 |
17415 | fi | |
17416 | done | |
5213506e RW |
17417 | done |
17418 | IFS=$as_save_IFS | |
1c710c3c | 17419 | |
e8b05380 PB |
17420 | ;; |
17421 | esac | |
17422 | fi | |
1c710c3c | 17423 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 17424 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17426 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 17427 | else |
5213506e RW |
17428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17429 | $as_echo "no" >&6; } | |
e8b05380 PB |
17430 | fi |
17431 | ||
5213506e | 17432 | |
e8b05380 PB |
17433 | fi |
17434 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
17435 | |
17436 | ||
17437 | if test -n "$WINDRES_FOR_TARGET"; then | |
17438 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17439 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17440 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17441 | fi | |
17442 | ||
17443 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17444 | for ncn_progname in windres; do | |
17445 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17446 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17448 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17449 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17450 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
17451 | else |
17452 | if test -n "$WINDRES_FOR_TARGET"; then | |
17453 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17454 | else | |
17455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17456 | for as_dir in $PATH | |
17457 | do | |
17458 | IFS=$as_save_IFS | |
17459 | test -z "$as_dir" && as_dir=. | |
5213506e | 17460 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 17462 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
17464 | break 2 |
17465 | fi | |
17466 | done | |
5213506e RW |
17467 | done |
17468 | IFS=$as_save_IFS | |
278a7a38 AO |
17469 | |
17470 | fi | |
17471 | fi | |
17472 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17473 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17475 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 17476 | else |
5213506e RW |
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17478 | $as_echo "no" >&6; } | |
278a7a38 AO |
17479 | fi |
17480 | ||
5213506e | 17481 | |
278a7a38 AO |
17482 | done |
17483 | fi | |
17484 | ||
17485 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 17486 | for ncn_progname in windres; do |
5213506e RW |
17487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17488 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17489 | if test -x $with_build_time_tools/${ncn_progname}; then |
17490 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17492 | $as_echo "yes" >&6; } | |
e8b05380 PB |
17493 | break |
17494 | else | |
5213506e RW |
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17496 | $as_echo "no" >&6; } | |
e8b05380 PB |
17497 | fi |
17498 | done | |
17499 | fi | |
17500 | ||
17501 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17502 | for ncn_progname in windres; do | |
17503 | if test -n "$ncn_target_tool_prefix"; then | |
17504 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17505 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
17506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17507 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17508 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17509 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17510 | else |
4de997d1 PB |
17511 | if test -n "$WINDRES_FOR_TARGET"; then |
17512 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17513 | else |
1c710c3c DJ |
17514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17515 | for as_dir in $PATH | |
17516 | do | |
17517 | IFS=$as_save_IFS | |
17518 | test -z "$as_dir" && as_dir=. | |
5213506e | 17519 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17521 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17523 | break 2 |
17524 | fi | |
17525 | done | |
5213506e RW |
17526 | done |
17527 | IFS=$as_save_IFS | |
1c710c3c | 17528 | |
ca9f4b81 AO |
17529 | fi |
17530 | fi | |
1c710c3c | 17531 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 17532 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17534 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17535 | else |
5213506e RW |
17536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17537 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
17538 | fi |
17539 | ||
5213506e | 17540 | |
e8b05380 PB |
17541 | fi |
17542 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17544 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17546 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17547 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17548 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17549 | else |
2693c0b0 PB |
17550 | if test -n "$WINDRES_FOR_TARGET"; then |
17551 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17552 | else |
1c710c3c DJ |
17553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17554 | for as_dir in $PATH | |
17555 | do | |
17556 | IFS=$as_save_IFS | |
17557 | test -z "$as_dir" && as_dir=. | |
5213506e | 17558 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17560 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17562 | break 2 |
17563 | fi | |
17564 | done | |
5213506e RW |
17565 | done |
17566 | IFS=$as_save_IFS | |
1c710c3c | 17567 | |
ca9f4b81 AO |
17568 | fi |
17569 | fi | |
1c710c3c | 17570 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 17571 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17573 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17574 | else |
5213506e RW |
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17576 | $as_echo "no" >&6; } | |
ca9f4b81 | 17577 | fi |
1c710c3c | 17578 | |
5213506e | 17579 | |
e8b05380 PB |
17580 | fi |
17581 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17582 | done | |
17583 | fi | |
1c710c3c | 17584 | |
2693c0b0 PB |
17585 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17586 | set dummy windres | |
17587 | if test $build = $target ; then | |
17588 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 17589 | else |
2693c0b0 | 17590 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 17591 | fi |
1c00b503 PB |
17592 | else |
17593 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
17594 | fi |
17595 | ||
d1f8db0c PB |
17596 | else |
17597 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
17598 | fi |
17599 | ||
4977bab6 | 17600 | |
901119ae KT |
17601 | |
17602 | ||
17603 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17604 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17606 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17607 | if test -x $with_build_time_tools/windmc; then |
17608 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17609 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17611 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17612 | else |
5213506e RW |
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17614 | $as_echo "no" >&6; } | |
901119ae KT |
17615 | fi |
17616 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17617 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17618 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17619 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17620 | fi |
17621 | fi | |
17622 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17623 | # Extract the first word of "windmc", so it can be a program name with args. | |
17624 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17626 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17627 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17628 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17629 | else |
17630 | case $WINDMC_FOR_TARGET in | |
17631 | [\\/]* | ?:[\\/]*) | |
17632 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17633 | ;; | |
17634 | *) | |
17635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17636 | for as_dir in $gcc_cv_tool_dirs | |
17637 | do | |
17638 | IFS=$as_save_IFS | |
17639 | test -z "$as_dir" && as_dir=. | |
5213506e | 17640 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17642 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17644 | break 2 |
17645 | fi | |
17646 | done | |
5213506e RW |
17647 | done |
17648 | IFS=$as_save_IFS | |
901119ae KT |
17649 | |
17650 | ;; | |
17651 | esac | |
17652 | fi | |
17653 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17654 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17656 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17657 | else |
5213506e RW |
17658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17659 | $as_echo "no" >&6; } | |
901119ae KT |
17660 | fi |
17661 | ||
5213506e | 17662 | |
901119ae KT |
17663 | fi |
17664 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17665 | ||
17666 | ||
17667 | if test -n "$WINDMC_FOR_TARGET"; then | |
17668 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17669 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17670 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17671 | fi | |
17672 | ||
17673 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17674 | for ncn_progname in windmc; do | |
17675 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17676 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17678 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17679 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17680 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17681 | else |
17682 | if test -n "$WINDMC_FOR_TARGET"; then | |
17683 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17684 | else | |
17685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17686 | for as_dir in $PATH | |
17687 | do | |
17688 | IFS=$as_save_IFS | |
17689 | test -z "$as_dir" && as_dir=. | |
5213506e | 17690 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17692 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17694 | break 2 |
17695 | fi | |
17696 | done | |
5213506e RW |
17697 | done |
17698 | IFS=$as_save_IFS | |
901119ae KT |
17699 | |
17700 | fi | |
17701 | fi | |
17702 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17703 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17705 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17706 | else |
5213506e RW |
17707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17708 | $as_echo "no" >&6; } | |
901119ae KT |
17709 | fi |
17710 | ||
5213506e | 17711 | |
901119ae KT |
17712 | done |
17713 | fi | |
17714 | ||
17715 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17716 | for ncn_progname in windmc; do | |
5213506e RW |
17717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17718 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17719 | if test -x $with_build_time_tools/${ncn_progname}; then |
17720 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17722 | $as_echo "yes" >&6; } | |
901119ae KT |
17723 | break |
17724 | else | |
5213506e RW |
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17726 | $as_echo "no" >&6; } | |
901119ae KT |
17727 | fi |
17728 | done | |
17729 | fi | |
17730 | ||
17731 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17732 | for ncn_progname in windmc; do | |
17733 | if test -n "$ncn_target_tool_prefix"; then | |
17734 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17735 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17737 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17738 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17739 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17740 | else |
17741 | if test -n "$WINDMC_FOR_TARGET"; then | |
17742 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17743 | else | |
17744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17745 | for as_dir in $PATH | |
17746 | do | |
17747 | IFS=$as_save_IFS | |
17748 | test -z "$as_dir" && as_dir=. | |
5213506e | 17749 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17751 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17753 | break 2 |
17754 | fi | |
17755 | done | |
5213506e RW |
17756 | done |
17757 | IFS=$as_save_IFS | |
901119ae KT |
17758 | |
17759 | fi | |
17760 | fi | |
17761 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17762 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17764 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17765 | else |
5213506e RW |
17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17767 | $as_echo "no" >&6; } | |
901119ae KT |
17768 | fi |
17769 | ||
5213506e | 17770 | |
901119ae KT |
17771 | fi |
17772 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17773 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17774 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17776 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17777 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17778 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17779 | else |
17780 | if test -n "$WINDMC_FOR_TARGET"; then | |
17781 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17782 | else | |
17783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17784 | for as_dir in $PATH | |
17785 | do | |
17786 | IFS=$as_save_IFS | |
17787 | test -z "$as_dir" && as_dir=. | |
5213506e | 17788 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17790 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17792 | break 2 |
17793 | fi | |
17794 | done | |
5213506e RW |
17795 | done |
17796 | IFS=$as_save_IFS | |
901119ae KT |
17797 | |
17798 | fi | |
17799 | fi | |
17800 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17801 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17803 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17804 | else |
5213506e RW |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17806 | $as_echo "no" >&6; } | |
901119ae KT |
17807 | fi |
17808 | ||
5213506e | 17809 | |
901119ae KT |
17810 | fi |
17811 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17812 | done | |
17813 | fi | |
17814 | ||
17815 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17816 | set dummy windmc | |
17817 | if test $build = $target ; then | |
17818 | WINDMC_FOR_TARGET="$2" | |
17819 | else | |
17820 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17821 | fi | |
1c00b503 PB |
17822 | else |
17823 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17824 | fi |
17825 | ||
17826 | else | |
17827 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17828 | fi | |
17829 | ||
17830 | ||
2abefe3d PB |
17831 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17832 | ||
5213506e RW |
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17834 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17835 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17836 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17837 | # We already found the complete path | |
172e41aa | 17838 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17840 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17841 | else |
17842 | # Canadian cross, just use what we found | |
5213506e RW |
17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17844 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17845 | fi |
2abefe3d PB |
17846 | else |
17847 | ok=yes | |
17848 | case " ${configdirs} " in | |
17849 | *" binutils "*) ;; | |
17850 | *) ok=no ;; | |
17851 | esac | |
1c710c3c | 17852 | |
2abefe3d PB |
17853 | if test $ok = yes; then |
17854 | # An in-tree tool is available and we can use it | |
17855 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17857 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17858 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17859 | # We already found the complete path | |
172e41aa | 17860 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17862 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17863 | elif test "x$target" = "x$host"; then |
17864 | # We can use an host tool | |
17865 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17867 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17868 | else |
17869 | # We need a cross tool | |
5213506e RW |
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17871 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17872 | fi |
17873 | fi | |
0b0dc272 | 17874 | |
5213506e RW |
17875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17876 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17877 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17878 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17879 | # We already found the complete path | |
172e41aa | 17880 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17882 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17883 | else |
17884 | # Canadian cross, just use what we found | |
5213506e RW |
17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17886 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17887 | fi |
2abefe3d PB |
17888 | else |
17889 | ok=yes | |
17890 | case " ${configdirs} " in | |
17891 | *" gas "*) ;; | |
17892 | *) ok=no ;; | |
17893 | esac | |
1c710c3c | 17894 | |
2abefe3d PB |
17895 | if test $ok = yes; then |
17896 | # An in-tree tool is available and we can use it | |
17897 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17899 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17900 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17901 | # We already found the complete path | |
172e41aa | 17902 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17904 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17905 | elif test "x$target" = "x$host"; then |
17906 | # We can use an host tool | |
17907 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17909 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17910 | else |
17911 | # We need a cross tool | |
5213506e RW |
17912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17913 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17914 | fi |
17915 | fi | |
0b0dc272 | 17916 | |
5213506e RW |
17917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17918 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17919 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17920 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17921 | # We already found the complete path | |
172e41aa | 17922 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17924 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17925 | else |
17926 | # Canadian cross, just use what we found | |
5213506e RW |
17927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17928 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17929 | fi |
2abefe3d PB |
17930 | else |
17931 | ok=yes | |
17932 | case " ${configdirs} " in | |
17933 | *" gcc "*) ;; | |
17934 | *) ok=no ;; | |
17935 | esac | |
1c710c3c | 17936 | |
2abefe3d PB |
17937 | if test $ok = yes; then |
17938 | # An in-tree tool is available and we can use it | |
17939 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17941 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17942 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17943 | # We already found the complete path | |
172e41aa | 17944 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17946 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17947 | elif test "x$target" = "x$host"; then |
17948 | # We can use an host tool | |
17949 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17951 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17952 | else |
17953 | # We need a cross tool | |
5213506e RW |
17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17955 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17956 | fi |
17957 | fi | |
0b0dc272 | 17958 | |
5213506e RW |
17959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17960 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17961 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17962 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17963 | # We already found the complete path | |
172e41aa | 17964 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17966 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17967 | else |
17968 | # Canadian cross, just use what we found | |
5213506e RW |
17969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17970 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17971 | fi |
2abefe3d PB |
17972 | else |
17973 | ok=yes | |
17974 | case " ${configdirs} " in | |
17975 | *" gcc "*) ;; | |
17976 | *) ok=no ;; | |
17977 | esac | |
17978 | case ,${enable_languages}, in | |
17979 | *,c++,*) ;; | |
17980 | *) ok=no ;; | |
17981 | esac | |
17982 | if test $ok = yes; then | |
17983 | # An in-tree tool is available and we can use it | |
2077db1b | 17984 | 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 |
17985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17986 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17987 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17988 | # We already found the complete path | |
172e41aa | 17989 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17991 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17992 | elif test "x$target" = "x$host"; then |
17993 | # We can use an host tool | |
17994 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17996 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17997 | else |
17998 | # We need a cross tool | |
5213506e RW |
17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18000 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18001 | fi |
18002 | fi | |
0b0dc272 | 18003 | |
5213506e RW |
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
18005 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 18006 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18007 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
18008 | # We already found the complete path | |
172e41aa | 18009 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18011 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18012 | else |
18013 | # Canadian cross, just use what we found | |
5213506e RW |
18014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18015 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18016 | fi |
2abefe3d PB |
18017 | else |
18018 | ok=yes | |
18019 | case " ${configdirs} " in | |
18020 | *" gcc "*) ;; | |
18021 | *) ok=no ;; | |
18022 | esac | |
18023 | case ,${enable_languages}, in | |
18024 | *,c++,*) ;; | |
18025 | *) ok=no ;; | |
18026 | esac | |
18027 | if test $ok = yes; then | |
18028 | # An in-tree tool is available and we can use it | |
2077db1b | 18029 | 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 |
18030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18031 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18032 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
18033 | # We already found the complete path | |
172e41aa | 18034 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18036 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18037 | elif test "x$target" = "x$host"; then |
18038 | # We can use an host tool | |
18039 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
18040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18041 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18042 | else |
18043 | # We need a cross tool | |
5213506e RW |
18044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18045 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18046 | fi |
18047 | fi | |
0b0dc272 | 18048 | |
5213506e RW |
18049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
18050 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 18051 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18052 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
18053 | # We already found the complete path | |
172e41aa | 18054 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
18055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18056 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18057 | else |
18058 | # Canadian cross, just use what we found | |
5213506e RW |
18059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18060 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18061 | fi |
2abefe3d PB |
18062 | else |
18063 | ok=yes | |
18064 | case " ${configdirs} " in | |
18065 | *" binutils "*) ;; | |
18066 | *) ok=no ;; | |
18067 | esac | |
1c710c3c | 18068 | |
2abefe3d PB |
18069 | if test $ok = yes; then |
18070 | # An in-tree tool is available and we can use it | |
18071 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
18072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18073 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18074 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
18075 | # We already found the complete path | |
172e41aa | 18076 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
18077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18078 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18079 | elif test "x$target" = "x$host"; then |
18080 | # We can use an host tool | |
18081 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
18082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18083 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18084 | else |
18085 | # We need a cross tool | |
5213506e RW |
18086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18087 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18088 | fi |
18089 | fi | |
0b0dc272 | 18090 | |
3b5e8ee4 IS |
18091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
18092 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
18093 | if test "x${build}" != "x${host}" ; then | |
18094 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
18095 | # We already found the complete path | |
18096 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18098 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18099 | else | |
18100 | # Canadian cross, just use what we found | |
18101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18102 | $as_echo "pre-installed" >&6; } | |
18103 | fi | |
18104 | else | |
18105 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
18106 | # We already found the complete path | |
18107 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
18108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18109 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18110 | elif test "x$target" = "x$host"; then | |
18111 | # We can use an host tool | |
18112 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
18113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18114 | $as_echo "host tool" >&6; } | |
18115 | else | |
18116 | # We need a cross tool | |
18117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18118 | $as_echo "pre-installed" >&6; } | |
18119 | fi | |
18120 | fi | |
18121 | ||
5213506e RW |
18122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
18123 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 18124 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18125 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
18126 | # We already found the complete path | |
172e41aa | 18127 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
18128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18129 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18130 | else |
18131 | # Canadian cross, just use what we found | |
5213506e RW |
18132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18133 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18134 | fi |
2abefe3d PB |
18135 | else |
18136 | ok=yes | |
18137 | case " ${configdirs} " in | |
18138 | *" gcc "*) ;; | |
18139 | *) ok=no ;; | |
18140 | esac | |
1c710c3c | 18141 | |
2abefe3d PB |
18142 | if test $ok = yes; then |
18143 | # An in-tree tool is available and we can use it | |
18144 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
18145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18146 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18147 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
18148 | # We already found the complete path | |
172e41aa | 18149 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
18150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18151 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18152 | elif test "x$target" = "x$host"; then |
18153 | # We can use an host tool | |
18154 | GCC_FOR_TARGET='$()' | |
5213506e RW |
18155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18156 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18157 | else |
18158 | # We need a cross tool | |
5213506e RW |
18159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18160 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18161 | fi |
18162 | fi | |
0b0dc272 | 18163 | |
5213506e RW |
18164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
18165 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 18166 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18167 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
18168 | # We already found the complete path | |
172e41aa | 18169 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
18170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18171 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18172 | else |
18173 | # Canadian cross, just use what we found | |
5213506e RW |
18174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18175 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18176 | fi |
2abefe3d PB |
18177 | else |
18178 | ok=yes | |
18179 | case " ${configdirs} " in | |
18180 | *" gcc "*) ;; | |
18181 | *) ok=no ;; | |
18182 | esac | |
18183 | case ,${enable_languages}, in | |
18184 | *,fortran,*) ;; | |
18185 | *) ok=no ;; | |
18186 | esac | |
18187 | if test $ok = yes; then | |
18188 | # An in-tree tool is available and we can use it | |
18189 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
18190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18191 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18192 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
18193 | # We already found the complete path | |
172e41aa | 18194 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
18195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18196 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18197 | elif test "x$target" = "x$host"; then |
18198 | # We can use an host tool | |
18199 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
18200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18201 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18202 | else |
18203 | # We need a cross tool | |
5213506e RW |
18204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18205 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18206 | fi |
18207 | fi | |
0b0dc272 | 18208 | |
632e2a07 ILT |
18209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
18210 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
18211 | if test "x${build}" != "x${host}" ; then | |
18212 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
18213 | # We already found the complete path | |
18214 | ac_dir=`dirname $GOC_FOR_TARGET` | |
18215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18216 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18217 | else | |
18218 | # Canadian cross, just use what we found | |
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18220 | $as_echo "pre-installed" >&6; } | |
18221 | fi | |
18222 | else | |
18223 | ok=yes | |
18224 | case " ${configdirs} " in | |
18225 | *" gcc "*) ;; | |
18226 | *) ok=no ;; | |
18227 | esac | |
18228 | case ,${enable_languages}, in | |
18229 | *,go,*) ;; | |
18230 | *) ok=no ;; | |
18231 | esac | |
18232 | if test $ok = yes; then | |
18233 | # An in-tree tool is available and we can use it | |
18234 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
18235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18236 | $as_echo "just compiled" >&6; } | |
18237 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
18238 | # We already found the complete path | |
18239 | ac_dir=`dirname $GOC_FOR_TARGET` | |
18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18241 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18242 | elif test "x$target" = "x$host"; then | |
18243 | # We can use an host tool | |
18244 | GOC_FOR_TARGET='$(GOC)' | |
18245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18246 | $as_echo "host tool" >&6; } | |
18247 | else | |
18248 | # We need a cross tool | |
18249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18250 | $as_echo "pre-installed" >&6; } | |
18251 | fi | |
18252 | fi | |
18253 | ||
b4c522fa IB |
18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
18255 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
18256 | if test "x${build}" != "x${host}" ; then | |
18257 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18258 | # We already found the complete path | |
18259 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18261 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18262 | else | |
18263 | # Canadian cross, just use what we found | |
18264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18265 | $as_echo "pre-installed" >&6; } | |
18266 | fi | |
18267 | else | |
18268 | ok=yes | |
18269 | case " ${configdirs} " in | |
18270 | *" gcc "*) ;; | |
18271 | *) ok=no ;; | |
18272 | esac | |
18273 | case ,${enable_languages}, in | |
18274 | *,d,*) ;; | |
18275 | *) ok=no ;; | |
18276 | esac | |
18277 | if test $ok = yes; then | |
18278 | # An in-tree tool is available and we can use it | |
18279 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
18280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18281 | $as_echo "just compiled" >&6; } | |
18282 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18283 | # We already found the complete path | |
18284 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18286 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18287 | elif test "x$target" = "x$host"; then | |
18288 | # We can use an host tool | |
18289 | GDC_FOR_TARGET='$(GDC)' | |
18290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18291 | $as_echo "host tool" >&6; } | |
18292 | else | |
18293 | # We need a cross tool | |
18294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18295 | $as_echo "pre-installed" >&6; } | |
18296 | fi | |
18297 | fi | |
18298 | ||
1eee94d3 GM |
18299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5 |
18300 | $as_echo_n "checking where to find the target gm2... " >&6; } | |
18301 | if test "x${build}" != "x${host}" ; then | |
18302 | if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then | |
18303 | # We already found the complete path | |
18304 | ac_dir=`dirname $GM2_FOR_TARGET` | |
18305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18306 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18307 | else | |
18308 | # Canadian cross, just use what we found | |
18309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18310 | $as_echo "pre-installed" >&6; } | |
18311 | fi | |
18312 | else | |
18313 | ok=yes | |
18314 | case " ${configdirs} " in | |
18315 | *" gcc "*) ;; | |
18316 | *) ok=no ;; | |
18317 | esac | |
18318 | case ,${enable_languages}, in | |
18319 | *,m2,*) ;; | |
18320 | *) ok=no ;; | |
18321 | esac | |
18322 | if test $ok = yes; then | |
18323 | # An in-tree tool is available and we can use it | |
18324 | GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/' | |
18325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18326 | $as_echo "just compiled" >&6; } | |
18327 | elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then | |
18328 | # We already found the complete path | |
18329 | ac_dir=`dirname $GM2_FOR_TARGET` | |
18330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18331 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18332 | elif test "x$target" = "x$host"; then | |
18333 | # We can use an host tool | |
18334 | GM2_FOR_TARGET='$(GM2)' | |
18335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18336 | $as_echo "host tool" >&6; } | |
18337 | else | |
18338 | # We need a cross tool | |
18339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18340 | $as_echo "pre-installed" >&6; } | |
18341 | fi | |
18342 | fi | |
18343 | ||
5213506e RW |
18344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
18345 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 18346 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18347 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18348 | # We already found the complete path | |
172e41aa | 18349 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
18350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18351 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18352 | else |
18353 | # Canadian cross, just use what we found | |
5213506e RW |
18354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18355 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18356 | fi |
2abefe3d PB |
18357 | else |
18358 | ok=yes | |
18359 | case " ${configdirs} " in | |
18360 | *" ld "*) ;; | |
18361 | *) ok=no ;; | |
18362 | esac | |
1c710c3c | 18363 | |
2abefe3d PB |
18364 | if test $ok = yes; then |
18365 | # An in-tree tool is available and we can use it | |
18366 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
18367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18368 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18369 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18370 | # We already found the complete path | |
172e41aa | 18371 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
18372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18373 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18374 | elif test "x$target" = "x$host"; then |
18375 | # We can use an host tool | |
18376 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
18377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18378 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18379 | else |
18380 | # We need a cross tool | |
5213506e RW |
18381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18382 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18383 | fi |
18384 | fi | |
0b0dc272 | 18385 | |
5213506e RW |
18386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18387 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 18388 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18389 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18390 | # We already found the complete path | |
172e41aa | 18391 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
18392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18393 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18394 | else |
18395 | # Canadian cross, just use what we found | |
5213506e RW |
18396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18397 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18398 | fi |
2abefe3d | 18399 | else |
e8b05380 PB |
18400 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18401 | # We already found the complete path | |
172e41aa | 18402 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
18403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18404 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 18405 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
18406 | # We can use an host tool |
18407 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
18408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18409 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18410 | else |
18411 | # We need a cross tool | |
5213506e RW |
18412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18413 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18414 | fi |
18415 | fi | |
0b0dc272 | 18416 | |
5213506e RW |
18417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18418 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 18419 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18420 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18421 | # We already found the complete path | |
172e41aa | 18422 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
18423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18424 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18425 | else |
18426 | # Canadian cross, just use what we found | |
5213506e RW |
18427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18428 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18429 | fi |
2abefe3d PB |
18430 | else |
18431 | ok=yes | |
18432 | case " ${configdirs} " in | |
18433 | *" binutils "*) ;; | |
18434 | *) ok=no ;; | |
18435 | esac | |
1c710c3c | 18436 | |
2abefe3d PB |
18437 | if test $ok = yes; then |
18438 | # An in-tree tool is available and we can use it | |
18439 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
18440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18441 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18442 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18443 | # We already found the complete path | |
172e41aa | 18444 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
18445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18446 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18447 | elif test "x$target" = "x$host"; then |
18448 | # We can use an host tool | |
18449 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18451 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18452 | else |
18453 | # We need a cross tool | |
5213506e RW |
18454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18455 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18456 | fi |
18457 | fi | |
0b0dc272 | 18458 | |
9bccfdf5 AP |
18459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18460 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18461 | if test "x${build}" != "x${host}" ; then | |
18462 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18463 | # We already found the complete path | |
18464 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18466 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18467 | else | |
18468 | # Canadian cross, just use what we found | |
18469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18470 | $as_echo "pre-installed" >&6; } | |
18471 | fi | |
18472 | else | |
18473 | ok=yes | |
18474 | case " ${configdirs} " in | |
18475 | *" binutils "*) ;; | |
18476 | *) ok=no ;; | |
18477 | esac | |
18478 | ||
18479 | if test $ok = yes; then | |
18480 | # An in-tree tool is available and we can use it | |
18481 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18483 | $as_echo "just compiled" >&6; } | |
18484 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18485 | # We already found the complete path | |
18486 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18488 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18489 | elif test "x$target" = "x$host"; then | |
18490 | # We can use an host tool | |
ec8fd1c0 | 18491 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
18492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18493 | $as_echo "host tool" >&6; } | |
18494 | else | |
18495 | # We need a cross tool | |
18496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18497 | $as_echo "pre-installed" >&6; } | |
18498 | fi | |
18499 | fi | |
18500 | ||
5213506e RW |
18501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18502 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 18503 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18504 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18505 | # We already found the complete path | |
172e41aa | 18506 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
18507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18508 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18509 | else |
18510 | # Canadian cross, just use what we found | |
5213506e RW |
18511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18512 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18513 | fi |
2abefe3d PB |
18514 | else |
18515 | ok=yes | |
18516 | case " ${configdirs} " in | |
18517 | *" binutils "*) ;; | |
18518 | *) ok=no ;; | |
18519 | esac | |
1c710c3c | 18520 | |
2abefe3d PB |
18521 | if test $ok = yes; then |
18522 | # An in-tree tool is available and we can use it | |
18523 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
18524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18525 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18526 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18527 | # We already found the complete path | |
172e41aa | 18528 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
18529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18530 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18531 | elif test "x$target" = "x$host"; then |
18532 | # We can use an host tool | |
18533 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
18534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18535 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18536 | else |
18537 | # We need a cross tool | |
5213506e RW |
18538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18539 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18540 | fi |
18541 | fi | |
0b0dc272 | 18542 | |
e4a9a572 IS |
18543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18544 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18545 | if test "x${build}" != "x${host}" ; then | |
18546 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18547 | # We already found the complete path | |
18548 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18550 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18551 | else | |
18552 | # Canadian cross, just use what we found | |
18553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18554 | $as_echo "pre-installed" >&6; } | |
18555 | fi | |
18556 | else | |
18557 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18558 | # We already found the complete path | |
18559 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18561 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18562 | elif test "x$target" = "x$host"; then | |
18563 | # We can use an host tool | |
18564 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18566 | $as_echo "host tool" >&6; } | |
18567 | else | |
18568 | # We need a cross tool | |
18569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18570 | $as_echo "pre-installed" >&6; } | |
18571 | fi | |
18572 | fi | |
18573 | ||
5213506e RW |
18574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18575 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 18576 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18577 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18578 | # We already found the complete path | |
172e41aa | 18579 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18581 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18582 | else |
18583 | # Canadian cross, just use what we found | |
5213506e RW |
18584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18585 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18586 | fi |
2abefe3d PB |
18587 | else |
18588 | ok=yes | |
18589 | case " ${configdirs} " in | |
18590 | *" binutils "*) ;; | |
18591 | *) ok=no ;; | |
18592 | esac | |
1c710c3c | 18593 | |
2abefe3d PB |
18594 | if test $ok = yes; then |
18595 | # An in-tree tool is available and we can use it | |
18596 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
18597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18598 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18599 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18600 | # We already found the complete path | |
172e41aa | 18601 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18603 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18604 | elif test "x$target" = "x$host"; then |
18605 | # We can use an host tool | |
18606 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
18607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18608 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18609 | else |
18610 | # We need a cross tool | |
5213506e RW |
18611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18612 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18613 | fi |
18614 | fi | |
0b0dc272 | 18615 | |
e7a82751 RM |
18616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18617 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18618 | if test "x${build}" != "x${host}" ; then | |
18619 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18620 | # We already found the complete path | |
18621 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18623 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18624 | else | |
18625 | # Canadian cross, just use what we found | |
18626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18627 | $as_echo "pre-installed" >&6; } | |
18628 | fi | |
18629 | else | |
18630 | ok=yes | |
18631 | case " ${configdirs} " in | |
18632 | *" binutils "*) ;; | |
18633 | *) ok=no ;; | |
18634 | esac | |
18635 | ||
18636 | if test $ok = yes; then | |
18637 | # An in-tree tool is available and we can use it | |
18638 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18640 | $as_echo "just compiled" >&6; } | |
18641 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18642 | # We already found the complete path | |
18643 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18645 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18646 | elif test "x$target" = "x$host"; then | |
18647 | # We can use an host tool | |
18648 | READELF_FOR_TARGET='$(READELF)' | |
18649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18650 | $as_echo "host tool" >&6; } | |
18651 | else | |
18652 | # We need a cross tool | |
18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18654 | $as_echo "pre-installed" >&6; } | |
18655 | fi | |
18656 | fi | |
18657 | ||
5213506e RW |
18658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18659 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18660 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18661 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18662 | # We already found the complete path | |
172e41aa | 18663 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18665 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18666 | else |
18667 | # Canadian cross, just use what we found | |
5213506e RW |
18668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18669 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18670 | fi |
2abefe3d PB |
18671 | else |
18672 | ok=yes | |
18673 | case " ${configdirs} " in | |
18674 | *" binutils "*) ;; | |
18675 | *) ok=no ;; | |
18676 | esac | |
1c710c3c | 18677 | |
2abefe3d PB |
18678 | if test $ok = yes; then |
18679 | # An in-tree tool is available and we can use it | |
455c8f48 | 18680 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18682 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18683 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18684 | # We already found the complete path | |
172e41aa | 18685 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18687 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18688 | elif test "x$target" = "x$host"; then |
18689 | # We can use an host tool | |
18690 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18692 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18693 | else |
18694 | # We need a cross tool | |
5213506e RW |
18695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18696 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18697 | fi |
18698 | fi | |
0b0dc272 | 18699 | |
5213506e RW |
18700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18701 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18702 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18703 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18704 | # We already found the complete path | |
172e41aa | 18705 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18707 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18708 | else |
18709 | # Canadian cross, just use what we found | |
5213506e RW |
18710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18711 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18712 | fi |
2abefe3d PB |
18713 | else |
18714 | ok=yes | |
18715 | case " ${configdirs} " in | |
18716 | *" binutils "*) ;; | |
18717 | *) ok=no ;; | |
18718 | esac | |
1c710c3c | 18719 | |
2abefe3d PB |
18720 | if test $ok = yes; then |
18721 | # An in-tree tool is available and we can use it | |
18722 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18724 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18725 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18726 | # We already found the complete path | |
172e41aa | 18727 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18729 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18730 | elif test "x$target" = "x$host"; then |
18731 | # We can use an host tool | |
18732 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18734 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18735 | else |
18736 | # We need a cross tool | |
5213506e RW |
18737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18738 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18739 | fi |
671aa708 | 18740 | fi |
be912515 | 18741 | |
5213506e RW |
18742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18743 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18744 | if test "x${build}" != "x${host}" ; then |
18745 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18746 | # We already found the complete path | |
18747 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18749 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18750 | else |
18751 | # Canadian cross, just use what we found | |
5213506e RW |
18752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18753 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18754 | fi |
18755 | else | |
18756 | ok=yes | |
18757 | case " ${configdirs} " in | |
18758 | *" binutils "*) ;; | |
18759 | *) ok=no ;; | |
18760 | esac | |
18761 | ||
18762 | if test $ok = yes; then | |
18763 | # An in-tree tool is available and we can use it | |
18764 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18766 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18767 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18768 | # We already found the complete path | |
18769 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18771 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18772 | elif test "x$target" = "x$host"; then |
18773 | # We can use an host tool | |
18774 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18776 | $as_echo "host tool" >&6; } | |
901119ae KT |
18777 | else |
18778 | # We need a cross tool | |
5213506e RW |
18779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18780 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18781 | fi |
18782 | fi | |
18783 | ||
be912515 NN |
18784 | |
18785 | ||
2abefe3d | 18786 | |
0b0dc272 | 18787 | |
671aa708 NN |
18788 | # Certain tools may need extra flags. |
18789 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18790 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18791 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18792 | ||
2abefe3d PB |
18793 | # When building target libraries, except in a Canadian cross, we use |
18794 | # the same toolchain as the compiler we just built. | |
18795 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18796 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18797 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18798 | if test $host = $build; then | |
18799 | case " $configdirs " in | |
18800 | *" gcc "*) | |
18801 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18802 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18803 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18804 | ;; | |
18805 | esac | |
18806 | fi | |
18807 | ||
18808 | ||
18809 | ||
18810 | ||
18811 | ||
5213506e RW |
18812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18813 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18814 | # Check whether --enable-maintainer-mode was given. | |
18815 | if test "${enable_maintainer_mode+set}" = set; then : | |
18816 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18817 | else |
18818 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18819 | fi |
18820 | ||
18821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18822 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18823 | |
18824 | ||
18825 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18826 | MAINTAINER_MODE_TRUE= | |
18827 | MAINTAINER_MODE_FALSE='#' | |
18828 | else | |
18829 | MAINTAINER_MODE_TRUE='#' | |
18830 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18831 | fi |
ee03dc5e AO |
18832 | MAINT=$MAINTAINER_MODE_TRUE |
18833 | ||
2805b53a NN |
18834 | # --------------------- |
18835 | # GCC bootstrap support | |
18836 | # --------------------- | |
18837 | ||
18838 | # Stage specific cflags for build. | |
18839 | stage1_cflags="-g" | |
18840 | case $build in | |
18841 | vax-*-*) | |
18842 | case ${GCC} in | |
18843 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18844 | *) stage1_cflags="-g -J" ;; | |
18845 | esac ;; | |
2805b53a NN |
18846 | esac |
18847 | ||
0b50988a | 18848 | |
2805b53a | 18849 | |
8efea775 | 18850 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18851 | # Check whether --enable-stage1-checking was given. |
18852 | if test "${enable_stage1_checking+set}" = set; then : | |
18853 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18854 | else |
e643dc23 | 18855 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18856 | # For --disable-checking or implicit --enable-checking=release, avoid |
18857 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18858 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18859 | case $BUILD_CONFIG in |
18860 | *lto*) | |
7db11a5a JJ |
18861 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18862 | *) | |
18863 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18864 | esac |
7db11a5a JJ |
18865 | if test "x$enable_checking" = x && \ |
18866 | test -d ${srcdir}/gcc && \ | |
18867 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18868 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18869 | fi |
8efea775 | 18870 | else |
e643dc23 | 18871 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18872 | fi |
5213506e | 18873 | fi |
8efea775 PB |
18874 | |
18875 | ||
2aeb72e9 | 18876 | |
5213506e RW |
18877 | # Enable -Werror in bootstrap stage2 and later. |
18878 | # Check whether --enable-werror was given. | |
18879 | if test "${enable_werror+set}" = set; then : | |
18880 | enableval=$enable_werror; | |
09a9c095 NN |
18881 | case ${enable_werror} in |
18882 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18883 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18884 | esac |
18885 | ||
afd88efc ML |
18886 | else |
18887 | ||
01c712cb ML |
18888 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18889 | case $BUILD_CONFIG in | |
18890 | bootstrap-debug) | |
18891 | stage2_werror_flag="--enable-werror-always" ;; | |
18892 | "") | |
18893 | stage2_werror_flag="--enable-werror-always" ;; | |
18894 | esac | |
18895 | fi | |
18896 | ||
afd88efc ML |
18897 | fi |
18898 | ||
18899 | ||
01c712cb | 18900 | |
2805b53a | 18901 | |
f2689b09 SE |
18902 | # Specify what files to not compare during bootstrap. |
18903 | ||
18904 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
1eee94d3 GM |
18905 | compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*" |
18906 | compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*" | |
18907 | compare_exclusions="$compare_exclusions | gcc/m2/gm2version*" | |
f2689b09 SE |
18908 | case "$target" in |
18909 | hppa*64*-*-hpux*) ;; | |
4f943869 | 18910 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; |
f2689b09 SE |
18911 | esac |
18912 | ||
18913 | ||
5213506e RW |
18914 | ac_config_files="$ac_config_files Makefile" |
18915 | ||
1c710c3c | 18916 | cat >confcache <<\_ACEOF |
671aa708 NN |
18917 | # This file is a shell script that caches the results of configure |
18918 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18919 | # scripts and configure runs, see configure's option --config-cache. |
18920 | # It is not useful on other systems. If it contains results you don't | |
18921 | # want to keep, you may remove or edit it. | |
671aa708 | 18922 | # |
1c710c3c DJ |
18923 | # config.status only pays attention to the cache file if you give it |
18924 | # the --recheck option to rerun configure. | |
671aa708 | 18925 | # |
1c710c3c DJ |
18926 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18927 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18928 | # following values. | |
18929 | ||
18930 | _ACEOF | |
18931 | ||
671aa708 NN |
18932 | # The following way of writing the cache mishandles newlines in values, |
18933 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18934 | # So, we kill variables containing newlines. |
671aa708 NN |
18935 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18936 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18937 | ( |
18938 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18939 | eval ac_val=\$$ac_var | |
18940 | case $ac_val in #( | |
18941 | *${as_nl}*) | |
18942 | case $ac_var in #( | |
18943 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18944 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18945 | esac | |
18946 | case $ac_var in #( | |
18947 | _ | IFS | as_nl) ;; #( | |
18948 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18949 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18950 | esac ;; | |
18951 | esac | |
18952 | done | |
18953 | ||
1c710c3c | 18954 | (set) 2>&1 | |
5213506e RW |
18955 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18956 | *${as_nl}ac_space=\ *) | |
18957 | # `set' does not quote correctly, so add quotes: double-quote | |
18958 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18959 | sed -n \ |
18960 | "s/'/'\\\\''/g; | |
18961 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18962 | ;; #( |
1c710c3c DJ |
18963 | *) |
18964 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18965 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18966 | ;; |
5213506e RW |
18967 | esac | |
18968 | sort | |
18969 | ) | | |
1c710c3c | 18970 | sed ' |
5213506e | 18971 | /^ac_cv_env_/b end |
1c710c3c | 18972 | t clear |
5213506e | 18973 | :clear |
1c710c3c DJ |
18974 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18975 | t end | |
5213506e RW |
18976 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18977 | :end' >>confcache | |
18978 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18979 | if test -w "$cache_file"; then | |
22e05272 | 18980 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18981 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18982 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18983 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18984 | cat confcache >"$cache_file" | |
18985 | else | |
18986 | case $cache_file in #( | |
18987 | */* | ?:*) | |
18988 | mv -f confcache "$cache_file"$$ && | |
18989 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18990 | *) | |
18991 | mv -f confcache "$cache_file" ;; | |
18992 | esac | |
18993 | fi | |
18994 | fi | |
671aa708 | 18995 | else |
5213506e RW |
18996 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18997 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18998 | fi |
4977bab6 | 18999 | fi |
671aa708 | 19000 | rm -f confcache |
79c06341 | 19001 | |
671aa708 NN |
19002 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19003 | # Let make expand exec_prefix. | |
19004 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 19005 | |
671aa708 NN |
19006 | # Transform confdefs.h into DEFS. |
19007 | # Protect against shell expansion while executing Makefile rules. | |
19008 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
19009 | # |
19010 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 19011 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 19012 | # look for a macro that doesn't take arguments. |
5213506e RW |
19013 | ac_script=' |
19014 | :mline | |
19015 | /\\$/{ | |
19016 | N | |
19017 | s,\\\n,, | |
19018 | b mline | |
19019 | } | |
1c710c3c | 19020 | t clear |
5213506e RW |
19021 | :clear |
19022 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 19023 | t quote |
5213506e | 19024 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 19025 | t quote |
5213506e RW |
19026 | b any |
19027 | :quote | |
19028 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
19029 | s/\[/\\&/g | |
19030 | s/\]/\\&/g | |
19031 | s/\$/$$/g | |
19032 | H | |
19033 | :any | |
19034 | ${ | |
19035 | g | |
19036 | s/^\n// | |
19037 | s/\n/ /g | |
19038 | p | |
19039 | } | |
19040 | ' | |
19041 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
19042 | |
19043 | ||
19044 | ac_libobjs= | |
19045 | ac_ltlibobjs= | |
22e05272 | 19046 | U= |
1c710c3c DJ |
19047 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19048 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
19049 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
19050 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19051 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19052 | # will be set to the directory where LIBOBJS objects are built. | |
19053 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19054 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
19055 | done |
19056 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 19057 | |
1c710c3c | 19058 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 19059 | |
af71363e | 19060 | |
1c710c3c | 19061 | |
22e05272 | 19062 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 19063 | ac_write_fail=0 |
1c710c3c DJ |
19064 | ac_clean_files_save=$ac_clean_files |
19065 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
19066 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
19067 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19068 | as_write_fail=0 | |
19069 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
19070 | #! $SHELL |
19071 | # Generated by $as_me. | |
671aa708 | 19072 | # Run this file to recreate the current configuration. |
671aa708 | 19073 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 19074 | # configure, is in config.log if it exists. |
0b0dc272 | 19075 | |
1c710c3c DJ |
19076 | debug=false |
19077 | ac_cs_recheck=false | |
19078 | ac_cs_silent=false | |
1c710c3c | 19079 | |
5213506e RW |
19080 | SHELL=\${CONFIG_SHELL-$SHELL} |
19081 | export SHELL | |
19082 | _ASEOF | |
19083 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19084 | ## -------------------- ## | |
19085 | ## M4sh Initialization. ## | |
19086 | ## -------------------- ## | |
19087 | ||
19088 | # Be more Bourne compatible | |
19089 | DUALCASE=1; export DUALCASE # for MKS sh | |
19090 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
19091 | emulate sh |
19092 | NULLCMD=: | |
5213506e | 19093 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
19094 | # is contrary to our usage. Disable this feature. |
19095 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
19096 | setopt NO_GLOB_SUBST |
19097 | else | |
19098 | case `(set -o) 2>/dev/null` in #( | |
19099 | *posix*) : | |
19100 | set -o posix ;; #( | |
19101 | *) : | |
19102 | ;; | |
19103 | esac | |
1c710c3c | 19104 | fi |
1c710c3c | 19105 | |
5213506e RW |
19106 | |
19107 | as_nl=' | |
19108 | ' | |
19109 | export as_nl | |
19110 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19111 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19112 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19113 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19114 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19115 | # but without wasting forks for bash or zsh. | |
19116 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19117 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19118 | as_echo='print -r --' | |
19119 | as_echo_n='print -rn --' | |
19120 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19121 | as_echo='printf %s\n' | |
19122 | as_echo_n='printf %s' | |
19123 | else | |
19124 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19125 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19126 | as_echo_n='/usr/ucb/echo -n' | |
19127 | else | |
19128 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19129 | as_echo_n_body='eval | |
19130 | arg=$1; | |
19131 | case $arg in #( | |
19132 | *"$as_nl"*) | |
19133 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19134 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19135 | esac; | |
19136 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19137 | ' | |
19138 | export as_echo_n_body | |
19139 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19140 | fi | |
19141 | export as_echo_body | |
19142 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
19143 | fi |
19144 | ||
5213506e RW |
19145 | # The user is always right. |
19146 | if test "${PATH_SEPARATOR+set}" != set; then | |
19147 | PATH_SEPARATOR=: | |
19148 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19149 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19150 | PATH_SEPARATOR=';' | |
19151 | } | |
19152 | fi | |
19153 | ||
19154 | ||
19155 | # IFS | |
19156 | # We need space, tab and new line, in precisely that order. Quoting is | |
19157 | # there to prevent editors from complaining about space-tab. | |
19158 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19159 | # splitting by setting IFS to empty value.) | |
19160 | IFS=" "" $as_nl" | |
19161 | ||
19162 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 19163 | as_myself= |
5213506e RW |
19164 | case $0 in #(( |
19165 | *[\\/]* ) as_myself=$0 ;; | |
19166 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19167 | for as_dir in $PATH | |
19168 | do | |
19169 | IFS=$as_save_IFS | |
19170 | test -z "$as_dir" && as_dir=. | |
19171 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19172 | done | |
19173 | IFS=$as_save_IFS | |
19174 | ||
19175 | ;; | |
19176 | esac | |
19177 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19178 | # in which case we are not to be found in the path. | |
19179 | if test "x$as_myself" = x; then | |
19180 | as_myself=$0 | |
19181 | fi | |
19182 | if test ! -f "$as_myself"; then | |
19183 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19184 | exit 1 | |
19185 | fi | |
1c710c3c | 19186 | |
5213506e RW |
19187 | # Unset variables that we do not need and which cause bugs (e.g. in |
19188 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19189 | # suppresses any "Segmentation fault" message there. '((' could | |
19190 | # trigger a bug in pdksh 5.2.14. | |
19191 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19192 | do eval test x\${$as_var+set} = xset \ | |
19193 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19194 | done | |
1c710c3c DJ |
19195 | PS1='$ ' |
19196 | PS2='> ' | |
19197 | PS4='+ ' | |
19198 | ||
19199 | # NLS nuisances. | |
5213506e RW |
19200 | LC_ALL=C |
19201 | export LC_ALL | |
19202 | LANGUAGE=C | |
19203 | export LANGUAGE | |
19204 | ||
19205 | # CDPATH. | |
19206 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19207 | ||
19208 | ||
22e05272 JM |
19209 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
19210 | # ---------------------------------------- | |
5213506e RW |
19211 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
19212 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 19213 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
19214 | as_fn_error () |
19215 | { | |
22e05272 JM |
19216 | as_status=$1; test $as_status -eq 0 && as_status=1 |
19217 | if test "$4"; then | |
19218 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19219 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 19220 | fi |
22e05272 | 19221 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
19222 | as_fn_exit $as_status |
19223 | } # as_fn_error | |
19224 | ||
19225 | ||
19226 | # as_fn_set_status STATUS | |
19227 | # ----------------------- | |
19228 | # Set $? to STATUS, without forking. | |
19229 | as_fn_set_status () | |
19230 | { | |
19231 | return $1 | |
19232 | } # as_fn_set_status | |
19233 | ||
19234 | # as_fn_exit STATUS | |
19235 | # ----------------- | |
19236 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19237 | as_fn_exit () | |
19238 | { | |
19239 | set +e | |
19240 | as_fn_set_status $1 | |
19241 | exit $1 | |
19242 | } # as_fn_exit | |
19243 | ||
19244 | # as_fn_unset VAR | |
19245 | # --------------- | |
19246 | # Portably unset VAR. | |
19247 | as_fn_unset () | |
19248 | { | |
19249 | { eval $1=; unset $1;} | |
19250 | } | |
19251 | as_unset=as_fn_unset | |
19252 | # as_fn_append VAR VALUE | |
19253 | # ---------------------- | |
19254 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19255 | # advantage of any shell optimizations that allow amortized linear growth over | |
19256 | # repeated appends, instead of the typical quadratic growth present in naive | |
19257 | # implementations. | |
19258 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19259 | eval 'as_fn_append () | |
19260 | { | |
19261 | eval $1+=\$2 | |
19262 | }' | |
19263 | else | |
19264 | as_fn_append () | |
19265 | { | |
19266 | eval $1=\$$1\$2 | |
19267 | } | |
19268 | fi # as_fn_append | |
19269 | ||
19270 | # as_fn_arith ARG... | |
19271 | # ------------------ | |
19272 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19273 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19274 | # must be portable across $(()) and expr. | |
19275 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19276 | eval 'as_fn_arith () | |
19277 | { | |
19278 | as_val=$(( $* )) | |
19279 | }' | |
19280 | else | |
19281 | as_fn_arith () | |
19282 | { | |
19283 | as_val=`expr "$@" || test $? -eq 1` | |
19284 | } | |
19285 | fi # as_fn_arith | |
19286 | ||
1c710c3c | 19287 | |
5213506e RW |
19288 | if expr a : '\(a\)' >/dev/null 2>&1 && |
19289 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
19290 | as_expr=expr |
19291 | else | |
19292 | as_expr=false | |
19293 | fi | |
19294 | ||
5213506e | 19295 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
19296 | as_basename=basename |
19297 | else | |
19298 | as_basename=false | |
19299 | fi | |
19300 | ||
5213506e RW |
19301 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
19302 | as_dirname=dirname | |
19303 | else | |
19304 | as_dirname=false | |
19305 | fi | |
1c710c3c | 19306 | |
5213506e | 19307 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
19308 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19309 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
19310 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
19311 | $as_echo X/"$0" | | |
19312 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19313 | s//\1/ | |
19314 | q | |
19315 | } | |
19316 | /^X\/\(\/\/\)$/{ | |
19317 | s//\1/ | |
19318 | q | |
19319 | } | |
19320 | /^X\/\(\/\).*/{ | |
19321 | s//\1/ | |
19322 | q | |
19323 | } | |
19324 | s/.*/./; q'` | |
2aeb72e9 | 19325 | |
2aeb72e9 DD |
19326 | # Avoid depending upon Character Ranges. |
19327 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19328 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19329 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19330 | as_cr_digits='0123456789' | |
19331 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19332 | ||
5213506e RW |
19333 | ECHO_C= ECHO_N= ECHO_T= |
19334 | case `echo -n x` in #((((( | |
19335 | -n*) | |
19336 | case `echo 'xy\c'` in | |
19337 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19338 | xy) ECHO_C='\c';; | |
19339 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19340 | ECHO_T=' ';; | |
19341 | esac;; | |
19342 | *) | |
19343 | ECHO_N='-n';; | |
1c710c3c DJ |
19344 | esac |
19345 | ||
5213506e RW |
19346 | rm -f conf$$ conf$$.exe conf$$.file |
19347 | if test -d conf$$.dir; then | |
19348 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 19349 | else |
5213506e RW |
19350 | rm -f conf$$.dir |
19351 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 19352 | fi |
5213506e RW |
19353 | if (echo >conf$$.file) 2>/dev/null; then |
19354 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 19355 | as_ln_s='ln -s' |
5213506e RW |
19356 | # ... but there are two gotchas: |
19357 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19358 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 19359 | # In both cases, we have to default to `cp -pR'. |
5213506e | 19360 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 19361 | as_ln_s='cp -pR' |
5213506e RW |
19362 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19363 | as_ln_s=ln | |
19364 | else | |
22e05272 | 19365 | as_ln_s='cp -pR' |
2aeb72e9 | 19366 | fi |
1c710c3c | 19367 | else |
22e05272 | 19368 | as_ln_s='cp -pR' |
1c710c3c | 19369 | fi |
5213506e RW |
19370 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19371 | rmdir conf$$.dir 2>/dev/null | |
19372 | ||
19373 | ||
19374 | # as_fn_mkdir_p | |
19375 | # ------------- | |
19376 | # Create "$as_dir" as a directory, including parents if necessary. | |
19377 | as_fn_mkdir_p () | |
19378 | { | |
19379 | ||
19380 | case $as_dir in #( | |
19381 | -*) as_dir=./$as_dir;; | |
19382 | esac | |
19383 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19384 | as_dirs= | |
19385 | while :; do | |
19386 | case $as_dir in #( | |
19387 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19388 | *) as_qdir=$as_dir;; | |
19389 | esac | |
19390 | as_dirs="'$as_qdir' $as_dirs" | |
19391 | as_dir=`$as_dirname -- "$as_dir" || | |
19392 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19393 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19394 | X"$as_dir" : 'X\(//\)$' \| \ | |
19395 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19396 | $as_echo X"$as_dir" | | |
19397 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19398 | s//\1/ | |
19399 | q | |
19400 | } | |
19401 | /^X\(\/\/\)[^/].*/{ | |
19402 | s//\1/ | |
19403 | q | |
19404 | } | |
19405 | /^X\(\/\/\)$/{ | |
19406 | s//\1/ | |
19407 | q | |
19408 | } | |
19409 | /^X\(\/\).*/{ | |
19410 | s//\1/ | |
19411 | q | |
19412 | } | |
19413 | s/.*/./; q'` | |
19414 | test -d "$as_dir" && break | |
19415 | done | |
19416 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 19417 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 19418 | |
1c710c3c | 19419 | |
5213506e | 19420 | } # as_fn_mkdir_p |
1c710c3c | 19421 | if mkdir -p . 2>/dev/null; then |
5213506e | 19422 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
19423 | else |
19424 | test -d ./-p && rmdir ./-p | |
19425 | as_mkdir_p=false | |
19426 | fi | |
19427 | ||
22e05272 JM |
19428 | |
19429 | # as_fn_executable_p FILE | |
19430 | # ----------------------- | |
19431 | # Test if FILE is an executable regular file. | |
19432 | as_fn_executable_p () | |
19433 | { | |
19434 | test -f "$1" && test -x "$1" | |
19435 | } # as_fn_executable_p | |
19436 | as_test_x='test -x' | |
19437 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
19438 | |
19439 | # Sed expression to map a string onto a valid CPP name. | |
19440 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19441 | ||
19442 | # Sed expression to map a string onto a valid variable name. | |
19443 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19444 | ||
19445 | ||
1c710c3c | 19446 | exec 6>&1 |
5213506e RW |
19447 | ## ----------------------------------- ## |
19448 | ## Main body of $CONFIG_STATUS script. ## | |
19449 | ## ----------------------------------- ## | |
19450 | _ASEOF | |
19451 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19452 | ||
19453 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19454 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 19455 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
19456 | # values after options handling. |
19457 | ac_log=" | |
1c710c3c | 19458 | This file was extended by $as_me, which was |
22e05272 | 19459 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
19460 | |
19461 | CONFIG_FILES = $CONFIG_FILES | |
19462 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19463 | CONFIG_LINKS = $CONFIG_LINKS | |
19464 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19465 | $ $0 $@ | |
19466 | ||
5213506e RW |
19467 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19468 | " | |
19469 | ||
1c710c3c DJ |
19470 | _ACEOF |
19471 | ||
5213506e RW |
19472 | case $ac_config_files in *" |
19473 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19474 | esac | |
1c710c3c | 19475 | |
2aeb72e9 | 19476 | |
2aeb72e9 | 19477 | |
5213506e RW |
19478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19479 | # Files that config.status was made for. | |
19480 | config_files="$ac_config_files" | |
1c710c3c | 19481 | |
5213506e | 19482 | _ACEOF |
2aeb72e9 | 19483 | |
5213506e | 19484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 19485 | ac_cs_usage="\ |
5213506e RW |
19486 | \`$as_me' instantiates files and other configuration actions |
19487 | from templates according to the current configuration. Unless the files | |
19488 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 19489 | |
5213506e | 19490 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
19491 | |
19492 | -h, --help print this help, then exit | |
5213506e | 19493 | -V, --version print version number and configuration settings, then exit |
22e05272 | 19494 | --config print configuration, then exit |
5213506e RW |
19495 | -q, --quiet, --silent |
19496 | do not print progress messages | |
1c710c3c DJ |
19497 | -d, --debug don't remove temporary files |
19498 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
19499 | --file=FILE[:TEMPLATE] |
19500 | instantiate the configuration file FILE | |
1c710c3c DJ |
19501 | |
19502 | Configuration files: | |
19503 | $config_files | |
19504 | ||
5213506e | 19505 | Report bugs to the package provider." |
2aeb72e9 | 19506 | |
5213506e RW |
19507 | _ACEOF |
19508 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19509 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
19510 | ac_cs_version="\\ |
19511 | config.status | |
22e05272 JM |
19512 | configured by $0, generated by GNU Autoconf 2.69, |
19513 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 19514 | |
22e05272 | 19515 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
19516 | This config.status script is free software; the Free Software Foundation |
19517 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
19518 | |
19519 | ac_pwd='$ac_pwd' | |
19520 | srcdir='$srcdir' | |
19521 | INSTALL='$INSTALL' | |
87264276 | 19522 | AWK='$AWK' |
5213506e | 19523 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
19524 | _ACEOF |
19525 | ||
5213506e RW |
19526 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19527 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
19528 | ac_need_defaults=: |
19529 | while test $# != 0 | |
a4b9e93e | 19530 | do |
1c710c3c | 19531 | case $1 in |
22e05272 | 19532 | --*=?*) |
5213506e RW |
19533 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19534 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
19535 | ac_shift=: |
19536 | ;; | |
22e05272 JM |
19537 | --*=) |
19538 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19539 | ac_optarg= | |
19540 | ac_shift=: | |
19541 | ;; | |
5213506e | 19542 | *) |
1c710c3c DJ |
19543 | ac_option=$1 |
19544 | ac_optarg=$2 | |
19545 | ac_shift=shift | |
19546 | ;; | |
1c710c3c DJ |
19547 | esac |
19548 | ||
19549 | case $ac_option in | |
19550 | # Handling of the options. | |
671aa708 | 19551 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 19552 | ac_cs_recheck=: ;; |
5213506e RW |
19553 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19554 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
19555 | --config | --confi | --conf | --con | --co | --c ) |
19556 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 19557 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
19558 | debug=: ;; |
19559 | --file | --fil | --fi | --f ) | |
19560 | $ac_shift | |
5213506e RW |
19561 | case $ac_optarg in |
19562 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 19563 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
19564 | esac |
19565 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 19566 | ac_need_defaults=false;; |
5213506e RW |
19567 | --he | --h | --help | --hel | -h ) |
19568 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
19569 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19570 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19571 | ac_cs_silent=: ;; | |
19572 | ||
19573 | # This is an error. | |
22e05272 | 19574 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 19575 | Try \`$0 --help' for more information." ;; |
1c710c3c | 19576 | |
5213506e RW |
19577 | *) as_fn_append ac_config_targets " $1" |
19578 | ac_need_defaults=false ;; | |
1c710c3c | 19579 | |
0b0dc272 | 19580 | esac |
1c710c3c | 19581 | shift |
0b0dc272 AM |
19582 | done |
19583 | ||
1c710c3c | 19584 | ac_configure_extra_args= |
0b0dc272 | 19585 | |
1c710c3c DJ |
19586 | if $ac_cs_silent; then |
19587 | exec 6>/dev/null | |
19588 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19589 | fi | |
0b0dc272 | 19590 | |
1c710c3c | 19591 | _ACEOF |
5213506e | 19592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 19593 | if \$ac_cs_recheck; then |
22e05272 | 19594 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
19595 | shift |
19596 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19597 | CONFIG_SHELL='$SHELL' | |
19598 | export CONFIG_SHELL | |
19599 | exec "\$@" | |
1c710c3c DJ |
19600 | fi |
19601 | ||
19602 | _ACEOF | |
5213506e RW |
19603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19604 | exec 5>>config.log | |
19605 | { | |
19606 | echo | |
19607 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19608 | ## Running $as_me. ## | |
19609 | _ASBOX | |
19610 | $as_echo "$ac_log" | |
19611 | } >&5 | |
1c710c3c | 19612 | |
5213506e RW |
19613 | _ACEOF |
19614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
19615 | # |
19616 | # INIT-COMMANDS | |
19617 | # | |
19618 | extrasub_build="$extrasub_build" | |
19619 | extrasub_host="$extrasub_host" | |
19620 | extrasub_target="$extrasub_target" | |
19621 | ||
5213506e | 19622 | _ACEOF |
1c710c3c | 19623 | |
5213506e | 19624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 19625 | |
5213506e | 19626 | # Handling of arguments. |
1c710c3c DJ |
19627 | for ac_config_target in $ac_config_targets |
19628 | do | |
5213506e RW |
19629 | case $ac_config_target in |
19630 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19631 | ||
22e05272 | 19632 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
19633 | esac |
19634 | done | |
19635 | ||
5213506e | 19636 | |
1c710c3c DJ |
19637 | # If the user did not use the arguments to specify the items to instantiate, |
19638 | # then the envvar interface is used. Set only those that are not. | |
19639 | # We use the long form for the default assignment because of an extremely | |
19640 | # bizarre bug on SunOS 4.1.3. | |
19641 | if $ac_need_defaults; then | |
19642 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19643 | fi | |
19644 | ||
19645 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 19646 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19647 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19648 | # Hook for its removal unless debugging. |
19649 | # Note that there is a small window in which the directory will not be cleaned: | |
19650 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19651 | $debug || |
19652 | { | |
22e05272 | 19653 | tmp= ac_tmp= |
5213506e | 19654 | trap 'exit_status=$? |
22e05272 JM |
19655 | : "${ac_tmp:=$tmp}" |
19656 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19657 | ' 0 |
19658 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19659 | } |
1c710c3c DJ |
19660 | # Create a (secure) tmp directory for tmp files. |
19661 | ||
19662 | { | |
5213506e | 19663 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19664 | test -d "$tmp" |
1c710c3c DJ |
19665 | } || |
19666 | { | |
5213506e RW |
19667 | tmp=./conf$$-$RANDOM |
19668 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19669 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19670 | ac_tmp=$tmp | |
5213506e RW |
19671 | |
19672 | # Set up the scripts for CONFIG_FILES section. | |
19673 | # No need to generate them if there are no CONFIG_FILES. | |
19674 | # This happens for instance with `./config.status config.h'. | |
19675 | if test -n "$CONFIG_FILES"; then | |
19676 | ||
19677 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19678 | ac_cs_awk_getline=: | |
19679 | ac_cs_awk_pipe_init= | |
19680 | ac_cs_awk_read_file=' | |
19681 | while ((getline aline < (F[key])) > 0) | |
19682 | print(aline) | |
19683 | close(F[key])' | |
19684 | ac_cs_awk_pipe_fini= | |
19685 | else | |
19686 | ac_cs_awk_getline=false | |
19687 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19688 | ac_cs_awk_read_file=' | |
19689 | print "|#_!!_#|" | |
19690 | print "cat " F[key] " &&" | |
19691 | '$ac_cs_awk_pipe_init | |
19692 | # The final `:' finishes the AND list. | |
19693 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19694 | fi | |
19695 | ac_cr=`echo X | tr X '\015'` | |
19696 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19697 | # But we know of no other shell where ac_cr would be empty at this | |
19698 | # point, so we can use a bashism as a fallback. | |
19699 | if test "x$ac_cr" = x; then | |
19700 | eval ac_cr=\$\'\\r\' | |
19701 | fi | |
19702 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19703 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19704 | ac_cs_awk_cr='\\r' |
5213506e RW |
19705 | else |
19706 | ac_cs_awk_cr=$ac_cr | |
19707 | fi | |
19708 | ||
22e05272 | 19709 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19710 | _ACEOF |
19711 | ||
19712 | # Create commands to substitute file output variables. | |
1c710c3c | 19713 | { |
5213506e | 19714 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19715 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19716 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19717 | echo "_ACAWK" && | |
19718 | echo "_ACEOF" | |
19719 | } >conf$$files.sh && | |
19720 | . ./conf$$files.sh || | |
22e05272 | 19721 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19722 | rm -f conf$$files.sh |
1c710c3c | 19723 | |
5213506e RW |
19724 | { |
19725 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19726 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19727 | echo "_ACEOF" | |
19728 | } >conf$$subs.sh || | |
22e05272 JM |
19729 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19730 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19731 | ac_delim='%!_!# ' |
19732 | for ac_last_try in false false false false false :; do | |
19733 | . ./conf$$subs.sh || | |
22e05272 | 19734 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19735 | |
19736 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19737 | if test $ac_delim_n = $ac_delim_num; then | |
19738 | break | |
19739 | elif $ac_last_try; then | |
22e05272 | 19740 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19741 | else |
19742 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19743 | fi | |
19744 | done | |
19745 | rm -f conf$$subs.sh | |
19746 | ||
19747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19748 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19749 | _ACEOF |
5213506e RW |
19750 | sed -n ' |
19751 | h | |
19752 | s/^/S["/; s/!.*/"]=/ | |
19753 | p | |
19754 | g | |
19755 | s/^[^!]*!// | |
19756 | :repl | |
19757 | t repl | |
19758 | s/'"$ac_delim"'$// | |
19759 | t delim | |
19760 | :nl | |
19761 | h | |
22e05272 | 19762 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19763 | t more1 |
19764 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19765 | p | |
19766 | n | |
19767 | b repl | |
19768 | :more1 | |
19769 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19770 | p | |
19771 | g | |
19772 | s/.\{148\}// | |
19773 | t nl | |
19774 | :delim | |
19775 | h | |
22e05272 | 19776 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19777 | t more2 |
19778 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19779 | p | |
19780 | b | |
19781 | :more2 | |
19782 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19783 | p | |
19784 | g | |
19785 | s/.\{148\}// | |
19786 | t delim | |
19787 | ' <conf$$subs.awk | sed ' | |
19788 | /^[^""]/{ | |
19789 | N | |
19790 | s/\n// | |
19791 | } | |
19792 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19793 | rm -f conf$$subs.awk | |
19794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19795 | _ACAWK | |
22e05272 | 19796 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19797 | for (key in S) S_is_set[key] = 1 |
19798 | FS = "\a" | |
19799 | \$ac_cs_awk_pipe_init | |
19800 | } | |
19801 | { | |
19802 | line = $ 0 | |
19803 | nfields = split(line, field, "@") | |
19804 | substed = 0 | |
19805 | len = length(field[1]) | |
19806 | for (i = 2; i < nfields; i++) { | |
19807 | key = field[i] | |
19808 | keylen = length(key) | |
19809 | if (S_is_set[key]) { | |
19810 | value = S[key] | |
19811 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19812 | len += length(value) + length(field[++i]) | |
19813 | substed = 1 | |
19814 | } else | |
19815 | len += 1 + keylen | |
19816 | } | |
19817 | if (nfields == 3 && !substed) { | |
19818 | key = field[2] | |
19819 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19820 | \$ac_cs_awk_read_file | |
19821 | next | |
19822 | } | |
19823 | } | |
19824 | print line | |
19825 | } | |
19826 | \$ac_cs_awk_pipe_fini | |
19827 | _ACAWK | |
19828 | _ACEOF | |
19829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19830 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19831 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19832 | else | |
19833 | cat | |
22e05272 JM |
19834 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19835 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19836 | _ACEOF |
19837 | ||
22e05272 JM |
19838 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19839 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19840 | # trailing colons and then remove the whole line if VPATH becomes empty |
19841 | # (actually we leave an empty line to preserve line numbers). | |
19842 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19843 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19844 | h | |
19845 | s/// | |
19846 | s/^/:/ | |
19847 | s/[ ]*$/:/ | |
19848 | s/:\$(srcdir):/:/g | |
19849 | s/:\${srcdir}:/:/g | |
19850 | s/:@srcdir@:/:/g | |
19851 | s/^:*// | |
5213506e | 19852 | s/:*$// |
22e05272 JM |
19853 | x |
19854 | s/\(=[ ]*\).*/\1/ | |
19855 | G | |
19856 | s/\n// | |
5213506e RW |
19857 | s/^[^=]*=[ ]*$// |
19858 | }' | |
19859 | fi | |
2aeb72e9 | 19860 | |
5213506e RW |
19861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19862 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19863 | |
1c710c3c | 19864 | |
5213506e RW |
19865 | eval set X " :F $CONFIG_FILES " |
19866 | shift | |
19867 | for ac_tag | |
19868 | do | |
19869 | case $ac_tag in | |
19870 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19871 | esac | |
19872 | case $ac_mode$ac_tag in | |
19873 | :[FHL]*:*);; | |
22e05272 | 19874 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19875 | :[FH]-) ac_tag=-:-;; |
19876 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19877 | esac | |
19878 | ac_save_IFS=$IFS | |
19879 | IFS=: | |
19880 | set x $ac_tag | |
19881 | IFS=$ac_save_IFS | |
19882 | shift | |
19883 | ac_file=$1 | |
19884 | shift | |
79c06341 | 19885 | |
5213506e RW |
19886 | case $ac_mode in |
19887 | :L) ac_source=$1;; | |
19888 | :[FH]) | |
19889 | ac_file_inputs= | |
19890 | for ac_f | |
19891 | do | |
19892 | case $ac_f in | |
22e05272 | 19893 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19894 | *) # Look for the file first in the build tree, then in the source tree |
19895 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19896 | # because $ac_f cannot contain `:'. | |
19897 | test -f "$ac_f" || | |
19898 | case $ac_f in | |
19899 | [\\/$]*) false;; | |
19900 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19901 | esac || | |
22e05272 | 19902 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19903 | esac |
19904 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19905 | as_fn_append ac_file_inputs " '$ac_f'" | |
19906 | done | |
1c710c3c | 19907 | |
5213506e RW |
19908 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19909 | # use $as_me), people would be surprised to read: | |
19910 | # /* config.h. Generated by config.status. */ | |
19911 | configure_input='Generated from '` | |
19912 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19913 | `' by configure.' | |
19914 | if test x"$ac_file" != x-; then | |
19915 | configure_input="$ac_file. $configure_input" | |
19916 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19917 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19918 | fi |
5213506e RW |
19919 | # Neutralize special characters interpreted by sed in replacement strings. |
19920 | case $configure_input in #( | |
19921 | *\&* | *\|* | *\\* ) | |
19922 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19923 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19924 | *) ac_sed_conf_input=$configure_input;; | |
19925 | esac | |
11a67599 | 19926 | |
5213506e | 19927 | case $ac_tag in |
22e05272 JM |
19928 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19929 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19930 | esac |
19931 | ;; | |
11a67599 ZW |
19932 | esac |
19933 | ||
5213506e | 19934 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19935 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19936 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19937 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19938 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19939 | $as_echo X"$ac_file" | | |
19940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19941 | s//\1/ | |
19942 | q | |
19943 | } | |
19944 | /^X\(\/\/\)[^/].*/{ | |
19945 | s//\1/ | |
19946 | q | |
19947 | } | |
19948 | /^X\(\/\/\)$/{ | |
19949 | s//\1/ | |
19950 | q | |
19951 | } | |
19952 | /^X\(\/\).*/{ | |
19953 | s//\1/ | |
19954 | q | |
19955 | } | |
19956 | s/.*/./; q'` | |
19957 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19958 | ac_builddir=. |
0b0dc272 | 19959 | |
5213506e RW |
19960 | case "$ac_dir" in |
19961 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19962 | *) | |
19963 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19964 | # A ".." for each directory in $ac_dir_suffix. | |
19965 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19966 | case $ac_top_builddir_sub in | |
19967 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19968 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19969 | esac ;; | |
19970 | esac | |
19971 | ac_abs_top_builddir=$ac_pwd | |
19972 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19973 | # for backward compatibility: | |
19974 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19975 | |
19976 | case $srcdir in | |
5213506e | 19977 | .) # We are building in place. |
1c710c3c | 19978 | ac_srcdir=. |
5213506e RW |
19979 | ac_top_srcdir=$ac_top_builddir_sub |
19980 | ac_abs_top_srcdir=$ac_pwd ;; | |
19981 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19982 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19983 | ac_top_srcdir=$srcdir |
19984 | ac_abs_top_srcdir=$srcdir ;; | |
19985 | *) # Relative name. | |
19986 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19987 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19988 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19989 | esac |
5213506e | 19990 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19991 | |
0b0dc272 | 19992 | |
5213506e RW |
19993 | case $ac_mode in |
19994 | :F) | |
19995 | # | |
19996 | # CONFIG_FILE | |
19997 | # | |
1c710c3c DJ |
19998 | |
19999 | case $INSTALL in | |
20000 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 20001 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 20002 | esac |
5213506e | 20003 | _ACEOF |
11a67599 | 20004 | |
5213506e RW |
20005 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20006 | # If the template does not know about datarootdir, expand it. | |
20007 | # FIXME: This hack should be removed a few years after 2.60. | |
20008 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
20009 | ac_sed_dataroot=' | |
20010 | /datarootdir/ { | |
20011 | p | |
20012 | q | |
20013 | } | |
20014 | /@datadir@/p | |
20015 | /@docdir@/p | |
20016 | /@infodir@/p | |
20017 | /@localedir@/p | |
20018 | /@mandir@/p' | |
20019 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20020 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20021 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20023 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 20024 | _ACEOF |
5213506e RW |
20025 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
20026 | ac_datarootdir_hack=' | |
20027 | s&@datadir@&$datadir&g | |
20028 | s&@docdir@&$docdir&g | |
20029 | s&@infodir@&$infodir&g | |
20030 | s&@localedir@&$localedir&g | |
20031 | s&@mandir@&$mandir&g | |
20032 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20033 | esac | |
20034 | _ACEOF | |
20035 | ||
20036 | # Neutralize VPATH when `$srcdir' = `.'. | |
20037 | # Shell code in configure.ac might set extrasub. | |
20038 | # FIXME: do we really want to maintain this feature? | |
20039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20040 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
20041 | $extrasub |
20042 | _ACEOF | |
5213506e | 20043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
20044 | :t |
20045 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
20046 | s|@configure_input@|$ac_sed_conf_input|;t t |
20047 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20048 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20049 | s&@srcdir@&$ac_srcdir&;t t | |
20050 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20051 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20052 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20053 | s&@builddir@&$ac_builddir&;t t | |
20054 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20055 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20056 | s&@INSTALL@&$ac_INSTALL&;t t | |
20057 | $ac_datarootdir_hack | |
20058 | " | |
20059 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
20060 | if $ac_cs_awk_getline; then | |
22e05272 | 20061 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 20062 | else |
22e05272 JM |
20063 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
20064 | fi \ | |
20065 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
20066 | |
20067 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
20068 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
20069 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
20070 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 20071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 20072 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 20073 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 20074 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 20075 | |
22e05272 | 20076 | rm -f "$ac_tmp/stdin" |
5213506e | 20077 | case $ac_file in |
22e05272 JM |
20078 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
20079 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 20080 | esac \ |
22e05272 | 20081 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 20082 | ;; |
11a67599 | 20083 | |
11a67599 | 20084 | |
79c06341 | 20085 | |
5213506e RW |
20086 | esac |
20087 | ||
3e54529c RW |
20088 | |
20089 | case $ac_file$ac_mode in | |
20090 | "Makefile":F) sed "$extrasub_build" Makefile | | |
20091 | sed "$extrasub_host" | | |
20092 | sed "$extrasub_target" > mf$$ | |
20093 | mv -f mf$$ Makefile ;; | |
20094 | ||
20095 | esac | |
5213506e RW |
20096 | done # for ac_tag |
20097 | ||
20098 | ||
20099 | as_fn_exit 0 | |
1c710c3c | 20100 | _ACEOF |
1c710c3c DJ |
20101 | ac_clean_files=$ac_clean_files_save |
20102 | ||
5213506e | 20103 | test $ac_write_fail = 0 || |
22e05272 | 20104 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 20105 | |
1c710c3c DJ |
20106 | |
20107 | # configure is writing to config.log, and then calls config.status. | |
20108 | # config.status does its own redirection, appending to config.log. | |
20109 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20110 | # by configure, so config.status won't be able to write to it; its | |
20111 | # output is simply discarded. So we exec the FD to /dev/null, | |
20112 | # effectively closing config.log, so it can be properly (re)opened and | |
20113 | # appended to by config.status. When coming back to configure, we | |
20114 | # need to make the FD available again. | |
20115 | if test "$no_create" != yes; then | |
20116 | ac_cs_success=: | |
20117 | ac_config_status_args= | |
20118 | test "$silent" = yes && | |
20119 | ac_config_status_args="$ac_config_status_args --quiet" | |
20120 | exec 5>/dev/null | |
20121 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20122 | exec 5>>config.log | |
20123 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20124 | # would make configure fail if this is the last instruction. | |
22e05272 | 20125 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
20126 | fi |
20127 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20129 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 20130 | fi |
79c06341 | 20131 |