]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
c6b750e1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 211 | do |
81ecdfbb RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
81ecdfbb RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 266 | else |
81ecdfbb RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 271 | fi |
81ecdfbb RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
c6b750e1 | 301 | |
81ecdfbb RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
81ecdfbb RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
81ecdfbb RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
c6b750e1 | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
c6b750e1 | 456 | |
c6b750e1 DJ |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
c6b750e1 | 464 | |
81ecdfbb RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
c6b750e1 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
c6b750e1 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
c6b750e1 | 484 | ' >$as_me.lineno && |
81ecdfbb RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 | 487 | |
d0ac1c44 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
c6b750e1 DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
c6b750e1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
81ecdfbb RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
c6b750e1 DJ |
511 | esac |
512 | ||
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 522 | as_ln_s='ln -s' |
81ecdfbb RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
c6b750e1 | 533 | fi |
c6b750e1 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
c6b750e1 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
a0da8069 | 559 | |
c6b750e1 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c6b750e1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
c6b750e1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
a0da8069 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
c6b750e1 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
c6b750e1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
c6b750e1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
c6b750e1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
b121d7d4 | 604 | READELF_FOR_TARGET |
81ecdfbb | 605 | RANLIB_FOR_TARGET |
228cf97d | 606 | OTOOL_FOR_TARGET |
81ecdfbb | 607 | OBJDUMP_FOR_TARGET |
6b91c541 | 608 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
228cf97d | 612 | DSYMUTIL_FOR_TARGET |
81ecdfbb RW |
613 | DLLTOOL_FOR_TARGET |
614 | AS_FOR_TARGET | |
615 | AR_FOR_TARGET | |
228cf97d | 616 | GDC_FOR_TARGET |
e552509b | 617 | GOC_FOR_TARGET |
81ecdfbb | 618 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
619 | GCC_FOR_TARGET |
620 | CXX_FOR_TARGET | |
621 | CC_FOR_TARGET | |
50ad1254 L |
622 | RANLIB_PLUGIN_OPTION |
623 | AR_PLUGIN_OPTION | |
9e65489a | 624 | PKG_CONFIG_PATH |
228cf97d | 625 | GDCFLAGS |
b121d7d4 | 626 | READELF |
228cf97d | 627 | OTOOL |
81ecdfbb RW |
628 | OBJDUMP |
629 | OBJCOPY | |
630 | WINDMC | |
631 | WINDRES | |
632 | STRIP | |
633 | RANLIB | |
634 | NM | |
635 | LIPO | |
636 | LD | |
228cf97d | 637 | DSYMUTIL |
81ecdfbb RW |
638 | DLLTOOL |
639 | AS | |
640 | AR | |
641 | RUNTEST | |
642 | EXPECT | |
643 | MAKEINFO | |
644 | FLEX | |
645 | LEX | |
646 | M4 | |
647 | BISON | |
648 | YACC | |
81ecdfbb RW |
649 | WINDRES_FOR_BUILD |
650 | WINDMC_FOR_BUILD | |
651 | RANLIB_FOR_BUILD | |
652 | NM_FOR_BUILD | |
653 | LD_FOR_BUILD | |
654 | LDFLAGS_FOR_BUILD | |
228cf97d | 655 | GDC_FOR_BUILD |
e552509b | 656 | GOC_FOR_BUILD |
81ecdfbb | 657 | GFORTRAN_FOR_BUILD |
228cf97d | 658 | DSYMUTIL_FOR_BUILD |
81ecdfbb RW |
659 | DLLTOOL_FOR_BUILD |
660 | CXX_FOR_BUILD | |
661 | CXXFLAGS_FOR_BUILD | |
e472ec9f | 662 | CPPFLAGS_FOR_BUILD |
228cf97d | 663 | CPP_FOR_BUILD |
81ecdfbb RW |
664 | CFLAGS_FOR_BUILD |
665 | CC_FOR_BUILD | |
666 | AS_FOR_BUILD | |
667 | AR_FOR_BUILD | |
911e63d0 | 668 | target_configdirs |
81ecdfbb | 669 | configdirs |
81ecdfbb | 670 | build_configdirs |
81ecdfbb RW |
671 | INSTALL_GDB_TK |
672 | GDB_TK | |
673 | CONFIGURE_GDB_TK | |
674 | build_tooldir | |
675 | tooldir | |
676 | GCC_SHLIB_SUBDIR | |
677 | RPATH_ENVVAR | |
4074d5f2 RW |
678 | target_configargs |
679 | host_configargs | |
680 | build_configargs | |
96655cc4 | 681 | BUILD_CONFIG |
91c1f14c | 682 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
683 | CXXFLAGS_FOR_TARGET |
684 | CFLAGS_FOR_TARGET | |
685 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
686 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 687 | get_gcc_base_ver |
e81d5d05 | 688 | extra_host_zlib_configure_flags |
700d40ca | 689 | extra_host_libiberty_configure_flags |
1b6c0831 | 690 | stage1_languages |
bf41f30d | 691 | host_shared |
1b6c0831 L |
692 | extra_linker_plugin_flags |
693 | extra_linker_plugin_configure_flags | |
7ec59b9e | 694 | islinc |
1b6c0831 | 695 | isllibs |
81ecdfbb | 696 | poststage1_ldflags |
143754cd | 697 | poststage1_libs |
81ecdfbb | 698 | stage1_ldflags |
b3676d82 | 699 | stage1_libs |
7ec59b9e | 700 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
701 | extra_mpc_mpfr_configure_flags |
702 | extra_mpc_gmp_configure_flags | |
703 | extra_mpfr_configure_flags | |
704 | gmpinc | |
705 | gmplibs | |
af019bfd L |
706 | PGO_BUILD_LTO_CFLAGS |
707 | PGO_BUILD_USE_CFLAGS | |
708 | PGO_BUILD_GEN_CFLAGS | |
228cf97d AM |
709 | HAVE_CXX11_FOR_BUILD |
710 | HAVE_CXX11 | |
81ecdfbb | 711 | do_compare |
b95bb526 | 712 | GDC |
81ecdfbb RW |
713 | GNATMAKE |
714 | GNATBIND | |
715 | ac_ct_CXX | |
716 | CXXFLAGS | |
717 | CXX | |
718 | OBJEXT | |
719 | EXEEXT | |
720 | ac_ct_CC | |
721 | CPPFLAGS | |
722 | LDFLAGS | |
723 | CFLAGS | |
724 | CC | |
1b6c0831 | 725 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
726 | target_subdir |
727 | host_subdir | |
728 | build_subdir | |
729 | build_libsubdir | |
8e957354 PB |
730 | AWK |
731 | SED | |
81ecdfbb RW |
732 | LN_S |
733 | LN | |
734 | INSTALL_DATA | |
735 | INSTALL_SCRIPT | |
736 | INSTALL_PROGRAM | |
737 | target_os | |
738 | target_vendor | |
739 | target_cpu | |
740 | target | |
741 | host_os | |
742 | host_vendor | |
743 | host_cpu | |
744 | host | |
745 | target_noncanonical | |
746 | host_noncanonical | |
747 | build_noncanonical | |
748 | build_os | |
749 | build_vendor | |
750 | build_cpu | |
751 | build | |
752 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
753 | target_alias | |
754 | host_alias | |
755 | build_alias | |
756 | LIBS | |
757 | ECHO_T | |
758 | ECHO_N | |
759 | ECHO_C | |
760 | DEFS | |
761 | mandir | |
762 | localedir | |
763 | libdir | |
764 | psdir | |
765 | pdfdir | |
766 | dvidir | |
767 | htmldir | |
768 | infodir | |
769 | docdir | |
770 | oldincludedir | |
771 | includedir | |
772 | localstatedir | |
773 | sharedstatedir | |
774 | sysconfdir | |
775 | datadir | |
776 | datarootdir | |
777 | libexecdir | |
778 | sbindir | |
779 | bindir | |
780 | program_transform_name | |
781 | prefix | |
782 | exec_prefix | |
783 | PACKAGE_URL | |
784 | PACKAGE_BUGREPORT | |
785 | PACKAGE_STRING | |
786 | PACKAGE_VERSION | |
787 | PACKAGE_TARNAME | |
788 | PACKAGE_NAME | |
789 | PATH_SEPARATOR | |
790 | SHELL' | |
791 | ac_subst_files='serialization_dependencies | |
792 | host_makefile_frag | |
793 | target_makefile_frag | |
794 | alphaieee_frag | |
795 | ospace_frag' | |
796 | ac_user_opts=' | |
797 | enable_option_checking | |
798 | with_build_libsubdir | |
cf39cfc5 | 799 | with_system_zlib |
2cac01e3 | 800 | with_zstd |
1b6c0831 L |
801 | enable_as_accelerator_for |
802 | enable_offload_targets | |
228cf97d | 803 | enable_offload_defaulted |
81ecdfbb | 804 | enable_gold |
c7791212 | 805 | enable_ld |
bb368aad | 806 | enable_gprofng |
edeefb67 | 807 | enable_compressed_debug_sections |
b0c295e1 | 808 | enable_default_compressed_debug_sections_algorithm |
e5f2f7d9 | 809 | enable_year2038 |
89a1e9c3 PB |
810 | enable_libquadmath |
811 | enable_libquadmath_support | |
81ecdfbb RW |
812 | enable_libada |
813 | enable_libssp | |
f66a9a70 | 814 | enable_libstdcxx |
1b6c0831 | 815 | enable_liboffloadmic |
ffdd6afc | 816 | enable_bootstrap |
af019bfd | 817 | enable_pgo_build |
81ecdfbb RW |
818 | with_mpc |
819 | with_mpc_include | |
820 | with_mpc_lib | |
81ecdfbb RW |
821 | with_mpfr |
822 | with_mpfr_include | |
823 | with_mpfr_lib | |
81ecdfbb RW |
824 | with_gmp |
825 | with_gmp_include | |
826 | with_gmp_lib | |
81ecdfbb | 827 | with_stage1_libs |
c1a5d03a | 828 | with_static_standard_libraries |
b3676d82 | 829 | with_stage1_ldflags |
81ecdfbb | 830 | with_boot_libs |
143754cd | 831 | with_boot_ldflags |
7ec59b9e L |
832 | with_isl |
833 | with_isl_include | |
834 | with_isl_lib | |
835 | enable_isl_version_check | |
700d40ca | 836 | enable_lto |
1b6c0831 L |
837 | enable_linker_plugin_configure_flags |
838 | enable_linker_plugin_flags | |
bf41f30d | 839 | enable_host_shared |
81ecdfbb RW |
840 | enable_stage1_languages |
841 | enable_objc_gc | |
05a13254 NC |
842 | with_target_bdw_gc |
843 | with_target_bdw_gc_include | |
844 | with_target_bdw_gc_lib | |
bf41f30d | 845 | with_gcc_major_version_only |
81ecdfbb RW |
846 | with_build_sysroot |
847 | with_debug_prefix_map | |
96655cc4 | 848 | with_build_config |
730af8ee | 849 | enable_vtable_verify |
81ecdfbb RW |
850 | enable_serial_configure |
851 | with_build_time_tools | |
852 | enable_maintainer_mode | |
853 | enable_stage1_checking | |
854 | enable_werror | |
81ecdfbb RW |
855 | ' |
856 | ac_precious_vars='build_alias | |
857 | host_alias | |
858 | target_alias | |
859 | CC | |
860 | CFLAGS | |
861 | LDFLAGS | |
862 | LIBS | |
863 | CPPFLAGS | |
864 | CXX | |
865 | CXXFLAGS | |
866 | CCC | |
4074d5f2 RW |
867 | build_configargs |
868 | host_configargs | |
869 | target_configargs | |
81ecdfbb RW |
870 | AR |
871 | AS | |
872 | DLLTOOL | |
228cf97d | 873 | DSYMUTIL |
81ecdfbb RW |
874 | LD |
875 | LIPO | |
876 | NM | |
877 | RANLIB | |
878 | STRIP | |
879 | WINDRES | |
880 | WINDMC | |
881 | OBJCOPY | |
882 | OBJDUMP | |
228cf97d | 883 | OTOOL |
b121d7d4 | 884 | READELF |
81ecdfbb RW |
885 | CC_FOR_TARGET |
886 | CXX_FOR_TARGET | |
887 | GCC_FOR_TARGET | |
81ecdfbb | 888 | GFORTRAN_FOR_TARGET |
e552509b | 889 | GOC_FOR_TARGET |
228cf97d | 890 | GDC_FOR_TARGET |
81ecdfbb RW |
891 | AR_FOR_TARGET |
892 | AS_FOR_TARGET | |
893 | DLLTOOL_FOR_TARGET | |
228cf97d | 894 | DSYMUTIL_FOR_TARGET |
81ecdfbb RW |
895 | LD_FOR_TARGET |
896 | LIPO_FOR_TARGET | |
897 | NM_FOR_TARGET | |
6b91c541 | 898 | OBJCOPY_FOR_TARGET |
81ecdfbb | 899 | OBJDUMP_FOR_TARGET |
228cf97d | 900 | OTOOL_FOR_TARGET |
81ecdfbb | 901 | RANLIB_FOR_TARGET |
b121d7d4 | 902 | READELF_FOR_TARGET |
81ecdfbb RW |
903 | STRIP_FOR_TARGET |
904 | WINDRES_FOR_TARGET | |
905 | WINDMC_FOR_TARGET' | |
906 | ||
a0da8069 NN |
907 | |
908 | # Initialize some variables set by options. | |
c6b750e1 DJ |
909 | ac_init_help= |
910 | ac_init_version=false | |
81ecdfbb RW |
911 | ac_unrecognized_opts= |
912 | ac_unrecognized_sep= | |
a0da8069 NN |
913 | # The variables have the same names as the options, with |
914 | # dashes changed to underlines. | |
c6b750e1 | 915 | cache_file=/dev/null |
a0da8069 | 916 | exec_prefix=NONE |
a0da8069 | 917 | no_create= |
a0da8069 NN |
918 | no_recursion= |
919 | prefix=NONE | |
920 | program_prefix=NONE | |
921 | program_suffix=NONE | |
922 | program_transform_name=s,x,x, | |
923 | silent= | |
924 | site= | |
925 | srcdir= | |
a0da8069 NN |
926 | verbose= |
927 | x_includes=NONE | |
928 | x_libraries=NONE | |
c6b750e1 DJ |
929 | |
930 | # Installation directory options. | |
931 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
932 | # and all the variables that are supposed to be based on exec_prefix | |
933 | # by default will actually change. | |
934 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 935 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
936 | bindir='${exec_prefix}/bin' |
937 | sbindir='${exec_prefix}/sbin' | |
938 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
939 | datarootdir='${prefix}/share' |
940 | datadir='${datarootdir}' | |
a0da8069 NN |
941 | sysconfdir='${prefix}/etc' |
942 | sharedstatedir='${prefix}/com' | |
943 | localstatedir='${prefix}/var' | |
a0da8069 NN |
944 | includedir='${prefix}/include' |
945 | oldincludedir='/usr/include' | |
81ecdfbb RW |
946 | docdir='${datarootdir}/doc/${PACKAGE}' |
947 | infodir='${datarootdir}/info' | |
948 | htmldir='${docdir}' | |
949 | dvidir='${docdir}' | |
950 | pdfdir='${docdir}' | |
951 | psdir='${docdir}' | |
952 | libdir='${exec_prefix}/lib' | |
953 | localedir='${datarootdir}/locale' | |
954 | mandir='${datarootdir}/man' | |
252b5132 | 955 | |
a0da8069 | 956 | ac_prev= |
81ecdfbb | 957 | ac_dashdash= |
a0da8069 NN |
958 | for ac_option |
959 | do | |
a0da8069 NN |
960 | # If the previous option needs an argument, assign it. |
961 | if test -n "$ac_prev"; then | |
81ecdfbb | 962 | eval $ac_prev=\$ac_option |
a0da8069 NN |
963 | ac_prev= |
964 | continue | |
965 | fi | |
252b5132 | 966 | |
81ecdfbb | 967 | case $ac_option in |
d0ac1c44 SM |
968 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
969 | *=) ac_optarg= ;; | |
970 | *) ac_optarg=yes ;; | |
81ecdfbb | 971 | esac |
a0da8069 NN |
972 | |
973 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
974 | ||
81ecdfbb RW |
975 | case $ac_dashdash$ac_option in |
976 | --) | |
977 | ac_dashdash=yes ;; | |
a0da8069 NN |
978 | |
979 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
980 | ac_prev=bindir ;; | |
981 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 982 | bindir=$ac_optarg ;; |
a0da8069 NN |
983 | |
984 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 985 | ac_prev=build_alias ;; |
a0da8069 | 986 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 987 | build_alias=$ac_optarg ;; |
a0da8069 NN |
988 | |
989 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
990 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
991 | ac_prev=cache_file ;; | |
992 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
993 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
994 | cache_file=$ac_optarg ;; |
995 | ||
996 | --config-cache | -C) | |
997 | cache_file=config.cache ;; | |
a0da8069 | 998 | |
81ecdfbb | 999 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 1000 | ac_prev=datadir ;; |
81ecdfbb | 1001 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 1002 | datadir=$ac_optarg ;; |
a0da8069 | 1003 | |
81ecdfbb RW |
1004 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1005 | | --dataroo | --dataro | --datar) | |
1006 | ac_prev=datarootdir ;; | |
1007 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1008 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1009 | datarootdir=$ac_optarg ;; | |
1010 | ||
a0da8069 | 1011 | -disable-* | --disable-*) |
81ecdfbb | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 1013 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1016 | ac_useropt_orig=$ac_useropt |
1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1018 | case $ac_user_opts in | |
1019 | *" | |
1020 | "enable_$ac_useropt" | |
1021 | "*) ;; | |
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1023 | ac_unrecognized_sep=', ';; | |
1024 | esac | |
1025 | eval enable_$ac_useropt=no ;; | |
1026 | ||
1027 | -docdir | --docdir | --docdi | --doc | --do) | |
1028 | ac_prev=docdir ;; | |
1029 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1030 | docdir=$ac_optarg ;; | |
1031 | ||
1032 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1033 | ac_prev=dvidir ;; | |
1034 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1035 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1036 | |
1037 | -enable-* | --enable-*) | |
81ecdfbb | 1038 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1039 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1040 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1041 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1042 | ac_useropt_orig=$ac_useropt |
1043 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1044 | case $ac_user_opts in | |
1045 | *" | |
1046 | "enable_$ac_useropt" | |
1047 | "*) ;; | |
1048 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1049 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1050 | esac |
81ecdfbb | 1051 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1052 | |
1053 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1054 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1055 | | --exec | --exe | --ex) | |
1056 | ac_prev=exec_prefix ;; | |
1057 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1058 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1059 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1060 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1061 | |
1062 | -gas | --gas | --ga | --g) | |
1063 | # Obsolete; use --with-gas. | |
1064 | with_gas=yes ;; | |
1065 | ||
c6b750e1 DJ |
1066 | -help | --help | --hel | --he | -h) |
1067 | ac_init_help=long ;; | |
1068 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1069 | ac_init_help=recursive ;; | |
1070 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1071 | ac_init_help=short ;; | |
a0da8069 NN |
1072 | |
1073 | -host | --host | --hos | --ho) | |
c6b750e1 | 1074 | ac_prev=host_alias ;; |
a0da8069 | 1075 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1076 | host_alias=$ac_optarg ;; |
a0da8069 | 1077 | |
81ecdfbb RW |
1078 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1079 | ac_prev=htmldir ;; | |
1080 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1081 | | --ht=*) | |
1082 | htmldir=$ac_optarg ;; | |
1083 | ||
a0da8069 NN |
1084 | -includedir | --includedir | --includedi | --included | --include \ |
1085 | | --includ | --inclu | --incl | --inc) | |
1086 | ac_prev=includedir ;; | |
1087 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1088 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1089 | includedir=$ac_optarg ;; |
a0da8069 NN |
1090 | |
1091 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1092 | ac_prev=infodir ;; | |
1093 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1094 | infodir=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -libdir | --libdir | --libdi | --libd) | |
1097 | ac_prev=libdir ;; | |
1098 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1099 | libdir=$ac_optarg ;; |
a0da8069 NN |
1100 | |
1101 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1102 | | --libexe | --libex | --libe) | |
1103 | ac_prev=libexecdir ;; | |
1104 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1105 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1106 | libexecdir=$ac_optarg ;; |
a0da8069 | 1107 | |
81ecdfbb RW |
1108 | -localedir | --localedir | --localedi | --localed | --locale) |
1109 | ac_prev=localedir ;; | |
1110 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1111 | localedir=$ac_optarg ;; | |
1112 | ||
a0da8069 | 1113 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1114 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1115 | ac_prev=localstatedir ;; |
1116 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1117 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1118 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1119 | |
1120 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1121 | ac_prev=mandir ;; | |
1122 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1123 | mandir=$ac_optarg ;; |
a0da8069 NN |
1124 | |
1125 | -nfp | --nfp | --nf) | |
1126 | # Obsolete; use --without-fp. | |
1127 | with_fp=no ;; | |
1128 | ||
1129 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1130 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1131 | no_create=yes ;; |
1132 | ||
1133 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1134 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1135 | no_recursion=yes ;; | |
1136 | ||
1137 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1138 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1139 | | --oldin | --oldi | --old | --ol | --o) | |
1140 | ac_prev=oldincludedir ;; | |
1141 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1142 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1143 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1144 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1145 | |
1146 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1147 | ac_prev=prefix ;; | |
1148 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1149 | prefix=$ac_optarg ;; |
a0da8069 NN |
1150 | |
1151 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1152 | | --program-pre | --program-pr | --program-p) | |
1153 | ac_prev=program_prefix ;; | |
1154 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1155 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1156 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1157 | |
1158 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1159 | | --program-suf | --program-su | --program-s) | |
1160 | ac_prev=program_suffix ;; | |
1161 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1162 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1163 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1164 | |
1165 | -program-transform-name | --program-transform-name \ | |
1166 | | --program-transform-nam | --program-transform-na \ | |
1167 | | --program-transform-n | --program-transform- \ | |
1168 | | --program-transform | --program-transfor \ | |
1169 | | --program-transfo | --program-transf \ | |
1170 | | --program-trans | --program-tran \ | |
1171 | | --progr-tra | --program-tr | --program-t) | |
1172 | ac_prev=program_transform_name ;; | |
1173 | -program-transform-name=* | --program-transform-name=* \ | |
1174 | | --program-transform-nam=* | --program-transform-na=* \ | |
1175 | | --program-transform-n=* | --program-transform-=* \ | |
1176 | | --program-transform=* | --program-transfor=* \ | |
1177 | | --program-transfo=* | --program-transf=* \ | |
1178 | | --program-trans=* | --program-tran=* \ | |
1179 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1180 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1181 | |
81ecdfbb RW |
1182 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1183 | ac_prev=pdfdir ;; | |
1184 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1185 | pdfdir=$ac_optarg ;; | |
1186 | ||
1187 | -psdir | --psdir | --psdi | --psd | --ps) | |
1188 | ac_prev=psdir ;; | |
1189 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1190 | psdir=$ac_optarg ;; | |
1191 | ||
a0da8069 NN |
1192 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1193 | | -silent | --silent | --silen | --sile | --sil) | |
1194 | silent=yes ;; | |
1195 | ||
1196 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1197 | ac_prev=sbindir ;; | |
1198 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1199 | | --sbi=* | --sb=*) | |
c6b750e1 | 1200 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1201 | |
1202 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1203 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1204 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1205 | | --sha | --sh) | |
1206 | ac_prev=sharedstatedir ;; | |
1207 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1208 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1209 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1210 | | --sha=* | --sh=*) | |
c6b750e1 | 1211 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1212 | |
1213 | -site | --site | --sit) | |
1214 | ac_prev=site ;; | |
1215 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1216 | site=$ac_optarg ;; |
a0da8069 NN |
1217 | |
1218 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1219 | ac_prev=srcdir ;; | |
1220 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1221 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1222 | |
1223 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1224 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1225 | ac_prev=sysconfdir ;; | |
1226 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1227 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1228 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1229 | |
1230 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1231 | ac_prev=target_alias ;; |
a0da8069 | 1232 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1233 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1234 | |
1235 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1236 | verbose=yes ;; | |
1237 | ||
c6b750e1 DJ |
1238 | -version | --version | --versio | --versi | --vers | -V) |
1239 | ac_init_version=: ;; | |
a0da8069 NN |
1240 | |
1241 | -with-* | --with-*) | |
81ecdfbb | 1242 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1243 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1244 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1245 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1246 | ac_useropt_orig=$ac_useropt |
1247 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1248 | case $ac_user_opts in | |
1249 | *" | |
1250 | "with_$ac_useropt" | |
1251 | "*) ;; | |
1252 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1253 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1254 | esac |
81ecdfbb | 1255 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1256 | |
1257 | -without-* | --without-*) | |
81ecdfbb | 1258 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1259 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1260 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1261 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1262 | ac_useropt_orig=$ac_useropt |
1263 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1264 | case $ac_user_opts in | |
1265 | *" | |
1266 | "with_$ac_useropt" | |
1267 | "*) ;; | |
1268 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1269 | ac_unrecognized_sep=', ';; | |
1270 | esac | |
1271 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1272 | |
1273 | --x) | |
1274 | # Obsolete; use --with-x. | |
1275 | with_x=yes ;; | |
1276 | ||
1277 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1278 | | --x-incl | --x-inc | --x-in | --x-i) | |
1279 | ac_prev=x_includes ;; | |
1280 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1281 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1282 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1283 | |
1284 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1285 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1286 | ac_prev=x_libraries ;; | |
1287 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1288 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1289 | x_libraries=$ac_optarg ;; |
a0da8069 | 1290 | |
d0ac1c44 SM |
1291 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1292 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1293 | ;; |
1294 | ||
c6b750e1 DJ |
1295 | *=*) |
1296 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1297 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1298 | case $ac_envvar in #( |
1299 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1300 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1301 | esac |
1302 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1303 | export $ac_envvar ;; |
1304 | ||
a0da8069 | 1305 | *) |
c6b750e1 | 1306 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1307 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1308 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1309 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1310 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1311 | ;; |
1312 | ||
1313 | esac | |
1314 | done | |
1315 | ||
1316 | if test -n "$ac_prev"; then | |
c6b750e1 | 1317 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1318 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1319 | fi |
a0da8069 | 1320 | |
81ecdfbb RW |
1321 | if test -n "$ac_unrecognized_opts"; then |
1322 | case $enable_option_checking in | |
1323 | no) ;; | |
d0ac1c44 | 1324 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1325 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1326 | esac |
81ecdfbb | 1327 | fi |
a0da8069 | 1328 | |
81ecdfbb RW |
1329 | # Check all directory arguments for consistency. |
1330 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1331 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1332 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1333 | libdir localedir mandir | |
a0da8069 | 1334 | do |
81ecdfbb RW |
1335 | eval ac_val=\$$ac_var |
1336 | # Remove trailing slashes. | |
1337 | case $ac_val in | |
1338 | */ ) | |
1339 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1340 | eval $ac_var=\$ac_val;; | |
1341 | esac | |
1342 | # Be sure to have absolute directory names. | |
c6b750e1 | 1343 | case $ac_val in |
81ecdfbb RW |
1344 | [\\/$]* | ?:[\\/]* ) continue;; |
1345 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1346 | esac |
d0ac1c44 | 1347 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1348 | done |
1349 | ||
c6b750e1 DJ |
1350 | # There might be people who depend on the old broken behavior: `$host' |
1351 | # used to hold the argument of --host etc. | |
1352 | # FIXME: To remove some day. | |
1353 | build=$build_alias | |
1354 | host=$host_alias | |
1355 | target=$target_alias | |
376a0e54 | 1356 | |
c6b750e1 DJ |
1357 | # FIXME: To remove some day. |
1358 | if test "x$host_alias" != x; then | |
1359 | if test "x$build_alias" = x; then | |
1360 | cross_compiling=maybe | |
c6b750e1 DJ |
1361 | elif test "x$build_alias" != "x$host_alias"; then |
1362 | cross_compiling=yes | |
1363 | fi | |
1364 | fi | |
1365 | ||
1366 | ac_tool_prefix= | |
1367 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1368 | ||
1369 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1370 | |
a0da8069 | 1371 | |
81ecdfbb RW |
1372 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1373 | ac_ls_di=`ls -di .` && | |
1374 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1375 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1376 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1377 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1378 | |
1379 | ||
a0da8069 NN |
1380 | # Find the source files, if location was not specified. |
1381 | if test -z "$srcdir"; then | |
1382 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1383 | # Try the directory containing this script, then the parent directory. |
1384 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1385 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1386 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1387 | X"$as_myself" : 'X\(//\)$' \| \ | |
1388 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1389 | $as_echo X"$as_myself" | | |
1390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | /^X\(\/\/\)[^/].*/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\/\)$/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\).*/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | s/.*/./; q'` | |
a0da8069 | 1407 | srcdir=$ac_confdir |
81ecdfbb | 1408 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1409 | srcdir=.. |
1410 | fi | |
1411 | else | |
1412 | ac_srcdir_defaulted=no | |
1413 | fi | |
81ecdfbb RW |
1414 | if test ! -r "$srcdir/$ac_unique_file"; then |
1415 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1416 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1417 | fi |
1418 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1419 | ac_abs_confdir=`( | |
d0ac1c44 | 1420 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1421 | pwd)` |
1422 | # When building in place, set srcdir=. | |
1423 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1424 | srcdir=. | |
1425 | fi | |
1426 | # Remove unnecessary trailing slashes from srcdir. | |
1427 | # Double slashes in file names in object file debugging info | |
1428 | # mess up M-x gdb in Emacs. | |
1429 | case $srcdir in | |
1430 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1431 | esac | |
6d0cd39e AM |
1432 | case $srcdir in |
1433 | *" "*) | |
d0ac1c44 | 1434 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1435 | ;; |
1436 | esac | |
9cc8ae67 PB |
1437 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1438 | ||
81ecdfbb RW |
1439 | for ac_var in $ac_precious_vars; do |
1440 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1441 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1442 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1443 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1444 | done | |
c6b750e1 DJ |
1445 | |
1446 | # | |
1447 | # Report the --help message. | |
1448 | # | |
1449 | if test "$ac_init_help" = "long"; then | |
1450 | # Omit some internal or obsolete options to make the list less imposing. | |
1451 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1452 | cat <<_ACEOF | |
1453 | \`configure' configures this package to adapt to many kinds of systems. | |
1454 | ||
1455 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1456 | ||
1457 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1458 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1459 | ||
1460 | Defaults for the options are specified in brackets. | |
1461 | ||
1462 | Configuration: | |
1463 | -h, --help display this help and exit | |
1464 | --help=short display options specific to this package | |
1465 | --help=recursive display the short help of all the included packages | |
1466 | -V, --version display version information and exit | |
d0ac1c44 | 1467 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1468 | --cache-file=FILE cache test results in FILE [disabled] |
1469 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1470 | -n, --no-create do not create output files | |
1471 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1472 | ||
c6b750e1 DJ |
1473 | Installation directories: |
1474 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1475 | [$ac_default_prefix] |
c6b750e1 | 1476 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1477 | [PREFIX] |
c6b750e1 DJ |
1478 | |
1479 | By default, \`make install' will install all the files in | |
1480 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1481 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1482 | for instance \`--prefix=\$HOME'. | |
1483 | ||
1484 | For better control, use the options below. | |
1485 | ||
1486 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1487 | --bindir=DIR user executables [EPREFIX/bin] |
1488 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1489 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1490 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1491 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1492 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1493 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1494 | --includedir=DIR C header files [PREFIX/include] | |
1495 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1496 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1497 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1498 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1499 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1500 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1501 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1502 | --htmldir=DIR html documentation [DOCDIR] | |
1503 | --dvidir=DIR dvi documentation [DOCDIR] | |
1504 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1505 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1506 | _ACEOF |
1507 | ||
1508 | cat <<\_ACEOF | |
1509 | ||
1510 | Program names: | |
1511 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1512 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1513 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1514 | ||
1515 | System types: | |
1516 | --build=BUILD configure for building on BUILD [guessed] | |
1517 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1518 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1519 | _ACEOF | |
a0da8069 | 1520 | fi |
a0da8069 | 1521 | |
c6b750e1 DJ |
1522 | if test -n "$ac_init_help"; then |
1523 | ||
1524 | cat <<\_ACEOF | |
1525 | ||
1526 | Optional Features: | |
81ecdfbb | 1527 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1528 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1529 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1530 | --enable-as-accelerator-for=ARG |
1531 | build as offload target compiler. Specify offload | |
1532 | host triple by ARG | |
1533 | --enable-offload-targets=LIST | |
1534 | enable offloading to devices from comma-separated | |
1535 | LIST of TARGET[=DIR]. Use optional path to find | |
1536 | offload target compiler during the build | |
228cf97d AM |
1537 | --enable-offload-defaulted |
1538 | If enabled, configured but not installed offload compilers and | |
1539 | libgomp plugins are silently ignored. Useful for distribution | |
1540 | compilers where those are in separate optional packages. | |
1541 | ||
c7791212 | 1542 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1543 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
bb368aad | 1544 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
6c3bc0f8 | 1545 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1546 | Enable compressed debug sections for gas, gold or ld |
1547 | by default | |
b0c295e1 ML |
1548 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1549 | Default compression algorithm for | |
1550 | --enable-compressed-debug-sections. | |
e5f2f7d9 | 1551 | --enable-year2038 enable support for timestamps past the year 2038 |
89a1e9c3 PB |
1552 | --disable-libquadmath do not build libquadmath directory |
1553 | --disable-libquadmath-support | |
1554 | disable libquadmath support for Fortran | |
521ec477 DD |
1555 | --enable-libada build libada directory |
1556 | --enable-libssp build libssp directory | |
f66a9a70 | 1557 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1558 | --enable-liboffloadmic=ARG |
1559 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1560 | --enable-bootstrap enable bootstrapping [yes if native build] |
af019bfd L |
1561 | --enable-pgo-build[=lto] |
1562 | enable the PGO build | |
7ec59b9e | 1563 | --disable-isl-version-check |
4849dfd8 | 1564 | disable check for isl version |
700d40ca | 1565 | --enable-lto enable link time optimization support |
1b6c0831 L |
1566 | --enable-linker-plugin-configure-flags=FLAGS |
1567 | additional flags for configuring linker plugins | |
1568 | [none] | |
1569 | --enable-linker-plugin-flags=FLAGS | |
1570 | additional flags for configuring and building linker | |
1571 | plugins [none] | |
bf41f30d | 1572 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1573 | --enable-stage1-languages[=all] |
1574 | choose additional languages to build during stage1. | |
1575 | Mostly useful for compiler development | |
1576 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1577 | Objective-C runtime | |
ce6c656d | 1578 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1579 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1580 | force sequential configuration of sub-packages for |
1581 | the host, target or build machine, or all | |
1582 | sub-packages | |
1583 | --enable-maintainer-mode | |
1584 | enable make rules and dependencies not useful (and | |
1585 | sometimes confusing) to the casual installer | |
1586 | --enable-stage1-checking[=all] | |
1587 | choose additional checking for stage1 of the | |
1588 | compiler | |
c6b750e1 DJ |
1589 | --enable-werror enable -Werror in bootstrap stage2 and later |
1590 | ||
1591 | Optional Packages: | |
1592 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1593 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1594 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1595 | --with-system-zlib use installed libz |
2cac01e3 FS |
1596 | --with-zstd Support zstd compressed debug sections |
1597 | (default=auto) | |
7837304f AS |
1598 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1599 | Equivalent to --with-mpc-include=PATH/include plus | |
1600 | --with-mpc-lib=PATH/lib | |
1601 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1602 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 | 1603 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
7837304f AS |
1604 | Equivalent to --with-mpfr-include=PATH/include plus |
1605 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1606 | --with-mpfr-include=PATH |
521ec477 DD |
1607 | specify directory for installed MPFR include files |
1608 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
7837304f AS |
1609 | --with-gmp=PATH specify prefix directory for the installed GMP |
1610 | package. Equivalent to | |
1611 | --with-gmp-include=PATH/include plus | |
1612 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1613 | --with-gmp-include=PATH specify directory for installed GMP include files |
1614 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1615 | --with-stage1-libs=LIBS libraries for stage1 |
c1a5d03a TT |
1616 | --with-static-standard-libraries |
1617 | use -static-libstdc++ and -static-libgcc | |
1618 | (default=auto) | |
7837304f AS |
1619 | --with-stage1-ldflags=FLAGS |
1620 | linker flags for stage1 | |
7837304f AS |
1621 | --with-boot-libs=LIBS libraries for stage2 and later |
1622 | --with-boot-ldflags=FLAGS | |
1623 | linker flags for stage2 and later | |
4849dfd8 | 1624 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1625 | package. Equivalent to |
7ec59b9e L |
1626 | --with-isl-include=PATH/include plus |
1627 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1628 | --with-isl-include=PATH Specify directory for installed isl include files |
1629 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1630 | --with-target-bdw-gc=PATHLIST |
1631 | specify prefix directory for installed bdw-gc | |
1632 | package. Equivalent to | |
1633 | --with-target-bdw-gc-include=PATH/include plus | |
1634 | --with-target-bdw-gc-lib=PATH/lib | |
1635 | --with-target-bdw-gc-include=PATHLIST | |
1636 | specify directories for installed bdw-gc include | |
1637 | files | |
1638 | --with-target-bdw-gc-lib=PATHLIST | |
1639 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1640 | --with-gcc-major-version-only |
1641 | use only GCC major number in filesystem paths | |
521ec477 | 1642 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1643 | use sysroot as the system root during the build |
8a6ee3ab | 1644 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1645 | map A to B, C to D ... in debug information |
1646 | --with-build-config='NAME NAME2...' | |
1647 | use config/NAME.mk build configuration | |
521ec477 | 1648 | --with-build-time-tools=PATH |
c6b750e1 | 1649 | use given path to find target tools during the build |
c6b750e1 DJ |
1650 | |
1651 | Some influential environment variables: | |
1652 | CC C compiler command | |
1653 | CFLAGS C compiler flags | |
1654 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1655 | nonstandard directory <lib dir> | |
81ecdfbb | 1656 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1657 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1658 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1659 | CXX C++ compiler command |
1660 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1661 | build_configargs |
1662 | additional configure arguments for build directories | |
1663 | host_configargs | |
1664 | additional configure arguments for host directories | |
1665 | target_configargs | |
1666 | additional configure arguments for target directories | |
9a819804 AO |
1667 | AR AR for the host |
1668 | AS AS for the host | |
1669 | DLLTOOL DLLTOOL for the host | |
228cf97d | 1670 | DSYMUTIL DSYMUTIL for the host |
9a819804 AO |
1671 | LD LD for the host |
1672 | LIPO LIPO for the host | |
1673 | NM NM for the host | |
1674 | RANLIB RANLIB for the host | |
1675 | STRIP STRIP for the host | |
1676 | WINDRES WINDRES for the host | |
0c24b341 | 1677 | WINDMC WINDMC for the host |
9a819804 AO |
1678 | OBJCOPY OBJCOPY for the host |
1679 | OBJDUMP OBJDUMP for the host | |
228cf97d | 1680 | OTOOL OTOOL for the host |
b121d7d4 | 1681 | READELF READELF for the host |
9a819804 AO |
1682 | CC_FOR_TARGET |
1683 | CC for the target | |
1684 | CXX_FOR_TARGET | |
1685 | CXX for the target | |
1686 | GCC_FOR_TARGET | |
1687 | GCC for the target | |
9a819804 AO |
1688 | GFORTRAN_FOR_TARGET |
1689 | GFORTRAN for the target | |
e552509b ILT |
1690 | GOC_FOR_TARGET |
1691 | GOC for the target | |
228cf97d AM |
1692 | GDC_FOR_TARGET |
1693 | GDC for the target | |
9a819804 AO |
1694 | AR_FOR_TARGET |
1695 | AR for the target | |
1696 | AS_FOR_TARGET | |
1697 | AS for the target | |
1698 | DLLTOOL_FOR_TARGET | |
1699 | DLLTOOL for the target | |
228cf97d AM |
1700 | DSYMUTIL_FOR_TARGET |
1701 | DSYMUTIL for the target | |
9a819804 AO |
1702 | LD_FOR_TARGET |
1703 | LD for the target | |
1704 | LIPO_FOR_TARGET | |
1705 | LIPO for the target | |
1706 | NM_FOR_TARGET | |
1707 | NM for the target | |
6b91c541 AP |
1708 | OBJCOPY_FOR_TARGET |
1709 | OBJCOPY for the target | |
9a819804 AO |
1710 | OBJDUMP_FOR_TARGET |
1711 | OBJDUMP for the target | |
228cf97d AM |
1712 | OTOOL_FOR_TARGET |
1713 | OTOOL for the target | |
9a819804 AO |
1714 | RANLIB_FOR_TARGET |
1715 | RANLIB for the target | |
b121d7d4 DD |
1716 | READELF_FOR_TARGET |
1717 | READELF for the target | |
9a819804 AO |
1718 | STRIP_FOR_TARGET |
1719 | STRIP for the target | |
1720 | WINDRES_FOR_TARGET | |
1721 | WINDRES for the target | |
0c24b341 NC |
1722 | WINDMC_FOR_TARGET |
1723 | WINDMC for the target | |
c6b750e1 DJ |
1724 | |
1725 | Use these variables to override the choices made by `configure' or to help | |
1726 | it to find libraries and programs with nonstandard names/locations. | |
1727 | ||
81ecdfbb | 1728 | Report bugs to the package provider. |
c6b750e1 | 1729 | _ACEOF |
81ecdfbb | 1730 | ac_status=$? |
c6b750e1 DJ |
1731 | fi |
1732 | ||
1733 | if test "$ac_init_help" = "recursive"; then | |
1734 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1735 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1736 | test -d "$ac_dir" || |
1737 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1738 | continue | |
c6b750e1 DJ |
1739 | ac_builddir=. |
1740 | ||
81ecdfbb RW |
1741 | case "$ac_dir" in |
1742 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1743 | *) | |
1744 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1745 | # A ".." for each directory in $ac_dir_suffix. | |
1746 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1747 | case $ac_top_builddir_sub in | |
1748 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1749 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1750 | esac ;; | |
1751 | esac | |
1752 | ac_abs_top_builddir=$ac_pwd | |
1753 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1754 | # for backward compatibility: | |
1755 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1756 | |
1757 | case $srcdir in | |
81ecdfbb | 1758 | .) # We are building in place. |
c6b750e1 | 1759 | ac_srcdir=. |
81ecdfbb RW |
1760 | ac_top_srcdir=$ac_top_builddir_sub |
1761 | ac_abs_top_srcdir=$ac_pwd ;; | |
1762 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1763 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1764 | ac_top_srcdir=$srcdir |
1765 | ac_abs_top_srcdir=$srcdir ;; | |
1766 | *) # Relative name. | |
1767 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1768 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1769 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1770 | esac |
81ecdfbb RW |
1771 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1772 | ||
1773 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1774 | # Check for guested configure. | |
1775 | if test -f "$ac_srcdir/configure.gnu"; then | |
1776 | echo && | |
1777 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1778 | elif test -f "$ac_srcdir/configure"; then | |
1779 | echo && | |
1780 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1781 | else |
81ecdfbb RW |
1782 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1783 | fi || ac_status=$? | |
1784 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1785 | done |
1786 | fi | |
1787 | ||
81ecdfbb | 1788 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1789 | if $ac_init_version; then |
1790 | cat <<\_ACEOF | |
81ecdfbb | 1791 | configure |
d0ac1c44 | 1792 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1793 | |
d0ac1c44 | 1794 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1795 | This configure script is free software; the Free Software Foundation |
1796 | gives unlimited permission to copy, distribute and modify it. | |
1797 | _ACEOF | |
81ecdfbb | 1798 | exit |
c6b750e1 | 1799 | fi |
81ecdfbb RW |
1800 | |
1801 | ## ------------------------ ## | |
1802 | ## Autoconf initialization. ## | |
1803 | ## ------------------------ ## | |
1804 | ||
1805 | # ac_fn_c_try_compile LINENO | |
1806 | # -------------------------- | |
1807 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1808 | ac_fn_c_try_compile () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | rm -f conftest.$ac_objext | |
1812 | if { { ac_try="$ac_compile" | |
1813 | case "(($ac_try" in | |
1814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1815 | *) ac_try_echo=$ac_try;; | |
1816 | esac | |
1817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1818 | $as_echo "$ac_try_echo"; } >&5 | |
1819 | (eval "$ac_compile") 2>conftest.err | |
1820 | ac_status=$? | |
1821 | if test -s conftest.err; then | |
1822 | grep -v '^ *+' conftest.err >conftest.er1 | |
1823 | cat conftest.er1 >&5 | |
1824 | mv -f conftest.er1 conftest.err | |
1825 | fi | |
1826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1827 | test $ac_status = 0; } && { | |
1828 | test -z "$ac_c_werror_flag" || | |
1829 | test ! -s conftest.err | |
1830 | } && test -s conftest.$ac_objext; then : | |
1831 | ac_retval=0 | |
1832 | else | |
1833 | $as_echo "$as_me: failed program was:" >&5 | |
1834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1835 | ||
1836 | ac_retval=1 | |
1837 | fi | |
d0ac1c44 SM |
1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1839 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1840 | |
1841 | } # ac_fn_c_try_compile | |
1842 | ||
1843 | # ac_fn_cxx_try_compile LINENO | |
1844 | # ---------------------------- | |
1845 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1846 | ac_fn_cxx_try_compile () | |
1847 | { | |
1848 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1849 | rm -f conftest.$ac_objext | |
1850 | if { { ac_try="$ac_compile" | |
1851 | case "(($ac_try" in | |
1852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1853 | *) ac_try_echo=$ac_try;; | |
1854 | esac | |
1855 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1856 | $as_echo "$ac_try_echo"; } >&5 | |
1857 | (eval "$ac_compile") 2>conftest.err | |
1858 | ac_status=$? | |
1859 | if test -s conftest.err; then | |
1860 | grep -v '^ *+' conftest.err >conftest.er1 | |
1861 | cat conftest.er1 >&5 | |
1862 | mv -f conftest.er1 conftest.err | |
1863 | fi | |
1864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1865 | test $ac_status = 0; } && { | |
1866 | test -z "$ac_cxx_werror_flag" || | |
1867 | test ! -s conftest.err | |
1868 | } && test -s conftest.$ac_objext; then : | |
1869 | ac_retval=0 | |
1870 | else | |
1871 | $as_echo "$as_me: failed program was:" >&5 | |
1872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1873 | ||
1874 | ac_retval=1 | |
1875 | fi | |
d0ac1c44 SM |
1876 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1877 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1878 | |
1879 | } # ac_fn_cxx_try_compile | |
1880 | ||
b3676d82 EB |
1881 | # ac_fn_cxx_try_link LINENO |
1882 | # ------------------------- | |
1883 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1884 | ac_fn_cxx_try_link () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1888 | if { { ac_try="$ac_link" | |
1889 | case "(($ac_try" in | |
1890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1891 | *) ac_try_echo=$ac_try;; | |
1892 | esac | |
1893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1894 | $as_echo "$ac_try_echo"; } >&5 | |
1895 | (eval "$ac_link") 2>conftest.err | |
1896 | ac_status=$? | |
1897 | if test -s conftest.err; then | |
1898 | grep -v '^ *+' conftest.err >conftest.er1 | |
1899 | cat conftest.er1 >&5 | |
1900 | mv -f conftest.er1 conftest.err | |
1901 | fi | |
1902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1903 | test $ac_status = 0; } && { | |
1904 | test -z "$ac_cxx_werror_flag" || | |
1905 | test ! -s conftest.err | |
1906 | } && test -s conftest$ac_exeext && { | |
1907 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1908 | test -x conftest$ac_exeext |
b3676d82 EB |
1909 | }; then : |
1910 | ac_retval=0 | |
1911 | else | |
1912 | $as_echo "$as_me: failed program was:" >&5 | |
1913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1914 | ||
1915 | ac_retval=1 | |
1916 | fi | |
1917 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1918 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1919 | # interfere with the next link command; also delete a directory that is | |
1920 | # left behind by Apple's compiler. We do this before executing the actions. | |
1921 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1922 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1923 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1924 | |
1925 | } # ac_fn_cxx_try_link | |
1926 | ||
81ecdfbb RW |
1927 | # ac_fn_c_try_link LINENO |
1928 | # ----------------------- | |
1929 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1930 | ac_fn_c_try_link () | |
1931 | { | |
1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1934 | if { { ac_try="$ac_link" | |
1935 | case "(($ac_try" in | |
1936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1937 | *) ac_try_echo=$ac_try;; | |
1938 | esac | |
1939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1940 | $as_echo "$ac_try_echo"; } >&5 | |
1941 | (eval "$ac_link") 2>conftest.err | |
1942 | ac_status=$? | |
1943 | if test -s conftest.err; then | |
1944 | grep -v '^ *+' conftest.err >conftest.er1 | |
1945 | cat conftest.er1 >&5 | |
1946 | mv -f conftest.er1 conftest.err | |
1947 | fi | |
1948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1949 | test $ac_status = 0; } && { | |
1950 | test -z "$ac_c_werror_flag" || | |
1951 | test ! -s conftest.err | |
1952 | } && test -s conftest$ac_exeext && { | |
1953 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1954 | test -x conftest$ac_exeext |
81ecdfbb RW |
1955 | }; then : |
1956 | ac_retval=0 | |
1957 | else | |
1958 | $as_echo "$as_me: failed program was:" >&5 | |
1959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1960 | ||
1961 | ac_retval=1 | |
1962 | fi | |
1963 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1964 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1965 | # interfere with the next link command; also delete a directory that is | |
1966 | # left behind by Apple's compiler. We do this before executing the actions. | |
1967 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1968 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1969 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1970 | |
1971 | } # ac_fn_c_try_link | |
1972 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1973 | This file contains any messages produced by compilers while |
1974 | running configure, to aid debugging if configure makes a mistake. | |
1975 | ||
1976 | It was created by $as_me, which was | |
d0ac1c44 | 1977 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1978 | |
1979 | $ $0 $@ | |
1980 | ||
1981 | _ACEOF | |
81ecdfbb | 1982 | exec 5>>config.log |
c6b750e1 DJ |
1983 | { |
1984 | cat <<_ASUNAME | |
1985 | ## --------- ## | |
1986 | ## Platform. ## | |
1987 | ## --------- ## | |
1988 | ||
1989 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1990 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1991 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1992 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1993 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1994 | ||
1995 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1996 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1997 | ||
1998 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1999 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2000 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2001 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
2002 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2003 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2004 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2005 | ||
2006 | _ASUNAME | |
2007 | ||
2008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2009 | for as_dir in $PATH | |
2010 | do | |
2011 | IFS=$as_save_IFS | |
2012 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2013 | $as_echo "PATH: $as_dir" |
2014 | done | |
2015 | IFS=$as_save_IFS | |
c6b750e1 DJ |
2016 | |
2017 | } >&5 | |
2018 | ||
2019 | cat >&5 <<_ACEOF | |
2020 | ||
2021 | ||
2022 | ## ----------- ## | |
2023 | ## Core tests. ## | |
2024 | ## ----------- ## | |
2025 | ||
2026 | _ACEOF | |
2027 | ||
2028 | ||
2029 | # Keep a trace of the command line. | |
2030 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2031 | # Strip out --silent because we don't want to record it for future runs. | |
2032 | # Also quote any args containing shell meta-characters. | |
2033 | # Make two passes to allow for proper duplicate-argument suppression. | |
2034 | ac_configure_args= | |
2035 | ac_configure_args0= | |
2036 | ac_configure_args1= | |
c6b750e1 DJ |
2037 | ac_must_keep_next=false |
2038 | for ac_pass in 1 2 | |
2039 | do | |
2040 | for ac_arg | |
2041 | do | |
2042 | case $ac_arg in | |
2043 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2044 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2045 | | -silent | --silent | --silen | --sile | --sil) | |
2046 | continue ;; | |
81ecdfbb RW |
2047 | *\'*) |
2048 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2049 | esac |
2050 | case $ac_pass in | |
81ecdfbb | 2051 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2052 | 2) |
81ecdfbb | 2053 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2054 | if test $ac_must_keep_next = true; then |
2055 | ac_must_keep_next=false # Got value, back to normal. | |
2056 | else | |
2057 | case $ac_arg in | |
2058 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2059 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2060 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2061 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2062 | case "$ac_configure_args0 " in | |
2063 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2064 | esac | |
2065 | ;; | |
2066 | -* ) ac_must_keep_next=true ;; | |
2067 | esac | |
2068 | fi | |
81ecdfbb | 2069 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2070 | ;; |
2071 | esac | |
2072 | done | |
2073 | done | |
81ecdfbb RW |
2074 | { ac_configure_args0=; unset ac_configure_args0;} |
2075 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2076 | |
2077 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2078 | # config.log. We remove comments because anyway the quotes in there | |
2079 | # would cause problems or look ugly. | |
81ecdfbb RW |
2080 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2081 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2082 | trap 'exit_status=$? |
2083 | # Save into config.log some information that might help in debugging. | |
2084 | { | |
2085 | echo | |
2086 | ||
d0ac1c44 | 2087 | $as_echo "## ---------------- ## |
c6b750e1 | 2088 | ## Cache variables. ## |
d0ac1c44 | 2089 | ## ---------------- ##" |
c6b750e1 DJ |
2090 | echo |
2091 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2092 | ( |
2093 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2094 | eval ac_val=\$$ac_var | |
2095 | case $ac_val in #( | |
2096 | *${as_nl}*) | |
2097 | case $ac_var in #( | |
2098 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2099 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2100 | esac | |
2101 | case $ac_var in #( | |
2102 | _ | IFS | as_nl) ;; #( | |
2103 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2104 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2105 | esac ;; | |
2106 | esac | |
2107 | done | |
c6b750e1 | 2108 | (set) 2>&1 | |
81ecdfbb RW |
2109 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2110 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2111 | sed -n \ |
81ecdfbb RW |
2112 | "s/'\''/'\''\\\\'\'''\''/g; |
2113 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2114 | ;; #( | |
c6b750e1 | 2115 | *) |
81ecdfbb | 2116 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2117 | ;; |
81ecdfbb RW |
2118 | esac | |
2119 | sort | |
2120 | ) | |
c6b750e1 DJ |
2121 | echo |
2122 | ||
d0ac1c44 | 2123 | $as_echo "## ----------------- ## |
c6b750e1 | 2124 | ## Output variables. ## |
d0ac1c44 | 2125 | ## ----------------- ##" |
c6b750e1 DJ |
2126 | echo |
2127 | for ac_var in $ac_subst_vars | |
2128 | do | |
81ecdfbb RW |
2129 | eval ac_val=\$$ac_var |
2130 | case $ac_val in | |
2131 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2132 | esac | |
2133 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2134 | done | sort |
2135 | echo | |
2136 | ||
2137 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2138 | $as_echo "## ------------------- ## |
81ecdfbb | 2139 | ## File substitutions. ## |
d0ac1c44 | 2140 | ## ------------------- ##" |
c6b750e1 DJ |
2141 | echo |
2142 | for ac_var in $ac_subst_files | |
2143 | do | |
81ecdfbb RW |
2144 | eval ac_val=\$$ac_var |
2145 | case $ac_val in | |
2146 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2147 | esac | |
2148 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2149 | done | sort |
2150 | echo | |
2151 | fi | |
2152 | ||
2153 | if test -s confdefs.h; then | |
d0ac1c44 | 2154 | $as_echo "## ----------- ## |
c6b750e1 | 2155 | ## confdefs.h. ## |
d0ac1c44 | 2156 | ## ----------- ##" |
c6b750e1 | 2157 | echo |
81ecdfbb | 2158 | cat confdefs.h |
c6b750e1 DJ |
2159 | echo |
2160 | fi | |
2161 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2162 | $as_echo "$as_me: caught signal $ac_signal" |
2163 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2164 | } >&5 |
81ecdfbb RW |
2165 | rm -f core *.core core.conftest.* && |
2166 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2167 | exit $exit_status |
81ecdfbb | 2168 | ' 0 |
c6b750e1 | 2169 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2170 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2171 | done |
2172 | ac_signal=0 | |
2173 | ||
2174 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2175 | rm -f -r conftest* confdefs.h |
2176 | ||
2177 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2178 | |
2179 | # Predefined preprocessor variables. | |
2180 | ||
2181 | cat >>confdefs.h <<_ACEOF | |
2182 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2183 | _ACEOF | |
2184 | ||
c6b750e1 DJ |
2185 | cat >>confdefs.h <<_ACEOF |
2186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2187 | _ACEOF | |
2188 | ||
c6b750e1 DJ |
2189 | cat >>confdefs.h <<_ACEOF |
2190 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2191 | _ACEOF | |
2192 | ||
c6b750e1 DJ |
2193 | cat >>confdefs.h <<_ACEOF |
2194 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2195 | _ACEOF | |
2196 | ||
c6b750e1 DJ |
2197 | cat >>confdefs.h <<_ACEOF |
2198 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2199 | _ACEOF | |
2200 | ||
81ecdfbb RW |
2201 | cat >>confdefs.h <<_ACEOF |
2202 | #define PACKAGE_URL "$PACKAGE_URL" | |
2203 | _ACEOF | |
2204 | ||
c6b750e1 DJ |
2205 | |
2206 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2207 | # Prefer an explicitly selected file to automatically selected ones. |
2208 | ac_site_file1=NONE | |
2209 | ac_site_file2=NONE | |
2210 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2211 | # We do not want a PATH search for config.site. |
2212 | case $CONFIG_SITE in #(( | |
2213 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2214 | */*) ac_site_file1=$CONFIG_SITE;; | |
2215 | *) ac_site_file1=./$CONFIG_SITE;; | |
2216 | esac | |
81ecdfbb RW |
2217 | elif test "x$prefix" != xNONE; then |
2218 | ac_site_file1=$prefix/share/config.site | |
2219 | ac_site_file2=$prefix/etc/config.site | |
2220 | else | |
2221 | ac_site_file1=$ac_default_prefix/share/config.site | |
2222 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2223 | fi |
81ecdfbb RW |
2224 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2225 | do | |
2226 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2227 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2229 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2230 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2231 | . "$ac_site_file" \ |
2232 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2233 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2234 | as_fn_error $? "failed to load site script $ac_site_file | |
2235 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2236 | fi |
2237 | done | |
2238 | ||
2239 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2240 | # Some versions of bash will fail to source /dev/null (special files |
2241 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2242 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2244 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2245 | case $cache_file in |
81ecdfbb RW |
2246 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2247 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2248 | esac |
2249 | fi | |
a0da8069 | 2250 | else |
81ecdfbb RW |
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2252 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2253 | >$cache_file |
2254 | fi | |
2255 | ||
2256 | # Check that the precious variables saved in the cache have kept the same | |
2257 | # value. | |
2258 | ac_cache_corrupted=false | |
81ecdfbb | 2259 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2260 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2261 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2262 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2263 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2264 | case $ac_old_set,$ac_new_set in |
2265 | set,) | |
81ecdfbb RW |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2267 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2268 | ac_cache_corrupted=: ;; |
2269 | ,set) | |
81ecdfbb RW |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2271 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2272 | ac_cache_corrupted=: ;; |
2273 | ,);; | |
2274 | *) | |
2275 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2276 | # differences in whitespace do not lead to failure. |
2277 | ac_old_val_w=`echo x $ac_old_val` | |
2278 | ac_new_val_w=`echo x $ac_new_val` | |
2279 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2281 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2282 | ac_cache_corrupted=: | |
2283 | else | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2285 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2286 | eval $ac_var=\$ac_old_val | |
2287 | fi | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2289 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2291 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2292 | fi;; |
2293 | esac | |
2294 | # Pass precious variables to config.status. | |
2295 | if test "$ac_new_set" = set; then | |
2296 | case $ac_new_val in | |
81ecdfbb | 2297 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2298 | *) ac_arg=$ac_var=$ac_new_val ;; |
2299 | esac | |
2300 | case " $ac_configure_args " in | |
2301 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2302 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2303 | esac |
2304 | fi | |
2305 | done | |
2306 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2310 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2311 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2312 | fi |
81ecdfbb RW |
2313 | ## -------------------- ## |
2314 | ## Main body of script. ## | |
2315 | ## -------------------- ## | |
a0da8069 NN |
2316 | |
2317 | ac_ext=c | |
a0da8069 | 2318 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2322 | ||
2323 | ||
2324 | ||
2325 | ||
c6b750e1 DJ |
2326 | |
2327 | ||
34a0f3cf | 2328 | |
c6b750e1 | 2329 | |
5b553f7e RW |
2330 | progname=$0 |
2331 | # if PWD already has a value, it is probably wrong. | |
2332 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2333 | ||
2334 | # Export original configure arguments for use by sub-configures. | |
2335 | # Quote arguments with shell meta charatcers. | |
2336 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2337 | set -- "$progname" "$@" | |
2338 | for ac_arg | |
2339 | do | |
2340 | case "$ac_arg" in | |
2341 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2342 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2343 | # if the argument is of the form -foo=baz, quote the baz part only | |
2344 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2345 | *) ;; | |
2346 | esac | |
2347 | # Add the quoted argument to the list. | |
2348 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2349 | done | |
2350 | if test "$silent" = yes; then | |
2351 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2352 | fi | |
2353 | # Remove the initial space we just introduced and, as these will be | |
2354 | # expanded by make, quote '$'. | |
2355 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2356 | ||
c6b750e1 DJ |
2357 | |
2358 | # Find the build, host, and target systems. | |
a0da8069 | 2359 | ac_aux_dir= |
81ecdfbb | 2360 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2361 | if test -f "$ac_dir/install-sh"; then |
2362 | ac_aux_dir=$ac_dir | |
2363 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2364 | break | |
2365 | elif test -f "$ac_dir/install.sh"; then | |
2366 | ac_aux_dir=$ac_dir | |
2367 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2368 | break | |
2369 | elif test -f "$ac_dir/shtool"; then | |
2370 | ac_aux_dir=$ac_dir | |
2371 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2372 | break | |
2373 | fi | |
a0da8069 NN |
2374 | done |
2375 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2376 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2377 | fi |
81ecdfbb RW |
2378 | |
2379 | # These three variables are undocumented and unsupported, | |
2380 | # and are intended to be withdrawn in a future Autoconf release. | |
2381 | # They can cause serious problems if a builder's source tree is in a directory | |
2382 | # whose full name contains unusual characters. | |
2383 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2384 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2385 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2386 | ||
a0da8069 | 2387 | |
c6b750e1 | 2388 | # Make sure we can run config.sub. |
81ecdfbb | 2389 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2390 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2391 | |
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2393 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2394 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2395 | $as_echo_n "(cached) " >&6 |
2396 | else | |
2397 | ac_build_alias=$build_alias | |
2398 | test "x$ac_build_alias" = x && | |
2399 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2400 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2401 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2402 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2403 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2404 | |
2405 | fi | |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2407 | $as_echo "$ac_cv_build" >&6; } | |
2408 | case $ac_cv_build in | |
2409 | *-*-*) ;; | |
d0ac1c44 | 2410 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2411 | esac |
c6b750e1 | 2412 | build=$ac_cv_build |
81ecdfbb RW |
2413 | ac_save_IFS=$IFS; IFS='-' |
2414 | set x $ac_cv_build | |
2415 | shift | |
2416 | build_cpu=$1 | |
2417 | build_vendor=$2 | |
2418 | shift; shift | |
2419 | # Remember, the first character of IFS is used to create $*, | |
2420 | # except with old shells: | |
2421 | build_os=$* | |
2422 | IFS=$ac_save_IFS | |
2423 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2424 | |
a0da8069 | 2425 | |
c6b750e1 DJ |
2426 | case ${build_alias} in |
2427 | "") build_noncanonical=${build} ;; | |
2428 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2429 | esac |
2430 | ||
2431 | ||
cac3d6c4 | 2432 | |
c6b750e1 DJ |
2433 | case ${host_alias} in |
2434 | "") host_noncanonical=${build_noncanonical} ;; | |
2435 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2436 | esac |
2437 | ||
cac3d6c4 | 2438 | |
c6b750e1 DJ |
2439 | |
2440 | case ${target_alias} in | |
2441 | "") target_noncanonical=${host_noncanonical} ;; | |
2442 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2443 | esac |
2444 | ||
cac3d6c4 | 2445 | |
c6b750e1 DJ |
2446 | |
2447 | ||
2448 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2449 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2450 | NONENONEs,x,x, && | |
c6b750e1 | 2451 | program_transform_name=s,y,y, |
cac3d6c4 | 2452 | |
81ecdfbb RW |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2454 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2455 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2456 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2457 | else |
81ecdfbb RW |
2458 | if test "x$host_alias" = x; then |
2459 | ac_cv_host=$ac_cv_build | |
2460 | else | |
2461 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2462 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2463 | fi |
c6b750e1 DJ |
2464 | |
2465 | fi | |
81ecdfbb RW |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2467 | $as_echo "$ac_cv_host" >&6; } | |
2468 | case $ac_cv_host in | |
2469 | *-*-*) ;; | |
d0ac1c44 | 2470 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2471 | esac |
c6b750e1 | 2472 | host=$ac_cv_host |
81ecdfbb RW |
2473 | ac_save_IFS=$IFS; IFS='-' |
2474 | set x $ac_cv_host | |
2475 | shift | |
2476 | host_cpu=$1 | |
2477 | host_vendor=$2 | |
2478 | shift; shift | |
2479 | # Remember, the first character of IFS is used to create $*, | |
2480 | # except with old shells: | |
2481 | host_os=$* | |
2482 | IFS=$ac_save_IFS | |
2483 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2484 | |
2485 | ||
81ecdfbb RW |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2487 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2488 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2489 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2490 | else |
81ecdfbb RW |
2491 | if test "x$target_alias" = x; then |
2492 | ac_cv_target=$ac_cv_host | |
2493 | else | |
2494 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2495 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2496 | fi |
c6b750e1 | 2497 | |
cac3d6c4 | 2498 | fi |
81ecdfbb RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2500 | $as_echo "$ac_cv_target" >&6; } | |
2501 | case $ac_cv_target in | |
2502 | *-*-*) ;; | |
d0ac1c44 | 2503 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2504 | esac |
c6b750e1 | 2505 | target=$ac_cv_target |
81ecdfbb RW |
2506 | ac_save_IFS=$IFS; IFS='-' |
2507 | set x $ac_cv_target | |
2508 | shift | |
2509 | target_cpu=$1 | |
2510 | target_vendor=$2 | |
2511 | shift; shift | |
2512 | # Remember, the first character of IFS is used to create $*, | |
2513 | # except with old shells: | |
2514 | target_os=$* | |
2515 | IFS=$ac_save_IFS | |
2516 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2517 | |
2518 | ||
2519 | # The aliases save the names the user supplied, while $host etc. | |
2520 | # will get canonicalized. | |
2521 | test -n "$target_alias" && | |
2522 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2523 | NONENONEs,x,x, && | |
2524 | program_prefix=${target_alias}- | |
81ecdfbb | 2525 | |
a0da8069 | 2526 | test "$program_prefix" != NONE && |
81ecdfbb | 2527 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2528 | # Use a double $ so make ignores it. |
2529 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2530 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2531 | # Double any \ or $. | |
c6b750e1 | 2532 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2533 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2534 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2535 | |
a0da8069 NN |
2536 | |
2537 | ||
e5c3f801 NN |
2538 | # Get 'install' or 'install-sh' and its variants. |
2539 | # Find a good install program. We prefer a C program (faster), | |
2540 | # so one script is as good as another. But avoid the broken or | |
2541 | # incompatible versions: | |
2542 | # SysV /etc/install, /usr/sbin/install | |
2543 | # SunOS /usr/etc/install | |
2544 | # IRIX /sbin/install | |
2545 | # AIX /bin/install | |
c6b750e1 | 2546 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2547 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2548 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2549 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2550 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2551 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2552 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2554 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2555 | if test -z "$INSTALL"; then |
d0ac1c44 | 2556 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2557 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2558 | else |
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2560 | for as_dir in $PATH | |
2561 | do | |
2562 | IFS=$as_save_IFS | |
2563 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2564 | # Account for people who put trailing slashes in PATH elements. |
2565 | case $as_dir/ in #(( | |
2566 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2567 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2568 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2569 | /usr/ucb/* ) ;; |
2570 | *) | |
2571 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2572 | # Don't use installbsd from OSF since it installs stuff as root | |
2573 | # by default. | |
2574 | for ac_prog in ginstall scoinst install; do | |
2575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2576 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2577 | if test $ac_prog = install && |
c6b750e1 | 2578 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2579 | # AIX install. It has an incompatible calling convention. |
2580 | : | |
c6b750e1 DJ |
2581 | elif test $ac_prog = install && |
2582 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2583 | # program-specific install script used by HP pwplus--don't use. | |
2584 | : | |
e5c3f801 | 2585 | else |
58c85be7 RW |
2586 | rm -rf conftest.one conftest.two conftest.dir |
2587 | echo one > conftest.one | |
2588 | echo two > conftest.two | |
2589 | mkdir conftest.dir | |
2590 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2591 | test -s conftest.one && test -s conftest.two && | |
2592 | test -s conftest.dir/conftest.one && | |
2593 | test -s conftest.dir/conftest.two | |
2594 | then | |
2595 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2596 | break 3 | |
2597 | fi | |
e5c3f801 NN |
2598 | fi |
2599 | fi | |
2600 | done | |
c6b750e1 DJ |
2601 | done |
2602 | ;; | |
2603 | esac | |
81ecdfbb RW |
2604 | |
2605 | done | |
2606 | IFS=$as_save_IFS | |
c6b750e1 | 2607 | |
58c85be7 | 2608 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2609 | |
2610 | fi | |
2611 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2612 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2613 | else |
58c85be7 RW |
2614 | # As a last resort, use the slow shell script. Don't cache a |
2615 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2616 | # break other packages using the cache if that directory is |
58c85be7 | 2617 | # removed, or if the value is a relative name. |
c6b750e1 | 2618 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2619 | fi |
2620 | fi | |
81ecdfbb RW |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2622 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2623 | |
2624 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2625 | # It thinks the first close brace ends the variable substitution. | |
2626 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2627 | ||
c6b750e1 | 2628 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2629 | |
2630 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2631 | ||
81ecdfbb RW |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2633 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2634 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2635 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2636 | else |
2637 | rm -f conftestdata_t | |
2638 | echo >conftestdata_f | |
2639 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2640 | then | |
2641 | acx_cv_prog_LN=ln | |
2642 | else | |
2643 | acx_cv_prog_LN=no | |
2644 | fi | |
2645 | rm -f conftestdata_f conftestdata_t | |
2646 | ||
2647 | fi | |
2648 | if test $acx_cv_prog_LN = no; then | |
2649 | LN="cp" | |
81ecdfbb RW |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2651 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2652 | else |
2653 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2655 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2656 | fi |
2657 | ||
81ecdfbb RW |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2659 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2660 | LN_S=$as_ln_s |
2661 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2663 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2664 | else |
81ecdfbb RW |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2666 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2667 | fi |
2668 | ||
8e957354 PB |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2670 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2671 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2672 | $as_echo_n "(cached) " >&6 |
2673 | else | |
2674 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2675 | for ac_i in 1 2 3 4 5 6 7; do | |
2676 | ac_script="$ac_script$as_nl$ac_script" | |
2677 | done | |
2678 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2679 | { ac_script=; unset ac_script;} | |
2680 | if test -z "$SED"; then | |
2681 | ac_path_SED_found=false | |
2682 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2684 | for as_dir in $PATH | |
2685 | do | |
2686 | IFS=$as_save_IFS | |
2687 | test -z "$as_dir" && as_dir=. | |
2688 | for ac_prog in sed gsed; do | |
2689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2690 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2691 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2692 | # Check for GNU ac_path_SED and select it if it is found. |
2693 | # Check for GNU $ac_path_SED | |
2694 | case `"$ac_path_SED" --version 2>&1` in | |
2695 | *GNU*) | |
2696 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2697 | *) | |
2698 | ac_count=0 | |
2699 | $as_echo_n 0123456789 >"conftest.in" | |
2700 | while : | |
2701 | do | |
2702 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2703 | mv "conftest.tmp" "conftest.in" | |
2704 | cp "conftest.in" "conftest.nl" | |
2705 | $as_echo '' >> "conftest.nl" | |
2706 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2707 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2708 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2709 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2710 | # Best one so far, save it but keep looking for a better one | |
2711 | ac_cv_path_SED="$ac_path_SED" | |
2712 | ac_path_SED_max=$ac_count | |
2713 | fi | |
2714 | # 10*(2^10) chars as input seems more than enough | |
2715 | test $ac_count -gt 10 && break | |
2716 | done | |
2717 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2718 | esac | |
2719 | ||
2720 | $ac_path_SED_found && break 3 | |
2721 | done | |
2722 | done | |
2723 | done | |
2724 | IFS=$as_save_IFS | |
2725 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2726 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2727 | fi |
2728 | else | |
2729 | ac_cv_path_SED=$SED | |
2730 | fi | |
2731 | ||
2732 | fi | |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2734 | $as_echo "$ac_cv_path_SED" >&6; } | |
2735 | SED="$ac_cv_path_SED" | |
2736 | rm -f conftest.sed | |
2737 | ||
2738 | for ac_prog in gawk mawk nawk awk | |
2739 | do | |
2740 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2741 | set dummy $ac_prog; ac_word=$2 | |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2743 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2744 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2745 | $as_echo_n "(cached) " >&6 |
2746 | else | |
2747 | if test -n "$AWK"; then | |
2748 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2749 | else | |
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2751 | for as_dir in $PATH | |
2752 | do | |
2753 | IFS=$as_save_IFS | |
2754 | test -z "$as_dir" && as_dir=. | |
2755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2757 | ac_cv_prog_AWK="$ac_prog" |
2758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2759 | break 2 | |
2760 | fi | |
2761 | done | |
2762 | done | |
2763 | IFS=$as_save_IFS | |
2764 | ||
2765 | fi | |
2766 | fi | |
2767 | AWK=$ac_cv_prog_AWK | |
2768 | if test -n "$AWK"; then | |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2770 | $as_echo "$AWK" >&6; } | |
2771 | else | |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2773 | $as_echo "no" >&6; } | |
2774 | fi | |
2775 | ||
2776 | ||
2777 | test -n "$AWK" && break | |
2778 | done | |
2779 | ||
e5c3f801 | 2780 | |
0fdbe983 DJ |
2781 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2782 | ||
2783 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2784 | # a relative path. | |
2785 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2786 | INSTALL="${srcpwd}/install-sh -c" | |
2787 | fi | |
2788 | ||
a0da8069 NN |
2789 | # Set srcdir to "." if that's what it is. |
2790 | # This is important for multilib support. | |
2791 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2792 | if test "${pwd}" = "${srcpwd}" ; then |
2793 | srcdir=. | |
252b5132 RH |
2794 | fi |
2795 | ||
a0da8069 | 2796 | topsrcdir=$srcpwd |
252b5132 | 2797 | |
a0da8069 | 2798 | extra_host_args= |
afefada0 | 2799 | |
a0da8069 NN |
2800 | ### To add a new directory to the tree, first choose whether it is a target |
2801 | ### or a host dependent tool. Then put it into the appropriate list | |
2802 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2803 | |
c6b750e1 | 2804 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2805 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2806 | |
c6b750e1 DJ |
2807 | # Dependency sorting is only needed when *configuration* must be done in |
2808 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2809 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2810 | |
a0da8069 NN |
2811 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2812 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2813 | |
6a9cf61e PB |
2814 | # these library is used by various programs built for the build |
2815 | # environment | |
2816 | # | |
1b6c0831 | 2817 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2818 | |
2819 | # these tools are built for the build environment | |
a90ef4bf | 2820 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2821 | |
a0da8069 | 2822 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2823 | #f |
19e559f1 | 2824 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe" |
a0da8069 | 2825 | |
a0da8069 NN |
2826 | # these tools are built for the host environment |
2827 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2828 | # know that we are building the simulator. | |
2829 | # binutils, gas and ld appear in that order because it makes sense to run | |
2830 | # "make check" in that particular order. | |
e6de499b | 2831 | # If --enable-gold is used, "gold" may replace "ld". |
228cf97d | 2832 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools" |
a0da8069 | 2833 | |
a0da8069 NN |
2834 | # these libraries are built for the target environment, and are built after |
2835 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2836 | # Note that libiberty is not a target library. |
b1299c4e | 2837 | target_libraries="target-libgcc \ |
2bf680c4 | 2838 | target-libbacktrace \ |
a0da8069 NN |
2839 | target-libgloss \ |
2840 | target-newlib \ | |
cff87f51 | 2841 | target-libgomp \ |
1b6c0831 | 2842 | target-liboffloadmic \ |
7ec59b9e | 2843 | target-libatomic \ |
d32e2926 | 2844 | target-libitm \ |
b9459e83 | 2845 | target-libstdc++-v3 \ |
5286fdef | 2846 | target-libsanitizer \ |
95e43135 | 2847 | target-libvtv \ |
bb780410 | 2848 | target-libssp \ |
e552509b | 2849 | target-libquadmath \ |
4b1cb4fe | 2850 | target-libgfortran \ |
05a13254 | 2851 | target-libffi \ |
a2592b1b | 2852 | target-libobjc \ |
e552509b | 2853 | target-libada \ |
228cf97d AM |
2854 | target-libgo \ |
2855 | target-libphobos \ | |
2856 | target-zlib" | |
a0da8069 | 2857 | |
9c14acb8 NN |
2858 | # these tools are built using the target libraries, and are intended to |
2859 | # run only in the target environment | |
a0da8069 | 2860 | # |
9c14acb8 | 2861 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2862 | # list belongs in this list. |
a0da8069 | 2863 | # |
a90ef4bf | 2864 | target_tools="target-rda" |
252b5132 | 2865 | |
a0da8069 | 2866 | ################################################################################ |
252b5132 | 2867 | |
a0da8069 NN |
2868 | ## All tools belong in one of the four categories, and are assigned above |
2869 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2870 | ## is important because configure will choke if they ever get through. | |
2871 | ## ${configdirs} is directories we build using the host tools. | |
2872 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2873 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2874 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2875 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2876 | |
9cc8ae67 PB |
2877 | |
2878 | ||
a0da8069 | 2879 | ################################################################################ |
252b5132 | 2880 | |
a0da8069 | 2881 | srcname="gnu development package" |
252b5132 | 2882 | |
a0da8069 NN |
2883 | # This gets set non-empty for some net releases of packages. |
2884 | appdirs="" | |
252b5132 | 2885 | |
a0da8069 NN |
2886 | # Define is_cross_compiler to save on calls to 'test'. |
2887 | is_cross_compiler= | |
2888 | if test x"${host}" = x"${target}" ; then | |
2889 | is_cross_compiler=no | |
252b5132 | 2890 | else |
a0da8069 | 2891 | is_cross_compiler=yes |
c6b750e1 | 2892 | fi |
252b5132 | 2893 | |
9175bfc0 | 2894 | # Find the build and target subdir names. |
dd12c3a8 | 2895 | |
66a79c16 DJ |
2896 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2897 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2898 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2899 | # However, they still use the build modules, because the corresponding | |
2900 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2901 | # finishes. So: | |
2902 | # - build_subdir is where we find build modules, and never changes. | |
2903 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2904 | ||
2905 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2906 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2907 | |
81ecdfbb RW |
2908 | # Check whether --with-build-libsubdir was given. |
2909 | if test "${with_build_libsubdir+set}" = set; then : | |
2910 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2911 | else |
2912 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2913 | fi |
2914 | ||
b00612cc PB |
2915 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2916 | if ( test $srcdir = . && test -d gcc ) \ | |
2917 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2918 | host_subdir="host-${host_noncanonical}" | |
2919 | else | |
2920 | host_subdir=. | |
2921 | fi | |
dd12c3a8 NN |
2922 | # No prefix. |
2923 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2924 | |
2fd0b40b RW |
2925 | # Be sure to cover against remnants of an in-tree build. |
2926 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2927 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2928 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2929 | fi | |
252b5132 | 2930 | |
a0da8069 NN |
2931 | # Skipdirs are removed silently. |
2932 | skipdirs= | |
2933 | # Noconfigdirs are removed loudly. | |
2934 | noconfigdirs="" | |
252b5132 | 2935 | |
a0da8069 NN |
2936 | use_gnu_ld= |
2937 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2938 | if test x$with_gnu_ld = xno ; then | |
2939 | use_gnu_ld=no | |
93f9b408 | 2940 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2941 | fi |
2942 | ||
a0da8069 NN |
2943 | use_gnu_as= |
2944 | # Make sure we don't let GNU as be added if we didn't want it. | |
2945 | if test x$with_gnu_as = xno ; then | |
2946 | use_gnu_as=no | |
2947 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2948 | fi |
2949 | ||
700d40ca | 2950 | use_included_zlib= |
cf39cfc5 L |
2951 | |
2952 | # Check whether --with-system-zlib was given. | |
2953 | if test "${with_system_zlib+set}" = set; then : | |
2954 | withval=$with_system_zlib; | |
2955 | fi | |
2956 | ||
700d40ca ILT |
2957 | # Make sure we don't let ZLIB be added if we didn't want it. |
2958 | if test x$with_system_zlib = xyes ; then | |
2959 | use_included_zlib=no | |
2960 | noconfigdirs="$noconfigdirs zlib" | |
2961 | fi | |
2962 | ||
1c232ab0 ДП |
2963 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2964 | # is provided. | |
2965 | if test x$with_system_readline = xyes ; then | |
2966 | noconfigdirs="$noconfigdirs readline" | |
2967 | fi | |
2968 | ||
2cac01e3 FS |
2969 | |
2970 | # Check whether --with-zstd was given. | |
2971 | if test "${with_zstd+set}" = set; then : | |
2972 | withval=$with_zstd; | |
2973 | fi | |
2974 | ||
2975 | ||
c6b750e1 | 2976 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2977 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2978 | |
a0da8069 NN |
2979 | case ${with_x} in |
2980 | yes | "") ;; # the default value for this tree is that X11 is available | |
2981 | no) | |
675c6968 | 2982 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2983 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2984 | enable_gdbtk=no |
a0da8069 NN |
2985 | ;; |
2986 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2987 | esac | |
252b5132 | 2988 | |
0377a422 | 2989 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2990 | # Remove these if host=target. |
2991 | cross_only="target-libgloss target-newlib target-opcodes" | |
2992 | ||
2993 | case $is_cross_compiler in | |
2994 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2995 | esac |
252b5132 | 2996 | |
a0da8069 NN |
2997 | # If both --with-headers and --with-libs are specified, default to |
2998 | # --without-newlib. | |
32be62b5 RS |
2999 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
3000 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
3001 | if test x"${with_newlib}" = x ; then |
3002 | with_newlib=no | |
3003 | fi | |
252b5132 RH |
3004 | fi |
3005 | ||
a0da8069 NN |
3006 | # Recognize --with-newlib/--without-newlib. |
3007 | case ${with_newlib} in | |
3008 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3009 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3010 | esac | |
252b5132 | 3011 | |
1b6c0831 L |
3012 | # Check whether --enable-as-accelerator-for was given. |
3013 | if test "${enable_as_accelerator_for+set}" = set; then : | |
3014 | enableval=$enable_as_accelerator_for; | |
3015 | fi | |
3016 | ||
3017 | ||
3018 | # Check whether --enable-offload-targets was given. | |
3019 | if test "${enable_offload_targets+set}" = set; then : | |
3020 | enableval=$enable_offload_targets; | |
3021 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 3022 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
3023 | fi |
3024 | ||
3025 | else | |
3026 | enable_offload_targets= | |
3027 | fi | |
3028 | ||
3029 | ||
228cf97d AM |
3030 | # Check whether --enable-offload-defaulted was given. |
3031 | if test "${enable_offload_defaulted+set}" = set; then : | |
3032 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3033 | else | |
3034 | enable_offload_defaulted= | |
3035 | fi | |
3036 | ||
3037 | ||
c7791212 NC |
3038 | # Handle --enable-gold, --enable-ld. |
3039 | # --disable-gold [--enable-ld] | |
3040 | # Build only ld. Default option. | |
d3b50760 L |
3041 | # --enable-gold [--enable-ld] |
3042 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3043 | # as "ld.bfd" and "ld". | |
3044 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
3045 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3046 | # install ld as "ld.bfd". | |
3047 | # --enable-gold[=default] --disable-ld | |
3048 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3049 | # --enable-gold --enable-ld=default | |
d3b50760 L |
3050 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3051 | # and ld.bfd). | |
c7791212 NC |
3052 | # In other words, ld is default |
3053 | # --enable-gold=default --enable-ld=default | |
3054 | # Error. | |
3055 | ||
3056 | default_ld= | |
81ecdfbb RW |
3057 | # Check whether --enable-gold was given. |
3058 | if test "${enable_gold+set}" = set; then : | |
3059 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3060 | else |
3061 | ENABLE_GOLD=no | |
81ecdfbb RW |
3062 | fi |
3063 | ||
c7791212 NC |
3064 | case "${ENABLE_GOLD}" in |
3065 | yes|default) | |
e6de499b NC |
3066 | # Check for ELF target. |
3067 | is_elf=no | |
3068 | case "${target}" in | |
3069 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3070 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3071 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
228cf97d | 3072 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3073 | case "${target}" in |
3074 | *-*-linux*aout* | *-*-linux*oldld*) | |
3075 | ;; | |
3076 | *) | |
3077 | is_elf=yes | |
3078 | ;; | |
3079 | esac | |
3080 | esac | |
3081 | ||
3082 | if test "$is_elf" = "yes"; then | |
3083 | # Check for target supported by gold. | |
93f9b408 | 3084 | case "${target}" in |
6d26190c | 3085 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
228cf97d | 3086 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
c7791212 NC |
3087 | configdirs="$configdirs gold" |
3088 | if test x${ENABLE_GOLD} = xdefault; then | |
3089 | default_ld=gold | |
3090 | fi | |
e6de499b | 3091 | ENABLE_GOLD=yes |
93f9b408 ILT |
3092 | ;; |
3093 | esac | |
e6de499b NC |
3094 | fi |
3095 | ;; | |
3096 | no) | |
3097 | ;; | |
3098 | *) | |
d0ac1c44 | 3099 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3100 | ;; |
c7791212 NC |
3101 | esac |
3102 | ||
3103 | # Check whether --enable-ld was given. | |
3104 | if test "${enable_ld+set}" = set; then : | |
3105 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3106 | else | |
3107 | ENABLE_LD=yes | |
3108 | fi | |
3109 | ||
3110 | ||
3111 | case "${ENABLE_LD}" in | |
3112 | default) | |
d3b50760 | 3113 | if test x${default_ld} != x; then |
d0ac1c44 | 3114 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3115 | fi |
3116 | ;; | |
3117 | yes) | |
3118 | ;; | |
3119 | no) | |
3120 | if test x${ENABLE_GOLD} != xyes; then | |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3122 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3123 | fi | |
3124 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3125 | ;; | |
3126 | *) | |
d0ac1c44 | 3127 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3128 | ;; |
3129 | esac | |
93f9b408 | 3130 | |
bb368aad VM |
3131 | # Check whether --enable-gprofng was given. |
3132 | if test "${enable_gprofng+set}" = set; then : | |
3133 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3134 | else | |
3135 | enable_gprofng=yes | |
3136 | fi | |
3137 | ||
3138 | if test "$enable_gprofng" = "yes"; then | |
3139 | case "${target}" in | |
3140 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3141 | configdirs="$configdirs gprofng" | |
3142 | ;; | |
3143 | esac | |
3144 | fi | |
3145 | ||
3146 | ||
edeefb67 L |
3147 | # PR gas/19109 |
3148 | # Decide the default method for compressing debug sections. | |
3149 | # Provide a configure time option to override our default. | |
3150 | # Check whether --enable-compressed_debug_sections was given. | |
3151 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3152 | enableval=$enable_compressed_debug_sections; | |
3153 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3154 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3155 | fi |
3156 | ||
3157 | else | |
3158 | enable_compressed_debug_sections= | |
3159 | fi | |
3160 | ||
3161 | ||
b0c295e1 ML |
3162 | # Select default compression algorithm. |
3163 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3164 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3165 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3166 | else | |
3167 | default_compressed_debug_sections_algorithm= | |
3168 | fi | |
3169 | ||
3170 | ||
a0da8069 | 3171 | # Configure extra directories which are host specific |
252b5132 | 3172 | |
a0da8069 NN |
3173 | case "${host}" in |
3174 | *-cygwin*) | |
3175 | configdirs="$configdirs libtermcap" ;; | |
3176 | esac | |
252b5132 | 3177 | |
59f7ec45 HPN |
3178 | # A target can indicate whether a language isn't supported for some reason. |
3179 | # Only spaces may be used in this macro; not newlines or tabs. | |
3180 | unsupported_languages= | |
3181 | ||
c6b750e1 | 3182 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3183 | # target this usually means that a port of the program doesn't |
3184 | # exist yet. | |
252b5132 | 3185 | |
a0da8069 | 3186 | case "${host}" in |
3516a403 | 3187 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3188 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3189 | ;; |
a0da8069 | 3190 | esac |
252b5132 | 3191 | |
e5f2f7d9 LM |
3192 | # Default to --disable-year2038 until we can handle differences between |
3193 | # projects that use gnulib (which understands year 2038) and projects that | |
3194 | # do not (like BFD). | |
3195 | # Check whether --enable-year2038 was given. | |
3196 | if test "${enable_year2038+set}" = set; then : | |
3197 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3198 | else | |
3199 | ENABLE_YEAR2038=no | |
3200 | fi | |
3201 | ||
3202 | enable_year2038= | |
3203 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3204 | enable_year2038=no | |
3205 | fi | |
4b1cb4fe | 3206 | |
89a1e9c3 PB |
3207 | # Check whether --enable-libquadmath was given. |
3208 | if test "${enable_libquadmath+set}" = set; then : | |
3209 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3210 | else | |
3211 | ENABLE_LIBQUADMATH=yes | |
3212 | fi | |
3213 | ||
3214 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3215 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3216 | fi | |
3217 | ||
3218 | ||
3219 | # Check whether --enable-libquadmath-support was given. | |
3220 | if test "${enable_libquadmath_support+set}" = set; then : | |
3221 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3222 | else | |
3223 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3224 | fi | |
3225 | ||
3226 | enable_libquadmath_support= | |
3227 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3228 | enable_libquadmath_support=no | |
3229 | fi | |
3230 | ||
3231 | ||
81ecdfbb RW |
3232 | # Check whether --enable-libada was given. |
3233 | if test "${enable_libada+set}" = set; then : | |
3234 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3235 | else |
3236 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3237 | fi |
3238 | ||
a2592b1b | 3239 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3240 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3241 | fi |
3242 | ||
81ecdfbb RW |
3243 | # Check whether --enable-libssp was given. |
3244 | if test "${enable_libssp+set}" = set; then : | |
3245 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3246 | else |
3247 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3248 | fi |
3249 | ||
5f128533 | 3250 | |
f66a9a70 L |
3251 | # Check whether --enable-libstdcxx was given. |
3252 | if test "${enable_libstdcxx+set}" = set; then : | |
3253 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3254 | else | |
3255 | ENABLE_LIBSTDCXX=default | |
3256 | fi | |
3257 | ||
3258 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3259 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3260 | fi | |
3261 | ||
3262 | # If this is accelerator compiler and its target is intelmic we enable | |
3263 | # target liboffloadmic by default. If this is compiler with offloading | |
3264 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3265 | # liboffloadmic is disabled by default. | |
3266 | # Check whether --enable-liboffloadmic was given. | |
3267 | if test "${enable_liboffloadmic+set}" = set; then : | |
3268 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3269 | no | host | target) | |
3270 | enable_liboffloadmic=$enableval ;; | |
3271 | *) | |
d0ac1c44 | 3272 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3273 | esac |
3274 | else | |
3275 | if test x"$enable_as_accelerator_for" != x; then | |
3276 | case "${target}" in | |
3277 | *-intelmic-* | *-intelmicemul-*) | |
3278 | enable_liboffloadmic=target | |
3279 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3280 | ;; | |
3281 | *) | |
3282 | enable_liboffloadmic=no | |
3283 | ;; | |
3284 | esac | |
3285 | else | |
3286 | case "${enable_offload_targets}" in | |
3287 | *-intelmic-* | *-intelmicemul-*) | |
3288 | enable_liboffloadmic=host | |
3289 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3290 | ;; | |
3291 | *) | |
3292 | enable_liboffloadmic=no | |
3293 | ;; | |
3294 | esac | |
3295 | fi | |
f66a9a70 L |
3296 | fi |
3297 | ||
1b6c0831 L |
3298 | |
3299 | ||
68996839 | 3300 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3301 | if test x$enable_libgomp = x ; then |
b3ded179 | 3302 | case "${target}" in |
29383458 | 3303 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3304 | ;; |
5b806d27 | 3305 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3306 | ;; |
2479f722 | 3307 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3308 | ;; |
3309 | *-*-darwin* | *-*-aix*) | |
3310 | ;; | |
228cf97d | 3311 | nvptx*-*-* | amdgcn*-*-*) |
68996839 | 3312 | ;; |
b3ded179 PB |
3313 | *) |
3314 | noconfigdirs="$noconfigdirs target-libgomp" | |
3315 | ;; | |
3316 | esac | |
a6df5a19 | 3317 | fi |
b3ded179 | 3318 | |
7ec59b9e L |
3319 | # Disable libatomic on unsupported systems. |
3320 | if test -d ${srcdir}/libatomic; then | |
3321 | if test x$enable_libatomic = x; then | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3323 | $as_echo_n "checking for libatomic support... " >&6; } | |
3324 | if (srcdir=${srcdir}/libatomic; \ | |
3325 | . ${srcdir}/configure.tgt; \ | |
3326 | test -n "$UNSUPPORTED") | |
3327 | then | |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3329 | $as_echo "no" >&6; } | |
3330 | noconfigdirs="$noconfigdirs target-libatomic" | |
3331 | else | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3333 | $as_echo "yes" >&6; } | |
3334 | fi | |
3335 | fi | |
3336 | fi | |
3337 | ||
1b6c0831 L |
3338 | # Disable liboffloadmic on unsupported systems. |
3339 | if test -d ${srcdir}/liboffloadmic; then | |
3340 | if test x$enable_liboffloadmic != xno; then | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3342 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3343 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3344 | . ${srcdir}/configure.tgt; \ | |
3345 | test -n "$UNSUPPORTED") | |
3346 | then | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3348 | $as_echo "no" >&6; } | |
3349 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3350 | else | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3352 | $as_echo "yes" >&6; } | |
3353 | fi | |
3354 | fi | |
3355 | fi | |
3356 | ||
d32e2926 RH |
3357 | # Disable libitm on unsupported systems. |
3358 | if test -d ${srcdir}/libitm; then | |
3359 | if test x$enable_libitm = x; then | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3361 | $as_echo_n "checking for libitm support... " >&6; } | |
3362 | if (srcdir=${srcdir}/libitm; \ | |
3363 | . ${srcdir}/configure.tgt; \ | |
3364 | test -n "$UNSUPPORTED") | |
3365 | then | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3367 | $as_echo "no" >&6; } | |
3368 | noconfigdirs="$noconfigdirs target-libitm" | |
3369 | else | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3371 | $as_echo "yes" >&6; } | |
3372 | fi | |
3373 | fi | |
3374 | fi | |
3375 | ||
5286fdef L |
3376 | # Disable libsanitizer on unsupported systems. |
3377 | if test -d ${srcdir}/libsanitizer; then | |
3378 | if test x$enable_libsanitizer = x; then | |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3380 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3381 | if (srcdir=${srcdir}/libsanitizer; \ | |
3382 | . ${srcdir}/configure.tgt; \ | |
3383 | test -n "$UNSUPPORTED") | |
3384 | then | |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3386 | $as_echo "no" >&6; } | |
3387 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3388 | else | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3390 | $as_echo "yes" >&6; } | |
3391 | fi | |
3392 | fi | |
3393 | fi | |
3394 | ||
95e43135 JBG |
3395 | # Disable libvtv on unsupported systems. |
3396 | if test -d ${srcdir}/libvtv; then | |
3397 | if test x$enable_libvtv = x; then | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3399 | $as_echo_n "checking for libvtv support... " >&6; } | |
3400 | if (srcdir=${srcdir}/libvtv; \ | |
3401 | . ${srcdir}/configure.tgt; \ | |
3402 | test "$VTV_SUPPORTED" != "yes") | |
3403 | then | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3405 | $as_echo "no" >&6; } | |
3406 | noconfigdirs="$noconfigdirs target-libvtv" | |
3407 | else | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3409 | $as_echo "yes" >&6; } | |
3410 | fi | |
3411 | fi | |
3412 | fi | |
3413 | ||
1488e230 DE |
3414 | # Disable libquadmath for some systems. |
3415 | case "${target}" in | |
5286fdef L |
3416 | avr-*-*) |
3417 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3418 | ;; | |
1488e230 DE |
3419 | # libquadmath is unused on AIX and libquadmath build process use of |
3420 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3421 | powerpc-*-aix* | rs6000-*-aix*) | |
3422 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3423 | ;; | |
3424 | esac | |
3425 | ||
065a5627 JM |
3426 | # Disable libssp for some systems. |
3427 | case "${target}" in | |
3428 | avr-*-*) | |
c5f5c3c2 | 3429 | # No hosted I/O support. |
065a5627 JM |
3430 | noconfigdirs="$noconfigdirs target-libssp" |
3431 | ;; | |
228cf97d AM |
3432 | bpf-*-*) |
3433 | noconfigdirs="$noconfigdirs target-libssp" | |
3434 | ;; | |
065a5627 JM |
3435 | powerpc-*-aix* | rs6000-*-aix*) |
3436 | noconfigdirs="$noconfigdirs target-libssp" | |
3437 | ;; | |
228cf97d AM |
3438 | pru-*-*) |
3439 | # No hosted I/O support. | |
3440 | noconfigdirs="$noconfigdirs target-libssp" | |
3441 | ;; | |
99c513f6 | 3442 | rl78-*-*) |
202e2356 NC |
3443 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3444 | # doesn't fault for those - instead, it gives a build-time error | |
3445 | # for explicit misaligned loads. | |
99c513f6 DD |
3446 | noconfigdirs="$noconfigdirs target-libssp" |
3447 | ;; | |
1b6c0831 L |
3448 | visium-*-*) |
3449 | # No hosted I/O support. | |
3450 | noconfigdirs="$noconfigdirs target-libssp" | |
3451 | ;; | |
065a5627 JM |
3452 | esac |
3453 | ||
065a5627 | 3454 | # Disable libstdc++-v3 for some systems. |
228cf97d | 3455 | # Allow user to override this if they pass --enable-libstdcxx |
f66a9a70 L |
3456 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3457 | case "${target}" in | |
3458 | *-*-vxworks*) | |
3459 | # VxWorks uses the Dinkumware C++ library. | |
3460 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3461 | ;; | |
228cf97d AM |
3462 | amdgcn*-*-*) |
3463 | # Not ported/fails to build when using newlib. | |
3464 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3465 | ;; | |
f66a9a70 L |
3466 | arm*-wince-pe*) |
3467 | # the C++ libraries don't build on top of CE's C libraries | |
3468 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3469 | ;; | |
3470 | avr-*-*) | |
3471 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3472 | ;; | |
228cf97d AM |
3473 | bpf-*-*) |
3474 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3475 | ;; | |
969b1713 L |
3476 | ft32-*-*) |
3477 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3478 | ;; | |
f66a9a70 L |
3479 | esac |
3480 | fi | |
065a5627 | 3481 | |
228cf97d AM |
3482 | # Disable C++ on systems where it is known to not work. |
3483 | # For testing, you can override this with --enable-languages=c++. | |
3484 | case ,${enable_languages}, in | |
3485 | *,c++,*) | |
3486 | ;; | |
3487 | *) | |
3488 | case "${target}" in | |
3489 | bpf-*-*) | |
3490 | unsupported_languages="$unsupported_languages c++" | |
3491 | ;; | |
3492 | esac | |
3493 | ;; | |
3494 | esac | |
3495 | ||
3496 | # Disable Objc on systems where it is known to not work. | |
3497 | # For testing, you can override this with --enable-languages=objc. | |
3498 | case ,${enable_languages}, in | |
3499 | *,objc,*) | |
3500 | ;; | |
3501 | *) | |
3502 | case "${target}" in | |
3503 | bpf-*-*) | |
3504 | unsupported_languages="$unsupported_languages objc" | |
3505 | ;; | |
3506 | esac | |
3507 | ;; | |
3508 | esac | |
3509 | ||
3510 | # Disable D on systems where it is known to not work. | |
3511 | # For testing, you can override this with --enable-languages=d. | |
3512 | case ,${enable_languages}, in | |
3513 | *,d,*) | |
3514 | ;; | |
3515 | *) | |
3516 | case "${target}" in | |
3517 | bpf-*-*) | |
3518 | unsupported_languages="$unsupported_languages d" | |
3519 | ;; | |
3520 | esac | |
3521 | ;; | |
3522 | esac | |
3523 | ||
3524 | # Disable libphobos on unsupported systems. | |
3525 | # For testing, you can override this with --enable-libphobos. | |
3526 | if test -d ${srcdir}/libphobos; then | |
3527 | if test x$enable_libphobos = x; then | |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3529 | $as_echo_n "checking for libphobos support... " >&6; } | |
3530 | if (srcdir=${srcdir}/libphobos; \ | |
3531 | . ${srcdir}/configure.tgt; \ | |
3532 | test "$LIBPHOBOS_SUPPORTED" != "yes") | |
3533 | then | |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3535 | $as_echo "no" >&6; } | |
3536 | noconfigdirs="$noconfigdirs target-libphobos" | |
3537 | else | |
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3539 | $as_echo "yes" >&6; } | |
3540 | fi | |
3541 | fi | |
3542 | fi | |
3543 | ||
065a5627 JM |
3544 | # Disable Fortran for some systems. |
3545 | case "${target}" in | |
3546 | mmix-*-*) | |
3547 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3548 | unsupported_languages="$unsupported_languages fortran" | |
3549 | ;; | |
228cf97d AM |
3550 | bpf-*-*) |
3551 | unsupported_languages="$unsupported_languages fortran" | |
3552 | ;; | |
065a5627 JM |
3553 | esac |
3554 | ||
05a13254 | 3555 | # Disable libffi for some systems. |
0827f9a6 | 3556 | case "${target}" in |
9863d716 JM |
3557 | powerpc-*-darwin*) |
3558 | ;; | |
3559 | i[3456789]86-*-darwin*) | |
3560 | ;; | |
3561 | x86_64-*-darwin[912]*) | |
3562 | ;; | |
3563 | *-*-darwin*) | |
05a13254 | 3564 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3565 | ;; |
9863d716 | 3566 | *-*-netware*) |
05a13254 NC |
3567 | noconfigdirs="$noconfigdirs target-libffi" |
3568 | ;; | |
3569 | *-*-phoenix*) | |
3570 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3571 | ;; |
3572 | *-*-rtems*) | |
05a13254 | 3573 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3574 | ;; |
3575 | *-*-tpf*) | |
05a13254 | 3576 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3577 | ;; |
3578 | *-*-uclinux*) | |
05a13254 | 3579 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3580 | ;; |
3581 | *-*-vxworks*) | |
05a13254 NC |
3582 | noconfigdirs="$noconfigdirs target-libffi" |
3583 | ;; | |
3584 | aarch64*-*-freebsd*) | |
3585 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3586 | ;; |
9863d716 | 3587 | alpha*-*-*vms*) |
05a13254 | 3588 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3589 | ;; |
1b6c0831 | 3590 | arm*-*-freebsd*) |
05a13254 | 3591 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3592 | ;; |
0827f9a6 | 3593 | arm-wince-pe) |
05a13254 | 3594 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3595 | ;; |
228cf97d AM |
3596 | arm*-*-symbianelf*) |
3597 | noconfigdirs="$noconfigdirs target-libffi" | |
3598 | ;; | |
3599 | bpf-*-*) | |
3600 | noconfigdirs="$noconfigdirs target-libffi" | |
3601 | ;; | |
9863d716 | 3602 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3603 | case "${target}" in |
3604 | *-*-linux*) | |
3605 | ;; | |
3606 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3607 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3608 | esac |
3609 | ;; | |
82ae827f | 3610 | hppa*64*-*-hpux*) |
05a13254 | 3611 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3612 | ;; |
3613 | hppa*-hp-hpux11*) | |
3614 | ;; | |
82ae827f | 3615 | hppa*-*-hpux*) |
05a13254 | 3616 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3617 | ;; |
9863d716 | 3618 | ia64*-*-*vms*) |
05a13254 | 3619 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3620 | ;; |
9863d716 | 3621 | i[3456789]86-w64-mingw*) |
05a13254 | 3622 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3623 | ;; |
3624 | i[3456789]86-*-mingw*) | |
05a13254 | 3625 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3626 | ;; |
3627 | x86_64-*-mingw*) | |
05a13254 | 3628 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3629 | ;; |
9863d716 | 3630 | mmix-*-*) |
05a13254 | 3631 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3632 | ;; |
3633 | powerpc-*-aix*) | |
9863d716 | 3634 | ;; |
9863d716 | 3635 | rs6000-*-aix*) |
9863d716 | 3636 | ;; |
3f8107ab | 3637 | ft32-*-*) |
05a13254 | 3638 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3639 | ;; |
9863d716 | 3640 | *-*-lynxos*) |
05a13254 | 3641 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3642 | ;; |
9863d716 JM |
3643 | esac |
3644 | ||
1b6c0831 L |
3645 | # Disable the go frontend on systems where it is known to not work. Please keep |
3646 | # this in sync with contrib/config-list.mk. | |
3647 | case "${target}" in | |
228cf97d | 3648 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
1b6c0831 L |
3649 | unsupported_languages="$unsupported_languages go" |
3650 | ;; | |
3651 | esac | |
3652 | ||
919adfe8 TT |
3653 | # Only allow gdbserver on some systems. |
3654 | if test -d ${srcdir}/gdbserver; then | |
3655 | if test x$enable_gdbserver = x; then | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3657 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3658 | if (srcdir=${srcdir}/gdbserver; \ | |
3659 | . ${srcdir}/configure.srv; \ | |
3660 | test -n "$UNSUPPORTED") | |
3661 | then | |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3663 | $as_echo "no" >&6; } | |
3664 | noconfigdirs="$noconfigdirs gdbserver" | |
3665 | else | |
3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3667 | $as_echo "yes" >&6; } | |
3668 | fi | |
3669 | fi | |
3670 | fi | |
3671 | ||
a413f71a ILT |
3672 | # Disable libgo for some systems where it is known to not work. |
3673 | # For testing, you can easily override this with --enable-libgo. | |
3674 | if test x$enable_libgo = x; then | |
3675 | case "${target}" in | |
3676 | *-*-darwin*) | |
3677 | # PR 46986 | |
3678 | noconfigdirs="$noconfigdirs target-libgo" | |
3679 | ;; | |
3680 | *-*-cygwin* | *-*-mingw*) | |
3681 | noconfigdirs="$noconfigdirs target-libgo" | |
3682 | ;; | |
228cf97d AM |
3683 | bpf-*-*) |
3684 | noconfigdirs="$noconfigdirs target-libgo" | |
3685 | ;; | |
a413f71a ILT |
3686 | esac |
3687 | fi | |
3688 | ||
691bb5a1 DD |
3689 | # Default libgloss CPU subdirectory. |
3690 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3691 | |
ff46fb8f JM |
3692 | case "${target}" in |
3693 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3694 | libgloss_dir=wince | |
3695 | ;; | |
f1dd87fc YZ |
3696 | aarch64*-*-* ) |
3697 | libgloss_dir=aarch64 | |
3698 | ;; | |
ff46fb8f JM |
3699 | arm*-*-*) |
3700 | libgloss_dir=arm | |
3701 | ;; | |
3702 | cris-*-* | crisv32-*-*) | |
3703 | libgloss_dir=cris | |
3704 | ;; | |
3705 | hppa*-*-*) | |
3706 | libgloss_dir=pa | |
3707 | ;; | |
3708 | i[3456789]86-*-*) | |
3709 | libgloss_dir=i386 | |
3710 | ;; | |
228cf97d AM |
3711 | loongarch*-*-*) |
3712 | libgloss_dir=loongarch | |
3713 | ;; | |
ff46fb8f JM |
3714 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3715 | libgloss_dir=m68hc11 | |
3716 | ;; | |
3717 | m68*-*-* | fido-*-*) | |
3718 | libgloss_dir=m68k | |
3719 | ;; | |
3720 | mips*-*-*) | |
3721 | libgloss_dir=mips | |
3722 | ;; | |
3723 | powerpc*-*-*) | |
3724 | libgloss_dir=rs6000 | |
3725 | ;; | |
228cf97d AM |
3726 | pru-*-*) |
3727 | libgloss_dir=pru | |
3728 | ;; | |
ff46fb8f JM |
3729 | sparc*-*-*) |
3730 | libgloss_dir=sparc | |
3731 | ;; | |
3732 | esac | |
3733 | ||
c7e4b184 | 3734 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3735 | case "${target}" in |
c7e4b184 JM |
3736 | alpha*-dec-osf*) |
3737 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3738 | ;; | |
3739 | i[3456789]86-*-linux*) | |
3740 | # This section makes it possible to build newlib natively on linux. | |
3741 | # If we are using a cross compiler then don't configure newlib. | |
3742 | if test x${is_cross_compiler} != xno ; then | |
3743 | noconfigdirs="$noconfigdirs target-newlib" | |
3744 | fi | |
3745 | noconfigdirs="$noconfigdirs target-libgloss" | |
3746 | # If we are not using a cross compiler, do configure newlib. | |
3747 | # Note however, that newlib will only be configured in this situation | |
3748 | # if the --with-newlib option has been given, because otherwise | |
3749 | # 'target-newlib' will appear in skipdirs. | |
3750 | ;; | |
3751 | i[3456789]86-*-rdos*) | |
3752 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3753 | ;; | |
3754 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3755 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3756 | ;; | |
3757 | sparc-*-sunos4*) | |
3758 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3759 | ;; | |
228cf97d AM |
3760 | bpf-*-*) |
3761 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3762 | ;; | |
c7e4b184 JM |
3763 | *-*-aix*) |
3764 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3765 | ;; | |
3766 | *-*-beos*) | |
3767 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3768 | ;; | |
a0da8069 | 3769 | *-*-chorusos) |
b2f14e4a | 3770 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3771 | ;; |
c7e4b184 JM |
3772 | *-*-dragonfly*) |
3773 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3774 | ;; | |
3775 | *-*-freebsd*) | |
3776 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3777 | ;; | |
3778 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3779 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3780 | ;; | |
3781 | *-*-lynxos*) | |
3782 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3783 | ;; | |
3784 | *-*-mingw*) | |
3785 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3786 | ;; | |
3787 | *-*-netbsd*) | |
3788 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3789 | ;; | |
3790 | *-*-netware*) | |
3791 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3792 | ;; | |
3793 | *-*-tpf*) | |
3794 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3795 | ;; | |
3796 | *-*-uclinux*) | |
3797 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3798 | ;; | |
3799 | *-*-vxworks*) | |
3800 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3801 | ;; | |
3802 | esac | |
3803 | ||
3804 | case "${target}" in | |
3805 | *-*-chorusos) | |
3806 | ;; | |
f075eb5e TG |
3807 | aarch64-*-darwin*) |
3808 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3809 | noconfigdirs="$noconfigdirs sim target-rda" | |
3810 | ;; | |
228cf97d AM |
3811 | amdgcn*-*-*) |
3812 | ;; | |
f075eb5e TG |
3813 | arm-*-darwin*) |
3814 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3815 | noconfigdirs="$noconfigdirs sim target-rda" | |
3816 | ;; | |
24741ab2 | 3817 | powerpc-*-darwin*) |
9d39db92 | 3818 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3819 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3820 | ;; |
85bd1942 TG |
3821 | i[3456789]86-*-darwin*) |
3822 | noconfigdirs="$noconfigdirs ld gprof" | |
3823 | noconfigdirs="$noconfigdirs sim target-rda" | |
3824 | ;; | |
e8a5fa9c | 3825 | x86_64-*-darwin[912]*) |
652dec25 TG |
3826 | noconfigdirs="$noconfigdirs ld gas gprof" |
3827 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3828 | ;; |
04d1ab34 | 3829 | *-*-darwin*) |
d320aacb | 3830 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3831 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3832 | ;; |
5b806d27 | 3833 | *-*-dragonfly*) |
5b806d27 | 3834 | ;; |
de0b4a87 | 3835 | *-*-freebsd*) |
228cf97d AM |
3836 | if test "x$with_gmp" = x \ |
3837 | && ! test -d ${srcdir}/gmp \ | |
4b1cb4fe DD |
3838 | && test -f /usr/local/include/gmp.h; then |
3839 | with_gmp=/usr/local | |
3840 | fi | |
4b1cb4fe | 3841 | ;; |
f8a495c8 NC |
3842 | *-*-kaos*) |
3843 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3844 | noconfigdirs="$noconfigdirs target-libgloss" |
3845 | ;; | |
a0da8069 | 3846 | *-*-netbsd*) |
a0da8069 | 3847 | ;; |
2a3124ca | 3848 | *-*-netware*) |
a0da8069 | 3849 | ;; |
05a13254 NC |
3850 | *-*-phoenix*) |
3851 | noconfigdirs="$noconfigdirs target-libgloss" | |
3852 | ;; | |
a0da8069 | 3853 | *-*-rtems*) |
9863d716 | 3854 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3855 | ;; |
1587117a EC |
3856 | # The tpf target doesn't support gdb yet. |
3857 | *-*-tpf*) | |
c7e4b184 | 3858 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3859 | ;; |
c1968181 | 3860 | *-*-uclinux*) |
c7e4b184 | 3861 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3862 | ;; |
a0da8069 | 3863 | *-*-vxworks*) |
a0da8069 NN |
3864 | ;; |
3865 | alpha*-dec-osf*) | |
3866 | # ld works, but does not support shared libraries. | |
a0da8069 | 3867 | # gas doesn't generate exception information. |
c7e4b184 | 3868 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3869 | ;; |
3870 | alpha*-*-*vms*) | |
9863d716 | 3871 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3872 | ;; |
a0da8069 NN |
3873 | alpha*-*-*) |
3874 | # newlib is not 64 bit ready | |
9863d716 | 3875 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3876 | ;; |
228cf97d AM |
3877 | bpf-*-*) |
3878 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3879 | ;; | |
a0da8069 | 3880 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3881 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3882 | ;; |
05a13254 NC |
3883 | arc*-*-*) |
3884 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3885 | ;; |
a0da8069 | 3886 | arm-*-pe*) |
9863d716 | 3887 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3888 | ;; |
a0da8069 | 3889 | arm-*-riscix*) |
b2f14e4a | 3890 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3891 | ;; |
8e71395b L |
3892 | avr-*-*) |
3893 | if test x${with_avrlibc} != xno; then | |
3894 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3895 | fi | |
3896 | ;; | |
a0da8069 | 3897 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3898 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3899 | ;; |
b2f14e4a JM |
3900 | tic54x-*-*) |
3901 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3902 | ;; |
a0da8069 | 3903 | d10v-*-*) |
b2f14e4a | 3904 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3905 | ;; |
3906 | d30v-*-*) | |
b2f14e4a | 3907 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3908 | ;; |
3909 | fr30-*-elf*) | |
9863d716 | 3910 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3911 | ;; |
3f8107ab AM |
3912 | ft32-*-*) |
3913 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3914 | ;; | |
20135e4c | 3915 | moxie-*-*) |
10b8fe5e | 3916 | noconfigdirs="$noconfigdirs" |
20135e4c | 3917 | ;; |
a0da8069 | 3918 | h8300*-*-*) |
9863d716 | 3919 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3920 | ;; |
3921 | h8500-*-*) | |
b2f14e4a | 3922 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3923 | ;; |
caeba88f | 3924 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3925 | ;; |
5569a85f JDA |
3926 | hppa*64*-*-hpux*) |
3927 | noconfigdirs="$noconfigdirs gdb" | |
3928 | ;; | |
3929 | hppa*-*-hpux11*) | |
3930 | noconfigdirs="$noconfigdirs gdb ld" | |
3931 | ;; | |
93cc359e | 3932 | hppa*64*-*-linux*) |
a0da8069 | 3933 | ;; |
f0ff0f90 | 3934 | hppa*-*-linux*) |
5dcac624 | 3935 | ;; |
a0da8069 | 3936 | hppa*-*-*elf* | \ |
a0da8069 NN |
3937 | hppa*-*-lites* | \ |
3938 | hppa*-*-openbsd* | \ | |
3939 | hppa*64*-*-*) | |
4f0ef2d8 | 3940 | ;; |
691bb5a1 | 3941 | hppa*-*-pro*) |
691bb5a1 | 3942 | ;; |
a0da8069 | 3943 | hppa*-*-*) |
9863d716 | 3944 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3945 | ;; |
b07c2aad | 3946 | i960-*-*) |
b2f14e4a | 3947 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3948 | ;; |
a0da8069 NN |
3949 | ia64*-*-elf*) |
3950 | # No gdb support yet. | |
0377a422 | 3951 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3952 | ;; |
3953 | ia64*-**-hpux*) | |
92c9a463 | 3954 | # No ld support yet. |
5569a85f | 3955 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3956 | ;; |
19e99079 | 3957 | ia64*-*-*vms*) |
7ec59b9e L |
3958 | # No ld support yet. |
3959 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3960 | ;; |
1f53ca9a | 3961 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3962 | ;; |
3963 | i[3456789]86-*-mingw*) | |
45055374 | 3964 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3965 | ;; |
a0da8069 NN |
3966 | *-*-cygwin*) |
3967 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3968 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3969 | # always build newlib if winsup directory is present. |
45055374 | 3970 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3971 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3972 | elif test -d "$srcdir/newlib"; then |
45055374 | 3973 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3974 | fi |
c6b750e1 | 3975 | ;; |
ec11bdc6 | 3976 | i[3456789]86-*-pe) |
782cb41f | 3977 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3978 | ;; |
ec11bdc6 | 3979 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3980 | # The linker does not yet know about weak symbols in COFF, |
3981 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3982 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3983 | ;; |
ec11bdc6 | 3984 | i[3456789]86-*-sco*) |
b2f14e4a | 3985 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3986 | ;; |
cff32a7c | 3987 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3988 | noconfigdirs="$noconfigdirs target-libgloss" |
3989 | ;; | |
ec11bdc6 | 3990 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3991 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3992 | ;; |
ec11bdc6 | 3993 | i[3456789]86-*-beos*) |
c7e4b184 | 3994 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3995 | ;; |
b59bea8a | 3996 | i[3456789]86-*-rdos*) |
c7e4b184 | 3997 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3998 | ;; |
a0da8069 | 3999 | mmix-*-*) |
9863d716 | 4000 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 4001 | ;; |
4970f871 | 4002 | mt-*-*) |
cdb9b172 AH |
4003 | noconfigdirs="$noconfigdirs sim" |
4004 | ;; | |
1063beb5 FT |
4005 | nfp-*-*) |
4006 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
4007 | noconfigdirs="$noconfigdirs $target_libraries" | |
4008 | ;; | |
11104e42 SC |
4009 | pdp11-*-*) |
4010 | noconfigdirs="$noconfigdirs gdb gprof" | |
4011 | ;; | |
a0da8069 NN |
4012 | powerpc-*-aix*) |
4013 | # copied from rs6000-*-* entry | |
c7e4b184 | 4014 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4015 | ;; |
93cc359e | 4016 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 4017 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 4018 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
4019 | # always build newlib. |
4020 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
4021 | ;; | |
4022 | # This is temporary until we can link against shared libraries | |
4023 | powerpcle-*-solaris*) | |
b2f14e4a | 4024 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
4025 | ;; |
4026 | powerpc-*-beos*) | |
c7e4b184 | 4027 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 4028 | ;; |
a0da8069 | 4029 | rs6000-*-lynxos*) |
c7e4b184 | 4030 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4031 | ;; |
4032 | rs6000-*-aix*) | |
c7e4b184 | 4033 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4034 | ;; |
4035 | rs6000-*-*) | |
9863d716 | 4036 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4037 | ;; |
4038 | m68k-apollo-*) | |
b2f14e4a | 4039 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 4040 | ;; |
25a07265 | 4041 | microblaze*) |
9863d716 | 4042 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 4043 | ;; |
a9d58c06 | 4044 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
4045 | if test x$with_newlib = xyes; then |
4046 | noconfigdirs="$noconfigdirs gprof" | |
4047 | fi | |
5bd8be13 | 4048 | ;; |
a0da8069 | 4049 | mips*-*-irix5*) |
b2f14e4a | 4050 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
4051 | ;; |
4052 | mips*-*-irix6*) | |
9863d716 | 4053 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 4054 | ;; |
a0da8069 | 4055 | mips*-*-bsd*) |
e8044f35 | 4056 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 4057 | ;; |
a0da8069 | 4058 | mips*-*-linux*) |
a0da8069 | 4059 | ;; |
e8044f35 RS |
4060 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
4061 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
4062 | noconfigdirs="$noconfigdirs ld gas gprof" | |
4063 | ;; | |
a0da8069 | 4064 | mips*-*-*) |
9863d716 | 4065 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4066 | ;; |
1b6c0831 | 4067 | nvptx*-*-*) |
1b6c0831 L |
4068 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4069 | ;; | |
05a13254 | 4070 | sh-*-*) |
e8a5fa9c RW |
4071 | case "${target}" in |
4072 | sh*-*-elf) | |
9863d716 | 4073 | ;; |
e8a5fa9c | 4074 | *) |
9863d716 | 4075 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 4076 | esac |
a0da8069 | 4077 | ;; |
a0da8069 | 4078 | sparc-*-sunos4*) |
c7e4b184 | 4079 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
4080 | use_gnu_ld=no |
4081 | fi | |
4082 | ;; | |
619a3713 | 4083 | tic6x-*-*) |
40ae9136 | 4084 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 4085 | ;; |
05a13254 | 4086 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
4087 | noconfigdirs="$noconfigdirs sim" |
4088 | ;; | |
a0da8069 | 4089 | v810-*-*) |
b2f14e4a | 4090 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
4091 | ;; |
4092 | vax-*-*) | |
9863d716 | 4093 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 4094 | ;; |
b29d2641 MR |
4095 | wasm32-*-*) |
4096 | noconfigdirs="$noconfigdirs ld" | |
4097 | ;; | |
228cf97d AM |
4098 | loongarch*-*-linux*) |
4099 | ;; | |
4100 | loongarch*-*-*) | |
4101 | noconfigdirs="$noconfigdirs gprof" | |
4102 | ;; | |
a0da8069 | 4103 | esac |
252b5132 | 4104 | |
a0da8069 NN |
4105 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4106 | # depends upon some newlib header files. | |
4107 | case "${noconfigdirs}" in | |
4108 | *target-libgloss*) ;; | |
4109 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4110 | esac | |
4111 | ||
a0da8069 | 4112 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
4113 | host_makefile_frag=/dev/null |
4114 | if test -d ${srcdir}/config ; then | |
4115 | case "${host}" in | |
ec11bdc6 | 4116 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
4117 | host_makefile_frag="config/mh-djgpp" |
4118 | ;; | |
4119 | *-cygwin*) | |
e33b51a6 | 4120 | |
81ecdfbb RW |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4122 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 4123 | echo a >cygwin-cat-check |
1f53ca9a | 4124 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 4125 | rm cygwin-cat-check |
81ecdfbb RW |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4127 | $as_echo "yes" >&6; } | |
e33b51a6 | 4128 | else |
8ade07e9 | 4129 | rm cygwin-cat-check |
81ecdfbb RW |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4131 | $as_echo "no" >&6; } | |
d0ac1c44 | 4132 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
4133 | Please either mount the build directory in binary mode or run the following |
4134 | commands before running any configure script: | |
4135 | set -o igncr | |
4136 | export SHELLOPTS | |
81ecdfbb | 4137 | " "$LINENO" 5 |
e33b51a6 | 4138 | fi |
e33b51a6 | 4139 | |
a0da8069 NN |
4140 | host_makefile_frag="config/mh-cygwin" |
4141 | ;; | |
8a1599ab | 4142 | *-mingw*) |
84e7906e | 4143 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 4144 | ;; |
ce6c656d L |
4145 | alpha*-linux*) |
4146 | host_makefile_frag="config/mh-alpha-linux" | |
4147 | ;; | |
3516a403 | 4148 | hppa*-hp-hpux*) |
da888c87 PB |
4149 | host_makefile_frag="config/mh-pa" |
4150 | ;; | |
4151 | hppa*-*) | |
4152 | host_makefile_frag="config/mh-pa" | |
4153 | ;; | |
228cf97d | 4154 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
e552509b | 4155 | host_makefile_frag="config/mh-darwin" |
0df3d27f | 4156 | ;; |
f6d183c0 PB |
4157 | powerpc-*-aix*) |
4158 | host_makefile_frag="config/mh-ppc-aix" | |
4159 | ;; | |
4160 | rs6000-*-aix*) | |
4161 | host_makefile_frag="config/mh-ppc-aix" | |
4162 | ;; | |
a0da8069 NN |
4163 | esac |
4164 | fi | |
4165 | ||
9e07f89d | 4166 | if test "${build}" != "${host}" ; then |
1576798e PB |
4167 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4168 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4169 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
228cf97d | 4170 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
1576798e | 4171 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
228cf97d | 4172 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
1576798e | 4173 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4174 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
228cf97d | 4175 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
1576798e PB |
4176 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4177 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4178 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4179 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4180 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4181 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4182 | else | |
4183 | AR_FOR_BUILD="\$(AR)" | |
4184 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4185 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4186 | CXX_FOR_BUILD="\$(CXX)" |
228cf97d | 4187 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
1576798e | 4188 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4189 | GOC_FOR_BUILD="\$(GOC)" |
228cf97d | 4190 | GDC_FOR_BUILD="\$(GDC)" |
1576798e PB |
4191 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4192 | LD_FOR_BUILD="\$(LD)" | |
4193 | NM_FOR_BUILD="\$(NM)" | |
4194 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4195 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4196 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4197 | fi |
4198 | ||
4199 | ac_ext=c | |
c6b750e1 DJ |
4200 | ac_cpp='$CPP $CPPFLAGS' |
4201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4204 | if test -n "$ac_tool_prefix"; then | |
4205 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4206 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4208 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4209 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4210 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4211 | else |
4212 | if test -n "$CC"; then | |
4213 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4214 | else | |
4215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4216 | for as_dir in $PATH | |
4217 | do | |
4218 | IFS=$as_save_IFS | |
4219 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4220 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4222 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4224 | break 2 |
4225 | fi | |
4226 | done | |
81ecdfbb RW |
4227 | done |
4228 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4229 | |
4230 | fi | |
4231 | fi | |
4232 | CC=$ac_cv_prog_CC | |
4233 | if test -n "$CC"; then | |
81ecdfbb RW |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4235 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4236 | else |
81ecdfbb RW |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4238 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4239 | fi |
4240 | ||
81ecdfbb | 4241 | |
c6b750e1 DJ |
4242 | fi |
4243 | if test -z "$ac_cv_prog_CC"; then | |
4244 | ac_ct_CC=$CC | |
6a9cf61e | 4245 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4246 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4248 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4249 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4250 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4251 | else |
4252 | if test -n "$ac_ct_CC"; then | |
4253 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4254 | else | |
4255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4256 | for as_dir in $PATH | |
4257 | do | |
4258 | IFS=$as_save_IFS | |
4259 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4260 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4262 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4264 | break 2 |
4265 | fi | |
4266 | done | |
81ecdfbb RW |
4267 | done |
4268 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4269 | |
4270 | fi | |
4271 | fi | |
4272 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4273 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4275 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4276 | else |
81ecdfbb RW |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4278 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4279 | fi |
4280 | ||
81ecdfbb RW |
4281 | if test "x$ac_ct_CC" = x; then |
4282 | CC="" | |
4283 | else | |
4284 | case $cross_compiling:$ac_tool_warned in | |
4285 | yes:) | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4287 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4288 | ac_tool_warned=yes ;; | |
4289 | esac | |
4290 | CC=$ac_ct_CC | |
4291 | fi | |
c6b750e1 DJ |
4292 | else |
4293 | CC="$ac_cv_prog_CC" | |
4294 | fi | |
4295 | ||
4296 | if test -z "$CC"; then | |
81ecdfbb RW |
4297 | if test -n "$ac_tool_prefix"; then |
4298 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4299 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4301 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4302 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4303 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4304 | else |
4305 | if test -n "$CC"; then | |
4306 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4307 | else | |
c6b750e1 DJ |
4308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4309 | for as_dir in $PATH | |
4310 | do | |
4311 | IFS=$as_save_IFS | |
4312 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4313 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4315 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4317 | break 2 |
4318 | fi | |
4319 | done | |
81ecdfbb RW |
4320 | done |
4321 | IFS=$as_save_IFS | |
c6b750e1 | 4322 | |
9e07f89d NN |
4323 | fi |
4324 | fi | |
c6b750e1 | 4325 | CC=$ac_cv_prog_CC |
9e07f89d | 4326 | if test -n "$CC"; then |
81ecdfbb RW |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4328 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4329 | else |
81ecdfbb RW |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4331 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4332 | fi |
4333 | ||
c6b750e1 | 4334 | |
81ecdfbb | 4335 | fi |
c6b750e1 | 4336 | fi |
9e07f89d NN |
4337 | if test -z "$CC"; then |
4338 | # Extract the first word of "cc", so it can be a program name with args. | |
4339 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4341 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4342 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4343 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4344 | else |
4345 | if test -n "$CC"; then | |
4346 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4347 | else | |
9e07f89d | 4348 | ac_prog_rejected=no |
c6b750e1 DJ |
4349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4350 | for as_dir in $PATH | |
4351 | do | |
4352 | IFS=$as_save_IFS | |
4353 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4354 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4356 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4357 | ac_prog_rejected=yes | |
4358 | continue | |
4359 | fi | |
4360 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4362 | break 2 |
4363 | fi | |
4364 | done | |
81ecdfbb RW |
4365 | done |
4366 | IFS=$as_save_IFS | |
c6b750e1 | 4367 | |
9e07f89d NN |
4368 | if test $ac_prog_rejected = yes; then |
4369 | # We found a bogon in the path, so make sure we never use it. | |
4370 | set dummy $ac_cv_prog_CC | |
4371 | shift | |
c6b750e1 | 4372 | if test $# != 0; then |
9e07f89d NN |
4373 | # We chose a different compiler from the bogus one. |
4374 | # However, it has the same basename, so the bogon will be chosen | |
4375 | # first if we set CC to just the basename; use the full file name. | |
4376 | shift | |
c6b750e1 | 4377 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4378 | fi |
4379 | fi | |
4380 | fi | |
4381 | fi | |
c6b750e1 | 4382 | CC=$ac_cv_prog_CC |
9e07f89d | 4383 | if test -n "$CC"; then |
81ecdfbb RW |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4385 | $as_echo "$CC" >&6; } | |
9e07f89d | 4386 | else |
81ecdfbb RW |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4388 | $as_echo "no" >&6; } | |
9e07f89d NN |
4389 | fi |
4390 | ||
81ecdfbb | 4391 | |
c6b750e1 DJ |
4392 | fi |
4393 | if test -z "$CC"; then | |
4394 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4395 | for ac_prog in cl.exe |
c6b750e1 DJ |
4396 | do |
4397 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4398 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4400 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4401 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4402 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4403 | else |
4404 | if test -n "$CC"; then | |
4405 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4406 | else | |
c6b750e1 DJ |
4407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4408 | for as_dir in $PATH | |
4409 | do | |
4410 | IFS=$as_save_IFS | |
4411 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4412 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4414 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4416 | break 2 |
376a0e54 | 4417 | fi |
c6b750e1 | 4418 | done |
81ecdfbb RW |
4419 | done |
4420 | IFS=$as_save_IFS | |
cac3d6c4 | 4421 | |
c6b750e1 DJ |
4422 | fi |
4423 | fi | |
4424 | CC=$ac_cv_prog_CC | |
4425 | if test -n "$CC"; then | |
81ecdfbb RW |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4427 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4428 | else |
81ecdfbb RW |
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4430 | $as_echo "no" >&6; } | |
9e07f89d | 4431 | fi |
cac3d6c4 | 4432 | |
81ecdfbb | 4433 | |
c6b750e1 DJ |
4434 | test -n "$CC" && break |
4435 | done | |
cac3d6c4 | 4436 | fi |
c6b750e1 DJ |
4437 | if test -z "$CC"; then |
4438 | ac_ct_CC=$CC | |
81ecdfbb | 4439 | for ac_prog in cl.exe |
c6b750e1 DJ |
4440 | do |
4441 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4442 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4444 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4445 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4446 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4447 | else |
c6b750e1 DJ |
4448 | if test -n "$ac_ct_CC"; then |
4449 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4450 | else |
c6b750e1 DJ |
4451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4452 | for as_dir in $PATH | |
4453 | do | |
4454 | IFS=$as_save_IFS | |
4455 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4456 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4458 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4460 | break 2 |
4461 | fi | |
4462 | done | |
81ecdfbb RW |
4463 | done |
4464 | IFS=$as_save_IFS | |
c6b750e1 | 4465 | |
cac3d6c4 CM |
4466 | fi |
4467 | fi | |
c6b750e1 DJ |
4468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4469 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4471 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4472 | else |
81ecdfbb RW |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4474 | $as_echo "no" >&6; } | |
cac3d6c4 | 4475 | fi |
376a0e54 | 4476 | |
81ecdfbb | 4477 | |
c6b750e1 DJ |
4478 | test -n "$ac_ct_CC" && break |
4479 | done | |
4480 | ||
81ecdfbb RW |
4481 | if test "x$ac_ct_CC" = x; then |
4482 | CC="" | |
4483 | else | |
4484 | case $cross_compiling:$ac_tool_warned in | |
4485 | yes:) | |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4487 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4488 | ac_tool_warned=yes ;; | |
4489 | esac | |
4490 | CC=$ac_ct_CC | |
4491 | fi | |
c6b750e1 DJ |
4492 | fi |
4493 | ||
4494 | fi | |
4495 | ||
4496 | ||
81ecdfbb RW |
4497 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4499 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4500 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4501 | |
4502 | # Provide some information about the compiler. | |
81ecdfbb RW |
4503 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4504 | set X $ac_compile | |
4505 | ac_compiler=$2 | |
4506 | for ac_option in --version -v -V -qversion; do | |
4507 | { { ac_try="$ac_compiler $ac_option >&5" | |
4508 | case "(($ac_try" in | |
4509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4510 | *) ac_try_echo=$ac_try;; | |
4511 | esac | |
4512 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4513 | $as_echo "$ac_try_echo"; } >&5 | |
4514 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4515 | ac_status=$? |
81ecdfbb RW |
4516 | if test -s conftest.err; then |
4517 | sed '10a\ | |
4518 | ... rest of stderr output deleted ... | |
4519 | 10q' conftest.err >conftest.er1 | |
4520 | cat conftest.er1 >&5 | |
81ecdfbb | 4521 | fi |
d0ac1c44 | 4522 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4524 | test $ac_status = 0; } | |
4525 | done | |
c6b750e1 | 4526 | |
81ecdfbb | 4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4528 | /* end confdefs.h. */ |
4529 | ||
4530 | int | |
4531 | main () | |
4532 | { | |
4533 | ||
4534 | ; | |
4535 | return 0; | |
4536 | } | |
4537 | _ACEOF | |
4538 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4539 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4540 | # Try to create an executable without -o first, disregard a.out. |
4541 | # It will help us diagnose broken compilers, and finding out an intuition | |
4542 | # of exeext. | |
d0ac1c44 SM |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4544 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4545 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4546 | ||
4547 | # The possible output files: | |
4548 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4549 | ||
4550 | ac_rmfiles= | |
4551 | for ac_file in $ac_files | |
4552 | do | |
4553 | case $ac_file in | |
4554 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4555 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4556 | esac | |
4557 | done | |
4558 | rm -f $ac_rmfiles | |
4559 | ||
4560 | if { { ac_try="$ac_link_default" | |
4561 | case "(($ac_try" in | |
4562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4563 | *) ac_try_echo=$ac_try;; | |
4564 | esac | |
4565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4566 | $as_echo "$ac_try_echo"; } >&5 | |
4567 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4568 | ac_status=$? |
81ecdfbb RW |
4569 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4570 | test $ac_status = 0; }; then : | |
4571 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4572 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4573 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4574 | # so that the user can short-circuit this test for compilers unknown to | |
4575 | # Autoconf. | |
4576 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4577 | do |
4578 | test -f "$ac_file" || continue | |
4579 | case $ac_file in | |
81ecdfbb | 4580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4581 | ;; |
4582 | [ab].out ) | |
4583 | # We found the default executable, but exeext='' is most | |
4584 | # certainly right. | |
4585 | break;; | |
4586 | *.* ) | |
81ecdfbb RW |
4587 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4588 | then :; else | |
4589 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4590 | fi | |
4591 | # We set ac_cv_exeext here because the later test for it is not | |
4592 | # safe: cross compilers may not add the suffix if given an `-o' | |
4593 | # argument, so we may need to know it at that point already. | |
4594 | # Even if this section looks crufty: it has the advantage of | |
4595 | # actually working. | |
c6b750e1 DJ |
4596 | break;; |
4597 | * ) | |
4598 | break;; | |
4599 | esac | |
4600 | done | |
81ecdfbb RW |
4601 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4602 | ||
c6b750e1 | 4603 | else |
81ecdfbb RW |
4604 | ac_file='' |
4605 | fi | |
81ecdfbb | 4606 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4608 | $as_echo "no" >&6; } | |
4609 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4610 | sed 's/^/| /' conftest.$ac_ext >&5 |
4611 | ||
81ecdfbb RW |
4612 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4613 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4614 | as_fn_error 77 "C compiler cannot create executables |
4615 | See \`config.log' for more details" "$LINENO" 5; } | |
4616 | else | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4618 | $as_echo "yes" >&6; } | |
c6b750e1 | 4619 | fi |
d0ac1c44 SM |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4621 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4623 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4624 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4625 | |
d0ac1c44 | 4626 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4627 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4629 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4630 | if { { ac_try="$ac_link" | |
4631 | case "(($ac_try" in | |
4632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4633 | *) ac_try_echo=$ac_try;; | |
4634 | esac | |
4635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4636 | $as_echo "$ac_try_echo"; } >&5 | |
4637 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4638 | ac_status=$? |
81ecdfbb RW |
4639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4640 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4641 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4642 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4643 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4644 | # `rm'. | |
4645 | for ac_file in conftest.exe conftest conftest.*; do | |
4646 | test -f "$ac_file" || continue | |
4647 | case $ac_file in | |
81ecdfbb | 4648 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4649 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4650 | break;; |
4651 | * ) break;; | |
4652 | esac | |
4653 | done | |
4654 | else | |
81ecdfbb RW |
4655 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4656 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4657 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4658 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4659 | fi |
d0ac1c44 | 4660 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4662 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4663 | |
4664 | rm -f conftest.$ac_ext | |
4665 | EXEEXT=$ac_cv_exeext | |
4666 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4668 | /* end confdefs.h. */ | |
4669 | #include <stdio.h> | |
4670 | int | |
4671 | main () | |
4672 | { | |
4673 | FILE *f = fopen ("conftest.out", "w"); | |
4674 | return ferror (f) || fclose (f) != 0; | |
4675 | ||
4676 | ; | |
4677 | return 0; | |
4678 | } | |
4679 | _ACEOF | |
4680 | ac_clean_files="$ac_clean_files conftest.out" | |
4681 | # Check that the compiler produces executables we can run. If not, either | |
4682 | # the compiler is broken, or we cross compile. | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4684 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4685 | if test "$cross_compiling" != yes; then | |
4686 | { { ac_try="$ac_link" | |
4687 | case "(($ac_try" in | |
4688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4689 | *) ac_try_echo=$ac_try;; | |
4690 | esac | |
4691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4692 | $as_echo "$ac_try_echo"; } >&5 | |
4693 | (eval "$ac_link") 2>&5 | |
4694 | ac_status=$? | |
4695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4696 | test $ac_status = 0; } | |
4697 | if { ac_try='./conftest$ac_cv_exeext' | |
4698 | { { case "(($ac_try" in | |
4699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4700 | *) ac_try_echo=$ac_try;; | |
4701 | esac | |
4702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4703 | $as_echo "$ac_try_echo"; } >&5 | |
4704 | (eval "$ac_try") 2>&5 | |
4705 | ac_status=$? | |
4706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4707 | test $ac_status = 0; }; }; then | |
4708 | cross_compiling=no | |
4709 | else | |
4710 | if test "$cross_compiling" = maybe; then | |
4711 | cross_compiling=yes | |
4712 | else | |
4713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4715 | as_fn_error $? "cannot run C compiled programs. | |
4716 | If you meant to cross compile, use \`--host'. | |
4717 | See \`config.log' for more details" "$LINENO" 5; } | |
4718 | fi | |
4719 | fi | |
4720 | fi | |
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4722 | $as_echo "$cross_compiling" >&6; } | |
4723 | ||
4724 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4725 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4727 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4728 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4729 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4730 | else |
81ecdfbb | 4731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4732 | /* end confdefs.h. */ |
4733 | ||
4734 | int | |
4735 | main () | |
4736 | { | |
4737 | ||
4738 | ; | |
4739 | return 0; | |
4740 | } | |
4741 | _ACEOF | |
4742 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4743 | if { { ac_try="$ac_compile" |
4744 | case "(($ac_try" in | |
4745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4746 | *) ac_try_echo=$ac_try;; | |
4747 | esac | |
4748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4749 | $as_echo "$ac_try_echo"; } >&5 | |
4750 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4751 | ac_status=$? |
81ecdfbb RW |
4752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4753 | test $ac_status = 0; }; then : | |
4754 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4755 | test -f "$ac_file" || continue; | |
c6b750e1 | 4756 | case $ac_file in |
81ecdfbb | 4757 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4758 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4759 | break;; | |
4760 | esac | |
4761 | done | |
cac3d6c4 | 4762 | else |
81ecdfbb | 4763 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4764 | sed 's/^/| /' conftest.$ac_ext >&5 |
4765 | ||
81ecdfbb RW |
4766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4768 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4769 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4770 | fi |
c6b750e1 DJ |
4771 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4772 | fi | |
81ecdfbb RW |
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4774 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4775 | OBJEXT=$ac_cv_objext |
4776 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4778 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4779 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4780 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4781 | else |
81ecdfbb | 4782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4783 | /* end confdefs.h. */ |
4784 | ||
4785 | int | |
4786 | main () | |
4787 | { | |
4788 | #ifndef __GNUC__ | |
4789 | choke me | |
4790 | #endif | |
4791 | ||
4792 | ; | |
4793 | return 0; | |
4794 | } | |
4795 | _ACEOF | |
81ecdfbb | 4796 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4797 | ac_compiler_gnu=yes |
4798 | else | |
81ecdfbb | 4799 | ac_compiler_gnu=no |
c6b750e1 | 4800 | fi |
81ecdfbb | 4801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4802 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4803 | ||
4804 | fi | |
81ecdfbb RW |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4806 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4807 | if test $ac_compiler_gnu = yes; then | |
4808 | GCC=yes | |
4809 | else | |
4810 | GCC= | |
4811 | fi | |
c6b750e1 DJ |
4812 | ac_test_CFLAGS=${CFLAGS+set} |
4813 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4815 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4816 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4817 | $as_echo_n "(cached) " >&6 |
4818 | else | |
4819 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4820 | ac_c_werror_flag=yes | |
4821 | ac_cv_prog_cc_g=no | |
4822 | CFLAGS="-g" | |
4823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4824 | /* end confdefs.h. */ |
4825 | ||
4826 | int | |
4827 | main () | |
4828 | { | |
4829 | ||
4830 | ; | |
4831 | return 0; | |
4832 | } | |
4833 | _ACEOF | |
81ecdfbb | 4834 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4835 | ac_cv_prog_cc_g=yes |
4836 | else | |
81ecdfbb RW |
4837 | CFLAGS="" |
4838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4839 | /* end confdefs.h. */ | |
4840 | ||
4841 | int | |
4842 | main () | |
4843 | { | |
4844 | ||
4845 | ; | |
4846 | return 0; | |
4847 | } | |
4848 | _ACEOF | |
4849 | if ac_fn_c_try_compile "$LINENO"; then : | |
4850 | ||
4851 | else | |
4852 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4853 | CFLAGS="-g" | |
4854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4855 | /* end confdefs.h. */ | |
cac3d6c4 | 4856 | |
81ecdfbb RW |
4857 | int |
4858 | main () | |
4859 | { | |
4860 | ||
4861 | ; | |
4862 | return 0; | |
4863 | } | |
4864 | _ACEOF | |
4865 | if ac_fn_c_try_compile "$LINENO"; then : | |
4866 | ac_cv_prog_cc_g=yes | |
4867 | fi | |
4868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4869 | fi |
81ecdfbb | 4870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4871 | fi |
81ecdfbb RW |
4872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4873 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4874 | fi | |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4876 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4877 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4878 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4879 | elif test $ac_cv_prog_cc_g = yes; then |
4880 | if test "$GCC" = yes; then | |
4881 | CFLAGS="-g -O2" | |
4882 | else | |
4883 | CFLAGS="-g" | |
4884 | fi | |
4885 | else | |
4886 | if test "$GCC" = yes; then | |
4887 | CFLAGS="-O2" | |
4888 | else | |
4889 | CFLAGS= | |
4890 | fi | |
4891 | fi | |
81ecdfbb RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4893 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4894 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4895 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4896 | else |
81ecdfbb | 4897 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4898 | ac_save_CC=$CC |
81ecdfbb | 4899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4900 | /* end confdefs.h. */ |
4901 | #include <stdarg.h> | |
4902 | #include <stdio.h> | |
d0ac1c44 | 4903 | struct stat; |
c6b750e1 DJ |
4904 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4905 | struct buf { int x; }; | |
4906 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4907 | static char *e (p, i) | |
4908 | char **p; | |
4909 | int i; | |
4910 | { | |
4911 | return p[i]; | |
4912 | } | |
4913 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4914 | { | |
4915 | char *s; | |
4916 | va_list v; | |
4917 | va_start (v,p); | |
4918 | s = g (p, va_arg (v,int)); | |
4919 | va_end (v); | |
4920 | return s; | |
4921 | } | |
4922 | ||
4923 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4924 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4925 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4926 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4927 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4928 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4929 | that's true only with -std. */ |
c6b750e1 DJ |
4930 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4931 | ||
81ecdfbb RW |
4932 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4933 | inside strings and character constants. */ | |
4934 | #define FOO(x) 'x' | |
4935 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4936 | ||
c6b750e1 DJ |
4937 | int test (int i, double x); |
4938 | struct s1 {int (*f) (int a);}; | |
4939 | struct s2 {int (*f) (double a);}; | |
4940 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4941 | int argc; | |
4942 | char **argv; | |
4943 | int | |
4944 | main () | |
4945 | { | |
4946 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4947 | ; | |
4948 | return 0; | |
4949 | } | |
4950 | _ACEOF | |
81ecdfbb RW |
4951 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4952 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4953 | do |
4954 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4955 | if ac_fn_c_try_compile "$LINENO"; then : |
4956 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4957 | fi |
81ecdfbb RW |
4958 | rm -f core conftest.err conftest.$ac_objext |
4959 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4960 | done |
81ecdfbb | 4961 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4962 | CC=$ac_save_CC |
4963 | ||
4964 | fi | |
81ecdfbb RW |
4965 | # AC_CACHE_VAL |
4966 | case "x$ac_cv_prog_cc_c89" in | |
4967 | x) | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4969 | $as_echo "none needed" >&6; } ;; | |
4970 | xno) | |
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4972 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4973 | *) |
81ecdfbb RW |
4974 | CC="$CC $ac_cv_prog_cc_c89" |
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4976 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4977 | esac |
81ecdfbb | 4978 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4979 | |
c6b750e1 DJ |
4980 | fi |
4981 | ||
c6b750e1 DJ |
4982 | ac_ext=c |
4983 | ac_cpp='$CPP $CPPFLAGS' | |
4984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4987 | |
a8d6316b NC |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4989 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4990 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4991 | $as_echo_n "(cached) " >&6 | |
4992 | else | |
4993 | ac_cv_prog_cc_c99=no | |
4994 | ac_save_CC=$CC | |
4995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4996 | /* end confdefs.h. */ | |
4997 | #include <stdarg.h> | |
4998 | #include <stdbool.h> | |
4999 | #include <stdlib.h> | |
5000 | #include <wchar.h> | |
5001 | #include <stdio.h> | |
5002 | ||
5003 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
5004 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
5005 | #define showlist(...) puts (#__VA_ARGS__) | |
5006 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
5007 | static void | |
5008 | test_varargs_macros (void) | |
5009 | { | |
5010 | int x = 1234; | |
5011 | int y = 5678; | |
5012 | debug ("Flag"); | |
5013 | debug ("X = %d\n", x); | |
5014 | showlist (The first, second, and third items.); | |
5015 | report (x>y, "x is %d but y is %d", x, y); | |
5016 | } | |
5017 | ||
5018 | // Check long long types. | |
5019 | #define BIG64 18446744073709551615ull | |
5020 | #define BIG32 4294967295ul | |
5021 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
5022 | #if !BIG_OK | |
5023 | your preprocessor is broken; | |
5024 | #endif | |
5025 | #if BIG_OK | |
5026 | #else | |
5027 | your preprocessor is broken; | |
5028 | #endif | |
5029 | static long long int bignum = -9223372036854775807LL; | |
5030 | static unsigned long long int ubignum = BIG64; | |
5031 | ||
5032 | struct incomplete_array | |
5033 | { | |
5034 | int datasize; | |
5035 | double data[]; | |
5036 | }; | |
5037 | ||
5038 | struct named_init { | |
5039 | int number; | |
5040 | const wchar_t *name; | |
5041 | double average; | |
5042 | }; | |
5043 | ||
5044 | typedef const char *ccp; | |
5045 | ||
5046 | static inline int | |
5047 | test_restrict (ccp restrict text) | |
5048 | { | |
5049 | // See if C++-style comments work. | |
5050 | // Iterate through items via the restricted pointer. | |
5051 | // Also check for declarations in for loops. | |
5052 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5053 | continue; | |
5054 | return 0; | |
5055 | } | |
5056 | ||
5057 | // Check varargs and va_copy. | |
5058 | static void | |
5059 | test_varargs (const char *format, ...) | |
5060 | { | |
5061 | va_list args; | |
5062 | va_start (args, format); | |
5063 | va_list args_copy; | |
5064 | va_copy (args_copy, args); | |
5065 | ||
5066 | const char *str; | |
5067 | int number; | |
5068 | float fnumber; | |
5069 | ||
5070 | while (*format) | |
5071 | { | |
5072 | switch (*format++) | |
5073 | { | |
5074 | case 's': // string | |
5075 | str = va_arg (args_copy, const char *); | |
5076 | break; | |
5077 | case 'd': // int | |
5078 | number = va_arg (args_copy, int); | |
5079 | break; | |
5080 | case 'f': // float | |
5081 | fnumber = va_arg (args_copy, double); | |
5082 | break; | |
5083 | default: | |
5084 | break; | |
5085 | } | |
5086 | } | |
5087 | va_end (args_copy); | |
5088 | va_end (args); | |
5089 | } | |
5090 | ||
5091 | int | |
5092 | main () | |
5093 | { | |
5094 | ||
5095 | // Check bool. | |
5096 | _Bool success = false; | |
5097 | ||
5098 | // Check restrict. | |
5099 | if (test_restrict ("String literal") == 0) | |
5100 | success = true; | |
5101 | char *restrict newvar = "Another string"; | |
5102 | ||
5103 | // Check varargs. | |
5104 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5105 | test_varargs_macros (); | |
5106 | ||
5107 | // Check flexible array members. | |
5108 | struct incomplete_array *ia = | |
5109 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5110 | ia->datasize = 10; | |
5111 | for (int i = 0; i < ia->datasize; ++i) | |
5112 | ia->data[i] = i * 1.234; | |
5113 | ||
5114 | // Check named initializers. | |
5115 | struct named_init ni = { | |
5116 | .number = 34, | |
5117 | .name = L"Test wide string", | |
5118 | .average = 543.34343, | |
5119 | }; | |
5120 | ||
5121 | ni.number = 58; | |
5122 | ||
5123 | int dynamic_array[ni.number]; | |
5124 | dynamic_array[ni.number - 1] = 543; | |
5125 | ||
5126 | // work around unused variable warnings | |
5127 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5128 | || dynamic_array[ni.number - 1] != 543); | |
5129 | ||
5130 | ; | |
5131 | return 0; | |
5132 | } | |
5133 | _ACEOF | |
5134 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5135 | do | |
5136 | CC="$ac_save_CC $ac_arg" | |
5137 | if ac_fn_c_try_compile "$LINENO"; then : | |
5138 | ac_cv_prog_cc_c99=$ac_arg | |
5139 | fi | |
5140 | rm -f core conftest.err conftest.$ac_objext | |
5141 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5142 | done | |
5143 | rm -f conftest.$ac_ext | |
5144 | CC=$ac_save_CC | |
5145 | ||
5146 | fi | |
5147 | # AC_CACHE_VAL | |
5148 | case "x$ac_cv_prog_cc_c99" in | |
5149 | x) | |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5151 | $as_echo "none needed" >&6; } ;; | |
5152 | xno) | |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5154 | $as_echo "unsupported" >&6; } ;; | |
5155 | *) | |
5156 | CC="$CC $ac_cv_prog_cc_c99" | |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5158 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5159 | esac | |
5160 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5161 | ||
5162 | fi | |
5163 | ||
5164 | ||
81ecdfbb | 5165 | ac_ext=cpp |
18f6b6ee PB |
5166 | ac_cpp='$CXXCPP $CPPFLAGS' |
5167 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5168 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5169 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
5170 | if test -z "$CXX"; then |
5171 | if test -n "$CCC"; then | |
5172 | CXX=$CCC | |
5173 | else | |
5174 | if test -n "$ac_tool_prefix"; then | |
5175 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
5176 | do |
5177 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5178 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5180 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5181 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 5182 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5183 | else |
5184 | if test -n "$CXX"; then | |
5185 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5186 | else | |
5187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5188 | for as_dir in $PATH | |
5189 | do | |
5190 | IFS=$as_save_IFS | |
5191 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5192 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5194 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
5196 | break 2 |
5197 | fi | |
5198 | done | |
81ecdfbb RW |
5199 | done |
5200 | IFS=$as_save_IFS | |
512b7dfb | 5201 | |
18f6b6ee PB |
5202 | fi |
5203 | fi | |
5204 | CXX=$ac_cv_prog_CXX | |
5205 | if test -n "$CXX"; then | |
81ecdfbb RW |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5207 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 5208 | else |
81ecdfbb RW |
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5210 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5211 | fi |
5212 | ||
81ecdfbb | 5213 | |
18f6b6ee PB |
5214 | test -n "$CXX" && break |
5215 | done | |
5216 | fi | |
5217 | if test -z "$CXX"; then | |
5218 | ac_ct_CXX=$CXX | |
81ecdfbb | 5219 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
5220 | do |
5221 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5222 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5224 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5225 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 5226 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5227 | else |
5228 | if test -n "$ac_ct_CXX"; then | |
5229 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5230 | else | |
5231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5232 | for as_dir in $PATH | |
5233 | do | |
5234 | IFS=$as_save_IFS | |
5235 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5236 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5238 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 5239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 5240 | break 2 |
512b7dfb | 5241 | fi |
18f6b6ee | 5242 | done |
81ecdfbb RW |
5243 | done |
5244 | IFS=$as_save_IFS | |
512b7dfb | 5245 | |
18f6b6ee PB |
5246 | fi |
5247 | fi | |
5248 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5249 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5251 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 5252 | else |
81ecdfbb RW |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5254 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5255 | fi |
5256 | ||
81ecdfbb | 5257 | |
18f6b6ee PB |
5258 | test -n "$ac_ct_CXX" && break |
5259 | done | |
18f6b6ee | 5260 | |
81ecdfbb RW |
5261 | if test "x$ac_ct_CXX" = x; then |
5262 | CXX="g++" | |
5263 | else | |
5264 | case $cross_compiling:$ac_tool_warned in | |
5265 | yes:) | |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5267 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5268 | ac_tool_warned=yes ;; | |
5269 | esac | |
5270 | CXX=$ac_ct_CXX | |
5271 | fi | |
18f6b6ee PB |
5272 | fi |
5273 | ||
81ecdfbb RW |
5274 | fi |
5275 | fi | |
18f6b6ee | 5276 | # Provide some information about the compiler. |
81ecdfbb RW |
5277 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5278 | set X $ac_compile | |
5279 | ac_compiler=$2 | |
5280 | for ac_option in --version -v -V -qversion; do | |
5281 | { { ac_try="$ac_compiler $ac_option >&5" | |
5282 | case "(($ac_try" in | |
5283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5284 | *) ac_try_echo=$ac_try;; | |
5285 | esac | |
5286 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5287 | $as_echo "$ac_try_echo"; } >&5 | |
5288 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 5289 | ac_status=$? |
81ecdfbb RW |
5290 | if test -s conftest.err; then |
5291 | sed '10a\ | |
5292 | ... rest of stderr output deleted ... | |
5293 | 10q' conftest.err >conftest.er1 | |
5294 | cat conftest.er1 >&5 | |
81ecdfbb | 5295 | fi |
d0ac1c44 | 5296 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
5297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5298 | test $ac_status = 0; } | |
5299 | done | |
18f6b6ee | 5300 | |
81ecdfbb RW |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5302 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 5303 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 5304 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 5305 | else |
81ecdfbb | 5306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
5307 | /* end confdefs.h. */ |
5308 | ||
5309 | int | |
5310 | main () | |
5311 | { | |
5312 | #ifndef __GNUC__ | |
5313 | choke me | |
5314 | #endif | |
5315 | ||
5316 | ; | |
5317 | return 0; | |
5318 | } | |
5319 | _ACEOF | |
81ecdfbb | 5320 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5321 | ac_compiler_gnu=yes |
5322 | else | |
81ecdfbb | 5323 | ac_compiler_gnu=no |
18f6b6ee | 5324 | fi |
81ecdfbb | 5325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5326 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5327 | ||
5328 | fi | |
81ecdfbb RW |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5330 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5331 | if test $ac_compiler_gnu = yes; then | |
5332 | GXX=yes | |
5333 | else | |
5334 | GXX= | |
5335 | fi | |
18f6b6ee PB |
5336 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5337 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5339 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5340 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5341 | $as_echo_n "(cached) " >&6 |
5342 | else | |
5343 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5344 | ac_cxx_werror_flag=yes | |
5345 | ac_cv_prog_cxx_g=no | |
5346 | CXXFLAGS="-g" | |
5347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5348 | /* end confdefs.h. */ |
5349 | ||
5350 | int | |
5351 | main () | |
5352 | { | |
5353 | ||
5354 | ; | |
5355 | return 0; | |
5356 | } | |
5357 | _ACEOF | |
81ecdfbb | 5358 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5359 | ac_cv_prog_cxx_g=yes |
5360 | else | |
81ecdfbb RW |
5361 | CXXFLAGS="" |
5362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5363 | /* end confdefs.h. */ |
81ecdfbb | 5364 | |
18f6b6ee PB |
5365 | int |
5366 | main () | |
5367 | { | |
81ecdfbb | 5368 | |
18f6b6ee PB |
5369 | ; |
5370 | return 0; | |
5371 | } | |
5372 | _ACEOF | |
81ecdfbb | 5373 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5374 | |
81ecdfbb RW |
5375 | else |
5376 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5377 | CXXFLAGS="-g" | |
5378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5379 | /* end confdefs.h. */ |
81ecdfbb | 5380 | |
18f6b6ee PB |
5381 | int |
5382 | main () | |
5383 | { | |
81ecdfbb | 5384 | |
18f6b6ee PB |
5385 | ; |
5386 | return 0; | |
5387 | } | |
5388 | _ACEOF | |
81ecdfbb RW |
5389 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5390 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5391 | fi |
81ecdfbb RW |
5392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5393 | fi | |
5394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5395 | fi | |
5396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5397 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5398 | fi | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5400 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5401 | if test "$ac_test_CXXFLAGS" = set; then | |
5402 | CXXFLAGS=$ac_save_CXXFLAGS | |
5403 | elif test $ac_cv_prog_cxx_g = yes; then | |
5404 | if test "$GXX" = yes; then | |
5405 | CXXFLAGS="-g -O2" | |
5406 | else | |
5407 | CXXFLAGS="-g" | |
5408 | fi | |
5409 | else | |
5410 | if test "$GXX" = yes; then | |
5411 | CXXFLAGS="-O2" | |
5412 | else | |
5413 | CXXFLAGS= | |
5414 | fi | |
18f6b6ee | 5415 | fi |
18f6b6ee PB |
5416 | ac_ext=c |
5417 | ac_cpp='$CPP $CPPFLAGS' | |
5418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5421 | ||
5422 | ||
5423 | # We must set the default linker to the linker used by gcc for the correct | |
5424 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5425 | # set the LD default to the ld used by gcc. | |
5426 | if test -z "$LD"; then | |
5427 | if test "$GCC" = yes; then | |
5428 | case $build in | |
5429 | *-*-mingw*) | |
5430 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5431 | *) | |
5432 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5433 | esac | |
5434 | case $gcc_prog_ld in | |
5435 | # Accept absolute paths. | |
5436 | [\\/]* | [A-Za-z]:[\\/]*) | |
5437 | LD="$gcc_prog_ld" ;; | |
5438 | esac | |
5439 | fi | |
512b7dfb PB |
5440 | fi |
5441 | ||
b3676d82 EB |
5442 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5443 | have_static_libs=no | |
5444 | if test "$GCC" = yes; then | |
5445 | saved_LDFLAGS="$LDFLAGS" | |
5446 | ||
5447 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5449 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5450 | ac_ext=cpp | |
5451 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5455 | ||
5456 | ||
5457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5458 | /* end confdefs.h. */ | |
a882be68 EB |
5459 | |
5460 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5461 | #error -static-libstdc++ not implemented | |
5462 | #endif | |
b3676d82 EB |
5463 | int main() {} |
5464 | _ACEOF | |
5465 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5467 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5468 | else | |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5470 | $as_echo "no" >&6; } | |
5471 | fi | |
5472 | rm -f core conftest.err conftest.$ac_objext \ | |
5473 | conftest$ac_exeext conftest.$ac_ext | |
5474 | ac_ext=c | |
5475 | ac_cpp='$CPP $CPPFLAGS' | |
5476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5479 | ||
5480 | ||
5481 | LDFLAGS="$saved_LDFLAGS" | |
5482 | fi | |
5483 | ||
512b7dfb PB |
5484 | |
5485 | ||
5486 | ||
c6b750e1 | 5487 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5488 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5489 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5491 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5492 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5493 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5494 | else |
512b7dfb PB |
5495 | if test -n "$GNATBIND"; then |
5496 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5497 | else |
c6b750e1 DJ |
5498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5499 | for as_dir in $PATH | |
5500 | do | |
5501 | IFS=$as_save_IFS | |
5502 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5503 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5504 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5505 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5507 | break 2 |
5508 | fi | |
5509 | done | |
81ecdfbb RW |
5510 | done |
5511 | IFS=$as_save_IFS | |
c6b750e1 | 5512 | |
9e07f89d NN |
5513 | fi |
5514 | fi | |
512b7dfb PB |
5515 | GNATBIND=$ac_cv_prog_GNATBIND |
5516 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5518 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5519 | else |
81ecdfbb RW |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5521 | $as_echo "no" >&6; } | |
9e07f89d NN |
5522 | fi |
5523 | ||
81ecdfbb | 5524 | |
c6b750e1 | 5525 | fi |
512b7dfb PB |
5526 | if test -z "$ac_cv_prog_GNATBIND"; then |
5527 | ac_ct_GNATBIND=$GNATBIND | |
5528 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5529 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5531 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5532 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5533 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5534 | else |
512b7dfb PB |
5535 | if test -n "$ac_ct_GNATBIND"; then |
5536 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5537 | else |
c6b750e1 DJ |
5538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5539 | for as_dir in $PATH | |
5540 | do | |
5541 | IFS=$as_save_IFS | |
5542 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5543 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5545 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5547 | break 2 |
5548 | fi | |
5549 | done | |
81ecdfbb RW |
5550 | done |
5551 | IFS=$as_save_IFS | |
c6b750e1 | 5552 | |
9e07f89d NN |
5553 | fi |
5554 | fi | |
512b7dfb PB |
5555 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5556 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5558 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5559 | else |
81ecdfbb RW |
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5561 | $as_echo "no" >&6; } | |
9e07f89d NN |
5562 | fi |
5563 | ||
81ecdfbb RW |
5564 | if test "x$ac_ct_GNATBIND" = x; then |
5565 | GNATBIND="no" | |
5566 | else | |
5567 | case $cross_compiling:$ac_tool_warned in | |
5568 | yes:) | |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5570 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5571 | ac_tool_warned=yes ;; | |
5572 | esac | |
5573 | GNATBIND=$ac_ct_GNATBIND | |
5574 | fi | |
24ff9987 | 5575 | else |
512b7dfb | 5576 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5577 | fi |
5578 | ||
7df2cd5d | 5579 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5580 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5581 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5583 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5584 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5585 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5586 | else |
512b7dfb PB |
5587 | if test -n "$GNATMAKE"; then |
5588 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5589 | else |
5590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5591 | for as_dir in $PATH | |
5592 | do | |
5593 | IFS=$as_save_IFS | |
5594 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5595 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5597 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5599 | break 2 |
5600 | fi | |
5601 | done | |
81ecdfbb RW |
5602 | done |
5603 | IFS=$as_save_IFS | |
7df2cd5d PB |
5604 | |
5605 | fi | |
5606 | fi | |
512b7dfb PB |
5607 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5608 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5610 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5611 | else |
81ecdfbb RW |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5613 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5614 | fi |
5615 | ||
81ecdfbb | 5616 | |
7df2cd5d | 5617 | fi |
512b7dfb PB |
5618 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5619 | ac_ct_GNATMAKE=$GNATMAKE | |
5620 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5621 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5623 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5624 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5625 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5626 | else |
512b7dfb PB |
5627 | if test -n "$ac_ct_GNATMAKE"; then |
5628 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5629 | else |
5630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5631 | for as_dir in $PATH | |
5632 | do | |
5633 | IFS=$as_save_IFS | |
5634 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5635 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5637 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5639 | break 2 |
5640 | fi | |
5641 | done | |
81ecdfbb RW |
5642 | done |
5643 | IFS=$as_save_IFS | |
7df2cd5d | 5644 | |
7df2cd5d PB |
5645 | fi |
5646 | fi | |
512b7dfb PB |
5647 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5648 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5650 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5651 | else |
81ecdfbb RW |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5653 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5654 | fi |
5655 | ||
81ecdfbb RW |
5656 | if test "x$ac_ct_GNATMAKE" = x; then |
5657 | GNATMAKE="no" | |
5658 | else | |
5659 | case $cross_compiling:$ac_tool_warned in | |
5660 | yes:) | |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5662 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5663 | ac_tool_warned=yes ;; | |
5664 | esac | |
5665 | GNATMAKE=$ac_ct_GNATMAKE | |
5666 | fi | |
7df2cd5d | 5667 | else |
512b7dfb | 5668 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5669 | fi |
5670 | ||
b95bb526 AM |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5672 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
d0ac1c44 | 5673 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5674 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5675 | else |
5676 | cat >conftest.adb <<EOF | |
b95bb526 AM |
5677 | pragma Warnings (Off); |
5678 | with System.CRTL; | |
5679 | pragma Warnings (On); | |
5680 | use type System.CRTL.int64; | |
9e07f89d NN |
5681 | procedure conftest is begin null; end conftest; |
5682 | EOF | |
5683 | acx_cv_cc_gcc_supports_ada=no | |
5684 | # There is a bug in old released versions of GCC which causes the | |
5685 | # driver to exit successfully when the appropriate language module | |
5686 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5687 | # Therefore we must check for the error message as well as an | |
5688 | # unsuccessful exit. | |
b8908782 DD |
5689 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5690 | # given a .adb file, but produce no object file. So we must check | |
5691 | # if an object file was really produced to guard against this. | |
9e07f89d | 5692 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5693 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5694 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5695 | fi |
5696 | rm -f conftest.* | |
5697 | fi | |
81ecdfbb RW |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5699 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5700 | |
64b986c0 | 5701 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5702 | have_gnat=yes |
5703 | else | |
5704 | have_gnat=no | |
5705 | fi | |
5706 | ||
b95bb526 AM |
5707 | |
5708 | ||
5709 | if test -n "$ac_tool_prefix"; then | |
5710 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5711 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5713 | $as_echo_n "checking for $ac_word... " >&6; } | |
5714 | if ${ac_cv_prog_GDC+:} false; then : | |
5715 | $as_echo_n "(cached) " >&6 | |
5716 | else | |
5717 | if test -n "$GDC"; then | |
5718 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5719 | else | |
5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5721 | for as_dir in $PATH | |
5722 | do | |
5723 | IFS=$as_save_IFS | |
5724 | test -z "$as_dir" && as_dir=. | |
5725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5727 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5729 | break 2 | |
5730 | fi | |
5731 | done | |
5732 | done | |
5733 | IFS=$as_save_IFS | |
5734 | ||
5735 | fi | |
5736 | fi | |
5737 | GDC=$ac_cv_prog_GDC | |
5738 | if test -n "$GDC"; then | |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5740 | $as_echo "$GDC" >&6; } | |
5741 | else | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5743 | $as_echo "no" >&6; } | |
5744 | fi | |
5745 | ||
5746 | ||
5747 | fi | |
5748 | if test -z "$ac_cv_prog_GDC"; then | |
5749 | ac_ct_GDC=$GDC | |
5750 | # Extract the first word of "gdc", so it can be a program name with args. | |
5751 | set dummy gdc; ac_word=$2 | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5753 | $as_echo_n "checking for $ac_word... " >&6; } | |
5754 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5755 | $as_echo_n "(cached) " >&6 | |
5756 | else | |
5757 | if test -n "$ac_ct_GDC"; then | |
5758 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5759 | else | |
5760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5761 | for as_dir in $PATH | |
5762 | do | |
5763 | IFS=$as_save_IFS | |
5764 | test -z "$as_dir" && as_dir=. | |
5765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5767 | ac_cv_prog_ac_ct_GDC="gdc" | |
5768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5769 | break 2 | |
5770 | fi | |
5771 | done | |
5772 | done | |
5773 | IFS=$as_save_IFS | |
5774 | ||
5775 | fi | |
5776 | fi | |
5777 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5778 | if test -n "$ac_ct_GDC"; then | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5780 | $as_echo "$ac_ct_GDC" >&6; } | |
5781 | else | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5783 | $as_echo "no" >&6; } | |
5784 | fi | |
5785 | ||
5786 | if test "x$ac_ct_GDC" = x; then | |
5787 | GDC="no" | |
5788 | else | |
5789 | case $cross_compiling:$ac_tool_warned in | |
5790 | yes:) | |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5792 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5793 | ac_tool_warned=yes ;; | |
5794 | esac | |
5795 | GDC=$ac_ct_GDC | |
5796 | fi | |
5797 | else | |
5798 | GDC="$ac_cv_prog_GDC" | |
5799 | fi | |
5800 | ||
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 | |
5802 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5803 | if ${acx_cv_d_compiler_works+:} false; then : | |
5804 | $as_echo_n "(cached) " >&6 | |
5805 | else | |
5806 | cat >conftest.d <<EOF | |
5807 | module conftest; int main() { return 0; } | |
5808 | EOF | |
5809 | acx_cv_d_compiler_works=no | |
5810 | if test "x$GDC" != xno; then | |
5811 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` | |
5812 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5813 | acx_cv_d_compiler_works=yes | |
5814 | fi | |
5815 | rm -f conftest.* | |
5816 | fi | |
5817 | fi | |
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5819 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5820 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5821 | have_gdc=yes | |
5822 | else | |
5823 | have_gdc=no | |
5824 | fi | |
5825 | ||
81ecdfbb RW |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5827 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5828 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5829 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5830 | else |
5831 | echo abfoo >t1 | |
5832 | echo cdfoo >t2 | |
da17fe9d | 5833 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5834 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5835 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5836 | : | |
5837 | else | |
5838 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5839 | fi | |
5840 | fi | |
b8908782 DD |
5841 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5842 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5843 | : |
b8908782 DD |
5844 | else |
5845 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5846 | fi | |
5847 | fi | |
5848 | rm t1 t2 | |
5849 | ||
5850 | fi | |
81ecdfbb RW |
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5852 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5853 | do_compare="$gcc_cv_prog_cmp_skip" |
5854 | ||
5855 | ||
9e07f89d | 5856 | |
ffdd6afc ILT |
5857 | # Check whether --enable-bootstrap was given. |
5858 | if test "${enable_bootstrap+set}" = set; then : | |
5859 | enableval=$enable_bootstrap; | |
5860 | else | |
5861 | enable_bootstrap=default | |
5862 | fi | |
5863 | ||
5864 | ||
5865 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5866 | if test -r $srcdir/gcc/configure; then | |
5867 | have_compiler=yes | |
5868 | else | |
5869 | have_compiler=no | |
5870 | fi | |
5871 | ||
5872 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5873 | *:*:*:no) ;; | |
5874 | ||
5875 | # Default behavior. Enable bootstrap if we have a compiler | |
5876 | # and we are in a native configuration. | |
5877 | yes:$build:$build:default) | |
5878 | enable_bootstrap=yes ;; | |
5879 | ||
5880 | *:*:*:default) | |
5881 | enable_bootstrap=no ;; | |
5882 | ||
5883 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5884 | yes:$build:$build:yes) | |
5885 | ;; | |
5886 | ||
5887 | # Other configurations, but we have a compiler. Assume the user knows | |
5888 | # what he's doing. | |
5889 | yes:*:*:yes) | |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5891 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5892 | ;; | |
5893 | ||
5894 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5895 | no:*:*:yes) | |
d0ac1c44 | 5896 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5897 | |
5898 | # Fail if wrong command line | |
5899 | *) | |
d0ac1c44 | 5900 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5901 | ;; |
5902 | esac | |
5903 | ||
228cf97d AM |
5904 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
5905 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, | |
5906 | # require C++11 (or higher). | |
ce6c656d | 5907 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
228cf97d AM |
5908 | CXX="$CXX -std=c++11" |
5909 | elif test "$have_compiler" = yes; then | |
5910 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5911 | ac_ext=cpp | |
5912 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5913 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5914 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5915 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5916 | ac_success=no | |
ce6c656d | 5917 | |
228cf97d AM |
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
5919 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5920 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5921 | $as_echo_n "(cached) " >&6 | |
af019bfd | 5922 | else |
228cf97d AM |
5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5924 | /* end confdefs.h. */ | |
af019bfd L |
5925 | |
5926 | ||
228cf97d AM |
5927 | // If the compiler admits that it is not ready for C++11, why torture it? |
5928 | // Hopefully, this will speed up the test. | |
af019bfd | 5929 | |
228cf97d | 5930 | #ifndef __cplusplus |
af019bfd | 5931 | |
228cf97d | 5932 | #error "This is not a C++ compiler" |
af019bfd | 5933 | |
228cf97d | 5934 | #elif __cplusplus < 201103L |
af019bfd | 5935 | |
228cf97d | 5936 | #error "This is not a C++11 compiler" |
af019bfd | 5937 | |
228cf97d | 5938 | #else |
af019bfd | 5939 | |
228cf97d AM |
5940 | namespace cxx11 |
5941 | { | |
af019bfd | 5942 | |
228cf97d AM |
5943 | namespace test_static_assert |
5944 | { | |
af019bfd | 5945 | |
228cf97d AM |
5946 | template <typename T> |
5947 | struct check | |
5948 | { | |
5949 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5950 | }; | |
af019bfd | 5951 | |
228cf97d | 5952 | } |
af019bfd | 5953 | |
228cf97d AM |
5954 | namespace test_final_override |
5955 | { | |
af019bfd | 5956 | |
228cf97d AM |
5957 | struct Base |
5958 | { | |
5959 | virtual ~Base() {} | |
5960 | virtual void f() {} | |
5961 | }; | |
af019bfd | 5962 | |
228cf97d AM |
5963 | struct Derived : public Base |
5964 | { | |
5965 | virtual ~Derived() override {} | |
5966 | virtual void f() override {} | |
5967 | }; | |
d5f2ee2e | 5968 | |
228cf97d | 5969 | } |
d5f2ee2e | 5970 | |
228cf97d AM |
5971 | namespace test_double_right_angle_brackets |
5972 | { | |
d5f2ee2e | 5973 | |
228cf97d AM |
5974 | template < typename T > |
5975 | struct check {}; | |
d5f2ee2e | 5976 | |
228cf97d AM |
5977 | typedef check<void> single_type; |
5978 | typedef check<check<void>> double_type; | |
5979 | typedef check<check<check<void>>> triple_type; | |
5980 | typedef check<check<check<check<void>>>> quadruple_type; | |
d5f2ee2e | 5981 | |
228cf97d | 5982 | } |
d5f2ee2e | 5983 | |
228cf97d AM |
5984 | namespace test_decltype |
5985 | { | |
d5f2ee2e | 5986 | |
228cf97d AM |
5987 | int |
5988 | f() | |
5989 | { | |
5990 | int a = 1; | |
5991 | decltype(a) b = 2; | |
5992 | return a + b; | |
5993 | } | |
d5f2ee2e | 5994 | |
228cf97d | 5995 | } |
e8a5fa9c | 5996 | |
228cf97d AM |
5997 | namespace test_type_deduction |
5998 | { | |
e8a5fa9c | 5999 | |
228cf97d AM |
6000 | template < typename T1, typename T2 > |
6001 | struct is_same | |
6002 | { | |
6003 | static const bool value = false; | |
6004 | }; | |
e8a5fa9c | 6005 | |
228cf97d AM |
6006 | template < typename T > |
6007 | struct is_same<T, T> | |
6008 | { | |
6009 | static const bool value = true; | |
6010 | }; | |
e8a5fa9c | 6011 | |
228cf97d AM |
6012 | template < typename T1, typename T2 > |
6013 | auto | |
6014 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6015 | { | |
6016 | return a1 + a2; | |
6017 | } | |
e8a5fa9c | 6018 | |
228cf97d AM |
6019 | int |
6020 | test(const int c, volatile int v) | |
6021 | { | |
6022 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6023 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6024 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6025 | auto ac = c; | |
6026 | auto av = v; | |
6027 | auto sumi = ac + av + 'x'; | |
6028 | auto sumf = ac + av + 1.0; | |
6029 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6030 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6031 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6032 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6033 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6034 | return (sumf > 0.0) ? sumi : add(c, v); | |
6035 | } | |
e8a5fa9c | 6036 | |
228cf97d | 6037 | } |
e8a5fa9c | 6038 | |
228cf97d AM |
6039 | namespace test_noexcept |
6040 | { | |
e8a5fa9c | 6041 | |
228cf97d AM |
6042 | int f() { return 0; } |
6043 | int g() noexcept { return 0; } | |
4b900473 | 6044 | |
228cf97d AM |
6045 | static_assert(noexcept(f()) == false, ""); |
6046 | static_assert(noexcept(g()) == true, ""); | |
c6b750e1 | 6047 | |
228cf97d | 6048 | } |
81ecdfbb | 6049 | |
228cf97d AM |
6050 | namespace test_constexpr |
6051 | { | |
11b04d1f | 6052 | |
228cf97d AM |
6053 | template < typename CharT > |
6054 | unsigned long constexpr | |
6055 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6056 | { | |
6057 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6058 | } | |
11b04d1f | 6059 | |
228cf97d AM |
6060 | template < typename CharT > |
6061 | unsigned long constexpr | |
6062 | strlen_c(const CharT *const s) noexcept | |
6063 | { | |
6064 | return strlen_c_r(s, 0UL); | |
6065 | } | |
6066 | ||
6067 | static_assert(strlen_c("") == 0UL, ""); | |
6068 | static_assert(strlen_c("1") == 1UL, ""); | |
6069 | static_assert(strlen_c("example") == 7UL, ""); | |
6070 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6071 | ||
6072 | } | |
6073 | ||
6074 | namespace test_rvalue_references | |
6075 | { | |
6076 | ||
6077 | template < int N > | |
6078 | struct answer | |
6079 | { | |
6080 | static constexpr int value = N; | |
6081 | }; | |
6082 | ||
6083 | answer<1> f(int&) { return answer<1>(); } | |
6084 | answer<2> f(const int&) { return answer<2>(); } | |
6085 | answer<3> f(int&&) { return answer<3>(); } | |
6086 | ||
6087 | void | |
6088 | test() | |
6089 | { | |
6090 | int i = 0; | |
6091 | const int c = 0; | |
6092 | static_assert(decltype(f(i))::value == 1, ""); | |
6093 | static_assert(decltype(f(c))::value == 2, ""); | |
6094 | static_assert(decltype(f(0))::value == 3, ""); | |
6095 | } | |
6096 | ||
6097 | } | |
6098 | ||
6099 | namespace test_uniform_initialization | |
6100 | { | |
6101 | ||
6102 | struct test | |
6103 | { | |
6104 | static const int zero {}; | |
6105 | static const int one {1}; | |
6106 | }; | |
6107 | ||
6108 | static_assert(test::zero == 0, ""); | |
6109 | static_assert(test::one == 1, ""); | |
6110 | ||
6111 | } | |
6112 | ||
6113 | namespace test_lambdas | |
6114 | { | |
6115 | ||
6116 | void | |
6117 | test1() | |
6118 | { | |
6119 | auto lambda1 = [](){}; | |
6120 | auto lambda2 = lambda1; | |
6121 | lambda1(); | |
6122 | lambda2(); | |
6123 | } | |
6124 | ||
6125 | int | |
6126 | test2() | |
6127 | { | |
6128 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6129 | auto b = []() -> int { return '0'; }(); | |
6130 | auto c = [=](){ return a + b; }(); | |
6131 | auto d = [&](){ return c; }(); | |
6132 | auto e = [a, &b](int x) mutable { | |
6133 | const auto identity = [](int y){ return y; }; | |
6134 | for (auto i = 0; i < a; ++i) | |
6135 | a += b--; | |
6136 | return x + identity(a + b); | |
6137 | }(0); | |
6138 | return a + b + c + d + e; | |
6139 | } | |
6140 | ||
6141 | int | |
6142 | test3() | |
6143 | { | |
6144 | const auto nullary = [](){ return 0; }; | |
6145 | const auto unary = [](int x){ return x; }; | |
6146 | using nullary_t = decltype(nullary); | |
6147 | using unary_t = decltype(unary); | |
6148 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6149 | const auto higher2nd = [unary](nullary_t f1){ | |
6150 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6151 | }; | |
6152 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6153 | } | |
6154 | ||
6155 | } | |
6156 | ||
6157 | namespace test_variadic_templates | |
6158 | { | |
6159 | ||
6160 | template <int...> | |
6161 | struct sum; | |
6162 | ||
6163 | template <int N0, int... N1toN> | |
6164 | struct sum<N0, N1toN...> | |
6165 | { | |
6166 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6167 | }; | |
6168 | ||
6169 | template <> | |
6170 | struct sum<> | |
6171 | { | |
6172 | static constexpr auto value = 0; | |
6173 | }; | |
6174 | ||
6175 | static_assert(sum<>::value == 0, ""); | |
6176 | static_assert(sum<1>::value == 1, ""); | |
6177 | static_assert(sum<23>::value == 23, ""); | |
6178 | static_assert(sum<1, 2>::value == 3, ""); | |
6179 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6180 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6181 | ||
6182 | } | |
6183 | ||
6184 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6185 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6186 | // because of this. | |
6187 | namespace test_template_alias_sfinae | |
6188 | { | |
6189 | ||
6190 | struct foo {}; | |
6191 | ||
6192 | template<typename T> | |
6193 | using member = typename T::member_type; | |
6194 | ||
6195 | template<typename T> | |
6196 | void func(...) {} | |
6197 | ||
6198 | template<typename T> | |
6199 | void func(member<T>*) {} | |
6200 | ||
6201 | void test(); | |
6202 | ||
6203 | void test() { func<foo>(0); } | |
6204 | ||
6205 | } | |
6206 | ||
6207 | } // namespace cxx11 | |
6208 | ||
6209 | #endif // __cplusplus >= 201103L | |
6210 | ||
6211 | ||
6212 | ||
6213 | _ACEOF | |
6214 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6215 | ax_cv_cxx_compile_cxx11=yes | |
6216 | else | |
6217 | ax_cv_cxx_compile_cxx11=no | |
6218 | fi | |
6219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6220 | fi | |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6222 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6223 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6224 | ac_success=yes | |
6225 | fi | |
6226 | ||
6227 | if test x$ac_success = xno; then | |
6228 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6229 | switch="-std=gnu++${alternative}" | |
6230 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6232 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6233 | if eval \${$cachevar+:} false; then : | |
6234 | $as_echo_n "(cached) " >&6 | |
6235 | else | |
6236 | ac_save_CXX="$CXX" | |
6237 | CXX="$CXX $switch" | |
6238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6239 | /* end confdefs.h. */ | |
6240 | ||
6241 | ||
6242 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6243 | // Hopefully, this will speed up the test. | |
6244 | ||
6245 | #ifndef __cplusplus | |
6246 | ||
6247 | #error "This is not a C++ compiler" | |
6248 | ||
6249 | #elif __cplusplus < 201103L | |
6250 | ||
6251 | #error "This is not a C++11 compiler" | |
6252 | ||
6253 | #else | |
6254 | ||
6255 | namespace cxx11 | |
6256 | { | |
6257 | ||
6258 | namespace test_static_assert | |
6259 | { | |
6260 | ||
6261 | template <typename T> | |
6262 | struct check | |
6263 | { | |
6264 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6265 | }; | |
6266 | ||
6267 | } | |
6268 | ||
6269 | namespace test_final_override | |
6270 | { | |
6271 | ||
6272 | struct Base | |
6273 | { | |
6274 | virtual ~Base() {} | |
6275 | virtual void f() {} | |
6276 | }; | |
6277 | ||
6278 | struct Derived : public Base | |
6279 | { | |
6280 | virtual ~Derived() override {} | |
6281 | virtual void f() override {} | |
6282 | }; | |
6283 | ||
6284 | } | |
6285 | ||
6286 | namespace test_double_right_angle_brackets | |
6287 | { | |
6288 | ||
6289 | template < typename T > | |
6290 | struct check {}; | |
6291 | ||
6292 | typedef check<void> single_type; | |
6293 | typedef check<check<void>> double_type; | |
6294 | typedef check<check<check<void>>> triple_type; | |
6295 | typedef check<check<check<check<void>>>> quadruple_type; | |
6296 | ||
6297 | } | |
6298 | ||
6299 | namespace test_decltype | |
6300 | { | |
6301 | ||
6302 | int | |
6303 | f() | |
6304 | { | |
6305 | int a = 1; | |
6306 | decltype(a) b = 2; | |
6307 | return a + b; | |
6308 | } | |
6309 | ||
6310 | } | |
6311 | ||
6312 | namespace test_type_deduction | |
6313 | { | |
6314 | ||
6315 | template < typename T1, typename T2 > | |
6316 | struct is_same | |
6317 | { | |
6318 | static const bool value = false; | |
6319 | }; | |
6320 | ||
6321 | template < typename T > | |
6322 | struct is_same<T, T> | |
6323 | { | |
6324 | static const bool value = true; | |
6325 | }; | |
6326 | ||
6327 | template < typename T1, typename T2 > | |
6328 | auto | |
6329 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6330 | { | |
6331 | return a1 + a2; | |
6332 | } | |
6333 | ||
6334 | int | |
6335 | test(const int c, volatile int v) | |
6336 | { | |
6337 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6338 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6339 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6340 | auto ac = c; | |
6341 | auto av = v; | |
6342 | auto sumi = ac + av + 'x'; | |
6343 | auto sumf = ac + av + 1.0; | |
6344 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6345 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6346 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6347 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6348 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6349 | return (sumf > 0.0) ? sumi : add(c, v); | |
6350 | } | |
6351 | ||
6352 | } | |
6353 | ||
6354 | namespace test_noexcept | |
6355 | { | |
6356 | ||
6357 | int f() { return 0; } | |
6358 | int g() noexcept { return 0; } | |
6359 | ||
6360 | static_assert(noexcept(f()) == false, ""); | |
6361 | static_assert(noexcept(g()) == true, ""); | |
6362 | ||
6363 | } | |
6364 | ||
6365 | namespace test_constexpr | |
6366 | { | |
6367 | ||
6368 | template < typename CharT > | |
6369 | unsigned long constexpr | |
6370 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6371 | { | |
6372 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6373 | } | |
6374 | ||
6375 | template < typename CharT > | |
6376 | unsigned long constexpr | |
6377 | strlen_c(const CharT *const s) noexcept | |
6378 | { | |
6379 | return strlen_c_r(s, 0UL); | |
6380 | } | |
6381 | ||
6382 | static_assert(strlen_c("") == 0UL, ""); | |
6383 | static_assert(strlen_c("1") == 1UL, ""); | |
6384 | static_assert(strlen_c("example") == 7UL, ""); | |
6385 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6386 | ||
6387 | } | |
6388 | ||
6389 | namespace test_rvalue_references | |
6390 | { | |
6391 | ||
6392 | template < int N > | |
6393 | struct answer | |
6394 | { | |
6395 | static constexpr int value = N; | |
6396 | }; | |
6397 | ||
6398 | answer<1> f(int&) { return answer<1>(); } | |
6399 | answer<2> f(const int&) { return answer<2>(); } | |
6400 | answer<3> f(int&&) { return answer<3>(); } | |
6401 | ||
6402 | void | |
6403 | test() | |
6404 | { | |
6405 | int i = 0; | |
6406 | const int c = 0; | |
6407 | static_assert(decltype(f(i))::value == 1, ""); | |
6408 | static_assert(decltype(f(c))::value == 2, ""); | |
6409 | static_assert(decltype(f(0))::value == 3, ""); | |
6410 | } | |
6411 | ||
6412 | } | |
6413 | ||
6414 | namespace test_uniform_initialization | |
6415 | { | |
6416 | ||
6417 | struct test | |
6418 | { | |
6419 | static const int zero {}; | |
6420 | static const int one {1}; | |
6421 | }; | |
6422 | ||
6423 | static_assert(test::zero == 0, ""); | |
6424 | static_assert(test::one == 1, ""); | |
6425 | ||
6426 | } | |
6427 | ||
6428 | namespace test_lambdas | |
6429 | { | |
6430 | ||
6431 | void | |
6432 | test1() | |
6433 | { | |
6434 | auto lambda1 = [](){}; | |
6435 | auto lambda2 = lambda1; | |
6436 | lambda1(); | |
6437 | lambda2(); | |
6438 | } | |
6439 | ||
6440 | int | |
6441 | test2() | |
6442 | { | |
6443 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6444 | auto b = []() -> int { return '0'; }(); | |
6445 | auto c = [=](){ return a + b; }(); | |
6446 | auto d = [&](){ return c; }(); | |
6447 | auto e = [a, &b](int x) mutable { | |
6448 | const auto identity = [](int y){ return y; }; | |
6449 | for (auto i = 0; i < a; ++i) | |
6450 | a += b--; | |
6451 | return x + identity(a + b); | |
6452 | }(0); | |
6453 | return a + b + c + d + e; | |
6454 | } | |
6455 | ||
6456 | int | |
6457 | test3() | |
6458 | { | |
6459 | const auto nullary = [](){ return 0; }; | |
6460 | const auto unary = [](int x){ return x; }; | |
6461 | using nullary_t = decltype(nullary); | |
6462 | using unary_t = decltype(unary); | |
6463 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6464 | const auto higher2nd = [unary](nullary_t f1){ | |
6465 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6466 | }; | |
6467 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6468 | } | |
6469 | ||
6470 | } | |
6471 | ||
6472 | namespace test_variadic_templates | |
6473 | { | |
6474 | ||
6475 | template <int...> | |
6476 | struct sum; | |
6477 | ||
6478 | template <int N0, int... N1toN> | |
6479 | struct sum<N0, N1toN...> | |
6480 | { | |
6481 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6482 | }; | |
6483 | ||
6484 | template <> | |
6485 | struct sum<> | |
6486 | { | |
6487 | static constexpr auto value = 0; | |
6488 | }; | |
6489 | ||
6490 | static_assert(sum<>::value == 0, ""); | |
6491 | static_assert(sum<1>::value == 1, ""); | |
6492 | static_assert(sum<23>::value == 23, ""); | |
6493 | static_assert(sum<1, 2>::value == 3, ""); | |
6494 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6495 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6496 | ||
6497 | } | |
6498 | ||
6499 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6500 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6501 | // because of this. | |
6502 | namespace test_template_alias_sfinae | |
6503 | { | |
6504 | ||
6505 | struct foo {}; | |
6506 | ||
6507 | template<typename T> | |
6508 | using member = typename T::member_type; | |
6509 | ||
6510 | template<typename T> | |
6511 | void func(...) {} | |
6512 | ||
6513 | template<typename T> | |
6514 | void func(member<T>*) {} | |
6515 | ||
6516 | void test(); | |
6517 | ||
6518 | void test() { func<foo>(0); } | |
6519 | ||
6520 | } | |
6521 | ||
6522 | } // namespace cxx11 | |
6523 | ||
6524 | #endif // __cplusplus >= 201103L | |
6525 | ||
6526 | ||
6527 | ||
6528 | _ACEOF | |
6529 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6530 | eval $cachevar=yes | |
6531 | else | |
6532 | eval $cachevar=no | |
6533 | fi | |
6534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6535 | CXX="$ac_save_CXX" | |
6536 | fi | |
6537 | eval ac_res=\$$cachevar | |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6539 | $as_echo "$ac_res" >&6; } | |
6540 | if eval test x\$$cachevar = xyes; then | |
6541 | CXX="$CXX $switch" | |
6542 | if test -n "$CXXCPP" ; then | |
6543 | CXXCPP="$CXXCPP $switch" | |
6544 | fi | |
6545 | ac_success=yes | |
6546 | break | |
6547 | fi | |
6548 | done | |
6549 | fi | |
6550 | ||
6551 | if test x$ac_success = xno; then | |
6552 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6553 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6554 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6556 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6557 | if eval \${$cachevar+:} false; then : | |
6558 | $as_echo_n "(cached) " >&6 | |
6559 | else | |
6560 | ac_save_CXX="$CXX" | |
6561 | CXX="$CXX $switch" | |
6562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6563 | /* end confdefs.h. */ | |
6564 | ||
6565 | ||
6566 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6567 | // Hopefully, this will speed up the test. | |
6568 | ||
6569 | #ifndef __cplusplus | |
6570 | ||
6571 | #error "This is not a C++ compiler" | |
6572 | ||
6573 | #elif __cplusplus < 201103L | |
6574 | ||
6575 | #error "This is not a C++11 compiler" | |
6576 | ||
6577 | #else | |
6578 | ||
6579 | namespace cxx11 | |
6580 | { | |
6581 | ||
6582 | namespace test_static_assert | |
6583 | { | |
6584 | ||
6585 | template <typename T> | |
6586 | struct check | |
6587 | { | |
6588 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6589 | }; | |
6590 | ||
6591 | } | |
6592 | ||
6593 | namespace test_final_override | |
6594 | { | |
6595 | ||
6596 | struct Base | |
6597 | { | |
6598 | virtual ~Base() {} | |
6599 | virtual void f() {} | |
6600 | }; | |
6601 | ||
6602 | struct Derived : public Base | |
6603 | { | |
6604 | virtual ~Derived() override {} | |
6605 | virtual void f() override {} | |
6606 | }; | |
6607 | ||
6608 | } | |
6609 | ||
6610 | namespace test_double_right_angle_brackets | |
6611 | { | |
6612 | ||
6613 | template < typename T > | |
6614 | struct check {}; | |
6615 | ||
6616 | typedef check<void> single_type; | |
6617 | typedef check<check<void>> double_type; | |
6618 | typedef check<check<check<void>>> triple_type; | |
6619 | typedef check<check<check<check<void>>>> quadruple_type; | |
6620 | ||
6621 | } | |
6622 | ||
6623 | namespace test_decltype | |
6624 | { | |
6625 | ||
6626 | int | |
6627 | f() | |
6628 | { | |
6629 | int a = 1; | |
6630 | decltype(a) b = 2; | |
6631 | return a + b; | |
6632 | } | |
6633 | ||
6634 | } | |
6635 | ||
6636 | namespace test_type_deduction | |
6637 | { | |
6638 | ||
6639 | template < typename T1, typename T2 > | |
6640 | struct is_same | |
6641 | { | |
6642 | static const bool value = false; | |
6643 | }; | |
6644 | ||
6645 | template < typename T > | |
6646 | struct is_same<T, T> | |
6647 | { | |
6648 | static const bool value = true; | |
6649 | }; | |
6650 | ||
6651 | template < typename T1, typename T2 > | |
6652 | auto | |
6653 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6654 | { | |
6655 | return a1 + a2; | |
6656 | } | |
6657 | ||
6658 | int | |
6659 | test(const int c, volatile int v) | |
6660 | { | |
6661 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6662 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6663 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6664 | auto ac = c; | |
6665 | auto av = v; | |
6666 | auto sumi = ac + av + 'x'; | |
6667 | auto sumf = ac + av + 1.0; | |
6668 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6669 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6670 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6671 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6672 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6673 | return (sumf > 0.0) ? sumi : add(c, v); | |
6674 | } | |
6675 | ||
6676 | } | |
6677 | ||
6678 | namespace test_noexcept | |
6679 | { | |
6680 | ||
6681 | int f() { return 0; } | |
6682 | int g() noexcept { return 0; } | |
6683 | ||
6684 | static_assert(noexcept(f()) == false, ""); | |
6685 | static_assert(noexcept(g()) == true, ""); | |
6686 | ||
6687 | } | |
6688 | ||
6689 | namespace test_constexpr | |
6690 | { | |
6691 | ||
6692 | template < typename CharT > | |
6693 | unsigned long constexpr | |
6694 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6695 | { | |
6696 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6697 | } | |
6698 | ||
6699 | template < typename CharT > | |
6700 | unsigned long constexpr | |
6701 | strlen_c(const CharT *const s) noexcept | |
6702 | { | |
6703 | return strlen_c_r(s, 0UL); | |
6704 | } | |
6705 | ||
6706 | static_assert(strlen_c("") == 0UL, ""); | |
6707 | static_assert(strlen_c("1") == 1UL, ""); | |
6708 | static_assert(strlen_c("example") == 7UL, ""); | |
6709 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6710 | ||
6711 | } | |
6712 | ||
6713 | namespace test_rvalue_references | |
6714 | { | |
6715 | ||
6716 | template < int N > | |
6717 | struct answer | |
6718 | { | |
6719 | static constexpr int value = N; | |
6720 | }; | |
6721 | ||
6722 | answer<1> f(int&) { return answer<1>(); } | |
6723 | answer<2> f(const int&) { return answer<2>(); } | |
6724 | answer<3> f(int&&) { return answer<3>(); } | |
6725 | ||
6726 | void | |
6727 | test() | |
6728 | { | |
6729 | int i = 0; | |
6730 | const int c = 0; | |
6731 | static_assert(decltype(f(i))::value == 1, ""); | |
6732 | static_assert(decltype(f(c))::value == 2, ""); | |
6733 | static_assert(decltype(f(0))::value == 3, ""); | |
6734 | } | |
6735 | ||
6736 | } | |
6737 | ||
6738 | namespace test_uniform_initialization | |
6739 | { | |
6740 | ||
6741 | struct test | |
6742 | { | |
6743 | static const int zero {}; | |
6744 | static const int one {1}; | |
6745 | }; | |
6746 | ||
6747 | static_assert(test::zero == 0, ""); | |
6748 | static_assert(test::one == 1, ""); | |
6749 | ||
6750 | } | |
6751 | ||
6752 | namespace test_lambdas | |
6753 | { | |
6754 | ||
6755 | void | |
6756 | test1() | |
6757 | { | |
6758 | auto lambda1 = [](){}; | |
6759 | auto lambda2 = lambda1; | |
6760 | lambda1(); | |
6761 | lambda2(); | |
6762 | } | |
6763 | ||
6764 | int | |
6765 | test2() | |
6766 | { | |
6767 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6768 | auto b = []() -> int { return '0'; }(); | |
6769 | auto c = [=](){ return a + b; }(); | |
6770 | auto d = [&](){ return c; }(); | |
6771 | auto e = [a, &b](int x) mutable { | |
6772 | const auto identity = [](int y){ return y; }; | |
6773 | for (auto i = 0; i < a; ++i) | |
6774 | a += b--; | |
6775 | return x + identity(a + b); | |
6776 | }(0); | |
6777 | return a + b + c + d + e; | |
6778 | } | |
6779 | ||
6780 | int | |
6781 | test3() | |
6782 | { | |
6783 | const auto nullary = [](){ return 0; }; | |
6784 | const auto unary = [](int x){ return x; }; | |
6785 | using nullary_t = decltype(nullary); | |
6786 | using unary_t = decltype(unary); | |
6787 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6788 | const auto higher2nd = [unary](nullary_t f1){ | |
6789 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6790 | }; | |
6791 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6792 | } | |
6793 | ||
6794 | } | |
6795 | ||
6796 | namespace test_variadic_templates | |
6797 | { | |
6798 | ||
6799 | template <int...> | |
6800 | struct sum; | |
6801 | ||
6802 | template <int N0, int... N1toN> | |
6803 | struct sum<N0, N1toN...> | |
6804 | { | |
6805 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6806 | }; | |
6807 | ||
6808 | template <> | |
6809 | struct sum<> | |
6810 | { | |
6811 | static constexpr auto value = 0; | |
6812 | }; | |
6813 | ||
6814 | static_assert(sum<>::value == 0, ""); | |
6815 | static_assert(sum<1>::value == 1, ""); | |
6816 | static_assert(sum<23>::value == 23, ""); | |
6817 | static_assert(sum<1, 2>::value == 3, ""); | |
6818 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6819 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6820 | ||
6821 | } | |
6822 | ||
6823 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6824 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6825 | // because of this. | |
6826 | namespace test_template_alias_sfinae | |
6827 | { | |
6828 | ||
6829 | struct foo {}; | |
6830 | ||
6831 | template<typename T> | |
6832 | using member = typename T::member_type; | |
6833 | ||
6834 | template<typename T> | |
6835 | void func(...) {} | |
6836 | ||
6837 | template<typename T> | |
6838 | void func(member<T>*) {} | |
6839 | ||
6840 | void test(); | |
6841 | ||
6842 | void test() { func<foo>(0); } | |
6843 | ||
6844 | } | |
6845 | ||
6846 | } // namespace cxx11 | |
6847 | ||
6848 | #endif // __cplusplus >= 201103L | |
6849 | ||
6850 | ||
6851 | ||
6852 | _ACEOF | |
6853 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6854 | eval $cachevar=yes | |
6855 | else | |
6856 | eval $cachevar=no | |
6857 | fi | |
6858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6859 | CXX="$ac_save_CXX" | |
6860 | fi | |
6861 | eval ac_res=\$$cachevar | |
6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6863 | $as_echo "$ac_res" >&6; } | |
6864 | if eval test x\$$cachevar = xyes; then | |
6865 | CXX="$CXX $switch" | |
6866 | if test -n "$CXXCPP" ; then | |
6867 | CXXCPP="$CXXCPP $switch" | |
6868 | fi | |
6869 | ac_success=yes | |
6870 | break | |
6871 | fi | |
6872 | done | |
6873 | if test x$ac_success = xyes; then | |
6874 | break | |
6875 | fi | |
6876 | done | |
6877 | fi | |
6878 | ||
6879 | ac_ext=c | |
6880 | ac_cpp='$CPP $CPPFLAGS' | |
6881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6884 | ||
6885 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6886 | if test x$ac_success = xno; then | |
6887 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6888 | fi | |
6889 | fi | |
6890 | if test x$ac_success = xno; then | |
6891 | HAVE_CXX11=0 | |
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6893 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6894 | else | |
6895 | HAVE_CXX11=1 | |
6896 | ||
6897 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6898 | ||
6899 | fi | |
6900 | ||
6901 | ||
6902 | ||
6903 | if test "${build}" != "${host}"; then | |
6904 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6905 | ac_ext=cpp | |
6906 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6907 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6908 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6909 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6910 | ac_success=no | |
6911 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6912 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6913 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6914 | CXX="$CXX_FOR_BUILD" | |
6915 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6916 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6918 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6919 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6920 | $as_echo_n "(cached) " >&6 | |
6921 | else | |
6922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6923 | /* end confdefs.h. */ | |
6924 | ||
6925 | ||
6926 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6927 | // Hopefully, this will speed up the test. | |
6928 | ||
6929 | #ifndef __cplusplus | |
6930 | ||
6931 | #error "This is not a C++ compiler" | |
6932 | ||
6933 | #elif __cplusplus < 201103L | |
6934 | ||
6935 | #error "This is not a C++11 compiler" | |
6936 | ||
6937 | #else | |
6938 | ||
6939 | namespace cxx11 | |
6940 | { | |
6941 | ||
6942 | namespace test_static_assert | |
6943 | { | |
6944 | ||
6945 | template <typename T> | |
6946 | struct check | |
6947 | { | |
6948 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6949 | }; | |
6950 | ||
6951 | } | |
6952 | ||
6953 | namespace test_final_override | |
6954 | { | |
6955 | ||
6956 | struct Base | |
6957 | { | |
6958 | virtual ~Base() {} | |
6959 | virtual void f() {} | |
6960 | }; | |
6961 | ||
6962 | struct Derived : public Base | |
6963 | { | |
6964 | virtual ~Derived() override {} | |
6965 | virtual void f() override {} | |
6966 | }; | |
6967 | ||
6968 | } | |
6969 | ||
6970 | namespace test_double_right_angle_brackets | |
6971 | { | |
6972 | ||
6973 | template < typename T > | |
6974 | struct check {}; | |
6975 | ||
6976 | typedef check<void> single_type; | |
6977 | typedef check<check<void>> double_type; | |
6978 | typedef check<check<check<void>>> triple_type; | |
6979 | typedef check<check<check<check<void>>>> quadruple_type; | |
6980 | ||
6981 | } | |
6982 | ||
6983 | namespace test_decltype | |
6984 | { | |
6985 | ||
6986 | int | |
6987 | f() | |
6988 | { | |
6989 | int a = 1; | |
6990 | decltype(a) b = 2; | |
6991 | return a + b; | |
6992 | } | |
6993 | ||
6994 | } | |
6995 | ||
6996 | namespace test_type_deduction | |
6997 | { | |
6998 | ||
6999 | template < typename T1, typename T2 > | |
7000 | struct is_same | |
7001 | { | |
7002 | static const bool value = false; | |
7003 | }; | |
7004 | ||
7005 | template < typename T > | |
7006 | struct is_same<T, T> | |
7007 | { | |
7008 | static const bool value = true; | |
7009 | }; | |
7010 | ||
7011 | template < typename T1, typename T2 > | |
7012 | auto | |
7013 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7014 | { | |
7015 | return a1 + a2; | |
7016 | } | |
7017 | ||
7018 | int | |
7019 | test(const int c, volatile int v) | |
7020 | { | |
7021 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7022 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7023 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7024 | auto ac = c; | |
7025 | auto av = v; | |
7026 | auto sumi = ac + av + 'x'; | |
7027 | auto sumf = ac + av + 1.0; | |
7028 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7029 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7030 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7031 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7032 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7033 | return (sumf > 0.0) ? sumi : add(c, v); | |
7034 | } | |
7035 | ||
7036 | } | |
7037 | ||
7038 | namespace test_noexcept | |
7039 | { | |
7040 | ||
7041 | int f() { return 0; } | |
7042 | int g() noexcept { return 0; } | |
7043 | ||
7044 | static_assert(noexcept(f()) == false, ""); | |
7045 | static_assert(noexcept(g()) == true, ""); | |
7046 | ||
7047 | } | |
7048 | ||
7049 | namespace test_constexpr | |
7050 | { | |
7051 | ||
7052 | template < typename CharT > | |
7053 | unsigned long constexpr | |
7054 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7055 | { | |
7056 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7057 | } | |
7058 | ||
7059 | template < typename CharT > | |
7060 | unsigned long constexpr | |
7061 | strlen_c(const CharT *const s) noexcept | |
7062 | { | |
7063 | return strlen_c_r(s, 0UL); | |
7064 | } | |
7065 | ||
7066 | static_assert(strlen_c("") == 0UL, ""); | |
7067 | static_assert(strlen_c("1") == 1UL, ""); | |
7068 | static_assert(strlen_c("example") == 7UL, ""); | |
7069 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7070 | ||
7071 | } | |
7072 | ||
7073 | namespace test_rvalue_references | |
7074 | { | |
7075 | ||
7076 | template < int N > | |
7077 | struct answer | |
7078 | { | |
7079 | static constexpr int value = N; | |
7080 | }; | |
7081 | ||
7082 | answer<1> f(int&) { return answer<1>(); } | |
7083 | answer<2> f(const int&) { return answer<2>(); } | |
7084 | answer<3> f(int&&) { return answer<3>(); } | |
7085 | ||
7086 | void | |
7087 | test() | |
7088 | { | |
7089 | int i = 0; | |
7090 | const int c = 0; | |
7091 | static_assert(decltype(f(i))::value == 1, ""); | |
7092 | static_assert(decltype(f(c))::value == 2, ""); | |
7093 | static_assert(decltype(f(0))::value == 3, ""); | |
7094 | } | |
7095 | ||
7096 | } | |
7097 | ||
7098 | namespace test_uniform_initialization | |
7099 | { | |
7100 | ||
7101 | struct test | |
7102 | { | |
7103 | static const int zero {}; | |
7104 | static const int one {1}; | |
7105 | }; | |
7106 | ||
7107 | static_assert(test::zero == 0, ""); | |
7108 | static_assert(test::one == 1, ""); | |
7109 | ||
7110 | } | |
7111 | ||
7112 | namespace test_lambdas | |
7113 | { | |
7114 | ||
7115 | void | |
7116 | test1() | |
7117 | { | |
7118 | auto lambda1 = [](){}; | |
7119 | auto lambda2 = lambda1; | |
7120 | lambda1(); | |
7121 | lambda2(); | |
7122 | } | |
7123 | ||
7124 | int | |
7125 | test2() | |
7126 | { | |
7127 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7128 | auto b = []() -> int { return '0'; }(); | |
7129 | auto c = [=](){ return a + b; }(); | |
7130 | auto d = [&](){ return c; }(); | |
7131 | auto e = [a, &b](int x) mutable { | |
7132 | const auto identity = [](int y){ return y; }; | |
7133 | for (auto i = 0; i < a; ++i) | |
7134 | a += b--; | |
7135 | return x + identity(a + b); | |
7136 | }(0); | |
7137 | return a + b + c + d + e; | |
7138 | } | |
7139 | ||
7140 | int | |
7141 | test3() | |
7142 | { | |
7143 | const auto nullary = [](){ return 0; }; | |
7144 | const auto unary = [](int x){ return x; }; | |
7145 | using nullary_t = decltype(nullary); | |
7146 | using unary_t = decltype(unary); | |
7147 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7148 | const auto higher2nd = [unary](nullary_t f1){ | |
7149 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7150 | }; | |
7151 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7152 | } | |
7153 | ||
7154 | } | |
7155 | ||
7156 | namespace test_variadic_templates | |
7157 | { | |
7158 | ||
7159 | template <int...> | |
7160 | struct sum; | |
7161 | ||
7162 | template <int N0, int... N1toN> | |
7163 | struct sum<N0, N1toN...> | |
7164 | { | |
7165 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7166 | }; | |
7167 | ||
7168 | template <> | |
7169 | struct sum<> | |
7170 | { | |
7171 | static constexpr auto value = 0; | |
7172 | }; | |
7173 | ||
7174 | static_assert(sum<>::value == 0, ""); | |
7175 | static_assert(sum<1>::value == 1, ""); | |
7176 | static_assert(sum<23>::value == 23, ""); | |
7177 | static_assert(sum<1, 2>::value == 3, ""); | |
7178 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7179 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7180 | ||
7181 | } | |
7182 | ||
7183 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7184 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7185 | // because of this. | |
7186 | namespace test_template_alias_sfinae | |
7187 | { | |
7188 | ||
7189 | struct foo {}; | |
7190 | ||
7191 | template<typename T> | |
7192 | using member = typename T::member_type; | |
7193 | ||
7194 | template<typename T> | |
7195 | void func(...) {} | |
7196 | ||
7197 | template<typename T> | |
7198 | void func(member<T>*) {} | |
7199 | ||
7200 | void test(); | |
7201 | ||
7202 | void test() { func<foo>(0); } | |
7203 | ||
7204 | } | |
7205 | ||
7206 | } // namespace cxx11 | |
7207 | ||
7208 | #endif // __cplusplus >= 201103L | |
7209 | ||
7210 | ||
7211 | ||
7212 | _ACEOF | |
7213 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7214 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7215 | else | |
7216 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7217 | fi | |
7218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7219 | fi | |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7221 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7222 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7223 | ac_success=yes | |
7224 | fi | |
7225 | ||
7226 | if test x$ac_success = xno; then | |
7227 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7228 | switch="-std=gnu++${alternative}" | |
7229 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7231 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7232 | if eval \${$cachevar+:} false; then : | |
7233 | $as_echo_n "(cached) " >&6 | |
7234 | else | |
7235 | ac_save_CXX="$CXX" | |
7236 | CXX="$CXX $switch" | |
7237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7238 | /* end confdefs.h. */ | |
7239 | ||
7240 | ||
7241 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7242 | // Hopefully, this will speed up the test. | |
7243 | ||
7244 | #ifndef __cplusplus | |
7245 | ||
7246 | #error "This is not a C++ compiler" | |
7247 | ||
7248 | #elif __cplusplus < 201103L | |
7249 | ||
7250 | #error "This is not a C++11 compiler" | |
7251 | ||
7252 | #else | |
7253 | ||
7254 | namespace cxx11 | |
7255 | { | |
7256 | ||
7257 | namespace test_static_assert | |
7258 | { | |
7259 | ||
7260 | template <typename T> | |
7261 | struct check | |
7262 | { | |
7263 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7264 | }; | |
7265 | ||
7266 | } | |
7267 | ||
7268 | namespace test_final_override | |
7269 | { | |
7270 | ||
7271 | struct Base | |
7272 | { | |
7273 | virtual ~Base() {} | |
7274 | virtual void f() {} | |
7275 | }; | |
7276 | ||
7277 | struct Derived : public Base | |
7278 | { | |
7279 | virtual ~Derived() override {} | |
7280 | virtual void f() override {} | |
7281 | }; | |
7282 | ||
7283 | } | |
7284 | ||
7285 | namespace test_double_right_angle_brackets | |
7286 | { | |
7287 | ||
7288 | template < typename T > | |
7289 | struct check {}; | |
7290 | ||
7291 | typedef check<void> single_type; | |
7292 | typedef check<check<void>> double_type; | |
7293 | typedef check<check<check<void>>> triple_type; | |
7294 | typedef check<check<check<check<void>>>> quadruple_type; | |
7295 | ||
7296 | } | |
7297 | ||
7298 | namespace test_decltype | |
7299 | { | |
7300 | ||
7301 | int | |
7302 | f() | |
7303 | { | |
7304 | int a = 1; | |
7305 | decltype(a) b = 2; | |
7306 | return a + b; | |
7307 | } | |
7308 | ||
7309 | } | |
7310 | ||
7311 | namespace test_type_deduction | |
7312 | { | |
7313 | ||
7314 | template < typename T1, typename T2 > | |
7315 | struct is_same | |
7316 | { | |
7317 | static const bool value = false; | |
7318 | }; | |
7319 | ||
7320 | template < typename T > | |
7321 | struct is_same<T, T> | |
7322 | { | |
7323 | static const bool value = true; | |
7324 | }; | |
7325 | ||
7326 | template < typename T1, typename T2 > | |
7327 | auto | |
7328 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7329 | { | |
7330 | return a1 + a2; | |
7331 | } | |
7332 | ||
7333 | int | |
7334 | test(const int c, volatile int v) | |
7335 | { | |
7336 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7337 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7338 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7339 | auto ac = c; | |
7340 | auto av = v; | |
7341 | auto sumi = ac + av + 'x'; | |
7342 | auto sumf = ac + av + 1.0; | |
7343 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7344 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7345 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7346 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7347 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7348 | return (sumf > 0.0) ? sumi : add(c, v); | |
7349 | } | |
7350 | ||
7351 | } | |
7352 | ||
7353 | namespace test_noexcept | |
7354 | { | |
7355 | ||
7356 | int f() { return 0; } | |
7357 | int g() noexcept { return 0; } | |
7358 | ||
7359 | static_assert(noexcept(f()) == false, ""); | |
7360 | static_assert(noexcept(g()) == true, ""); | |
7361 | ||
7362 | } | |
7363 | ||
7364 | namespace test_constexpr | |
7365 | { | |
7366 | ||
7367 | template < typename CharT > | |
7368 | unsigned long constexpr | |
7369 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7370 | { | |
7371 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7372 | } | |
7373 | ||
7374 | template < typename CharT > | |
7375 | unsigned long constexpr | |
7376 | strlen_c(const CharT *const s) noexcept | |
7377 | { | |
7378 | return strlen_c_r(s, 0UL); | |
7379 | } | |
7380 | ||
7381 | static_assert(strlen_c("") == 0UL, ""); | |
7382 | static_assert(strlen_c("1") == 1UL, ""); | |
7383 | static_assert(strlen_c("example") == 7UL, ""); | |
7384 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7385 | ||
7386 | } | |
7387 | ||
7388 | namespace test_rvalue_references | |
7389 | { | |
7390 | ||
7391 | template < int N > | |
7392 | struct answer | |
7393 | { | |
7394 | static constexpr int value = N; | |
7395 | }; | |
7396 | ||
7397 | answer<1> f(int&) { return answer<1>(); } | |
7398 | answer<2> f(const int&) { return answer<2>(); } | |
7399 | answer<3> f(int&&) { return answer<3>(); } | |
7400 | ||
7401 | void | |
7402 | test() | |
7403 | { | |
7404 | int i = 0; | |
7405 | const int c = 0; | |
7406 | static_assert(decltype(f(i))::value == 1, ""); | |
7407 | static_assert(decltype(f(c))::value == 2, ""); | |
7408 | static_assert(decltype(f(0))::value == 3, ""); | |
7409 | } | |
7410 | ||
7411 | } | |
7412 | ||
7413 | namespace test_uniform_initialization | |
7414 | { | |
7415 | ||
7416 | struct test | |
7417 | { | |
7418 | static const int zero {}; | |
7419 | static const int one {1}; | |
7420 | }; | |
7421 | ||
7422 | static_assert(test::zero == 0, ""); | |
7423 | static_assert(test::one == 1, ""); | |
7424 | ||
7425 | } | |
7426 | ||
7427 | namespace test_lambdas | |
7428 | { | |
7429 | ||
7430 | void | |
7431 | test1() | |
7432 | { | |
7433 | auto lambda1 = [](){}; | |
7434 | auto lambda2 = lambda1; | |
7435 | lambda1(); | |
7436 | lambda2(); | |
7437 | } | |
7438 | ||
7439 | int | |
7440 | test2() | |
7441 | { | |
7442 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7443 | auto b = []() -> int { return '0'; }(); | |
7444 | auto c = [=](){ return a + b; }(); | |
7445 | auto d = [&](){ return c; }(); | |
7446 | auto e = [a, &b](int x) mutable { | |
7447 | const auto identity = [](int y){ return y; }; | |
7448 | for (auto i = 0; i < a; ++i) | |
7449 | a += b--; | |
7450 | return x + identity(a + b); | |
7451 | }(0); | |
7452 | return a + b + c + d + e; | |
7453 | } | |
7454 | ||
7455 | int | |
7456 | test3() | |
7457 | { | |
7458 | const auto nullary = [](){ return 0; }; | |
7459 | const auto unary = [](int x){ return x; }; | |
7460 | using nullary_t = decltype(nullary); | |
7461 | using unary_t = decltype(unary); | |
7462 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7463 | const auto higher2nd = [unary](nullary_t f1){ | |
7464 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7465 | }; | |
7466 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7467 | } | |
7468 | ||
7469 | } | |
7470 | ||
7471 | namespace test_variadic_templates | |
7472 | { | |
7473 | ||
7474 | template <int...> | |
7475 | struct sum; | |
7476 | ||
7477 | template <int N0, int... N1toN> | |
7478 | struct sum<N0, N1toN...> | |
7479 | { | |
7480 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7481 | }; | |
7482 | ||
7483 | template <> | |
7484 | struct sum<> | |
7485 | { | |
7486 | static constexpr auto value = 0; | |
7487 | }; | |
7488 | ||
7489 | static_assert(sum<>::value == 0, ""); | |
7490 | static_assert(sum<1>::value == 1, ""); | |
7491 | static_assert(sum<23>::value == 23, ""); | |
7492 | static_assert(sum<1, 2>::value == 3, ""); | |
7493 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7494 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7495 | ||
7496 | } | |
7497 | ||
7498 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7499 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7500 | // because of this. | |
7501 | namespace test_template_alias_sfinae | |
7502 | { | |
7503 | ||
7504 | struct foo {}; | |
7505 | ||
7506 | template<typename T> | |
7507 | using member = typename T::member_type; | |
7508 | ||
7509 | template<typename T> | |
7510 | void func(...) {} | |
7511 | ||
7512 | template<typename T> | |
7513 | void func(member<T>*) {} | |
7514 | ||
7515 | void test(); | |
7516 | ||
7517 | void test() { func<foo>(0); } | |
7518 | ||
7519 | } | |
7520 | ||
7521 | } // namespace cxx11 | |
7522 | ||
7523 | #endif // __cplusplus >= 201103L | |
7524 | ||
7525 | ||
7526 | ||
7527 | _ACEOF | |
7528 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7529 | eval $cachevar=yes | |
7530 | else | |
7531 | eval $cachevar=no | |
7532 | fi | |
7533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7534 | CXX="$ac_save_CXX" | |
7535 | fi | |
7536 | eval ac_res=\$$cachevar | |
7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7538 | $as_echo "$ac_res" >&6; } | |
7539 | if eval test x\$$cachevar = xyes; then | |
7540 | CXX="$CXX $switch" | |
7541 | if test -n "$CXXCPP" ; then | |
7542 | CXXCPP="$CXXCPP $switch" | |
7543 | fi | |
7544 | ac_success=yes | |
7545 | break | |
7546 | fi | |
7547 | done | |
7548 | fi | |
7549 | ||
7550 | if test x$ac_success = xno; then | |
7551 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7552 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7553 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7555 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7556 | if eval \${$cachevar+:} false; then : | |
7557 | $as_echo_n "(cached) " >&6 | |
7558 | else | |
7559 | ac_save_CXX="$CXX" | |
7560 | CXX="$CXX $switch" | |
7561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7562 | /* end confdefs.h. */ | |
7563 | ||
7564 | ||
7565 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7566 | // Hopefully, this will speed up the test. | |
7567 | ||
7568 | #ifndef __cplusplus | |
7569 | ||
7570 | #error "This is not a C++ compiler" | |
7571 | ||
7572 | #elif __cplusplus < 201103L | |
7573 | ||
7574 | #error "This is not a C++11 compiler" | |
7575 | ||
7576 | #else | |
7577 | ||
7578 | namespace cxx11 | |
7579 | { | |
7580 | ||
7581 | namespace test_static_assert | |
7582 | { | |
7583 | ||
7584 | template <typename T> | |
7585 | struct check | |
7586 | { | |
7587 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7588 | }; | |
7589 | ||
7590 | } | |
7591 | ||
7592 | namespace test_final_override | |
7593 | { | |
7594 | ||
7595 | struct Base | |
7596 | { | |
7597 | virtual ~Base() {} | |
7598 | virtual void f() {} | |
7599 | }; | |
7600 | ||
7601 | struct Derived : public Base | |
7602 | { | |
7603 | virtual ~Derived() override {} | |
7604 | virtual void f() override {} | |
7605 | }; | |
7606 | ||
7607 | } | |
7608 | ||
7609 | namespace test_double_right_angle_brackets | |
7610 | { | |
7611 | ||
7612 | template < typename T > | |
7613 | struct check {}; | |
7614 | ||
7615 | typedef check<void> single_type; | |
7616 | typedef check<check<void>> double_type; | |
7617 | typedef check<check<check<void>>> triple_type; | |
7618 | typedef check<check<check<check<void>>>> quadruple_type; | |
7619 | ||
7620 | } | |
7621 | ||
7622 | namespace test_decltype | |
7623 | { | |
7624 | ||
7625 | int | |
7626 | f() | |
7627 | { | |
7628 | int a = 1; | |
7629 | decltype(a) b = 2; | |
7630 | return a + b; | |
7631 | } | |
7632 | ||
7633 | } | |
7634 | ||
7635 | namespace test_type_deduction | |
7636 | { | |
7637 | ||
7638 | template < typename T1, typename T2 > | |
7639 | struct is_same | |
7640 | { | |
7641 | static const bool value = false; | |
7642 | }; | |
7643 | ||
7644 | template < typename T > | |
7645 | struct is_same<T, T> | |
7646 | { | |
7647 | static const bool value = true; | |
7648 | }; | |
7649 | ||
7650 | template < typename T1, typename T2 > | |
7651 | auto | |
7652 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7653 | { | |
7654 | return a1 + a2; | |
7655 | } | |
7656 | ||
7657 | int | |
7658 | test(const int c, volatile int v) | |
7659 | { | |
7660 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7661 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7662 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7663 | auto ac = c; | |
7664 | auto av = v; | |
7665 | auto sumi = ac + av + 'x'; | |
7666 | auto sumf = ac + av + 1.0; | |
7667 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7668 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7669 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7670 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7671 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7672 | return (sumf > 0.0) ? sumi : add(c, v); | |
7673 | } | |
7674 | ||
7675 | } | |
7676 | ||
7677 | namespace test_noexcept | |
7678 | { | |
7679 | ||
7680 | int f() { return 0; } | |
7681 | int g() noexcept { return 0; } | |
7682 | ||
7683 | static_assert(noexcept(f()) == false, ""); | |
7684 | static_assert(noexcept(g()) == true, ""); | |
7685 | ||
7686 | } | |
7687 | ||
7688 | namespace test_constexpr | |
7689 | { | |
7690 | ||
7691 | template < typename CharT > | |
7692 | unsigned long constexpr | |
7693 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7694 | { | |
7695 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7696 | } | |
7697 | ||
7698 | template < typename CharT > | |
7699 | unsigned long constexpr | |
7700 | strlen_c(const CharT *const s) noexcept | |
7701 | { | |
7702 | return strlen_c_r(s, 0UL); | |
7703 | } | |
7704 | ||
7705 | static_assert(strlen_c("") == 0UL, ""); | |
7706 | static_assert(strlen_c("1") == 1UL, ""); | |
7707 | static_assert(strlen_c("example") == 7UL, ""); | |
7708 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7709 | ||
7710 | } | |
7711 | ||
7712 | namespace test_rvalue_references | |
7713 | { | |
7714 | ||
7715 | template < int N > | |
7716 | struct answer | |
7717 | { | |
7718 | static constexpr int value = N; | |
7719 | }; | |
7720 | ||
7721 | answer<1> f(int&) { return answer<1>(); } | |
7722 | answer<2> f(const int&) { return answer<2>(); } | |
7723 | answer<3> f(int&&) { return answer<3>(); } | |
7724 | ||
7725 | void | |
7726 | test() | |
7727 | { | |
7728 | int i = 0; | |
7729 | const int c = 0; | |
7730 | static_assert(decltype(f(i))::value == 1, ""); | |
7731 | static_assert(decltype(f(c))::value == 2, ""); | |
7732 | static_assert(decltype(f(0))::value == 3, ""); | |
7733 | } | |
7734 | ||
7735 | } | |
7736 | ||
7737 | namespace test_uniform_initialization | |
7738 | { | |
7739 | ||
7740 | struct test | |
7741 | { | |
7742 | static const int zero {}; | |
7743 | static const int one {1}; | |
7744 | }; | |
7745 | ||
7746 | static_assert(test::zero == 0, ""); | |
7747 | static_assert(test::one == 1, ""); | |
7748 | ||
7749 | } | |
7750 | ||
7751 | namespace test_lambdas | |
7752 | { | |
7753 | ||
7754 | void | |
7755 | test1() | |
7756 | { | |
7757 | auto lambda1 = [](){}; | |
7758 | auto lambda2 = lambda1; | |
7759 | lambda1(); | |
7760 | lambda2(); | |
7761 | } | |
7762 | ||
7763 | int | |
7764 | test2() | |
7765 | { | |
7766 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7767 | auto b = []() -> int { return '0'; }(); | |
7768 | auto c = [=](){ return a + b; }(); | |
7769 | auto d = [&](){ return c; }(); | |
7770 | auto e = [a, &b](int x) mutable { | |
7771 | const auto identity = [](int y){ return y; }; | |
7772 | for (auto i = 0; i < a; ++i) | |
7773 | a += b--; | |
7774 | return x + identity(a + b); | |
7775 | }(0); | |
7776 | return a + b + c + d + e; | |
7777 | } | |
7778 | ||
7779 | int | |
7780 | test3() | |
7781 | { | |
7782 | const auto nullary = [](){ return 0; }; | |
7783 | const auto unary = [](int x){ return x; }; | |
7784 | using nullary_t = decltype(nullary); | |
7785 | using unary_t = decltype(unary); | |
7786 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7787 | const auto higher2nd = [unary](nullary_t f1){ | |
7788 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7789 | }; | |
7790 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7791 | } | |
7792 | ||
7793 | } | |
7794 | ||
7795 | namespace test_variadic_templates | |
7796 | { | |
7797 | ||
7798 | template <int...> | |
7799 | struct sum; | |
7800 | ||
7801 | template <int N0, int... N1toN> | |
7802 | struct sum<N0, N1toN...> | |
7803 | { | |
7804 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7805 | }; | |
7806 | ||
7807 | template <> | |
7808 | struct sum<> | |
7809 | { | |
7810 | static constexpr auto value = 0; | |
7811 | }; | |
7812 | ||
7813 | static_assert(sum<>::value == 0, ""); | |
7814 | static_assert(sum<1>::value == 1, ""); | |
7815 | static_assert(sum<23>::value == 23, ""); | |
7816 | static_assert(sum<1, 2>::value == 3, ""); | |
7817 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7818 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7819 | ||
7820 | } | |
7821 | ||
7822 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7823 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7824 | // because of this. | |
7825 | namespace test_template_alias_sfinae | |
7826 | { | |
7827 | ||
7828 | struct foo {}; | |
7829 | ||
7830 | template<typename T> | |
7831 | using member = typename T::member_type; | |
7832 | ||
7833 | template<typename T> | |
7834 | void func(...) {} | |
7835 | ||
7836 | template<typename T> | |
7837 | void func(member<T>*) {} | |
7838 | ||
7839 | void test(); | |
7840 | ||
7841 | void test() { func<foo>(0); } | |
7842 | ||
7843 | } | |
7844 | ||
7845 | } // namespace cxx11 | |
7846 | ||
7847 | #endif // __cplusplus >= 201103L | |
7848 | ||
7849 | ||
7850 | ||
7851 | _ACEOF | |
7852 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7853 | eval $cachevar=yes | |
7854 | else | |
7855 | eval $cachevar=no | |
7856 | fi | |
7857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7858 | CXX="$ac_save_CXX" | |
7859 | fi | |
7860 | eval ac_res=\$$cachevar | |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7862 | $as_echo "$ac_res" >&6; } | |
7863 | if eval test x\$$cachevar = xyes; then | |
7864 | CXX="$CXX $switch" | |
7865 | if test -n "$CXXCPP" ; then | |
7866 | CXXCPP="$CXXCPP $switch" | |
7867 | fi | |
7868 | ac_success=yes | |
7869 | break | |
7870 | fi | |
7871 | done | |
7872 | if test x$ac_success = xyes; then | |
7873 | break | |
7874 | fi | |
7875 | done | |
7876 | fi | |
7877 | CXX_FOR_BUILD="$CXX" | |
7878 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7879 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7880 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7881 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7882 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7883 | ac_ext=c | |
7884 | ac_cpp='$CPP $CPPFLAGS' | |
7885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7888 | ||
7889 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7890 | if test x$ac_success = xno; then | |
7891 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7892 | fi | |
7893 | fi | |
7894 | if test x$ac_success = xno; then | |
7895 | HAVE_CXX11_FOR_BUILD=0 | |
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7897 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7898 | else | |
7899 | HAVE_CXX11_FOR_BUILD=1 | |
7900 | ||
7901 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7902 | ||
7903 | fi | |
7904 | ||
7905 | ||
7906 | fi | |
7907 | fi | |
7908 | ||
7909 | # Check whether --enable-pgo-build was given. | |
7910 | if test "${enable_pgo_build+set}" = set; then : | |
7911 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7912 | else | |
7913 | enable_pgo_build=no | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7918 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7919 | *:*:*:no) ;; | |
7920 | ||
7921 | # Allow the PGO build only if we aren't building a compiler and | |
7922 | # we are in a native configuration. | |
7923 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7924 | ||
7925 | # Disallow the PGO bootstrap if we are building a compiler. | |
7926 | yes:*:*:yes | yes:*:*:lto) | |
7927 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7928 | ||
7929 | *) | |
7930 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7931 | ;; | |
7932 | esac | |
7933 | ||
7934 | if test "$enable_pgo_build" != "no"; then | |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7936 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7937 | old_CFLAGS="$CFLAGS" | |
7938 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7939 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7940 | ||
7941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7942 | /* end confdefs.h. */ | |
7943 | int foo; | |
7944 | _ACEOF | |
7945 | if ac_fn_c_try_compile "$LINENO"; then : | |
7946 | ||
7947 | else | |
7948 | PGO_BUILD_GEN_CFLAGS= | |
7949 | fi | |
7950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7951 | CFLAGS="$old_CFLAGS" | |
7952 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7954 | $as_echo "yes" >&6; } | |
7955 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7956 | else | |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7958 | $as_echo "no" >&6; } | |
7959 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7960 | fi | |
7961 | ||
7962 | if test "$enable_pgo_build" = "lto"; then | |
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7964 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7965 | old_CFLAGS="$CFLAGS" | |
7966 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7967 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7969 | /* end confdefs.h. */ | |
7970 | int foo; | |
7971 | _ACEOF | |
7972 | if ac_fn_c_try_compile "$LINENO"; then : | |
7973 | ||
7974 | else | |
7975 | PGO_BUILD_LTO_CFLAGS= | |
7976 | fi | |
7977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7978 | CFLAGS="$old_CFLAGS" | |
7979 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7981 | $as_echo "yes" >&6; } | |
7982 | else | |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7984 | $as_echo "no" >&6; } | |
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7986 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7987 | fi | |
7988 | fi | |
7989 | fi | |
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | # Used for setting $lt_cv_objdir | |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7996 | $as_echo_n "checking for objdir... " >&6; } | |
7997 | if ${lt_cv_objdir+:} false; then : | |
7998 | $as_echo_n "(cached) " >&6 | |
7999 | else | |
8000 | rm -f .libs 2>/dev/null | |
8001 | mkdir .libs 2>/dev/null | |
8002 | if test -d .libs; then | |
8003 | lt_cv_objdir=.libs | |
8004 | else | |
8005 | # MS-DOS does not allow filenames that begin with a dot. | |
8006 | lt_cv_objdir=_libs | |
8007 | fi | |
8008 | rmdir .libs 2>/dev/null | |
8009 | fi | |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8011 | $as_echo "$lt_cv_objdir" >&6; } | |
8012 | objdir=$lt_cv_objdir | |
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | ||
8018 | cat >>confdefs.h <<_ACEOF | |
8019 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8020 | _ACEOF | |
8021 | ||
8022 | ||
8023 | ||
8024 | # Check for GMP, MPFR and MPC | |
99118062 AP |
8025 | require_gmp=no |
8026 | require_mpc=no | |
8027 | if test -d ${srcdir}/gcc ; then | |
8028 | require_gmp=yes | |
8029 | require_mpc=yes | |
8030 | fi | |
8031 | if test -d ${srcdir}/gdb ; then | |
5fb0e308 CC |
8032 | if test "x$enable_gdb" != xno; then |
8033 | require_gmp=yes | |
8034 | fi | |
99118062 AP |
8035 | fi |
8036 | ||
8037 | gmplibs="-lmpfr -lgmp" | |
8038 | if test x"$require_mpc" = "xyes" ; then | |
8039 | gmplibs="-lmpc $gmplibs" | |
8040 | fi | |
228cf97d AM |
8041 | gmpinc= |
8042 | have_gmp=no | |
8043 | ||
8044 | # Specify a location for mpc | |
8045 | # check for this first so it ends up on the link line before mpfr. | |
8046 | ||
8047 | # Check whether --with-mpc was given. | |
8048 | if test "${with_mpc+set}" = set; then : | |
8049 | withval=$with_mpc; | |
8050 | fi | |
8051 | ||
8052 | ||
8053 | # Check whether --with-mpc-include was given. | |
8054 | if test "${with_mpc_include+set}" = set; then : | |
8055 | withval=$with_mpc_include; | |
8056 | fi | |
8057 | ||
8058 | ||
8059 | # Check whether --with-mpc-lib was given. | |
8060 | if test "${with_mpc_lib+set}" = set; then : | |
8061 | withval=$with_mpc_lib; | |
8062 | fi | |
8063 | ||
8064 | ||
8065 | if test "x$with_mpc" != x; then | |
8066 | gmplibs="-L$with_mpc/lib $gmplibs" | |
8067 | gmpinc="-I$with_mpc/include $gmpinc" | |
8068 | fi | |
8069 | if test "x$with_mpc_include" != x; then | |
8070 | gmpinc="-I$with_mpc_include $gmpinc" | |
8071 | fi | |
8072 | if test "x$with_mpc_lib" != x; then | |
8073 | gmplibs="-L$with_mpc_lib $gmplibs" | |
8074 | fi | |
8075 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
8076 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" | |
8077 | gmpinc='-I$$s/mpc/src '"$gmpinc" | |
8078 | # Do not test the mpc version. Assume that it is sufficient, since | |
8079 | # it is in the source tree, and the library has not been built yet | |
8080 | # but it would be included on the link line in the version check below | |
8081 | # hence making the test fail. | |
8082 | have_gmp=yes | |
8083 | fi | |
8084 | ||
8085 | # Specify a location for mpfr | |
8086 | # check for this first so it ends up on the link line before gmp. | |
8087 | ||
8088 | # Check whether --with-mpfr was given. | |
8089 | if test "${with_mpfr+set}" = set; then : | |
8090 | withval=$with_mpfr; | |
8091 | fi | |
c6b750e1 | 8092 | |
11b04d1f | 8093 | |
e552509b | 8094 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
8095 | if test "${with_mpfr_include+set}" = set; then : |
8096 | withval=$with_mpfr_include; | |
8097 | fi | |
c6b750e1 | 8098 | |
8a0d8a5c | 8099 | |
e552509b | 8100 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
8101 | if test "${with_mpfr_lib+set}" = set; then : |
8102 | withval=$with_mpfr_lib; | |
8103 | fi | |
8a0d8a5c | 8104 | |
11b04d1f DD |
8105 | |
8106 | if test "x$with_mpfr" != x; then | |
8107 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 8108 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 8109 | fi |
8a0d8a5c | 8110 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 8111 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
8112 | fi |
8113 | if test "x$with_mpfr_lib" != x; then | |
8114 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8115 | fi | |
4b900473 | 8116 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 8117 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 8118 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 8119 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 8120 | fi |
05a13254 NC |
8121 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8122 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8123 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
8124 | # Do not test the mpfr version. Assume that it is sufficient, since |
8125 | # it is in the source tree, and the library has not been built yet | |
8126 | # but it would be included on the link line in the version check below | |
8127 | # hence making the test fail. | |
8128 | have_gmp=yes | |
8129 | fi | |
11b04d1f | 8130 | |
4b1cb4fe | 8131 | # Specify a location for gmp |
c6b750e1 | 8132 | |
81ecdfbb RW |
8133 | # Check whether --with-gmp was given. |
8134 | if test "${with_gmp+set}" = set; then : | |
8135 | withval=$with_gmp; | |
8136 | fi | |
c6b750e1 | 8137 | |
4b1cb4fe | 8138 | |
e552509b | 8139 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
8140 | if test "${with_gmp_include+set}" = set; then : |
8141 | withval=$with_gmp_include; | |
8142 | fi | |
c6b750e1 | 8143 | |
8a0d8a5c | 8144 | |
e552509b | 8145 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
8146 | if test "${with_gmp_lib+set}" = set; then : |
8147 | withval=$with_gmp_lib; | |
8148 | fi | |
8a0d8a5c PB |
8149 | |
8150 | ||
4b1cb4fe | 8151 | |
11b04d1f DD |
8152 | if test "x$with_gmp" != x; then |
8153 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8154 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 8155 | fi |
8a0d8a5c PB |
8156 | if test "x$with_gmp_include" != x; then |
8157 | gmpinc="-I$with_gmp_include $gmpinc" | |
8158 | fi | |
8159 | if test "x$with_gmp_lib" != x; then | |
8160 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8161 | fi | |
4b900473 | 8162 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 8163 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 8164 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 8165 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 8166 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 8167 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
8168 | # Do not test the gmp version. Assume that it is sufficient, since |
8169 | # it is in the source tree, and the library has not been built yet | |
8170 | # but it would be included on the link line in the version check below | |
8171 | # hence making the test fail. | |
8172 | have_gmp=yes | |
8173 | fi | |
4b1cb4fe | 8174 | |
99118062 | 8175 | if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then |
4b900473 PB |
8176 | have_gmp=yes |
8177 | saved_CFLAGS="$CFLAGS" | |
8178 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
8179 | # Check for the recommended and required versions of GMP. |
8180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8181 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
af019bfd | 8182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a6b5846e KG |
8183 | /* end confdefs.h. */ |
8184 | #include "gmp.h" | |
8185 | int | |
8186 | main () | |
8187 | { | |
8188 | ||
8189 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8190 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 8191 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
8192 | choke me |
8193 | #endif | |
8194 | ||
8195 | ; | |
8196 | return 0; | |
8197 | } | |
8198 | _ACEOF | |
8199 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 8200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8201 | /* end confdefs.h. */ |
a6b5846e | 8202 | #include <gmp.h> |
c6b750e1 DJ |
8203 | int |
8204 | main () | |
8205 | { | |
4b1cb4fe | 8206 | |
a6b5846e KG |
8207 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8208 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8209 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
8210 | choke me |
8211 | #endif | |
c6b750e1 DJ |
8212 | |
8213 | ; | |
8214 | return 0; | |
8215 | } | |
8216 | _ACEOF | |
81ecdfbb RW |
8217 | if ac_fn_c_try_compile "$LINENO"; then : |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8219 | $as_echo "yes" >&6; } | |
a6b5846e KG |
8220 | else |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8222 | $as_echo "buggy but acceptable" >&6; } | |
8223 | fi | |
8224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 8225 | else |
81ecdfbb RW |
8226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8227 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8228 | fi |
81ecdfbb | 8229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 8230 | |
e8a5fa9c | 8231 | # If we have GMP, check the MPFR version. |
4b900473 | 8232 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
8233 | # Check for the recommended and required versions of MPFR. |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8235 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 8236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8237 | /* end confdefs.h. */ |
9b134994 | 8238 | #include <gmp.h> |
4b900473 | 8239 | #include <mpfr.h> |
c6b750e1 DJ |
8240 | int |
8241 | main () | |
8242 | { | |
9b134994 | 8243 | |
228cf97d | 8244 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
4b900473 PB |
8245 | choke me |
8246 | #endif | |
c6b750e1 DJ |
8247 | |
8248 | ; | |
8249 | return 0; | |
8250 | } | |
8251 | _ACEOF | |
81ecdfbb RW |
8252 | if ac_fn_c_try_compile "$LINENO"; then : |
8253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 8254 | /* end confdefs.h. */ |
4b1cb4fe | 8255 | #include <gmp.h> |
4b900473 | 8256 | #include <mpfr.h> |
c6b750e1 DJ |
8257 | int |
8258 | main () | |
8259 | { | |
9dbaa842 | 8260 | |
228cf97d | 8261 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
4b900473 PB |
8262 | choke me |
8263 | #endif | |
e8a5fa9c RW |
8264 | |
8265 | ; | |
8266 | return 0; | |
8267 | } | |
8268 | _ACEOF | |
81ecdfbb RW |
8269 | if ac_fn_c_try_compile "$LINENO"; then : |
8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8271 | $as_echo "yes" >&6; } | |
e8a5fa9c | 8272 | else |
81ecdfbb RW |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8274 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 8275 | fi |
81ecdfbb | 8276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 8277 | else |
81ecdfbb RW |
8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8279 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 8280 | fi |
81ecdfbb | 8281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8282 | fi |
8283 | ||
8284 | # Check for the MPC header version. | |
99118062 | 8285 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then |
a6b5846e | 8286 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8288 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
8290 | /* end confdefs.h. */ |
8291 | #include <mpc.h> | |
8292 | int | |
8293 | main () | |
8294 | { | |
8295 | ||
a6b5846e KG |
8296 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8297 | choke me | |
8298 | #endif | |
8299 | ||
8300 | ; | |
8301 | return 0; | |
8302 | } | |
8303 | _ACEOF | |
8304 | if ac_fn_c_try_compile "$LINENO"; then : | |
8305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8306 | /* end confdefs.h. */ | |
8307 | #include <mpc.h> | |
8308 | int | |
8309 | main () | |
8310 | { | |
8311 | ||
8312 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
8313 | choke me |
8314 | #endif | |
8315 | ||
8316 | ; | |
8317 | return 0; | |
8318 | } | |
8319 | _ACEOF | |
81ecdfbb RW |
8320 | if ac_fn_c_try_compile "$LINENO"; then : |
8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 8322 | $as_echo "yes" >&6; } |
a6b5846e KG |
8323 | else |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8325 | $as_echo "buggy but acceptable" >&6; } | |
8326 | fi | |
8327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 8328 | else |
81ecdfbb | 8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 8330 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 8331 | fi |
81ecdfbb | 8332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8333 | fi |
8334 | ||
8335 | # Now check the MPFR library. | |
8336 | if test x"$have_gmp" = xyes; then | |
8337 | saved_LIBS="$LIBS" | |
8338 | LIBS="$LIBS $gmplibs" | |
99118062 AP |
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5 |
8340 | $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; } | |
81ecdfbb | 8341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 8342 | /* end confdefs.h. */ |
99118062 | 8343 | #include <mpfr.h> |
e8a5fa9c RW |
8344 | int |
8345 | main () | |
8346 | { | |
8347 | ||
8348 | mpfr_t n; | |
8349 | mpfr_t x; | |
8350 | int t; | |
8351 | mpfr_init (n); | |
8352 | mpfr_init (x); | |
228cf97d AM |
8353 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8354 | mpfr_erfc (n, x, MPFR_RNDN); | |
8355 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
d9b76ff9 KG |
8356 | mpfr_clear(n); |
8357 | mpfr_clear(x); | |
99118062 AP |
8358 | |
8359 | ; | |
8360 | return 0; | |
8361 | } | |
8362 | _ACEOF | |
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; } | |
8366 | else | |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8368 | $as_echo "no" >&6; }; have_gmp=no | |
8369 | fi | |
8370 | rm -f core conftest.err conftest.$ac_objext \ | |
8371 | conftest$ac_exeext conftest.$ac_ext | |
8372 | LIBS="$saved_LIBS" | |
8373 | fi | |
8374 | ||
8375 | # Now check the MPC library | |
8376 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then | |
8377 | saved_LIBS="$LIBS" | |
8378 | LIBS="$LIBS $gmplibs" | |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5 | |
8380 | $as_echo_n "checking for the correct version of the mpc libraries... " >&6; } | |
8381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8382 | /* end confdefs.h. */ | |
8383 | #include <mpc.h> | |
8384 | int | |
8385 | main () | |
8386 | { | |
8387 | ||
8388 | mpc_t c; | |
d9b76ff9 KG |
8389 | mpc_init2 (c, 53); |
8390 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8391 | mpc_cosh (c, c, MPC_RNDNN); | |
8392 | mpc_pow (c, c, c, MPC_RNDNN); | |
8393 | mpc_acosh (c, c, MPC_RNDNN); | |
8394 | mpc_clear (c); | |
c6b750e1 DJ |
8395 | |
8396 | ; | |
8397 | return 0; | |
8398 | } | |
8399 | _ACEOF | |
81ecdfbb RW |
8400 | if ac_fn_c_try_link "$LINENO"; then : |
8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8402 | $as_echo "yes" >&6; } | |
c6b750e1 | 8403 | else |
81ecdfbb RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8405 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8406 | fi |
81ecdfbb RW |
8407 | rm -f core conftest.err conftest.$ac_objext \ |
8408 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
8409 | LIBS="$saved_LIBS" |
8410 | fi | |
8411 | ||
4b900473 | 8412 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 8413 | |
a6b5846e KG |
8414 | # The library versions listed in the error message below should match |
8415 | # the HARD-minimums enforced above. | |
4b900473 | 8416 | if test x$have_gmp != xyes; then |
99118062 AP |
8417 | if test -d ${srcdir}/gcc ; then |
8418 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. | |
d9b76ff9 KG |
8419 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8420 | their locations. Source code for these libraries can be found at | |
8421 | their respective hosting sites as well as at | |
228cf97d | 8422 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
d9b76ff9 KG |
8423 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8424 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8425 | make sure that you have installed both the libraries and the header | |
8426 | files. They may be located in separate packages." "$LINENO" 5 | |
99118062 AP |
8427 | else |
8428 | as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. | |
8429 | Try the --with-gmp and/or --with-mpfr options to specify | |
8430 | their locations. If you obtained GMP and/or MPFR from a vendor | |
8431 | distribution package, make sure that you have installed both the libraries | |
8432 | and the header files. They may be located in separate packages." "$LINENO" 5 | |
8433 | fi | |
4b900473 | 8434 | fi |
9dbaa842 DD |
8435 | fi |
8436 | ||
e8a5fa9c RW |
8437 | # Flags needed for both GMP, MPFR and/or MPC. |
8438 | ||
8439 | ||
8440 | ||
4b1cb4fe DD |
8441 | |
8442 | ||
8443 | ||
7ec59b9e | 8444 | |
b3676d82 | 8445 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8446 | |
b3676d82 EB |
8447 | # Check whether --with-stage1-libs was given. |
8448 | if test "${with_stage1_libs+set}" = set; then : | |
8449 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8450 | stage1_libs= | |
e8a5fa9c | 8451 | else |
b3676d82 | 8452 | stage1_libs=$withval |
e8a5fa9c RW |
8453 | fi |
8454 | else | |
68996839 | 8455 | stage1_libs= |
81ecdfbb RW |
8456 | fi |
8457 | ||
e8a5fa9c RW |
8458 | |
8459 | ||
c1a5d03a TT |
8460 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8461 | # default is yes if gcc is being built; no otherwise. The reason for | |
8462 | # this default is that gdb is sometimes linked against GNU Source | |
8463 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8464 | # this case, -static-libstdc++ will cause crashes. | |
8465 | ||
8466 | # Check whether --with-static-standard-libraries was given. | |
8467 | if test "${with_static_standard_libraries+set}" = set; then : | |
8468 | withval=$with_static_standard_libraries; | |
8469 | else | |
8470 | with_static_standard_libraries=auto | |
8471 | fi | |
8472 | ||
8473 | if test "$with_static_standard_libraries" = auto; then | |
8474 | with_static_standard_libraries=$have_compiler | |
8475 | fi | |
8476 | ||
b3676d82 | 8477 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8478 | |
b3676d82 EB |
8479 | # Check whether --with-stage1-ldflags was given. |
8480 | if test "${with_stage1_ldflags+set}" = set; then : | |
8481 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8482 | stage1_ldflags= | |
e8a5fa9c | 8483 | else |
b3676d82 | 8484 | stage1_ldflags=$withval |
e8a5fa9c RW |
8485 | fi |
8486 | else | |
b3676d82 EB |
8487 | stage1_ldflags= |
8488 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8489 | # if supported. But if the user explicitly specified the libraries to use, | |
8490 | # trust that they are doing what they want. | |
c1a5d03a TT |
8491 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8492 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
8493 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8494 | fi | |
81ecdfbb RW |
8495 | fi |
8496 | ||
e8a5fa9c RW |
8497 | |
8498 | ||
68996839 | 8499 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 8500 | |
81ecdfbb RW |
8501 | # Check whether --with-boot-libs was given. |
8502 | if test "${with_boot_libs+set}" = set; then : | |
8503 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
8504 | poststage1_libs= |
8505 | else | |
8506 | poststage1_libs=$withval | |
8507 | fi | |
8508 | else | |
68996839 | 8509 | poststage1_libs= |
81ecdfbb RW |
8510 | fi |
8511 | ||
e8a5fa9c RW |
8512 | |
8513 | ||
143754cd NC |
8514 | # Linker flags to use for stage2 and later builds. |
8515 | ||
8516 | # Check whether --with-boot-ldflags was given. | |
8517 | if test "${with_boot_ldflags+set}" = set; then : | |
8518 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8519 | poststage1_ldflags= | |
8520 | else | |
8521 | poststage1_ldflags=$withval | |
8522 | fi | |
8523 | else | |
8524 | poststage1_ldflags= | |
4f11b223 ILT |
8525 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8526 | # statically. But if the user explicitly specified the libraries to | |
8527 | # use, trust that they are doing what they want. | |
8528 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
8529 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8530 | fi | |
8531 | fi | |
8532 | ||
8533 | ||
8534 | ||
4849dfd8 | 8535 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 8536 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
8537 | |
8538 | ||
7ec59b9e L |
8539 | # Check whether --with-isl was given. |
8540 | if test "${with_isl+set}" = set; then : | |
8541 | withval=$with_isl; | |
81ecdfbb | 8542 | fi |
e28c595f | 8543 | |
e28c595f | 8544 | |
1b6c0831 | 8545 | # Treat --without-isl as a request to disable |
8e71395b | 8546 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 8547 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 8548 | # Check for isl |
8e71395b L |
8549 | |
8550 | ||
7ec59b9e L |
8551 | # Check whether --with-isl-include was given. |
8552 | if test "${with_isl_include+set}" = set; then : | |
8553 | withval=$with_isl_include; | |
81ecdfbb RW |
8554 | fi |
8555 | ||
e28c595f | 8556 | |
7ec59b9e L |
8557 | # Check whether --with-isl-lib was given. |
8558 | if test "${with_isl_lib+set}" = set; then : | |
8559 | withval=$with_isl_lib; | |
81ecdfbb | 8560 | fi |
e28c595f | 8561 | |
e28c595f | 8562 | |
7ec59b9e L |
8563 | # Check whether --enable-isl-version-check was given. |
8564 | if test "${enable_isl_version_check+set}" = set; then : | |
8565 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8566 | else | |
8567 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
8568 | fi |
8569 | ||
8570 | ||
7ec59b9e L |
8571 | # Initialize isllibs and islinc. |
8572 | case $with_isl in | |
8573 | no) | |
8574 | isllibs= | |
8575 | islinc= | |
8576 | ;; | |
8577 | "" | yes) | |
8578 | ;; | |
8579 | *) | |
8580 | isllibs="-L$with_isl/lib" | |
8581 | islinc="-I$with_isl/include" | |
8582 | ;; | |
8583 | esac | |
8584 | if test "x${with_isl_include}" != x ; then | |
8585 | islinc="-I$with_isl_include" | |
8586 | fi | |
8587 | if test "x${with_isl_lib}" != x; then | |
8588 | isllibs="-L$with_isl_lib" | |
8589 | fi | |
8590 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8591 | && test -d ${srcdir}/isl; then | |
8592 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8593 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8594 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8596 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 8597 | fi |
b123da99 | 8598 | |
1b6c0831 | 8599 | isllibs="${isllibs} -lisl" |
b123da99 | 8600 | |
e28c595f | 8601 | |
b3fc79f8 JBG |
8602 | |
8603 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
8604 | _isl_saved_CFLAGS=$CFLAGS | |
8605 | _isl_saved_LDFLAGS=$LDFLAGS | |
8606 | _isl_saved_LIBS=$LIBS | |
8607 | ||
8608 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
8609 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8610 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 8611 | |
bf41f30d NC |
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8613 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 8614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 8615 | /* end confdefs.h. */ |
bf41f30d | 8616 | #include <isl/schedule.h> |
b3fc79f8 JBG |
8617 | int |
8618 | main () | |
8619 | { | |
bf41f30d | 8620 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
8621 | ; |
8622 | return 0; | |
8623 | } | |
8624 | _ACEOF | |
1b6c0831 | 8625 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
8626 | gcc_cv_isl=yes |
8627 | else | |
8628 | gcc_cv_isl=no | |
8629 | fi | |
1b6c0831 L |
8630 | rm -f core conftest.err conftest.$ac_objext \ |
8631 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8633 | $as_echo "$gcc_cv_isl" >&6; } | |
8634 | ||
4849dfd8 | 8635 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8637 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
8638 | fi |
8639 | ||
b3fc79f8 JBG |
8640 | CFLAGS=$_isl_saved_CFLAGS |
8641 | LDFLAGS=$_isl_saved_LDFLAGS | |
8642 | LIBS=$_isl_saved_LIBS | |
8643 | fi | |
8644 | ||
8645 | ||
e28c595f | 8646 | |
e28c595f | 8647 | |
7ec59b9e L |
8648 | |
8649 | ||
7ec59b9e L |
8650 | if test "x${with_isl}" = xno; then |
8651 | graphite_requested=no | |
8652 | elif test "x${with_isl}" != x \ | |
8653 | || test "x${with_isl_include}" != x \ | |
8654 | || test "x${with_isl_lib}" != x ; then | |
8655 | graphite_requested=yes | |
8656 | else | |
8657 | graphite_requested=no | |
b123da99 | 8658 | fi |
e28c595f | 8659 | |
e28c595f JM |
8660 | |
8661 | ||
7ec59b9e L |
8662 | if test "${gcc_cv_isl}" = no ; then |
8663 | isllibs= | |
8664 | islinc= | |
8665 | fi | |
e28c595f | 8666 | |
7ec59b9e L |
8667 | if test "${graphite_requested}" = yes \ |
8668 | && test "x${isllibs}" = x \ | |
8669 | && test "x${islinc}" = x ; then | |
e28c595f | 8670 | |
d0ac1c44 | 8671 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 8672 | fi |
e552509b | 8673 | |
e28c595f | 8674 | |
e552509b ILT |
8675 | fi |
8676 | ||
4849dfd8 | 8677 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 8678 | if test "x$with_isl" = xno || |
8e71395b | 8679 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 8680 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 8681 | islinc= |
7ec59b9e L |
8682 | fi |
8683 | ||
8e71395b L |
8684 | |
8685 | ||
8686 | ||
700d40ca ILT |
8687 | # Check for LTO support. |
8688 | # Check whether --enable-lto was given. | |
8689 | if test "${enable_lto+set}" = set; then : | |
8690 | enableval=$enable_lto; enable_lto=$enableval | |
8691 | else | |
8692 | enable_lto=yes; default_enable_lto=yes | |
8693 | fi | |
8694 | ||
8695 | ||
143754cd | 8696 | |
e49e5c92 DK |
8697 | |
8698 | ||
8699 | target_elf=no | |
8700 | case $target in | |
8701 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 8702 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
8703 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8704 | nvptx-*-none) | |
e49e5c92 DK |
8705 | target_elf=no |
8706 | ;; | |
8707 | *) | |
8708 | target_elf=yes | |
8709 | ;; | |
8710 | esac | |
8711 | ||
8712 | if test $target_elf = yes; then : | |
74cea91b DK |
8713 | # ELF platforms build the lto-plugin always. |
8714 | build_lto_plugin=yes | |
e49e5c92 | 8715 | |
e49e5c92 DK |
8716 | else |
8717 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 8718 | case $target in |
bf41f30d | 8719 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 8720 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
8721 | *) enable_lto=no ;; |
8722 | esac | |
e49e5c92 | 8723 | else |
29821356 RW |
8724 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8725 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
8726 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8727 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8728 | # -flto it won't be needed until after installation anyway. | |
8729 | case $target in | |
52cf9762 | 8730 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 8731 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 8732 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
8733 | fi |
8734 | ;; | |
8735 | esac | |
8736 | fi | |
a8eb3f0a | 8737 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 8738 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 8739 | case $target in |
74cea91b | 8740 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
8741 | *) ;; |
8742 | esac | |
74cea91b | 8743 | |
e49e5c92 DK |
8744 | fi |
8745 | ||
700d40ca | 8746 | |
1b6c0831 L |
8747 | # Check whether --enable-linker-plugin-configure-flags was given. |
8748 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8749 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8750 | else | |
8751 | extra_linker_plugin_configure_flags= | |
8752 | fi | |
8753 | ||
8754 | ||
8755 | # Check whether --enable-linker-plugin-flags was given. | |
8756 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8757 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8758 | else | |
8759 | extra_linker_plugin_flags= | |
8760 | fi | |
8761 | ||
8762 | ||
8763 | ||
bf41f30d NC |
8764 | # Enable --enable-host-shared. |
8765 | # Checked early to determine whether jit is an 'all' language | |
8766 | # Check whether --enable-host-shared was given. | |
8767 | if test "${enable_host_shared+set}" = set; then : | |
8768 | enableval=$enable_host_shared; host_shared=$enableval | |
228cf97d AM |
8769 | case $host in |
8770 | x86_64-*-darwin* | aarch64-*-darwin*) | |
8771 | if test x$host_shared != xyes ; then | |
8772 | # PIC is the default, and actually cannot be switched off. | |
8773 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8774 | host_shared=yes | |
8775 | fi ;; | |
8776 | *) ;; | |
8777 | esac | |
bf41f30d | 8778 | else |
228cf97d AM |
8779 | case $host in |
8780 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; | |
8781 | *) host_shared=no ;; | |
8782 | esac | |
bf41f30d NC |
8783 | fi |
8784 | ||
8785 | ||
e28c595f | 8786 | |
7ec59b9e | 8787 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 8788 | stage1_languages=,c, |
1d39f329 | 8789 | |
e8a5fa9c | 8790 | # Target libraries that we bootstrap. |
2aa2364a | 8791 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 8792 | |
9e07f89d NN |
8793 | # Figure out what language subdirectories are present. |
8794 | # Look if the user specified --enable-languages="..."; if not, use | |
8795 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8796 | # go away some day. | |
8797 | # NB: embedded tabs in this IF block -- do not untabify | |
8798 | if test -d ${srcdir}/gcc; then | |
8799 | if test x"${enable_languages+set}" != xset; then | |
8800 | if test x"${LANGUAGES+set}" = xset; then | |
8801 | enable_languages="${LANGUAGES}" | |
136bb21f | 8802 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 8803 | else |
bf41f30d | 8804 | enable_languages=default |
9e07f89d NN |
8805 | fi |
8806 | else | |
8807 | if test x"${enable_languages}" = x || | |
8808 | test x"${enable_languages}" = xyes; | |
8809 | then | |
136bb21f | 8810 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
8811 | exit 1 |
8812 | fi | |
8813 | fi | |
8814 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8815 | ||
096f7d00 DE |
8816 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8817 | # and make the substitution. | |
8818 | case ,${enable_languages}, in | |
8819 | *,f95,*) | |
136bb21f | 8820 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
8821 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8822 | ;; | |
8823 | esac | |
8824 | ||
7ec59b9e L |
8825 | # If bootstrapping, C++ must be enabled. |
8826 | case ",$enable_languages,:$enable_bootstrap" in | |
8827 | *,c++,*:*) ;; | |
8828 | *:yes) | |
ffdd6afc ILT |
8829 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8830 | enable_languages="${enable_languages},c++" | |
8831 | else | |
d0ac1c44 | 8832 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
8833 | fi |
8834 | ;; | |
8835 | esac | |
8836 | ||
9e07f89d NN |
8837 | # First scan to see if an enabled language requires some other language. |
8838 | # We assume that a given config-lang.in will list all the language | |
8839 | # front ends it requires, even if some are required indirectly. | |
8840 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8841 | case ${lang_frag} in | |
8842 | ..) ;; | |
8843 | # The odd quoting in the next line works around | |
8844 | # an apparent bug in bash 1.12 on linux. | |
8845 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8846 | *) | |
e552509b ILT |
8847 | # From the config-lang.in, get $language, $lang_requires, and |
8848 | # $lang_requires_boot_languages. | |
9e07f89d NN |
8849 | language= |
8850 | lang_requires= | |
e552509b | 8851 | lang_requires_boot_languages= |
bf41f30d NC |
8852 | # set srcdir during sourcing lang_frag to the gcc dir. |
8853 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8854 | # polutes this shell | |
8855 | saved_srcdir=${srcdir} | |
8856 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8857 | srcdir=${saved_srcdir} | |
e552509b | 8858 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
8859 | case ,${enable_languages}, in |
8860 | *,$other,*) ;; | |
bf41f30d | 8861 | *,default,*) ;; |
9e07f89d NN |
8862 | *,all,*) ;; |
8863 | *,$language,*) | |
8864 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8865 | enable_languages="${enable_languages},${other}" | |
8866 | ;; | |
8867 | esac | |
8868 | done | |
e552509b ILT |
8869 | for other in ${lang_requires_boot_languages} ; do |
8870 | if test "$other" != "c"; then | |
8871 | case ,${enable_stage1_languages}, in | |
8872 | *,$other,*) ;; | |
bf41f30d | 8873 | *,default,*) ;; |
e552509b ILT |
8874 | *,all,*) ;; |
8875 | *) | |
8876 | case ,${enable_languages}, in | |
8877 | *,$language,*) | |
8878 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8879 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8880 | ;; | |
8881 | esac | |
8882 | ;; | |
8883 | esac | |
8884 | fi | |
8885 | done | |
9e07f89d NN |
8886 | ;; |
8887 | esac | |
8888 | done | |
8889 | ||
9b134994 | 8890 | new_enable_languages=,c, |
700d40ca ILT |
8891 | |
8892 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 8893 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
8894 | case ,${enable_languages}, in |
8895 | *,lto,*) ;; | |
8896 | *) enable_languages="${enable_languages},lto" ;; | |
8897 | esac | |
a8eb3f0a | 8898 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 8899 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
8900 | fi |
8901 | fi | |
8902 | ||
1b6c0831 L |
8903 | # If we're building an offloading compiler, add the LTO front end. |
8904 | if test x"$enable_as_accelerator_for" != x ; then | |
8905 | case ,${enable_languages}, in | |
8906 | *,lto,*) ;; | |
8907 | *) enable_languages="${enable_languages},lto" ;; | |
8908 | esac | |
8909 | fi | |
700d40ca | 8910 | |
bf41f30d | 8911 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 8912 | potential_languages=,c, |
9e07f89d | 8913 | |
9e1a94f4 ILT |
8914 | enabled_target_libs= |
8915 | disabled_target_libs= | |
8916 | ||
9e07f89d NN |
8917 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8918 | case ${lang_frag} in | |
8919 | ..) ;; | |
8920 | # The odd quoting in the next line works around | |
8921 | # an apparent bug in bash 1.12 on linux. | |
8922 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8923 | *) | |
c6b750e1 | 8924 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 8925 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
8926 | language= |
8927 | target_libs= | |
8928 | lang_dirs= | |
64ce424c | 8929 | subdir_requires= |
9b134994 PB |
8930 | boot_language=no |
8931 | build_by_default=yes | |
bf41f30d NC |
8932 | # set srcdir during sourcing. See above about save & restore |
8933 | saved_srcdir=${srcdir} | |
8934 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8935 | srcdir=${saved_srcdir} | |
9b134994 PB |
8936 | if test x${language} = x; then |
8937 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8938 | exit 1 | |
8939 | fi | |
8940 | ||
ffdd6afc | 8941 | if test "$language" = "c++"; then |
7ec59b9e | 8942 | boot_language=yes |
e8a5fa9c RW |
8943 | fi |
8944 | ||
8e71395b | 8945 | add_this_lang=no |
bf41f30d NC |
8946 | # C is always enabled, so no need to add it again |
8947 | if test "$language" != "c"; then | |
8948 | case ,${enable_languages}, in | |
8949 | *,${language},*) | |
8950 | # Language was explicitly selected; include it | |
7ec59b9e | 8951 | add_this_lang=yes |
bf41f30d NC |
8952 | ;; |
8953 | *,all,*) | |
8954 | # All languages are enabled | |
8955 | add_this_lang=all | |
8956 | ;; | |
8957 | *,default,*) | |
8958 | # 'default' was selected, select it if it is a default language | |
8e71395b | 8959 | add_this_lang=${build_by_default} |
bf41f30d NC |
8960 | ;; |
8961 | esac | |
8962 | fi | |
4b1cb4fe | 8963 | |
64ce424c | 8964 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 8965 | for i in $subdir_requires; do |
3d3adb43 | 8966 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
8967 | case ${add_this_lang} in |
8968 | yes) | |
64ce424c | 8969 | # Specifically requested language; tell them. |
d0ac1c44 | 8970 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 8971 | ;; |
bf41f30d NC |
8972 | all) |
8973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8974 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8975 | add_this_lang=unsupported | |
8976 | ;; | |
64ce424c PB |
8977 | *) |
8978 | # Silently disable. | |
9b134994 | 8979 | add_this_lang=unsupported |
64ce424c PB |
8980 | ;; |
8981 | esac | |
8982 | done | |
8983 | ||
9b134994 | 8984 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
8985 | case ${add_this_lang}:${language}:${have_gnat} in |
8986 | yes:ada:no) | |
9b134994 | 8987 | # Specifically requested language; tell them. |
d0ac1c44 | 8988 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 8989 | ;; |
bf41f30d NC |
8990 | all:ada:no) |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8992 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8993 | add_this_lang=unsupported | |
8994 | ;; | |
9b134994 PB |
8995 | *:ada:no) |
8996 | # Silently disable. | |
8997 | add_this_lang=unsupported | |
8998 | ;; | |
8999 | esac | |
9000 | ||
228cf97d AM |
9001 | # Disable D if no preexisting GDC is available. |
9002 | case ${add_this_lang}:${language}:${have_gdc} in | |
9003 | yes:d:no) | |
9004 | # Specifically requested language; tell them. | |
9005 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
9006 | ;; | |
9007 | all:d:no) | |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
9009 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
9010 | add_this_lang=unsupported | |
9011 | ;; | |
9012 | *:d:no) | |
9013 | # Silently disable. | |
9014 | add_this_lang=unsupported | |
9015 | ;; | |
9016 | esac | |
9017 | ||
bf41f30d | 9018 | # Disable jit if -enable-host-shared not specified |
228cf97d AM |
9019 | # but not if building for Mingw. All code in Windows |
9020 | # is position independent code (PIC). | |
9021 | case $target in | |
9022 | *mingw*) ;; | |
9023 | *) | |
9024 | case ${add_this_lang}:${language}:${host_shared} in | |
9025 | yes:jit:no) | |
9026 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 9027 | as_fn_error $? " |
bf41f30d NC |
9028 | Enabling language \"jit\" requires --enable-host-shared. |
9029 | ||
9030 | --enable-host-shared typically slows the rest of the compiler down by | |
9031 | a few %, so you must explicitly enable it. | |
9032 | ||
9033 | If you want to build both the jit and the regular compiler, it is often | |
9034 | best to do this via two separate configure/builds, in separate | |
9035 | directories, to avoid imposing the performance cost of | |
9036 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
228cf97d AM |
9037 | ;; |
9038 | all:jit:no) | |
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
bf41f30d | 9040 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
228cf97d AM |
9041 | add_this_lang=unsupported |
9042 | ;; | |
9043 | *:jit:no) | |
9044 | # Silently disable. | |
9045 | add_this_lang=unsupported | |
9046 | ;; | |
9047 | esac | |
9048 | ;; | |
9049 | esac | |
bf41f30d NC |
9050 | |
9051 | # Disable a language that is unsupported by the target. | |
9052 | case "${add_this_lang}: $unsupported_languages " in | |
9053 | no:*) ;; | |
9054 | unsupported:*) ;; | |
9055 | *:*" $language "*) | |
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9057 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 9058 | add_this_lang=unsupported |
59f7ec45 HPN |
9059 | ;; |
9060 | esac | |
9061 | ||
4b1cb4fe | 9062 | case $add_this_lang in |
9b134994 | 9063 | unsupported) |
9e07f89d | 9064 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
9065 | disabled_target_libs="$disabled_target_libs $target_libs" |
9066 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 9067 | ;; |
9b134994 PB |
9068 | no) |
9069 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
9070 | disabled_target_libs="$disabled_target_libs $target_libs" |
9071 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
9072 | potential_languages="${potential_languages}${language}," |
9073 | ;; | |
bf41f30d | 9074 | all|yes) |
9b134994 PB |
9075 | new_enable_languages="${new_enable_languages}${language}," |
9076 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 9077 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 9078 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
9079 | case "${boot_language}:,$enable_stage1_languages," in |
9080 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 9081 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
9082 | case ",$stage1_languages," in |
9083 | *,$language,* | ,yes, | ,all,) ;; | |
9084 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9085 | esac | |
e8a5fa9c | 9086 | # We need to bootstrap any supporting libraries. |
228cf97d | 9087 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
1d39f329 NN |
9088 | ;; |
9089 | esac | |
9090 | ;; | |
9e07f89d NN |
9091 | esac |
9092 | ;; | |
9093 | esac | |
9094 | done | |
9095 | ||
9e1a94f4 ILT |
9096 | # Add target libraries which are only needed for disabled languages |
9097 | # to noconfigdirs. | |
9098 | if test -n "$disabled_target_libs"; then | |
9099 | for dir in $disabled_target_libs; do | |
9100 | case " $enabled_target_libs " in | |
9101 | *" ${dir} "*) ;; | |
9102 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9103 | esac | |
9104 | done | |
9105 | fi | |
9106 | ||
81ecdfbb RW |
9107 | # Check whether --enable-stage1-languages was given. |
9108 | if test "${enable_stage1_languages+set}" = set; then : | |
9109 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
9110 | ,no,|,,) |
9111 | # Set it to something that will have no effect in the loop below | |
9112 | enable_stage1_languages=c ;; | |
9113 | ,yes,) | |
9114 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9115 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9116 | *,all,*) | |
9117 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9118 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9119 | esac | |
9120 | ||
9121 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9122 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9123 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9124 | case $potential_languages in | |
9125 | *,$i,*) | |
9126 | case $stage1_languages in | |
9127 | *,$i,*) ;; | |
9128 | *) stage1_languages="$stage1_languages$i," ;; | |
9129 | esac ;; | |
9130 | *) | |
9131 | case $missing_languages in | |
9132 | *,$i,*) ;; | |
9133 | *) missing_languages="$missing_languages$i," ;; | |
9134 | esac ;; | |
9135 | esac | |
9136 | done | |
81ecdfbb RW |
9137 | fi |
9138 | ||
9b134994 PB |
9139 | |
9140 | # Remove leading/trailing commas that were added for simplicity | |
9141 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 9142 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
9143 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9144 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9145 | ||
9e07f89d | 9146 | if test "x$missing_languages" != x; then |
d0ac1c44 | 9147 | as_fn_error $? " |
27258dd4 | 9148 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 9149 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 9150 | fi |
9e07f89d NN |
9151 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9152 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 9153 | enable_languages="$new_enable_languages" |
9e07f89d | 9154 | fi |
9b134994 | 9155 | |
c6b750e1 | 9156 | |
81ec575a | 9157 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
9158 | fi |
9159 | ||
a6df5a19 PB |
9160 | # Handle --disable-<component> generically. |
9161 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9162 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
9163 | varname=`echo $dirname | sed -e s/+/_/g` |
9164 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
9165 | noconfigdirs="$noconfigdirs $dir" |
9166 | fi | |
9167 | done | |
9168 | ||
4f0ef2d8 | 9169 | # Check for Boehm's garbage collector |
81ecdfbb RW |
9170 | # Check whether --enable-objc-gc was given. |
9171 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 9172 | enableval=$enable_objc_gc; |
81ecdfbb RW |
9173 | fi |
9174 | ||
4f0ef2d8 | 9175 | |
05a13254 NC |
9176 | # Check whether --with-target-bdw-gc was given. |
9177 | if test "${with_target_bdw_gc+set}" = set; then : | |
9178 | withval=$with_target_bdw_gc; | |
9179 | fi | |
9180 | ||
9181 | ||
9182 | # Check whether --with-target-bdw-gc-include was given. | |
9183 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9184 | withval=$with_target_bdw_gc_include; | |
9185 | fi | |
9186 | ||
9187 | ||
9188 | # Check whether --with-target-bdw-gc-lib was given. | |
9189 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9190 | withval=$with_target_bdw_gc_lib; | |
9191 | fi | |
9192 | ||
9193 | ||
9194 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9196 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9197 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
9198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
9199 | $as_echo "using bdw-gc in default locations" >&6; } | |
9200 | else | |
9201 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 9202 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 9203 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 9204 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
9205 | else |
9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9207 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 9208 | fi |
05a13254 | 9209 | fi |
4f0ef2d8 CD |
9210 | esac |
9211 | ||
bf41f30d | 9212 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 9213 | case ,${enable_languages}, in |
1b6c0831 | 9214 | *,c++,*) |
bf41f30d | 9215 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
9216 | case "${noconfigdirs}" in |
9217 | *target-libstdc++-v3*) | |
bf41f30d | 9218 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
9219 | ;; |
9220 | *) ;; | |
9221 | esac | |
9222 | ;; | |
7ec59b9e | 9223 | *) |
bf41f30d | 9224 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
9225 | ;; |
9226 | esac | |
9227 | ||
d33228c9 AB |
9228 | # If gcc/ is not in the source tree then we'll not be building a |
9229 | # target compiler, assume in that case we don't want to build any | |
9230 | # target libraries or tools. | |
9231 | # | |
9232 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9233 | # this configure script, but don't always have target tools available. | |
9234 | if test ! -d ${srcdir}/gcc; then | |
9235 | skipdirs="${skipdirs} ${target_configdirs}" | |
9236 | fi | |
9237 | ||
caeba88f AL |
9238 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9239 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
9240 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9241 | ||
9242 | notsupp="" | |
9243 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 9244 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
9245 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9246 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9247 | if test -r $srcdir/$dirname/configure ; then | |
9248 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9249 | true | |
9250 | else | |
9251 | notsupp="$notsupp $dir" | |
9252 | fi | |
9253 | fi | |
9254 | fi | |
caeba88f AL |
9255 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9256 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9257 | if test -r $srcdir/$dirname/configure ; then | |
9258 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9259 | true | |
9260 | else | |
9261 | notsupp="$notsupp $dir" | |
9262 | fi | |
9263 | fi | |
9264 | fi | |
9e07f89d NN |
9265 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9266 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9267 | if test -r $srcdir/$dirname/configure ; then | |
9268 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9269 | true | |
9270 | else | |
9271 | notsupp="$notsupp $dir" | |
9272 | fi | |
9273 | fi | |
9274 | fi | |
9275 | done | |
9276 | ||
9e07f89d NN |
9277 | # Quietly strip out all directories which aren't configurable in this tree. |
9278 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9279 | # is now the case. | |
6a9cf61e PB |
9280 | build_configdirs_all="$build_configdirs" |
9281 | build_configdirs= | |
9282 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 9283 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
9284 | if test -f ${srcdir}/$j/configure ; then |
9285 | build_configdirs="${build_configdirs} $i" | |
9286 | fi | |
9287 | done | |
9288 | ||
9e07f89d NN |
9289 | configdirs_all="$configdirs" |
9290 | configdirs= | |
9291 | for i in ${configdirs_all} ; do | |
9292 | if test -f ${srcdir}/$i/configure ; then | |
9293 | configdirs="${configdirs} $i" | |
9294 | fi | |
9295 | done | |
6a9cf61e | 9296 | |
9e07f89d NN |
9297 | target_configdirs_all="$target_configdirs" |
9298 | target_configdirs= | |
9299 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 9300 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
9301 | if test -f ${srcdir}/$j/configure ; then |
9302 | target_configdirs="${target_configdirs} $i" | |
9303 | fi | |
9304 | done | |
9305 | ||
1b6c0831 L |
9306 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9307 | # so we have to add it after the preceding checks. | |
9308 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9309 | then | |
9310 | case " $configdirs " in | |
9311 | *" libiberty "*) | |
9312 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9313 | configdirs="$configdirs libiberty-linker-plugin" | |
9314 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9315 | --with-libiberty=../libiberty-linker-plugin";; | |
9316 | *) | |
d0ac1c44 | 9317 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
9318 | esac |
9319 | fi | |
9320 | ||
9321 | # Sometimes we have special requirements for the host libiberty. | |
9322 | extra_host_libiberty_configure_flags= | |
9323 | case " $configdirs " in | |
a08bdb15 | 9324 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
1b6c0831 L |
9325 | # When these are to be built as shared libraries, the same applies to |
9326 | # libiberty. | |
9327 | extra_host_libiberty_configure_flags=--enable-shared | |
9328 | ;; | |
95127faf TV |
9329 | esac |
9330 | ||
9331 | ||
9332 | # Sometimes we have special requirements for the host zlib. | |
9333 | extra_host_zlib_configure_flags= | |
9334 | case " $configdirs " in | |
e81d5d05 L |
9335 | *" bfd "*) |
9336 | # When bfd is to be built as a shared library, the same applies to | |
9337 | # zlib. | |
9338 | if test "$enable_shared" = "yes"; then | |
9339 | extra_host_zlib_configure_flags=--enable-host-shared | |
9340 | fi | |
9341 | ;; | |
1b6c0831 L |
9342 | esac |
9343 | ||
9344 | ||
9e07f89d NN |
9345 | # Produce a warning message for the subdirs we can't configure. |
9346 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9347 | # FSF releases, it's important to let people know when their machine isn't | |
9348 | # supported by the one or two programs in a package. | |
9349 | ||
9350 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9351 | # If $appdirs is non-empty, at least one of those directories must still | |
9352 | # be configured, or we error out. (E.g., if the gas release supports a | |
9353 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9354 | # pretend that all is well.) | |
9355 | if test -n "$appdirs" ; then | |
9356 | for dir in $appdirs ; do | |
9357 | if test -r $dir/Makefile.in ; then | |
9358 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9359 | appdirs="" | |
9360 | break | |
9361 | fi | |
6a9cf61e | 9362 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
9363 | appdirs="" |
9364 | break | |
9365 | fi | |
9366 | fi | |
9367 | done | |
9368 | if test -n "$appdirs" ; then | |
9369 | echo "*** This configuration is not supported by this package." 1>&2 | |
9370 | exit 1 | |
9371 | fi | |
9372 | fi | |
9373 | # Okay, some application will build, or we don't care to check. Still | |
9374 | # notify of subdirs not getting built. | |
9375 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9376 | echo " ${notsupp}" 1>&2 | |
9377 | echo " (Any other directories should still work fine.)" 1>&2 | |
9378 | fi | |
9379 | ||
9380 | case "$host" in | |
9381 | *msdosdjgpp*) | |
9382 | enable_gdbtk=no ;; | |
9383 | esac | |
9384 | ||
18f6b6ee PB |
9385 | # To find our prefix, in gcc_cv_tool_prefix. |
9386 | ||
9387 | # The user is always right. | |
9388 | if test "${PATH_SEPARATOR+set}" != set; then | |
9389 | echo "#! /bin/sh" >conf$$.sh | |
9390 | echo "exit 0" >>conf$$.sh | |
9391 | chmod +x conf$$.sh | |
9392 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9393 | PATH_SEPARATOR=';' | |
9394 | else | |
9395 | PATH_SEPARATOR=: | |
9396 | fi | |
9397 | rm -f conf$$.sh | |
9398 | fi | |
9399 | ||
9400 | ||
bf41f30d NC |
9401 | get_gcc_base_ver="cat" |
9402 | ||
9403 | # Check whether --with-gcc-major-version-only was given. | |
9404 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9405 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 9406 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
9407 | fi |
9408 | ||
9409 | fi | |
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
18f6b6ee PB |
9415 | |
9416 | if test "x$exec_prefix" = xNONE; then | |
9417 | if test "x$prefix" = xNONE; then | |
9418 | gcc_cv_tool_prefix=$ac_default_prefix | |
9419 | else | |
9420 | gcc_cv_tool_prefix=$prefix | |
9421 | fi | |
9422 | else | |
9423 | gcc_cv_tool_prefix=$exec_prefix | |
9424 | fi | |
9425 | ||
9426 | # If there is no compiler in the tree, use the PATH only. In any | |
9427 | # case, if there is no compiler in the tree nobody should use | |
9428 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9429 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
9430 | if test x$with_gcc_major_version_only = xyes ; then |
9431 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9432 | else | |
9433 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9434 | fi | |
18f6b6ee PB |
9435 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9436 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9437 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9438 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9439 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9440 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9441 | else | |
9442 | gcc_cv_tool_dirs= | |
9443 | fi | |
9444 | ||
9445 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9446 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9447 | fi | |
9448 | ||
9449 | ||
9450 | ||
9e07f89d NN |
9451 | copy_dirs= |
9452 | ||
c6b750e1 | 9453 | |
81ecdfbb RW |
9454 | # Check whether --with-build-sysroot was given. |
9455 | if test "${with_build_sysroot+set}" = set; then : | |
9456 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
9457 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9458 | fi | |
9459 | else | |
9460 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 9461 | fi |
a19b6204 MM |
9462 | |
9463 | ||
8a6ee3ab | 9464 | |
81ecdfbb RW |
9465 | |
9466 | # Check whether --with-debug-prefix-map was given. | |
9467 | if test "${with_debug_prefix_map+set}" = set; then : | |
9468 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
9469 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9470 | for debug_map in $withval; do | |
9471 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9472 | done | |
9473 | fi | |
9474 | else | |
9475 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
9476 | fi |
9477 | ||
8a6ee3ab JM |
9478 | |
9479 | ||
7f6ef0c0 PB |
9480 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9481 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9482 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9483 | # We want to ensure that TARGET libraries (which we know are built with | |
9484 | # gcc) are built with "-O2 -g", so include those options when setting | |
9485 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9486 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9487 | if test "x${is_cross_compiler}" = xyes; then |
9488 | CFLAGS_FOR_TARGET="-g -O2" | |
9489 | else | |
9490 | CFLAGS_FOR_TARGET=$CFLAGS | |
9491 | case " $CFLAGS " in | |
9492 | *" -O2 "*) ;; | |
9493 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9494 | esac | |
9495 | case " $CFLAGS " in | |
9496 | *" -g "* | *" -g3 "*) ;; | |
9497 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9498 | esac | |
9499 | fi | |
7f6ef0c0 PB |
9500 | fi |
9501 | ||
9502 | ||
9503 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9504 | if test "x${is_cross_compiler}" = xyes; then |
9505 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9506 | else | |
9507 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9508 | case " $CXXFLAGS " in | |
9509 | *" -O2 "*) ;; | |
9510 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9511 | esac | |
9512 | case " $CXXFLAGS " in | |
9513 | *" -g "* | *" -g3 "*) ;; | |
9514 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9515 | esac | |
9516 | fi | |
7f6ef0c0 PB |
9517 | fi |
9518 | ||
9519 | ||
91c1f14c DK |
9520 | |
9521 | ||
9e07f89d NN |
9522 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9523 | # the named directory are copied to $(tooldir)/sys-include. | |
9524 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9525 | if test x${is_cross_compiler} = xno ; then | |
9526 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9527 | exit 1 | |
9528 | fi | |
9529 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 9530 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 9531 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
9532 | fi |
9533 | fi | |
9534 | ||
9535 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9536 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9537 | # are permitted. | |
9538 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9539 | if test x${is_cross_compiler} = xno ; then | |
9540 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9541 | exit 1 | |
9542 | fi | |
9543 | if test x"${with_libs}" != xyes ; then | |
9544 | # Copy the libraries in reverse order, so that files in the first named | |
9545 | # library override files in subsequent libraries. | |
18f6b6ee | 9546 | x=${gcc_cv_tool_prefix} |
9e07f89d | 9547 | for l in ${with_libs}; do |
c6b750e1 | 9548 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
9549 | done |
9550 | fi | |
9551 | fi | |
9552 | ||
700d40ca | 9553 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
9554 | # |
9555 | # This is done by determining whether or not the appropriate directory | |
9556 | # is available, and by checking whether or not specific configurations | |
9557 | # have requested that this magic not happen. | |
c6b750e1 DJ |
9558 | # |
9559 | # The command line options always override the explicit settings in | |
136bb21f | 9560 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 9561 | # |
c6b750e1 | 9562 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 9563 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
9564 | # --without-gnu-ld options for the configure script. Similarly, if |
9565 | # the default is to use the included zlib and you don't want to do that, | |
9566 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
9567 | |
9568 | if test x${use_gnu_as} = x && | |
9569 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9570 | with_gnu_as=yes | |
9571 | extra_host_args="$extra_host_args --with-gnu-as" | |
9572 | fi | |
9573 | ||
9574 | if test x${use_gnu_ld} = x && | |
93f9b408 | 9575 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
9576 | with_gnu_ld=yes |
9577 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9578 | fi | |
9579 | ||
700d40ca ILT |
9580 | if test x${use_included_zlib} = x && |
9581 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9582 | : | |
9583 | else | |
9584 | with_system_zlib=yes | |
9585 | extra_host_args="$extra_host_args --with-system-zlib" | |
9586 | fi | |
9587 | ||
2429c060 PB |
9588 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9589 | # can detect this case. | |
9590 | ||
9591 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9592 | with_newlib=yes | |
9593 | extra_host_args="$extra_host_args --with-newlib" | |
9594 | fi | |
9595 | ||
9e07f89d NN |
9596 | # Handle ${copy_dirs} |
9597 | set fnord ${copy_dirs} | |
9598 | shift | |
9599 | while test $# != 0 ; do | |
9600 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9601 | : | |
9602 | else | |
9603 | echo Copying $1 to $2 | |
9604 | ||
9605 | # Use the install script to create the directory and all required | |
9606 | # parent directories. | |
9607 | if test -d $2 ; then | |
9608 | : | |
9609 | else | |
9610 | echo >config.temp | |
9611 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9612 | fi | |
9613 | ||
9614 | # Copy the directory, assuming we have tar. | |
9615 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9616 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9617 | ||
9618 | # It is the responsibility of the user to correctly adjust all | |
9619 | # symlinks. If somebody can figure out how to handle them correctly | |
9620 | # here, feel free to add the code. | |
9621 | ||
9622 | echo $1 > $2/COPIED | |
9623 | fi | |
9624 | shift; shift | |
9625 | done | |
9626 | ||
2429c060 PB |
9627 | # Determine a target-dependent exec_prefix that the installed |
9628 | # gcc will search in. Keep this list sorted by triplet, with | |
9629 | # the *-*-osname triplets last. | |
9630 | md_exec_prefix= | |
9631 | case "${target}" in | |
521ec477 | 9632 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
9633 | md_exec_prefix=/dev/env/DJDIR/bin |
9634 | ;; | |
2429c060 | 9635 | *-*-hpux* | \ |
2429c060 | 9636 | *-*-nto-qnx* | \ |
1f111696 | 9637 | *-*-solaris2*) |
2429c060 PB |
9638 | md_exec_prefix=/usr/ccs/bin |
9639 | ;; | |
9640 | esac | |
9641 | ||
a0da8069 NN |
9642 | extra_arflags_for_target= |
9643 | extra_nmflags_for_target= | |
9644 | extra_ranlibflags_for_target= | |
9645 | target_makefile_frag=/dev/null | |
9646 | case "${target}" in | |
77d7106f AM |
9647 | spu-*-*) |
9648 | target_makefile_frag="config/mt-spu" | |
9649 | ;; | |
a9d58c06 | 9650 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
9651 | target_makefile_frag="config/mt-sde" |
9652 | ;; | |
f3b1e08e RS |
9653 | mipsisa*-*-elfoabi*) |
9654 | target_makefile_frag="config/mt-mips-elfoabi" | |
9655 | ;; | |
e7c8859c RS |
9656 | mips*-*-*linux* | mips*-*-gnu*) |
9657 | target_makefile_frag="config/mt-mips-gnu" | |
9658 | ;; | |
d9e042ac SL |
9659 | nios2-*-elf*) |
9660 | target_makefile_frag="config/mt-nios2-elf" | |
9661 | ;; | |
bf41f30d NC |
9662 | *-*-linux-android*) |
9663 | target_makefile_frag="config/mt-android" | |
9664 | ;; | |
29383458 | 9665 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 9666 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
9667 | ;; |
9668 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 9669 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
9670 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9671 | # harmless if we're using GNU nm or ar. | |
9672 | extra_arflags_for_target=" -X32_64" | |
9673 | extra_nmflags_for_target=" -B -X32_64" | |
9674 | ;; | |
a0da8069 NN |
9675 | esac |
9676 | ||
9677 | alphaieee_frag=/dev/null | |
9678 | case $target in | |
9679 | alpha*-*-*) | |
9680 | # This just makes sure to use the -mieee option to build target libs. | |
9681 | # This should probably be set individually by each library. | |
9682 | alphaieee_frag="config/mt-alphaieee" | |
9683 | ;; | |
9684 | esac | |
9685 | ||
9686 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9687 | # the target libraries, similarly if it is not specified, use -Os | |
9688 | # on selected platforms. | |
9689 | ospace_frag=/dev/null | |
9690 | case "${enable_target_optspace}:${target}" in | |
9691 | yes:*) | |
9692 | ospace_frag="config/mt-ospace" | |
9693 | ;; | |
9694 | :d30v-*) | |
9695 | ospace_frag="config/mt-d30v" | |
9696 | ;; | |
16beab3d | 9697 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
9698 | ospace_frag="config/mt-ospace" |
9699 | ;; | |
9700 | no:* | :*) | |
9701 | ;; | |
9702 | *) | |
9703 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9704 | ;; | |
9705 | esac | |
9706 | ||
a0da8069 NN |
9707 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9708 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 9709 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
9710 | build_tooldir=${tooldir} |
9711 | ||
a0da8069 NN |
9712 | # Create a .gdbinit file which runs the one in srcdir |
9713 | # and tells GDB to look there for source files. | |
9714 | ||
9715 | if test -r ${srcdir}/.gdbinit ; then | |
9716 | case ${srcdir} in | |
9717 | .) ;; | |
9718 | *) cat > ./.gdbinit <<EOF | |
9719 | # ${NO_EDIT} | |
9720 | dir ${srcdir} | |
9721 | dir . | |
9722 | source ${srcdir}/.gdbinit | |
9723 | EOF | |
9724 | ;; | |
9725 | esac | |
9726 | fi | |
9727 | ||
a0da8069 NN |
9728 | # Make sure that the compiler is able to generate an executable. If it |
9729 | # can't, we are probably in trouble. We don't care whether we can run the | |
9730 | # executable--we might be using a cross compiler--we only care whether it | |
9731 | # can be created. At this point the main configure script has set CC. | |
9732 | we_are_ok=no | |
9733 | echo "int main () { return 0; }" > conftest.c | |
9734 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9735 | if test $? = 0 ; then | |
9736 | if test -s conftest || test -s conftest.exe ; then | |
9737 | we_are_ok=yes | |
9738 | fi | |
c6b750e1 | 9739 | fi |
a0da8069 NN |
9740 | case $we_are_ok in |
9741 | no) | |
9742 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9743 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9744 | rm -f conftest* | |
9745 | exit 1 | |
9746 | ;; | |
9747 | esac | |
9748 | rm -f conftest* | |
9749 | ||
3bbd2f8f | 9750 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
9751 | case "${host}" in |
9752 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 9753 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 9754 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
9755 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9756 | esac | |
9757 | ||
3bbd2f8f | 9758 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
9759 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
9760 | # built executables to PATH. | |
3bbd2f8f AL |
9761 | if test "$RPATH_ENVVAR" = PATH; then |
9762 | GCC_SHLIB_SUBDIR=/shlib | |
9763 | else | |
9764 | GCC_SHLIB_SUBDIR= | |
9765 | fi | |
9766 | ||
730af8ee | 9767 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9768 | case $enable_bootstrap in | |
9769 | yes) | |
9770 | bootstrap_suffix=bootstrap | |
9771 | BUILD_CONFIG=bootstrap-debug | |
9772 | ;; | |
9773 | no) | |
9774 | bootstrap_suffix=no-bootstrap | |
9775 | BUILD_CONFIG= | |
9776 | ;; | |
9777 | esac | |
9778 | ||
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9780 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9781 | ||
9782 | ||
9783 | # Check whether --with-build-config was given. | |
9784 | if test "${with_build_config+set}" = set; then : | |
9785 | withval=$with_build_config; case $with_build_config in | |
9786 | yes) with_build_config= ;; | |
9787 | no) with_build_config= BUILD_CONFIG= ;; | |
9788 | esac | |
9789 | fi | |
9790 | ||
9791 | ||
9792 | if test "x${with_build_config}" != x; then | |
9793 | BUILD_CONFIG=$with_build_config | |
9794 | else | |
9795 | case $BUILD_CONFIG in | |
9796 | bootstrap-debug) | |
9797 | if echo "int f (void) { return 0; }" > conftest.c && | |
9798 | ${CC} -c conftest.c && | |
9799 | mv conftest.o conftest.o.g0 && | |
9800 | ${CC} -c -g conftest.c && | |
9801 | mv conftest.o conftest.o.g && | |
9802 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9803 | : | |
9804 | else | |
9805 | BUILD_CONFIG= | |
9806 | fi | |
9807 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9808 | ;; | |
9809 | esac | |
9810 | fi | |
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9812 | $as_echo "$BUILD_CONFIG" >&6; } | |
9813 | ||
9814 | ||
9815 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9817 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9818 | # Check whether --enable-vtable-verify was given. | |
9819 | if test "${enable_vtable_verify+set}" = set; then : | |
9820 | enableval=$enable_vtable_verify; case "$enableval" in | |
9821 | yes) enable_vtable_verify=yes ;; | |
9822 | no) enable_vtable_verify=no ;; | |
9823 | *) enable_vtable_verify=no;; | |
9824 | esac | |
9825 | else | |
9826 | enable_vtable_verify=no | |
9827 | fi | |
9828 | ||
9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9830 | $as_echo "$enable_vtable_verify" >&6; } | |
9831 | ||
a0da8069 NN |
9832 | # Record target_configdirs and the configure arguments for target and |
9833 | # build configuration in Makefile. | |
9834 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 9835 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 9836 | bootstrap_fixincludes=no |
a0da8069 | 9837 | |
2aa2364a JR |
9838 | # If we are building libgomp, bootstrap it. |
9839 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9840 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9841 | fi | |
9842 | ||
730af8ee | 9843 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9844 | # or bootstrap-ubsan, bootstrap it. | |
9845 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9846 | case "$BUILD_CONFIG" in | |
228cf97d | 9847 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
730af8ee | 9848 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
201f096f | 9849 | bootstrap_fixincludes=yes |
730af8ee | 9850 | ;; |
9851 | esac | |
5eb08693 L |
9852 | fi |
9853 | ||
730af8ee | 9854 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9855 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9856 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
9857 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9858 | fi | |
9859 | ||
228cf97d AM |
9860 | # If we are building libatomic and the list of enabled languages includes the |
9861 | # D frontend, bootstrap it. | |
9862 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9863 | case ,${enable_languages}, in | |
9864 | *,d,*) | |
9865 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9866 | ;; | |
9867 | esac | |
9868 | fi | |
9869 | ||
a0da8069 NN |
9870 | # Determine whether gdb needs tk/tcl or not. |
9871 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9872 | # and in that case we want gdb to be built without tk. Ugh! | |
9873 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9874 | # so we should be able to put the 'maybe's in unconditionally and | |
9875 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9876 | # 100% sure that that's safe though. | |
c180f501 | 9877 | |
675c6968 | 9878 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
9879 | case "$enable_gdbtk" in |
9880 | no) | |
9881 | GDB_TK="" ;; | |
c180f501 AC |
9882 | yes) |
9883 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 9884 | *) |
c180f501 AC |
9885 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9886 | # distro. Eventually someone will fix this and move Insight, nee | |
9887 | # gdbtk to a separate directory. | |
9888 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9889 | GDB_TK="${gdb_tk}" | |
9890 | else | |
9891 | GDB_TK="" | |
9892 | fi | |
9893 | ;; | |
a0da8069 | 9894 | esac |
907be67c DJ |
9895 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9896 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 9897 | |
b6f9caee TT |
9898 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9899 | # else does, only include them if one of these is built. The Makefile | |
9900 | # provides the ordering, so it's enough here to add to the list. | |
9901 | case " ${configdirs} " in | |
9902 | *\ gdb\ *) | |
9903 | configdirs="${configdirs} gnulib gdbsupport" | |
9904 | ;; | |
9905 | *\ gdbserver\ *) | |
9906 | configdirs="${configdirs} gnulib gdbsupport" | |
9907 | ;; | |
5c9e84c2 MF |
9908 | *\ sim\ *) |
9909 | configdirs="${configdirs} gnulib" | |
9910 | ;; | |
b6f9caee | 9911 | esac |
73cc7272 | 9912 | |
6bd3dfaa | 9913 | # Strip out unwanted targets. |
dd12c3a8 NN |
9914 | |
9915 | # While at that, we remove Makefiles if we were started for recursive | |
9916 | # configuration, so that the top-level Makefile reconfigures them, | |
9917 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 9918 | |
06a51eac RW |
9919 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9920 | # but now we're fixing up the Makefile ourselves with the additional | |
9921 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9922 | # extrasub-{build,host,target} not because there is any reason to split | |
9923 | # the substitutions up that way, but only to remain below the limit of | |
9924 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
9925 | |
9926 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9927 | # configure will not warn you at all. | |
dd12c3a8 | 9928 | |
16b1ad29 RW |
9929 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9930 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9931 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 9932 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
9933 | ;; |
9934 | esac | |
9935 | ||
06a51eac | 9936 | extrasub_build= |
6a9cf61e | 9937 | for module in ${build_configdirs} ; do |
498d4a71 CF |
9938 | if test -z "${no_recursion}" \ |
9939 | && test -f ${build_subdir}/${module}/Makefile; then | |
9940 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9941 | rm -f ${build_subdir}/${module}/Makefile | |
9942 | fi | |
06a51eac | 9943 | extrasub_build="$extrasub_build |
498d4a71 CF |
9944 | /^@if build-$module\$/d |
9945 | /^@endif build-$module\$/d | |
4119873a | 9946 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 9947 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
9948 | /^@endif build-$module-$bootstrap_suffix\$/d |
9949 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 9950 | done |
06a51eac | 9951 | extrasub_host= |
498d4a71 | 9952 | for module in ${configdirs} ; do |
80911fe1 | 9953 | if test -z "${no_recursion}"; then |
8cf39b1b | 9954 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
9955 | if test -f ${file}; then |
9956 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9957 | rm -f ${file} | |
9958 | fi | |
9959 | done | |
498d4a71 | 9960 | fi |
201f096f | 9961 | case ${module},${bootstrap_fixincludes} in |
9962 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9963 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9964 | esac | |
06a51eac | 9965 | extrasub_host="$extrasub_host |
498d4a71 CF |
9966 | /^@if $module\$/d |
9967 | /^@endif $module\$/d | |
4119873a | 9968 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 9969 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
9970 | /^@endif $module-$host_bootstrap_suffix\$/d |
9971 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 9972 | done |
06a51eac | 9973 | extrasub_target= |
498d4a71 CF |
9974 | for module in ${target_configdirs} ; do |
9975 | if test -z "${no_recursion}" \ | |
9976 | && test -f ${target_subdir}/${module}/Makefile; then | |
9977 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9978 | rm -f ${target_subdir}/${module}/Makefile | |
9979 | fi | |
e8a5fa9c RW |
9980 | |
9981 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9982 | case $bootstrap_target_libs in | |
9983 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9984 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9985 | esac | |
9986 | ||
06a51eac | 9987 | extrasub_target="$extrasub_target |
498d4a71 CF |
9988 | /^@if target-$module\$/d |
9989 | /^@endif target-$module\$/d | |
4119873a | 9990 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 9991 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
9992 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9993 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
9994 | done |
9995 | ||
06a51eac RW |
9996 | # Do the final fixup along with target modules. |
9997 | extrasub_target="$extrasub_target | |
4119873a AO |
9998 | /^@if /,/^@endif /d |
9999 | /^@unless /d | |
10000 | /^@endunless /d" | |
a0da8069 | 10001 | |
af019bfd L |
10002 | if test "$enable_pgo_build" != "no"; then |
10003 | extrasub_build="$extrasub_build | |
10004 | /^@if pgo-build\$/d | |
10005 | /^@endif pgo-build\$/d" | |
10006 | fi | |
10007 | ||
a0da8069 NN |
10008 | # Create the serialization dependencies. This uses a temporary file. |
10009 | ||
81ecdfbb RW |
10010 | # Check whether --enable-serial-configure was given. |
10011 | if test "${enable_serial_configure+set}" = set; then : | |
10012 | enableval=$enable_serial_configure; | |
10013 | fi | |
e6bfb94a AO |
10014 | |
10015 | ||
1047cb91 DD |
10016 | case ${enable_serial_configure} in |
10017 | yes) | |
10018 | enable_serial_build_configure=yes | |
10019 | enable_serial_host_configure=yes | |
10020 | enable_serial_target_configure=yes | |
10021 | ;; | |
10022 | esac | |
10023 | ||
a0da8069 NN |
10024 | # These force 'configure's to be done one at a time, to avoid problems |
10025 | # with contention over a shared config.cache. | |
10026 | rm -f serdep.tmp | |
e6bfb94a | 10027 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 10028 | olditem= |
1047cb91 | 10029 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
10030 | for item in ${build_configdirs} ; do |
10031 | case ${olditem} in | |
10032 | "") ;; | |
e6bfb94a | 10033 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
10034 | esac |
10035 | olditem=${item} | |
10036 | done | |
10037 | olditem= | |
1047cb91 | 10038 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
10039 | for item in ${configdirs} ; do |
10040 | case ${olditem} in | |
10041 | "") ;; | |
e6bfb94a | 10042 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
10043 | esac |
10044 | olditem=${item} | |
10045 | done | |
10046 | olditem= | |
1047cb91 | 10047 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
10048 | for item in ${target_configdirs} ; do |
10049 | case ${olditem} in | |
10050 | "") ;; | |
e6bfb94a | 10051 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
10052 | esac |
10053 | olditem=${item} | |
10054 | done | |
10055 | serialization_dependencies=serdep.tmp | |
10056 | ||
10057 | ||
e6bfb94a | 10058 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 10059 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
10060 | # might not want to pass down to subconfigures. The exception being |
10061 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10062 | # files altogether, and which should be passed on to subconfigures. | |
10063 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10064 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 10065 | baseargs= |
65b4571a | 10066 | tbaseargs= |
c6b750e1 DJ |
10067 | keep_next=no |
10068 | skip_next=no | |
10069 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
10070 | for ac_arg |
10071 | do | |
c6b750e1 DJ |
10072 | if test X"$skip_next" = X"yes"; then |
10073 | skip_next=no | |
10074 | continue | |
10075 | fi | |
10076 | if test X"$keep_next" = X"yes"; then | |
10077 | case $ac_arg in | |
10078 | *\'*) | |
10079 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10080 | esac | |
10081 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10082 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
10083 | keep_next=no |
10084 | continue | |
10085 | fi | |
10086 | ||
10087 | # Handle separated arguments. Based on the logic generated by | |
10088 | # autoconf 2.59. | |
10089 | case $ac_arg in | |
10090 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10091 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10092 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10093 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10094 | separate_arg=no | |
10095 | ;; | |
10096 | -*) | |
10097 | separate_arg=yes | |
10098 | ;; | |
10099 | *) | |
10100 | separate_arg=no | |
10101 | ;; | |
10102 | esac | |
10103 | ||
65b4571a AO |
10104 | skip_targ=no |
10105 | case $ac_arg in | |
10106 | ||
10107 | --with-* | --without-*) | |
10108 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10109 | ||
10110 | case $libopt in | |
10111 | *[-_]include) | |
10112 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10113 | ;; | |
10114 | *[-_]lib) | |
10115 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10116 | ;; | |
10117 | *) | |
10118 | lib=$libopt | |
10119 | ;; | |
10120 | esac | |
10121 | ||
10122 | ||
10123 | case $lib in | |
1b6c0831 | 10124 | mpc | mpfr | gmp | isl) |
65b4571a AO |
10125 | # If we're processing --with-$lib, --with-$lib-include or |
10126 | # --with-$lib-lib, for one of the libs above, and target is | |
10127 | # different from host, don't pass the current argument to any | |
10128 | # target library's configure. | |
10129 | if test x$is_cross_compiler = xyes; then | |
10130 | skip_targ=yes | |
10131 | fi | |
10132 | ;; | |
10133 | esac | |
10134 | ;; | |
10135 | esac | |
10136 | ||
c6b750e1 | 10137 | case "$ac_arg" in |
30167e0a NC |
10138 | --cache-file=/dev/null | \ |
10139 | -cache-file=/dev/null ) | |
10140 | # Handled here to avoid the test to skip args below. | |
10141 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10142 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
10143 | # Assert: $separate_arg should always be no. |
10144 | keep_next=$separate_arg | |
10145 | ;; | |
c6b750e1 DJ |
10146 | --no*) |
10147 | continue | |
10148 | ;; | |
10149 | --c* | \ | |
10150 | --sr* | \ | |
10151 | --ho* | \ | |
10152 | --bu* | \ | |
10153 | --t* | \ | |
10154 | --program-* | \ | |
10155 | -cache_file* | \ | |
10156 | -srcdir* | \ | |
10157 | -host* | \ | |
10158 | -build* | \ | |
10159 | -target* | \ | |
10160 | -program-prefix* | \ | |
10161 | -program-suffix* | \ | |
10162 | -program-transform-name* ) | |
10163 | skip_next=$separate_arg | |
10164 | continue | |
10165 | ;; | |
10166 | -*) | |
10167 | # An option. Add it. | |
10168 | case $ac_arg in | |
10169 | *\'*) | |
10170 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10171 | esac | |
10172 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
10173 | if test X"$skip_targ" = Xno; then |
10174 | tbaseargs="$tbaseargs '$ac_arg'" | |
10175 | fi | |
c6b750e1 DJ |
10176 | keep_next=$separate_arg |
10177 | ;; | |
10178 | *) | |
10179 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10180 | # pass it down; let the Makefile handle this. | |
10181 | continue | |
10182 | ;; | |
10183 | esac | |
10184 | done | |
10185 | # Remove the initial space we just introduced and, as these will be | |
10186 | # expanded by make, quote '$'. | |
10187 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 10188 | |
f27d4f92 DJ |
10189 | # Add in --program-transform-name, after --program-prefix and |
10190 | # --program-suffix have been applied to it. Autoconf has already | |
10191 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10192 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 10193 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
10194 | # Also, because we want to override the logic in subdir configure scripts to |
10195 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10196 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10197 | ${program_transform_name} | |
10198 | EOF_SED | |
10199 | gcc_transform_name=`cat conftestsed.out` | |
10200 | rm -f conftestsed.out | |
10201 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 10202 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
10203 | if test "$silent" = yes; then |
10204 | baseargs="$baseargs --silent" | |
65b4571a | 10205 | tbaseargs="$tbaseargs --silent" |
2444379b | 10206 | fi |
e5f2f7d9 | 10207 | |
34a0f3cf | 10208 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 10209 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 10210 | |
e5f2f7d9 LM |
10211 | if test "$enable_year2038" = no; then |
10212 | baseargs="$baseargs --disable-year2038" | |
10213 | tbaseargs="$tbaseargs --disable-year2038" | |
10214 | fi | |
10215 | ||
4074d5f2 RW |
10216 | # Record and document user additions to sub configure arguments. |
10217 | ||
10218 | ||
10219 | ||
10220 | ||
a0da8069 NN |
10221 | # For the build-side libraries, we just need to pretend we're native, |
10222 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
10223 | # desired. We can't even use the same cache file for all build-side |
10224 | # libraries, as they're compiled differently; some with C, some with | |
10225 | # C++ or with different feature-enabling options. | |
10226 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
10227 | |
10228 | # For host modules, accept cache file option, or specification as blank. | |
10229 | case "${cache_file}" in | |
10230 | "") # empty | |
10231 | cache_file_option="" ;; | |
10232 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10233 | cache_file_option="--cache-file=${cache_file}" ;; | |
10234 | *) # relative path | |
10235 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10236 | esac | |
10237 | ||
82252c06 NN |
10238 | # Host dirs don't like to share a cache file either, horribly enough. |
10239 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 10240 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 10241 | |
65b4571a | 10242 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
10243 | |
10244 | # Passing a --with-cross-host argument lets the target libraries know | |
10245 | # whether they are being built with a cross-compiler or being built | |
10246 | # native. However, it would be better to use other mechanisms to make the | |
10247 | # sorts of decisions they want to make on this basis. Please consider | |
10248 | # this option to be deprecated. FIXME. | |
10249 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 10250 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
10251 | fi |
10252 | ||
afc0578d | 10253 | # Special user-friendly check for native x86_64-linux build, if |
10254 | # multilib is not explicitly enabled. | |
10255 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10256 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 10257 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 10258 | dev64=no |
10259 | echo "int main () { return 0; }" > conftest.c | |
10260 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10261 | if test $? = 0 ; then | |
10262 | if test -s conftest || test -s conftest.exe ; then | |
10263 | dev64=yes | |
10264 | fi | |
10265 | fi | |
10266 | rm -f conftest* | |
10267 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 10268 | as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
afc0578d | 10269 | fi |
10270 | ;; | |
10271 | esac | |
10272 | ||
938d2b74 RW |
10273 | # Default to --enable-multilib. |
10274 | if test x${enable_multilib} = x ; then | |
a0da8069 | 10275 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 10276 | fi |
a0da8069 NN |
10277 | |
10278 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10279 | # changed from the earlier setting of with_newlib. | |
10280 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10281 | target_configargs="--with-newlib ${target_configargs}" | |
10282 | fi | |
10283 | ||
95036d20 NN |
10284 | # Different target subdirs use different values of certain variables |
10285 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10286 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10287 | # it doesn't automatically accept command-line overrides of them. | |
10288 | # This means it's not safe for target subdirs to share a cache file, | |
10289 | # which is disgusting, but there you have it. Hopefully this can be | |
10290 | # fixed in future. It's still worthwhile to use a cache file for each | |
10291 | # directory. I think. | |
10292 | ||
ae380b45 MS |
10293 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10294 | # We need to pass --target, as newer autoconf's requires consistency | |
10295 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 10296 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 10297 | |
a0da8069 NN |
10298 | FLAGS_FOR_TARGET= |
10299 | case " $target_configdirs " in | |
10300 | *" newlib "*) | |
10301 | case " $target_configargs " in | |
10302 | *" --with-newlib "*) | |
10303 | case "$target" in | |
1f53ca9a | 10304 | *-cygwin*) |
6d94c122 | 10305 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 10306 | ;; |
a0da8069 NN |
10307 | esac |
10308 | ||
10309 | # If we're not building GCC, don't discard standard headers. | |
10310 | if test -d ${srcdir}/gcc; then | |
10311 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10312 | ||
10313 | if test "${build}" != "${host}"; then | |
10314 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10315 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10316 | # to it. This is right: we don't want to search that directory | |
10317 | # for binaries, but we want the header files in there, so add | |
10318 | # them explicitly. | |
e552509b | 10319 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
10320 | |
10321 | # Someone might think of using the pre-installed headers on | |
10322 | # Canadian crosses, in case the installed compiler is not fully | |
10323 | # compatible with the compiler being built. In this case, it | |
10324 | # would be better to flag an error than risking having | |
10325 | # incompatible object files being constructed. We can't | |
10326 | # guarantee that an error will be flagged, but let's hope the | |
10327 | # compiler will do it, when presented with incompatible header | |
10328 | # files. | |
10329 | fi | |
10330 | fi | |
10331 | ||
10332 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 10333 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
10334 | # Here host == target, so we don't need to build gcc, |
10335 | # so we don't want to discard standard headers. | |
10336 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10337 | ;; | |
10338 | *) | |
10339 | # If we're building newlib, use its generic headers last, but search | |
10340 | # for any libc-related directories first (so make it the last -B | |
10341 | # switch). | |
10342 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
10343 | |
10344 | # If we're building libgloss, find the startup file, simulator library | |
10345 | # and linker script. | |
10346 | case " $target_configdirs " in | |
10347 | *" libgloss "*) | |
10348 | # Look for startup file, simulator library and maybe linker script. | |
10349 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10350 | # Look for libnosys.a in case the target needs it. | |
10351 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10352 | # Most targets have the linker script in the source directory. | |
10353 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10354 | ;; | |
10355 | esac | |
a0da8069 NN |
10356 | ;; |
10357 | esac | |
10358 | ;; | |
10359 | esac | |
10360 | ;; | |
10361 | esac | |
1f53ca9a | 10362 | |
45055374 | 10363 | case "$target" in |
1f53ca9a AO |
10364 | x86_64-*mingw* | *-w64-mingw*) |
10365 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10366 | # however, use a symlink named 'mingw' in ${prefix} . | |
10367 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10368 | ;; | |
10369 | *-mingw*) | |
10370 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10371 | 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' | |
10372 | ;; | |
45055374 | 10373 | esac |
a0da8069 | 10374 | |
5fbad20a DD |
10375 | # Allow the user to override the flags for |
10376 | # our build compiler if desired. | |
c66487f8 NC |
10377 | if test x"${build}" = x"${host}" ; then |
10378 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
e472ec9f | 10379 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
c66487f8 NC |
10380 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10381 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10382 | fi | |
5fbad20a | 10383 | |
a0da8069 NN |
10384 | # On Canadian crosses, we'll be searching the right directories for |
10385 | # the previously-installed cross compiler, so don't bother to add | |
10386 | # flags for directories within the install tree of the compiler | |
10387 | # being built; programs in there won't even run. | |
10388 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10389 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 10390 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
10391 | fi |
10392 | ||
10393 | if test "x${use_gnu_ld}" = x && | |
10394 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10395 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 10396 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
10397 | fi |
10398 | ||
a481dbb7 DD |
10399 | # Search for other target-specific linker scripts and such. |
10400 | case "${target}" in | |
4e206d7e DB |
10401 | mep*) |
10402 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10403 | ;; | |
228cf97d AM |
10404 | # The VxWorks support for shared libraries is getting in |
10405 | # incrementally. Make sure it doesn't get activated implicitly: | |
10406 | *vxworks*) | |
10407 | if test "${enable_shared-unset}" = unset ; then | |
10408 | enable_shared=no | |
10409 | # So the build of libraries knows ... | |
10410 | target_configargs="${target_configargs} --disable-shared" | |
10411 | # So gcc knows ... | |
10412 | host_configargs="${host_configargs} --disable-shared" | |
10413 | fi | |
10414 | ;; | |
4e206d7e DB |
10415 | esac |
10416 | ||
a0da8069 | 10417 | # Makefile fragments. |
3e707e94 PB |
10418 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10419 | do | |
10420 | eval fragval=\$$frag | |
10421 | if test $fragval != /dev/null; then | |
10422 | eval $frag=${srcdir}/$fragval | |
10423 | fi | |
10424 | done | |
a0da8069 NN |
10425 | |
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | # Miscellanea: directories, flags, etc. | |
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
3bbd2f8f | 10438 | |
6a9cf61e | 10439 | # Build module lists & subconfigure args. |
a0da8069 NN |
10440 | |
10441 | ||
10442 | ||
be01d343 PB |
10443 | # Host module lists & subconfigure args. |
10444 | ||
10445 | ||
10446 | ||
911e63d0 | 10447 | |
be01d343 PB |
10448 | # Target module lists & subconfigure args. |
10449 | ||
10450 | ||
10451 | ||
10452 | # Build tools. | |
10453 | ||
10454 | ||
10455 | ||
1576798e PB |
10456 | |
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
e472ec9f | 10469 | |
228cf97d AM |
10470 | |
10471 | ||
10472 | ||
be01d343 PB |
10473 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10474 | # on the build machine. These are used if the Makefile can't locate these | |
10475 | # programs in objdir. | |
10476 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10477 | ||
10478 | for ac_prog in 'bison -y' byacc yacc | |
10479 | do | |
c6b750e1 | 10480 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10481 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10483 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10484 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 10485 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10486 | else |
10487 | if test -n "$YACC"; then | |
10488 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10489 | else | |
c6b750e1 DJ |
10490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10491 | for as_dir in $PATH | |
10492 | do | |
10493 | IFS=$as_save_IFS | |
10494 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10495 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10497 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 10498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10499 | break 2 |
10500 | fi | |
10501 | done | |
81ecdfbb RW |
10502 | done |
10503 | IFS=$as_save_IFS | |
c6b750e1 | 10504 | |
be01d343 PB |
10505 | fi |
10506 | fi | |
c6b750e1 | 10507 | YACC=$ac_cv_prog_YACC |
be01d343 | 10508 | if test -n "$YACC"; then |
81ecdfbb RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10510 | $as_echo "$YACC" >&6; } | |
be01d343 | 10511 | else |
81ecdfbb RW |
10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10513 | $as_echo "no" >&6; } | |
be01d343 PB |
10514 | fi |
10515 | ||
81ecdfbb | 10516 | |
c6b750e1 | 10517 | test -n "$YACC" && break |
be01d343 PB |
10518 | done |
10519 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10520 | ||
10521 | case " $build_configdirs " in | |
10522 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
10523 | esac |
10524 | ||
10525 | for ac_prog in bison | |
10526 | do | |
c6b750e1 | 10527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10528 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10530 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10531 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 10532 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10533 | else |
10534 | if test -n "$BISON"; then | |
10535 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10536 | else | |
c6b750e1 DJ |
10537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10538 | for as_dir in $PATH | |
10539 | do | |
10540 | IFS=$as_save_IFS | |
10541 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10542 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10543 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10544 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 10545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10546 | break 2 |
10547 | fi | |
10548 | done | |
81ecdfbb RW |
10549 | done |
10550 | IFS=$as_save_IFS | |
c6b750e1 | 10551 | |
be01d343 PB |
10552 | fi |
10553 | fi | |
c6b750e1 | 10554 | BISON=$ac_cv_prog_BISON |
be01d343 | 10555 | if test -n "$BISON"; then |
81ecdfbb RW |
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10557 | $as_echo "$BISON" >&6; } | |
be01d343 | 10558 | else |
81ecdfbb RW |
10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10560 | $as_echo "no" >&6; } | |
be01d343 PB |
10561 | fi |
10562 | ||
81ecdfbb | 10563 | |
c6b750e1 | 10564 | test -n "$BISON" && break |
be01d343 PB |
10565 | done |
10566 | test -n "$BISON" || BISON="$MISSING bison" | |
10567 | ||
10568 | case " $build_configdirs " in | |
10569 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10570 | esac | |
10571 | ||
10572 | for ac_prog in gm4 gnum4 m4 | |
10573 | do | |
c6b750e1 | 10574 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10575 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10577 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10578 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 10579 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10580 | else |
10581 | if test -n "$M4"; then | |
10582 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10583 | else | |
c6b750e1 DJ |
10584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10585 | for as_dir in $PATH | |
10586 | do | |
10587 | IFS=$as_save_IFS | |
10588 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10589 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10591 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 10592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10593 | break 2 |
10594 | fi | |
10595 | done | |
81ecdfbb RW |
10596 | done |
10597 | IFS=$as_save_IFS | |
c6b750e1 | 10598 | |
be01d343 PB |
10599 | fi |
10600 | fi | |
c6b750e1 | 10601 | M4=$ac_cv_prog_M4 |
be01d343 | 10602 | if test -n "$M4"; then |
81ecdfbb RW |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10604 | $as_echo "$M4" >&6; } | |
be01d343 | 10605 | else |
81ecdfbb RW |
10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10607 | $as_echo "no" >&6; } | |
be01d343 PB |
10608 | fi |
10609 | ||
81ecdfbb | 10610 | |
c6b750e1 | 10611 | test -n "$M4" && break |
be01d343 PB |
10612 | done |
10613 | test -n "$M4" || M4="$MISSING m4" | |
10614 | ||
10615 | case " $build_configdirs " in | |
10616 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10617 | esac | |
10618 | ||
10619 | for ac_prog in flex lex | |
10620 | do | |
c6b750e1 | 10621 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10622 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10624 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10625 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 10626 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10627 | else |
10628 | if test -n "$LEX"; then | |
10629 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10630 | else | |
c6b750e1 DJ |
10631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10632 | for as_dir in $PATH | |
10633 | do | |
10634 | IFS=$as_save_IFS | |
10635 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10636 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10638 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 10639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10640 | break 2 |
10641 | fi | |
10642 | done | |
81ecdfbb RW |
10643 | done |
10644 | IFS=$as_save_IFS | |
c6b750e1 | 10645 | |
be01d343 PB |
10646 | fi |
10647 | fi | |
c6b750e1 | 10648 | LEX=$ac_cv_prog_LEX |
be01d343 | 10649 | if test -n "$LEX"; then |
81ecdfbb RW |
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10651 | $as_echo "$LEX" >&6; } | |
be01d343 | 10652 | else |
81ecdfbb RW |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10654 | $as_echo "no" >&6; } | |
be01d343 PB |
10655 | fi |
10656 | ||
81ecdfbb | 10657 | |
c6b750e1 | 10658 | test -n "$LEX" && break |
be01d343 PB |
10659 | done |
10660 | test -n "$LEX" || LEX="$MISSING flex" | |
10661 | ||
10662 | case " $build_configdirs " in | |
10663 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10664 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10665 | esac | |
10666 | ||
10667 | for ac_prog in flex | |
10668 | do | |
c6b750e1 | 10669 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10670 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10672 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10673 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 10674 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10675 | else |
10676 | if test -n "$FLEX"; then | |
10677 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10678 | else | |
c6b750e1 DJ |
10679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10680 | for as_dir in $PATH | |
10681 | do | |
10682 | IFS=$as_save_IFS | |
10683 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10684 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10686 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 10687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10688 | break 2 |
10689 | fi | |
10690 | done | |
81ecdfbb RW |
10691 | done |
10692 | IFS=$as_save_IFS | |
c6b750e1 | 10693 | |
be01d343 PB |
10694 | fi |
10695 | fi | |
c6b750e1 | 10696 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 10697 | if test -n "$FLEX"; then |
81ecdfbb RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10699 | $as_echo "$FLEX" >&6; } | |
be01d343 | 10700 | else |
81ecdfbb RW |
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10702 | $as_echo "no" >&6; } | |
be01d343 PB |
10703 | fi |
10704 | ||
81ecdfbb | 10705 | |
c6b750e1 | 10706 | test -n "$FLEX" && break |
be01d343 PB |
10707 | done |
10708 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10709 | ||
10710 | case " $build_configdirs " in | |
10711 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10712 | esac | |
10713 | ||
10714 | for ac_prog in makeinfo | |
10715 | do | |
c6b750e1 | 10716 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10717 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10719 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10720 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 10721 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10722 | else |
10723 | if test -n "$MAKEINFO"; then | |
10724 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10725 | else | |
c6b750e1 DJ |
10726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10727 | for as_dir in $PATH | |
10728 | do | |
10729 | IFS=$as_save_IFS | |
10730 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10731 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10733 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 10734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10735 | break 2 |
10736 | fi | |
10737 | done | |
81ecdfbb RW |
10738 | done |
10739 | IFS=$as_save_IFS | |
c6b750e1 | 10740 | |
be01d343 PB |
10741 | fi |
10742 | fi | |
c6b750e1 | 10743 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 10744 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10746 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 10747 | else |
81ecdfbb RW |
10748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10749 | $as_echo "no" >&6; } | |
be01d343 PB |
10750 | fi |
10751 | ||
81ecdfbb | 10752 | |
c6b750e1 | 10753 | test -n "$MAKEINFO" && break |
be01d343 PB |
10754 | done |
10755 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10756 | ||
10757 | case " $build_configdirs " in | |
10758 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10759 | *) | |
10760 | ||
10ad8ef3 | 10761 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
10762 | # higher, else we use the "missing" dummy. |
10763 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 10764 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
10765 | : |
10766 | else | |
10767 | MAKEINFO="$MISSING makeinfo" | |
10768 | fi | |
10769 | ;; | |
10770 | ||
10771 | esac | |
a0da8069 | 10772 | |
be01d343 | 10773 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 10774 | |
be01d343 PB |
10775 | for ac_prog in expect |
10776 | do | |
c6b750e1 | 10777 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10778 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10780 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10781 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 10782 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10783 | else |
10784 | if test -n "$EXPECT"; then | |
10785 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10786 | else | |
c6b750e1 DJ |
10787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10788 | for as_dir in $PATH | |
10789 | do | |
10790 | IFS=$as_save_IFS | |
10791 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10792 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10794 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 10795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10796 | break 2 |
10797 | fi | |
10798 | done | |
81ecdfbb RW |
10799 | done |
10800 | IFS=$as_save_IFS | |
c6b750e1 | 10801 | |
be01d343 PB |
10802 | fi |
10803 | fi | |
c6b750e1 | 10804 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 10805 | if test -n "$EXPECT"; then |
81ecdfbb RW |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10807 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 10808 | else |
81ecdfbb RW |
10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10810 | $as_echo "no" >&6; } | |
be01d343 | 10811 | fi |
a0da8069 | 10812 | |
81ecdfbb | 10813 | |
c6b750e1 | 10814 | test -n "$EXPECT" && break |
be01d343 PB |
10815 | done |
10816 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 10817 | |
be01d343 PB |
10818 | case " $configdirs " in |
10819 | *" expect "*) | |
10820 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10821 | ;; | |
10822 | esac | |
a0da8069 | 10823 | |
be01d343 PB |
10824 | for ac_prog in runtest |
10825 | do | |
c6b750e1 | 10826 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10827 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10829 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10830 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 10831 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10832 | else |
10833 | if test -n "$RUNTEST"; then | |
10834 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
10835 | else | |
c6b750e1 DJ |
10836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10837 | for as_dir in $PATH | |
10838 | do | |
10839 | IFS=$as_save_IFS | |
10840 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10841 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10843 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 10844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10845 | break 2 |
10846 | fi | |
10847 | done | |
81ecdfbb RW |
10848 | done |
10849 | IFS=$as_save_IFS | |
c6b750e1 | 10850 | |
be01d343 PB |
10851 | fi |
10852 | fi | |
c6b750e1 | 10853 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 10854 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10856 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 10857 | else |
81ecdfbb RW |
10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10859 | $as_echo "no" >&6; } | |
be01d343 | 10860 | fi |
a0da8069 | 10861 | |
81ecdfbb | 10862 | |
c6b750e1 | 10863 | test -n "$RUNTEST" && break |
be01d343 PB |
10864 | done |
10865 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 10866 | |
be01d343 PB |
10867 | case " $configdirs " in |
10868 | *" dejagnu "*) | |
6b89cc21 | 10869 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
10870 | ;; |
10871 | esac | |
a0da8069 NN |
10872 | |
10873 | ||
a0da8069 | 10874 | # Host tools. |
859789af AC |
10875 | ncn_tool_prefix= |
10876 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10877 | ncn_target_tool_prefix= | |
10878 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10879 | ||
9a819804 AO |
10880 | |
10881 | ||
10882 | if test -n "$AR"; then | |
10883 | ac_cv_prog_AR=$AR | |
10884 | elif test -n "$ac_cv_prog_AR"; then | |
10885 | AR=$ac_cv_prog_AR | |
10886 | fi | |
10887 | ||
10888 | if test -n "$ac_cv_prog_AR"; then | |
10889 | for ncn_progname in ar; do | |
10890 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10891 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10893 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10894 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10895 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10896 | else |
10897 | if test -n "$AR"; then | |
10898 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10899 | else | |
10900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10901 | for as_dir in $PATH | |
10902 | do | |
10903 | IFS=$as_save_IFS | |
10904 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10905 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10907 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10909 | break 2 |
10910 | fi | |
10911 | done | |
81ecdfbb RW |
10912 | done |
10913 | IFS=$as_save_IFS | |
9a819804 AO |
10914 | |
10915 | fi | |
10916 | fi | |
10917 | AR=$ac_cv_prog_AR | |
10918 | if test -n "$AR"; then | |
81ecdfbb RW |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10920 | $as_echo "$AR" >&6; } | |
9a819804 | 10921 | else |
81ecdfbb RW |
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10923 | $as_echo "no" >&6; } | |
9a819804 AO |
10924 | fi |
10925 | ||
81ecdfbb | 10926 | |
9a819804 AO |
10927 | done |
10928 | fi | |
10929 | ||
10930 | for ncn_progname in ar; do | |
05cbd757 PB |
10931 | if test -n "$ncn_tool_prefix"; then |
10932 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10933 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10935 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10936 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10937 | $as_echo_n "(cached) " >&6 |
859789af AC |
10938 | else |
10939 | if test -n "$AR"; then | |
10940 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10941 | else | |
c6b750e1 DJ |
10942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10943 | for as_dir in $PATH | |
10944 | do | |
10945 | IFS=$as_save_IFS | |
10946 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10947 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10949 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 10950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10951 | break 2 |
10952 | fi | |
10953 | done | |
81ecdfbb RW |
10954 | done |
10955 | IFS=$as_save_IFS | |
c6b750e1 | 10956 | |
859789af AC |
10957 | fi |
10958 | fi | |
c6b750e1 | 10959 | AR=$ac_cv_prog_AR |
859789af | 10960 | if test -n "$AR"; then |
81ecdfbb RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10962 | $as_echo "$AR" >&6; } | |
859789af | 10963 | else |
81ecdfbb RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10965 | $as_echo "no" >&6; } | |
859789af AC |
10966 | fi |
10967 | ||
81ecdfbb | 10968 | |
05cbd757 PB |
10969 | fi |
10970 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10971 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10972 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10974 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10975 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10976 | $as_echo_n "(cached) " >&6 |
859789af | 10977 | else |
05cbd757 PB |
10978 | if test -n "$AR"; then |
10979 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 10980 | else |
c6b750e1 DJ |
10981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10982 | for as_dir in $PATH | |
10983 | do | |
10984 | IFS=$as_save_IFS | |
10985 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10986 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10988 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10990 | break 2 |
10991 | fi | |
10992 | done | |
81ecdfbb RW |
10993 | done |
10994 | IFS=$as_save_IFS | |
c6b750e1 | 10995 | |
859789af AC |
10996 | fi |
10997 | fi | |
c6b750e1 | 10998 | AR=$ac_cv_prog_AR |
05cbd757 | 10999 | if test -n "$AR"; then |
81ecdfbb RW |
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11001 | $as_echo "$AR" >&6; } | |
859789af | 11002 | else |
81ecdfbb RW |
11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11004 | $as_echo "no" >&6; } | |
859789af | 11005 | fi |
c6b750e1 | 11006 | |
81ecdfbb | 11007 | |
05cbd757 PB |
11008 | fi |
11009 | test -n "$ac_cv_prog_AR" && break | |
11010 | done | |
11011 | ||
11012 | if test -z "$ac_cv_prog_AR" ; then | |
11013 | set dummy ar | |
11014 | if test $build = $host ; then | |
11015 | AR="$2" | |
859789af | 11016 | else |
05cbd757 | 11017 | AR="${ncn_tool_prefix}$2" |
859789af | 11018 | fi |
859789af AC |
11019 | fi |
11020 | ||
9a819804 AO |
11021 | |
11022 | ||
11023 | if test -n "$AS"; then | |
11024 | ac_cv_prog_AS=$AS | |
11025 | elif test -n "$ac_cv_prog_AS"; then | |
11026 | AS=$ac_cv_prog_AS | |
11027 | fi | |
11028 | ||
11029 | if test -n "$ac_cv_prog_AS"; then | |
11030 | for ncn_progname in as; do | |
11031 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11032 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11034 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11035 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11036 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11037 | else |
11038 | if test -n "$AS"; then | |
11039 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
11040 | else | |
11041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11042 | for as_dir in $PATH | |
11043 | do | |
11044 | IFS=$as_save_IFS | |
11045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11046 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11048 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 11049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11050 | break 2 |
11051 | fi | |
11052 | done | |
81ecdfbb RW |
11053 | done |
11054 | IFS=$as_save_IFS | |
9a819804 AO |
11055 | |
11056 | fi | |
11057 | fi | |
11058 | AS=$ac_cv_prog_AS | |
11059 | if test -n "$AS"; then | |
81ecdfbb RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11061 | $as_echo "$AS" >&6; } | |
9a819804 | 11062 | else |
81ecdfbb RW |
11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11064 | $as_echo "no" >&6; } | |
9a819804 AO |
11065 | fi |
11066 | ||
81ecdfbb | 11067 | |
9a819804 AO |
11068 | done |
11069 | fi | |
11070 | ||
11071 | for ncn_progname in as; do | |
05cbd757 PB |
11072 | if test -n "$ncn_tool_prefix"; then |
11073 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11074 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11076 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11077 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11078 | $as_echo_n "(cached) " >&6 |
859789af AC |
11079 | else |
11080 | if test -n "$AS"; then | |
11081 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
11082 | else |
11083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11084 | for as_dir in $PATH | |
11085 | do | |
11086 | IFS=$as_save_IFS | |
11087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11088 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11090 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11092 | break 2 |
11093 | fi | |
11094 | done | |
81ecdfbb RW |
11095 | done |
11096 | IFS=$as_save_IFS | |
c6b750e1 | 11097 | |
859789af AC |
11098 | fi |
11099 | fi | |
c6b750e1 | 11100 | AS=$ac_cv_prog_AS |
859789af | 11101 | if test -n "$AS"; then |
81ecdfbb RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11103 | $as_echo "$AS" >&6; } | |
859789af | 11104 | else |
81ecdfbb RW |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11106 | $as_echo "no" >&6; } | |
859789af AC |
11107 | fi |
11108 | ||
81ecdfbb | 11109 | |
05cbd757 PB |
11110 | fi |
11111 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11112 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11113 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11115 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11116 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11117 | $as_echo_n "(cached) " >&6 |
859789af | 11118 | else |
05cbd757 PB |
11119 | if test -n "$AS"; then |
11120 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 11121 | else |
c6b750e1 DJ |
11122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11123 | for as_dir in $PATH | |
11124 | do | |
11125 | IFS=$as_save_IFS | |
11126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11127 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11129 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 11130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11131 | break 2 |
11132 | fi | |
11133 | done | |
81ecdfbb RW |
11134 | done |
11135 | IFS=$as_save_IFS | |
c6b750e1 | 11136 | |
859789af AC |
11137 | fi |
11138 | fi | |
c6b750e1 | 11139 | AS=$ac_cv_prog_AS |
05cbd757 | 11140 | if test -n "$AS"; then |
81ecdfbb RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11142 | $as_echo "$AS" >&6; } | |
859789af | 11143 | else |
81ecdfbb RW |
11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11145 | $as_echo "no" >&6; } | |
859789af | 11146 | fi |
c6b750e1 | 11147 | |
81ecdfbb | 11148 | |
05cbd757 PB |
11149 | fi |
11150 | test -n "$ac_cv_prog_AS" && break | |
11151 | done | |
11152 | ||
11153 | if test -z "$ac_cv_prog_AS" ; then | |
11154 | set dummy as | |
11155 | if test $build = $host ; then | |
11156 | AS="$2" | |
859789af | 11157 | else |
05cbd757 | 11158 | AS="${ncn_tool_prefix}$2" |
859789af | 11159 | fi |
859789af AC |
11160 | fi |
11161 | ||
9a819804 AO |
11162 | |
11163 | ||
11164 | if test -n "$DLLTOOL"; then | |
11165 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11166 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11167 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11168 | fi | |
11169 | ||
11170 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11171 | for ncn_progname in dlltool; do | |
11172 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11173 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11175 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11176 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11177 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11178 | else |
11179 | if test -n "$DLLTOOL"; then | |
11180 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11181 | else | |
11182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11183 | for as_dir in $PATH | |
11184 | do | |
11185 | IFS=$as_save_IFS | |
11186 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11187 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11189 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11191 | break 2 |
11192 | fi | |
11193 | done | |
81ecdfbb RW |
11194 | done |
11195 | IFS=$as_save_IFS | |
9a819804 AO |
11196 | |
11197 | fi | |
11198 | fi | |
11199 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11200 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11202 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 11203 | else |
81ecdfbb RW |
11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11205 | $as_echo "no" >&6; } | |
9a819804 AO |
11206 | fi |
11207 | ||
81ecdfbb | 11208 | |
9a819804 AO |
11209 | done |
11210 | fi | |
11211 | ||
11212 | for ncn_progname in dlltool; do | |
05cbd757 PB |
11213 | if test -n "$ncn_tool_prefix"; then |
11214 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11215 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11217 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11218 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11219 | $as_echo_n "(cached) " >&6 |
859789af AC |
11220 | else |
11221 | if test -n "$DLLTOOL"; then | |
11222 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11223 | else | |
c6b750e1 DJ |
11224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11225 | for as_dir in $PATH | |
11226 | do | |
11227 | IFS=$as_save_IFS | |
11228 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11229 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11231 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11233 | break 2 |
11234 | fi | |
11235 | done | |
81ecdfbb RW |
11236 | done |
11237 | IFS=$as_save_IFS | |
c6b750e1 | 11238 | |
859789af AC |
11239 | fi |
11240 | fi | |
c6b750e1 | 11241 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 11242 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11244 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11245 | else |
81ecdfbb RW |
11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11247 | $as_echo "no" >&6; } | |
859789af AC |
11248 | fi |
11249 | ||
81ecdfbb | 11250 | |
05cbd757 PB |
11251 | fi |
11252 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11254 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11256 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11257 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11258 | $as_echo_n "(cached) " >&6 |
859789af | 11259 | else |
05cbd757 PB |
11260 | if test -n "$DLLTOOL"; then |
11261 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 11262 | else |
c6b750e1 DJ |
11263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11264 | for as_dir in $PATH | |
11265 | do | |
11266 | IFS=$as_save_IFS | |
11267 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11268 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11270 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11272 | break 2 |
11273 | fi | |
11274 | done | |
81ecdfbb RW |
11275 | done |
11276 | IFS=$as_save_IFS | |
c6b750e1 | 11277 | |
859789af AC |
11278 | fi |
11279 | fi | |
c6b750e1 | 11280 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 11281 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11283 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11284 | else |
81ecdfbb RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11286 | $as_echo "no" >&6; } | |
859789af | 11287 | fi |
c6b750e1 | 11288 | |
81ecdfbb | 11289 | |
05cbd757 PB |
11290 | fi |
11291 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11292 | done | |
11293 | ||
11294 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11295 | set dummy dlltool | |
11296 | if test $build = $host ; then | |
11297 | DLLTOOL="$2" | |
859789af | 11298 | else |
05cbd757 | 11299 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 11300 | fi |
859789af AC |
11301 | fi |
11302 | ||
9a819804 AO |
11303 | |
11304 | ||
228cf97d AM |
11305 | if test -n "$DSYMUTIL"; then |
11306 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11307 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11308 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11309 | fi | |
11310 | ||
11311 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11312 | for ncn_progname in dsymutil; do | |
11313 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11314 | set dummy ${ncn_progname}; ac_word=$2 | |
11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11316 | $as_echo_n "checking for $ac_word... " >&6; } | |
11317 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11318 | $as_echo_n "(cached) " >&6 | |
11319 | else | |
11320 | if test -n "$DSYMUTIL"; then | |
11321 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11322 | else | |
11323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11324 | for as_dir in $PATH | |
11325 | do | |
11326 | IFS=$as_save_IFS | |
11327 | test -z "$as_dir" && as_dir=. | |
11328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11330 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11332 | break 2 | |
11333 | fi | |
11334 | done | |
11335 | done | |
11336 | IFS=$as_save_IFS | |
11337 | ||
11338 | fi | |
11339 | fi | |
11340 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11341 | if test -n "$DSYMUTIL"; then | |
11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11343 | $as_echo "$DSYMUTIL" >&6; } | |
11344 | else | |
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11346 | $as_echo "no" >&6; } | |
11347 | fi | |
11348 | ||
11349 | ||
11350 | done | |
11351 | fi | |
11352 | ||
11353 | for ncn_progname in dsymutil; do | |
11354 | if test -n "$ncn_tool_prefix"; then | |
11355 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11356 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11358 | $as_echo_n "checking for $ac_word... " >&6; } | |
11359 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11360 | $as_echo_n "(cached) " >&6 | |
11361 | else | |
11362 | if test -n "$DSYMUTIL"; then | |
11363 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11364 | else | |
11365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11366 | for as_dir in $PATH | |
11367 | do | |
11368 | IFS=$as_save_IFS | |
11369 | test -z "$as_dir" && as_dir=. | |
11370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11372 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11374 | break 2 | |
11375 | fi | |
11376 | done | |
11377 | done | |
11378 | IFS=$as_save_IFS | |
11379 | ||
11380 | fi | |
11381 | fi | |
11382 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11383 | if test -n "$DSYMUTIL"; then | |
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11385 | $as_echo "$DSYMUTIL" >&6; } | |
11386 | else | |
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11388 | $as_echo "no" >&6; } | |
11389 | fi | |
11390 | ||
11391 | ||
11392 | fi | |
11393 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11394 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11395 | set dummy ${ncn_progname}; ac_word=$2 | |
11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11397 | $as_echo_n "checking for $ac_word... " >&6; } | |
11398 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11399 | $as_echo_n "(cached) " >&6 | |
11400 | else | |
11401 | if test -n "$DSYMUTIL"; then | |
11402 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11403 | else | |
11404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11405 | for as_dir in $PATH | |
11406 | do | |
11407 | IFS=$as_save_IFS | |
11408 | test -z "$as_dir" && as_dir=. | |
11409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11411 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11413 | break 2 | |
11414 | fi | |
11415 | done | |
11416 | done | |
11417 | IFS=$as_save_IFS | |
11418 | ||
11419 | fi | |
11420 | fi | |
11421 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11422 | if test -n "$DSYMUTIL"; then | |
11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11424 | $as_echo "$DSYMUTIL" >&6; } | |
11425 | else | |
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11427 | $as_echo "no" >&6; } | |
11428 | fi | |
11429 | ||
11430 | ||
11431 | fi | |
11432 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11433 | done | |
11434 | ||
11435 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11436 | set dummy dsymutil | |
11437 | if test $build = $host ; then | |
11438 | DSYMUTIL="$2" | |
11439 | else | |
11440 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11441 | fi | |
11442 | fi | |
11443 | ||
11444 | ||
11445 | ||
9a819804 AO |
11446 | if test -n "$LD"; then |
11447 | ac_cv_prog_LD=$LD | |
11448 | elif test -n "$ac_cv_prog_LD"; then | |
11449 | LD=$ac_cv_prog_LD | |
11450 | fi | |
11451 | ||
11452 | if test -n "$ac_cv_prog_LD"; then | |
11453 | for ncn_progname in ld; do | |
11454 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11455 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11457 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11458 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11459 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11460 | else |
11461 | if test -n "$LD"; then | |
11462 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11463 | else | |
11464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11465 | for as_dir in $PATH | |
11466 | do | |
11467 | IFS=$as_save_IFS | |
11468 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11469 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11470 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11471 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11473 | break 2 |
11474 | fi | |
11475 | done | |
81ecdfbb RW |
11476 | done |
11477 | IFS=$as_save_IFS | |
9a819804 AO |
11478 | |
11479 | fi | |
11480 | fi | |
11481 | LD=$ac_cv_prog_LD | |
11482 | if test -n "$LD"; then | |
81ecdfbb RW |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11484 | $as_echo "$LD" >&6; } | |
9a819804 | 11485 | else |
81ecdfbb RW |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11487 | $as_echo "no" >&6; } | |
9a819804 AO |
11488 | fi |
11489 | ||
81ecdfbb | 11490 | |
9a819804 AO |
11491 | done |
11492 | fi | |
11493 | ||
11494 | for ncn_progname in ld; do | |
05cbd757 PB |
11495 | if test -n "$ncn_tool_prefix"; then |
11496 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11497 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11499 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11500 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11501 | $as_echo_n "(cached) " >&6 |
859789af AC |
11502 | else |
11503 | if test -n "$LD"; then | |
11504 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11505 | else | |
c6b750e1 DJ |
11506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11507 | for as_dir in $PATH | |
11508 | do | |
11509 | IFS=$as_save_IFS | |
11510 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11511 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11513 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11515 | break 2 |
11516 | fi | |
11517 | done | |
81ecdfbb RW |
11518 | done |
11519 | IFS=$as_save_IFS | |
c6b750e1 | 11520 | |
859789af AC |
11521 | fi |
11522 | fi | |
c6b750e1 | 11523 | LD=$ac_cv_prog_LD |
859789af | 11524 | if test -n "$LD"; then |
81ecdfbb RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11526 | $as_echo "$LD" >&6; } | |
859789af | 11527 | else |
81ecdfbb RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11529 | $as_echo "no" >&6; } | |
859789af AC |
11530 | fi |
11531 | ||
81ecdfbb | 11532 | |
05cbd757 PB |
11533 | fi |
11534 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11535 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11536 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11538 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11539 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11540 | $as_echo_n "(cached) " >&6 |
859789af | 11541 | else |
05cbd757 PB |
11542 | if test -n "$LD"; then |
11543 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 11544 | else |
c6b750e1 DJ |
11545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11546 | for as_dir in $PATH | |
11547 | do | |
11548 | IFS=$as_save_IFS | |
11549 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11550 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11552 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11554 | break 2 |
11555 | fi | |
11556 | done | |
81ecdfbb RW |
11557 | done |
11558 | IFS=$as_save_IFS | |
c6b750e1 | 11559 | |
859789af AC |
11560 | fi |
11561 | fi | |
c6b750e1 | 11562 | LD=$ac_cv_prog_LD |
05cbd757 | 11563 | if test -n "$LD"; then |
81ecdfbb RW |
11564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11565 | $as_echo "$LD" >&6; } | |
859789af | 11566 | else |
81ecdfbb RW |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11568 | $as_echo "no" >&6; } | |
859789af | 11569 | fi |
c6b750e1 | 11570 | |
81ecdfbb | 11571 | |
05cbd757 PB |
11572 | fi |
11573 | test -n "$ac_cv_prog_LD" && break | |
11574 | done | |
11575 | ||
11576 | if test -z "$ac_cv_prog_LD" ; then | |
11577 | set dummy ld | |
11578 | if test $build = $host ; then | |
11579 | LD="$2" | |
859789af | 11580 | else |
05cbd757 | 11581 | LD="${ncn_tool_prefix}$2" |
859789af | 11582 | fi |
859789af AC |
11583 | fi |
11584 | ||
9a819804 AO |
11585 | |
11586 | ||
11587 | if test -n "$LIPO"; then | |
11588 | ac_cv_prog_LIPO=$LIPO | |
11589 | elif test -n "$ac_cv_prog_LIPO"; then | |
11590 | LIPO=$ac_cv_prog_LIPO | |
11591 | fi | |
11592 | ||
11593 | if test -n "$ac_cv_prog_LIPO"; then | |
11594 | for ncn_progname in lipo; do | |
11595 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11596 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11598 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11599 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11600 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11601 | else |
11602 | if test -n "$LIPO"; then | |
11603 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11604 | else | |
11605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11606 | for as_dir in $PATH | |
11607 | do | |
11608 | IFS=$as_save_IFS | |
11609 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11610 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11611 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11612 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11614 | break 2 |
11615 | fi | |
11616 | done | |
81ecdfbb RW |
11617 | done |
11618 | IFS=$as_save_IFS | |
9a819804 AO |
11619 | |
11620 | fi | |
11621 | fi | |
11622 | LIPO=$ac_cv_prog_LIPO | |
11623 | if test -n "$LIPO"; then | |
81ecdfbb RW |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11625 | $as_echo "$LIPO" >&6; } | |
9a819804 | 11626 | else |
81ecdfbb RW |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11628 | $as_echo "no" >&6; } | |
9a819804 AO |
11629 | fi |
11630 | ||
81ecdfbb | 11631 | |
9a819804 AO |
11632 | done |
11633 | fi | |
11634 | ||
11635 | for ncn_progname in lipo; do | |
be01d343 PB |
11636 | if test -n "$ncn_tool_prefix"; then |
11637 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11638 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11640 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11641 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11642 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11643 | else |
11644 | if test -n "$LIPO"; then | |
11645 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11646 | else | |
c6b750e1 DJ |
11647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11648 | for as_dir in $PATH | |
11649 | do | |
11650 | IFS=$as_save_IFS | |
11651 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11652 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11654 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11656 | break 2 |
11657 | fi | |
11658 | done | |
81ecdfbb RW |
11659 | done |
11660 | IFS=$as_save_IFS | |
c6b750e1 | 11661 | |
be01d343 PB |
11662 | fi |
11663 | fi | |
c6b750e1 | 11664 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11665 | if test -n "$LIPO"; then |
81ecdfbb RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11667 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11668 | else |
81ecdfbb RW |
11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11670 | $as_echo "no" >&6; } | |
be01d343 PB |
11671 | fi |
11672 | ||
81ecdfbb | 11673 | |
be01d343 PB |
11674 | fi |
11675 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11676 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11677 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11679 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11680 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11681 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11682 | else |
11683 | if test -n "$LIPO"; then | |
11684 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11685 | else | |
c6b750e1 DJ |
11686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11687 | for as_dir in $PATH | |
11688 | do | |
11689 | IFS=$as_save_IFS | |
11690 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11691 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11693 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11695 | break 2 |
11696 | fi | |
11697 | done | |
81ecdfbb RW |
11698 | done |
11699 | IFS=$as_save_IFS | |
c6b750e1 | 11700 | |
be01d343 PB |
11701 | fi |
11702 | fi | |
c6b750e1 | 11703 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11704 | if test -n "$LIPO"; then |
81ecdfbb RW |
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11706 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11707 | else |
81ecdfbb RW |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11709 | $as_echo "no" >&6; } | |
be01d343 | 11710 | fi |
c6b750e1 | 11711 | |
81ecdfbb | 11712 | |
be01d343 PB |
11713 | fi |
11714 | test -n "$ac_cv_prog_LIPO" && break | |
11715 | done | |
11716 | ||
11717 | if test -z "$ac_cv_prog_LIPO" ; then | |
11718 | set dummy lipo | |
11719 | if test $build = $host ; then | |
11720 | LIPO="$2" | |
11721 | else | |
11722 | LIPO="${ncn_tool_prefix}$2" | |
11723 | fi | |
11724 | fi | |
11725 | ||
9a819804 AO |
11726 | |
11727 | ||
11728 | if test -n "$NM"; then | |
11729 | ac_cv_prog_NM=$NM | |
11730 | elif test -n "$ac_cv_prog_NM"; then | |
11731 | NM=$ac_cv_prog_NM | |
11732 | fi | |
11733 | ||
11734 | if test -n "$ac_cv_prog_NM"; then | |
11735 | for ncn_progname in nm; do | |
11736 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11737 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11739 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11740 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11741 | $as_echo_n "(cached) " >&6 |
859789af AC |
11742 | else |
11743 | if test -n "$NM"; then | |
11744 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11745 | else | |
c6b750e1 DJ |
11746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11747 | for as_dir in $PATH | |
11748 | do | |
11749 | IFS=$as_save_IFS | |
11750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11751 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11753 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11755 | break 2 |
11756 | fi | |
11757 | done | |
81ecdfbb RW |
11758 | done |
11759 | IFS=$as_save_IFS | |
c6b750e1 | 11760 | |
859789af AC |
11761 | fi |
11762 | fi | |
c6b750e1 | 11763 | NM=$ac_cv_prog_NM |
859789af | 11764 | if test -n "$NM"; then |
81ecdfbb RW |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11766 | $as_echo "$NM" >&6; } | |
859789af | 11767 | else |
81ecdfbb RW |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11769 | $as_echo "no" >&6; } | |
859789af AC |
11770 | fi |
11771 | ||
81ecdfbb | 11772 | |
9a819804 AO |
11773 | done |
11774 | fi | |
11775 | ||
11776 | for ncn_progname in nm; do | |
11777 | if test -n "$ncn_tool_prefix"; then | |
11778 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11779 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11781 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11782 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11783 | $as_echo_n "(cached) " >&6 |
859789af | 11784 | else |
05cbd757 PB |
11785 | if test -n "$NM"; then |
11786 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 11787 | else |
c6b750e1 DJ |
11788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11789 | for as_dir in $PATH | |
11790 | do | |
11791 | IFS=$as_save_IFS | |
11792 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11793 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11794 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11795 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11797 | break 2 |
11798 | fi | |
11799 | done | |
81ecdfbb RW |
11800 | done |
11801 | IFS=$as_save_IFS | |
c6b750e1 | 11802 | |
859789af AC |
11803 | fi |
11804 | fi | |
c6b750e1 | 11805 | NM=$ac_cv_prog_NM |
05cbd757 | 11806 | if test -n "$NM"; then |
81ecdfbb RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11808 | $as_echo "$NM" >&6; } | |
859789af | 11809 | else |
81ecdfbb RW |
11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11811 | $as_echo "no" >&6; } | |
859789af | 11812 | fi |
c6b750e1 | 11813 | |
81ecdfbb | 11814 | |
05cbd757 | 11815 | fi |
9a819804 AO |
11816 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11817 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11818 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11820 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11821 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11822 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11823 | else |
11824 | if test -n "$NM"; then | |
11825 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11826 | else | |
11827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11828 | for as_dir in $PATH | |
11829 | do | |
11830 | IFS=$as_save_IFS | |
11831 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11832 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11834 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11836 | break 2 |
11837 | fi | |
11838 | done | |
81ecdfbb RW |
11839 | done |
11840 | IFS=$as_save_IFS | |
9a819804 AO |
11841 | |
11842 | fi | |
11843 | fi | |
11844 | NM=$ac_cv_prog_NM | |
11845 | if test -n "$NM"; then | |
81ecdfbb RW |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11847 | $as_echo "$NM" >&6; } | |
9a819804 | 11848 | else |
81ecdfbb RW |
11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11850 | $as_echo "no" >&6; } | |
9a819804 AO |
11851 | fi |
11852 | ||
81ecdfbb | 11853 | |
9a819804 AO |
11854 | fi |
11855 | test -n "$ac_cv_prog_NM" && break | |
11856 | done | |
11857 | ||
11858 | if test -z "$ac_cv_prog_NM" ; then | |
11859 | set dummy nm | |
11860 | if test $build = $host ; then | |
11861 | NM="$2" | |
11862 | else | |
11863 | NM="${ncn_tool_prefix}$2" | |
11864 | fi | |
11865 | fi | |
11866 | ||
11867 | ||
11868 | ||
11869 | if test -n "$RANLIB"; then | |
11870 | ac_cv_prog_RANLIB=$RANLIB | |
11871 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11872 | RANLIB=$ac_cv_prog_RANLIB | |
11873 | fi | |
11874 | ||
11875 | if test -n "$ac_cv_prog_RANLIB"; then | |
11876 | for ncn_progname in ranlib; do | |
11877 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11878 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11880 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11881 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11882 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11883 | else |
11884 | if test -n "$RANLIB"; then | |
11885 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11886 | else | |
11887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11888 | for as_dir in $PATH | |
11889 | do | |
11890 | IFS=$as_save_IFS | |
11891 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11892 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11894 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11896 | break 2 |
11897 | fi | |
11898 | done | |
81ecdfbb RW |
11899 | done |
11900 | IFS=$as_save_IFS | |
9a819804 AO |
11901 | |
11902 | fi | |
11903 | fi | |
11904 | RANLIB=$ac_cv_prog_RANLIB | |
11905 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11907 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 11908 | else |
81ecdfbb RW |
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11910 | $as_echo "no" >&6; } | |
9a819804 AO |
11911 | fi |
11912 | ||
81ecdfbb | 11913 | |
9a819804 AO |
11914 | done |
11915 | fi | |
859789af | 11916 | |
9a819804 | 11917 | for ncn_progname in ranlib; do |
05cbd757 PB |
11918 | if test -n "$ncn_tool_prefix"; then |
11919 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11920 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11922 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11923 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11924 | $as_echo_n "(cached) " >&6 |
859789af AC |
11925 | else |
11926 | if test -n "$RANLIB"; then | |
11927 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11928 | else | |
c6b750e1 DJ |
11929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11930 | for as_dir in $PATH | |
11931 | do | |
11932 | IFS=$as_save_IFS | |
11933 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11934 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11936 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11938 | break 2 |
11939 | fi | |
11940 | done | |
81ecdfbb RW |
11941 | done |
11942 | IFS=$as_save_IFS | |
c6b750e1 | 11943 | |
859789af AC |
11944 | fi |
11945 | fi | |
c6b750e1 | 11946 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 11947 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11949 | $as_echo "$RANLIB" >&6; } | |
859789af | 11950 | else |
81ecdfbb RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11952 | $as_echo "no" >&6; } | |
859789af AC |
11953 | fi |
11954 | ||
81ecdfbb | 11955 | |
05cbd757 PB |
11956 | fi |
11957 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11958 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11959 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11961 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11962 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11963 | $as_echo_n "(cached) " >&6 |
859789af | 11964 | else |
05cbd757 PB |
11965 | if test -n "$RANLIB"; then |
11966 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 11967 | else |
c6b750e1 DJ |
11968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11969 | for as_dir in $PATH | |
11970 | do | |
11971 | IFS=$as_save_IFS | |
11972 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11973 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11975 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11977 | break 2 |
11978 | fi | |
11979 | done | |
81ecdfbb RW |
11980 | done |
11981 | IFS=$as_save_IFS | |
c6b750e1 | 11982 | |
859789af AC |
11983 | fi |
11984 | fi | |
c6b750e1 | 11985 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 11986 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11988 | $as_echo "$RANLIB" >&6; } | |
859789af | 11989 | else |
81ecdfbb RW |
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11991 | $as_echo "no" >&6; } | |
859789af | 11992 | fi |
c6b750e1 | 11993 | |
81ecdfbb | 11994 | |
859789af | 11995 | fi |
05cbd757 PB |
11996 | test -n "$ac_cv_prog_RANLIB" && break |
11997 | done | |
11998 | ||
11999 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 12000 | RANLIB="true" |
859789af AC |
12001 | fi |
12002 | ||
9a819804 AO |
12003 | |
12004 | ||
12005 | if test -n "$STRIP"; then | |
12006 | ac_cv_prog_STRIP=$STRIP | |
12007 | elif test -n "$ac_cv_prog_STRIP"; then | |
12008 | STRIP=$ac_cv_prog_STRIP | |
12009 | fi | |
12010 | ||
12011 | if test -n "$ac_cv_prog_STRIP"; then | |
12012 | for ncn_progname in strip; do | |
12013 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12014 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12016 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12017 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12018 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12019 | else |
12020 | if test -n "$STRIP"; then | |
12021 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12022 | else | |
12023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12024 | for as_dir in $PATH | |
12025 | do | |
12026 | IFS=$as_save_IFS | |
12027 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12028 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12030 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 12031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12032 | break 2 |
12033 | fi | |
12034 | done | |
81ecdfbb RW |
12035 | done |
12036 | IFS=$as_save_IFS | |
9a819804 AO |
12037 | |
12038 | fi | |
12039 | fi | |
12040 | STRIP=$ac_cv_prog_STRIP | |
12041 | if test -n "$STRIP"; then | |
81ecdfbb RW |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12043 | $as_echo "$STRIP" >&6; } | |
9a819804 | 12044 | else |
81ecdfbb RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12046 | $as_echo "no" >&6; } | |
9a819804 AO |
12047 | fi |
12048 | ||
81ecdfbb | 12049 | |
9a819804 AO |
12050 | done |
12051 | fi | |
12052 | ||
12053 | for ncn_progname in strip; do | |
be01d343 PB |
12054 | if test -n "$ncn_tool_prefix"; then |
12055 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12056 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12058 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12059 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12060 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12061 | else |
12062 | if test -n "$STRIP"; then | |
12063 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12064 | else | |
c6b750e1 DJ |
12065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12066 | for as_dir in $PATH | |
12067 | do | |
12068 | IFS=$as_save_IFS | |
12069 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12070 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12072 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12074 | break 2 |
12075 | fi | |
12076 | done | |
81ecdfbb RW |
12077 | done |
12078 | IFS=$as_save_IFS | |
c6b750e1 | 12079 | |
be01d343 PB |
12080 | fi |
12081 | fi | |
c6b750e1 | 12082 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12083 | if test -n "$STRIP"; then |
81ecdfbb RW |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12085 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12086 | else |
81ecdfbb RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12088 | $as_echo "no" >&6; } | |
be01d343 PB |
12089 | fi |
12090 | ||
81ecdfbb | 12091 | |
be01d343 PB |
12092 | fi |
12093 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12094 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12095 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12097 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12098 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12099 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12100 | else |
12101 | if test -n "$STRIP"; then | |
12102 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12103 | else | |
c6b750e1 DJ |
12104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12105 | for as_dir in $PATH | |
12106 | do | |
12107 | IFS=$as_save_IFS | |
12108 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12109 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12111 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 12112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12113 | break 2 |
12114 | fi | |
12115 | done | |
81ecdfbb RW |
12116 | done |
12117 | IFS=$as_save_IFS | |
c6b750e1 | 12118 | |
be01d343 PB |
12119 | fi |
12120 | fi | |
c6b750e1 | 12121 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12122 | if test -n "$STRIP"; then |
81ecdfbb RW |
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12124 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12125 | else |
81ecdfbb RW |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12127 | $as_echo "no" >&6; } | |
be01d343 | 12128 | fi |
c6b750e1 | 12129 | |
81ecdfbb | 12130 | |
be01d343 PB |
12131 | fi |
12132 | test -n "$ac_cv_prog_STRIP" && break | |
12133 | done | |
12134 | ||
12135 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 12136 | STRIP="true" |
be01d343 PB |
12137 | fi |
12138 | ||
9a819804 AO |
12139 | |
12140 | ||
12141 | if test -n "$WINDRES"; then | |
12142 | ac_cv_prog_WINDRES=$WINDRES | |
12143 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12144 | WINDRES=$ac_cv_prog_WINDRES | |
12145 | fi | |
12146 | ||
12147 | if test -n "$ac_cv_prog_WINDRES"; then | |
12148 | for ncn_progname in windres; do | |
12149 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12150 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12152 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12153 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12154 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12155 | else |
12156 | if test -n "$WINDRES"; then | |
12157 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12158 | else | |
12159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12160 | for as_dir in $PATH | |
12161 | do | |
12162 | IFS=$as_save_IFS | |
12163 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12164 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12166 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12168 | break 2 |
12169 | fi | |
12170 | done | |
81ecdfbb RW |
12171 | done |
12172 | IFS=$as_save_IFS | |
9a819804 AO |
12173 | |
12174 | fi | |
12175 | fi | |
12176 | WINDRES=$ac_cv_prog_WINDRES | |
12177 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12179 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 12180 | else |
81ecdfbb RW |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12182 | $as_echo "no" >&6; } | |
9a819804 AO |
12183 | fi |
12184 | ||
81ecdfbb | 12185 | |
9a819804 AO |
12186 | done |
12187 | fi | |
12188 | ||
12189 | for ncn_progname in windres; do | |
05cbd757 PB |
12190 | if test -n "$ncn_tool_prefix"; then |
12191 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12192 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12194 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12195 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12196 | $as_echo_n "(cached) " >&6 |
859789af AC |
12197 | else |
12198 | if test -n "$WINDRES"; then | |
12199 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12200 | else | |
c6b750e1 DJ |
12201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12202 | for as_dir in $PATH | |
12203 | do | |
12204 | IFS=$as_save_IFS | |
12205 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12206 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12208 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12210 | break 2 |
12211 | fi | |
12212 | done | |
81ecdfbb RW |
12213 | done |
12214 | IFS=$as_save_IFS | |
c6b750e1 | 12215 | |
859789af AC |
12216 | fi |
12217 | fi | |
c6b750e1 | 12218 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 12219 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12221 | $as_echo "$WINDRES" >&6; } | |
859789af | 12222 | else |
81ecdfbb RW |
12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12224 | $as_echo "no" >&6; } | |
859789af AC |
12225 | fi |
12226 | ||
81ecdfbb | 12227 | |
05cbd757 PB |
12228 | fi |
12229 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12230 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12231 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12233 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12234 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12235 | $as_echo_n "(cached) " >&6 |
859789af | 12236 | else |
05cbd757 PB |
12237 | if test -n "$WINDRES"; then |
12238 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 12239 | else |
c6b750e1 DJ |
12240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12241 | for as_dir in $PATH | |
12242 | do | |
12243 | IFS=$as_save_IFS | |
12244 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12245 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12247 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12249 | break 2 |
12250 | fi | |
12251 | done | |
81ecdfbb RW |
12252 | done |
12253 | IFS=$as_save_IFS | |
c6b750e1 | 12254 | |
859789af AC |
12255 | fi |
12256 | fi | |
c6b750e1 | 12257 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 12258 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12260 | $as_echo "$WINDRES" >&6; } | |
859789af | 12261 | else |
81ecdfbb RW |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12263 | $as_echo "no" >&6; } | |
859789af | 12264 | fi |
c6b750e1 | 12265 | |
81ecdfbb | 12266 | |
05cbd757 PB |
12267 | fi |
12268 | test -n "$ac_cv_prog_WINDRES" && break | |
12269 | done | |
12270 | ||
12271 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12272 | set dummy windres | |
12273 | if test $build = $host ; then | |
12274 | WINDRES="$2" | |
859789af | 12275 | else |
05cbd757 | 12276 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 12277 | fi |
859789af AC |
12278 | fi |
12279 | ||
9a819804 AO |
12280 | |
12281 | ||
0c24b341 NC |
12282 | if test -n "$WINDMC"; then |
12283 | ac_cv_prog_WINDMC=$WINDMC | |
12284 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12285 | WINDMC=$ac_cv_prog_WINDMC | |
12286 | fi | |
12287 | ||
12288 | if test -n "$ac_cv_prog_WINDMC"; then | |
12289 | for ncn_progname in windmc; do | |
12290 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12291 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12293 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12294 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12295 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12296 | else |
12297 | if test -n "$WINDMC"; then | |
12298 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12299 | else | |
12300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12301 | for as_dir in $PATH | |
12302 | do | |
12303 | IFS=$as_save_IFS | |
12304 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12305 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12306 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12307 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12309 | break 2 |
12310 | fi | |
12311 | done | |
81ecdfbb RW |
12312 | done |
12313 | IFS=$as_save_IFS | |
0c24b341 NC |
12314 | |
12315 | fi | |
12316 | fi | |
12317 | WINDMC=$ac_cv_prog_WINDMC | |
12318 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12320 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12321 | else |
81ecdfbb RW |
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12323 | $as_echo "no" >&6; } | |
0c24b341 NC |
12324 | fi |
12325 | ||
81ecdfbb | 12326 | |
0c24b341 NC |
12327 | done |
12328 | fi | |
12329 | ||
12330 | for ncn_progname in windmc; do | |
12331 | if test -n "$ncn_tool_prefix"; then | |
12332 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12333 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12335 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12336 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12337 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12338 | else |
12339 | if test -n "$WINDMC"; then | |
12340 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12341 | else | |
12342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12343 | for as_dir in $PATH | |
12344 | do | |
12345 | IFS=$as_save_IFS | |
12346 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12347 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12349 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12351 | break 2 |
12352 | fi | |
12353 | done | |
81ecdfbb RW |
12354 | done |
12355 | IFS=$as_save_IFS | |
0c24b341 NC |
12356 | |
12357 | fi | |
12358 | fi | |
12359 | WINDMC=$ac_cv_prog_WINDMC | |
12360 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12362 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12363 | else |
81ecdfbb RW |
12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12365 | $as_echo "no" >&6; } | |
0c24b341 NC |
12366 | fi |
12367 | ||
81ecdfbb | 12368 | |
0c24b341 NC |
12369 | fi |
12370 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12371 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12372 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12374 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12375 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12376 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12377 | else |
12378 | if test -n "$WINDMC"; then | |
12379 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12380 | else | |
12381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12382 | for as_dir in $PATH | |
12383 | do | |
12384 | IFS=$as_save_IFS | |
12385 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12386 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12388 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12390 | break 2 |
12391 | fi | |
12392 | done | |
81ecdfbb RW |
12393 | done |
12394 | IFS=$as_save_IFS | |
0c24b341 NC |
12395 | |
12396 | fi | |
12397 | fi | |
12398 | WINDMC=$ac_cv_prog_WINDMC | |
12399 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12401 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12402 | else |
81ecdfbb RW |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12404 | $as_echo "no" >&6; } | |
0c24b341 NC |
12405 | fi |
12406 | ||
81ecdfbb | 12407 | |
0c24b341 NC |
12408 | fi |
12409 | test -n "$ac_cv_prog_WINDMC" && break | |
12410 | done | |
12411 | ||
12412 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12413 | set dummy windmc | |
12414 | if test $build = $host ; then | |
12415 | WINDMC="$2" | |
12416 | else | |
12417 | WINDMC="${ncn_tool_prefix}$2" | |
12418 | fi | |
12419 | fi | |
12420 | ||
12421 | ||
12422 | ||
9a819804 AO |
12423 | if test -n "$OBJCOPY"; then |
12424 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12425 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12426 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12427 | fi | |
12428 | ||
12429 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12430 | for ncn_progname in objcopy; do | |
12431 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12432 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12434 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12435 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 12436 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12437 | else |
12438 | if test -n "$OBJCOPY"; then | |
12439 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12440 | else | |
12441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12442 | for as_dir in $PATH | |
12443 | do | |
12444 | IFS=$as_save_IFS | |
12445 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12446 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12448 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 12449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12450 | break 2 |
12451 | fi | |
12452 | done | |
81ecdfbb RW |
12453 | done |
12454 | IFS=$as_save_IFS | |
9a819804 AO |
12455 | |
12456 | fi | |
12457 | fi | |
228cf97d AM |
12458 | OBJCOPY=$ac_cv_prog_OBJCOPY |
12459 | if test -n "$OBJCOPY"; then | |
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12461 | $as_echo "$OBJCOPY" >&6; } | |
12462 | else | |
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12464 | $as_echo "no" >&6; } | |
12465 | fi | |
12466 | ||
12467 | ||
12468 | done | |
12469 | fi | |
12470 | ||
12471 | for ncn_progname in objcopy; do | |
12472 | if test -n "$ncn_tool_prefix"; then | |
12473 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12474 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12476 | $as_echo_n "checking for $ac_word... " >&6; } | |
12477 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12478 | $as_echo_n "(cached) " >&6 | |
12479 | else | |
12480 | if test -n "$OBJCOPY"; then | |
12481 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12482 | else | |
12483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12484 | for as_dir in $PATH | |
12485 | do | |
12486 | IFS=$as_save_IFS | |
12487 | test -z "$as_dir" && as_dir=. | |
12488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12490 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" | |
12491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12492 | break 2 | |
12493 | fi | |
12494 | done | |
12495 | done | |
12496 | IFS=$as_save_IFS | |
12497 | ||
12498 | fi | |
12499 | fi | |
12500 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12501 | if test -n "$OBJCOPY"; then | |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12503 | $as_echo "$OBJCOPY" >&6; } | |
12504 | else | |
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12506 | $as_echo "no" >&6; } | |
12507 | fi | |
12508 | ||
12509 | ||
12510 | fi | |
12511 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12513 | set dummy ${ncn_progname}; ac_word=$2 | |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12515 | $as_echo_n "checking for $ac_word... " >&6; } | |
12516 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12517 | $as_echo_n "(cached) " >&6 | |
12518 | else | |
12519 | if test -n "$OBJCOPY"; then | |
12520 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12521 | else | |
12522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12523 | for as_dir in $PATH | |
12524 | do | |
12525 | IFS=$as_save_IFS | |
12526 | test -z "$as_dir" && as_dir=. | |
12527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12529 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
12530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12531 | break 2 | |
12532 | fi | |
12533 | done | |
12534 | done | |
12535 | IFS=$as_save_IFS | |
12536 | ||
12537 | fi | |
12538 | fi | |
12539 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12540 | if test -n "$OBJCOPY"; then | |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12542 | $as_echo "$OBJCOPY" >&6; } | |
12543 | else | |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12545 | $as_echo "no" >&6; } | |
12546 | fi | |
12547 | ||
12548 | ||
12549 | fi | |
12550 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12551 | done | |
12552 | ||
12553 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12554 | set dummy objcopy | |
12555 | if test $build = $host ; then | |
12556 | OBJCOPY="$2" | |
12557 | else | |
12558 | OBJCOPY="${ncn_tool_prefix}$2" | |
12559 | fi | |
12560 | fi | |
12561 | ||
12562 | ||
12563 | ||
12564 | if test -n "$OBJDUMP"; then | |
12565 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12566 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12567 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12568 | fi | |
12569 | ||
12570 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12571 | for ncn_progname in objdump; do | |
12572 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12573 | set dummy ${ncn_progname}; ac_word=$2 | |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12575 | $as_echo_n "checking for $ac_word... " >&6; } | |
12576 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
12577 | $as_echo_n "(cached) " >&6 | |
12578 | else | |
12579 | if test -n "$OBJDUMP"; then | |
12580 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12581 | else | |
12582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12583 | for as_dir in $PATH | |
12584 | do | |
12585 | IFS=$as_save_IFS | |
12586 | test -z "$as_dir" && as_dir=. | |
12587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12589 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
12590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12591 | break 2 | |
12592 | fi | |
12593 | done | |
12594 | done | |
12595 | IFS=$as_save_IFS | |
12596 | ||
12597 | fi | |
12598 | fi | |
12599 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12600 | if test -n "$OBJDUMP"; then | |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12602 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 12603 | else |
81ecdfbb RW |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12605 | $as_echo "no" >&6; } | |
9a819804 AO |
12606 | fi |
12607 | ||
81ecdfbb | 12608 | |
9a819804 AO |
12609 | done |
12610 | fi | |
12611 | ||
228cf97d | 12612 | for ncn_progname in objdump; do |
05cbd757 PB |
12613 | if test -n "$ncn_tool_prefix"; then |
12614 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12615 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12617 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12618 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12619 | $as_echo_n "(cached) " >&6 |
859789af | 12620 | else |
228cf97d AM |
12621 | if test -n "$OBJDUMP"; then |
12622 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12623 | else |
c6b750e1 DJ |
12624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12625 | for as_dir in $PATH | |
12626 | do | |
12627 | IFS=$as_save_IFS | |
12628 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12629 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12631 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12633 | break 2 |
12634 | fi | |
12635 | done | |
81ecdfbb RW |
12636 | done |
12637 | IFS=$as_save_IFS | |
c6b750e1 | 12638 | |
859789af AC |
12639 | fi |
12640 | fi | |
228cf97d AM |
12641 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12642 | if test -n "$OBJDUMP"; then | |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12644 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12645 | else |
81ecdfbb RW |
12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12647 | $as_echo "no" >&6; } | |
859789af AC |
12648 | fi |
12649 | ||
81ecdfbb | 12650 | |
05cbd757 | 12651 | fi |
228cf97d | 12652 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then |
05cbd757 PB |
12653 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12654 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12656 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12657 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12658 | $as_echo_n "(cached) " >&6 |
859789af | 12659 | else |
228cf97d AM |
12660 | if test -n "$OBJDUMP"; then |
12661 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12662 | else |
c6b750e1 DJ |
12663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12664 | for as_dir in $PATH | |
12665 | do | |
12666 | IFS=$as_save_IFS | |
12667 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12668 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12669 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12670 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 12671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12672 | break 2 |
12673 | fi | |
12674 | done | |
81ecdfbb RW |
12675 | done |
12676 | IFS=$as_save_IFS | |
c6b750e1 | 12677 | |
859789af AC |
12678 | fi |
12679 | fi | |
228cf97d AM |
12680 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12681 | if test -n "$OBJDUMP"; then | |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12683 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12684 | else |
81ecdfbb RW |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12686 | $as_echo "no" >&6; } | |
859789af | 12687 | fi |
c6b750e1 | 12688 | |
81ecdfbb | 12689 | |
05cbd757 | 12690 | fi |
228cf97d | 12691 | test -n "$ac_cv_prog_OBJDUMP" && break |
05cbd757 PB |
12692 | done |
12693 | ||
228cf97d AM |
12694 | if test -z "$ac_cv_prog_OBJDUMP" ; then |
12695 | set dummy objdump | |
05cbd757 | 12696 | if test $build = $host ; then |
228cf97d | 12697 | OBJDUMP="$2" |
859789af | 12698 | else |
228cf97d | 12699 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 12700 | fi |
859789af AC |
12701 | fi |
12702 | ||
9a819804 AO |
12703 | |
12704 | ||
228cf97d AM |
12705 | if test -n "$OTOOL"; then |
12706 | ac_cv_prog_OTOOL=$OTOOL | |
12707 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12708 | OTOOL=$ac_cv_prog_OTOOL | |
9a819804 AO |
12709 | fi |
12710 | ||
228cf97d AM |
12711 | if test -n "$ac_cv_prog_OTOOL"; then |
12712 | for ncn_progname in otool; do | |
9a819804 AO |
12713 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12714 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12716 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12717 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12718 | $as_echo_n "(cached) " >&6 |
9a819804 | 12719 | else |
228cf97d AM |
12720 | if test -n "$OTOOL"; then |
12721 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9a819804 AO |
12722 | else |
12723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12724 | for as_dir in $PATH | |
12725 | do | |
12726 | IFS=$as_save_IFS | |
12727 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12728 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12730 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12732 | break 2 |
12733 | fi | |
12734 | done | |
81ecdfbb RW |
12735 | done |
12736 | IFS=$as_save_IFS | |
9a819804 AO |
12737 | |
12738 | fi | |
12739 | fi | |
228cf97d AM |
12740 | OTOOL=$ac_cv_prog_OTOOL |
12741 | if test -n "$OTOOL"; then | |
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12743 | $as_echo "$OTOOL" >&6; } | |
9a819804 | 12744 | else |
81ecdfbb RW |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12746 | $as_echo "no" >&6; } | |
9a819804 AO |
12747 | fi |
12748 | ||
81ecdfbb | 12749 | |
9a819804 AO |
12750 | done |
12751 | fi | |
12752 | ||
228cf97d | 12753 | for ncn_progname in otool; do |
05cbd757 PB |
12754 | if test -n "$ncn_tool_prefix"; then |
12755 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12756 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12758 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12759 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12760 | $as_echo_n "(cached) " >&6 |
859789af | 12761 | else |
228cf97d AM |
12762 | if test -n "$OTOOL"; then |
12763 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12764 | else |
c6b750e1 DJ |
12765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12766 | for as_dir in $PATH | |
12767 | do | |
12768 | IFS=$as_save_IFS | |
12769 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12770 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12772 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12774 | break 2 |
12775 | fi | |
12776 | done | |
81ecdfbb RW |
12777 | done |
12778 | IFS=$as_save_IFS | |
c6b750e1 | 12779 | |
859789af AC |
12780 | fi |
12781 | fi | |
228cf97d AM |
12782 | OTOOL=$ac_cv_prog_OTOOL |
12783 | if test -n "$OTOOL"; then | |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12785 | $as_echo "$OTOOL" >&6; } | |
859789af | 12786 | else |
81ecdfbb RW |
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12788 | $as_echo "no" >&6; } | |
859789af AC |
12789 | fi |
12790 | ||
81ecdfbb | 12791 | |
05cbd757 | 12792 | fi |
228cf97d | 12793 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then |
05cbd757 PB |
12794 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12795 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12797 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12798 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12799 | $as_echo_n "(cached) " >&6 |
859789af | 12800 | else |
228cf97d AM |
12801 | if test -n "$OTOOL"; then |
12802 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12803 | else |
c6b750e1 DJ |
12804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12805 | for as_dir in $PATH | |
12806 | do | |
12807 | IFS=$as_save_IFS | |
12808 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12809 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12811 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12813 | break 2 |
12814 | fi | |
12815 | done | |
81ecdfbb RW |
12816 | done |
12817 | IFS=$as_save_IFS | |
c6b750e1 | 12818 | |
859789af AC |
12819 | fi |
12820 | fi | |
228cf97d AM |
12821 | OTOOL=$ac_cv_prog_OTOOL |
12822 | if test -n "$OTOOL"; then | |
12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12824 | $as_echo "$OTOOL" >&6; } | |
859789af | 12825 | else |
81ecdfbb RW |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12827 | $as_echo "no" >&6; } | |
859789af | 12828 | fi |
c6b750e1 | 12829 | |
81ecdfbb | 12830 | |
05cbd757 | 12831 | fi |
228cf97d | 12832 | test -n "$ac_cv_prog_OTOOL" && break |
05cbd757 PB |
12833 | done |
12834 | ||
228cf97d AM |
12835 | if test -z "$ac_cv_prog_OTOOL" ; then |
12836 | set dummy otool | |
05cbd757 | 12837 | if test $build = $host ; then |
228cf97d | 12838 | OTOOL="$2" |
859789af | 12839 | else |
228cf97d | 12840 | OTOOL="${ncn_tool_prefix}$2" |
859789af | 12841 | fi |
859789af AC |
12842 | fi |
12843 | ||
a0da8069 NN |
12844 | |
12845 | ||
b121d7d4 DD |
12846 | if test -n "$READELF"; then |
12847 | ac_cv_prog_READELF=$READELF | |
12848 | elif test -n "$ac_cv_prog_READELF"; then | |
12849 | READELF=$ac_cv_prog_READELF | |
12850 | fi | |
12851 | ||
12852 | if test -n "$ac_cv_prog_READELF"; then | |
12853 | for ncn_progname in readelf; do | |
12854 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12855 | set dummy ${ncn_progname}; ac_word=$2 | |
12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12857 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12858 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12859 | $as_echo_n "(cached) " >&6 |
12860 | else | |
12861 | if test -n "$READELF"; then | |
12862 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12863 | else | |
12864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12865 | for as_dir in $PATH | |
12866 | do | |
12867 | IFS=$as_save_IFS | |
12868 | test -z "$as_dir" && as_dir=. | |
12869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12871 | ac_cv_prog_READELF="${ncn_progname}" |
12872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12873 | break 2 | |
12874 | fi | |
12875 | done | |
12876 | done | |
12877 | IFS=$as_save_IFS | |
12878 | ||
12879 | fi | |
12880 | fi | |
12881 | READELF=$ac_cv_prog_READELF | |
12882 | if test -n "$READELF"; then | |
12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12884 | $as_echo "$READELF" >&6; } | |
12885 | else | |
12886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12887 | $as_echo "no" >&6; } | |
12888 | fi | |
12889 | ||
12890 | ||
12891 | done | |
12892 | fi | |
12893 | ||
12894 | for ncn_progname in readelf; do | |
12895 | if test -n "$ncn_tool_prefix"; then | |
12896 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12897 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12899 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12900 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12901 | $as_echo_n "(cached) " >&6 |
12902 | else | |
12903 | if test -n "$READELF"; then | |
12904 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12905 | else | |
12906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12907 | for as_dir in $PATH | |
12908 | do | |
12909 | IFS=$as_save_IFS | |
12910 | test -z "$as_dir" && as_dir=. | |
12911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12913 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12915 | break 2 | |
12916 | fi | |
12917 | done | |
12918 | done | |
12919 | IFS=$as_save_IFS | |
12920 | ||
12921 | fi | |
12922 | fi | |
12923 | READELF=$ac_cv_prog_READELF | |
12924 | if test -n "$READELF"; then | |
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12926 | $as_echo "$READELF" >&6; } | |
12927 | else | |
12928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12929 | $as_echo "no" >&6; } | |
12930 | fi | |
12931 | ||
12932 | ||
12933 | fi | |
12934 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12935 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12936 | set dummy ${ncn_progname}; ac_word=$2 | |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12938 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12939 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12940 | $as_echo_n "(cached) " >&6 |
12941 | else | |
12942 | if test -n "$READELF"; then | |
12943 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12944 | else | |
12945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12946 | for as_dir in $PATH | |
12947 | do | |
12948 | IFS=$as_save_IFS | |
12949 | test -z "$as_dir" && as_dir=. | |
12950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12952 | ac_cv_prog_READELF="${ncn_progname}" |
12953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12954 | break 2 | |
12955 | fi | |
12956 | done | |
12957 | done | |
12958 | IFS=$as_save_IFS | |
12959 | ||
12960 | fi | |
12961 | fi | |
12962 | READELF=$ac_cv_prog_READELF | |
12963 | if test -n "$READELF"; then | |
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12965 | $as_echo "$READELF" >&6; } | |
12966 | else | |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12968 | $as_echo "no" >&6; } | |
12969 | fi | |
12970 | ||
12971 | ||
12972 | fi | |
12973 | test -n "$ac_cv_prog_READELF" && break | |
12974 | done | |
12975 | ||
12976 | if test -z "$ac_cv_prog_READELF" ; then | |
12977 | set dummy readelf | |
12978 | if test $build = $host ; then | |
12979 | READELF="$2" | |
12980 | else | |
12981 | READELF="${ncn_tool_prefix}$2" | |
12982 | fi | |
12983 | fi | |
12984 | ||
12985 | ||
12986 | ||
a0da8069 NN |
12987 | |
12988 | ||
12989 | ||
de83289e | 12990 | |
228cf97d | 12991 | |
9e65489a | 12992 | |
50ad1254 L |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
12994 | $as_echo_n "checking for -plugin option... " >&6; } | |
12995 | ||
12996 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
12997 | plugin_option= | |
12998 | for plugin in $plugin_names; do | |
12999 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
13000 | if test x$plugin_so = x$plugin; then | |
13001 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
13002 | fi | |
13003 | if test x$plugin_so != x$plugin; then | |
13004 | plugin_option="--plugin $plugin_so" | |
13005 | break | |
13006 | fi | |
13007 | done | |
03c02f31 L |
13008 | if test -n "$ac_tool_prefix"; then |
13009 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13010 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13012 | $as_echo_n "checking for $ac_word... " >&6; } | |
13013 | if ${ac_cv_prog_AR+:} false; then : | |
13014 | $as_echo_n "(cached) " >&6 | |
13015 | else | |
13016 | if test -n "$AR"; then | |
13017 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13018 | else | |
13019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13020 | for as_dir in $PATH | |
13021 | do | |
13022 | IFS=$as_save_IFS | |
13023 | test -z "$as_dir" && as_dir=. | |
13024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13026 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
13027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13028 | break 2 | |
13029 | fi | |
13030 | done | |
13031 | done | |
13032 | IFS=$as_save_IFS | |
13033 | ||
13034 | fi | |
13035 | fi | |
13036 | AR=$ac_cv_prog_AR | |
13037 | if test -n "$AR"; then | |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13039 | $as_echo "$AR" >&6; } | |
13040 | else | |
13041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13042 | $as_echo "no" >&6; } | |
13043 | fi | |
13044 | ||
13045 | ||
13046 | fi | |
13047 | if test -z "$ac_cv_prog_AR"; then | |
13048 | ac_ct_AR=$AR | |
13049 | # Extract the first word of "ar", so it can be a program name with args. | |
13050 | set dummy ar; ac_word=$2 | |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13052 | $as_echo_n "checking for $ac_word... " >&6; } | |
13053 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
13054 | $as_echo_n "(cached) " >&6 | |
13055 | else | |
13056 | if test -n "$ac_ct_AR"; then | |
13057 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13058 | else | |
13059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13060 | for as_dir in $PATH | |
13061 | do | |
13062 | IFS=$as_save_IFS | |
13063 | test -z "$as_dir" && as_dir=. | |
13064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13066 | ac_cv_prog_ac_ct_AR="ar" | |
13067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13068 | break 2 | |
13069 | fi | |
13070 | done | |
13071 | done | |
13072 | IFS=$as_save_IFS | |
13073 | ||
13074 | fi | |
13075 | fi | |
13076 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13077 | if test -n "$ac_ct_AR"; then | |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13079 | $as_echo "$ac_ct_AR" >&6; } | |
13080 | else | |
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13082 | $as_echo "no" >&6; } | |
13083 | fi | |
13084 | ||
13085 | if test "x$ac_ct_AR" = x; then | |
13086 | AR="" | |
13087 | else | |
13088 | case $cross_compiling:$ac_tool_warned in | |
13089 | yes:) | |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13092 | ac_tool_warned=yes ;; | |
13093 | esac | |
13094 | AR=$ac_ct_AR | |
13095 | fi | |
13096 | else | |
13097 | AR="$ac_cv_prog_AR" | |
13098 | fi | |
13099 | ||
13100 | if test "${AR}" = "" ; then | |
13101 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13102 | fi | |
13103 | touch conftest.c | |
13104 | ${AR} $plugin_option rc conftest.a conftest.c | |
13105 | if test "$?" != 0; then | |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13107 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13108 | plugin_option= | |
13109 | fi | |
13110 | rm -f conftest.* | |
50ad1254 L |
13111 | if test -n "$plugin_option"; then |
13112 | PLUGIN_OPTION="$plugin_option" | |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13114 | $as_echo "$plugin_option" >&6; } | |
13115 | else | |
13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13117 | $as_echo "no" >&6; } | |
13118 | fi | |
13119 | ||
13120 | AR_PLUGIN_OPTION= | |
13121 | RANLIB_PLUGIN_OPTION= | |
13122 | if test -n "$PLUGIN_OPTION"; then | |
13123 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13124 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13125 | fi | |
13126 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13127 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13128 | fi | |
13129 | fi | |
13130 | ||
13131 | ||
13132 | ||
be01d343 | 13133 | # Target tools. |
c6b750e1 | 13134 | |
81ecdfbb RW |
13135 | # Check whether --with-build-time-tools was given. |
13136 | if test "${with_build_time_tools+set}" = set; then : | |
13137 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
13138 | x/*) ;; |
13139 | *) | |
13140 | with_build_time_tools= | |
81ecdfbb RW |
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13142 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
13143 | ;; |
13144 | esac | |
859789af | 13145 | else |
2429c060 | 13146 | with_build_time_tools= |
81ecdfbb RW |
13147 | fi |
13148 | ||
859789af | 13149 | |
9a819804 AO |
13150 | |
13151 | ||
13152 | if test -n "$CC_FOR_TARGET"; then | |
13153 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13154 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13155 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13156 | fi | |
13157 | ||
13158 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13159 | for ncn_progname in cc gcc; do | |
13160 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13161 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13163 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13164 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13165 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13166 | else |
13167 | if test -n "$CC_FOR_TARGET"; then | |
13168 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13169 | else | |
13170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13171 | for as_dir in $PATH | |
13172 | do | |
13173 | IFS=$as_save_IFS | |
13174 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13175 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13177 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13179 | break 2 |
13180 | fi | |
13181 | done | |
81ecdfbb RW |
13182 | done |
13183 | IFS=$as_save_IFS | |
9a819804 AO |
13184 | |
13185 | fi | |
13186 | fi | |
13187 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13188 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13190 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 13191 | else |
81ecdfbb RW |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13193 | $as_echo "no" >&6; } | |
9a819804 AO |
13194 | fi |
13195 | ||
81ecdfbb | 13196 | |
9a819804 AO |
13197 | done |
13198 | fi | |
13199 | ||
13200 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13201 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13203 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13204 | if test -x $with_build_time_tools/${ncn_progname}; then |
13205 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13207 | $as_echo "yes" >&6; } | |
cac3d6c4 | 13208 | break |
2429c060 | 13209 | else |
81ecdfbb RW |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13211 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
13212 | fi |
13213 | done | |
55db4b87 PB |
13214 | fi |
13215 | ||
2429c060 PB |
13216 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13217 | for ncn_progname in cc gcc; do | |
13218 | if test -n "$ncn_target_tool_prefix"; then | |
13219 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13220 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13222 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13223 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13224 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13225 | else |
13226 | if test -n "$CC_FOR_TARGET"; then | |
13227 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13228 | else | |
c6b750e1 DJ |
13229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13230 | for as_dir in $PATH | |
13231 | do | |
13232 | IFS=$as_save_IFS | |
13233 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13234 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13236 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13238 | break 2 |
13239 | fi | |
13240 | done | |
81ecdfbb RW |
13241 | done |
13242 | IFS=$as_save_IFS | |
c6b750e1 | 13243 | |
55db4b87 PB |
13244 | fi |
13245 | fi | |
c6b750e1 | 13246 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 13247 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13249 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13250 | else |
81ecdfbb RW |
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13252 | $as_echo "no" >&6; } | |
55db4b87 PB |
13253 | fi |
13254 | ||
81ecdfbb | 13255 | |
2429c060 PB |
13256 | fi |
13257 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13258 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13259 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13261 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13262 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13263 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13264 | else |
05cbd757 PB |
13265 | if test -n "$CC_FOR_TARGET"; then |
13266 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13267 | else |
c6b750e1 DJ |
13268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13269 | for as_dir in $PATH | |
13270 | do | |
13271 | IFS=$as_save_IFS | |
13272 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13273 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13275 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13277 | break 2 |
13278 | fi | |
13279 | done | |
81ecdfbb RW |
13280 | done |
13281 | IFS=$as_save_IFS | |
c6b750e1 | 13282 | |
55db4b87 PB |
13283 | fi |
13284 | fi | |
c6b750e1 | 13285 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 13286 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13288 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13289 | else |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13291 | $as_echo "no" >&6; } | |
55db4b87 | 13292 | fi |
c6b750e1 | 13293 | |
81ecdfbb | 13294 | |
2429c060 PB |
13295 | fi |
13296 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13297 | done | |
13298 | fi | |
c6b750e1 | 13299 | |
05cbd757 PB |
13300 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13301 | set dummy cc gcc | |
13302 | if test $build = $target ; then | |
13303 | CC_FOR_TARGET="$2" | |
55db4b87 | 13304 | else |
05cbd757 | 13305 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13306 | fi |
d3f5afc4 MS |
13307 | else |
13308 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
13309 | fi |
13310 | ||
9a819804 AO |
13311 | |
13312 | ||
13313 | if test -n "$CXX_FOR_TARGET"; then | |
13314 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13315 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13316 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13317 | fi | |
13318 | ||
13319 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13320 | for ncn_progname in c++ g++ cxx gxx; do | |
13321 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13322 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13324 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13325 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13326 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13327 | else |
13328 | if test -n "$CXX_FOR_TARGET"; then | |
13329 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13330 | else | |
13331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13332 | for as_dir in $PATH | |
13333 | do | |
13334 | IFS=$as_save_IFS | |
13335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13336 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13338 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13340 | break 2 |
13341 | fi | |
13342 | done | |
81ecdfbb RW |
13343 | done |
13344 | IFS=$as_save_IFS | |
9a819804 AO |
13345 | |
13346 | fi | |
13347 | fi | |
13348 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13349 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13351 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 13352 | else |
81ecdfbb RW |
13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13354 | $as_echo "no" >&6; } | |
9a819804 AO |
13355 | fi |
13356 | ||
81ecdfbb | 13357 | |
9a819804 AO |
13358 | done |
13359 | fi | |
13360 | ||
13361 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13362 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13364 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13365 | if test -x $with_build_time_tools/${ncn_progname}; then |
13366 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13368 | $as_echo "yes" >&6; } | |
2429c060 PB |
13369 | break |
13370 | else | |
81ecdfbb RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13372 | $as_echo "no" >&6; } | |
2429c060 PB |
13373 | fi |
13374 | done | |
13375 | fi | |
13376 | ||
13377 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13378 | for ncn_progname in c++ g++ cxx gxx; do | |
13379 | if test -n "$ncn_target_tool_prefix"; then | |
13380 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13381 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13383 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13384 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13385 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13386 | else |
13387 | if test -n "$CXX_FOR_TARGET"; then | |
13388 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13389 | else | |
c6b750e1 DJ |
13390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13391 | for as_dir in $PATH | |
13392 | do | |
13393 | IFS=$as_save_IFS | |
13394 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13395 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13397 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13399 | break 2 |
13400 | fi | |
13401 | done | |
81ecdfbb RW |
13402 | done |
13403 | IFS=$as_save_IFS | |
c6b750e1 | 13404 | |
55db4b87 PB |
13405 | fi |
13406 | fi | |
c6b750e1 | 13407 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 13408 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13410 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13411 | else |
81ecdfbb RW |
13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13413 | $as_echo "no" >&6; } | |
55db4b87 PB |
13414 | fi |
13415 | ||
81ecdfbb | 13416 | |
2429c060 PB |
13417 | fi |
13418 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13419 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13420 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13422 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13423 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13424 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13425 | else |
05cbd757 PB |
13426 | if test -n "$CXX_FOR_TARGET"; then |
13427 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13428 | else |
c6b750e1 DJ |
13429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13430 | for as_dir in $PATH | |
13431 | do | |
13432 | IFS=$as_save_IFS | |
13433 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13434 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13436 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13438 | break 2 |
13439 | fi | |
13440 | done | |
81ecdfbb RW |
13441 | done |
13442 | IFS=$as_save_IFS | |
c6b750e1 | 13443 | |
55db4b87 PB |
13444 | fi |
13445 | fi | |
c6b750e1 | 13446 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 13447 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13449 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13450 | else |
81ecdfbb RW |
13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13452 | $as_echo "no" >&6; } | |
55db4b87 | 13453 | fi |
c6b750e1 | 13454 | |
81ecdfbb | 13455 | |
2429c060 PB |
13456 | fi |
13457 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13458 | done | |
13459 | fi | |
c6b750e1 | 13460 | |
05cbd757 PB |
13461 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13462 | set dummy c++ g++ cxx gxx | |
13463 | if test $build = $target ; then | |
13464 | CXX_FOR_TARGET="$2" | |
55db4b87 | 13465 | else |
05cbd757 | 13466 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13467 | fi |
d3f5afc4 MS |
13468 | else |
13469 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
13470 | fi |
13471 | ||
9a819804 AO |
13472 | |
13473 | ||
13474 | if test -n "$GCC_FOR_TARGET"; then | |
13475 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13476 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13477 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13478 | fi | |
13479 | ||
13480 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13481 | for ncn_progname in gcc; do | |
13482 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13483 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13485 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13486 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13487 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13488 | else |
13489 | if test -n "$GCC_FOR_TARGET"; then | |
13490 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13491 | else | |
13492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13493 | for as_dir in $PATH | |
13494 | do | |
13495 | IFS=$as_save_IFS | |
13496 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13497 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13498 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13499 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13501 | break 2 |
13502 | fi | |
13503 | done | |
81ecdfbb RW |
13504 | done |
13505 | IFS=$as_save_IFS | |
9a819804 AO |
13506 | |
13507 | fi | |
13508 | fi | |
13509 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13510 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13512 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 13513 | else |
81ecdfbb RW |
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13515 | $as_echo "no" >&6; } | |
9a819804 AO |
13516 | fi |
13517 | ||
81ecdfbb | 13518 | |
9a819804 AO |
13519 | done |
13520 | fi | |
13521 | ||
13522 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13523 | for ncn_progname in gcc; do |
81ecdfbb RW |
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13525 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13526 | if test -x $with_build_time_tools/${ncn_progname}; then |
13527 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13529 | $as_echo "yes" >&6; } | |
2429c060 PB |
13530 | break |
13531 | else | |
81ecdfbb RW |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13533 | $as_echo "no" >&6; } | |
2429c060 PB |
13534 | fi |
13535 | done | |
13536 | fi | |
13537 | ||
13538 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13539 | for ncn_progname in gcc; do | |
13540 | if test -n "$ncn_target_tool_prefix"; then | |
13541 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13542 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13544 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13545 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13546 | $as_echo_n "(cached) " >&6 |
859789af | 13547 | else |
2429c060 PB |
13548 | if test -n "$GCC_FOR_TARGET"; then |
13549 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13550 | else |
c6b750e1 DJ |
13551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13552 | for as_dir in $PATH | |
13553 | do | |
13554 | IFS=$as_save_IFS | |
13555 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13556 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13558 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13560 | break 2 |
13561 | fi | |
13562 | done | |
81ecdfbb RW |
13563 | done |
13564 | IFS=$as_save_IFS | |
c6b750e1 | 13565 | |
55db4b87 PB |
13566 | fi |
13567 | fi | |
c6b750e1 | 13568 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 13569 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13571 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13572 | else |
81ecdfbb RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13574 | $as_echo "no" >&6; } | |
55db4b87 PB |
13575 | fi |
13576 | ||
81ecdfbb | 13577 | |
2429c060 PB |
13578 | fi |
13579 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13580 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13581 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13583 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13584 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13585 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13586 | else |
05cbd757 PB |
13587 | if test -n "$GCC_FOR_TARGET"; then |
13588 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13589 | else |
c6b750e1 DJ |
13590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13591 | for as_dir in $PATH | |
13592 | do | |
13593 | IFS=$as_save_IFS | |
13594 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13595 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13597 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13599 | break 2 |
13600 | fi | |
13601 | done | |
81ecdfbb RW |
13602 | done |
13603 | IFS=$as_save_IFS | |
c6b750e1 | 13604 | |
55db4b87 PB |
13605 | fi |
13606 | fi | |
c6b750e1 | 13607 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 13608 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13610 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13611 | else |
81ecdfbb RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13613 | $as_echo "no" >&6; } | |
55db4b87 | 13614 | fi |
c6b750e1 | 13615 | |
81ecdfbb | 13616 | |
2429c060 PB |
13617 | fi |
13618 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13619 | done | |
13620 | fi | |
c6b750e1 | 13621 | |
05cbd757 PB |
13622 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13623 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
13624 | else |
13625 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
13626 | fi |
13627 | ||
9a819804 AO |
13628 | |
13629 | ||
9a819804 AO |
13630 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13631 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13632 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13633 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
13634 | fi |
13635 | ||
9a819804 AO |
13636 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13637 | for ncn_progname in gfortran; do | |
13638 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13639 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13641 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13642 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13643 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13644 | else |
9a819804 AO |
13645 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13646 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13647 | else |
c6b750e1 DJ |
13648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13649 | for as_dir in $PATH | |
13650 | do | |
13651 | IFS=$as_save_IFS | |
13652 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13653 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13655 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13657 | break 2 |
13658 | fi | |
13659 | done | |
81ecdfbb RW |
13660 | done |
13661 | IFS=$as_save_IFS | |
c6b750e1 | 13662 | |
55db4b87 PB |
13663 | fi |
13664 | fi | |
9a819804 AO |
13665 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13666 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13668 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 13669 | else |
81ecdfbb RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13671 | $as_echo "no" >&6; } | |
55db4b87 | 13672 | fi |
c6b750e1 | 13673 | |
81ecdfbb | 13674 | |
2429c060 PB |
13675 | done |
13676 | fi | |
c6b750e1 | 13677 | |
9a819804 | 13678 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 13679 | for ncn_progname in gfortran; do |
81ecdfbb RW |
13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13681 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13682 | if test -x $with_build_time_tools/${ncn_progname}; then |
13683 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13685 | $as_echo "yes" >&6; } | |
2429c060 PB |
13686 | break |
13687 | else | |
81ecdfbb RW |
13688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13689 | $as_echo "no" >&6; } | |
2429c060 PB |
13690 | fi |
13691 | done | |
13692 | fi | |
13693 | ||
13694 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13695 | for ncn_progname in gfortran; do | |
13696 | if test -n "$ncn_target_tool_prefix"; then | |
13697 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13698 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13700 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13701 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13702 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13703 | else |
228cf97d AM |
13704 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13705 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13706 | else | |
13707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13708 | for as_dir in $PATH | |
13709 | do | |
13710 | IFS=$as_save_IFS | |
13711 | test -z "$as_dir" && as_dir=. | |
13712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13714 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13716 | break 2 | |
13717 | fi | |
13718 | done | |
13719 | done | |
13720 | IFS=$as_save_IFS | |
13721 | ||
13722 | fi | |
13723 | fi | |
13724 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13725 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13727 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13728 | else | |
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13730 | $as_echo "no" >&6; } | |
13731 | fi | |
13732 | ||
13733 | ||
13734 | fi | |
13735 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13736 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13737 | set dummy ${ncn_progname}; ac_word=$2 | |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13739 | $as_echo_n "checking for $ac_word... " >&6; } | |
13740 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : | |
13741 | $as_echo_n "(cached) " >&6 | |
13742 | else | |
13743 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13744 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13745 | else | |
13746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13747 | for as_dir in $PATH | |
13748 | do | |
13749 | IFS=$as_save_IFS | |
13750 | test -z "$as_dir" && as_dir=. | |
13751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13753 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
13754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13755 | break 2 | |
13756 | fi | |
13757 | done | |
13758 | done | |
13759 | IFS=$as_save_IFS | |
13760 | ||
13761 | fi | |
13762 | fi | |
13763 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13764 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13766 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13767 | else | |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13769 | $as_echo "no" >&6; } | |
13770 | fi | |
13771 | ||
13772 | ||
13773 | fi | |
13774 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13775 | done | |
13776 | fi | |
13777 | ||
13778 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then | |
13779 | set dummy gfortran | |
13780 | if test $build = $target ; then | |
13781 | GFORTRAN_FOR_TARGET="$2" | |
13782 | else | |
13783 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13784 | fi | |
13785 | else | |
13786 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
13787 | fi | |
13788 | ||
13789 | ||
13790 | ||
13791 | if test -n "$GOC_FOR_TARGET"; then | |
13792 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13793 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13794 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13795 | fi | |
13796 | ||
13797 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13798 | for ncn_progname in gccgo; do | |
13799 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13800 | set dummy ${ncn_progname}; ac_word=$2 | |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13802 | $as_echo_n "checking for $ac_word... " >&6; } | |
13803 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13804 | $as_echo_n "(cached) " >&6 | |
13805 | else | |
13806 | if test -n "$GOC_FOR_TARGET"; then | |
13807 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13808 | else | |
13809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13810 | for as_dir in $PATH | |
13811 | do | |
13812 | IFS=$as_save_IFS | |
13813 | test -z "$as_dir" && as_dir=. | |
13814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13816 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
13817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13818 | break 2 | |
13819 | fi | |
13820 | done | |
13821 | done | |
13822 | IFS=$as_save_IFS | |
13823 | ||
13824 | fi | |
13825 | fi | |
13826 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13827 | if test -n "$GOC_FOR_TARGET"; then | |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13829 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13830 | else | |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13832 | $as_echo "no" >&6; } | |
13833 | fi | |
13834 | ||
13835 | ||
13836 | done | |
13837 | fi | |
13838 | ||
13839 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13840 | for ncn_progname in gccgo; do | |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13842 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13843 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13844 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13846 | $as_echo "yes" >&6; } | |
13847 | break | |
13848 | else | |
13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13850 | $as_echo "no" >&6; } | |
13851 | fi | |
13852 | done | |
13853 | fi | |
13854 | ||
13855 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13856 | for ncn_progname in gccgo; do | |
13857 | if test -n "$ncn_target_tool_prefix"; then | |
13858 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13859 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13861 | $as_echo_n "checking for $ac_word... " >&6; } | |
13862 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13863 | $as_echo_n "(cached) " >&6 | |
13864 | else | |
13865 | if test -n "$GOC_FOR_TARGET"; then | |
13866 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13867 | else |
c6b750e1 DJ |
13868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13869 | for as_dir in $PATH | |
13870 | do | |
13871 | IFS=$as_save_IFS | |
13872 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13873 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13875 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13877 | break 2 |
13878 | fi | |
13879 | done | |
81ecdfbb RW |
13880 | done |
13881 | IFS=$as_save_IFS | |
c6b750e1 | 13882 | |
55db4b87 PB |
13883 | fi |
13884 | fi | |
228cf97d AM |
13885 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13886 | if test -n "$GOC_FOR_TARGET"; then | |
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13888 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13889 | else |
81ecdfbb RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13891 | $as_echo "no" >&6; } | |
55db4b87 PB |
13892 | fi |
13893 | ||
81ecdfbb | 13894 | |
2429c060 | 13895 | fi |
228cf97d | 13896 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then |
2429c060 | 13897 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
05cbd757 | 13898 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13900 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13901 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
81ecdfbb | 13902 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13903 | else |
228cf97d AM |
13904 | if test -n "$GOC_FOR_TARGET"; then |
13905 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13906 | else |
13907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13908 | for as_dir in $PATH | |
13909 | do | |
13910 | IFS=$as_save_IFS | |
13911 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13912 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13914 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13916 | break 2 |
13917 | fi | |
13918 | done | |
81ecdfbb RW |
13919 | done |
13920 | IFS=$as_save_IFS | |
c6b750e1 | 13921 | |
55db4b87 PB |
13922 | fi |
13923 | fi | |
228cf97d AM |
13924 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13925 | if test -n "$GOC_FOR_TARGET"; then | |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13927 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13928 | else |
81ecdfbb RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13930 | $as_echo "no" >&6; } | |
55db4b87 | 13931 | fi |
c6b750e1 | 13932 | |
81ecdfbb | 13933 | |
2429c060 | 13934 | fi |
228cf97d | 13935 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break |
2429c060 PB |
13936 | done |
13937 | fi | |
c6b750e1 | 13938 | |
228cf97d AM |
13939 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then |
13940 | set dummy gccgo | |
05cbd757 | 13941 | if test $build = $target ; then |
228cf97d | 13942 | GOC_FOR_TARGET="$2" |
55db4b87 | 13943 | else |
228cf97d | 13944 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13945 | fi |
d3f5afc4 | 13946 | else |
228cf97d | 13947 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" |
859789af AC |
13948 | fi |
13949 | ||
2429c060 PB |
13950 | |
13951 | ||
228cf97d AM |
13952 | if test -n "$GDC_FOR_TARGET"; then |
13953 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13954 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13955 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
e552509b ILT |
13956 | fi |
13957 | ||
228cf97d AM |
13958 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then |
13959 | for ncn_progname in gdc; do | |
e552509b ILT |
13960 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
13961 | set dummy ${ncn_progname}; ac_word=$2 | |
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13963 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13964 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13965 | $as_echo_n "(cached) " >&6 |
13966 | else | |
228cf97d AM |
13967 | if test -n "$GDC_FOR_TARGET"; then |
13968 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13969 | else |
13970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13971 | for as_dir in $PATH | |
13972 | do | |
13973 | IFS=$as_save_IFS | |
13974 | test -z "$as_dir" && as_dir=. | |
13975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13977 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
13978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13979 | break 2 | |
13980 | fi | |
13981 | done | |
13982 | done | |
13983 | IFS=$as_save_IFS | |
13984 | ||
13985 | fi | |
13986 | fi | |
228cf97d AM |
13987 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13988 | if test -n "$GDC_FOR_TARGET"; then | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13990 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
13991 | else |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13993 | $as_echo "no" >&6; } | |
13994 | fi | |
13995 | ||
13996 | ||
13997 | done | |
13998 | fi | |
13999 | ||
228cf97d AM |
14000 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then |
14001 | for ncn_progname in gdc; do | |
e552509b ILT |
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14003 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14004 | if test -x $with_build_time_tools/${ncn_progname}; then | |
228cf97d | 14005 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} |
e552509b ILT |
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14007 | $as_echo "yes" >&6; } | |
14008 | break | |
14009 | else | |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14011 | $as_echo "no" >&6; } | |
14012 | fi | |
14013 | done | |
14014 | fi | |
14015 | ||
228cf97d AM |
14016 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then |
14017 | for ncn_progname in gdc; do | |
e552509b ILT |
14018 | if test -n "$ncn_target_tool_prefix"; then |
14019 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14020 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14022 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 14023 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
14024 | $as_echo_n "(cached) " >&6 |
14025 | else | |
228cf97d AM |
14026 | if test -n "$GDC_FOR_TARGET"; then |
14027 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
14028 | else |
14029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14030 | for as_dir in $PATH | |
14031 | do | |
14032 | IFS=$as_save_IFS | |
14033 | test -z "$as_dir" && as_dir=. | |
14034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 14035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 14036 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
e552509b ILT |
14037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14038 | break 2 | |
14039 | fi | |
14040 | done | |
14041 | done | |
14042 | IFS=$as_save_IFS | |
14043 | ||
14044 | fi | |
14045 | fi | |
228cf97d AM |
14046 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
14047 | if test -n "$GDC_FOR_TARGET"; then | |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14049 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
14050 | else |
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14052 | $as_echo "no" >&6; } | |
14053 | fi | |
14054 | ||
14055 | ||
14056 | fi | |
228cf97d | 14057 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then |
e552509b ILT |
14058 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
14059 | set dummy ${ncn_progname}; ac_word=$2 | |
14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14061 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 14062 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
14063 | $as_echo_n "(cached) " >&6 |
14064 | else | |
228cf97d AM |
14065 | if test -n "$GDC_FOR_TARGET"; then |
14066 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
14067 | else |
14068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14069 | for as_dir in $PATH | |
14070 | do | |
14071 | IFS=$as_save_IFS | |
14072 | test -z "$as_dir" && as_dir=. | |
14073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 14074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 14075 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
14076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14077 | break 2 | |
14078 | fi | |
14079 | done | |
14080 | done | |
14081 | IFS=$as_save_IFS | |
14082 | ||
14083 | fi | |
14084 | fi | |
228cf97d AM |
14085 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
14086 | if test -n "$GDC_FOR_TARGET"; then | |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14088 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
14089 | else |
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14091 | $as_echo "no" >&6; } | |
14092 | fi | |
14093 | ||
14094 | ||
14095 | fi | |
228cf97d | 14096 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break |
e552509b ILT |
14097 | done |
14098 | fi | |
14099 | ||
228cf97d AM |
14100 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then |
14101 | set dummy gdc | |
e552509b | 14102 | if test $build = $target ; then |
228cf97d | 14103 | GDC_FOR_TARGET="$2" |
e552509b | 14104 | else |
228cf97d | 14105 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
e552509b ILT |
14106 | fi |
14107 | else | |
228cf97d | 14108 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" |
e552509b ILT |
14109 | fi |
14110 | ||
14111 | ||
14112 | ||
2429c060 PB |
14113 | cat > conftest.c << \EOF |
14114 | #ifdef __GNUC__ | |
14115 | gcc_yay; | |
14116 | #endif | |
14117 | EOF | |
14118 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14119 | have_gcc_for_target=yes | |
859789af | 14120 | else |
2429c060 PB |
14121 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
14122 | have_gcc_for_target=no | |
859789af | 14123 | fi |
2429c060 PB |
14124 | rm conftest.c |
14125 | ||
14126 | ||
14127 | ||
859789af | 14128 | |
2429c060 PB |
14129 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
14130 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14132 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14133 | if test -x $with_build_time_tools/ar; then |
14134 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14135 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14137 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 14138 | else |
81ecdfbb RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14140 | $as_echo "no" >&6; } | |
3a35eeb3 | 14141 | fi |
2429c060 PB |
14142 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14143 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
14144 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14145 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 14146 | fi |
2429c060 | 14147 | fi |
c6b750e1 | 14148 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14149 | # Extract the first word of "ar", so it can be a program name with args. |
14150 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14152 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14153 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14154 | $as_echo_n "(cached) " >&6 |
859789af | 14155 | else |
c6b750e1 DJ |
14156 | case $AR_FOR_TARGET in |
14157 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14158 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14159 | ;; | |
2429c060 | 14160 | *) |
c6b750e1 DJ |
14161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14162 | for as_dir in $gcc_cv_tool_dirs | |
14163 | do | |
14164 | IFS=$as_save_IFS | |
14165 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14166 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14168 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14170 | break 2 |
14171 | fi | |
14172 | done | |
81ecdfbb RW |
14173 | done |
14174 | IFS=$as_save_IFS | |
c6b750e1 | 14175 | |
2429c060 PB |
14176 | ;; |
14177 | esac | |
859789af | 14178 | fi |
c6b750e1 | 14179 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 14180 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14182 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 14183 | else |
81ecdfbb RW |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14185 | $as_echo "no" >&6; } | |
859789af | 14186 | fi |
05cbd757 | 14187 | |
81ecdfbb | 14188 | |
2429c060 PB |
14189 | fi |
14190 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
14191 | |
14192 | ||
14193 | if test -n "$AR_FOR_TARGET"; then | |
14194 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14195 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14196 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14197 | fi | |
14198 | ||
14199 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14200 | for ncn_progname in ar; do | |
14201 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14202 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14204 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14205 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14206 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14207 | else |
14208 | if test -n "$AR_FOR_TARGET"; then | |
14209 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14210 | else | |
14211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14212 | for as_dir in $PATH | |
14213 | do | |
14214 | IFS=$as_save_IFS | |
14215 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14216 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14218 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14220 | break 2 |
14221 | fi | |
14222 | done | |
81ecdfbb RW |
14223 | done |
14224 | IFS=$as_save_IFS | |
9a819804 AO |
14225 | |
14226 | fi | |
14227 | fi | |
14228 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14229 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14231 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 14232 | else |
81ecdfbb RW |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14234 | $as_echo "no" >&6; } | |
9a819804 AO |
14235 | fi |
14236 | ||
81ecdfbb | 14237 | |
9a819804 AO |
14238 | done |
14239 | fi | |
14240 | ||
14241 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14242 | for ncn_progname in ar; do |
81ecdfbb RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14244 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14245 | if test -x $with_build_time_tools/${ncn_progname}; then |
14246 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14248 | $as_echo "yes" >&6; } | |
2429c060 PB |
14249 | break |
14250 | else | |
81ecdfbb RW |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14252 | $as_echo "no" >&6; } | |
2429c060 PB |
14253 | fi |
14254 | done | |
859789af AC |
14255 | fi |
14256 | ||
2429c060 PB |
14257 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
14258 | for ncn_progname in ar; do | |
14259 | if test -n "$ncn_target_tool_prefix"; then | |
14260 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14261 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14263 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14264 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14265 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14266 | else |
2429c060 PB |
14267 | if test -n "$AR_FOR_TARGET"; then |
14268 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 14269 | else |
c6b750e1 DJ |
14270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14271 | for as_dir in $PATH | |
14272 | do | |
14273 | IFS=$as_save_IFS | |
14274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14275 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14277 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14279 | break 2 |
14280 | fi | |
14281 | done | |
81ecdfbb RW |
14282 | done |
14283 | IFS=$as_save_IFS | |
c6b750e1 | 14284 | |
7e0f7140 GK |
14285 | fi |
14286 | fi | |
c6b750e1 | 14287 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14288 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14290 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14291 | else |
81ecdfbb RW |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14293 | $as_echo "no" >&6; } | |
7e0f7140 GK |
14294 | fi |
14295 | ||
81ecdfbb | 14296 | |
2429c060 PB |
14297 | fi |
14298 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14299 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 14300 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14302 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14303 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14304 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14305 | else |
2429c060 PB |
14306 | if test -n "$AR_FOR_TARGET"; then |
14307 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 14308 | else |
c6b750e1 DJ |
14309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14310 | for as_dir in $PATH | |
14311 | do | |
14312 | IFS=$as_save_IFS | |
14313 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14314 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14316 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14318 | break 2 |
14319 | fi | |
14320 | done | |
81ecdfbb RW |
14321 | done |
14322 | IFS=$as_save_IFS | |
c6b750e1 | 14323 | |
7e0f7140 GK |
14324 | fi |
14325 | fi | |
c6b750e1 | 14326 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14327 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14329 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14330 | else |
81ecdfbb RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14332 | $as_echo "no" >&6; } | |
7e0f7140 | 14333 | fi |
c6b750e1 | 14334 | |
81ecdfbb | 14335 | |
2429c060 PB |
14336 | fi |
14337 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14338 | done | |
14339 | fi | |
c6b750e1 | 14340 | |
2429c060 PB |
14341 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14342 | set dummy ar | |
7e0f7140 | 14343 | if test $build = $target ; then |
2429c060 | 14344 | AR_FOR_TARGET="$2" |
7e0f7140 | 14345 | else |
2429c060 | 14346 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 14347 | fi |
d3f5afc4 MS |
14348 | else |
14349 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
14350 | fi |
14351 | ||
3a35eeb3 PB |
14352 | else |
14353 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
14354 | fi |
14355 | ||
14356 | ||
14357 | ||
14358 | ||
14359 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14360 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14362 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14363 | if test -x $with_build_time_tools/as; then |
14364 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14365 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14367 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 14368 | else |
81ecdfbb RW |
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14370 | $as_echo "no" >&6; } | |
3a35eeb3 | 14371 | fi |
2429c060 PB |
14372 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14373 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
14374 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14375 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
14376 | fi |
14377 | fi | |
c6b750e1 | 14378 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14379 | # Extract the first word of "as", so it can be a program name with args. |
14380 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14382 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14383 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14384 | $as_echo_n "(cached) " >&6 |
2429c060 | 14385 | else |
c6b750e1 DJ |
14386 | case $AS_FOR_TARGET in |
14387 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14388 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14389 | ;; | |
2429c060 | 14390 | *) |
c6b750e1 DJ |
14391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14392 | for as_dir in $gcc_cv_tool_dirs | |
14393 | do | |
14394 | IFS=$as_save_IFS | |
14395 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14396 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14398 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14400 | break 2 |
14401 | fi | |
14402 | done | |
81ecdfbb RW |
14403 | done |
14404 | IFS=$as_save_IFS | |
c6b750e1 | 14405 | |
2429c060 PB |
14406 | ;; |
14407 | esac | |
14408 | fi | |
c6b750e1 | 14409 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 14410 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14412 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14413 | else |
81ecdfbb RW |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14415 | $as_echo "no" >&6; } | |
2429c060 PB |
14416 | fi |
14417 | ||
81ecdfbb | 14418 | |
2429c060 PB |
14419 | fi |
14420 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
14421 | |
14422 | ||
14423 | if test -n "$AS_FOR_TARGET"; then | |
14424 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14425 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14426 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14427 | fi | |
14428 | ||
14429 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14430 | for ncn_progname in as; do | |
14431 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14432 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14434 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14435 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14436 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14437 | else |
14438 | if test -n "$AS_FOR_TARGET"; then | |
14439 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14440 | else | |
14441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14442 | for as_dir in $PATH | |
14443 | do | |
14444 | IFS=$as_save_IFS | |
14445 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14446 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14448 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14450 | break 2 |
14451 | fi | |
14452 | done | |
81ecdfbb RW |
14453 | done |
14454 | IFS=$as_save_IFS | |
9a819804 AO |
14455 | |
14456 | fi | |
14457 | fi | |
14458 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14459 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14461 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 14462 | else |
81ecdfbb RW |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14464 | $as_echo "no" >&6; } | |
9a819804 AO |
14465 | fi |
14466 | ||
81ecdfbb | 14467 | |
9a819804 AO |
14468 | done |
14469 | fi | |
14470 | ||
14471 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14472 | for ncn_progname in as; do |
81ecdfbb RW |
14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14474 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14475 | if test -x $with_build_time_tools/${ncn_progname}; then |
14476 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14478 | $as_echo "yes" >&6; } | |
2429c060 PB |
14479 | break |
14480 | else | |
81ecdfbb RW |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14482 | $as_echo "no" >&6; } | |
2429c060 PB |
14483 | fi |
14484 | done | |
14485 | fi | |
14486 | ||
14487 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14488 | for ncn_progname in as; do | |
14489 | if test -n "$ncn_target_tool_prefix"; then | |
14490 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14491 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14493 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14494 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14495 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14496 | else |
14497 | if test -n "$AS_FOR_TARGET"; then | |
14498 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14499 | else | |
c6b750e1 DJ |
14500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14501 | for as_dir in $PATH | |
14502 | do | |
14503 | IFS=$as_save_IFS | |
14504 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14505 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14507 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14509 | break 2 |
14510 | fi | |
14511 | done | |
81ecdfbb RW |
14512 | done |
14513 | IFS=$as_save_IFS | |
c6b750e1 | 14514 | |
2429c060 PB |
14515 | fi |
14516 | fi | |
c6b750e1 | 14517 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14518 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14520 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14521 | else |
81ecdfbb RW |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14523 | $as_echo "no" >&6; } | |
2429c060 PB |
14524 | fi |
14525 | ||
81ecdfbb | 14526 | |
2429c060 PB |
14527 | fi |
14528 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14529 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14530 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14532 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14533 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14534 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14535 | else |
14536 | if test -n "$AS_FOR_TARGET"; then | |
14537 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14538 | else | |
c6b750e1 DJ |
14539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14540 | for as_dir in $PATH | |
14541 | do | |
14542 | IFS=$as_save_IFS | |
14543 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14544 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14545 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14546 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14548 | break 2 |
14549 | fi | |
14550 | done | |
81ecdfbb RW |
14551 | done |
14552 | IFS=$as_save_IFS | |
c6b750e1 | 14553 | |
2429c060 PB |
14554 | fi |
14555 | fi | |
c6b750e1 | 14556 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14557 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14559 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14560 | else |
81ecdfbb RW |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14562 | $as_echo "no" >&6; } | |
2429c060 | 14563 | fi |
c6b750e1 | 14564 | |
81ecdfbb | 14565 | |
2429c060 PB |
14566 | fi |
14567 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14568 | done | |
14569 | fi | |
c6b750e1 | 14570 | |
2429c060 PB |
14571 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14572 | set dummy as | |
14573 | if test $build = $target ; then | |
14574 | AS_FOR_TARGET="$2" | |
14575 | else | |
14576 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14577 | fi | |
d3f5afc4 MS |
14578 | else |
14579 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
14580 | fi |
14581 | ||
3a35eeb3 PB |
14582 | else |
14583 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
14584 | fi |
14585 | ||
14586 | ||
14587 | ||
14588 | ||
14589 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14590 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14592 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14593 | if test -x $with_build_time_tools/dlltool; then |
14594 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14595 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14597 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 14598 | else |
81ecdfbb RW |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14600 | $as_echo "no" >&6; } | |
3a35eeb3 | 14601 | fi |
2429c060 PB |
14602 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14603 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
14604 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14605 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
14606 | fi |
14607 | fi | |
c6b750e1 | 14608 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14609 | # Extract the first word of "dlltool", so it can be a program name with args. |
14610 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14612 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14613 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14614 | $as_echo_n "(cached) " >&6 |
2429c060 | 14615 | else |
c6b750e1 DJ |
14616 | case $DLLTOOL_FOR_TARGET in |
14617 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14618 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14619 | ;; | |
2429c060 | 14620 | *) |
c6b750e1 DJ |
14621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14622 | for as_dir in $gcc_cv_tool_dirs | |
14623 | do | |
14624 | IFS=$as_save_IFS | |
14625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14626 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14628 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14630 | break 2 |
14631 | fi | |
14632 | done | |
81ecdfbb RW |
14633 | done |
14634 | IFS=$as_save_IFS | |
c6b750e1 | 14635 | |
2429c060 PB |
14636 | ;; |
14637 | esac | |
14638 | fi | |
c6b750e1 | 14639 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 14640 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14642 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14643 | else |
81ecdfbb RW |
14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14645 | $as_echo "no" >&6; } | |
2429c060 PB |
14646 | fi |
14647 | ||
81ecdfbb | 14648 | |
2429c060 PB |
14649 | fi |
14650 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
14651 | |
14652 | ||
14653 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14654 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14655 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14656 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14657 | fi | |
14658 | ||
14659 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14660 | for ncn_progname in dlltool; do | |
14661 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14662 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14664 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14665 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14666 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14667 | else |
14668 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14669 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14670 | else | |
14671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14672 | for as_dir in $PATH | |
14673 | do | |
14674 | IFS=$as_save_IFS | |
14675 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14676 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14677 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14678 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14680 | break 2 |
14681 | fi | |
14682 | done | |
81ecdfbb RW |
14683 | done |
14684 | IFS=$as_save_IFS | |
9a819804 AO |
14685 | |
14686 | fi | |
14687 | fi | |
14688 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14689 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14691 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 14692 | else |
81ecdfbb RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14694 | $as_echo "no" >&6; } | |
9a819804 AO |
14695 | fi |
14696 | ||
81ecdfbb | 14697 | |
9a819804 AO |
14698 | done |
14699 | fi | |
14700 | ||
14701 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14702 | for ncn_progname in dlltool; do |
81ecdfbb RW |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14704 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14705 | if test -x $with_build_time_tools/${ncn_progname}; then |
14706 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14708 | $as_echo "yes" >&6; } | |
2429c060 PB |
14709 | break |
14710 | else | |
81ecdfbb RW |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14712 | $as_echo "no" >&6; } | |
2429c060 PB |
14713 | fi |
14714 | done | |
14715 | fi | |
14716 | ||
14717 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14718 | for ncn_progname in dlltool; do | |
14719 | if test -n "$ncn_target_tool_prefix"; then | |
14720 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14721 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14723 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14724 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14725 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14726 | else |
14727 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14728 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14729 | else | |
c6b750e1 DJ |
14730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14731 | for as_dir in $PATH | |
14732 | do | |
14733 | IFS=$as_save_IFS | |
14734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14735 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14737 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14739 | break 2 |
14740 | fi | |
14741 | done | |
81ecdfbb RW |
14742 | done |
14743 | IFS=$as_save_IFS | |
c6b750e1 | 14744 | |
2429c060 PB |
14745 | fi |
14746 | fi | |
c6b750e1 | 14747 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14748 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14750 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14751 | else |
81ecdfbb RW |
14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14753 | $as_echo "no" >&6; } | |
2429c060 PB |
14754 | fi |
14755 | ||
81ecdfbb | 14756 | |
2429c060 PB |
14757 | fi |
14758 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14759 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14760 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14762 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14763 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14764 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14765 | else |
14766 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14767 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14768 | else | |
c6b750e1 DJ |
14769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14770 | for as_dir in $PATH | |
14771 | do | |
14772 | IFS=$as_save_IFS | |
14773 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14774 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14776 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14778 | break 2 |
14779 | fi | |
14780 | done | |
81ecdfbb RW |
14781 | done |
14782 | IFS=$as_save_IFS | |
c6b750e1 | 14783 | |
2429c060 PB |
14784 | fi |
14785 | fi | |
c6b750e1 | 14786 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14787 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14789 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14790 | else |
81ecdfbb RW |
14791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14792 | $as_echo "no" >&6; } | |
2429c060 | 14793 | fi |
c6b750e1 | 14794 | |
81ecdfbb | 14795 | |
2429c060 | 14796 | fi |
228cf97d AM |
14797 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break |
14798 | done | |
14799 | fi | |
14800 | ||
14801 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | |
14802 | set dummy dlltool | |
14803 | if test $build = $target ; then | |
14804 | DLLTOOL_FOR_TARGET="$2" | |
14805 | else | |
14806 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14807 | fi | |
14808 | else | |
14809 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
14810 | fi | |
14811 | ||
14812 | else | |
14813 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
14814 | fi | |
14815 | ||
14816 | ||
14817 | ||
14818 | ||
14819 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14820 | if test -n "$with_build_time_tools"; then | |
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14822 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14823 | if test -x $with_build_time_tools/dsymutil; then | |
14824 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14825 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14827 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14828 | else | |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14830 | $as_echo "no" >&6; } | |
14831 | fi | |
14832 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14833 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14834 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14835 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14836 | fi | |
14837 | fi | |
14838 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14839 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14840 | set dummy dsymutil; ac_word=$2 | |
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14842 | $as_echo_n "checking for $ac_word... " >&6; } | |
14843 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14844 | $as_echo_n "(cached) " >&6 | |
14845 | else | |
14846 | case $DSYMUTIL_FOR_TARGET in | |
14847 | [\\/]* | ?:[\\/]*) | |
14848 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14849 | ;; | |
14850 | *) | |
14851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14852 | for as_dir in $gcc_cv_tool_dirs | |
14853 | do | |
14854 | IFS=$as_save_IFS | |
14855 | test -z "$as_dir" && as_dir=. | |
14856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14858 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14860 | break 2 | |
14861 | fi | |
14862 | done | |
14863 | done | |
14864 | IFS=$as_save_IFS | |
14865 | ||
14866 | ;; | |
14867 | esac | |
14868 | fi | |
14869 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14870 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14872 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14873 | else | |
14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14875 | $as_echo "no" >&6; } | |
14876 | fi | |
14877 | ||
14878 | ||
14879 | fi | |
14880 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14881 | ||
14882 | ||
14883 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14884 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14885 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14886 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14887 | fi | |
14888 | ||
14889 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14890 | for ncn_progname in dsymutil; do | |
14891 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14892 | set dummy ${ncn_progname}; ac_word=$2 | |
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14894 | $as_echo_n "checking for $ac_word... " >&6; } | |
14895 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14896 | $as_echo_n "(cached) " >&6 | |
14897 | else | |
14898 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14899 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14900 | else | |
14901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14902 | for as_dir in $PATH | |
14903 | do | |
14904 | IFS=$as_save_IFS | |
14905 | test -z "$as_dir" && as_dir=. | |
14906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14908 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14910 | break 2 | |
14911 | fi | |
14912 | done | |
14913 | done | |
14914 | IFS=$as_save_IFS | |
14915 | ||
14916 | fi | |
14917 | fi | |
14918 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14919 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14921 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14922 | else | |
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14924 | $as_echo "no" >&6; } | |
14925 | fi | |
14926 | ||
14927 | ||
14928 | done | |
14929 | fi | |
14930 | ||
14931 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14932 | for ncn_progname in dsymutil; do | |
14933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14934 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14935 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14936 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14938 | $as_echo "yes" >&6; } | |
14939 | break | |
14940 | else | |
14941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14942 | $as_echo "no" >&6; } | |
14943 | fi | |
14944 | done | |
14945 | fi | |
14946 | ||
14947 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14948 | for ncn_progname in dsymutil; do | |
14949 | if test -n "$ncn_target_tool_prefix"; then | |
14950 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14951 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14953 | $as_echo_n "checking for $ac_word... " >&6; } | |
14954 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14955 | $as_echo_n "(cached) " >&6 | |
14956 | else | |
14957 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14958 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14959 | else | |
14960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14961 | for as_dir in $PATH | |
14962 | do | |
14963 | IFS=$as_save_IFS | |
14964 | test -z "$as_dir" && as_dir=. | |
14965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14966 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14967 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14969 | break 2 | |
14970 | fi | |
14971 | done | |
14972 | done | |
14973 | IFS=$as_save_IFS | |
14974 | ||
14975 | fi | |
14976 | fi | |
14977 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14978 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14980 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14981 | else | |
14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14983 | $as_echo "no" >&6; } | |
14984 | fi | |
14985 | ||
14986 | ||
14987 | fi | |
14988 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14989 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14990 | set dummy ${ncn_progname}; ac_word=$2 | |
14991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14992 | $as_echo_n "checking for $ac_word... " >&6; } | |
14993 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14994 | $as_echo_n "(cached) " >&6 | |
14995 | else | |
14996 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14997 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14998 | else | |
14999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15000 | for as_dir in $PATH | |
15001 | do | |
15002 | IFS=$as_save_IFS | |
15003 | test -z "$as_dir" && as_dir=. | |
15004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15005 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15006 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15008 | break 2 | |
15009 | fi | |
15010 | done | |
15011 | done | |
15012 | IFS=$as_save_IFS | |
15013 | ||
15014 | fi | |
15015 | fi | |
15016 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15017 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15019 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15020 | else | |
15021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15022 | $as_echo "no" >&6; } | |
15023 | fi | |
15024 | ||
15025 | ||
15026 | fi | |
15027 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
2429c060 PB |
15028 | done |
15029 | fi | |
c6b750e1 | 15030 | |
228cf97d AM |
15031 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then |
15032 | set dummy dsymutil | |
2429c060 | 15033 | if test $build = $target ; then |
228cf97d | 15034 | DSYMUTIL_FOR_TARGET="$2" |
2429c060 | 15035 | else |
228cf97d | 15036 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" |
2429c060 | 15037 | fi |
d3f5afc4 | 15038 | else |
228cf97d | 15039 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" |
2429c060 PB |
15040 | fi |
15041 | ||
3a35eeb3 | 15042 | else |
228cf97d | 15043 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET |
2429c060 PB |
15044 | fi |
15045 | ||
15046 | ||
15047 | ||
15048 | ||
15049 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
15050 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
15052 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15053 | if test -x $with_build_time_tools/ld; then |
15054 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
15055 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
15056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
15057 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 15058 | else |
81ecdfbb RW |
15059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15060 | $as_echo "no" >&6; } | |
3a35eeb3 | 15061 | fi |
2429c060 PB |
15062 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15063 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
15064 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15065 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
15066 | fi |
15067 | fi | |
c6b750e1 | 15068 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15069 | # Extract the first word of "ld", so it can be a program name with args. |
15070 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
15071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15072 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15073 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15074 | $as_echo_n "(cached) " >&6 |
2429c060 | 15075 | else |
c6b750e1 DJ |
15076 | case $LD_FOR_TARGET in |
15077 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15078 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15079 | ;; | |
2429c060 | 15080 | *) |
c6b750e1 DJ |
15081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15082 | for as_dir in $gcc_cv_tool_dirs | |
15083 | do | |
15084 | IFS=$as_save_IFS | |
15085 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15086 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15088 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15090 | break 2 |
15091 | fi | |
15092 | done | |
81ecdfbb RW |
15093 | done |
15094 | IFS=$as_save_IFS | |
c6b750e1 | 15095 | |
2429c060 PB |
15096 | ;; |
15097 | esac | |
15098 | fi | |
c6b750e1 | 15099 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 15100 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15102 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15103 | else |
81ecdfbb RW |
15104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15105 | $as_echo "no" >&6; } | |
2429c060 PB |
15106 | fi |
15107 | ||
81ecdfbb | 15108 | |
2429c060 PB |
15109 | fi |
15110 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
15111 | |
15112 | ||
15113 | if test -n "$LD_FOR_TARGET"; then | |
15114 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15115 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15116 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15117 | fi | |
15118 | ||
15119 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15120 | for ncn_progname in ld; do | |
15121 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15122 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15124 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15125 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15126 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15127 | else |
15128 | if test -n "$LD_FOR_TARGET"; then | |
15129 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15130 | else | |
15131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15132 | for as_dir in $PATH | |
15133 | do | |
15134 | IFS=$as_save_IFS | |
15135 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15136 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15138 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15140 | break 2 |
15141 | fi | |
15142 | done | |
81ecdfbb RW |
15143 | done |
15144 | IFS=$as_save_IFS | |
9a819804 AO |
15145 | |
15146 | fi | |
15147 | fi | |
15148 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15149 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15151 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 15152 | else |
81ecdfbb RW |
15153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15154 | $as_echo "no" >&6; } | |
9a819804 AO |
15155 | fi |
15156 | ||
81ecdfbb | 15157 | |
9a819804 AO |
15158 | done |
15159 | fi | |
15160 | ||
15161 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15162 | for ncn_progname in ld; do |
81ecdfbb RW |
15163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15164 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15165 | if test -x $with_build_time_tools/${ncn_progname}; then |
15166 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15168 | $as_echo "yes" >&6; } | |
2429c060 PB |
15169 | break |
15170 | else | |
81ecdfbb RW |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15172 | $as_echo "no" >&6; } | |
2429c060 PB |
15173 | fi |
15174 | done | |
15175 | fi | |
15176 | ||
15177 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
15178 | for ncn_progname in ld; do | |
15179 | if test -n "$ncn_target_tool_prefix"; then | |
15180 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15181 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15184 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15185 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15186 | else |
15187 | if test -n "$LD_FOR_TARGET"; then | |
15188 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15189 | else | |
c6b750e1 DJ |
15190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15191 | for as_dir in $PATH | |
15192 | do | |
15193 | IFS=$as_save_IFS | |
15194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15195 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15197 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15199 | break 2 |
15200 | fi | |
15201 | done | |
81ecdfbb RW |
15202 | done |
15203 | IFS=$as_save_IFS | |
c6b750e1 | 15204 | |
2429c060 PB |
15205 | fi |
15206 | fi | |
c6b750e1 | 15207 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15208 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15210 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15211 | else |
81ecdfbb RW |
15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15213 | $as_echo "no" >&6; } | |
2429c060 PB |
15214 | fi |
15215 | ||
81ecdfbb | 15216 | |
2429c060 PB |
15217 | fi |
15218 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15219 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15220 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15222 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15223 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15224 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15225 | else |
15226 | if test -n "$LD_FOR_TARGET"; then | |
15227 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15228 | else | |
c6b750e1 DJ |
15229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15230 | for as_dir in $PATH | |
15231 | do | |
15232 | IFS=$as_save_IFS | |
15233 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15234 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15236 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15238 | break 2 |
15239 | fi | |
15240 | done | |
81ecdfbb RW |
15241 | done |
15242 | IFS=$as_save_IFS | |
c6b750e1 | 15243 | |
2429c060 PB |
15244 | fi |
15245 | fi | |
c6b750e1 | 15246 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15247 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15249 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15250 | else |
81ecdfbb RW |
15251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15252 | $as_echo "no" >&6; } | |
2429c060 | 15253 | fi |
c6b750e1 | 15254 | |
81ecdfbb | 15255 | |
2429c060 PB |
15256 | fi |
15257 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15258 | done | |
15259 | fi | |
c6b750e1 | 15260 | |
2429c060 PB |
15261 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15262 | set dummy ld | |
15263 | if test $build = $target ; then | |
15264 | LD_FOR_TARGET="$2" | |
15265 | else | |
15266 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15267 | fi | |
d3f5afc4 MS |
15268 | else |
15269 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
15270 | fi |
15271 | ||
3a35eeb3 PB |
15272 | else |
15273 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
15274 | fi |
15275 | ||
15276 | ||
15277 | ||
15278 | ||
15279 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15280 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15282 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15283 | if test -x $with_build_time_tools/lipo; then |
15284 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15285 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
15286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15287 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 15288 | else |
81ecdfbb RW |
15289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15290 | $as_echo "no" >&6; } | |
3a35eeb3 | 15291 | fi |
2429c060 PB |
15292 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15293 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
15294 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15295 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
15296 | fi |
15297 | fi | |
9a819804 AO |
15298 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15299 | # Extract the first word of "lipo", so it can be a program name with args. | |
15300 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
15301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15302 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15303 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15304 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15305 | else |
15306 | case $LIPO_FOR_TARGET in | |
15307 | [\\/]* | ?:[\\/]*) | |
15308 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15309 | ;; | |
15310 | *) | |
15311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15312 | for as_dir in $gcc_cv_tool_dirs | |
15313 | do | |
15314 | IFS=$as_save_IFS | |
15315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15316 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15318 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15320 | break 2 |
15321 | fi | |
15322 | done | |
81ecdfbb RW |
15323 | done |
15324 | IFS=$as_save_IFS | |
9a819804 AO |
15325 | |
15326 | ;; | |
15327 | esac | |
15328 | fi | |
15329 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 15330 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15332 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 15333 | else |
81ecdfbb RW |
15334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15335 | $as_echo "no" >&6; } | |
9a819804 AO |
15336 | fi |
15337 | ||
81ecdfbb | 15338 | |
9a819804 AO |
15339 | fi |
15340 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15341 | ||
15342 | ||
15343 | if test -n "$LIPO_FOR_TARGET"; then | |
15344 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15345 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15346 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15347 | fi | |
15348 | ||
15349 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15350 | for ncn_progname in lipo; do | |
15351 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15352 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15354 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15355 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15356 | $as_echo_n "(cached) " >&6 |
2429c060 | 15357 | else |
9a819804 AO |
15358 | if test -n "$LIPO_FOR_TARGET"; then |
15359 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15360 | else | |
15361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15362 | for as_dir in $PATH | |
c6b750e1 DJ |
15363 | do |
15364 | IFS=$as_save_IFS | |
15365 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15366 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15368 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15370 | break 2 |
15371 | fi | |
15372 | done | |
81ecdfbb RW |
15373 | done |
15374 | IFS=$as_save_IFS | |
c6b750e1 | 15375 | |
2429c060 | 15376 | fi |
9a819804 AO |
15377 | fi |
15378 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 15379 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15381 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15382 | else |
81ecdfbb RW |
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15384 | $as_echo "no" >&6; } | |
2429c060 PB |
15385 | fi |
15386 | ||
81ecdfbb | 15387 | |
9a819804 | 15388 | done |
2429c060 | 15389 | fi |
9a819804 AO |
15390 | |
15391 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15392 | for ncn_progname in lipo; do |
81ecdfbb RW |
15393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15394 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15395 | if test -x $with_build_time_tools/${ncn_progname}; then |
15396 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15398 | $as_echo "yes" >&6; } | |
2429c060 PB |
15399 | break |
15400 | else | |
81ecdfbb RW |
15401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15402 | $as_echo "no" >&6; } | |
2429c060 PB |
15403 | fi |
15404 | done | |
15405 | fi | |
15406 | ||
15407 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15408 | for ncn_progname in lipo; do | |
15409 | if test -n "$ncn_target_tool_prefix"; then | |
15410 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15411 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15413 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15414 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15415 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15416 | else |
15417 | if test -n "$LIPO_FOR_TARGET"; then | |
15418 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15419 | else | |
c6b750e1 DJ |
15420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15421 | for as_dir in $PATH | |
15422 | do | |
15423 | IFS=$as_save_IFS | |
15424 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15425 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15426 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15427 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15429 | break 2 |
15430 | fi | |
15431 | done | |
81ecdfbb RW |
15432 | done |
15433 | IFS=$as_save_IFS | |
c6b750e1 | 15434 | |
2429c060 PB |
15435 | fi |
15436 | fi | |
c6b750e1 | 15437 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15438 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15440 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15441 | else |
81ecdfbb RW |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15443 | $as_echo "no" >&6; } | |
2429c060 PB |
15444 | fi |
15445 | ||
81ecdfbb | 15446 | |
2429c060 PB |
15447 | fi |
15448 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15449 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15450 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15452 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15453 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15454 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15455 | else |
15456 | if test -n "$LIPO_FOR_TARGET"; then | |
15457 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15458 | else | |
c6b750e1 DJ |
15459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15460 | for as_dir in $PATH | |
15461 | do | |
15462 | IFS=$as_save_IFS | |
15463 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15464 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15466 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15468 | break 2 |
15469 | fi | |
15470 | done | |
81ecdfbb RW |
15471 | done |
15472 | IFS=$as_save_IFS | |
c6b750e1 | 15473 | |
2429c060 PB |
15474 | fi |
15475 | fi | |
c6b750e1 | 15476 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15477 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15479 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15480 | else |
81ecdfbb RW |
15481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15482 | $as_echo "no" >&6; } | |
2429c060 | 15483 | fi |
c6b750e1 | 15484 | |
81ecdfbb | 15485 | |
2429c060 PB |
15486 | fi |
15487 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15488 | done | |
15489 | fi | |
c6b750e1 | 15490 | |
2429c060 PB |
15491 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15492 | set dummy lipo | |
15493 | if test $build = $target ; then | |
15494 | LIPO_FOR_TARGET="$2" | |
15495 | else | |
15496 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15497 | fi | |
d3f5afc4 MS |
15498 | else |
15499 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
15500 | fi |
15501 | ||
3a35eeb3 PB |
15502 | else |
15503 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
15504 | fi |
15505 | ||
15506 | ||
15507 | ||
15508 | ||
15509 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15510 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15512 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15513 | if test -x $with_build_time_tools/nm; then |
15514 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15515 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
15516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15517 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 15518 | else |
81ecdfbb RW |
15519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15520 | $as_echo "no" >&6; } | |
3a35eeb3 | 15521 | fi |
2429c060 PB |
15522 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15523 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
15524 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15525 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
15526 | fi |
15527 | fi | |
c6b750e1 | 15528 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15529 | # Extract the first word of "nm", so it can be a program name with args. |
15530 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
15531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15532 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15533 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15534 | $as_echo_n "(cached) " >&6 |
2429c060 | 15535 | else |
c6b750e1 DJ |
15536 | case $NM_FOR_TARGET in |
15537 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15538 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15539 | ;; | |
2429c060 | 15540 | *) |
c6b750e1 DJ |
15541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15542 | for as_dir in $gcc_cv_tool_dirs | |
15543 | do | |
15544 | IFS=$as_save_IFS | |
15545 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15546 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15548 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15550 | break 2 |
15551 | fi | |
15552 | done | |
81ecdfbb RW |
15553 | done |
15554 | IFS=$as_save_IFS | |
c6b750e1 | 15555 | |
2429c060 PB |
15556 | ;; |
15557 | esac | |
15558 | fi | |
c6b750e1 | 15559 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 15560 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15562 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 15563 | else |
81ecdfbb RW |
15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15565 | $as_echo "no" >&6; } | |
2429c060 PB |
15566 | fi |
15567 | ||
81ecdfbb | 15568 | |
2429c060 PB |
15569 | fi |
15570 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
15571 | |
15572 | ||
15573 | if test -n "$NM_FOR_TARGET"; then | |
15574 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15575 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15576 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15577 | fi | |
15578 | ||
15579 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15580 | for ncn_progname in nm; do | |
15581 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15582 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15584 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15585 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15586 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15587 | else |
15588 | if test -n "$NM_FOR_TARGET"; then | |
15589 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15590 | else | |
15591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15592 | for as_dir in $PATH | |
15593 | do | |
15594 | IFS=$as_save_IFS | |
15595 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15596 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15598 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15600 | break 2 |
15601 | fi | |
15602 | done | |
81ecdfbb RW |
15603 | done |
15604 | IFS=$as_save_IFS | |
9a819804 AO |
15605 | |
15606 | fi | |
15607 | fi | |
15608 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15609 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15611 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 15612 | else |
81ecdfbb RW |
15613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15614 | $as_echo "no" >&6; } | |
9a819804 AO |
15615 | fi |
15616 | ||
81ecdfbb | 15617 | |
9a819804 AO |
15618 | done |
15619 | fi | |
15620 | ||
15621 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15622 | for ncn_progname in nm; do |
81ecdfbb RW |
15623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15624 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15625 | if test -x $with_build_time_tools/${ncn_progname}; then |
15626 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15628 | $as_echo "yes" >&6; } | |
2429c060 PB |
15629 | break |
15630 | else | |
81ecdfbb RW |
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15632 | $as_echo "no" >&6; } | |
2429c060 PB |
15633 | fi |
15634 | done | |
15635 | fi | |
15636 | ||
15637 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15638 | for ncn_progname in nm; do | |
15639 | if test -n "$ncn_target_tool_prefix"; then | |
15640 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 15641 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15643 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15644 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15645 | $as_echo_n "(cached) " >&6 |
859789af | 15646 | else |
55db4b87 PB |
15647 | if test -n "$NM_FOR_TARGET"; then |
15648 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15649 | else |
c6b750e1 DJ |
15650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15651 | for as_dir in $PATH | |
15652 | do | |
15653 | IFS=$as_save_IFS | |
15654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15655 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15657 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15659 | break 2 |
15660 | fi | |
15661 | done | |
81ecdfbb RW |
15662 | done |
15663 | IFS=$as_save_IFS | |
c6b750e1 | 15664 | |
859789af AC |
15665 | fi |
15666 | fi | |
c6b750e1 | 15667 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 15668 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15670 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15671 | else |
81ecdfbb RW |
15672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15673 | $as_echo "no" >&6; } | |
859789af AC |
15674 | fi |
15675 | ||
81ecdfbb | 15676 | |
2429c060 PB |
15677 | fi |
15678 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15679 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 15680 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15682 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15683 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15684 | $as_echo_n "(cached) " >&6 |
859789af | 15685 | else |
05cbd757 PB |
15686 | if test -n "$NM_FOR_TARGET"; then |
15687 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15688 | else |
c6b750e1 DJ |
15689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15690 | for as_dir in $PATH | |
15691 | do | |
15692 | IFS=$as_save_IFS | |
15693 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15694 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15695 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15696 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15698 | break 2 |
15699 | fi | |
15700 | done | |
81ecdfbb RW |
15701 | done |
15702 | IFS=$as_save_IFS | |
c6b750e1 | 15703 | |
859789af AC |
15704 | fi |
15705 | fi | |
c6b750e1 | 15706 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 15707 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15709 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15710 | else |
81ecdfbb RW |
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15712 | $as_echo "no" >&6; } | |
859789af | 15713 | fi |
c6b750e1 | 15714 | |
81ecdfbb | 15715 | |
2429c060 PB |
15716 | fi |
15717 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15718 | done | |
15719 | fi | |
c6b750e1 | 15720 | |
05cbd757 PB |
15721 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15722 | set dummy nm | |
15723 | if test $build = $target ; then | |
15724 | NM_FOR_TARGET="$2" | |
859789af | 15725 | else |
05cbd757 | 15726 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 15727 | fi |
d3f5afc4 MS |
15728 | else |
15729 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
15730 | fi |
15731 | ||
3a35eeb3 PB |
15732 | else |
15733 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
15734 | fi |
15735 | ||
15736 | ||
15737 | ||
15738 | ||
6b91c541 AP |
15739 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15740 | if test -n "$with_build_time_tools"; then | |
15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15742 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15743 | if test -x $with_build_time_tools/objcopy; then | |
15744 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15745 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15747 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15748 | else | |
15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15750 | $as_echo "no" >&6; } | |
15751 | fi | |
15752 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15753 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15754 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15755 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15756 | fi | |
15757 | fi | |
15758 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15759 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15760 | set dummy objcopy; ac_word=$2 | |
15761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15762 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15763 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15764 | $as_echo_n "(cached) " >&6 |
15765 | else | |
15766 | case $OBJCOPY_FOR_TARGET in | |
15767 | [\\/]* | ?:[\\/]*) | |
15768 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15769 | ;; | |
15770 | *) | |
15771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15772 | for as_dir in $gcc_cv_tool_dirs | |
15773 | do | |
15774 | IFS=$as_save_IFS | |
15775 | test -z "$as_dir" && as_dir=. | |
15776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15778 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15780 | break 2 | |
15781 | fi | |
15782 | done | |
15783 | done | |
15784 | IFS=$as_save_IFS | |
15785 | ||
15786 | ;; | |
15787 | esac | |
15788 | fi | |
15789 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15790 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15792 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15793 | else | |
15794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15795 | $as_echo "no" >&6; } | |
15796 | fi | |
15797 | ||
15798 | ||
15799 | fi | |
15800 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15801 | ||
15802 | ||
15803 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15804 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15805 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15806 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15807 | fi | |
15808 | ||
15809 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15810 | for ncn_progname in objcopy; do | |
15811 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15812 | set dummy ${ncn_progname}; ac_word=$2 | |
15813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15814 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15815 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15816 | $as_echo_n "(cached) " >&6 |
15817 | else | |
15818 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15819 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15820 | else | |
15821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15822 | for as_dir in $PATH | |
15823 | do | |
15824 | IFS=$as_save_IFS | |
15825 | test -z "$as_dir" && as_dir=. | |
15826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15828 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15830 | break 2 | |
15831 | fi | |
15832 | done | |
15833 | done | |
15834 | IFS=$as_save_IFS | |
15835 | ||
15836 | fi | |
15837 | fi | |
15838 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15839 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15841 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15842 | else | |
15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15844 | $as_echo "no" >&6; } | |
15845 | fi | |
15846 | ||
15847 | ||
15848 | done | |
15849 | fi | |
15850 | ||
15851 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15852 | for ncn_progname in objcopy; do | |
15853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15854 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15855 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15856 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15858 | $as_echo "yes" >&6; } | |
15859 | break | |
15860 | else | |
15861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15862 | $as_echo "no" >&6; } | |
15863 | fi | |
15864 | done | |
15865 | fi | |
15866 | ||
15867 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15868 | for ncn_progname in objcopy; do | |
15869 | if test -n "$ncn_target_tool_prefix"; then | |
15870 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15871 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15873 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15874 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15875 | $as_echo_n "(cached) " >&6 |
15876 | else | |
15877 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15878 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15879 | else | |
15880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15881 | for as_dir in $PATH | |
15882 | do | |
15883 | IFS=$as_save_IFS | |
15884 | test -z "$as_dir" && as_dir=. | |
15885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15887 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15889 | break 2 | |
15890 | fi | |
15891 | done | |
15892 | done | |
15893 | IFS=$as_save_IFS | |
15894 | ||
15895 | fi | |
15896 | fi | |
15897 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15898 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15900 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15901 | else | |
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15903 | $as_echo "no" >&6; } | |
15904 | fi | |
15905 | ||
15906 | ||
15907 | fi | |
15908 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15909 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15910 | set dummy ${ncn_progname}; ac_word=$2 | |
15911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15912 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15913 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15914 | $as_echo_n "(cached) " >&6 |
15915 | else | |
15916 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15917 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15918 | else | |
15919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15920 | for as_dir in $PATH | |
15921 | do | |
15922 | IFS=$as_save_IFS | |
15923 | test -z "$as_dir" && as_dir=. | |
15924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15926 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15928 | break 2 | |
15929 | fi | |
15930 | done | |
15931 | done | |
15932 | IFS=$as_save_IFS | |
15933 | ||
15934 | fi | |
15935 | fi | |
15936 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15937 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15939 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15940 | else | |
15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15942 | $as_echo "no" >&6; } | |
15943 | fi | |
15944 | ||
15945 | ||
15946 | fi | |
15947 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15948 | done | |
15949 | fi | |
15950 | ||
15951 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15952 | set dummy objcopy | |
15953 | if test $build = $target ; then | |
15954 | OBJCOPY_FOR_TARGET="$2" | |
15955 | else | |
15956 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15957 | fi | |
15958 | else | |
15959 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15960 | fi | |
15961 | ||
15962 | else | |
15963 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15964 | fi | |
15965 | ||
15966 | ||
15967 | ||
15968 | ||
2429c060 PB |
15969 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15970 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15972 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15973 | if test -x $with_build_time_tools/objdump; then |
15974 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15975 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15977 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 15978 | else |
81ecdfbb RW |
15979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15980 | $as_echo "no" >&6; } | |
3a35eeb3 | 15981 | fi |
2429c060 PB |
15982 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15983 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
15984 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15985 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
15986 | fi |
15987 | fi | |
c6b750e1 | 15988 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15989 | # Extract the first word of "objdump", so it can be a program name with args. |
15990 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
15991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15992 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15993 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15994 | $as_echo_n "(cached) " >&6 |
2429c060 | 15995 | else |
c6b750e1 DJ |
15996 | case $OBJDUMP_FOR_TARGET in |
15997 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15998 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15999 | ;; | |
2429c060 | 16000 | *) |
c6b750e1 DJ |
16001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16002 | for as_dir in $gcc_cv_tool_dirs | |
16003 | do | |
16004 | IFS=$as_save_IFS | |
16005 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16006 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16008 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16010 | break 2 |
16011 | fi | |
16012 | done | |
81ecdfbb RW |
16013 | done |
16014 | IFS=$as_save_IFS | |
c6b750e1 | 16015 | |
2429c060 PB |
16016 | ;; |
16017 | esac | |
16018 | fi | |
c6b750e1 | 16019 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 16020 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16022 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 16023 | else |
81ecdfbb RW |
16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16025 | $as_echo "no" >&6; } | |
2429c060 PB |
16026 | fi |
16027 | ||
81ecdfbb | 16028 | |
2429c060 PB |
16029 | fi |
16030 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
16031 | |
16032 | ||
16033 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16034 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
16035 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16036 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16037 | fi | |
16038 | ||
16039 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16040 | for ncn_progname in objdump; do | |
16041 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16042 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16044 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16045 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16046 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16047 | else |
16048 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16049 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16050 | else | |
16051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16052 | for as_dir in $PATH | |
16053 | do | |
16054 | IFS=$as_save_IFS | |
16055 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16056 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16058 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16060 | break 2 |
16061 | fi | |
16062 | done | |
81ecdfbb RW |
16063 | done |
16064 | IFS=$as_save_IFS | |
9a819804 AO |
16065 | |
16066 | fi | |
16067 | fi | |
16068 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16069 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16071 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 16072 | else |
81ecdfbb RW |
16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16074 | $as_echo "no" >&6; } | |
9a819804 AO |
16075 | fi |
16076 | ||
81ecdfbb | 16077 | |
9a819804 AO |
16078 | done |
16079 | fi | |
16080 | ||
16081 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16082 | for ncn_progname in objdump; do |
81ecdfbb RW |
16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16084 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16085 | if test -x $with_build_time_tools/${ncn_progname}; then |
16086 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16088 | $as_echo "yes" >&6; } | |
2429c060 PB |
16089 | break |
16090 | else | |
81ecdfbb RW |
16091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16092 | $as_echo "no" >&6; } | |
2429c060 PB |
16093 | fi |
16094 | done | |
16095 | fi | |
16096 | ||
16097 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16098 | for ncn_progname in objdump; do | |
16099 | if test -n "$ncn_target_tool_prefix"; then | |
16100 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16101 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16104 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16105 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16106 | else |
16107 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16108 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16109 | else | |
c6b750e1 DJ |
16110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16111 | for as_dir in $PATH | |
16112 | do | |
16113 | IFS=$as_save_IFS | |
16114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16115 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16117 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16119 | break 2 |
16120 | fi | |
16121 | done | |
81ecdfbb RW |
16122 | done |
16123 | IFS=$as_save_IFS | |
c6b750e1 | 16124 | |
5ae72758 DJ |
16125 | fi |
16126 | fi | |
c6b750e1 | 16127 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16128 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16130 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16131 | else |
81ecdfbb RW |
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16133 | $as_echo "no" >&6; } | |
5ae72758 DJ |
16134 | fi |
16135 | ||
81ecdfbb | 16136 | |
2429c060 PB |
16137 | fi |
16138 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16139 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16140 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16142 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16143 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16144 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16145 | else |
16146 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16147 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16148 | else | |
c6b750e1 DJ |
16149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16150 | for as_dir in $PATH | |
16151 | do | |
16152 | IFS=$as_save_IFS | |
16153 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16154 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16156 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16158 | break 2 |
16159 | fi | |
16160 | done | |
81ecdfbb RW |
16161 | done |
16162 | IFS=$as_save_IFS | |
c6b750e1 | 16163 | |
5ae72758 DJ |
16164 | fi |
16165 | fi | |
c6b750e1 | 16166 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16167 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16169 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16170 | else |
81ecdfbb RW |
16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16172 | $as_echo "no" >&6; } | |
5ae72758 | 16173 | fi |
c6b750e1 | 16174 | |
81ecdfbb | 16175 | |
2429c060 PB |
16176 | fi |
16177 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16178 | done | |
16179 | fi | |
c6b750e1 | 16180 | |
5ae72758 DJ |
16181 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16182 | set dummy objdump | |
16183 | if test $build = $target ; then | |
16184 | OBJDUMP_FOR_TARGET="$2" | |
16185 | else | |
16186 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16187 | fi | |
d3f5afc4 MS |
16188 | else |
16189 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
16190 | fi |
16191 | ||
3a35eeb3 PB |
16192 | else |
16193 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
16194 | fi |
16195 | ||
16196 | ||
16197 | ||
16198 | ||
228cf97d AM |
16199 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16200 | if test -n "$with_build_time_tools"; then | |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16202 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16203 | if test -x $with_build_time_tools/otool; then | |
16204 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16205 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16207 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16208 | else | |
16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16210 | $as_echo "no" >&6; } | |
16211 | fi | |
16212 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16213 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16214 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16215 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16216 | fi | |
16217 | fi | |
16218 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16219 | # Extract the first word of "otool", so it can be a program name with args. | |
16220 | set dummy otool; ac_word=$2 | |
16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16222 | $as_echo_n "checking for $ac_word... " >&6; } | |
16223 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16224 | $as_echo_n "(cached) " >&6 | |
16225 | else | |
16226 | case $OTOOL_FOR_TARGET in | |
16227 | [\\/]* | ?:[\\/]*) | |
16228 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16229 | ;; | |
16230 | *) | |
16231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16232 | for as_dir in $gcc_cv_tool_dirs | |
16233 | do | |
16234 | IFS=$as_save_IFS | |
16235 | test -z "$as_dir" && as_dir=. | |
16236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16238 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16240 | break 2 | |
16241 | fi | |
16242 | done | |
16243 | done | |
16244 | IFS=$as_save_IFS | |
16245 | ||
16246 | ;; | |
16247 | esac | |
16248 | fi | |
16249 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16250 | if test -n "$OTOOL_FOR_TARGET"; then | |
16251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16252 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16253 | else | |
16254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16255 | $as_echo "no" >&6; } | |
16256 | fi | |
16257 | ||
16258 | ||
16259 | fi | |
16260 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16261 | ||
16262 | ||
16263 | if test -n "$OTOOL_FOR_TARGET"; then | |
16264 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16265 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16266 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16267 | fi | |
16268 | ||
16269 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16270 | for ncn_progname in otool; do | |
16271 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16272 | set dummy ${ncn_progname}; ac_word=$2 | |
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16274 | $as_echo_n "checking for $ac_word... " >&6; } | |
16275 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16276 | $as_echo_n "(cached) " >&6 | |
16277 | else | |
16278 | if test -n "$OTOOL_FOR_TARGET"; then | |
16279 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16280 | else | |
16281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16282 | for as_dir in $PATH | |
16283 | do | |
16284 | IFS=$as_save_IFS | |
16285 | test -z "$as_dir" && as_dir=. | |
16286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16288 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16290 | break 2 | |
16291 | fi | |
16292 | done | |
16293 | done | |
16294 | IFS=$as_save_IFS | |
16295 | ||
16296 | fi | |
16297 | fi | |
16298 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16299 | if test -n "$OTOOL_FOR_TARGET"; then | |
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16301 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16302 | else | |
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16304 | $as_echo "no" >&6; } | |
16305 | fi | |
16306 | ||
16307 | ||
16308 | done | |
16309 | fi | |
16310 | ||
16311 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16312 | for ncn_progname in otool; do | |
16313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16314 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16315 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16316 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16318 | $as_echo "yes" >&6; } | |
16319 | break | |
16320 | else | |
16321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16322 | $as_echo "no" >&6; } | |
16323 | fi | |
16324 | done | |
16325 | fi | |
16326 | ||
16327 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16328 | for ncn_progname in otool; do | |
16329 | if test -n "$ncn_target_tool_prefix"; then | |
16330 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16331 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16333 | $as_echo_n "checking for $ac_word... " >&6; } | |
16334 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16335 | $as_echo_n "(cached) " >&6 | |
16336 | else | |
16337 | if test -n "$OTOOL_FOR_TARGET"; then | |
16338 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16339 | else | |
16340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16341 | for as_dir in $PATH | |
16342 | do | |
16343 | IFS=$as_save_IFS | |
16344 | test -z "$as_dir" && as_dir=. | |
16345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16347 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16349 | break 2 | |
16350 | fi | |
16351 | done | |
16352 | done | |
16353 | IFS=$as_save_IFS | |
16354 | ||
16355 | fi | |
16356 | fi | |
16357 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16358 | if test -n "$OTOOL_FOR_TARGET"; then | |
16359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16360 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16361 | else | |
16362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16363 | $as_echo "no" >&6; } | |
16364 | fi | |
16365 | ||
16366 | ||
16367 | fi | |
16368 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16369 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16370 | set dummy ${ncn_progname}; ac_word=$2 | |
16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16372 | $as_echo_n "checking for $ac_word... " >&6; } | |
16373 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16374 | $as_echo_n "(cached) " >&6 | |
16375 | else | |
16376 | if test -n "$OTOOL_FOR_TARGET"; then | |
16377 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16378 | else | |
16379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16380 | for as_dir in $PATH | |
16381 | do | |
16382 | IFS=$as_save_IFS | |
16383 | test -z "$as_dir" && as_dir=. | |
16384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16386 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16388 | break 2 | |
16389 | fi | |
16390 | done | |
16391 | done | |
16392 | IFS=$as_save_IFS | |
16393 | ||
16394 | fi | |
16395 | fi | |
16396 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16397 | if test -n "$OTOOL_FOR_TARGET"; then | |
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16399 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16400 | else | |
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16402 | $as_echo "no" >&6; } | |
16403 | fi | |
16404 | ||
16405 | ||
16406 | fi | |
16407 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16408 | done | |
16409 | fi | |
16410 | ||
16411 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16412 | set dummy otool | |
16413 | if test $build = $target ; then | |
16414 | OTOOL_FOR_TARGET="$2" | |
16415 | else | |
16416 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16417 | fi | |
16418 | else | |
16419 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16420 | fi | |
16421 | ||
16422 | else | |
16423 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16424 | fi | |
16425 | ||
16426 | ||
16427 | ||
16428 | ||
2429c060 PB |
16429 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16430 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16432 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16433 | if test -x $with_build_time_tools/ranlib; then |
16434 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16435 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
16436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16437 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 16438 | else |
81ecdfbb RW |
16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16440 | $as_echo "no" >&6; } | |
3a35eeb3 | 16441 | fi |
2429c060 PB |
16442 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16443 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
16444 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16445 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
16446 | fi |
16447 | fi | |
c6b750e1 | 16448 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16449 | # Extract the first word of "ranlib", so it can be a program name with args. |
16450 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
16451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16452 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16453 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16454 | $as_echo_n "(cached) " >&6 |
2429c060 | 16455 | else |
c6b750e1 DJ |
16456 | case $RANLIB_FOR_TARGET in |
16457 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16458 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16459 | ;; | |
2429c060 | 16460 | *) |
c6b750e1 DJ |
16461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16462 | for as_dir in $gcc_cv_tool_dirs | |
16463 | do | |
16464 | IFS=$as_save_IFS | |
16465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16466 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16468 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16470 | break 2 |
16471 | fi | |
16472 | done | |
81ecdfbb RW |
16473 | done |
16474 | IFS=$as_save_IFS | |
c6b750e1 | 16475 | |
2429c060 PB |
16476 | ;; |
16477 | esac | |
16478 | fi | |
c6b750e1 | 16479 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 16480 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16482 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 16483 | else |
81ecdfbb RW |
16484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16485 | $as_echo "no" >&6; } | |
2429c060 PB |
16486 | fi |
16487 | ||
81ecdfbb | 16488 | |
2429c060 PB |
16489 | fi |
16490 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
16491 | |
16492 | ||
16493 | if test -n "$RANLIB_FOR_TARGET"; then | |
16494 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16495 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16496 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16497 | fi | |
16498 | ||
16499 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16500 | for ncn_progname in ranlib; do | |
16501 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16502 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16504 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16505 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16506 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16507 | else |
16508 | if test -n "$RANLIB_FOR_TARGET"; then | |
16509 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16510 | else | |
16511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16512 | for as_dir in $PATH | |
16513 | do | |
16514 | IFS=$as_save_IFS | |
16515 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16516 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16518 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16520 | break 2 |
16521 | fi | |
16522 | done | |
81ecdfbb RW |
16523 | done |
16524 | IFS=$as_save_IFS | |
9a819804 AO |
16525 | |
16526 | fi | |
16527 | fi | |
16528 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16529 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
16530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16531 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 16532 | else |
81ecdfbb RW |
16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16534 | $as_echo "no" >&6; } | |
9a819804 AO |
16535 | fi |
16536 | ||
81ecdfbb | 16537 | |
9a819804 AO |
16538 | done |
16539 | fi | |
16540 | ||
16541 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16542 | for ncn_progname in ranlib; do |
81ecdfbb RW |
16543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16544 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16545 | if test -x $with_build_time_tools/${ncn_progname}; then |
16546 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16548 | $as_echo "yes" >&6; } | |
2429c060 PB |
16549 | break |
16550 | else | |
81ecdfbb RW |
16551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16552 | $as_echo "no" >&6; } | |
2429c060 PB |
16553 | fi |
16554 | done | |
16555 | fi | |
16556 | ||
16557 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16558 | for ncn_progname in ranlib; do | |
16559 | if test -n "$ncn_target_tool_prefix"; then | |
16560 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16561 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16563 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16564 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16565 | $as_echo_n "(cached) " >&6 |
859789af | 16566 | else |
55db4b87 PB |
16567 | if test -n "$RANLIB_FOR_TARGET"; then |
16568 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16569 | else |
c6b750e1 DJ |
16570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16571 | for as_dir in $PATH | |
16572 | do | |
16573 | IFS=$as_save_IFS | |
16574 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16575 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16577 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16579 | break 2 |
16580 | fi | |
16581 | done | |
81ecdfbb RW |
16582 | done |
16583 | IFS=$as_save_IFS | |
c6b750e1 | 16584 | |
859789af AC |
16585 | fi |
16586 | fi | |
c6b750e1 | 16587 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 16588 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16590 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16591 | else |
81ecdfbb RW |
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16593 | $as_echo "no" >&6; } | |
859789af AC |
16594 | fi |
16595 | ||
81ecdfbb | 16596 | |
2429c060 PB |
16597 | fi |
16598 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16599 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16600 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16602 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16603 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16604 | $as_echo_n "(cached) " >&6 |
859789af | 16605 | else |
05cbd757 PB |
16606 | if test -n "$RANLIB_FOR_TARGET"; then |
16607 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16608 | else |
c6b750e1 DJ |
16609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16610 | for as_dir in $PATH | |
16611 | do | |
16612 | IFS=$as_save_IFS | |
16613 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16614 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16616 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16618 | break 2 |
16619 | fi | |
16620 | done | |
81ecdfbb RW |
16621 | done |
16622 | IFS=$as_save_IFS | |
c6b750e1 | 16623 | |
859789af AC |
16624 | fi |
16625 | fi | |
c6b750e1 | 16626 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 16627 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16629 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16630 | else |
81ecdfbb RW |
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16632 | $as_echo "no" >&6; } | |
859789af | 16633 | fi |
c6b750e1 | 16634 | |
81ecdfbb | 16635 | |
2429c060 PB |
16636 | fi |
16637 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16638 | done | |
16639 | fi | |
c6b750e1 | 16640 | |
2429c060 PB |
16641 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16642 | set dummy ranlib | |
16643 | if test $build = $target ; then | |
16644 | RANLIB_FOR_TARGET="$2" | |
16645 | else | |
16646 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 16647 | fi |
d3f5afc4 MS |
16648 | else |
16649 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 16650 | fi |
05cbd757 | 16651 | |
3a35eeb3 PB |
16652 | else |
16653 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
16654 | fi |
16655 | ||
2429c060 PB |
16656 | |
16657 | ||
16658 | ||
b121d7d4 DD |
16659 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16660 | if test -n "$with_build_time_tools"; then | |
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16662 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16663 | if test -x $with_build_time_tools/readelf; then | |
16664 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16665 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16667 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16668 | else | |
16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16670 | $as_echo "no" >&6; } | |
16671 | fi | |
16672 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16673 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16674 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16675 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16676 | fi | |
16677 | fi | |
16678 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16679 | # Extract the first word of "readelf", so it can be a program name with args. | |
16680 | set dummy readelf; ac_word=$2 | |
16681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16682 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16683 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16684 | $as_echo_n "(cached) " >&6 |
16685 | else | |
16686 | case $READELF_FOR_TARGET in | |
16687 | [\\/]* | ?:[\\/]*) | |
16688 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16689 | ;; | |
16690 | *) | |
16691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16692 | for as_dir in $gcc_cv_tool_dirs | |
16693 | do | |
16694 | IFS=$as_save_IFS | |
16695 | test -z "$as_dir" && as_dir=. | |
16696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16698 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16700 | break 2 | |
16701 | fi | |
16702 | done | |
16703 | done | |
16704 | IFS=$as_save_IFS | |
16705 | ||
16706 | ;; | |
16707 | esac | |
16708 | fi | |
16709 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16710 | if test -n "$READELF_FOR_TARGET"; then | |
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16712 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16713 | else | |
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16715 | $as_echo "no" >&6; } | |
16716 | fi | |
16717 | ||
16718 | ||
16719 | fi | |
16720 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16721 | ||
16722 | ||
16723 | if test -n "$READELF_FOR_TARGET"; then | |
16724 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16725 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16726 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16727 | fi | |
16728 | ||
16729 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16730 | for ncn_progname in readelf; do | |
16731 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16732 | set dummy ${ncn_progname}; ac_word=$2 | |
16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16734 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16735 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16736 | $as_echo_n "(cached) " >&6 |
16737 | else | |
16738 | if test -n "$READELF_FOR_TARGET"; then | |
16739 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16740 | else | |
16741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16742 | for as_dir in $PATH | |
16743 | do | |
16744 | IFS=$as_save_IFS | |
16745 | test -z "$as_dir" && as_dir=. | |
16746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16748 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16750 | break 2 | |
16751 | fi | |
16752 | done | |
16753 | done | |
16754 | IFS=$as_save_IFS | |
16755 | ||
16756 | fi | |
16757 | fi | |
16758 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16759 | if test -n "$READELF_FOR_TARGET"; then | |
16760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16761 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16762 | else | |
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16764 | $as_echo "no" >&6; } | |
16765 | fi | |
16766 | ||
16767 | ||
16768 | done | |
16769 | fi | |
16770 | ||
16771 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16772 | for ncn_progname in readelf; do | |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16774 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16775 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16776 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16778 | $as_echo "yes" >&6; } | |
16779 | break | |
16780 | else | |
16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16782 | $as_echo "no" >&6; } | |
16783 | fi | |
16784 | done | |
16785 | fi | |
16786 | ||
16787 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16788 | for ncn_progname in readelf; do | |
16789 | if test -n "$ncn_target_tool_prefix"; then | |
16790 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16791 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16793 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16794 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16795 | $as_echo_n "(cached) " >&6 |
16796 | else | |
16797 | if test -n "$READELF_FOR_TARGET"; then | |
16798 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16799 | else | |
16800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16801 | for as_dir in $PATH | |
16802 | do | |
16803 | IFS=$as_save_IFS | |
16804 | test -z "$as_dir" && as_dir=. | |
16805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16807 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16809 | break 2 | |
16810 | fi | |
16811 | done | |
16812 | done | |
16813 | IFS=$as_save_IFS | |
16814 | ||
16815 | fi | |
16816 | fi | |
16817 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16818 | if test -n "$READELF_FOR_TARGET"; then | |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16820 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16821 | else | |
16822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16823 | $as_echo "no" >&6; } | |
16824 | fi | |
16825 | ||
16826 | ||
16827 | fi | |
16828 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16829 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16830 | set dummy ${ncn_progname}; ac_word=$2 | |
16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16832 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16833 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16834 | $as_echo_n "(cached) " >&6 |
16835 | else | |
16836 | if test -n "$READELF_FOR_TARGET"; then | |
16837 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16838 | else | |
16839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16840 | for as_dir in $PATH | |
16841 | do | |
16842 | IFS=$as_save_IFS | |
16843 | test -z "$as_dir" && as_dir=. | |
16844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16846 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16848 | break 2 | |
16849 | fi | |
16850 | done | |
16851 | done | |
16852 | IFS=$as_save_IFS | |
16853 | ||
16854 | fi | |
16855 | fi | |
16856 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16857 | if test -n "$READELF_FOR_TARGET"; then | |
16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16859 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16860 | else | |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16862 | $as_echo "no" >&6; } | |
16863 | fi | |
16864 | ||
16865 | ||
16866 | fi | |
16867 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16868 | done | |
16869 | fi | |
16870 | ||
16871 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16872 | set dummy readelf | |
16873 | if test $build = $target ; then | |
16874 | READELF_FOR_TARGET="$2" | |
16875 | else | |
16876 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16877 | fi | |
16878 | else | |
16879 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16880 | fi | |
16881 | ||
16882 | else | |
16883 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16884 | fi | |
16885 | ||
16886 | ||
16887 | ||
16888 | ||
2429c060 PB |
16889 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16890 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16892 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16893 | if test -x $with_build_time_tools/strip; then |
16894 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16895 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
16896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16897 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 16898 | else |
81ecdfbb RW |
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16900 | $as_echo "no" >&6; } | |
3a35eeb3 | 16901 | fi |
2429c060 PB |
16902 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16903 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
16904 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16905 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
16906 | fi |
16907 | fi | |
c6b750e1 | 16908 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16909 | # Extract the first word of "strip", so it can be a program name with args. |
16910 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
16911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16912 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16913 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16914 | $as_echo_n "(cached) " >&6 |
2429c060 | 16915 | else |
c6b750e1 DJ |
16916 | case $STRIP_FOR_TARGET in |
16917 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16918 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16919 | ;; | |
2429c060 | 16920 | *) |
c6b750e1 DJ |
16921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16922 | for as_dir in $gcc_cv_tool_dirs | |
16923 | do | |
16924 | IFS=$as_save_IFS | |
16925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16926 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16928 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16930 | break 2 |
16931 | fi | |
16932 | done | |
81ecdfbb RW |
16933 | done |
16934 | IFS=$as_save_IFS | |
c6b750e1 | 16935 | |
2429c060 PB |
16936 | ;; |
16937 | esac | |
16938 | fi | |
c6b750e1 | 16939 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 16940 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16942 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 16943 | else |
81ecdfbb RW |
16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16945 | $as_echo "no" >&6; } | |
2429c060 PB |
16946 | fi |
16947 | ||
81ecdfbb | 16948 | |
2429c060 PB |
16949 | fi |
16950 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
16951 | |
16952 | ||
16953 | if test -n "$STRIP_FOR_TARGET"; then | |
16954 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16955 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16956 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16957 | fi | |
16958 | ||
16959 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16960 | for ncn_progname in strip; do | |
16961 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16962 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16964 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16965 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16966 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16967 | else |
16968 | if test -n "$STRIP_FOR_TARGET"; then | |
16969 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16970 | else | |
16971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16972 | for as_dir in $PATH | |
16973 | do | |
16974 | IFS=$as_save_IFS | |
16975 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16976 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16978 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16980 | break 2 |
16981 | fi | |
16982 | done | |
81ecdfbb RW |
16983 | done |
16984 | IFS=$as_save_IFS | |
9a819804 AO |
16985 | |
16986 | fi | |
16987 | fi | |
16988 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16989 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16991 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 16992 | else |
81ecdfbb RW |
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16994 | $as_echo "no" >&6; } | |
9a819804 AO |
16995 | fi |
16996 | ||
81ecdfbb | 16997 | |
9a819804 AO |
16998 | done |
16999 | fi | |
17000 | ||
17001 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 17002 | for ncn_progname in strip; do |
81ecdfbb RW |
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17004 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17005 | if test -x $with_build_time_tools/${ncn_progname}; then |
17006 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17008 | $as_echo "yes" >&6; } | |
2429c060 PB |
17009 | break |
17010 | else | |
81ecdfbb RW |
17011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17012 | $as_echo "no" >&6; } | |
2429c060 PB |
17013 | fi |
17014 | done | |
17015 | fi | |
17016 | ||
17017 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17018 | for ncn_progname in strip; do | |
17019 | if test -n "$ncn_target_tool_prefix"; then | |
17020 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 17021 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17023 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17024 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 17025 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
17026 | else |
17027 | if test -n "$STRIP_FOR_TARGET"; then | |
17028 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
17029 | else |
17030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17031 | for as_dir in $PATH | |
17032 | do | |
17033 | IFS=$as_save_IFS | |
17034 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17035 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17037 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17039 | break 2 |
17040 | fi | |
17041 | done | |
81ecdfbb RW |
17042 | done |
17043 | IFS=$as_save_IFS | |
c6b750e1 | 17044 | |
7e0f7140 GK |
17045 | fi |
17046 | fi | |
c6b750e1 | 17047 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 17048 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
17049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17050 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 17051 | else |
81ecdfbb RW |
17052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17053 | $as_echo "no" >&6; } | |
7e0f7140 GK |
17054 | fi |
17055 | ||
81ecdfbb | 17056 | |
2429c060 PB |
17057 | fi |
17058 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17059 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 17060 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17062 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17063 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 17064 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
17065 | else |
17066 | if test -n "$STRIP_FOR_TARGET"; then | |
17067 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17068 | else | |
c6b750e1 DJ |
17069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17070 | for as_dir in $PATH | |
17071 | do | |
17072 | IFS=$as_save_IFS | |
17073 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17074 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17076 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17078 | break 2 |
17079 | fi | |
17080 | done | |
81ecdfbb RW |
17081 | done |
17082 | IFS=$as_save_IFS | |
c6b750e1 | 17083 | |
7e0f7140 GK |
17084 | fi |
17085 | fi | |
c6b750e1 | 17086 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 17087 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
17088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17089 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 17090 | else |
81ecdfbb RW |
17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17092 | $as_echo "no" >&6; } | |
7e0f7140 | 17093 | fi |
c6b750e1 | 17094 | |
81ecdfbb | 17095 | |
2429c060 PB |
17096 | fi |
17097 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17098 | done | |
17099 | fi | |
c6b750e1 | 17100 | |
7e0f7140 GK |
17101 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17102 | set dummy strip | |
17103 | if test $build = $target ; then | |
17104 | STRIP_FOR_TARGET="$2" | |
17105 | else | |
17106 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17107 | fi | |
d3f5afc4 MS |
17108 | else |
17109 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
17110 | fi |
17111 | ||
3a35eeb3 PB |
17112 | else |
17113 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
17114 | fi |
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17120 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17122 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17123 | if test -x $with_build_time_tools/windres; then |
17124 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17125 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
17126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17127 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 17128 | else |
81ecdfbb RW |
17129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17130 | $as_echo "no" >&6; } | |
3a35eeb3 | 17131 | fi |
2429c060 PB |
17132 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17133 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
17134 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17135 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
17136 | fi |
17137 | fi | |
c6b750e1 | 17138 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
17139 | # Extract the first word of "windres", so it can be a program name with args. |
17140 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
17141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17142 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17143 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17144 | $as_echo_n "(cached) " >&6 |
2429c060 | 17145 | else |
c6b750e1 DJ |
17146 | case $WINDRES_FOR_TARGET in |
17147 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
17148 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17149 | ;; | |
2429c060 | 17150 | *) |
c6b750e1 DJ |
17151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17152 | for as_dir in $gcc_cv_tool_dirs | |
17153 | do | |
17154 | IFS=$as_save_IFS | |
17155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17156 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17158 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17160 | break 2 |
17161 | fi | |
17162 | done | |
81ecdfbb RW |
17163 | done |
17164 | IFS=$as_save_IFS | |
c6b750e1 | 17165 | |
2429c060 PB |
17166 | ;; |
17167 | esac | |
17168 | fi | |
c6b750e1 | 17169 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 17170 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17172 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 17173 | else |
81ecdfbb RW |
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17175 | $as_echo "no" >&6; } | |
2429c060 PB |
17176 | fi |
17177 | ||
81ecdfbb | 17178 | |
2429c060 PB |
17179 | fi |
17180 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
17181 | |
17182 | ||
17183 | if test -n "$WINDRES_FOR_TARGET"; then | |
17184 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17185 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17186 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17187 | fi | |
17188 | ||
17189 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17190 | for ncn_progname in windres; do | |
17191 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17192 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17194 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17195 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17196 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
17197 | else |
17198 | if test -n "$WINDRES_FOR_TARGET"; then | |
17199 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17200 | else | |
17201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17202 | for as_dir in $PATH | |
17203 | do | |
17204 | IFS=$as_save_IFS | |
17205 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17206 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 17208 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
17210 | break 2 |
17211 | fi | |
17212 | done | |
81ecdfbb RW |
17213 | done |
17214 | IFS=$as_save_IFS | |
9a819804 AO |
17215 | |
17216 | fi | |
17217 | fi | |
17218 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17219 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
17220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17221 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 17222 | else |
81ecdfbb RW |
17223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17224 | $as_echo "no" >&6; } | |
9a819804 AO |
17225 | fi |
17226 | ||
81ecdfbb | 17227 | |
9a819804 AO |
17228 | done |
17229 | fi | |
17230 | ||
17231 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 17232 | for ncn_progname in windres; do |
81ecdfbb RW |
17233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17234 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17235 | if test -x $with_build_time_tools/${ncn_progname}; then |
17236 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17238 | $as_echo "yes" >&6; } | |
2429c060 PB |
17239 | break |
17240 | else | |
81ecdfbb RW |
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17242 | $as_echo "no" >&6; } | |
2429c060 PB |
17243 | fi |
17244 | done | |
17245 | fi | |
17246 | ||
17247 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17248 | for ncn_progname in windres; do | |
17249 | if test -n "$ncn_target_tool_prefix"; then | |
17250 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17251 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17254 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17255 | $as_echo_n "(cached) " >&6 |
859789af | 17256 | else |
55db4b87 PB |
17257 | if test -n "$WINDRES_FOR_TARGET"; then |
17258 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17259 | else |
c6b750e1 DJ |
17260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17261 | for as_dir in $PATH | |
17262 | do | |
17263 | IFS=$as_save_IFS | |
17264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17265 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17267 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17269 | break 2 |
17270 | fi | |
17271 | done | |
81ecdfbb RW |
17272 | done |
17273 | IFS=$as_save_IFS | |
c6b750e1 | 17274 | |
859789af AC |
17275 | fi |
17276 | fi | |
c6b750e1 | 17277 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 17278 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17280 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17281 | else |
81ecdfbb RW |
17282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17283 | $as_echo "no" >&6; } | |
859789af AC |
17284 | fi |
17285 | ||
81ecdfbb | 17286 | |
2429c060 PB |
17287 | fi |
17288 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17290 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17292 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17293 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17294 | $as_echo_n "(cached) " >&6 |
859789af | 17295 | else |
05cbd757 PB |
17296 | if test -n "$WINDRES_FOR_TARGET"; then |
17297 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17298 | else |
c6b750e1 DJ |
17299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17300 | for as_dir in $PATH | |
17301 | do | |
17302 | IFS=$as_save_IFS | |
17303 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17304 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17306 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17308 | break 2 |
17309 | fi | |
17310 | done | |
81ecdfbb RW |
17311 | done |
17312 | IFS=$as_save_IFS | |
c6b750e1 | 17313 | |
859789af AC |
17314 | fi |
17315 | fi | |
c6b750e1 | 17316 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 17317 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17319 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17320 | else |
81ecdfbb RW |
17321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17322 | $as_echo "no" >&6; } | |
859789af | 17323 | fi |
c6b750e1 | 17324 | |
81ecdfbb | 17325 | |
2429c060 PB |
17326 | fi |
17327 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17328 | done | |
17329 | fi | |
c6b750e1 | 17330 | |
05cbd757 PB |
17331 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17332 | set dummy windres | |
17333 | if test $build = $target ; then | |
17334 | WINDRES_FOR_TARGET="$2" | |
859789af | 17335 | else |
05cbd757 | 17336 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 17337 | fi |
d3f5afc4 MS |
17338 | else |
17339 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
17340 | fi |
17341 | ||
3a35eeb3 PB |
17342 | else |
17343 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
17344 | fi |
17345 | ||
852e5f18 | 17346 | |
0c24b341 NC |
17347 | |
17348 | ||
17349 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17350 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17352 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17353 | if test -x $with_build_time_tools/windmc; then |
17354 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17355 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17357 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17358 | else |
81ecdfbb RW |
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17360 | $as_echo "no" >&6; } | |
0c24b341 NC |
17361 | fi |
17362 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17363 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
17364 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
17365 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17366 | fi | |
17367 | fi | |
17368 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17369 | # Extract the first word of "windmc", so it can be a program name with args. | |
17370 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
17371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17372 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17373 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17374 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17375 | else |
17376 | case $WINDMC_FOR_TARGET in | |
17377 | [\\/]* | ?:[\\/]*) | |
17378 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17379 | ;; | |
17380 | *) | |
17381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17382 | for as_dir in $gcc_cv_tool_dirs | |
17383 | do | |
17384 | IFS=$as_save_IFS | |
17385 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17386 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17388 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17390 | break 2 |
17391 | fi | |
17392 | done | |
81ecdfbb RW |
17393 | done |
17394 | IFS=$as_save_IFS | |
0c24b341 NC |
17395 | |
17396 | ;; | |
17397 | esac | |
17398 | fi | |
17399 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 17400 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17402 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17403 | else |
81ecdfbb RW |
17404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17405 | $as_echo "no" >&6; } | |
0c24b341 NC |
17406 | fi |
17407 | ||
81ecdfbb | 17408 | |
0c24b341 NC |
17409 | fi |
17410 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17411 | ||
17412 | ||
17413 | if test -n "$WINDMC_FOR_TARGET"; then | |
17414 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17415 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17416 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17417 | fi | |
17418 | ||
17419 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17420 | for ncn_progname in windmc; do | |
17421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17422 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17424 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17425 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17426 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17427 | else |
17428 | if test -n "$WINDMC_FOR_TARGET"; then | |
17429 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17430 | else | |
17431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17432 | for as_dir in $PATH | |
17433 | do | |
17434 | IFS=$as_save_IFS | |
17435 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17436 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17438 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17440 | break 2 |
17441 | fi | |
17442 | done | |
81ecdfbb RW |
17443 | done |
17444 | IFS=$as_save_IFS | |
0c24b341 NC |
17445 | |
17446 | fi | |
17447 | fi | |
17448 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17449 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17451 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17452 | else |
81ecdfbb RW |
17453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17454 | $as_echo "no" >&6; } | |
0c24b341 NC |
17455 | fi |
17456 | ||
81ecdfbb | 17457 | |
0c24b341 NC |
17458 | done |
17459 | fi | |
17460 | ||
17461 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17462 | for ncn_progname in windmc; do | |
81ecdfbb RW |
17463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17464 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17465 | if test -x $with_build_time_tools/${ncn_progname}; then |
17466 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17468 | $as_echo "yes" >&6; } | |
0c24b341 NC |
17469 | break |
17470 | else | |
81ecdfbb RW |
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17472 | $as_echo "no" >&6; } | |
0c24b341 NC |
17473 | fi |
17474 | done | |
17475 | fi | |
17476 | ||
17477 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17478 | for ncn_progname in windmc; do | |
17479 | if test -n "$ncn_target_tool_prefix"; then | |
17480 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17481 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17483 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17484 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17485 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17486 | else |
17487 | if test -n "$WINDMC_FOR_TARGET"; then | |
17488 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17489 | else | |
17490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17491 | for as_dir in $PATH | |
17492 | do | |
17493 | IFS=$as_save_IFS | |
17494 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17495 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17497 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17499 | break 2 |
17500 | fi | |
17501 | done | |
81ecdfbb RW |
17502 | done |
17503 | IFS=$as_save_IFS | |
0c24b341 NC |
17504 | |
17505 | fi | |
17506 | fi | |
17507 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17508 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17510 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17511 | else |
81ecdfbb RW |
17512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17513 | $as_echo "no" >&6; } | |
0c24b341 NC |
17514 | fi |
17515 | ||
81ecdfbb | 17516 | |
0c24b341 NC |
17517 | fi |
17518 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17519 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17520 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17522 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17523 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17524 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17525 | else |
17526 | if test -n "$WINDMC_FOR_TARGET"; then | |
17527 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17528 | else | |
17529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17530 | for as_dir in $PATH | |
17531 | do | |
17532 | IFS=$as_save_IFS | |
17533 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17534 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17536 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17538 | break 2 |
17539 | fi | |
17540 | done | |
81ecdfbb RW |
17541 | done |
17542 | IFS=$as_save_IFS | |
0c24b341 NC |
17543 | |
17544 | fi | |
17545 | fi | |
17546 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17547 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17549 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17550 | else |
81ecdfbb RW |
17551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17552 | $as_echo "no" >&6; } | |
0c24b341 NC |
17553 | fi |
17554 | ||
81ecdfbb | 17555 | |
0c24b341 NC |
17556 | fi |
17557 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17558 | done | |
17559 | fi | |
17560 | ||
17561 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17562 | set dummy windmc | |
17563 | if test $build = $target ; then | |
17564 | WINDMC_FOR_TARGET="$2" | |
17565 | else | |
17566 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17567 | fi | |
17568 | else | |
17569 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
17570 | fi | |
17571 | ||
17572 | else | |
17573 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17574 | fi | |
17575 | ||
17576 | ||
be01d343 PB |
17577 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17578 | ||
81ecdfbb RW |
17579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17580 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 17581 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17582 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17583 | # We already found the complete path | |
b8025f34 | 17584 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17586 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17587 | else |
17588 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17590 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17591 | fi |
be01d343 PB |
17592 | else |
17593 | ok=yes | |
17594 | case " ${configdirs} " in | |
17595 | *" binutils "*) ;; | |
17596 | *) ok=no ;; | |
17597 | esac | |
c6b750e1 | 17598 | |
be01d343 PB |
17599 | if test $ok = yes; then |
17600 | # An in-tree tool is available and we can use it | |
17601 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17603 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17604 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17605 | # We already found the complete path | |
b8025f34 | 17606 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17608 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17609 | elif test "x$target" = "x$host"; then |
17610 | # We can use an host tool | |
17611 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
17612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17613 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17614 | else |
17615 | # We need a cross tool | |
81ecdfbb RW |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17617 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17618 | fi |
17619 | fi | |
4b900473 | 17620 | |
81ecdfbb RW |
17621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17622 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 17623 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17624 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17625 | # We already found the complete path | |
b8025f34 | 17626 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17628 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17629 | else |
17630 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17632 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17633 | fi |
be01d343 PB |
17634 | else |
17635 | ok=yes | |
17636 | case " ${configdirs} " in | |
17637 | *" gas "*) ;; | |
17638 | *) ok=no ;; | |
17639 | esac | |
c6b750e1 | 17640 | |
be01d343 PB |
17641 | if test $ok = yes; then |
17642 | # An in-tree tool is available and we can use it | |
17643 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
17644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17645 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17646 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17647 | # We already found the complete path | |
b8025f34 | 17648 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17650 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17651 | elif test "x$target" = "x$host"; then |
17652 | # We can use an host tool | |
17653 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
17654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17655 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17656 | else |
17657 | # We need a cross tool | |
81ecdfbb RW |
17658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17659 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17660 | fi |
17661 | fi | |
4b900473 | 17662 | |
81ecdfbb RW |
17663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17664 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 17665 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17666 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17667 | # We already found the complete path | |
b8025f34 | 17668 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17670 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17671 | else |
17672 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17674 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17675 | fi |
be01d343 PB |
17676 | else |
17677 | ok=yes | |
17678 | case " ${configdirs} " in | |
17679 | *" gcc "*) ;; | |
17680 | *) ok=no ;; | |
17681 | esac | |
c6b750e1 | 17682 | |
be01d343 PB |
17683 | if test $ok = yes; then |
17684 | # An in-tree tool is available and we can use it | |
17685 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17687 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17688 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17689 | # We already found the complete path | |
b8025f34 | 17690 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17692 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17693 | elif test "x$target" = "x$host"; then |
17694 | # We can use an host tool | |
17695 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
17696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17697 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17698 | else |
17699 | # We need a cross tool | |
81ecdfbb RW |
17700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17701 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17702 | fi |
17703 | fi | |
4b900473 | 17704 | |
81ecdfbb RW |
17705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17706 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 17707 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17708 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17709 | # We already found the complete path | |
b8025f34 | 17710 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17712 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17713 | else |
17714 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17716 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17717 | fi |
be01d343 PB |
17718 | else |
17719 | ok=yes | |
17720 | case " ${configdirs} " in | |
17721 | *" gcc "*) ;; | |
17722 | *) ok=no ;; | |
17723 | esac | |
17724 | case ,${enable_languages}, in | |
17725 | *,c++,*) ;; | |
17726 | *) ok=no ;; | |
17727 | esac | |
17728 | if test $ok = yes; then | |
17729 | # An in-tree tool is available and we can use it | |
95e43135 | 17730 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
17731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17732 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17733 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17734 | # We already found the complete path | |
b8025f34 | 17735 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17737 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17738 | elif test "x$target" = "x$host"; then |
17739 | # We can use an host tool | |
17740 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17742 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17743 | else |
17744 | # We need a cross tool | |
81ecdfbb RW |
17745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17746 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17747 | fi |
17748 | fi | |
4b900473 | 17749 | |
81ecdfbb RW |
17750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17751 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 17752 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17753 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17754 | # We already found the complete path | |
b8025f34 | 17755 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17757 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17758 | else |
17759 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17761 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17762 | fi |
be01d343 PB |
17763 | else |
17764 | ok=yes | |
17765 | case " ${configdirs} " in | |
17766 | *" gcc "*) ;; | |
17767 | *) ok=no ;; | |
17768 | esac | |
17769 | case ,${enable_languages}, in | |
17770 | *,c++,*) ;; | |
17771 | *) ok=no ;; | |
17772 | esac | |
17773 | if test $ok = yes; then | |
17774 | # An in-tree tool is available and we can use it | |
95e43135 | 17775 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
17776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17777 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17778 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17779 | # We already found the complete path | |
b8025f34 | 17780 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17782 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17783 | elif test "x$target" = "x$host"; then |
17784 | # We can use an host tool | |
17785 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17787 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17788 | else |
17789 | # We need a cross tool | |
81ecdfbb RW |
17790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17791 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17792 | fi |
17793 | fi | |
4b900473 | 17794 | |
81ecdfbb RW |
17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17796 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 17797 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17798 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17799 | # We already found the complete path | |
b8025f34 | 17800 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17802 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17803 | else |
17804 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17806 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17807 | fi |
be01d343 PB |
17808 | else |
17809 | ok=yes | |
17810 | case " ${configdirs} " in | |
17811 | *" binutils "*) ;; | |
17812 | *) ok=no ;; | |
17813 | esac | |
c6b750e1 | 17814 | |
be01d343 PB |
17815 | if test $ok = yes; then |
17816 | # An in-tree tool is available and we can use it | |
17817 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17819 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17820 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17821 | # We already found the complete path | |
b8025f34 | 17822 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17824 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17825 | elif test "x$target" = "x$host"; then |
17826 | # We can use an host tool | |
17827 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17829 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17830 | else |
17831 | # We need a cross tool | |
81ecdfbb RW |
17832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17833 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17834 | fi |
17835 | fi | |
4b900473 | 17836 | |
228cf97d AM |
17837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17838 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17839 | if test "x${build}" != "x${host}" ; then | |
17840 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17841 | # We already found the complete path | |
17842 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17844 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17845 | else | |
17846 | # Canadian cross, just use what we found | |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17848 | $as_echo "pre-installed" >&6; } | |
17849 | fi | |
17850 | else | |
17851 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17852 | # We already found the complete path | |
17853 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17855 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17856 | elif test "x$target" = "x$host"; then | |
17857 | # We can use an host tool | |
17858 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17860 | $as_echo "host tool" >&6; } | |
17861 | else | |
17862 | # We need a cross tool | |
17863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17864 | $as_echo "pre-installed" >&6; } | |
17865 | fi | |
17866 | fi | |
17867 | ||
81ecdfbb RW |
17868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17869 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 17870 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17871 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17872 | # We already found the complete path | |
b8025f34 | 17873 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17875 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17876 | else |
17877 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17879 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17880 | fi |
be01d343 PB |
17881 | else |
17882 | ok=yes | |
17883 | case " ${configdirs} " in | |
17884 | *" gcc "*) ;; | |
17885 | *) ok=no ;; | |
17886 | esac | |
c6b750e1 | 17887 | |
be01d343 PB |
17888 | if test $ok = yes; then |
17889 | # An in-tree tool is available and we can use it | |
17890 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17892 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17893 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17894 | # We already found the complete path | |
b8025f34 | 17895 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17897 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17898 | elif test "x$target" = "x$host"; then |
17899 | # We can use an host tool | |
17900 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17902 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17903 | else |
17904 | # We need a cross tool | |
81ecdfbb RW |
17905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17906 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17907 | fi |
17908 | fi | |
4b900473 | 17909 | |
81ecdfbb RW |
17910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17911 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 17912 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17913 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17914 | # We already found the complete path | |
b8025f34 | 17915 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17917 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17918 | else |
17919 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17921 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17922 | fi |
be01d343 PB |
17923 | else |
17924 | ok=yes | |
17925 | case " ${configdirs} " in | |
17926 | *" gcc "*) ;; | |
17927 | *) ok=no ;; | |
17928 | esac | |
17929 | case ,${enable_languages}, in | |
17930 | *,fortran,*) ;; | |
17931 | *) ok=no ;; | |
17932 | esac | |
17933 | if test $ok = yes; then | |
17934 | # An in-tree tool is available and we can use it | |
17935 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17937 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17938 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17939 | # We already found the complete path | |
b8025f34 | 17940 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17942 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17943 | elif test "x$target" = "x$host"; then |
17944 | # We can use an host tool | |
17945 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
17946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17947 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17948 | else |
17949 | # We need a cross tool | |
81ecdfbb RW |
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17951 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17952 | fi |
17953 | fi | |
4b900473 | 17954 | |
e552509b ILT |
17955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17956 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17957 | if test "x${build}" != "x${host}" ; then | |
17958 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17959 | # We already found the complete path | |
17960 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17962 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17963 | else | |
17964 | # Canadian cross, just use what we found | |
17965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17966 | $as_echo "pre-installed" >&6; } | |
17967 | fi | |
17968 | else | |
17969 | ok=yes | |
17970 | case " ${configdirs} " in | |
17971 | *" gcc "*) ;; | |
17972 | *) ok=no ;; | |
17973 | esac | |
17974 | case ,${enable_languages}, in | |
17975 | *,go,*) ;; | |
17976 | *) ok=no ;; | |
17977 | esac | |
17978 | if test $ok = yes; then | |
17979 | # An in-tree tool is available and we can use it | |
17980 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17982 | $as_echo "just compiled" >&6; } | |
17983 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17984 | # We already found the complete path | |
17985 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17987 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17988 | elif test "x$target" = "x$host"; then | |
17989 | # We can use an host tool | |
17990 | GOC_FOR_TARGET='$(GOC)' | |
17991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17992 | $as_echo "host tool" >&6; } | |
17993 | else | |
17994 | # We need a cross tool | |
17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17996 | $as_echo "pre-installed" >&6; } | |
17997 | fi | |
17998 | fi | |
17999 | ||
228cf97d AM |
18000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
18001 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
18002 | if test "x${build}" != "x${host}" ; then | |
18003 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18004 | # We already found the complete path | |
18005 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18007 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18008 | else | |
18009 | # Canadian cross, just use what we found | |
18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18011 | $as_echo "pre-installed" >&6; } | |
18012 | fi | |
18013 | else | |
18014 | ok=yes | |
18015 | case " ${configdirs} " in | |
18016 | *" gcc "*) ;; | |
18017 | *) ok=no ;; | |
18018 | esac | |
18019 | case ,${enable_languages}, in | |
18020 | *,d,*) ;; | |
18021 | *) ok=no ;; | |
18022 | esac | |
18023 | if test $ok = yes; then | |
18024 | # An in-tree tool is available and we can use it | |
18025 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18027 | $as_echo "just compiled" >&6; } | |
18028 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18029 | # We already found the complete path | |
18030 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18032 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18033 | elif test "x$target" = "x$host"; then | |
18034 | # We can use an host tool | |
18035 | GDC_FOR_TARGET='$(GDC)' | |
18036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18037 | $as_echo "host tool" >&6; } | |
18038 | else | |
18039 | # We need a cross tool | |
18040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18041 | $as_echo "pre-installed" >&6; } | |
18042 | fi | |
18043 | fi | |
18044 | ||
81ecdfbb RW |
18045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
18046 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 18047 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18048 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18049 | # We already found the complete path | |
b8025f34 | 18050 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
18051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18052 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18053 | else |
18054 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18056 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18057 | fi |
be01d343 PB |
18058 | else |
18059 | ok=yes | |
18060 | case " ${configdirs} " in | |
18061 | *" ld "*) ;; | |
18062 | *) ok=no ;; | |
18063 | esac | |
c6b750e1 | 18064 | |
be01d343 PB |
18065 | if test $ok = yes; then |
18066 | # An in-tree tool is available and we can use it | |
18067 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
18068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18069 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18070 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18071 | # We already found the complete path | |
b8025f34 | 18072 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
18073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18074 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18075 | elif test "x$target" = "x$host"; then |
18076 | # We can use an host tool | |
18077 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18079 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18080 | else |
18081 | # We need a cross tool | |
81ecdfbb RW |
18082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18083 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18084 | fi |
18085 | fi | |
4b900473 | 18086 | |
81ecdfbb RW |
18087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18088 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 18089 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18090 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18091 | # We already found the complete path | |
b8025f34 | 18092 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18094 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18095 | else |
18096 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18098 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18099 | fi |
be01d343 | 18100 | else |
2429c060 PB |
18101 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18102 | # We already found the complete path | |
b8025f34 | 18103 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18105 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 18106 | elif test "x$target" = "x$host"; then |
be01d343 PB |
18107 | # We can use an host tool |
18108 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
18109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18110 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18111 | else |
18112 | # We need a cross tool | |
81ecdfbb RW |
18113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18114 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18115 | fi |
18116 | fi | |
4b900473 | 18117 | |
81ecdfbb RW |
18118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18119 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 18120 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18121 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18122 | # We already found the complete path | |
b8025f34 | 18123 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18125 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18126 | else |
18127 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18129 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18130 | fi |
be01d343 PB |
18131 | else |
18132 | ok=yes | |
18133 | case " ${configdirs} " in | |
18134 | *" binutils "*) ;; | |
18135 | *) ok=no ;; | |
18136 | esac | |
c6b750e1 | 18137 | |
be01d343 PB |
18138 | if test $ok = yes; then |
18139 | # An in-tree tool is available and we can use it | |
18140 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
18141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18142 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18143 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18144 | # We already found the complete path | |
b8025f34 | 18145 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18147 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18148 | elif test "x$target" = "x$host"; then |
18149 | # We can use an host tool | |
18150 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
18151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18152 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18153 | else |
18154 | # We need a cross tool | |
81ecdfbb RW |
18155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18156 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18157 | fi |
18158 | fi | |
4b900473 | 18159 | |
6b91c541 AP |
18160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18161 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18162 | if test "x${build}" != "x${host}" ; then | |
18163 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18164 | # We already found the complete path | |
18165 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18167 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18168 | else | |
18169 | # Canadian cross, just use what we found | |
18170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18171 | $as_echo "pre-installed" >&6; } | |
18172 | fi | |
18173 | else | |
18174 | ok=yes | |
18175 | case " ${configdirs} " in | |
18176 | *" binutils "*) ;; | |
18177 | *) ok=no ;; | |
18178 | esac | |
18179 | ||
18180 | if test $ok = yes; then | |
18181 | # An in-tree tool is available and we can use it | |
18182 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18184 | $as_echo "just compiled" >&6; } | |
18185 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18186 | # We already found the complete path | |
18187 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18189 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18190 | elif test "x$target" = "x$host"; then | |
18191 | # We can use an host tool | |
1b6c0831 | 18192 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
18193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18194 | $as_echo "host tool" >&6; } | |
18195 | else | |
18196 | # We need a cross tool | |
18197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18198 | $as_echo "pre-installed" >&6; } | |
18199 | fi | |
18200 | fi | |
18201 | ||
81ecdfbb RW |
18202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18203 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 18204 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18205 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18206 | # We already found the complete path | |
b8025f34 | 18207 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18209 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18210 | else |
18211 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18213 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18214 | fi |
be01d343 PB |
18215 | else |
18216 | ok=yes | |
18217 | case " ${configdirs} " in | |
18218 | *" binutils "*) ;; | |
18219 | *) ok=no ;; | |
18220 | esac | |
c6b750e1 | 18221 | |
be01d343 PB |
18222 | if test $ok = yes; then |
18223 | # An in-tree tool is available and we can use it | |
18224 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
18225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18226 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18227 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18228 | # We already found the complete path | |
b8025f34 | 18229 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18231 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18232 | elif test "x$target" = "x$host"; then |
18233 | # We can use an host tool | |
18234 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
18235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18236 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18237 | else |
18238 | # We need a cross tool | |
81ecdfbb RW |
18239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18240 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18241 | fi |
18242 | fi | |
4b900473 | 18243 | |
228cf97d AM |
18244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18245 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18246 | if test "x${build}" != "x${host}" ; then | |
18247 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18248 | # We already found the complete path | |
18249 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18251 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18252 | else | |
18253 | # Canadian cross, just use what we found | |
18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18255 | $as_echo "pre-installed" >&6; } | |
18256 | fi | |
18257 | else | |
18258 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18259 | # We already found the complete path | |
18260 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18262 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18263 | elif test "x$target" = "x$host"; then | |
18264 | # We can use an host tool | |
18265 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18267 | $as_echo "host tool" >&6; } | |
18268 | else | |
18269 | # We need a cross tool | |
18270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18271 | $as_echo "pre-installed" >&6; } | |
18272 | fi | |
18273 | fi | |
18274 | ||
81ecdfbb RW |
18275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18276 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 18277 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18278 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18279 | # We already found the complete path | |
b8025f34 | 18280 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18282 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18283 | else |
18284 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18286 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18287 | fi |
be01d343 PB |
18288 | else |
18289 | ok=yes | |
18290 | case " ${configdirs} " in | |
18291 | *" binutils "*) ;; | |
18292 | *) ok=no ;; | |
18293 | esac | |
c6b750e1 | 18294 | |
be01d343 PB |
18295 | if test $ok = yes; then |
18296 | # An in-tree tool is available and we can use it | |
18297 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18299 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18300 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18301 | # We already found the complete path | |
b8025f34 | 18302 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18304 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18305 | elif test "x$target" = "x$host"; then |
18306 | # We can use an host tool | |
18307 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
18308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18309 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18310 | else |
18311 | # We need a cross tool | |
81ecdfbb RW |
18312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18313 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18314 | fi |
18315 | fi | |
4b900473 | 18316 | |
b121d7d4 DD |
18317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18318 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18319 | if test "x${build}" != "x${host}" ; then | |
18320 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18321 | # We already found the complete path | |
18322 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18324 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18325 | else | |
18326 | # Canadian cross, just use what we found | |
18327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18328 | $as_echo "pre-installed" >&6; } | |
18329 | fi | |
18330 | else | |
18331 | ok=yes | |
18332 | case " ${configdirs} " in | |
18333 | *" binutils "*) ;; | |
18334 | *) ok=no ;; | |
18335 | esac | |
18336 | ||
18337 | if test $ok = yes; then | |
18338 | # An in-tree tool is available and we can use it | |
18339 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18341 | $as_echo "just compiled" >&6; } | |
18342 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18343 | # We already found the complete path | |
18344 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18346 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18347 | elif test "x$target" = "x$host"; then | |
18348 | # We can use an host tool | |
18349 | READELF_FOR_TARGET='$(READELF)' | |
18350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18351 | $as_echo "host tool" >&6; } | |
18352 | else | |
18353 | # We need a cross tool | |
18354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18355 | $as_echo "pre-installed" >&6; } | |
18356 | fi | |
18357 | fi | |
18358 | ||
81ecdfbb RW |
18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18360 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 18361 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18362 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18363 | # We already found the complete path | |
b8025f34 | 18364 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18366 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18367 | else |
18368 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18370 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18371 | fi |
be01d343 PB |
18372 | else |
18373 | ok=yes | |
18374 | case " ${configdirs} " in | |
18375 | *" binutils "*) ;; | |
18376 | *) ok=no ;; | |
18377 | esac | |
c6b750e1 | 18378 | |
be01d343 PB |
18379 | if test $ok = yes; then |
18380 | # An in-tree tool is available and we can use it | |
9b980aa1 | 18381 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
18382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18383 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18384 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18385 | # We already found the complete path | |
b8025f34 | 18386 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18388 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18389 | elif test "x$target" = "x$host"; then |
18390 | # We can use an host tool | |
18391 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
18392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18393 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18394 | else |
18395 | # We need a cross tool | |
81ecdfbb RW |
18396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18397 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18398 | fi |
18399 | fi | |
4b900473 | 18400 | |
81ecdfbb RW |
18401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18402 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 18403 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18404 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18405 | # We already found the complete path | |
b8025f34 | 18406 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18408 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18409 | else |
18410 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18412 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18413 | fi |
be01d343 PB |
18414 | else |
18415 | ok=yes | |
18416 | case " ${configdirs} " in | |
18417 | *" binutils "*) ;; | |
18418 | *) ok=no ;; | |
18419 | esac | |
c6b750e1 | 18420 | |
be01d343 PB |
18421 | if test $ok = yes; then |
18422 | # An in-tree tool is available and we can use it | |
18423 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
18424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18425 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18426 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18427 | # We already found the complete path | |
b8025f34 | 18428 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18430 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18431 | elif test "x$target" = "x$host"; then |
18432 | # We can use an host tool | |
18433 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
18434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18435 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18436 | else |
18437 | # We need a cross tool | |
81ecdfbb RW |
18438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18439 | $as_echo "pre-installed" >&6; } | |
be01d343 | 18440 | fi |
a0da8069 | 18441 | fi |
54752a6b | 18442 | |
81ecdfbb RW |
18443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18444 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
18445 | if test "x${build}" != "x${host}" ; then |
18446 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18447 | # We already found the complete path | |
18448 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18450 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18451 | else |
18452 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18454 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18455 | fi |
18456 | else | |
18457 | ok=yes | |
18458 | case " ${configdirs} " in | |
18459 | *" binutils "*) ;; | |
18460 | *) ok=no ;; | |
18461 | esac | |
18462 | ||
18463 | if test $ok = yes; then | |
18464 | # An in-tree tool is available and we can use it | |
18465 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18467 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
18468 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18469 | # We already found the complete path | |
18470 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18473 | elif test "x$target" = "x$host"; then |
18474 | # We can use an host tool | |
18475 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
18476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18477 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
18478 | else |
18479 | # We need a cross tool | |
81ecdfbb RW |
18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18481 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18482 | fi |
18483 | fi | |
18484 | ||
54752a6b NN |
18485 | |
18486 | ||
be01d343 | 18487 | |
4b900473 | 18488 | |
a0da8069 NN |
18489 | # Certain tools may need extra flags. |
18490 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18491 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18492 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18493 | ||
be01d343 PB |
18494 | # When building target libraries, except in a Canadian cross, we use |
18495 | # the same toolchain as the compiler we just built. | |
18496 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18497 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18498 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18499 | if test $host = $build; then | |
18500 | case " $configdirs " in | |
18501 | *" gcc "*) | |
18502 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18503 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18504 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18505 | ;; | |
18506 | esac | |
18507 | fi | |
18508 | ||
18509 | ||
18510 | ||
18511 | ||
18512 | ||
81ecdfbb RW |
18513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18514 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18515 | # Check whether --enable-maintainer-mode was given. | |
18516 | if test "${enable_maintainer_mode+set}" = set; then : | |
18517 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
18518 | else |
18519 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
18520 | fi |
18521 | ||
18522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18523 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
18524 | |
18525 | ||
18526 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18527 | MAINTAINER_MODE_TRUE= | |
18528 | MAINTAINER_MODE_FALSE='#' | |
18529 | else | |
18530 | MAINTAINER_MODE_TRUE='#' | |
18531 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 18532 | fi |
3d5e36ae AO |
18533 | MAINT=$MAINTAINER_MODE_TRUE |
18534 | ||
1d39f329 NN |
18535 | # --------------------- |
18536 | # GCC bootstrap support | |
18537 | # --------------------- | |
18538 | ||
18539 | # Stage specific cflags for build. | |
18540 | stage1_cflags="-g" | |
18541 | case $build in | |
18542 | vax-*-*) | |
18543 | case ${GCC} in | |
18544 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18545 | *) stage1_cflags="-g -J" ;; | |
18546 | esac ;; | |
1d39f329 NN |
18547 | esac |
18548 | ||
1d89b610 | 18549 | |
1d39f329 | 18550 | |
8a0d8a5c | 18551 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
18552 | # Check whether --enable-stage1-checking was given. |
18553 | if test "${enable_stage1_checking+set}" = set; then : | |
18554 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 18555 | else |
5566c1fa | 18556 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
18557 | # For --disable-checking or implicit --enable-checking=release, avoid |
18558 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18559 | # bootstraps. See PR62077. | |
ce6c656d L |
18560 | case $BUILD_CONFIG in |
18561 | *lto*) | |
05a13254 NC |
18562 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18563 | *) | |
18564 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 18565 | esac |
05a13254 NC |
18566 | if test "x$enable_checking" = x && \ |
18567 | test -d ${srcdir}/gcc && \ | |
18568 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
18569 | stage1_checking=--enable-checking=yes,types,extra | |
18570 | fi | |
8a0d8a5c | 18571 | else |
5566c1fa | 18572 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 18573 | fi |
81ecdfbb | 18574 | fi |
8a0d8a5c PB |
18575 | |
18576 | ||
c6b750e1 | 18577 | |
81ecdfbb RW |
18578 | # Enable -Werror in bootstrap stage2 and later. |
18579 | # Check whether --enable-werror was given. | |
18580 | if test "${enable_werror+set}" = set; then : | |
18581 | enableval=$enable_werror; | |
1a6f2dc7 NN |
18582 | case ${enable_werror} in |
18583 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18584 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
18585 | esac |
18586 | ||
82033c9b | 18587 | else |
82033c9b | 18588 | |
bf41f30d NC |
18589 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18590 | case $BUILD_CONFIG in | |
18591 | bootstrap-debug) | |
18592 | stage2_werror_flag="--enable-werror-always" ;; | |
18593 | "") | |
18594 | stage2_werror_flag="--enable-werror-always" ;; | |
18595 | esac | |
18596 | fi | |
82033c9b | 18597 | |
bf41f30d | 18598 | fi |
82033c9b | 18599 | |
1b6c0831 | 18600 | |
1b6c0831 | 18601 | |
1b6c0831 | 18602 | |
e8a5fa9c RW |
18603 | # Specify what files to not compare during bootstrap. |
18604 | ||
18605 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18606 | case "$target" in | |
18607 | hppa*64*-*-hpux*) ;; | |
228cf97d | 18608 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
18609 | esac |
18610 | ||
18611 | ||
81ecdfbb RW |
18612 | ac_config_files="$ac_config_files Makefile" |
18613 | ||
c6b750e1 | 18614 | cat >confcache <<\_ACEOF |
a0da8069 NN |
18615 | # This file is a shell script that caches the results of configure |
18616 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
18617 | # scripts and configure runs, see configure's option --config-cache. |
18618 | # It is not useful on other systems. If it contains results you don't | |
18619 | # want to keep, you may remove or edit it. | |
a0da8069 | 18620 | # |
c6b750e1 DJ |
18621 | # config.status only pays attention to the cache file if you give it |
18622 | # the --recheck option to rerun configure. | |
a0da8069 | 18623 | # |
c6b750e1 DJ |
18624 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18625 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18626 | # following values. | |
18627 | ||
18628 | _ACEOF | |
18629 | ||
a0da8069 NN |
18630 | # The following way of writing the cache mishandles newlines in values, |
18631 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 18632 | # So, we kill variables containing newlines. |
a0da8069 NN |
18633 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18634 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
18635 | ( |
18636 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18637 | eval ac_val=\$$ac_var | |
18638 | case $ac_val in #( | |
18639 | *${as_nl}*) | |
18640 | case $ac_var in #( | |
18641 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18642 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18643 | esac | |
18644 | case $ac_var in #( | |
18645 | _ | IFS | as_nl) ;; #( | |
18646 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18647 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18648 | esac ;; | |
18649 | esac | |
18650 | done | |
18651 | ||
c6b750e1 | 18652 | (set) 2>&1 | |
81ecdfbb RW |
18653 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18654 | *${as_nl}ac_space=\ *) | |
18655 | # `set' does not quote correctly, so add quotes: double-quote | |
18656 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
18657 | sed -n \ |
18658 | "s/'/'\\\\''/g; | |
18659 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 18660 | ;; #( |
c6b750e1 DJ |
18661 | *) |
18662 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 18663 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 18664 | ;; |
81ecdfbb RW |
18665 | esac | |
18666 | sort | |
18667 | ) | | |
c6b750e1 | 18668 | sed ' |
81ecdfbb | 18669 | /^ac_cv_env_/b end |
c6b750e1 | 18670 | t clear |
81ecdfbb | 18671 | :clear |
c6b750e1 DJ |
18672 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18673 | t end | |
81ecdfbb RW |
18674 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18675 | :end' >>confcache | |
18676 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18677 | if test -w "$cache_file"; then | |
d0ac1c44 | 18678 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
18679 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18680 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
18681 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18682 | cat confcache >"$cache_file" | |
18683 | else | |
18684 | case $cache_file in #( | |
18685 | */* | ?:*) | |
18686 | mv -f confcache "$cache_file"$$ && | |
18687 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18688 | *) | |
18689 | mv -f confcache "$cache_file" ;; | |
18690 | esac | |
18691 | fi | |
18692 | fi | |
a0da8069 | 18693 | else |
81ecdfbb RW |
18694 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18695 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 18696 | fi |
852e5f18 | 18697 | fi |
a0da8069 | 18698 | rm -f confcache |
852e5f18 | 18699 | |
a0da8069 NN |
18700 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18701 | # Let make expand exec_prefix. | |
18702 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 18703 | |
a0da8069 NN |
18704 | # Transform confdefs.h into DEFS. |
18705 | # Protect against shell expansion while executing Makefile rules. | |
18706 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
18707 | # |
18708 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 18709 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 18710 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
18711 | ac_script=' |
18712 | :mline | |
18713 | /\\$/{ | |
18714 | N | |
18715 | s,\\\n,, | |
18716 | b mline | |
18717 | } | |
c6b750e1 | 18718 | t clear |
81ecdfbb RW |
18719 | :clear |
18720 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 18721 | t quote |
81ecdfbb | 18722 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 18723 | t quote |
81ecdfbb RW |
18724 | b any |
18725 | :quote | |
18726 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18727 | s/\[/\\&/g | |
18728 | s/\]/\\&/g | |
18729 | s/\$/$$/g | |
18730 | H | |
18731 | :any | |
18732 | ${ | |
18733 | g | |
18734 | s/^\n// | |
18735 | s/\n/ /g | |
18736 | p | |
18737 | } | |
18738 | ' | |
18739 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
18740 | |
18741 | ||
18742 | ac_libobjs= | |
18743 | ac_ltlibobjs= | |
d0ac1c44 | 18744 | U= |
c6b750e1 DJ |
18745 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18746 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
18747 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18748 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18749 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18750 | # will be set to the directory where LIBOBJS objects are built. | |
18751 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18752 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
18753 | done |
18754 | LIBOBJS=$ac_libobjs | |
852e5f18 | 18755 | |
c6b750e1 | 18756 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 18757 | |
cac3d6c4 | 18758 | |
c6b750e1 | 18759 | |
d0ac1c44 | 18760 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 18761 | ac_write_fail=0 |
c6b750e1 DJ |
18762 | ac_clean_files_save=$ac_clean_files |
18763 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
18764 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18765 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18766 | as_write_fail=0 | |
18767 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
18768 | #! $SHELL |
18769 | # Generated by $as_me. | |
a0da8069 | 18770 | # Run this file to recreate the current configuration. |
a0da8069 | 18771 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 18772 | # configure, is in config.log if it exists. |
376a0e54 | 18773 | |
c6b750e1 DJ |
18774 | debug=false |
18775 | ac_cs_recheck=false | |
18776 | ac_cs_silent=false | |
c6b750e1 | 18777 | |
81ecdfbb RW |
18778 | SHELL=\${CONFIG_SHELL-$SHELL} |
18779 | export SHELL | |
18780 | _ASEOF | |
18781 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18782 | ## -------------------- ## | |
18783 | ## M4sh Initialization. ## | |
18784 | ## -------------------- ## | |
18785 | ||
18786 | # Be more Bourne compatible | |
18787 | DUALCASE=1; export DUALCASE # for MKS sh | |
18788 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18789 | emulate sh |
18790 | NULLCMD=: | |
81ecdfbb | 18791 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
18792 | # is contrary to our usage. Disable this feature. |
18793 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
18794 | setopt NO_GLOB_SUBST |
18795 | else | |
18796 | case `(set -o) 2>/dev/null` in #( | |
18797 | *posix*) : | |
18798 | set -o posix ;; #( | |
18799 | *) : | |
18800 | ;; | |
18801 | esac | |
c6b750e1 | 18802 | fi |
c6b750e1 | 18803 | |
81ecdfbb RW |
18804 | |
18805 | as_nl=' | |
18806 | ' | |
18807 | export as_nl | |
18808 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18809 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18810 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18811 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18812 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18813 | # but without wasting forks for bash or zsh. | |
18814 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18815 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18816 | as_echo='print -r --' | |
18817 | as_echo_n='print -rn --' | |
18818 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18819 | as_echo='printf %s\n' | |
18820 | as_echo_n='printf %s' | |
18821 | else | |
18822 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18823 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18824 | as_echo_n='/usr/ucb/echo -n' | |
18825 | else | |
18826 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18827 | as_echo_n_body='eval | |
18828 | arg=$1; | |
18829 | case $arg in #( | |
18830 | *"$as_nl"*) | |
18831 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18832 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18833 | esac; | |
18834 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18835 | ' | |
18836 | export as_echo_n_body | |
18837 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18838 | fi | |
18839 | export as_echo_body | |
18840 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
18841 | fi |
18842 | ||
81ecdfbb RW |
18843 | # The user is always right. |
18844 | if test "${PATH_SEPARATOR+set}" != set; then | |
18845 | PATH_SEPARATOR=: | |
18846 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18847 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18848 | PATH_SEPARATOR=';' | |
18849 | } | |
18850 | fi | |
18851 | ||
18852 | ||
18853 | # IFS | |
18854 | # We need space, tab and new line, in precisely that order. Quoting is | |
18855 | # there to prevent editors from complaining about space-tab. | |
18856 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18857 | # splitting by setting IFS to empty value.) | |
18858 | IFS=" "" $as_nl" | |
18859 | ||
18860 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 18861 | as_myself= |
81ecdfbb RW |
18862 | case $0 in #(( |
18863 | *[\\/]* ) as_myself=$0 ;; | |
18864 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18865 | for as_dir in $PATH | |
18866 | do | |
18867 | IFS=$as_save_IFS | |
18868 | test -z "$as_dir" && as_dir=. | |
18869 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18870 | done | |
18871 | IFS=$as_save_IFS | |
18872 | ||
18873 | ;; | |
18874 | esac | |
18875 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18876 | # in which case we are not to be found in the path. | |
18877 | if test "x$as_myself" = x; then | |
18878 | as_myself=$0 | |
18879 | fi | |
18880 | if test ! -f "$as_myself"; then | |
18881 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18882 | exit 1 | |
18883 | fi | |
c6b750e1 | 18884 | |
81ecdfbb RW |
18885 | # Unset variables that we do not need and which cause bugs (e.g. in |
18886 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18887 | # suppresses any "Segmentation fault" message there. '((' could | |
18888 | # trigger a bug in pdksh 5.2.14. | |
18889 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18890 | do eval test x\${$as_var+set} = xset \ | |
18891 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18892 | done | |
c6b750e1 DJ |
18893 | PS1='$ ' |
18894 | PS2='> ' | |
18895 | PS4='+ ' | |
18896 | ||
18897 | # NLS nuisances. | |
81ecdfbb RW |
18898 | LC_ALL=C |
18899 | export LC_ALL | |
18900 | LANGUAGE=C | |
18901 | export LANGUAGE | |
18902 | ||
18903 | # CDPATH. | |
18904 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18905 | ||
18906 | ||
d0ac1c44 SM |
18907 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18908 | # ---------------------------------------- | |
81ecdfbb RW |
18909 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18910 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 18911 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
18912 | as_fn_error () |
18913 | { | |
d0ac1c44 SM |
18914 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18915 | if test "$4"; then | |
18916 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18917 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 18918 | fi |
d0ac1c44 | 18919 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
18920 | as_fn_exit $as_status |
18921 | } # as_fn_error | |
18922 | ||
18923 | ||
18924 | # as_fn_set_status STATUS | |
18925 | # ----------------------- | |
18926 | # Set $? to STATUS, without forking. | |
18927 | as_fn_set_status () | |
18928 | { | |
18929 | return $1 | |
18930 | } # as_fn_set_status | |
18931 | ||
18932 | # as_fn_exit STATUS | |
18933 | # ----------------- | |
18934 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18935 | as_fn_exit () | |
18936 | { | |
18937 | set +e | |
18938 | as_fn_set_status $1 | |
18939 | exit $1 | |
18940 | } # as_fn_exit | |
18941 | ||
18942 | # as_fn_unset VAR | |
18943 | # --------------- | |
18944 | # Portably unset VAR. | |
18945 | as_fn_unset () | |
18946 | { | |
18947 | { eval $1=; unset $1;} | |
18948 | } | |
18949 | as_unset=as_fn_unset | |
18950 | # as_fn_append VAR VALUE | |
18951 | # ---------------------- | |
18952 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18953 | # advantage of any shell optimizations that allow amortized linear growth over | |
18954 | # repeated appends, instead of the typical quadratic growth present in naive | |
18955 | # implementations. | |
18956 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18957 | eval 'as_fn_append () | |
18958 | { | |
18959 | eval $1+=\$2 | |
18960 | }' | |
18961 | else | |
18962 | as_fn_append () | |
18963 | { | |
18964 | eval $1=\$$1\$2 | |
18965 | } | |
18966 | fi # as_fn_append | |
18967 | ||
18968 | # as_fn_arith ARG... | |
18969 | # ------------------ | |
18970 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18971 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18972 | # must be portable across $(()) and expr. | |
18973 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18974 | eval 'as_fn_arith () | |
18975 | { | |
18976 | as_val=$(( $* )) | |
18977 | }' | |
18978 | else | |
18979 | as_fn_arith () | |
18980 | { | |
18981 | as_val=`expr "$@" || test $? -eq 1` | |
18982 | } | |
18983 | fi # as_fn_arith | |
18984 | ||
c6b750e1 | 18985 | |
81ecdfbb RW |
18986 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18987 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
18988 | as_expr=expr |
18989 | else | |
18990 | as_expr=false | |
18991 | fi | |
18992 | ||
81ecdfbb | 18993 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
18994 | as_basename=basename |
18995 | else | |
18996 | as_basename=false | |
18997 | fi | |
18998 | ||
81ecdfbb RW |
18999 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
19000 | as_dirname=dirname | |
19001 | else | |
19002 | as_dirname=false | |
19003 | fi | |
c6b750e1 | 19004 | |
81ecdfbb | 19005 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
19006 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19007 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19008 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
19009 | $as_echo X/"$0" | | |
19010 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19011 | s//\1/ | |
19012 | q | |
19013 | } | |
19014 | /^X\/\(\/\/\)$/{ | |
19015 | s//\1/ | |
19016 | q | |
19017 | } | |
19018 | /^X\/\(\/\).*/{ | |
19019 | s//\1/ | |
19020 | q | |
19021 | } | |
19022 | s/.*/./; q'` | |
c6b750e1 | 19023 | |
c6b750e1 DJ |
19024 | # Avoid depending upon Character Ranges. |
19025 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19026 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19027 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19028 | as_cr_digits='0123456789' | |
19029 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19030 | ||
81ecdfbb RW |
19031 | ECHO_C= ECHO_N= ECHO_T= |
19032 | case `echo -n x` in #((((( | |
19033 | -n*) | |
19034 | case `echo 'xy\c'` in | |
19035 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19036 | xy) ECHO_C='\c';; | |
19037 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19038 | ECHO_T=' ';; | |
19039 | esac;; | |
19040 | *) | |
19041 | ECHO_N='-n';; | |
c6b750e1 DJ |
19042 | esac |
19043 | ||
81ecdfbb RW |
19044 | rm -f conf$$ conf$$.exe conf$$.file |
19045 | if test -d conf$$.dir; then | |
19046 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 19047 | else |
81ecdfbb RW |
19048 | rm -f conf$$.dir |
19049 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 19050 | fi |
81ecdfbb RW |
19051 | if (echo >conf$$.file) 2>/dev/null; then |
19052 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 19053 | as_ln_s='ln -s' |
81ecdfbb RW |
19054 | # ... but there are two gotchas: |
19055 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19056 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 19057 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 19058 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 19059 | as_ln_s='cp -pR' |
81ecdfbb RW |
19060 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19061 | as_ln_s=ln | |
19062 | else | |
d0ac1c44 | 19063 | as_ln_s='cp -pR' |
c6b750e1 | 19064 | fi |
c6b750e1 | 19065 | else |
d0ac1c44 | 19066 | as_ln_s='cp -pR' |
c6b750e1 | 19067 | fi |
81ecdfbb RW |
19068 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19069 | rmdir conf$$.dir 2>/dev/null | |
19070 | ||
19071 | ||
19072 | # as_fn_mkdir_p | |
19073 | # ------------- | |
19074 | # Create "$as_dir" as a directory, including parents if necessary. | |
19075 | as_fn_mkdir_p () | |
19076 | { | |
19077 | ||
19078 | case $as_dir in #( | |
19079 | -*) as_dir=./$as_dir;; | |
19080 | esac | |
19081 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19082 | as_dirs= | |
19083 | while :; do | |
19084 | case $as_dir in #( | |
19085 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19086 | *) as_qdir=$as_dir;; | |
19087 | esac | |
19088 | as_dirs="'$as_qdir' $as_dirs" | |
19089 | as_dir=`$as_dirname -- "$as_dir" || | |
19090 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19091 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19092 | X"$as_dir" : 'X\(//\)$' \| \ | |
19093 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19094 | $as_echo X"$as_dir" | | |
19095 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19096 | s//\1/ | |
19097 | q | |
19098 | } | |
19099 | /^X\(\/\/\)[^/].*/{ | |
19100 | s//\1/ | |
19101 | q | |
19102 | } | |
19103 | /^X\(\/\/\)$/{ | |
19104 | s//\1/ | |
19105 | q | |
19106 | } | |
19107 | /^X\(\/\).*/{ | |
19108 | s//\1/ | |
19109 | q | |
19110 | } | |
19111 | s/.*/./; q'` | |
19112 | test -d "$as_dir" && break | |
19113 | done | |
19114 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 19115 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 19116 | |
c6b750e1 | 19117 | |
81ecdfbb | 19118 | } # as_fn_mkdir_p |
c6b750e1 | 19119 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 19120 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
19121 | else |
19122 | test -d ./-p && rmdir ./-p | |
19123 | as_mkdir_p=false | |
19124 | fi | |
19125 | ||
d0ac1c44 SM |
19126 | |
19127 | # as_fn_executable_p FILE | |
19128 | # ----------------------- | |
19129 | # Test if FILE is an executable regular file. | |
19130 | as_fn_executable_p () | |
19131 | { | |
19132 | test -f "$1" && test -x "$1" | |
19133 | } # as_fn_executable_p | |
19134 | as_test_x='test -x' | |
19135 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
19136 | |
19137 | # Sed expression to map a string onto a valid CPP name. | |
19138 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19139 | ||
19140 | # Sed expression to map a string onto a valid variable name. | |
19141 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19142 | ||
19143 | ||
c6b750e1 | 19144 | exec 6>&1 |
81ecdfbb RW |
19145 | ## ----------------------------------- ## |
19146 | ## Main body of $CONFIG_STATUS script. ## | |
19147 | ## ----------------------------------- ## | |
19148 | _ASEOF | |
19149 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19150 | ||
19151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19152 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 19153 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
19154 | # values after options handling. |
19155 | ac_log=" | |
c6b750e1 | 19156 | This file was extended by $as_me, which was |
d0ac1c44 | 19157 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
19158 | |
19159 | CONFIG_FILES = $CONFIG_FILES | |
19160 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19161 | CONFIG_LINKS = $CONFIG_LINKS | |
19162 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19163 | $ $0 $@ | |
19164 | ||
81ecdfbb RW |
19165 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19166 | " | |
19167 | ||
c6b750e1 DJ |
19168 | _ACEOF |
19169 | ||
81ecdfbb RW |
19170 | case $ac_config_files in *" |
19171 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19172 | esac | |
c6b750e1 | 19173 | |
c6b750e1 | 19174 | |
c6b750e1 | 19175 | |
81ecdfbb RW |
19176 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19177 | # Files that config.status was made for. | |
19178 | config_files="$ac_config_files" | |
c6b750e1 | 19179 | |
81ecdfbb | 19180 | _ACEOF |
c6b750e1 | 19181 | |
81ecdfbb | 19182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19183 | ac_cs_usage="\ |
81ecdfbb RW |
19184 | \`$as_me' instantiates files and other configuration actions |
19185 | from templates according to the current configuration. Unless the files | |
19186 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 19187 | |
81ecdfbb | 19188 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
19189 | |
19190 | -h, --help print this help, then exit | |
81ecdfbb | 19191 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 19192 | --config print configuration, then exit |
81ecdfbb RW |
19193 | -q, --quiet, --silent |
19194 | do not print progress messages | |
c6b750e1 DJ |
19195 | -d, --debug don't remove temporary files |
19196 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
19197 | --file=FILE[:TEMPLATE] |
19198 | instantiate the configuration file FILE | |
c6b750e1 DJ |
19199 | |
19200 | Configuration files: | |
19201 | $config_files | |
19202 | ||
81ecdfbb | 19203 | Report bugs to the package provider." |
c6b750e1 | 19204 | |
81ecdfbb RW |
19205 | _ACEOF |
19206 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19207 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
19208 | ac_cs_version="\\ |
19209 | config.status | |
d0ac1c44 SM |
19210 | configured by $0, generated by GNU Autoconf 2.69, |
19211 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 19212 | |
d0ac1c44 | 19213 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
19214 | This config.status script is free software; the Free Software Foundation |
19215 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
19216 | |
19217 | ac_pwd='$ac_pwd' | |
19218 | srcdir='$srcdir' | |
19219 | INSTALL='$INSTALL' | |
8e957354 | 19220 | AWK='$AWK' |
81ecdfbb | 19221 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
19222 | _ACEOF |
19223 | ||
81ecdfbb RW |
19224 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19225 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
19226 | ac_need_defaults=: |
19227 | while test $# != 0 | |
a0da8069 | 19228 | do |
c6b750e1 | 19229 | case $1 in |
d0ac1c44 | 19230 | --*=?*) |
81ecdfbb RW |
19231 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19232 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
19233 | ac_shift=: |
19234 | ;; | |
d0ac1c44 SM |
19235 | --*=) |
19236 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19237 | ac_optarg= | |
19238 | ac_shift=: | |
19239 | ;; | |
81ecdfbb | 19240 | *) |
c6b750e1 DJ |
19241 | ac_option=$1 |
19242 | ac_optarg=$2 | |
19243 | ac_shift=shift | |
19244 | ;; | |
c6b750e1 DJ |
19245 | esac |
19246 | ||
19247 | case $ac_option in | |
19248 | # Handling of the options. | |
a0da8069 | 19249 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 19250 | ac_cs_recheck=: ;; |
81ecdfbb RW |
19251 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19252 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
19253 | --config | --confi | --conf | --con | --co | --c ) |
19254 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 19255 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
19256 | debug=: ;; |
19257 | --file | --fil | --fi | --f ) | |
19258 | $ac_shift | |
81ecdfbb RW |
19259 | case $ac_optarg in |
19260 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 19261 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
19262 | esac |
19263 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 19264 | ac_need_defaults=false;; |
81ecdfbb RW |
19265 | --he | --h | --help | --hel | -h ) |
19266 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
19267 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19268 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19269 | ac_cs_silent=: ;; | |
19270 | ||
19271 | # This is an error. | |
d0ac1c44 | 19272 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 19273 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 19274 | |
81ecdfbb RW |
19275 | *) as_fn_append ac_config_targets " $1" |
19276 | ac_need_defaults=false ;; | |
c6b750e1 | 19277 | |
376a0e54 | 19278 | esac |
c6b750e1 | 19279 | shift |
376a0e54 CM |
19280 | done |
19281 | ||
c6b750e1 | 19282 | ac_configure_extra_args= |
376a0e54 | 19283 | |
c6b750e1 DJ |
19284 | if $ac_cs_silent; then |
19285 | exec 6>/dev/null | |
19286 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19287 | fi | |
376a0e54 | 19288 | |
c6b750e1 | 19289 | _ACEOF |
81ecdfbb | 19290 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 19291 | if \$ac_cs_recheck; then |
d0ac1c44 | 19292 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
19293 | shift |
19294 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19295 | CONFIG_SHELL='$SHELL' | |
19296 | export CONFIG_SHELL | |
19297 | exec "\$@" | |
c6b750e1 DJ |
19298 | fi |
19299 | ||
19300 | _ACEOF | |
81ecdfbb RW |
19301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19302 | exec 5>>config.log | |
19303 | { | |
19304 | echo | |
19305 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19306 | ## Running $as_me. ## | |
19307 | _ASBOX | |
19308 | $as_echo "$ac_log" | |
19309 | } >&5 | |
c6b750e1 | 19310 | |
81ecdfbb RW |
19311 | _ACEOF |
19312 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
19313 | # |
19314 | # INIT-COMMANDS | |
19315 | # | |
19316 | extrasub_build="$extrasub_build" | |
19317 | extrasub_host="$extrasub_host" | |
19318 | extrasub_target="$extrasub_target" | |
19319 | ||
81ecdfbb | 19320 | _ACEOF |
c6b750e1 | 19321 | |
81ecdfbb | 19322 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19323 | |
81ecdfbb | 19324 | # Handling of arguments. |
c6b750e1 DJ |
19325 | for ac_config_target in $ac_config_targets |
19326 | do | |
81ecdfbb RW |
19327 | case $ac_config_target in |
19328 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19329 | ||
d0ac1c44 | 19330 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
19331 | esac |
19332 | done | |
19333 | ||
81ecdfbb | 19334 | |
c6b750e1 DJ |
19335 | # If the user did not use the arguments to specify the items to instantiate, |
19336 | # then the envvar interface is used. Set only those that are not. | |
19337 | # We use the long form for the default assignment because of an extremely | |
19338 | # bizarre bug on SunOS 4.1.3. | |
19339 | if $ac_need_defaults; then | |
19340 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19341 | fi | |
19342 | ||
19343 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 19344 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 19345 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
19346 | # Hook for its removal unless debugging. |
19347 | # Note that there is a small window in which the directory will not be cleaned: | |
19348 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
19349 | $debug || |
19350 | { | |
d0ac1c44 | 19351 | tmp= ac_tmp= |
81ecdfbb | 19352 | trap 'exit_status=$? |
d0ac1c44 SM |
19353 | : "${ac_tmp:=$tmp}" |
19354 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
19355 | ' 0 |
19356 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 19357 | } |
c6b750e1 DJ |
19358 | # Create a (secure) tmp directory for tmp files. |
19359 | ||
19360 | { | |
81ecdfbb | 19361 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 19362 | test -d "$tmp" |
c6b750e1 DJ |
19363 | } || |
19364 | { | |
81ecdfbb RW |
19365 | tmp=./conf$$-$RANDOM |
19366 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
19367 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19368 | ac_tmp=$tmp | |
81ecdfbb RW |
19369 | |
19370 | # Set up the scripts for CONFIG_FILES section. | |
19371 | # No need to generate them if there are no CONFIG_FILES. | |
19372 | # This happens for instance with `./config.status config.h'. | |
19373 | if test -n "$CONFIG_FILES"; then | |
19374 | ||
19375 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19376 | ac_cs_awk_getline=: | |
19377 | ac_cs_awk_pipe_init= | |
19378 | ac_cs_awk_read_file=' | |
19379 | while ((getline aline < (F[key])) > 0) | |
19380 | print(aline) | |
19381 | close(F[key])' | |
19382 | ac_cs_awk_pipe_fini= | |
19383 | else | |
19384 | ac_cs_awk_getline=false | |
19385 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19386 | ac_cs_awk_read_file=' | |
19387 | print "|#_!!_#|" | |
19388 | print "cat " F[key] " &&" | |
19389 | '$ac_cs_awk_pipe_init | |
19390 | # The final `:' finishes the AND list. | |
19391 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19392 | fi | |
19393 | ac_cr=`echo X | tr X '\015'` | |
19394 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19395 | # But we know of no other shell where ac_cr would be empty at this | |
19396 | # point, so we can use a bashism as a fallback. | |
19397 | if test "x$ac_cr" = x; then | |
19398 | eval ac_cr=\$\'\\r\' | |
19399 | fi | |
19400 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19401 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 19402 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
19403 | else |
19404 | ac_cs_awk_cr=$ac_cr | |
19405 | fi | |
19406 | ||
d0ac1c44 | 19407 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
19408 | _ACEOF |
19409 | ||
19410 | # Create commands to substitute file output variables. | |
c6b750e1 | 19411 | { |
81ecdfbb | 19412 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 19413 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
19414 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19415 | echo "_ACAWK" && | |
19416 | echo "_ACEOF" | |
19417 | } >conf$$files.sh && | |
19418 | . ./conf$$files.sh || | |
d0ac1c44 | 19419 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19420 | rm -f conf$$files.sh |
c6b750e1 | 19421 | |
81ecdfbb RW |
19422 | { |
19423 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19424 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19425 | echo "_ACEOF" | |
19426 | } >conf$$subs.sh || | |
d0ac1c44 SM |
19427 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19428 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
19429 | ac_delim='%!_!# ' |
19430 | for ac_last_try in false false false false false :; do | |
19431 | . ./conf$$subs.sh || | |
d0ac1c44 | 19432 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19433 | |
19434 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19435 | if test $ac_delim_n = $ac_delim_num; then | |
19436 | break | |
19437 | elif $ac_last_try; then | |
d0ac1c44 | 19438 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19439 | else |
19440 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19441 | fi | |
19442 | done | |
19443 | rm -f conf$$subs.sh | |
19444 | ||
19445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19446 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 19447 | _ACEOF |
81ecdfbb RW |
19448 | sed -n ' |
19449 | h | |
19450 | s/^/S["/; s/!.*/"]=/ | |
19451 | p | |
19452 | g | |
19453 | s/^[^!]*!// | |
19454 | :repl | |
19455 | t repl | |
19456 | s/'"$ac_delim"'$// | |
19457 | t delim | |
19458 | :nl | |
19459 | h | |
d0ac1c44 | 19460 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19461 | t more1 |
19462 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19463 | p | |
19464 | n | |
19465 | b repl | |
19466 | :more1 | |
19467 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19468 | p | |
19469 | g | |
19470 | s/.\{148\}// | |
19471 | t nl | |
19472 | :delim | |
19473 | h | |
d0ac1c44 | 19474 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19475 | t more2 |
19476 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19477 | p | |
19478 | b | |
19479 | :more2 | |
19480 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19481 | p | |
19482 | g | |
19483 | s/.\{148\}// | |
19484 | t delim | |
19485 | ' <conf$$subs.awk | sed ' | |
19486 | /^[^""]/{ | |
19487 | N | |
19488 | s/\n// | |
19489 | } | |
19490 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19491 | rm -f conf$$subs.awk | |
19492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19493 | _ACAWK | |
d0ac1c44 | 19494 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
19495 | for (key in S) S_is_set[key] = 1 |
19496 | FS = "\a" | |
19497 | \$ac_cs_awk_pipe_init | |
19498 | } | |
19499 | { | |
19500 | line = $ 0 | |
19501 | nfields = split(line, field, "@") | |
19502 | substed = 0 | |
19503 | len = length(field[1]) | |
19504 | for (i = 2; i < nfields; i++) { | |
19505 | key = field[i] | |
19506 | keylen = length(key) | |
19507 | if (S_is_set[key]) { | |
19508 | value = S[key] | |
19509 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19510 | len += length(value) + length(field[++i]) | |
19511 | substed = 1 | |
19512 | } else | |
19513 | len += 1 + keylen | |
19514 | } | |
19515 | if (nfields == 3 && !substed) { | |
19516 | key = field[2] | |
19517 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19518 | \$ac_cs_awk_read_file | |
19519 | next | |
19520 | } | |
19521 | } | |
19522 | print line | |
19523 | } | |
19524 | \$ac_cs_awk_pipe_fini | |
19525 | _ACAWK | |
19526 | _ACEOF | |
19527 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19528 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19529 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19530 | else | |
19531 | cat | |
d0ac1c44 SM |
19532 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19533 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
19534 | _ACEOF |
19535 | ||
d0ac1c44 SM |
19536 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19537 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
19538 | # trailing colons and then remove the whole line if VPATH becomes empty |
19539 | # (actually we leave an empty line to preserve line numbers). | |
19540 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
19541 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19542 | h | |
19543 | s/// | |
19544 | s/^/:/ | |
19545 | s/[ ]*$/:/ | |
19546 | s/:\$(srcdir):/:/g | |
19547 | s/:\${srcdir}:/:/g | |
19548 | s/:@srcdir@:/:/g | |
19549 | s/^:*// | |
81ecdfbb | 19550 | s/:*$// |
d0ac1c44 SM |
19551 | x |
19552 | s/\(=[ ]*\).*/\1/ | |
19553 | G | |
19554 | s/\n// | |
81ecdfbb RW |
19555 | s/^[^=]*=[ ]*$// |
19556 | }' | |
19557 | fi | |
c6b750e1 | 19558 | |
81ecdfbb RW |
19559 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19560 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 19561 | |
c6b750e1 | 19562 | |
81ecdfbb RW |
19563 | eval set X " :F $CONFIG_FILES " |
19564 | shift | |
19565 | for ac_tag | |
19566 | do | |
19567 | case $ac_tag in | |
19568 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19569 | esac | |
19570 | case $ac_mode$ac_tag in | |
19571 | :[FHL]*:*);; | |
d0ac1c44 | 19572 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19573 | :[FH]-) ac_tag=-:-;; |
19574 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19575 | esac | |
19576 | ac_save_IFS=$IFS | |
19577 | IFS=: | |
19578 | set x $ac_tag | |
19579 | IFS=$ac_save_IFS | |
19580 | shift | |
19581 | ac_file=$1 | |
19582 | shift | |
252b5132 | 19583 | |
81ecdfbb RW |
19584 | case $ac_mode in |
19585 | :L) ac_source=$1;; | |
19586 | :[FH]) | |
19587 | ac_file_inputs= | |
19588 | for ac_f | |
19589 | do | |
19590 | case $ac_f in | |
d0ac1c44 | 19591 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19592 | *) # Look for the file first in the build tree, then in the source tree |
19593 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19594 | # because $ac_f cannot contain `:'. | |
19595 | test -f "$ac_f" || | |
19596 | case $ac_f in | |
19597 | [\\/$]*) false;; | |
19598 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19599 | esac || | |
d0ac1c44 | 19600 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19601 | esac |
19602 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19603 | as_fn_append ac_file_inputs " '$ac_f'" | |
19604 | done | |
c6b750e1 | 19605 | |
81ecdfbb RW |
19606 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19607 | # use $as_me), people would be surprised to read: | |
19608 | # /* config.h. Generated by config.status. */ | |
19609 | configure_input='Generated from '` | |
19610 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19611 | `' by configure.' | |
19612 | if test x"$ac_file" != x-; then | |
19613 | configure_input="$ac_file. $configure_input" | |
19614 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19615 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 19616 | fi |
81ecdfbb RW |
19617 | # Neutralize special characters interpreted by sed in replacement strings. |
19618 | case $configure_input in #( | |
19619 | *\&* | *\|* | *\\* ) | |
19620 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19621 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19622 | *) ac_sed_conf_input=$configure_input;; | |
19623 | esac | |
cac3d6c4 | 19624 | |
81ecdfbb | 19625 | case $ac_tag in |
d0ac1c44 SM |
19626 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19627 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19628 | esac |
19629 | ;; | |
a0da8069 | 19630 | esac |
252b5132 | 19631 | |
81ecdfbb | 19632 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
19633 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19634 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19635 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19636 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19637 | $as_echo X"$ac_file" | | |
19638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19639 | s//\1/ | |
19640 | q | |
19641 | } | |
19642 | /^X\(\/\/\)[^/].*/{ | |
19643 | s//\1/ | |
19644 | q | |
19645 | } | |
19646 | /^X\(\/\/\)$/{ | |
19647 | s//\1/ | |
19648 | q | |
19649 | } | |
19650 | /^X\(\/\).*/{ | |
19651 | s//\1/ | |
19652 | q | |
19653 | } | |
19654 | s/.*/./; q'` | |
19655 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 19656 | ac_builddir=. |
252b5132 | 19657 | |
81ecdfbb RW |
19658 | case "$ac_dir" in |
19659 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19660 | *) | |
19661 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19662 | # A ".." for each directory in $ac_dir_suffix. | |
19663 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19664 | case $ac_top_builddir_sub in | |
19665 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19666 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19667 | esac ;; | |
19668 | esac | |
19669 | ac_abs_top_builddir=$ac_pwd | |
19670 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19671 | # for backward compatibility: | |
19672 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
19673 | |
19674 | case $srcdir in | |
81ecdfbb | 19675 | .) # We are building in place. |
c6b750e1 | 19676 | ac_srcdir=. |
81ecdfbb RW |
19677 | ac_top_srcdir=$ac_top_builddir_sub |
19678 | ac_abs_top_srcdir=$ac_pwd ;; | |
19679 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 19680 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19681 | ac_top_srcdir=$srcdir |
19682 | ac_abs_top_srcdir=$srcdir ;; | |
19683 | *) # Relative name. | |
19684 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19685 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19686 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 19687 | esac |
81ecdfbb | 19688 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 19689 | |
252b5132 | 19690 | |
81ecdfbb RW |
19691 | case $ac_mode in |
19692 | :F) | |
19693 | # | |
19694 | # CONFIG_FILE | |
19695 | # | |
c6b750e1 DJ |
19696 | |
19697 | case $INSTALL in | |
19698 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 19699 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 19700 | esac |
81ecdfbb | 19701 | _ACEOF |
252b5132 | 19702 | |
81ecdfbb RW |
19703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19704 | # If the template does not know about datarootdir, expand it. | |
19705 | # FIXME: This hack should be removed a few years after 2.60. | |
19706 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19707 | ac_sed_dataroot=' | |
19708 | /datarootdir/ { | |
19709 | p | |
19710 | q | |
19711 | } | |
19712 | /@datadir@/p | |
19713 | /@docdir@/p | |
19714 | /@infodir@/p | |
19715 | /@localedir@/p | |
19716 | /@mandir@/p' | |
19717 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19718 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19719 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19721 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 19722 | _ACEOF |
81ecdfbb RW |
19723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19724 | ac_datarootdir_hack=' | |
19725 | s&@datadir@&$datadir&g | |
19726 | s&@docdir@&$docdir&g | |
19727 | s&@infodir@&$infodir&g | |
19728 | s&@localedir@&$localedir&g | |
19729 | s&@mandir@&$mandir&g | |
19730 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19731 | esac | |
19732 | _ACEOF | |
19733 | ||
19734 | # Neutralize VPATH when `$srcdir' = `.'. | |
19735 | # Shell code in configure.ac might set extrasub. | |
19736 | # FIXME: do we really want to maintain this feature? | |
19737 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19738 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
19739 | $extrasub |
19740 | _ACEOF | |
81ecdfbb | 19741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
19742 | :t |
19743 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19744 | s|@configure_input@|$ac_sed_conf_input|;t t |
19745 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19746 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19747 | s&@srcdir@&$ac_srcdir&;t t | |
19748 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19749 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19750 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19751 | s&@builddir@&$ac_builddir&;t t | |
19752 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19753 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19754 | s&@INSTALL@&$ac_INSTALL&;t t | |
19755 | $ac_datarootdir_hack | |
19756 | " | |
19757 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19758 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 19759 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 19760 | else |
d0ac1c44 SM |
19761 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19762 | fi \ | |
19763 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
19764 | |
19765 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19766 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19767 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19768 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19770 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19771 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19772 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19773 | |
d0ac1c44 | 19774 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 19775 | case $ac_file in |
d0ac1c44 SM |
19776 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19777 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19778 | esac \ |
d0ac1c44 | 19779 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 19780 | ;; |
c148b4cb | 19781 | |
c148b4cb | 19782 | |
c148b4cb | 19783 | |
81ecdfbb RW |
19784 | esac |
19785 | ||
06a51eac RW |
19786 | |
19787 | case $ac_file$ac_mode in | |
19788 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19789 | sed "$extrasub_host" | | |
19790 | sed "$extrasub_target" > mf$$ | |
19791 | mv -f mf$$ Makefile ;; | |
19792 | ||
19793 | esac | |
81ecdfbb RW |
19794 | done # for ac_tag |
19795 | ||
19796 | ||
19797 | as_fn_exit 0 | |
c6b750e1 | 19798 | _ACEOF |
c6b750e1 DJ |
19799 | ac_clean_files=$ac_clean_files_save |
19800 | ||
81ecdfbb | 19801 | test $ac_write_fail = 0 || |
d0ac1c44 | 19802 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19803 | |
c6b750e1 DJ |
19804 | |
19805 | # configure is writing to config.log, and then calls config.status. | |
19806 | # config.status does its own redirection, appending to config.log. | |
19807 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19808 | # by configure, so config.status won't be able to write to it; its | |
19809 | # output is simply discarded. So we exec the FD to /dev/null, | |
19810 | # effectively closing config.log, so it can be properly (re)opened and | |
19811 | # appended to by config.status. When coming back to configure, we | |
19812 | # need to make the FD available again. | |
19813 | if test "$no_create" != yes; then | |
19814 | ac_cs_success=: | |
19815 | ac_config_status_args= | |
19816 | test "$silent" = yes && | |
19817 | ac_config_status_args="$ac_config_status_args --quiet" | |
19818 | exec 5>/dev/null | |
19819 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19820 | exec 5>>config.log | |
19821 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19822 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 19823 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
19824 | fi |
19825 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19827 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 19828 | fi |
c148b4cb | 19829 |