]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
1c710c3c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
1c710c3c | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
1c710c3c | 301 | |
5213506e RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
1c710c3c | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
1c710c3c | 456 | |
2aeb72e9 DD |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 463 | |
1c710c3c | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
1c710c3c | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
1c710c3c | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 482 | t loop |
5213506e | 483 | s/-\n.*// |
1c710c3c | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
1c710c3c DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
1c710c3c DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
1c710c3c DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
2aeb72e9 | 533 | fi |
1c710c3c | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
1c710c3c | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
0b0dc272 | 549 | |
1c710c3c DJ |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
1c710c3c DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1c710c3c DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
1c710c3c DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
671aa708 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
1c710c3c | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
1c710c3c DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
2aeb72e9 | 576 | |
1c710c3c DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
1c710c3c DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
5213506e RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
e7a82751 | 604 | READELF_FOR_TARGET |
5213506e | 605 | RANLIB_FOR_TARGET |
e4a9a572 | 606 | OTOOL_FOR_TARGET |
5213506e | 607 | OBJDUMP_FOR_TARGET |
9bccfdf5 | 608 | OBJCOPY_FOR_TARGET |
5213506e RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
b4c522fa | 615 | GDC_FOR_TARGET |
632e2a07 | 616 | GOC_FOR_TARGET |
5213506e | 617 | GFORTRAN_FOR_TARGET |
5213506e RW |
618 | GCC_FOR_TARGET |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
e7a82751 | 621 | READELF |
e4a9a572 | 622 | OTOOL |
5213506e RW |
623 | OBJDUMP |
624 | OBJCOPY | |
625 | WINDMC | |
626 | WINDRES | |
627 | STRIP | |
628 | RANLIB | |
629 | NM | |
630 | LIPO | |
631 | LD | |
632 | DLLTOOL | |
633 | AS | |
634 | AR | |
635 | RUNTEST | |
636 | EXPECT | |
637 | MAKEINFO | |
638 | FLEX | |
639 | LEX | |
640 | M4 | |
641 | BISON | |
642 | YACC | |
5213506e RW |
643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
b4c522fa | 649 | GDC_FOR_BUILD |
632e2a07 | 650 | GOC_FOR_BUILD |
5213506e | 651 | GFORTRAN_FOR_BUILD |
5213506e RW |
652 | DLLTOOL_FOR_BUILD |
653 | CXX_FOR_BUILD | |
654 | CXXFLAGS_FOR_BUILD | |
655 | CFLAGS_FOR_BUILD | |
656 | CC_FOR_BUILD | |
657 | AS_FOR_BUILD | |
658 | AR_FOR_BUILD | |
aae29963 | 659 | target_configdirs |
5213506e | 660 | configdirs |
5213506e | 661 | build_configdirs |
5213506e RW |
662 | INSTALL_GDB_TK |
663 | GDB_TK | |
664 | CONFIGURE_GDB_TK | |
665 | build_tooldir | |
666 | tooldir | |
667 | GCC_SHLIB_SUBDIR | |
668 | RPATH_ENVVAR | |
ffedf511 RW |
669 | target_configargs |
670 | host_configargs | |
671 | build_configargs | |
e12c4094 | 672 | BUILD_CONFIG |
6f57bdf6 | 673 | LDFLAGS_FOR_TARGET |
5213506e RW |
674 | CXXFLAGS_FOR_TARGET |
675 | CFLAGS_FOR_TARGET | |
676 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
677 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 678 | get_gcc_base_ver |
1c01ebf6 | 679 | extra_host_zlib_configure_flags |
d7f09764 | 680 | extra_host_libiberty_configure_flags |
fca38047 | 681 | stage1_languages |
cdfee50a | 682 | host_shared |
45b3824d TS |
683 | extra_linker_plugin_flags |
684 | extra_linker_plugin_configure_flags | |
33ad93b9 | 685 | islinc |
eae1a5d4 | 686 | isllibs |
5213506e | 687 | poststage1_ldflags |
ed2eaa9f | 688 | poststage1_libs |
5213506e | 689 | stage1_ldflags |
0b21f5d3 | 690 | stage1_libs |
0ff2d841 | 691 | extra_isl_gmp_configure_flags |
5213506e RW |
692 | extra_mpc_mpfr_configure_flags |
693 | extra_mpc_gmp_configure_flags | |
694 | extra_mpfr_configure_flags | |
695 | gmpinc | |
696 | gmplibs | |
7ffcf5d6 | 697 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 698 | HAVE_CXX11 |
5213506e RW |
699 | do_compare |
700 | GNATMAKE | |
701 | GNATBIND | |
702 | ac_ct_CXX | |
703 | CXXFLAGS | |
704 | CXX | |
705 | OBJEXT | |
706 | EXEEXT | |
707 | ac_ct_CC | |
708 | CPPFLAGS | |
709 | LDFLAGS | |
710 | CFLAGS | |
711 | CC | |
5f520819 | 712 | extra_liboffloadmic_configure_flags |
5213506e RW |
713 | target_subdir |
714 | host_subdir | |
715 | build_subdir | |
716 | build_libsubdir | |
87264276 PB |
717 | AWK |
718 | SED | |
5213506e RW |
719 | LN_S |
720 | LN | |
721 | INSTALL_DATA | |
722 | INSTALL_SCRIPT | |
723 | INSTALL_PROGRAM | |
724 | target_os | |
725 | target_vendor | |
726 | target_cpu | |
727 | target | |
728 | host_os | |
729 | host_vendor | |
730 | host_cpu | |
731 | host | |
732 | target_noncanonical | |
733 | host_noncanonical | |
734 | build_noncanonical | |
735 | build_os | |
736 | build_vendor | |
737 | build_cpu | |
738 | build | |
739 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
740 | target_alias | |
741 | host_alias | |
742 | build_alias | |
743 | LIBS | |
744 | ECHO_T | |
745 | ECHO_N | |
746 | ECHO_C | |
747 | DEFS | |
748 | mandir | |
749 | localedir | |
750 | libdir | |
751 | psdir | |
752 | pdfdir | |
753 | dvidir | |
754 | htmldir | |
755 | infodir | |
756 | docdir | |
757 | oldincludedir | |
758 | includedir | |
759 | localstatedir | |
760 | sharedstatedir | |
761 | sysconfdir | |
762 | datadir | |
763 | datarootdir | |
764 | libexecdir | |
765 | sbindir | |
766 | bindir | |
767 | program_transform_name | |
768 | prefix | |
769 | exec_prefix | |
770 | PACKAGE_URL | |
771 | PACKAGE_BUGREPORT | |
772 | PACKAGE_STRING | |
773 | PACKAGE_VERSION | |
774 | PACKAGE_TARNAME | |
775 | PACKAGE_NAME | |
776 | PATH_SEPARATOR | |
777 | SHELL' | |
778 | ac_subst_files='serialization_dependencies | |
779 | host_makefile_frag | |
780 | target_makefile_frag | |
781 | alphaieee_frag | |
782 | ospace_frag' | |
783 | ac_user_opts=' | |
784 | enable_option_checking | |
785 | with_build_libsubdir | |
a05c2c75 | 786 | with_system_zlib |
85c64bbe BS |
787 | enable_as_accelerator_for |
788 | enable_offload_targets | |
fe5bfa67 | 789 | enable_offload_defaulted |
5213506e | 790 | enable_gold |
21539e2e | 791 | enable_ld |
78edb32f | 792 | enable_compressed_debug_sections |
87e6d9dc TB |
793 | enable_libquadmath |
794 | enable_libquadmath_support | |
5213506e RW |
795 | enable_libada |
796 | enable_libssp | |
1873ec0c | 797 | enable_libstdcxx |
5f520819 | 798 | enable_liboffloadmic |
ff3ac0f4 | 799 | enable_bootstrap |
5213506e RW |
800 | with_mpc |
801 | with_mpc_include | |
802 | with_mpc_lib | |
803 | with_mpfr_dir | |
804 | with_mpfr | |
805 | with_mpfr_include | |
806 | with_mpfr_lib | |
807 | with_gmp_dir | |
808 | with_gmp | |
809 | with_gmp_include | |
810 | with_gmp_lib | |
5213506e | 811 | with_stage1_libs |
aac9103b | 812 | with_static_standard_libraries |
0b21f5d3 | 813 | with_stage1_ldflags |
5213506e | 814 | with_boot_libs |
ed2eaa9f | 815 | with_boot_ldflags |
33ad93b9 RG |
816 | with_isl |
817 | with_isl_include | |
818 | with_isl_lib | |
819 | enable_isl_version_check | |
d7f09764 | 820 | enable_lto |
45b3824d TS |
821 | enable_linker_plugin_configure_flags |
822 | enable_linker_plugin_flags | |
cdfee50a | 823 | enable_host_shared |
5213506e | 824 | enable_stage1_languages |
43c40f3e | 825 | enable_objc_gc |
114bf3f1 MK |
826 | with_target_bdw_gc |
827 | with_target_bdw_gc_include | |
828 | with_target_bdw_gc_lib | |
3c36aa6b | 829 | with_gcc_major_version_only |
5213506e RW |
830 | with_build_sysroot |
831 | with_debug_prefix_map | |
5646b7b9 | 832 | with_build_config |
beeda1d9 | 833 | enable_vtable_verify |
5213506e RW |
834 | enable_serial_configure |
835 | with_build_time_tools | |
836 | enable_maintainer_mode | |
837 | enable_stage1_checking | |
838 | enable_werror | |
5213506e RW |
839 | ' |
840 | ac_precious_vars='build_alias | |
841 | host_alias | |
842 | target_alias | |
843 | CC | |
844 | CFLAGS | |
845 | LDFLAGS | |
846 | LIBS | |
847 | CPPFLAGS | |
848 | CXX | |
849 | CXXFLAGS | |
850 | CCC | |
ffedf511 RW |
851 | build_configargs |
852 | host_configargs | |
853 | target_configargs | |
5213506e RW |
854 | AR |
855 | AS | |
856 | DLLTOOL | |
857 | LD | |
858 | LIPO | |
859 | NM | |
860 | RANLIB | |
861 | STRIP | |
862 | WINDRES | |
863 | WINDMC | |
864 | OBJCOPY | |
865 | OBJDUMP | |
e4a9a572 | 866 | OTOOL |
e7a82751 | 867 | READELF |
5213506e RW |
868 | CC_FOR_TARGET |
869 | CXX_FOR_TARGET | |
870 | GCC_FOR_TARGET | |
5213506e | 871 | GFORTRAN_FOR_TARGET |
632e2a07 | 872 | GOC_FOR_TARGET |
b4c522fa | 873 | GDC_FOR_TARGET |
5213506e RW |
874 | AR_FOR_TARGET |
875 | AS_FOR_TARGET | |
876 | DLLTOOL_FOR_TARGET | |
877 | LD_FOR_TARGET | |
878 | LIPO_FOR_TARGET | |
879 | NM_FOR_TARGET | |
9bccfdf5 | 880 | OBJCOPY_FOR_TARGET |
5213506e | 881 | OBJDUMP_FOR_TARGET |
e4a9a572 | 882 | OTOOL_FOR_TARGET |
5213506e | 883 | RANLIB_FOR_TARGET |
e7a82751 | 884 | READELF_FOR_TARGET |
5213506e RW |
885 | STRIP_FOR_TARGET |
886 | WINDRES_FOR_TARGET | |
887 | WINDMC_FOR_TARGET' | |
888 | ||
671aa708 NN |
889 | |
890 | # Initialize some variables set by options. | |
1c710c3c DJ |
891 | ac_init_help= |
892 | ac_init_version=false | |
5213506e RW |
893 | ac_unrecognized_opts= |
894 | ac_unrecognized_sep= | |
671aa708 NN |
895 | # The variables have the same names as the options, with |
896 | # dashes changed to underlines. | |
1c710c3c | 897 | cache_file=/dev/null |
671aa708 | 898 | exec_prefix=NONE |
671aa708 | 899 | no_create= |
671aa708 NN |
900 | no_recursion= |
901 | prefix=NONE | |
902 | program_prefix=NONE | |
903 | program_suffix=NONE | |
904 | program_transform_name=s,x,x, | |
905 | silent= | |
906 | site= | |
907 | srcdir= | |
671aa708 NN |
908 | verbose= |
909 | x_includes=NONE | |
910 | x_libraries=NONE | |
1c710c3c DJ |
911 | |
912 | # Installation directory options. | |
913 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
914 | # and all the variables that are supposed to be based on exec_prefix | |
915 | # by default will actually change. | |
916 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 917 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
918 | bindir='${exec_prefix}/bin' |
919 | sbindir='${exec_prefix}/sbin' | |
920 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
921 | datarootdir='${prefix}/share' |
922 | datadir='${datarootdir}' | |
671aa708 NN |
923 | sysconfdir='${prefix}/etc' |
924 | sharedstatedir='${prefix}/com' | |
925 | localstatedir='${prefix}/var' | |
671aa708 NN |
926 | includedir='${prefix}/include' |
927 | oldincludedir='/usr/include' | |
5213506e RW |
928 | docdir='${datarootdir}/doc/${PACKAGE}' |
929 | infodir='${datarootdir}/info' | |
930 | htmldir='${docdir}' | |
931 | dvidir='${docdir}' | |
932 | pdfdir='${docdir}' | |
933 | psdir='${docdir}' | |
934 | libdir='${exec_prefix}/lib' | |
935 | localedir='${datarootdir}/locale' | |
936 | mandir='${datarootdir}/man' | |
79c06341 | 937 | |
671aa708 | 938 | ac_prev= |
5213506e | 939 | ac_dashdash= |
671aa708 NN |
940 | for ac_option |
941 | do | |
671aa708 NN |
942 | # If the previous option needs an argument, assign it. |
943 | if test -n "$ac_prev"; then | |
5213506e | 944 | eval $ac_prev=\$ac_option |
671aa708 NN |
945 | ac_prev= |
946 | continue | |
947 | fi | |
79c06341 | 948 | |
5213506e | 949 | case $ac_option in |
22e05272 JM |
950 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
951 | *=) ac_optarg= ;; | |
952 | *) ac_optarg=yes ;; | |
5213506e | 953 | esac |
671aa708 NN |
954 | |
955 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
956 | ||
5213506e RW |
957 | case $ac_dashdash$ac_option in |
958 | --) | |
959 | ac_dashdash=yes ;; | |
671aa708 NN |
960 | |
961 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
962 | ac_prev=bindir ;; | |
963 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 964 | bindir=$ac_optarg ;; |
671aa708 NN |
965 | |
966 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 967 | ac_prev=build_alias ;; |
671aa708 | 968 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 969 | build_alias=$ac_optarg ;; |
671aa708 NN |
970 | |
971 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
972 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
973 | ac_prev=cache_file ;; | |
974 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
975 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
976 | cache_file=$ac_optarg ;; |
977 | ||
978 | --config-cache | -C) | |
979 | cache_file=config.cache ;; | |
671aa708 | 980 | |
5213506e | 981 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 982 | ac_prev=datadir ;; |
5213506e | 983 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 984 | datadir=$ac_optarg ;; |
671aa708 | 985 | |
5213506e RW |
986 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
987 | | --dataroo | --dataro | --datar) | |
988 | ac_prev=datarootdir ;; | |
989 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
990 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
991 | datarootdir=$ac_optarg ;; | |
992 | ||
671aa708 | 993 | -disable-* | --disable-*) |
5213506e | 994 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 995 | # Reject names that are not valid shell variable names. |
5213506e | 996 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 997 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
998 | ac_useropt_orig=$ac_useropt |
999 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1000 | case $ac_user_opts in | |
1001 | *" | |
1002 | "enable_$ac_useropt" | |
1003 | "*) ;; | |
1004 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1005 | ac_unrecognized_sep=', ';; | |
1006 | esac | |
1007 | eval enable_$ac_useropt=no ;; | |
1008 | ||
1009 | -docdir | --docdir | --docdi | --doc | --do) | |
1010 | ac_prev=docdir ;; | |
1011 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1012 | docdir=$ac_optarg ;; | |
1013 | ||
1014 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1015 | ac_prev=dvidir ;; | |
1016 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1017 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1018 | |
1019 | -enable-* | --enable-*) | |
5213506e | 1020 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1021 | # Reject names that are not valid shell variable names. |
5213506e | 1022 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1023 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1024 | ac_useropt_orig=$ac_useropt |
1025 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1026 | case $ac_user_opts in | |
1027 | *" | |
1028 | "enable_$ac_useropt" | |
1029 | "*) ;; | |
1030 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1031 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1032 | esac |
5213506e | 1033 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1034 | |
1035 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1036 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1037 | | --exec | --exe | --ex) | |
1038 | ac_prev=exec_prefix ;; | |
1039 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1040 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1041 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1042 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1043 | |
1044 | -gas | --gas | --ga | --g) | |
1045 | # Obsolete; use --with-gas. | |
1046 | with_gas=yes ;; | |
1047 | ||
1c710c3c DJ |
1048 | -help | --help | --hel | --he | -h) |
1049 | ac_init_help=long ;; | |
1050 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1051 | ac_init_help=recursive ;; | |
1052 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1053 | ac_init_help=short ;; | |
671aa708 NN |
1054 | |
1055 | -host | --host | --hos | --ho) | |
1c710c3c | 1056 | ac_prev=host_alias ;; |
671aa708 | 1057 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1058 | host_alias=$ac_optarg ;; |
671aa708 | 1059 | |
5213506e RW |
1060 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1061 | ac_prev=htmldir ;; | |
1062 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1063 | | --ht=*) | |
1064 | htmldir=$ac_optarg ;; | |
1065 | ||
671aa708 NN |
1066 | -includedir | --includedir | --includedi | --included | --include \ |
1067 | | --includ | --inclu | --incl | --inc) | |
1068 | ac_prev=includedir ;; | |
1069 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1070 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1071 | includedir=$ac_optarg ;; |
671aa708 NN |
1072 | |
1073 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1074 | ac_prev=infodir ;; | |
1075 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1076 | infodir=$ac_optarg ;; |
671aa708 NN |
1077 | |
1078 | -libdir | --libdir | --libdi | --libd) | |
1079 | ac_prev=libdir ;; | |
1080 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1081 | libdir=$ac_optarg ;; |
671aa708 NN |
1082 | |
1083 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1084 | | --libexe | --libex | --libe) | |
1085 | ac_prev=libexecdir ;; | |
1086 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1087 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1088 | libexecdir=$ac_optarg ;; |
671aa708 | 1089 | |
5213506e RW |
1090 | -localedir | --localedir | --localedi | --localed | --locale) |
1091 | ac_prev=localedir ;; | |
1092 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1093 | localedir=$ac_optarg ;; | |
1094 | ||
671aa708 | 1095 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1096 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1097 | ac_prev=localstatedir ;; |
1098 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1099 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1100 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1101 | |
1102 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1103 | ac_prev=mandir ;; | |
1104 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1105 | mandir=$ac_optarg ;; |
671aa708 NN |
1106 | |
1107 | -nfp | --nfp | --nf) | |
1108 | # Obsolete; use --without-fp. | |
1109 | with_fp=no ;; | |
1110 | ||
1111 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1112 | | --no-cr | --no-c | -n) |
671aa708 NN |
1113 | no_create=yes ;; |
1114 | ||
1115 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1116 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1117 | no_recursion=yes ;; | |
1118 | ||
1119 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1120 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1121 | | --oldin | --oldi | --old | --ol | --o) | |
1122 | ac_prev=oldincludedir ;; | |
1123 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1124 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1125 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1126 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1127 | |
1128 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1129 | ac_prev=prefix ;; | |
1130 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1131 | prefix=$ac_optarg ;; |
671aa708 NN |
1132 | |
1133 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1134 | | --program-pre | --program-pr | --program-p) | |
1135 | ac_prev=program_prefix ;; | |
1136 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1137 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1138 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1139 | |
1140 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1141 | | --program-suf | --program-su | --program-s) | |
1142 | ac_prev=program_suffix ;; | |
1143 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1144 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1145 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1146 | |
1147 | -program-transform-name | --program-transform-name \ | |
1148 | | --program-transform-nam | --program-transform-na \ | |
1149 | | --program-transform-n | --program-transform- \ | |
1150 | | --program-transform | --program-transfor \ | |
1151 | | --program-transfo | --program-transf \ | |
1152 | | --program-trans | --program-tran \ | |
1153 | | --progr-tra | --program-tr | --program-t) | |
1154 | ac_prev=program_transform_name ;; | |
1155 | -program-transform-name=* | --program-transform-name=* \ | |
1156 | | --program-transform-nam=* | --program-transform-na=* \ | |
1157 | | --program-transform-n=* | --program-transform-=* \ | |
1158 | | --program-transform=* | --program-transfor=* \ | |
1159 | | --program-transfo=* | --program-transf=* \ | |
1160 | | --program-trans=* | --program-tran=* \ | |
1161 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1162 | program_transform_name=$ac_optarg ;; |
671aa708 | 1163 | |
5213506e RW |
1164 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1165 | ac_prev=pdfdir ;; | |
1166 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1167 | pdfdir=$ac_optarg ;; | |
1168 | ||
1169 | -psdir | --psdir | --psdi | --psd | --ps) | |
1170 | ac_prev=psdir ;; | |
1171 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1172 | psdir=$ac_optarg ;; | |
1173 | ||
671aa708 NN |
1174 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1175 | | -silent | --silent | --silen | --sile | --sil) | |
1176 | silent=yes ;; | |
1177 | ||
1178 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1179 | ac_prev=sbindir ;; | |
1180 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1181 | | --sbi=* | --sb=*) | |
1c710c3c | 1182 | sbindir=$ac_optarg ;; |
671aa708 NN |
1183 | |
1184 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1185 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1186 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1187 | | --sha | --sh) | |
1188 | ac_prev=sharedstatedir ;; | |
1189 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1190 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1191 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1192 | | --sha=* | --sh=*) | |
1c710c3c | 1193 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1194 | |
1195 | -site | --site | --sit) | |
1196 | ac_prev=site ;; | |
1197 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1198 | site=$ac_optarg ;; |
671aa708 NN |
1199 | |
1200 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1201 | ac_prev=srcdir ;; | |
1202 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1203 | srcdir=$ac_optarg ;; |
671aa708 NN |
1204 | |
1205 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1206 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1207 | ac_prev=sysconfdir ;; | |
1208 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1209 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1210 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1211 | |
1212 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1213 | ac_prev=target_alias ;; |
671aa708 | 1214 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1215 | target_alias=$ac_optarg ;; |
671aa708 NN |
1216 | |
1217 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1218 | verbose=yes ;; | |
1219 | ||
1c710c3c DJ |
1220 | -version | --version | --versio | --versi | --vers | -V) |
1221 | ac_init_version=: ;; | |
671aa708 NN |
1222 | |
1223 | -with-* | --with-*) | |
5213506e | 1224 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1225 | # Reject names that are not valid shell variable names. |
5213506e | 1226 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1227 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1228 | ac_useropt_orig=$ac_useropt |
1229 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1230 | case $ac_user_opts in | |
1231 | *" | |
1232 | "with_$ac_useropt" | |
1233 | "*) ;; | |
1234 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1235 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1236 | esac |
5213506e | 1237 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1238 | |
1239 | -without-* | --without-*) | |
5213506e | 1240 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1241 | # Reject names that are not valid shell variable names. |
5213506e | 1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1243 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1244 | ac_useropt_orig=$ac_useropt |
1245 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1246 | case $ac_user_opts in | |
1247 | *" | |
1248 | "with_$ac_useropt" | |
1249 | "*) ;; | |
1250 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1251 | ac_unrecognized_sep=', ';; | |
1252 | esac | |
1253 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1254 | |
1255 | --x) | |
1256 | # Obsolete; use --with-x. | |
1257 | with_x=yes ;; | |
1258 | ||
1259 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1260 | | --x-incl | --x-inc | --x-in | --x-i) | |
1261 | ac_prev=x_includes ;; | |
1262 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1263 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1264 | x_includes=$ac_optarg ;; |
671aa708 NN |
1265 | |
1266 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1267 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1268 | ac_prev=x_libraries ;; | |
1269 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1270 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1271 | x_libraries=$ac_optarg ;; |
671aa708 | 1272 | |
22e05272 JM |
1273 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1274 | Try \`$0 --help' for more information" | |
671aa708 NN |
1275 | ;; |
1276 | ||
1c710c3c DJ |
1277 | *=*) |
1278 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1279 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1280 | case $ac_envvar in #( |
1281 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1282 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1283 | esac |
1284 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1285 | export $ac_envvar ;; |
1286 | ||
671aa708 | 1287 | *) |
1c710c3c | 1288 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1289 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1290 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1291 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1292 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1293 | ;; |
1294 | ||
1295 | esac | |
1296 | done | |
1297 | ||
1298 | if test -n "$ac_prev"; then | |
1c710c3c | 1299 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1300 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1301 | fi |
af71363e | 1302 | |
5213506e RW |
1303 | if test -n "$ac_unrecognized_opts"; then |
1304 | case $enable_option_checking in | |
1305 | no) ;; | |
22e05272 | 1306 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1307 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1308 | esac |
5213506e | 1309 | fi |
2aeb72e9 | 1310 | |
5213506e RW |
1311 | # Check all directory arguments for consistency. |
1312 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1313 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1314 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1315 | libdir localedir mandir | |
2aeb72e9 | 1316 | do |
5213506e RW |
1317 | eval ac_val=\$$ac_var |
1318 | # Remove trailing slashes. | |
1319 | case $ac_val in | |
1320 | */ ) | |
1321 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1322 | eval $ac_var=\$ac_val;; | |
1323 | esac | |
1324 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1325 | case $ac_val in |
5213506e RW |
1326 | [\\/$]* | ?:[\\/]* ) continue;; |
1327 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1328 | esac |
22e05272 | 1329 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1330 | done |
1331 | ||
1c710c3c DJ |
1332 | # There might be people who depend on the old broken behavior: `$host' |
1333 | # used to hold the argument of --host etc. | |
1334 | # FIXME: To remove some day. | |
1335 | build=$build_alias | |
1336 | host=$host_alias | |
1337 | target=$target_alias | |
0b0dc272 | 1338 | |
1c710c3c DJ |
1339 | # FIXME: To remove some day. |
1340 | if test "x$host_alias" != x; then | |
1341 | if test "x$build_alias" = x; then | |
1342 | cross_compiling=maybe | |
1c710c3c DJ |
1343 | elif test "x$build_alias" != "x$host_alias"; then |
1344 | cross_compiling=yes | |
1345 | fi | |
1346 | fi | |
1347 | ||
1348 | ac_tool_prefix= | |
1349 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1350 | ||
1351 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1352 | |
671aa708 | 1353 | |
5213506e RW |
1354 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1355 | ac_ls_di=`ls -di .` && | |
1356 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1357 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1358 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1359 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1360 | |
1361 | ||
671aa708 NN |
1362 | # Find the source files, if location was not specified. |
1363 | if test -z "$srcdir"; then | |
1364 | ac_srcdir_defaulted=yes | |
5213506e RW |
1365 | # Try the directory containing this script, then the parent directory. |
1366 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1367 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1368 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1369 | X"$as_myself" : 'X\(//\)$' \| \ | |
1370 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1371 | $as_echo X"$as_myself" | | |
1372 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\/\)[^/].*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\/\)$/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\).*/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | s/.*/./; q'` | |
671aa708 | 1389 | srcdir=$ac_confdir |
5213506e | 1390 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1391 | srcdir=.. |
1392 | fi | |
1393 | else | |
1394 | ac_srcdir_defaulted=no | |
1395 | fi | |
5213506e RW |
1396 | if test ! -r "$srcdir/$ac_unique_file"; then |
1397 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1398 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1399 | fi |
1400 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1401 | ac_abs_confdir=`( | |
22e05272 | 1402 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1403 | pwd)` |
1404 | # When building in place, set srcdir=. | |
1405 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1406 | srcdir=. | |
1407 | fi | |
1408 | # Remove unnecessary trailing slashes from srcdir. | |
1409 | # Double slashes in file names in object file debugging info | |
1410 | # mess up M-x gdb in Emacs. | |
1411 | case $srcdir in | |
1412 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1413 | esac | |
87841584 AM |
1414 | case $srcdir in |
1415 | *" "*) | |
22e05272 | 1416 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1417 | ;; |
1418 | esac | |
ac9e6043 RW |
1419 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1420 | ||
5213506e RW |
1421 | for ac_var in $ac_precious_vars; do |
1422 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1423 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1424 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1426 | done | |
1c710c3c DJ |
1427 | |
1428 | # | |
1429 | # Report the --help message. | |
1430 | # | |
1431 | if test "$ac_init_help" = "long"; then | |
1432 | # Omit some internal or obsolete options to make the list less imposing. | |
1433 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1434 | cat <<_ACEOF | |
1435 | \`configure' configures this package to adapt to many kinds of systems. | |
1436 | ||
1437 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1438 | ||
1439 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1440 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1441 | ||
1442 | Defaults for the options are specified in brackets. | |
1443 | ||
1444 | Configuration: | |
1445 | -h, --help display this help and exit | |
1446 | --help=short display options specific to this package | |
1447 | --help=recursive display the short help of all the included packages | |
1448 | -V, --version display version information and exit | |
22e05272 | 1449 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1450 | --cache-file=FILE cache test results in FILE [disabled] |
1451 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1452 | -n, --no-create do not create output files | |
1453 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1454 | ||
1c710c3c DJ |
1455 | Installation directories: |
1456 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1457 | [$ac_default_prefix] |
1c710c3c | 1458 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1459 | [PREFIX] |
1c710c3c DJ |
1460 | |
1461 | By default, \`make install' will install all the files in | |
1462 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1463 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1464 | for instance \`--prefix=\$HOME'. | |
1465 | ||
1466 | For better control, use the options below. | |
1467 | ||
1468 | Fine tuning of the installation directories: | |
5213506e RW |
1469 | --bindir=DIR user executables [EPREFIX/bin] |
1470 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1471 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1472 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1473 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1474 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1475 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1476 | --includedir=DIR C header files [PREFIX/include] | |
1477 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1478 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1479 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1480 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1481 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1482 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1483 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1484 | --htmldir=DIR html documentation [DOCDIR] | |
1485 | --dvidir=DIR dvi documentation [DOCDIR] | |
1486 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1487 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1488 | _ACEOF |
1489 | ||
1490 | cat <<\_ACEOF | |
1491 | ||
1492 | Program names: | |
1493 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1494 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1495 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1496 | ||
1497 | System types: | |
1498 | --build=BUILD configure for building on BUILD [guessed] | |
1499 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1500 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1501 | _ACEOF | |
1502 | fi | |
1503 | ||
1504 | if test -n "$ac_init_help"; then | |
1505 | ||
1506 | cat <<\_ACEOF | |
1507 | ||
1508 | Optional Features: | |
5213506e | 1509 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1510 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1511 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1512 | --enable-as-accelerator-for=ARG |
1513 | build as offload target compiler. Specify offload | |
1514 | host triple by ARG | |
1515 | --enable-offload-targets=LIST | |
1516 | enable offloading to devices from comma-separated | |
1517 | LIST of TARGET[=DIR]. Use optional path to find | |
1518 | offload target compiler during the build | |
fe5bfa67 TB |
1519 | --enable-offload-defaulted |
1520 | If enabled, configured but not installed offload compilers and | |
1521 | libgomp plugins are silently ignored. Useful for distribution | |
1522 | compilers where those are in separate optional packages. | |
1523 | ||
21539e2e | 1524 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1525 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1526 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1527 | Enable compressed debug sections for gas, gold or ld |
1528 | by default | |
87e6d9dc TB |
1529 | --disable-libquadmath do not build libquadmath directory |
1530 | --disable-libquadmath-support | |
1531 | disable libquadmath support for Fortran | |
30b74385 RW |
1532 | --enable-libada build libada directory |
1533 | --enable-libssp build libssp directory | |
1873ec0c | 1534 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1535 | --enable-liboffloadmic=ARG |
1536 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1537 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1538 | --disable-isl-version-check |
560d18d3 | 1539 | disable check for isl version |
d7f09764 | 1540 | --enable-lto enable link time optimization support |
45b3824d TS |
1541 | --enable-linker-plugin-configure-flags=FLAGS |
1542 | additional flags for configuring linker plugins | |
1543 | [none] | |
1544 | --enable-linker-plugin-flags=FLAGS | |
1545 | additional flags for configuring and building linker | |
1546 | plugins [none] | |
cdfee50a | 1547 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1548 | --enable-stage1-languages[=all] |
1549 | choose additional languages to build during stage1. | |
1550 | Mostly useful for compiler development | |
43c40f3e RO |
1551 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1552 | Objective-C runtime | |
318a4e6d | 1553 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1554 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1555 | force sequential configuration of sub-packages for |
1556 | the host, target or build machine, or all | |
1557 | sub-packages | |
1558 | --enable-maintainer-mode | |
1559 | enable make rules and dependencies not useful (and | |
1560 | sometimes confusing) to the casual installer | |
1561 | --enable-stage1-checking[=all] | |
1562 | choose additional checking for stage1 of the | |
1563 | compiler | |
1c710c3c DJ |
1564 | --enable-werror enable -Werror in bootstrap stage2 and later |
1565 | ||
1566 | Optional Packages: | |
1567 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1568 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1569 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1570 | --with-system-zlib use installed libz |
33e39b66 AS |
1571 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1572 | Equivalent to --with-mpc-include=PATH/include plus | |
1573 | --with-mpc-lib=PATH/lib | |
1574 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1575 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1576 | --with-mpfr-dir=PATH this option has been REMOVED |
1577 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1578 | Equivalent to --with-mpfr-include=PATH/include plus |
1579 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1580 | --with-mpfr-include=PATH |
30b74385 RW |
1581 | specify directory for installed MPFR include files |
1582 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1583 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1584 | --with-gmp=PATH specify prefix directory for the installed GMP |
1585 | package. Equivalent to | |
1586 | --with-gmp-include=PATH/include plus | |
1587 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1588 | --with-gmp-include=PATH specify directory for installed GMP include files |
1589 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1590 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1591 | --with-static-standard-libraries |
1592 | use -static-libstdc++ and -static-libgcc | |
1593 | (default=auto) | |
33e39b66 AS |
1594 | --with-stage1-ldflags=FLAGS |
1595 | linker flags for stage1 | |
33e39b66 AS |
1596 | --with-boot-libs=LIBS libraries for stage2 and later |
1597 | --with-boot-ldflags=FLAGS | |
1598 | linker flags for stage2 and later | |
e357a5e0 | 1599 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1600 | package. Equivalent to |
33ad93b9 RG |
1601 | --with-isl-include=PATH/include plus |
1602 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1603 | --with-isl-include=PATH Specify directory for installed isl include files |
1604 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1605 | --with-target-bdw-gc=PATHLIST |
1606 | specify prefix directory for installed bdw-gc | |
1607 | package. Equivalent to | |
1608 | --with-target-bdw-gc-include=PATH/include plus | |
1609 | --with-target-bdw-gc-lib=PATH/lib | |
1610 | --with-target-bdw-gc-include=PATHLIST | |
1611 | specify directories for installed bdw-gc include | |
1612 | files | |
1613 | --with-target-bdw-gc-lib=PATHLIST | |
1614 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1615 | --with-gcc-major-version-only |
1616 | use only GCC major number in filesystem paths | |
30b74385 | 1617 | --with-build-sysroot=SYSROOT |
1c710c3c | 1618 | use sysroot as the system root during the build |
c8aea42c | 1619 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1620 | map A to B, C to D ... in debug information |
1621 | --with-build-config='NAME NAME2...' | |
1622 | use config/NAME.mk build configuration | |
30b74385 | 1623 | --with-build-time-tools=PATH |
1c710c3c | 1624 | use given path to find target tools during the build |
1c710c3c DJ |
1625 | |
1626 | Some influential environment variables: | |
1627 | CC C compiler command | |
1628 | CFLAGS C compiler flags | |
1629 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1630 | nonstandard directory <lib dir> | |
5213506e | 1631 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1632 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1633 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1634 | CXX C++ compiler command |
1635 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1636 | build_configargs |
1637 | additional configure arguments for build directories | |
1638 | host_configargs | |
1639 | additional configure arguments for host directories | |
1640 | target_configargs | |
1641 | additional configure arguments for target directories | |
278a7a38 AO |
1642 | AR AR for the host |
1643 | AS AS for the host | |
1644 | DLLTOOL DLLTOOL for the host | |
1645 | LD LD for the host | |
1646 | LIPO LIPO for the host | |
1647 | NM NM for the host | |
1648 | RANLIB RANLIB for the host | |
1649 | STRIP STRIP for the host | |
1650 | WINDRES WINDRES for the host | |
901119ae | 1651 | WINDMC WINDMC for the host |
278a7a38 AO |
1652 | OBJCOPY OBJCOPY for the host |
1653 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1654 | OTOOL OTOOL for the host |
e7a82751 | 1655 | READELF READELF for the host |
278a7a38 AO |
1656 | CC_FOR_TARGET |
1657 | CC for the target | |
1658 | CXX_FOR_TARGET | |
1659 | CXX for the target | |
1660 | GCC_FOR_TARGET | |
1661 | GCC for the target | |
278a7a38 AO |
1662 | GFORTRAN_FOR_TARGET |
1663 | GFORTRAN for the target | |
632e2a07 ILT |
1664 | GOC_FOR_TARGET |
1665 | GOC for the target | |
b4c522fa IB |
1666 | GDC_FOR_TARGET |
1667 | GDC for the target | |
278a7a38 AO |
1668 | AR_FOR_TARGET |
1669 | AR for the target | |
1670 | AS_FOR_TARGET | |
1671 | AS for the target | |
1672 | DLLTOOL_FOR_TARGET | |
1673 | DLLTOOL for the target | |
1674 | LD_FOR_TARGET | |
1675 | LD for the target | |
1676 | LIPO_FOR_TARGET | |
1677 | LIPO for the target | |
1678 | NM_FOR_TARGET | |
1679 | NM for the target | |
9bccfdf5 AP |
1680 | OBJCOPY_FOR_TARGET |
1681 | OBJCOPY for the target | |
278a7a38 AO |
1682 | OBJDUMP_FOR_TARGET |
1683 | OBJDUMP for the target | |
e4a9a572 IS |
1684 | OTOOL_FOR_TARGET |
1685 | OTOOL for the target | |
278a7a38 AO |
1686 | RANLIB_FOR_TARGET |
1687 | RANLIB for the target | |
e7a82751 RM |
1688 | READELF_FOR_TARGET |
1689 | READELF for the target | |
278a7a38 AO |
1690 | STRIP_FOR_TARGET |
1691 | STRIP for the target | |
1692 | WINDRES_FOR_TARGET | |
1693 | WINDRES for the target | |
901119ae KT |
1694 | WINDMC_FOR_TARGET |
1695 | WINDMC for the target | |
1c710c3c DJ |
1696 | |
1697 | Use these variables to override the choices made by `configure' or to help | |
1698 | it to find libraries and programs with nonstandard names/locations. | |
1699 | ||
5213506e | 1700 | Report bugs to the package provider. |
1c710c3c | 1701 | _ACEOF |
5213506e | 1702 | ac_status=$? |
1c710c3c DJ |
1703 | fi |
1704 | ||
1705 | if test "$ac_init_help" = "recursive"; then | |
1706 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1707 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1708 | test -d "$ac_dir" || |
1709 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1710 | continue | |
1c710c3c DJ |
1711 | ac_builddir=. |
1712 | ||
5213506e RW |
1713 | case "$ac_dir" in |
1714 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1715 | *) | |
1716 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1717 | # A ".." for each directory in $ac_dir_suffix. | |
1718 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1719 | case $ac_top_builddir_sub in | |
1720 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1721 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1722 | esac ;; | |
1723 | esac | |
1724 | ac_abs_top_builddir=$ac_pwd | |
1725 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1726 | # for backward compatibility: | |
1727 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1728 | |
1729 | case $srcdir in | |
5213506e | 1730 | .) # We are building in place. |
1c710c3c | 1731 | ac_srcdir=. |
5213506e RW |
1732 | ac_top_srcdir=$ac_top_builddir_sub |
1733 | ac_abs_top_srcdir=$ac_pwd ;; | |
1734 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1735 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1736 | ac_top_srcdir=$srcdir |
1737 | ac_abs_top_srcdir=$srcdir ;; | |
1738 | *) # Relative name. | |
1739 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1740 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1741 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1742 | esac |
5213506e RW |
1743 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1744 | ||
1745 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1746 | # Check for guested configure. | |
1747 | if test -f "$ac_srcdir/configure.gnu"; then | |
1748 | echo && | |
1749 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1750 | elif test -f "$ac_srcdir/configure"; then | |
1751 | echo && | |
1752 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1753 | else |
5213506e RW |
1754 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1755 | fi || ac_status=$? | |
1756 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1757 | done |
1758 | fi | |
1759 | ||
5213506e | 1760 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1761 | if $ac_init_version; then |
1762 | cat <<\_ACEOF | |
5213506e | 1763 | configure |
22e05272 | 1764 | generated by GNU Autoconf 2.69 |
1c710c3c | 1765 | |
22e05272 | 1766 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1767 | This configure script is free software; the Free Software Foundation |
1768 | gives unlimited permission to copy, distribute and modify it. | |
1769 | _ACEOF | |
5213506e | 1770 | exit |
0b0dc272 | 1771 | fi |
5213506e RW |
1772 | |
1773 | ## ------------------------ ## | |
1774 | ## Autoconf initialization. ## | |
1775 | ## ------------------------ ## | |
1776 | ||
1777 | # ac_fn_c_try_compile LINENO | |
1778 | # -------------------------- | |
1779 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1780 | ac_fn_c_try_compile () | |
1781 | { | |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1783 | rm -f conftest.$ac_objext | |
1784 | if { { ac_try="$ac_compile" | |
1785 | case "(($ac_try" in | |
1786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1787 | *) ac_try_echo=$ac_try;; | |
1788 | esac | |
1789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1790 | $as_echo "$ac_try_echo"; } >&5 | |
1791 | (eval "$ac_compile") 2>conftest.err | |
1792 | ac_status=$? | |
1793 | if test -s conftest.err; then | |
1794 | grep -v '^ *+' conftest.err >conftest.er1 | |
1795 | cat conftest.er1 >&5 | |
1796 | mv -f conftest.er1 conftest.err | |
1797 | fi | |
1798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1799 | test $ac_status = 0; } && { | |
1800 | test -z "$ac_c_werror_flag" || | |
1801 | test ! -s conftest.err | |
1802 | } && test -s conftest.$ac_objext; then : | |
1803 | ac_retval=0 | |
1804 | else | |
1805 | $as_echo "$as_me: failed program was:" >&5 | |
1806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1807 | ||
1808 | ac_retval=1 | |
1809 | fi | |
22e05272 JM |
1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1811 | as_fn_set_status $ac_retval | |
5213506e RW |
1812 | |
1813 | } # ac_fn_c_try_compile | |
1814 | ||
1815 | # ac_fn_cxx_try_compile LINENO | |
1816 | # ---------------------------- | |
1817 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1818 | ac_fn_cxx_try_compile () | |
1819 | { | |
1820 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1821 | rm -f conftest.$ac_objext | |
1822 | if { { ac_try="$ac_compile" | |
1823 | case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_compile") 2>conftest.err | |
1830 | ac_status=$? | |
1831 | if test -s conftest.err; then | |
1832 | grep -v '^ *+' conftest.err >conftest.er1 | |
1833 | cat conftest.er1 >&5 | |
1834 | mv -f conftest.er1 conftest.err | |
1835 | fi | |
1836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1837 | test $ac_status = 0; } && { | |
1838 | test -z "$ac_cxx_werror_flag" || | |
1839 | test ! -s conftest.err | |
1840 | } && test -s conftest.$ac_objext; then : | |
1841 | ac_retval=0 | |
1842 | else | |
1843 | $as_echo "$as_me: failed program was:" >&5 | |
1844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1845 | ||
1846 | ac_retval=1 | |
1847 | fi | |
22e05272 JM |
1848 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1849 | as_fn_set_status $ac_retval | |
5213506e RW |
1850 | |
1851 | } # ac_fn_cxx_try_compile | |
1852 | ||
0b21f5d3 EB |
1853 | # ac_fn_cxx_try_link LINENO |
1854 | # ------------------------- | |
1855 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1856 | ac_fn_cxx_try_link () | |
1857 | { | |
1858 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1860 | if { { ac_try="$ac_link" | |
1861 | case "(($ac_try" in | |
1862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1863 | *) ac_try_echo=$ac_try;; | |
1864 | esac | |
1865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1866 | $as_echo "$ac_try_echo"; } >&5 | |
1867 | (eval "$ac_link") 2>conftest.err | |
1868 | ac_status=$? | |
1869 | if test -s conftest.err; then | |
1870 | grep -v '^ *+' conftest.err >conftest.er1 | |
1871 | cat conftest.er1 >&5 | |
1872 | mv -f conftest.er1 conftest.err | |
1873 | fi | |
1874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1875 | test $ac_status = 0; } && { | |
1876 | test -z "$ac_cxx_werror_flag" || | |
1877 | test ! -s conftest.err | |
1878 | } && test -s conftest$ac_exeext && { | |
1879 | test "$cross_compiling" = yes || | |
22e05272 | 1880 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1881 | }; then : |
1882 | ac_retval=0 | |
1883 | else | |
1884 | $as_echo "$as_me: failed program was:" >&5 | |
1885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1886 | ||
1887 | ac_retval=1 | |
1888 | fi | |
1889 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1890 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1891 | # interfere with the next link command; also delete a directory that is | |
1892 | # left behind by Apple's compiler. We do this before executing the actions. | |
1893 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1894 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1895 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1896 | |
1897 | } # ac_fn_cxx_try_link | |
1898 | ||
5213506e RW |
1899 | # ac_fn_c_try_link LINENO |
1900 | # ----------------------- | |
1901 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1902 | ac_fn_c_try_link () | |
1903 | { | |
1904 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1906 | if { { ac_try="$ac_link" | |
1907 | case "(($ac_try" in | |
1908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1909 | *) ac_try_echo=$ac_try;; | |
1910 | esac | |
1911 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1912 | $as_echo "$ac_try_echo"; } >&5 | |
1913 | (eval "$ac_link") 2>conftest.err | |
1914 | ac_status=$? | |
1915 | if test -s conftest.err; then | |
1916 | grep -v '^ *+' conftest.err >conftest.er1 | |
1917 | cat conftest.er1 >&5 | |
1918 | mv -f conftest.er1 conftest.err | |
1919 | fi | |
1920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1921 | test $ac_status = 0; } && { | |
1922 | test -z "$ac_c_werror_flag" || | |
1923 | test ! -s conftest.err | |
1924 | } && test -s conftest$ac_exeext && { | |
1925 | test "$cross_compiling" = yes || | |
22e05272 | 1926 | test -x conftest$ac_exeext |
5213506e RW |
1927 | }; then : |
1928 | ac_retval=0 | |
1929 | else | |
1930 | $as_echo "$as_me: failed program was:" >&5 | |
1931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1932 | ||
1933 | ac_retval=1 | |
1934 | fi | |
1935 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1936 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1937 | # interfere with the next link command; also delete a directory that is | |
1938 | # left behind by Apple's compiler. We do this before executing the actions. | |
1939 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1940 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1941 | as_fn_set_status $ac_retval | |
5213506e RW |
1942 | |
1943 | } # ac_fn_c_try_link | |
1944 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1945 | This file contains any messages produced by compilers while |
1946 | running configure, to aid debugging if configure makes a mistake. | |
1947 | ||
1948 | It was created by $as_me, which was | |
22e05272 | 1949 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1950 | |
1951 | $ $0 $@ | |
1952 | ||
1953 | _ACEOF | |
5213506e | 1954 | exec 5>>config.log |
1c710c3c DJ |
1955 | { |
1956 | cat <<_ASUNAME | |
1957 | ## --------- ## | |
1958 | ## Platform. ## | |
1959 | ## --------- ## | |
1960 | ||
1961 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1962 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1963 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1964 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1965 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1966 | ||
1967 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1968 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1969 | ||
1970 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1971 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1972 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1973 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1974 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1975 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1976 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1977 | ||
1978 | _ASUNAME | |
1979 | ||
1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1981 | for as_dir in $PATH | |
1982 | do | |
1983 | IFS=$as_save_IFS | |
1984 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1985 | $as_echo "PATH: $as_dir" |
1986 | done | |
1987 | IFS=$as_save_IFS | |
1c710c3c DJ |
1988 | |
1989 | } >&5 | |
1990 | ||
1991 | cat >&5 <<_ACEOF | |
1992 | ||
1993 | ||
1994 | ## ----------- ## | |
1995 | ## Core tests. ## | |
1996 | ## ----------- ## | |
1997 | ||
1998 | _ACEOF | |
1999 | ||
2000 | ||
2001 | # Keep a trace of the command line. | |
2002 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2003 | # Strip out --silent because we don't want to record it for future runs. | |
2004 | # Also quote any args containing shell meta-characters. | |
2005 | # Make two passes to allow for proper duplicate-argument suppression. | |
2006 | ac_configure_args= | |
2007 | ac_configure_args0= | |
2008 | ac_configure_args1= | |
1c710c3c DJ |
2009 | ac_must_keep_next=false |
2010 | for ac_pass in 1 2 | |
2011 | do | |
2012 | for ac_arg | |
2013 | do | |
2014 | case $ac_arg in | |
2015 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2017 | | -silent | --silent | --silen | --sile | --sil) | |
2018 | continue ;; | |
5213506e RW |
2019 | *\'*) |
2020 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2021 | esac |
2022 | case $ac_pass in | |
5213506e | 2023 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2024 | 2) |
5213506e | 2025 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2026 | if test $ac_must_keep_next = true; then |
2027 | ac_must_keep_next=false # Got value, back to normal. | |
2028 | else | |
2029 | case $ac_arg in | |
2030 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2031 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2032 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2033 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2034 | case "$ac_configure_args0 " in | |
2035 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2036 | esac | |
2037 | ;; | |
2038 | -* ) ac_must_keep_next=true ;; | |
2039 | esac | |
2040 | fi | |
5213506e | 2041 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2042 | ;; |
2043 | esac | |
2044 | done | |
2045 | done | |
5213506e RW |
2046 | { ac_configure_args0=; unset ac_configure_args0;} |
2047 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2048 | |
2049 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2050 | # config.log. We remove comments because anyway the quotes in there | |
2051 | # would cause problems or look ugly. | |
5213506e RW |
2052 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2053 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2054 | trap 'exit_status=$? |
2055 | # Save into config.log some information that might help in debugging. | |
2056 | { | |
2057 | echo | |
2058 | ||
22e05272 | 2059 | $as_echo "## ---------------- ## |
1c710c3c | 2060 | ## Cache variables. ## |
22e05272 | 2061 | ## ---------------- ##" |
1c710c3c DJ |
2062 | echo |
2063 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2064 | ( |
2065 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2066 | eval ac_val=\$$ac_var | |
2067 | case $ac_val in #( | |
2068 | *${as_nl}*) | |
2069 | case $ac_var in #( | |
2070 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2071 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2072 | esac | |
2073 | case $ac_var in #( | |
2074 | _ | IFS | as_nl) ;; #( | |
2075 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2076 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2077 | esac ;; | |
2078 | esac | |
2079 | done | |
1c710c3c | 2080 | (set) 2>&1 | |
5213506e RW |
2081 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2082 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2083 | sed -n \ |
5213506e RW |
2084 | "s/'\''/'\''\\\\'\'''\''/g; |
2085 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2086 | ;; #( | |
1c710c3c | 2087 | *) |
5213506e | 2088 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2089 | ;; |
5213506e RW |
2090 | esac | |
2091 | sort | |
2092 | ) | |
1c710c3c DJ |
2093 | echo |
2094 | ||
22e05272 | 2095 | $as_echo "## ----------------- ## |
1c710c3c | 2096 | ## Output variables. ## |
22e05272 | 2097 | ## ----------------- ##" |
1c710c3c DJ |
2098 | echo |
2099 | for ac_var in $ac_subst_vars | |
2100 | do | |
5213506e RW |
2101 | eval ac_val=\$$ac_var |
2102 | case $ac_val in | |
2103 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2104 | esac | |
2105 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2106 | done | sort |
2107 | echo | |
2108 | ||
2109 | if test -n "$ac_subst_files"; then | |
22e05272 | 2110 | $as_echo "## ------------------- ## |
5213506e | 2111 | ## File substitutions. ## |
22e05272 | 2112 | ## ------------------- ##" |
1c710c3c DJ |
2113 | echo |
2114 | for ac_var in $ac_subst_files | |
2115 | do | |
5213506e RW |
2116 | eval ac_val=\$$ac_var |
2117 | case $ac_val in | |
2118 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2119 | esac | |
2120 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2121 | done | sort |
2122 | echo | |
2123 | fi | |
2124 | ||
2125 | if test -s confdefs.h; then | |
22e05272 | 2126 | $as_echo "## ----------- ## |
1c710c3c | 2127 | ## confdefs.h. ## |
22e05272 | 2128 | ## ----------- ##" |
1c710c3c | 2129 | echo |
5213506e | 2130 | cat confdefs.h |
1c710c3c DJ |
2131 | echo |
2132 | fi | |
2133 | test "$ac_signal" != 0 && | |
5213506e RW |
2134 | $as_echo "$as_me: caught signal $ac_signal" |
2135 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2136 | } >&5 |
5213506e RW |
2137 | rm -f core *.core core.conftest.* && |
2138 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2139 | exit $exit_status |
5213506e | 2140 | ' 0 |
1c710c3c | 2141 | for ac_signal in 1 2 13 15; do |
5213506e | 2142 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2143 | done |
2144 | ac_signal=0 | |
2145 | ||
2146 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2147 | rm -f -r conftest* confdefs.h |
2148 | ||
2149 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2150 | |
2151 | # Predefined preprocessor variables. | |
2152 | ||
2153 | cat >>confdefs.h <<_ACEOF | |
2154 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2155 | _ACEOF | |
2156 | ||
1c710c3c DJ |
2157 | cat >>confdefs.h <<_ACEOF |
2158 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2159 | _ACEOF | |
2160 | ||
1c710c3c DJ |
2161 | cat >>confdefs.h <<_ACEOF |
2162 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2163 | _ACEOF | |
0b0dc272 | 2164 | |
1c710c3c DJ |
2165 | cat >>confdefs.h <<_ACEOF |
2166 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2167 | _ACEOF | |
2168 | ||
1c710c3c DJ |
2169 | cat >>confdefs.h <<_ACEOF |
2170 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2171 | _ACEOF | |
2172 | ||
5213506e RW |
2173 | cat >>confdefs.h <<_ACEOF |
2174 | #define PACKAGE_URL "$PACKAGE_URL" | |
2175 | _ACEOF | |
2176 | ||
1c710c3c DJ |
2177 | |
2178 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2179 | # Prefer an explicitly selected file to automatically selected ones. |
2180 | ac_site_file1=NONE | |
2181 | ac_site_file2=NONE | |
2182 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2183 | # We do not want a PATH search for config.site. |
2184 | case $CONFIG_SITE in #(( | |
2185 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2186 | */*) ac_site_file1=$CONFIG_SITE;; | |
2187 | *) ac_site_file1=./$CONFIG_SITE;; | |
2188 | esac | |
5213506e RW |
2189 | elif test "x$prefix" != xNONE; then |
2190 | ac_site_file1=$prefix/share/config.site | |
2191 | ac_site_file2=$prefix/etc/config.site | |
2192 | else | |
2193 | ac_site_file1=$ac_default_prefix/share/config.site | |
2194 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2195 | fi |
5213506e RW |
2196 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2197 | do | |
2198 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2199 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2201 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2202 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2203 | . "$ac_site_file" \ |
2204 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2206 | as_fn_error $? "failed to load site script $ac_site_file | |
2207 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2208 | fi |
2209 | done | |
2210 | ||
2211 | if test -r "$cache_file"; then | |
22e05272 JM |
2212 | # Some versions of bash will fail to source /dev/null (special files |
2213 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2214 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2216 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2217 | case $cache_file in |
5213506e RW |
2218 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2219 | *) . "./$cache_file";; | |
1c710c3c DJ |
2220 | esac |
2221 | fi | |
671aa708 | 2222 | else |
5213506e RW |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2224 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2225 | >$cache_file |
2226 | fi | |
2227 | ||
2228 | # Check that the precious variables saved in the cache have kept the same | |
2229 | # value. | |
2230 | ac_cache_corrupted=false | |
5213506e | 2231 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2232 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2233 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2234 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2235 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2236 | case $ac_old_set,$ac_new_set in |
2237 | set,) | |
5213506e RW |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2239 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2240 | ac_cache_corrupted=: ;; |
2241 | ,set) | |
5213506e RW |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2243 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2244 | ac_cache_corrupted=: ;; |
2245 | ,);; | |
2246 | *) | |
2247 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2248 | # differences in whitespace do not lead to failure. |
2249 | ac_old_val_w=`echo x $ac_old_val` | |
2250 | ac_new_val_w=`echo x $ac_new_val` | |
2251 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2253 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2254 | ac_cache_corrupted=: | |
2255 | else | |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2257 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2258 | eval $ac_var=\$ac_old_val | |
2259 | fi | |
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2261 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2263 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2264 | fi;; |
2265 | esac | |
2266 | # Pass precious variables to config.status. | |
2267 | if test "$ac_new_set" = set; then | |
2268 | case $ac_new_val in | |
5213506e | 2269 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2270 | *) ac_arg=$ac_var=$ac_new_val ;; |
2271 | esac | |
2272 | case " $ac_configure_args " in | |
2273 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2274 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2275 | esac |
2276 | fi | |
2277 | done | |
2278 | if $ac_cache_corrupted; then | |
5213506e RW |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2282 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2283 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2284 | fi |
5213506e RW |
2285 | ## -------------------- ## |
2286 | ## Main body of script. ## | |
2287 | ## -------------------- ## | |
671aa708 | 2288 | |
2aeb72e9 DD |
2289 | ac_ext=c |
2290 | ac_cpp='$CPP $CPPFLAGS' | |
2291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2294 | ||
1c710c3c DJ |
2295 | |
2296 | ||
2297 | ||
1c710c3c DJ |
2298 | |
2299 | ||
0115d4a3 | 2300 | |
1c710c3c | 2301 | |
ad33ff57 RW |
2302 | progname=$0 |
2303 | # if PWD already has a value, it is probably wrong. | |
2304 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2305 | ||
2306 | # Export original configure arguments for use by sub-configures. | |
2307 | # Quote arguments with shell meta charatcers. | |
2308 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2309 | set -- "$progname" "$@" | |
2310 | for ac_arg | |
2311 | do | |
2312 | case "$ac_arg" in | |
2313 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2314 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2315 | # if the argument is of the form -foo=baz, quote the baz part only | |
2316 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2317 | *) ;; | |
2318 | esac | |
2319 | # Add the quoted argument to the list. | |
2320 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2321 | done | |
2322 | if test "$silent" = yes; then | |
2323 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2324 | fi | |
2325 | # Remove the initial space we just introduced and, as these will be | |
2326 | # expanded by make, quote '$'. | |
2327 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2328 | ||
1c710c3c DJ |
2329 | |
2330 | # Find the build, host, and target systems. | |
671aa708 | 2331 | ac_aux_dir= |
5213506e | 2332 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2333 | if test -f "$ac_dir/install-sh"; then |
2334 | ac_aux_dir=$ac_dir | |
2335 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2336 | break | |
2337 | elif test -f "$ac_dir/install.sh"; then | |
2338 | ac_aux_dir=$ac_dir | |
2339 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2340 | break | |
2341 | elif test -f "$ac_dir/shtool"; then | |
2342 | ac_aux_dir=$ac_dir | |
2343 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2344 | break | |
2345 | fi | |
671aa708 NN |
2346 | done |
2347 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2348 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2349 | fi |
5213506e RW |
2350 | |
2351 | # These three variables are undocumented and unsupported, | |
2352 | # and are intended to be withdrawn in a future Autoconf release. | |
2353 | # They can cause serious problems if a builder's source tree is in a directory | |
2354 | # whose full name contains unusual characters. | |
2355 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2356 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2357 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2358 | ||
671aa708 | 2359 | |
1c710c3c | 2360 | # Make sure we can run config.sub. |
5213506e | 2361 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2362 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2363 | |
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2365 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2366 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2367 | $as_echo_n "(cached) " >&6 |
2368 | else | |
2369 | ac_build_alias=$build_alias | |
2370 | test "x$ac_build_alias" = x && | |
2371 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2372 | test "x$ac_build_alias" = x && | |
22e05272 | 2373 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2374 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2375 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2376 | |
2377 | fi | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2379 | $as_echo "$ac_cv_build" >&6; } | |
2380 | case $ac_cv_build in | |
2381 | *-*-*) ;; | |
22e05272 | 2382 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2383 | esac |
1c710c3c | 2384 | build=$ac_cv_build |
5213506e RW |
2385 | ac_save_IFS=$IFS; IFS='-' |
2386 | set x $ac_cv_build | |
2387 | shift | |
2388 | build_cpu=$1 | |
2389 | build_vendor=$2 | |
2390 | shift; shift | |
2391 | # Remember, the first character of IFS is used to create $*, | |
2392 | # except with old shells: | |
2393 | build_os=$* | |
2394 | IFS=$ac_save_IFS | |
2395 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2396 | |
671aa708 | 2397 | |
1c710c3c DJ |
2398 | case ${build_alias} in |
2399 | "") build_noncanonical=${build} ;; | |
2400 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2401 | esac |
2402 | ||
2403 | ||
af71363e | 2404 | |
1c710c3c DJ |
2405 | case ${host_alias} in |
2406 | "") host_noncanonical=${build_noncanonical} ;; | |
2407 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2408 | esac |
2409 | ||
af71363e | 2410 | |
1c710c3c DJ |
2411 | |
2412 | case ${target_alias} in | |
2413 | "") target_noncanonical=${host_noncanonical} ;; | |
2414 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2415 | esac |
2416 | ||
af71363e | 2417 | |
1c710c3c DJ |
2418 | |
2419 | ||
2420 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2421 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2422 | NONENONEs,x,x, && | |
1c710c3c | 2423 | program_transform_name=s,y,y, |
af71363e | 2424 | |
5213506e RW |
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2426 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2427 | if ${ac_cv_host+:} false; then : |
5213506e | 2428 | $as_echo_n "(cached) " >&6 |
af71363e | 2429 | else |
5213506e RW |
2430 | if test "x$host_alias" = x; then |
2431 | ac_cv_host=$ac_cv_build | |
2432 | else | |
2433 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2434 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2435 | fi |
1c710c3c | 2436 | |
af71363e | 2437 | fi |
5213506e RW |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2439 | $as_echo "$ac_cv_host" >&6; } | |
2440 | case $ac_cv_host in | |
2441 | *-*-*) ;; | |
22e05272 | 2442 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2443 | esac |
1c710c3c | 2444 | host=$ac_cv_host |
5213506e RW |
2445 | ac_save_IFS=$IFS; IFS='-' |
2446 | set x $ac_cv_host | |
2447 | shift | |
2448 | host_cpu=$1 | |
2449 | host_vendor=$2 | |
2450 | shift; shift | |
2451 | # Remember, the first character of IFS is used to create $*, | |
2452 | # except with old shells: | |
2453 | host_os=$* | |
2454 | IFS=$ac_save_IFS | |
2455 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2456 | |
2457 | ||
5213506e RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2459 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2460 | if ${ac_cv_target+:} false; then : |
5213506e | 2461 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2462 | else |
5213506e RW |
2463 | if test "x$target_alias" = x; then |
2464 | ac_cv_target=$ac_cv_host | |
2465 | else | |
2466 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2467 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2468 | fi |
1c710c3c DJ |
2469 | |
2470 | fi | |
5213506e RW |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2472 | $as_echo "$ac_cv_target" >&6; } | |
2473 | case $ac_cv_target in | |
2474 | *-*-*) ;; | |
22e05272 | 2475 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2476 | esac |
1c710c3c | 2477 | target=$ac_cv_target |
5213506e RW |
2478 | ac_save_IFS=$IFS; IFS='-' |
2479 | set x $ac_cv_target | |
2480 | shift | |
2481 | target_cpu=$1 | |
2482 | target_vendor=$2 | |
2483 | shift; shift | |
2484 | # Remember, the first character of IFS is used to create $*, | |
2485 | # except with old shells: | |
2486 | target_os=$* | |
2487 | IFS=$ac_save_IFS | |
2488 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2489 | |
2490 | ||
2491 | # The aliases save the names the user supplied, while $host etc. | |
2492 | # will get canonicalized. | |
2493 | test -n "$target_alias" && | |
2494 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2495 | NONENONEs,x,x, && | |
2496 | program_prefix=${target_alias}- | |
5213506e | 2497 | |
671aa708 | 2498 | test "$program_prefix" != NONE && |
5213506e | 2499 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2500 | # Use a double $ so make ignores it. |
2501 | test "$program_suffix" != NONE && | |
5213506e RW |
2502 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2503 | # Double any \ or $. | |
1c710c3c | 2504 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2505 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2506 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2507 | |
671aa708 NN |
2508 | |
2509 | ||
775956d0 NN |
2510 | # Get 'install' or 'install-sh' and its variants. |
2511 | # Find a good install program. We prefer a C program (faster), | |
2512 | # so one script is as good as another. But avoid the broken or | |
2513 | # incompatible versions: | |
2514 | # SysV /etc/install, /usr/sbin/install | |
2515 | # SunOS /usr/etc/install | |
2516 | # IRIX /sbin/install | |
2517 | # AIX /bin/install | |
1c710c3c | 2518 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2519 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2520 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2521 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2522 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2523 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2524 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2526 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2527 | if test -z "$INSTALL"; then |
22e05272 | 2528 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2529 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2530 | else |
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2532 | for as_dir in $PATH | |
2533 | do | |
2534 | IFS=$as_save_IFS | |
2535 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2536 | # Account for people who put trailing slashes in PATH elements. |
2537 | case $as_dir/ in #(( | |
2538 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2539 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2540 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2541 | /usr/ucb/* ) ;; |
2542 | *) | |
2543 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2544 | # Don't use installbsd from OSF since it installs stuff as root | |
2545 | # by default. | |
2546 | for ac_prog in ginstall scoinst install; do | |
2547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2548 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2549 | if test $ac_prog = install && |
1c710c3c | 2550 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2551 | # AIX install. It has an incompatible calling convention. |
2552 | : | |
1c710c3c DJ |
2553 | elif test $ac_prog = install && |
2554 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2555 | # program-specific install script used by HP pwplus--don't use. | |
2556 | : | |
775956d0 | 2557 | else |
38d24731 RW |
2558 | rm -rf conftest.one conftest.two conftest.dir |
2559 | echo one > conftest.one | |
2560 | echo two > conftest.two | |
2561 | mkdir conftest.dir | |
2562 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2563 | test -s conftest.one && test -s conftest.two && | |
2564 | test -s conftest.dir/conftest.one && | |
2565 | test -s conftest.dir/conftest.two | |
2566 | then | |
2567 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2568 | break 3 | |
2569 | fi | |
775956d0 NN |
2570 | fi |
2571 | fi | |
2572 | done | |
1c710c3c DJ |
2573 | done |
2574 | ;; | |
2575 | esac | |
5213506e RW |
2576 | |
2577 | done | |
2578 | IFS=$as_save_IFS | |
1c710c3c | 2579 | |
38d24731 | 2580 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2581 | |
2582 | fi | |
2583 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2584 | INSTALL=$ac_cv_path_install |
775956d0 | 2585 | else |
38d24731 RW |
2586 | # As a last resort, use the slow shell script. Don't cache a |
2587 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2588 | # break other packages using the cache if that directory is |
38d24731 | 2589 | # removed, or if the value is a relative name. |
1c710c3c | 2590 | INSTALL=$ac_install_sh |
775956d0 NN |
2591 | fi |
2592 | fi | |
5213506e RW |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2594 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2595 | |
2596 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2597 | # It thinks the first close brace ends the variable substitution. | |
2598 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2599 | ||
1c710c3c | 2600 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2601 | |
2602 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2603 | ||
5213506e RW |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2605 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2606 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2607 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2608 | else |
2609 | rm -f conftestdata_t | |
2610 | echo >conftestdata_f | |
2611 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2612 | then | |
2613 | acx_cv_prog_LN=ln | |
2614 | else | |
2615 | acx_cv_prog_LN=no | |
2616 | fi | |
2617 | rm -f conftestdata_f conftestdata_t | |
2618 | ||
2619 | fi | |
2620 | if test $acx_cv_prog_LN = no; then | |
2621 | LN="cp" | |
5213506e RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2623 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2624 | else |
2625 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2627 | $as_echo "yes" >&6; } | |
ad6717df PB |
2628 | fi |
2629 | ||
5213506e RW |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2631 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2632 | LN_S=$as_ln_s |
2633 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2635 | $as_echo "yes" >&6; } | |
fb0103e5 | 2636 | else |
5213506e RW |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2638 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2639 | fi |
2640 | ||
87264276 PB |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2642 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2643 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2644 | $as_echo_n "(cached) " >&6 |
2645 | else | |
2646 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2647 | for ac_i in 1 2 3 4 5 6 7; do | |
2648 | ac_script="$ac_script$as_nl$ac_script" | |
2649 | done | |
2650 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2651 | { ac_script=; unset ac_script;} | |
2652 | if test -z "$SED"; then | |
2653 | ac_path_SED_found=false | |
2654 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_prog in sed gsed; do | |
2661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2662 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2663 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2664 | # Check for GNU ac_path_SED and select it if it is found. |
2665 | # Check for GNU $ac_path_SED | |
2666 | case `"$ac_path_SED" --version 2>&1` in | |
2667 | *GNU*) | |
2668 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2669 | *) | |
2670 | ac_count=0 | |
2671 | $as_echo_n 0123456789 >"conftest.in" | |
2672 | while : | |
2673 | do | |
2674 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2675 | mv "conftest.tmp" "conftest.in" | |
2676 | cp "conftest.in" "conftest.nl" | |
2677 | $as_echo '' >> "conftest.nl" | |
2678 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2679 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2680 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2681 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2682 | # Best one so far, save it but keep looking for a better one | |
2683 | ac_cv_path_SED="$ac_path_SED" | |
2684 | ac_path_SED_max=$ac_count | |
2685 | fi | |
2686 | # 10*(2^10) chars as input seems more than enough | |
2687 | test $ac_count -gt 10 && break | |
2688 | done | |
2689 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2690 | esac | |
2691 | ||
2692 | $ac_path_SED_found && break 3 | |
2693 | done | |
2694 | done | |
2695 | done | |
2696 | IFS=$as_save_IFS | |
2697 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2698 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2699 | fi |
2700 | else | |
2701 | ac_cv_path_SED=$SED | |
2702 | fi | |
2703 | ||
2704 | fi | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2706 | $as_echo "$ac_cv_path_SED" >&6; } | |
2707 | SED="$ac_cv_path_SED" | |
2708 | rm -f conftest.sed | |
2709 | ||
2710 | for ac_prog in gawk mawk nawk awk | |
2711 | do | |
2712 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2713 | set dummy $ac_prog; ac_word=$2 | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2715 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2716 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2717 | $as_echo_n "(cached) " >&6 |
2718 | else | |
2719 | if test -n "$AWK"; then | |
2720 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2721 | else | |
2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2723 | for as_dir in $PATH | |
2724 | do | |
2725 | IFS=$as_save_IFS | |
2726 | test -z "$as_dir" && as_dir=. | |
2727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2729 | ac_cv_prog_AWK="$ac_prog" |
2730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2731 | break 2 | |
2732 | fi | |
2733 | done | |
2734 | done | |
2735 | IFS=$as_save_IFS | |
2736 | ||
2737 | fi | |
2738 | fi | |
2739 | AWK=$ac_cv_prog_AWK | |
2740 | if test -n "$AWK"; then | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2742 | $as_echo "$AWK" >&6; } | |
2743 | else | |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2745 | $as_echo "no" >&6; } | |
2746 | fi | |
2747 | ||
2748 | ||
2749 | test -n "$AWK" && break | |
2750 | done | |
2751 | ||
775956d0 | 2752 | |
ee6a22df L |
2753 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2754 | ||
2755 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2756 | # a relative path. | |
2757 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2758 | INSTALL="${srcpwd}/install-sh -c" | |
2759 | fi | |
2760 | ||
671aa708 NN |
2761 | # Set srcdir to "." if that's what it is. |
2762 | # This is important for multilib support. | |
2763 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2764 | if test "${pwd}" = "${srcpwd}" ; then |
2765 | srcdir=. | |
79c06341 JL |
2766 | fi |
2767 | ||
671aa708 | 2768 | topsrcdir=$srcpwd |
5d4a5ee6 | 2769 | |
671aa708 | 2770 | extra_host_args= |
afabd8e6 | 2771 | |
671aa708 NN |
2772 | ### To add a new directory to the tree, first choose whether it is a target |
2773 | ### or a host dependent tool. Then put it into the appropriate list | |
2774 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2775 | |
1c710c3c | 2776 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2777 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2778 | |
1c710c3c DJ |
2779 | # Dependency sorting is only needed when *configuration* must be done in |
2780 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2781 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2782 | |
671aa708 NN |
2783 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2784 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2785 | |
23f6b2f9 PB |
2786 | # these library is used by various programs built for the build |
2787 | # environment | |
2788 | # | |
929315a9 | 2789 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2790 | |
2791 | # these tools are built for the build environment | |
85bfb75e | 2792 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2793 | |
671aa708 | 2794 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2795 | #f |
36230329 | 2796 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2797 | |
671aa708 NN |
2798 | # these tools are built for the host environment |
2799 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2800 | # know that we are building the simulator. | |
2801 | # binutils, gas and ld appear in that order because it makes sense to run | |
2802 | # "make check" in that particular order. | |
38e3d868 | 2803 | # If --enable-gold is used, "gold" may replace "ld". |
2efd8b1f | 2804 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools" |
671aa708 | 2805 | |
671aa708 NN |
2806 | # these libraries are built for the target environment, and are built after |
2807 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2808 | # Note that libiberty is not a target library. |
291f172e | 2809 | target_libraries="target-libgcc \ |
eff02e4f | 2810 | target-libbacktrace \ |
671aa708 NN |
2811 | target-libgloss \ |
2812 | target-newlib \ | |
6d3b5aea | 2813 | target-libgomp \ |
5f520819 | 2814 | target-liboffloadmic \ |
48310492 | 2815 | target-libatomic \ |
0a35513e | 2816 | target-libitm \ |
cb543528 | 2817 | target-libstdc++-v3 \ |
f35db108 | 2818 | target-libsanitizer \ |
2077db1b | 2819 | target-libvtv \ |
77008252 | 2820 | target-libssp \ |
1ec601bf | 2821 | target-libquadmath \ |
6de9cd9a | 2822 | target-libgfortran \ |
012447ea | 2823 | target-libffi \ |
d9cdb878 | 2824 | target-libobjc \ |
632e2a07 | 2825 | target-libada \ |
b4c522fa | 2826 | target-libgo \ |
bb50312e IB |
2827 | target-libphobos \ |
2828 | target-zlib" | |
671aa708 | 2829 | |
4dbda6f0 NN |
2830 | # these tools are built using the target libraries, and are intended to |
2831 | # run only in the target environment | |
671aa708 | 2832 | # |
4dbda6f0 | 2833 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2834 | # list belongs in this list. |
671aa708 | 2835 | # |
85bfb75e | 2836 | target_tools="target-rda" |
79c06341 | 2837 | |
671aa708 | 2838 | ################################################################################ |
79c06341 | 2839 | |
671aa708 NN |
2840 | ## All tools belong in one of the four categories, and are assigned above |
2841 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2842 | ## is important because configure will choke if they ever get through. | |
2843 | ## ${configdirs} is directories we build using the host tools. | |
2844 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2845 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2846 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2847 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2848 | |
ac9e6043 RW |
2849 | |
2850 | ||
671aa708 | 2851 | ################################################################################ |
79c06341 | 2852 | |
671aa708 | 2853 | srcname="gnu development package" |
79c06341 | 2854 | |
671aa708 NN |
2855 | # This gets set non-empty for some net releases of packages. |
2856 | appdirs="" | |
79c06341 | 2857 | |
671aa708 NN |
2858 | # Define is_cross_compiler to save on calls to 'test'. |
2859 | is_cross_compiler= | |
2860 | if test x"${host}" = x"${target}" ; then | |
2861 | is_cross_compiler=no | |
79c06341 | 2862 | else |
671aa708 | 2863 | is_cross_compiler=yes |
1c710c3c | 2864 | fi |
79c06341 | 2865 | |
b4acb5ef | 2866 | # Find the build and target subdir names. |
8b87bb96 | 2867 | |
2e9e6f68 DJ |
2868 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2869 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2870 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2871 | # However, they still use the build modules, because the corresponding | |
2872 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2873 | # finishes. So: | |
2874 | # - build_subdir is where we find build modules, and never changes. | |
2875 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2876 | ||
2877 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2878 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2879 | |
5213506e RW |
2880 | # Check whether --with-build-libsubdir was given. |
2881 | if test "${with_build_libsubdir+set}" = set; then : | |
2882 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2883 | else |
2884 | build_libsubdir="$build_subdir" | |
5213506e RW |
2885 | fi |
2886 | ||
215c351a PB |
2887 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2888 | if ( test $srcdir = . && test -d gcc ) \ | |
2889 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2890 | host_subdir="host-${host_noncanonical}" | |
2891 | else | |
2892 | host_subdir=. | |
2893 | fi | |
8b87bb96 NN |
2894 | # No prefix. |
2895 | target_subdir=${target_noncanonical} | |
1c710c3c | 2896 | |
0db770bd RW |
2897 | # Be sure to cover against remnants of an in-tree build. |
2898 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2899 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2900 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2901 | fi | |
79c06341 | 2902 | |
671aa708 NN |
2903 | # Skipdirs are removed silently. |
2904 | skipdirs= | |
2905 | # Noconfigdirs are removed loudly. | |
2906 | noconfigdirs="" | |
79c06341 | 2907 | |
671aa708 NN |
2908 | use_gnu_ld= |
2909 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2910 | if test x$with_gnu_ld = xno ; then | |
2911 | use_gnu_ld=no | |
5afab7ad | 2912 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2913 | fi |
2914 | ||
671aa708 NN |
2915 | use_gnu_as= |
2916 | # Make sure we don't let GNU as be added if we didn't want it. | |
2917 | if test x$with_gnu_as = xno ; then | |
2918 | use_gnu_as=no | |
2919 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2920 | fi |
2921 | ||
d7f09764 | 2922 | use_included_zlib= |
a05c2c75 L |
2923 | |
2924 | # Check whether --with-system-zlib was given. | |
2925 | if test "${with_system_zlib+set}" = set; then : | |
2926 | withval=$with_system_zlib; | |
2927 | fi | |
2928 | ||
d7f09764 DN |
2929 | # Make sure we don't let ZLIB be added if we didn't want it. |
2930 | if test x$with_system_zlib = xyes ; then | |
2931 | use_included_zlib=no | |
2932 | noconfigdirs="$noconfigdirs zlib" | |
2933 | fi | |
2934 | ||
1c710c3c | 2935 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2936 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2937 | |
671aa708 NN |
2938 | case ${with_x} in |
2939 | yes | "") ;; # the default value for this tree is that X11 is available | |
2940 | no) | |
b4f96efe | 2941 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2942 | # We won't be able to build gdbtk without X. |
1c710c3c | 2943 | enable_gdbtk=no |
671aa708 NN |
2944 | ;; |
2945 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2946 | esac | |
79c06341 | 2947 | |
1bcce263 | 2948 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2949 | # Remove these if host=target. |
2950 | cross_only="target-libgloss target-newlib target-opcodes" | |
2951 | ||
2952 | case $is_cross_compiler in | |
2953 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2954 | esac |
79c06341 | 2955 | |
671aa708 NN |
2956 | # If both --with-headers and --with-libs are specified, default to |
2957 | # --without-newlib. | |
ee6a22df L |
2958 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2959 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2960 | if test x"${with_newlib}" = x ; then |
2961 | with_newlib=no | |
2962 | fi | |
79c06341 JL |
2963 | fi |
2964 | ||
671aa708 NN |
2965 | # Recognize --with-newlib/--without-newlib. |
2966 | case ${with_newlib} in | |
2967 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2968 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2969 | esac | |
79c06341 | 2970 | |
85c64bbe BS |
2971 | # Check whether --enable-as-accelerator-for was given. |
2972 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2973 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2974 | fi |
2975 | ||
2976 | ||
2977 | # Check whether --enable-offload-targets was given. | |
2978 | if test "${enable_offload_targets+set}" = set; then : | |
2979 | enableval=$enable_offload_targets; | |
2980 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2981 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2982 | fi |
2983 | ||
2984 | else | |
2985 | enable_offload_targets= | |
2986 | fi | |
2987 | ||
2988 | ||
fe5bfa67 TB |
2989 | # Check whether --enable-offload-defaulted was given. |
2990 | if test "${enable_offload_defaulted+set}" = set; then : | |
2991 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
2992 | else | |
2993 | enable_offload_defaulted= | |
2994 | fi | |
2995 | ||
2996 | ||
21539e2e MK |
2997 | # Handle --enable-gold, --enable-ld. |
2998 | # --disable-gold [--enable-ld] | |
2999 | # Build only ld. Default option. | |
9580395f L |
3000 | # --enable-gold [--enable-ld] |
3001 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3002 | # as "ld.bfd" and "ld". | |
3003 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3004 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3005 | # install ld as "ld.bfd". | |
3006 | # --enable-gold[=default] --disable-ld | |
3007 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3008 | # --enable-gold --enable-ld=default | |
9580395f L |
3009 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3010 | # and ld.bfd). | |
21539e2e MK |
3011 | # In other words, ld is default |
3012 | # --enable-gold=default --enable-ld=default | |
3013 | # Error. | |
3014 | ||
3015 | default_ld= | |
5213506e RW |
3016 | # Check whether --enable-gold was given. |
3017 | if test "${enable_gold+set}" = set; then : | |
3018 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3019 | else |
3020 | ENABLE_GOLD=no | |
5213506e RW |
3021 | fi |
3022 | ||
21539e2e MK |
3023 | case "${ENABLE_GOLD}" in |
3024 | yes|default) | |
38e3d868 RM |
3025 | # Check for ELF target. |
3026 | is_elf=no | |
3027 | case "${target}" in | |
3028 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3029 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3030 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3031 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3032 | case "${target}" in |
3033 | *-*-linux*aout* | *-*-linux*oldld*) | |
3034 | ;; | |
3035 | *) | |
3036 | is_elf=yes | |
3037 | ;; | |
3038 | esac | |
3039 | esac | |
3040 | ||
3041 | if test "$is_elf" = "yes"; then | |
3042 | # Check for target supported by gold. | |
5afab7ad | 3043 | case "${target}" in |
7705dfd1 | 3044 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3045 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3046 | configdirs="$configdirs gold" |
3047 | if test x${ENABLE_GOLD} = xdefault; then | |
3048 | default_ld=gold | |
3049 | fi | |
38e3d868 | 3050 | ENABLE_GOLD=yes |
5afab7ad ILT |
3051 | ;; |
3052 | esac | |
38e3d868 RM |
3053 | fi |
3054 | ;; | |
3055 | no) | |
3056 | ;; | |
3057 | *) | |
22e05272 | 3058 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3059 | ;; |
21539e2e MK |
3060 | esac |
3061 | ||
3062 | # Check whether --enable-ld was given. | |
3063 | if test "${enable_ld+set}" = set; then : | |
3064 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3065 | else | |
3066 | ENABLE_LD=yes | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | case "${ENABLE_LD}" in | |
3071 | default) | |
9580395f | 3072 | if test x${default_ld} != x; then |
22e05272 | 3073 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3074 | fi |
3075 | ;; | |
3076 | yes) | |
3077 | ;; | |
3078 | no) | |
3079 | if test x${ENABLE_GOLD} != xyes; then | |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3081 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3082 | fi | |
3083 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3084 | ;; | |
3085 | *) | |
22e05272 | 3086 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3087 | ;; |
3088 | esac | |
5afab7ad | 3089 | |
78edb32f L |
3090 | # PR gas/19109 |
3091 | # Decide the default method for compressing debug sections. | |
3092 | # Provide a configure time option to override our default. | |
3093 | # Check whether --enable-compressed_debug_sections was given. | |
3094 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3095 | enableval=$enable_compressed_debug_sections; | |
3096 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3097 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3098 | fi |
3099 | ||
3100 | else | |
3101 | enable_compressed_debug_sections= | |
3102 | fi | |
3103 | ||
3104 | ||
671aa708 | 3105 | # Configure extra directories which are host specific |
79c06341 | 3106 | |
671aa708 NN |
3107 | case "${host}" in |
3108 | *-cygwin*) | |
3109 | configdirs="$configdirs libtermcap" ;; | |
3110 | esac | |
79c06341 | 3111 | |
4fab7234 HPN |
3112 | # A target can indicate whether a language isn't supported for some reason. |
3113 | # Only spaces may be used in this macro; not newlines or tabs. | |
3114 | unsupported_languages= | |
3115 | ||
1c710c3c | 3116 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3117 | # target this usually means that a port of the program doesn't |
3118 | # exist yet. | |
ec8d6ddc | 3119 | |
671aa708 | 3120 | case "${host}" in |
111eeb6e | 3121 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3122 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3123 | ;; |
671aa708 | 3124 | esac |
ec8d6ddc | 3125 | |
6de9cd9a | 3126 | |
87e6d9dc TB |
3127 | # Check whether --enable-libquadmath was given. |
3128 | if test "${enable_libquadmath+set}" = set; then : | |
3129 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3130 | else | |
3131 | ENABLE_LIBQUADMATH=yes | |
3132 | fi | |
3133 | ||
3134 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3135 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3136 | fi | |
3137 | ||
3138 | ||
3139 | # Check whether --enable-libquadmath-support was given. | |
3140 | if test "${enable_libquadmath_support+set}" = set; then : | |
3141 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3142 | else | |
3143 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3144 | fi | |
3145 | ||
3146 | enable_libquadmath_support= | |
3147 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3148 | enable_libquadmath_support=no | |
3149 | fi | |
3150 | ||
3151 | ||
5213506e RW |
3152 | # Check whether --enable-libada was given. |
3153 | if test "${enable_libada+set}" = set; then : | |
3154 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3155 | else |
3156 | ENABLE_LIBADA=yes | |
5213506e RW |
3157 | fi |
3158 | ||
d9cdb878 | 3159 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3160 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3161 | fi |
3162 | ||
5213506e RW |
3163 | # Check whether --enable-libssp was given. |
3164 | if test "${enable_libssp+set}" = set; then : | |
3165 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3166 | else |
3167 | ENABLE_LIBSSP=yes | |
5213506e RW |
3168 | fi |
3169 | ||
ef0087a7 | 3170 | |
1873ec0c L |
3171 | # Check whether --enable-libstdcxx was given. |
3172 | if test "${enable_libstdcxx+set}" = set; then : | |
3173 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3174 | else | |
3175 | ENABLE_LIBSTDCXX=default | |
3176 | fi | |
3177 | ||
3178 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3179 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3180 | fi |
3181 | ||
5f520819 KY |
3182 | # If this is accelerator compiler and its target is intelmic we enable |
3183 | # target liboffloadmic by default. If this is compiler with offloading | |
3184 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3185 | # liboffloadmic is disabled by default. | |
3186 | # Check whether --enable-liboffloadmic was given. | |
3187 | if test "${enable_liboffloadmic+set}" = set; then : | |
3188 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3189 | no | host | target) | |
3190 | enable_liboffloadmic=$enableval ;; | |
3191 | *) | |
22e05272 | 3192 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3193 | esac |
3194 | else | |
4b4f2e35 | 3195 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3196 | case "${target}" in |
3197 | *-intelmic-* | *-intelmicemul-*) | |
3198 | enable_liboffloadmic=target | |
3199 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3200 | ;; | |
3201 | *) | |
3202 | enable_liboffloadmic=no | |
3203 | ;; | |
3204 | esac | |
3205 | else | |
3206 | case "${enable_offload_targets}" in | |
3207 | *-intelmic-* | *-intelmicemul-*) | |
3208 | enable_liboffloadmic=host | |
3209 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3210 | ;; | |
3211 | *) | |
3212 | enable_liboffloadmic=no | |
3213 | ;; | |
3214 | esac | |
3215 | fi | |
3216 | fi | |
3217 | ||
3218 | ||
3219 | ||
44a7d18d | 3220 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3221 | if test x$enable_libgomp = x ; then |
953ff289 | 3222 | case "${target}" in |
416ac4d4 | 3223 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3224 | ;; |
8c6d158a | 3225 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3226 | ;; |
b24513a1 | 3227 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3228 | ;; |
cac90078 | 3229 | *-*-darwin* | *-*-aix*) |
953ff289 | 3230 | ;; |
29b1533a | 3231 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3232 | ;; |
953ff289 DN |
3233 | *) |
3234 | noconfigdirs="$noconfigdirs target-libgomp" | |
3235 | ;; | |
3236 | esac | |
27079765 | 3237 | fi |
953ff289 | 3238 | |
48310492 RH |
3239 | # Disable libatomic on unsupported systems. |
3240 | if test -d ${srcdir}/libatomic; then | |
3241 | if test x$enable_libatomic = x; then | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3243 | $as_echo_n "checking for libatomic support... " >&6; } | |
3244 | if (srcdir=${srcdir}/libatomic; \ | |
3245 | . ${srcdir}/configure.tgt; \ | |
3246 | test -n "$UNSUPPORTED") | |
3247 | then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3249 | $as_echo "no" >&6; } | |
3250 | noconfigdirs="$noconfigdirs target-libatomic" | |
3251 | else | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3253 | $as_echo "yes" >&6; } | |
3254 | fi | |
3255 | fi | |
3256 | fi | |
3257 | ||
5f520819 KY |
3258 | # Disable liboffloadmic on unsupported systems. |
3259 | if test -d ${srcdir}/liboffloadmic; then | |
3260 | if test x$enable_liboffloadmic != xno; then | |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3262 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3263 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3264 | . ${srcdir}/configure.tgt; \ | |
3265 | test -n "$UNSUPPORTED") | |
3266 | then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3268 | $as_echo "no" >&6; } | |
3269 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3270 | else | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3272 | $as_echo "yes" >&6; } | |
3273 | fi | |
3274 | fi | |
3275 | fi | |
3276 | ||
e948157d RH |
3277 | # Disable libitm on unsupported systems. |
3278 | if test -d ${srcdir}/libitm; then | |
3279 | if test x$enable_libitm = x; then | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3281 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3282 | if (srcdir=${srcdir}/libitm; \ |
3283 | . ${srcdir}/configure.tgt; \ | |
3284 | test -n "$UNSUPPORTED") | |
3285 | then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3287 | $as_echo "no" >&6; } |
e948157d RH |
3288 | noconfigdirs="$noconfigdirs target-libitm" |
3289 | else | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3291 | $as_echo "yes" >&6; } |
e948157d RH |
3292 | fi |
3293 | fi | |
0a35513e AH |
3294 | fi |
3295 | ||
93bf5390 RH |
3296 | # Disable libsanitizer on unsupported systems. |
3297 | if test -d ${srcdir}/libsanitizer; then | |
3298 | if test x$enable_libsanitizer = x; then | |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3300 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3301 | if (srcdir=${srcdir}/libsanitizer; \ | |
3302 | . ${srcdir}/configure.tgt; \ | |
3303 | test -n "$UNSUPPORTED") | |
3304 | then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3306 | $as_echo "no" >&6; } | |
3307 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3308 | else | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3310 | $as_echo "yes" >&6; } | |
3311 | fi | |
3312 | fi | |
3313 | fi | |
3314 | ||
2077db1b CT |
3315 | # Disable libvtv on unsupported systems. |
3316 | if test -d ${srcdir}/libvtv; then | |
3317 | if test x$enable_libvtv = x; then | |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3319 | $as_echo_n "checking for libvtv support... " >&6; } | |
3320 | if (srcdir=${srcdir}/libvtv; \ | |
3321 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3322 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3323 | then |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3325 | $as_echo "no" >&6; } | |
3326 | noconfigdirs="$noconfigdirs target-libvtv" | |
3327 | else | |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3329 | $as_echo "yes" >&6; } | |
3330 | fi | |
3331 | fi | |
3332 | fi | |
3333 | ||
d91491e5 SE |
3334 | # Disable libquadmath for some systems. |
3335 | case "${target}" in | |
e7fae550 DE |
3336 | avr-*-*) |
3337 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3338 | ;; | |
d91491e5 SE |
3339 | # libquadmath is unused on AIX and libquadmath build process use of |
3340 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3341 | powerpc-*-aix* | rs6000-*-aix*) | |
3342 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3343 | ;; | |
3344 | esac | |
3345 | ||
1e9e0e23 JM |
3346 | # Disable libssp for some systems. |
3347 | case "${target}" in | |
3348 | avr-*-*) | |
b318fb4b | 3349 | # No hosted I/O support. |
1e9e0e23 JM |
3350 | noconfigdirs="$noconfigdirs target-libssp" |
3351 | ;; | |
91dfef96 JM |
3352 | bpf-*-*) |
3353 | noconfigdirs="$noconfigdirs target-libssp" | |
3354 | ;; | |
1e9e0e23 JM |
3355 | powerpc-*-aix* | rs6000-*-aix*) |
3356 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3357 | ;; |
8d2af3a2 DD |
3358 | pru-*-*) |
3359 | # No hosted I/O support. | |
3360 | noconfigdirs="$noconfigdirs target-libssp" | |
3361 | ;; | |
85b8555e | 3362 | rl78-*-*) |
7cb62ef1 EB |
3363 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3364 | # doesn't fault for those - instead, it gives a build-time error | |
3365 | # for explicit misaligned loads. | |
85b8555e | 3366 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3367 | ;; |
0969ec7d EB |
3368 | visium-*-*) |
3369 | # No hosted I/O support. | |
3370 | noconfigdirs="$noconfigdirs target-libssp" | |
3371 | ;; | |
1e9e0e23 JM |
3372 | esac |
3373 | ||
1e9e0e23 | 3374 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3375 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3376 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3377 | case "${target}" in | |
3378 | *-*-vxworks*) | |
3379 | # VxWorks uses the Dinkumware C++ library. | |
3380 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3381 | ;; | |
afa3d80e TS |
3382 | amdgcn*-*-*) |
3383 | # Not ported/fails to build when using newlib. | |
3384 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3385 | ;; | |
1873ec0c L |
3386 | arm*-wince-pe*) |
3387 | # the C++ libraries don't build on top of CE's C libraries | |
3388 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3389 | ;; | |
3390 | avr-*-*) | |
3391 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3392 | ;; | |
91dfef96 JM |
3393 | bpf-*-*) |
3394 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3395 | ;; | |
fef939d6 JB |
3396 | ft32-*-*) |
3397 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3398 | ;; | |
1873ec0c L |
3399 | esac |
3400 | fi | |
1e9e0e23 | 3401 | |
91dfef96 JM |
3402 | # Disable C++ on systems where it is known to not work. |
3403 | # For testing, you can override this with --enable-languages=c++. | |
3404 | case ,${enable_languages}, in | |
3405 | *,c++,*) | |
3406 | ;; | |
3407 | *) | |
3408 | case "${target}" in | |
3409 | bpf-*-*) | |
3410 | unsupported_languages="$unsupported_languages c++" | |
3411 | ;; | |
3412 | esac | |
3413 | ;; | |
3414 | esac | |
3415 | ||
3416 | # Disable Objc on systems where it is known to not work. | |
3417 | # For testing, you can override this with --enable-languages=objc. | |
3418 | case ,${enable_languages}, in | |
3419 | *,objc,*) | |
3420 | ;; | |
3421 | *) | |
3422 | case "${target}" in | |
3423 | bpf-*-*) | |
3424 | unsupported_languages="$unsupported_languages objc" | |
3425 | ;; | |
3426 | esac | |
3427 | ;; | |
3428 | esac | |
3429 | ||
260eedb9 IB |
3430 | # Disable D on systems where it is known to not work. |
3431 | # For testing, you can override this with --enable-languages=d. | |
3432 | case ,${enable_languages}, in | |
3433 | *,d,*) | |
3434 | ;; | |
3435 | *) | |
3436 | case "${target}" in | |
91dfef96 | 3437 | bpf-*-*) |
260eedb9 IB |
3438 | unsupported_languages="$unsupported_languages d" |
3439 | ;; | |
3440 | esac | |
3441 | ;; | |
3442 | esac | |
3443 | ||
3444 | # Disable libphobos on unsupported systems. | |
3445 | # For testing, you can override this with --enable-libphobos. | |
3446 | if test -d ${srcdir}/libphobos; then | |
3447 | if test x$enable_libphobos = x; then | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3449 | $as_echo_n "checking for libphobos support... " >&6; } | |
3450 | if (srcdir=${srcdir}/libphobos; \ | |
3451 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3452 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3453 | then |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3455 | $as_echo "no" >&6; } | |
3456 | noconfigdirs="$noconfigdirs target-libphobos" | |
3457 | else | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3459 | $as_echo "yes" >&6; } | |
3460 | fi | |
3461 | fi | |
3462 | fi | |
3463 | ||
1e9e0e23 JM |
3464 | # Disable Fortran for some systems. |
3465 | case "${target}" in | |
3466 | mmix-*-*) | |
3467 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3468 | unsupported_languages="$unsupported_languages fortran" | |
3469 | ;; | |
91dfef96 JM |
3470 | bpf-*-*) |
3471 | unsupported_languages="$unsupported_languages fortran" | |
3472 | ;; | |
1e9e0e23 JM |
3473 | esac |
3474 | ||
012447ea JJ |
3475 | # Disable libffi for some systems. |
3476 | case "${target}" in | |
3477 | powerpc-*-darwin*) | |
3478 | ;; | |
3479 | i[3456789]86-*-darwin*) | |
3480 | ;; | |
3481 | x86_64-*-darwin[912]*) | |
3482 | ;; | |
3483 | *-*-darwin*) | |
3484 | noconfigdirs="$noconfigdirs target-libffi" | |
3485 | ;; | |
3486 | *-*-netware*) | |
3487 | noconfigdirs="$noconfigdirs target-libffi" | |
3488 | ;; | |
3489 | *-*-phoenix*) | |
3490 | noconfigdirs="$noconfigdirs target-libffi" | |
3491 | ;; | |
3492 | *-*-rtems*) | |
3493 | noconfigdirs="$noconfigdirs target-libffi" | |
3494 | ;; | |
3495 | *-*-tpf*) | |
3496 | noconfigdirs="$noconfigdirs target-libffi" | |
3497 | ;; | |
3498 | *-*-uclinux*) | |
3499 | noconfigdirs="$noconfigdirs target-libffi" | |
3500 | ;; | |
3501 | *-*-vxworks*) | |
3502 | noconfigdirs="$noconfigdirs target-libffi" | |
3503 | ;; | |
b20e7532 AT |
3504 | aarch64*-*-freebsd*) |
3505 | noconfigdirs="$noconfigdirs target-libffi" | |
3506 | ;; | |
012447ea JJ |
3507 | alpha*-*-*vms*) |
3508 | noconfigdirs="$noconfigdirs target-libffi" | |
3509 | ;; | |
3510 | arm*-*-freebsd*) | |
3511 | noconfigdirs="$noconfigdirs target-libffi" | |
3512 | ;; | |
3513 | arm-wince-pe) | |
3514 | noconfigdirs="$noconfigdirs target-libffi" | |
3515 | ;; | |
3516 | arm*-*-symbianelf*) | |
3517 | noconfigdirs="$noconfigdirs target-libffi" | |
3518 | ;; | |
91dfef96 JM |
3519 | bpf-*-*) |
3520 | noconfigdirs="$noconfigdirs target-libffi" | |
3521 | ;; | |
012447ea JJ |
3522 | cris-*-* | crisv32-*-*) |
3523 | case "${target}" in | |
3524 | *-*-linux*) | |
3525 | ;; | |
3526 | *) # See PR46792 regarding target-libffi. | |
3527 | noconfigdirs="$noconfigdirs target-libffi";; | |
3528 | esac | |
3529 | ;; | |
3530 | hppa*64*-*-hpux*) | |
3531 | noconfigdirs="$noconfigdirs target-libffi" | |
3532 | ;; | |
3533 | hppa*-hp-hpux11*) | |
3534 | ;; | |
3535 | hppa*-*-hpux*) | |
3536 | noconfigdirs="$noconfigdirs target-libffi" | |
3537 | ;; | |
3538 | ia64*-*-*vms*) | |
3539 | noconfigdirs="$noconfigdirs target-libffi" | |
3540 | ;; | |
3541 | i[3456789]86-w64-mingw*) | |
3542 | noconfigdirs="$noconfigdirs target-libffi" | |
3543 | ;; | |
3544 | i[3456789]86-*-mingw*) | |
3545 | noconfigdirs="$noconfigdirs target-libffi" | |
3546 | ;; | |
3547 | x86_64-*-mingw*) | |
3548 | noconfigdirs="$noconfigdirs target-libffi" | |
3549 | ;; | |
3550 | mmix-*-*) | |
3551 | noconfigdirs="$noconfigdirs target-libffi" | |
3552 | ;; | |
3553 | powerpc-*-aix*) | |
012447ea JJ |
3554 | ;; |
3555 | rs6000-*-aix*) | |
012447ea JJ |
3556 | ;; |
3557 | ft32-*-*) | |
3558 | noconfigdirs="$noconfigdirs target-libffi" | |
3559 | ;; | |
3560 | *-*-lynxos*) | |
3561 | noconfigdirs="$noconfigdirs target-libffi" | |
3562 | ;; | |
3563 | esac | |
3564 | ||
3565 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3566 | # this in sync with contrib/config-list.mk. | |
3567 | case "${target}" in | |
91dfef96 | 3568 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3569 | unsupported_languages="$unsupported_languages go" |
3570 | ;; | |
3571 | esac | |
3572 | ||
f9d09df0 TT |
3573 | # Only allow gdbserver on some systems. |
3574 | if test -d ${srcdir}/gdbserver; then | |
3575 | if test x$enable_gdbserver = x; then | |
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3577 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3578 | if (srcdir=${srcdir}/gdbserver; \ | |
3579 | . ${srcdir}/configure.srv; \ | |
3580 | test -n "$UNSUPPORTED") | |
3581 | then | |
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3583 | $as_echo "no" >&6; } | |
3584 | noconfigdirs="$noconfigdirs gdbserver" | |
3585 | else | |
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3587 | $as_echo "yes" >&6; } | |
3588 | fi | |
3589 | fi | |
3590 | fi | |
3591 | ||
cdbc9e92 ILT |
3592 | # Disable libgo for some systems where it is known to not work. |
3593 | # For testing, you can easily override this with --enable-libgo. | |
3594 | if test x$enable_libgo = x; then | |
3595 | case "${target}" in | |
3596 | *-*-darwin*) | |
3597 | # PR 46986 | |
3598 | noconfigdirs="$noconfigdirs target-libgo" | |
3599 | ;; | |
3600 | *-*-cygwin* | *-*-mingw*) | |
3601 | noconfigdirs="$noconfigdirs target-libgo" | |
3602 | ;; | |
91dfef96 JM |
3603 | bpf-*-*) |
3604 | noconfigdirs="$noconfigdirs target-libgo" | |
3605 | ;; | |
cdbc9e92 ILT |
3606 | esac |
3607 | fi | |
3608 | ||
c03353e2 RIL |
3609 | # Default libgloss CPU subdirectory. |
3610 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3611 | |
fbcf0dca JM |
3612 | case "${target}" in |
3613 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3614 | libgloss_dir=wince | |
3615 | ;; | |
4dddfc74 YZ |
3616 | aarch64*-*-* ) |
3617 | libgloss_dir=aarch64 | |
3618 | ;; | |
fbcf0dca JM |
3619 | arm*-*-*) |
3620 | libgloss_dir=arm | |
3621 | ;; | |
3622 | cris-*-* | crisv32-*-*) | |
3623 | libgloss_dir=cris | |
3624 | ;; | |
3625 | hppa*-*-*) | |
3626 | libgloss_dir=pa | |
3627 | ;; | |
3628 | i[3456789]86-*-*) | |
3629 | libgloss_dir=i386 | |
3630 | ;; | |
3631 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3632 | libgloss_dir=m68hc11 | |
3633 | ;; | |
3634 | m68*-*-* | fido-*-*) | |
3635 | libgloss_dir=m68k | |
3636 | ;; | |
3637 | mips*-*-*) | |
3638 | libgloss_dir=mips | |
3639 | ;; | |
3640 | powerpc*-*-*) | |
3641 | libgloss_dir=rs6000 | |
3642 | ;; | |
8d2af3a2 DD |
3643 | pru-*-*) |
3644 | libgloss_dir=pru | |
3645 | ;; | |
fbcf0dca JM |
3646 | sparc*-*-*) |
3647 | libgloss_dir=sparc | |
3648 | ;; | |
3649 | esac | |
3650 | ||
6a789d5e | 3651 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3652 | case "${target}" in |
6a789d5e JM |
3653 | alpha*-dec-osf*) |
3654 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3655 | ;; | |
3656 | i[3456789]86-*-linux*) | |
3657 | # This section makes it possible to build newlib natively on linux. | |
3658 | # If we are using a cross compiler then don't configure newlib. | |
3659 | if test x${is_cross_compiler} != xno ; then | |
3660 | noconfigdirs="$noconfigdirs target-newlib" | |
3661 | fi | |
3662 | noconfigdirs="$noconfigdirs target-libgloss" | |
3663 | # If we are not using a cross compiler, do configure newlib. | |
3664 | # Note however, that newlib will only be configured in this situation | |
3665 | # if the --with-newlib option has been given, because otherwise | |
3666 | # 'target-newlib' will appear in skipdirs. | |
3667 | ;; | |
3668 | i[3456789]86-*-rdos*) | |
3669 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3670 | ;; | |
3671 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3673 | ;; | |
3674 | sparc-*-sunos4*) | |
3675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3676 | ;; | |
91dfef96 JM |
3677 | bpf-*-*) |
3678 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3679 | ;; | |
6a789d5e JM |
3680 | *-*-aix*) |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | *-*-beos*) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
671aa708 | 3686 | *-*-chorusos) |
0036370f | 3687 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3688 | ;; |
6a789d5e JM |
3689 | *-*-dragonfly*) |
3690 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3691 | ;; | |
3692 | *-*-freebsd*) | |
3693 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3694 | ;; | |
3695 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3696 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3697 | ;; | |
3698 | *-*-lynxos*) | |
3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3700 | ;; | |
3701 | *-*-mingw*) | |
3702 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3703 | ;; | |
3704 | *-*-netbsd*) | |
3705 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3706 | ;; | |
3707 | *-*-netware*) | |
3708 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3709 | ;; | |
3710 | *-*-tpf*) | |
3711 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3712 | ;; | |
3713 | *-*-uclinux*) | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | ;; | |
3716 | *-*-vxworks*) | |
3717 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3718 | ;; | |
3719 | esac | |
3720 | ||
3721 | case "${target}" in | |
3722 | *-*-chorusos) | |
3723 | ;; | |
3be96231 TG |
3724 | aarch64-*-darwin*) |
3725 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3726 | noconfigdirs="$noconfigdirs sim target-rda" | |
3727 | ;; | |
7431c1a1 AS |
3728 | amdgcn*-*-*) |
3729 | ;; | |
3be96231 TG |
3730 | arm-*-darwin*) |
3731 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3732 | noconfigdirs="$noconfigdirs sim target-rda" | |
3733 | ;; | |
75eeae1a | 3734 | powerpc-*-darwin*) |
e1514c3f | 3735 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3736 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3737 | ;; |
354ebf88 RW |
3738 | i[3456789]86-*-darwin*) |
3739 | noconfigdirs="$noconfigdirs ld gprof" | |
3740 | noconfigdirs="$noconfigdirs sim target-rda" | |
3741 | ;; | |
3742 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3743 | noconfigdirs="$noconfigdirs ld gas gprof" |
3744 | noconfigdirs="$noconfigdirs sim target-rda" | |
3745 | ;; | |
42c1cd8a AT |
3746 | *-*-darwin*) |
3747 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3748 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3749 | ;; |
8c6d158a | 3750 | *-*-dragonfly*) |
8c6d158a | 3751 | ;; |
c3f84f61 | 3752 | *-*-freebsd*) |
6de9cd9a | 3753 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
c0d0a722 | 3754 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3755 | && test -f /usr/local/include/gmp.h; then |
3756 | with_gmp=/usr/local | |
3757 | fi | |
6de9cd9a | 3758 | ;; |
ef4e7569 US |
3759 | *-*-kaos*) |
3760 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3761 | noconfigdirs="$noconfigdirs target-libgloss" |
3762 | ;; | |
671aa708 | 3763 | *-*-netbsd*) |
671aa708 | 3764 | ;; |
61fec9ff | 3765 | *-*-netware*) |
671aa708 | 3766 | ;; |
fd6487af JS |
3767 | *-*-phoenix*) |
3768 | noconfigdirs="$noconfigdirs target-libgloss" | |
3769 | ;; | |
671aa708 | 3770 | *-*-rtems*) |
2909494b | 3771 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3772 | ;; |
a8ba31f2 EC |
3773 | # The tpf target doesn't support gdb yet. |
3774 | *-*-tpf*) | |
6a789d5e | 3775 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3776 | ;; |
5785c0ed | 3777 | *-*-uclinux*) |
6a789d5e | 3778 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3779 | ;; |
671aa708 | 3780 | *-*-vxworks*) |
671aa708 NN |
3781 | ;; |
3782 | alpha*-dec-osf*) | |
3783 | # ld works, but does not support shared libraries. | |
671aa708 | 3784 | # gas doesn't generate exception information. |
6a789d5e | 3785 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3786 | ;; |
3787 | alpha*-*-*vms*) | |
2909494b | 3788 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3789 | ;; |
671aa708 NN |
3790 | alpha*-*-*) |
3791 | # newlib is not 64 bit ready | |
2909494b | 3792 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3793 | ;; |
91dfef96 JM |
3794 | bpf-*-*) |
3795 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3796 | ;; | |
671aa708 | 3797 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3798 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3799 | ;; |
2fd88f4f AK |
3800 | arc*-*-*) |
3801 | noconfigdirs="$noconfigdirs sim" | |
3802 | ;; | |
671aa708 | 3803 | arm-*-pe*) |
2909494b | 3804 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3805 | ;; |
671aa708 | 3806 | arm-*-riscix*) |
0036370f | 3807 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3808 | ;; |
b588ae30 GJL |
3809 | avr-*-*) |
3810 | if test x${with_avrlibc} != xno; then | |
3811 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3812 | fi | |
3813 | ;; | |
671aa708 | 3814 | c4x-*-* | tic4x-*-*) |
0036370f | 3815 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3816 | ;; |
0036370f JM |
3817 | tic54x-*-*) |
3818 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3819 | ;; |
671aa708 | 3820 | d10v-*-*) |
0036370f | 3821 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3822 | ;; |
3823 | d30v-*-*) | |
0036370f | 3824 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3825 | ;; |
3826 | fr30-*-elf*) | |
2909494b | 3827 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3828 | ;; |
a05c2c75 L |
3829 | ft32-*-*) |
3830 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3831 | ;; | |
55f2d967 | 3832 | moxie-*-*) |
a05c2c75 | 3833 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3834 | ;; |
671aa708 | 3835 | h8300*-*-*) |
2909494b | 3836 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3837 | ;; |
3838 | h8500-*-*) | |
0036370f | 3839 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3840 | ;; |
ee6a22df | 3841 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3842 | ;; |
a05c2c75 L |
3843 | hppa*64*-*-hpux*) |
3844 | noconfigdirs="$noconfigdirs gdb" | |
3845 | ;; | |
3846 | hppa*-*-hpux11*) | |
3847 | noconfigdirs="$noconfigdirs gdb ld" | |
3848 | ;; | |
4569f85e | 3849 | hppa*64*-*-linux*) |
671aa708 | 3850 | ;; |
56f8587a | 3851 | hppa*-*-linux*) |
3e732ba0 | 3852 | ;; |
671aa708 | 3853 | hppa*-*-*elf* | \ |
671aa708 NN |
3854 | hppa*-*-lites* | \ |
3855 | hppa*-*-openbsd* | \ | |
3856 | hppa*64*-*-*) | |
671aa708 | 3857 | ;; |
c03353e2 | 3858 | hppa*-*-pro*) |
c03353e2 | 3859 | ;; |
671aa708 | 3860 | hppa*-*-*) |
2909494b | 3861 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3862 | ;; |
fb87ad5d | 3863 | i960-*-*) |
0036370f | 3864 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3865 | ;; |
671aa708 NN |
3866 | ia64*-*-elf*) |
3867 | # No gdb support yet. | |
1bcce263 | 3868 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3869 | ;; |
3870 | ia64*-**-hpux*) | |
5a2931d1 | 3871 | # No ld support yet. |
a05c2c75 | 3872 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3873 | ;; |
52535a64 | 3874 | ia64*-*-*vms*) |
091fe9ca TG |
3875 | # No ld support yet. |
3876 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3877 | ;; |
ef4c4300 | 3878 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3879 | ;; |
3880 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3881 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3882 | ;; |
671aa708 NN |
3883 | *-*-cygwin*) |
3884 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3885 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3886 | # always build newlib if winsup directory is present. |
b91f0a41 | 3887 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3888 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3889 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3890 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3891 | fi |
1c710c3c | 3892 | ;; |
f2a0e225 | 3893 | i[3456789]86-*-pe) |
ebb9f8b0 | 3894 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3895 | ;; |
f2a0e225 | 3896 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3897 | # The linker does not yet know about weak symbols in COFF, |
3898 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3899 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3900 | ;; |
f2a0e225 | 3901 | i[3456789]86-*-sco*) |
0036370f | 3902 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3903 | ;; |
fbdd5d87 | 3904 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3905 | noconfigdirs="$noconfigdirs target-libgloss" |
3906 | ;; | |
f2a0e225 | 3907 | i[3456789]86-*-sysv4*) |
0036370f | 3908 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3909 | ;; |
f2a0e225 | 3910 | i[3456789]86-*-beos*) |
6a789d5e | 3911 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3912 | ;; |
d1f8db0c | 3913 | i[3456789]86-*-rdos*) |
6a789d5e | 3914 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3915 | ;; |
671aa708 | 3916 | mmix-*-*) |
2909494b | 3917 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3918 | ;; |
ab34901f | 3919 | mt-*-*) |
79dd769c AH |
3920 | noconfigdirs="$noconfigdirs sim" |
3921 | ;; | |
58b40a67 FT |
3922 | nfp-*-*) |
3923 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3924 | noconfigdirs="$noconfigdirs $target_libraries" | |
3925 | ;; | |
e6cbe965 SC |
3926 | pdp11-*-*) |
3927 | noconfigdirs="$noconfigdirs gdb gprof" | |
3928 | ;; | |
671aa708 NN |
3929 | powerpc-*-aix*) |
3930 | # copied from rs6000-*-* entry | |
6a789d5e | 3931 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3932 | ;; |
4569f85e | 3933 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3934 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3935 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3936 | # always build newlib. |
3937 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3938 | ;; | |
3939 | # This is temporary until we can link against shared libraries | |
3940 | powerpcle-*-solaris*) | |
0036370f | 3941 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3942 | ;; |
3943 | powerpc-*-beos*) | |
6a789d5e | 3944 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3945 | ;; |
671aa708 | 3946 | rs6000-*-lynxos*) |
6a789d5e | 3947 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3948 | ;; |
3949 | rs6000-*-aix*) | |
6a789d5e | 3950 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3951 | ;; |
3952 | rs6000-*-*) | |
2909494b | 3953 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3954 | ;; |
3955 | m68k-apollo-*) | |
0036370f | 3956 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3957 | ;; |
ca9fe997 | 3958 | microblaze*) |
2909494b | 3959 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3960 | ;; |
d896cc4d | 3961 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3962 | if test x$with_newlib = xyes; then |
3963 | noconfigdirs="$noconfigdirs gprof" | |
3964 | fi | |
d9dced13 | 3965 | ;; |
671aa708 | 3966 | mips*-*-irix5*) |
0036370f | 3967 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3968 | ;; |
3969 | mips*-*-irix6*) | |
2909494b | 3970 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3971 | ;; |
671aa708 | 3972 | mips*-*-bsd*) |
bc98bcc4 | 3973 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3974 | ;; |
671aa708 | 3975 | mips*-*-linux*) |
671aa708 | 3976 | ;; |
bc98bcc4 JBG |
3977 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3978 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3979 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3980 | ;; | |
671aa708 | 3981 | mips*-*-*) |
2909494b | 3982 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3983 | ;; |
738f2522 | 3984 | nvptx*-*-*) |
738f2522 BS |
3985 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3986 | ;; | |
bc6d9014 | 3987 | sh-*-*) |
ea2002ba CB |
3988 | case "${target}" in |
3989 | sh*-*-elf) | |
2909494b | 3990 | ;; |
ea2002ba | 3991 | *) |
2909494b | 3992 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3993 | esac |
671aa708 | 3994 | ;; |
671aa708 | 3995 | sparc-*-sunos4*) |
6a789d5e | 3996 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3997 | use_gnu_ld=no |
3998 | fi | |
3999 | ;; | |
b42f0d7e | 4000 | tic6x-*-*) |
0d557ff8 | 4001 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4002 | ;; |
341c653c | 4003 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4004 | noconfigdirs="$noconfigdirs sim" |
4005 | ;; | |
671aa708 | 4006 | v810-*-*) |
0036370f | 4007 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4008 | ;; |
4009 | vax-*-*) | |
2909494b | 4010 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4011 | ;; |
1fc1d82e MR |
4012 | wasm32-*-*) |
4013 | noconfigdirs="$noconfigdirs ld" | |
4014 | ;; | |
671aa708 | 4015 | esac |
79c06341 | 4016 | |
671aa708 NN |
4017 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4018 | # depends upon some newlib header files. | |
4019 | case "${noconfigdirs}" in | |
4020 | *target-libgloss*) ;; | |
4021 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4022 | esac | |
4023 | ||
671aa708 | 4024 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4025 | host_makefile_frag=/dev/null |
4026 | if test -d ${srcdir}/config ; then | |
4027 | case "${host}" in | |
f2a0e225 | 4028 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4029 | host_makefile_frag="config/mh-djgpp" |
4030 | ;; | |
4031 | *-cygwin*) | |
2a79c47f | 4032 | |
5213506e RW |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4034 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4035 | echo a >cygwin-cat-check |
e25a8c82 | 4036 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4037 | rm cygwin-cat-check |
5213506e RW |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4039 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4040 | else |
4041 | rm cygwin-cat-check | |
5213506e RW |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4043 | $as_echo "no" >&6; } | |
22e05272 | 4044 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4045 | Please either mount the build directory in binary mode or run the following |
4046 | commands before running any configure script: | |
4047 | set -o igncr | |
4048 | export SHELLOPTS | |
5213506e | 4049 | " "$LINENO" 5 |
2a79c47f NC |
4050 | fi |
4051 | ||
671aa708 NN |
4052 | host_makefile_frag="config/mh-cygwin" |
4053 | ;; | |
c53a18d3 | 4054 | *-mingw*) |
1f5a6b84 | 4055 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4056 | ;; |
cabb9d59 | 4057 | alpha*-linux*) |
13be44ed UB |
4058 | host_makefile_frag="config/mh-alpha-linux" |
4059 | ;; | |
efd41714 | 4060 | hppa*-hp-hpux10*) |
efd41714 | 4061 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4062 | ;; |
111eeb6e | 4063 | hppa*-hp-hpux*) |
efd41714 PB |
4064 | host_makefile_frag="config/mh-pa" |
4065 | ;; | |
4066 | hppa*-*) | |
4067 | host_makefile_frag="config/mh-pa" | |
4068 | ;; | |
d8ed14ce IS |
4069 | *-*-darwin*) |
4070 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 4071 | ;; |
d19bca38 PB |
4072 | powerpc-*-aix*) |
4073 | host_makefile_frag="config/mh-ppc-aix" | |
4074 | ;; | |
4075 | rs6000-*-aix*) | |
4076 | host_makefile_frag="config/mh-ppc-aix" | |
4077 | ;; | |
671aa708 NN |
4078 | esac |
4079 | fi | |
4080 | ||
55ffb5ed | 4081 | if test "${build}" != "${host}" ; then |
0999159b PB |
4082 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4083 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4084 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 4085 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
0999159b | 4086 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4087 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4088 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4089 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4090 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4091 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4092 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4093 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4094 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4095 | else | |
4096 | AR_FOR_BUILD="\$(AR)" | |
4097 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4098 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4099 | CXX_FOR_BUILD="\$(CXX)" |
0999159b | 4100 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4101 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4102 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4103 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4104 | LD_FOR_BUILD="\$(LD)" | |
4105 | NM_FOR_BUILD="\$(NM)" | |
4106 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4107 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4108 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4109 | fi |
4110 | ||
4111 | ac_ext=c | |
1c710c3c DJ |
4112 | ac_cpp='$CPP $CPPFLAGS' |
4113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4116 | if test -n "$ac_tool_prefix"; then | |
4117 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4118 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4120 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4121 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4122 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4123 | else |
4124 | if test -n "$CC"; then | |
4125 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4126 | else | |
4127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4128 | for as_dir in $PATH | |
4129 | do | |
4130 | IFS=$as_save_IFS | |
4131 | test -z "$as_dir" && as_dir=. | |
5213506e | 4132 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4134 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4136 | break 2 |
4137 | fi | |
4138 | done | |
5213506e RW |
4139 | done |
4140 | IFS=$as_save_IFS | |
1c710c3c DJ |
4141 | |
4142 | fi | |
4143 | fi | |
4144 | CC=$ac_cv_prog_CC | |
4145 | if test -n "$CC"; then | |
5213506e RW |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4147 | $as_echo "$CC" >&6; } | |
1c710c3c | 4148 | else |
5213506e RW |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4150 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4151 | fi |
4152 | ||
5213506e | 4153 | |
1c710c3c DJ |
4154 | fi |
4155 | if test -z "$ac_cv_prog_CC"; then | |
4156 | ac_ct_CC=$CC | |
fb0103e5 RG |
4157 | # Extract the first word of "gcc", so it can be a program name with args. |
4158 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4160 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4161 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4162 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4163 | else |
4164 | if test -n "$ac_ct_CC"; then | |
4165 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4166 | else | |
4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4168 | for as_dir in $PATH | |
4169 | do | |
4170 | IFS=$as_save_IFS | |
4171 | test -z "$as_dir" && as_dir=. | |
5213506e | 4172 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4174 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4176 | break 2 |
4177 | fi | |
4178 | done | |
5213506e RW |
4179 | done |
4180 | IFS=$as_save_IFS | |
1c710c3c DJ |
4181 | |
4182 | fi | |
4183 | fi | |
4184 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4185 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4187 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4188 | else |
5213506e RW |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4190 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4191 | fi |
4192 | ||
5213506e RW |
4193 | if test "x$ac_ct_CC" = x; then |
4194 | CC="" | |
4195 | else | |
4196 | case $cross_compiling:$ac_tool_warned in | |
4197 | yes:) | |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4199 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4200 | ac_tool_warned=yes ;; | |
4201 | esac | |
4202 | CC=$ac_ct_CC | |
4203 | fi | |
1c710c3c DJ |
4204 | else |
4205 | CC="$ac_cv_prog_CC" | |
4206 | fi | |
4207 | ||
4208 | if test -z "$CC"; then | |
5213506e RW |
4209 | if test -n "$ac_tool_prefix"; then |
4210 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4211 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4213 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4214 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4215 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4216 | else |
4217 | if test -n "$CC"; then | |
4218 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4219 | else | |
1c710c3c DJ |
4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4221 | for as_dir in $PATH | |
4222 | do | |
4223 | IFS=$as_save_IFS | |
4224 | test -z "$as_dir" && as_dir=. | |
5213506e | 4225 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4227 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4229 | break 2 |
4230 | fi | |
4231 | done | |
5213506e RW |
4232 | done |
4233 | IFS=$as_save_IFS | |
1c710c3c | 4234 | |
0b0dc272 | 4235 | fi |
0b0dc272 | 4236 | fi |
1c710c3c | 4237 | CC=$ac_cv_prog_CC |
af71363e | 4238 | if test -n "$CC"; then |
5213506e RW |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4240 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4241 | else |
5213506e RW |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4243 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4244 | fi |
4245 | ||
2aeb72e9 | 4246 | |
5213506e | 4247 | fi |
1c710c3c | 4248 | fi |
55ffb5ed NN |
4249 | if test -z "$CC"; then |
4250 | # Extract the first word of "cc", so it can be a program name with args. | |
4251 | set dummy cc; ac_word=$2 | |
5213506e RW |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4253 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4254 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4255 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4256 | else |
4257 | if test -n "$CC"; then | |
4258 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4259 | else | |
0b0dc272 | 4260 | ac_prog_rejected=no |
1c710c3c DJ |
4261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4262 | for as_dir in $PATH | |
4263 | do | |
4264 | IFS=$as_save_IFS | |
4265 | test -z "$as_dir" && as_dir=. | |
5213506e | 4266 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4268 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4269 | ac_prog_rejected=yes | |
4270 | continue | |
4271 | fi | |
4272 | ac_cv_prog_CC="cc" | |
5213506e | 4273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4274 | break 2 |
4275 | fi | |
4276 | done | |
5213506e RW |
4277 | done |
4278 | IFS=$as_save_IFS | |
1c710c3c | 4279 | |
55ffb5ed NN |
4280 | if test $ac_prog_rejected = yes; then |
4281 | # We found a bogon in the path, so make sure we never use it. | |
4282 | set dummy $ac_cv_prog_CC | |
4283 | shift | |
1c710c3c | 4284 | if test $# != 0; then |
55ffb5ed NN |
4285 | # We chose a different compiler from the bogus one. |
4286 | # However, it has the same basename, so the bogon will be chosen | |
4287 | # first if we set CC to just the basename; use the full file name. | |
4288 | shift | |
1c710c3c | 4289 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4290 | fi |
4291 | fi | |
4292 | fi | |
4293 | fi | |
1c710c3c | 4294 | CC=$ac_cv_prog_CC |
55ffb5ed | 4295 | if test -n "$CC"; then |
5213506e RW |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4297 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4298 | else |
5213506e RW |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4300 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4301 | fi |
4302 | ||
5213506e | 4303 | |
1c710c3c DJ |
4304 | fi |
4305 | if test -z "$CC"; then | |
4306 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4307 | for ac_prog in cl.exe |
1c710c3c DJ |
4308 | do |
4309 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4310 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4312 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4313 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4314 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4315 | else |
4316 | if test -n "$CC"; then | |
4317 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4318 | else | |
1c710c3c DJ |
4319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4320 | for as_dir in $PATH | |
4321 | do | |
4322 | IFS=$as_save_IFS | |
4323 | test -z "$as_dir" && as_dir=. | |
5213506e | 4324 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4326 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4328 | break 2 |
4329 | fi | |
4330 | done | |
5213506e RW |
4331 | done |
4332 | IFS=$as_save_IFS | |
1c710c3c | 4333 | |
55ffb5ed NN |
4334 | fi |
4335 | fi | |
1c710c3c | 4336 | CC=$ac_cv_prog_CC |
55ffb5ed | 4337 | if test -n "$CC"; then |
5213506e RW |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4339 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4340 | else |
5213506e RW |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4342 | $as_echo "no" >&6; } | |
fb0103e5 | 4343 | fi |
af71363e | 4344 | |
5213506e | 4345 | |
1c710c3c DJ |
4346 | test -n "$CC" && break |
4347 | done | |
af71363e | 4348 | fi |
1c710c3c DJ |
4349 | if test -z "$CC"; then |
4350 | ac_ct_CC=$CC | |
5213506e | 4351 | for ac_prog in cl.exe |
1c710c3c DJ |
4352 | do |
4353 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4354 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4356 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4357 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4358 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4359 | else |
1c710c3c DJ |
4360 | if test -n "$ac_ct_CC"; then |
4361 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4362 | else |
1c710c3c DJ |
4363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4364 | for as_dir in $PATH | |
4365 | do | |
4366 | IFS=$as_save_IFS | |
4367 | test -z "$as_dir" && as_dir=. | |
5213506e | 4368 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4370 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4372 | break 2 |
4373 | fi | |
4374 | done | |
5213506e RW |
4375 | done |
4376 | IFS=$as_save_IFS | |
1c710c3c | 4377 | |
af71363e AS |
4378 | fi |
4379 | fi | |
1c710c3c DJ |
4380 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4381 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4383 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4384 | else |
5213506e RW |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4386 | $as_echo "no" >&6; } | |
af71363e | 4387 | fi |
0b0dc272 | 4388 | |
5213506e | 4389 | |
1c710c3c DJ |
4390 | test -n "$ac_ct_CC" && break |
4391 | done | |
4392 | ||
5213506e RW |
4393 | if test "x$ac_ct_CC" = x; then |
4394 | CC="" | |
4395 | else | |
4396 | case $cross_compiling:$ac_tool_warned in | |
4397 | yes:) | |
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4399 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4400 | ac_tool_warned=yes ;; | |
4401 | esac | |
4402 | CC=$ac_ct_CC | |
4403 | fi | |
1c710c3c DJ |
4404 | fi |
4405 | ||
4406 | fi | |
4407 | ||
4408 | ||
5213506e RW |
4409 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4410 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4411 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4412 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4413 | |
4414 | # Provide some information about the compiler. | |
5213506e RW |
4415 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4416 | set X $ac_compile | |
4417 | ac_compiler=$2 | |
4418 | for ac_option in --version -v -V -qversion; do | |
4419 | { { ac_try="$ac_compiler $ac_option >&5" | |
4420 | case "(($ac_try" in | |
4421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4422 | *) ac_try_echo=$ac_try;; | |
4423 | esac | |
4424 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4425 | $as_echo "$ac_try_echo"; } >&5 | |
4426 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4427 | ac_status=$? |
5213506e RW |
4428 | if test -s conftest.err; then |
4429 | sed '10a\ | |
4430 | ... rest of stderr output deleted ... | |
4431 | 10q' conftest.err >conftest.er1 | |
4432 | cat conftest.er1 >&5 | |
5213506e | 4433 | fi |
22e05272 | 4434 | rm -f conftest.er1 conftest.err |
5213506e RW |
4435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4436 | test $ac_status = 0; } | |
4437 | done | |
1c710c3c | 4438 | |
5213506e | 4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4440 | /* end confdefs.h. */ |
4441 | ||
4442 | int | |
4443 | main () | |
4444 | { | |
4445 | ||
4446 | ; | |
4447 | return 0; | |
4448 | } | |
4449 | _ACEOF | |
4450 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4451 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4452 | # Try to create an executable without -o first, disregard a.out. |
4453 | # It will help us diagnose broken compilers, and finding out an intuition | |
4454 | # of exeext. | |
22e05272 JM |
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4456 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4457 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4458 | ||
4459 | # The possible output files: | |
4460 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4461 | ||
4462 | ac_rmfiles= | |
4463 | for ac_file in $ac_files | |
4464 | do | |
4465 | case $ac_file in | |
4466 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4467 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4468 | esac | |
4469 | done | |
4470 | rm -f $ac_rmfiles | |
4471 | ||
4472 | if { { ac_try="$ac_link_default" | |
4473 | case "(($ac_try" in | |
4474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4475 | *) ac_try_echo=$ac_try;; | |
4476 | esac | |
4477 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4478 | $as_echo "$ac_try_echo"; } >&5 | |
4479 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4480 | ac_status=$? |
5213506e RW |
4481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4482 | test $ac_status = 0; }; then : | |
4483 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4484 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4485 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4486 | # so that the user can short-circuit this test for compilers unknown to | |
4487 | # Autoconf. | |
4488 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4489 | do |
4490 | test -f "$ac_file" || continue | |
4491 | case $ac_file in | |
5213506e | 4492 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4493 | ;; |
4494 | [ab].out ) | |
4495 | # We found the default executable, but exeext='' is most | |
4496 | # certainly right. | |
4497 | break;; | |
4498 | *.* ) | |
5213506e RW |
4499 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4500 | then :; else | |
4501 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4502 | fi | |
4503 | # We set ac_cv_exeext here because the later test for it is not | |
4504 | # safe: cross compilers may not add the suffix if given an `-o' | |
4505 | # argument, so we may need to know it at that point already. | |
4506 | # Even if this section looks crufty: it has the advantage of | |
4507 | # actually working. | |
1c710c3c DJ |
4508 | break;; |
4509 | * ) | |
4510 | break;; | |
4511 | esac | |
4512 | done | |
5213506e RW |
4513 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4514 | ||
1c710c3c | 4515 | else |
5213506e RW |
4516 | ac_file='' |
4517 | fi | |
5213506e | 4518 | if test -z "$ac_file"; then : |
22e05272 JM |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4520 | $as_echo "no" >&6; } | |
4521 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
4523 | ||
5213506e RW |
4524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4525 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4526 | as_fn_error 77 "C compiler cannot create executables |
4527 | See \`config.log' for more details" "$LINENO" 5; } | |
4528 | else | |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4530 | $as_echo "yes" >&6; } | |
1c710c3c | 4531 | fi |
22e05272 JM |
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4533 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4535 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4536 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4537 | |
22e05272 | 4538 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4539 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4541 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4542 | if { { ac_try="$ac_link" | |
4543 | case "(($ac_try" in | |
4544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4545 | *) ac_try_echo=$ac_try;; | |
4546 | esac | |
4547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4548 | $as_echo "$ac_try_echo"; } >&5 | |
4549 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4550 | ac_status=$? |
5213506e RW |
4551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4552 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4553 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4554 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4555 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4556 | # `rm'. | |
4557 | for ac_file in conftest.exe conftest conftest.*; do | |
4558 | test -f "$ac_file" || continue | |
4559 | case $ac_file in | |
5213506e | 4560 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4561 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4562 | break;; |
4563 | * ) break;; | |
4564 | esac | |
4565 | done | |
af71363e | 4566 | else |
5213506e RW |
4567 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4568 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4569 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4570 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4571 | fi |
22e05272 | 4572 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4574 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4575 | |
4576 | rm -f conftest.$ac_ext | |
4577 | EXEEXT=$ac_cv_exeext | |
4578 | ac_exeext=$EXEEXT | |
22e05272 JM |
4579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4580 | /* end confdefs.h. */ | |
4581 | #include <stdio.h> | |
4582 | int | |
4583 | main () | |
4584 | { | |
4585 | FILE *f = fopen ("conftest.out", "w"); | |
4586 | return ferror (f) || fclose (f) != 0; | |
4587 | ||
4588 | ; | |
4589 | return 0; | |
4590 | } | |
4591 | _ACEOF | |
4592 | ac_clean_files="$ac_clean_files conftest.out" | |
4593 | # Check that the compiler produces executables we can run. If not, either | |
4594 | # the compiler is broken, or we cross compile. | |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4596 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4597 | if test "$cross_compiling" != yes; then | |
4598 | { { ac_try="$ac_link" | |
4599 | case "(($ac_try" in | |
4600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4601 | *) ac_try_echo=$ac_try;; | |
4602 | esac | |
4603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4604 | $as_echo "$ac_try_echo"; } >&5 | |
4605 | (eval "$ac_link") 2>&5 | |
4606 | ac_status=$? | |
4607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4608 | test $ac_status = 0; } | |
4609 | if { ac_try='./conftest$ac_cv_exeext' | |
4610 | { { case "(($ac_try" in | |
4611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4612 | *) ac_try_echo=$ac_try;; | |
4613 | esac | |
4614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4615 | $as_echo "$ac_try_echo"; } >&5 | |
4616 | (eval "$ac_try") 2>&5 | |
4617 | ac_status=$? | |
4618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4619 | test $ac_status = 0; }; }; then | |
4620 | cross_compiling=no | |
4621 | else | |
4622 | if test "$cross_compiling" = maybe; then | |
4623 | cross_compiling=yes | |
4624 | else | |
4625 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4627 | as_fn_error $? "cannot run C compiled programs. | |
4628 | If you meant to cross compile, use \`--host'. | |
4629 | See \`config.log' for more details" "$LINENO" 5; } | |
4630 | fi | |
4631 | fi | |
4632 | fi | |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4634 | $as_echo "$cross_compiling" >&6; } | |
4635 | ||
4636 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4637 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4639 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4640 | if ${ac_cv_objext+:} false; then : |
5213506e | 4641 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4642 | else |
5213506e | 4643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4644 | /* end confdefs.h. */ |
4645 | ||
4646 | int | |
4647 | main () | |
4648 | { | |
4649 | ||
4650 | ; | |
4651 | return 0; | |
4652 | } | |
4653 | _ACEOF | |
4654 | rm -f conftest.o conftest.obj | |
5213506e RW |
4655 | if { { ac_try="$ac_compile" |
4656 | case "(($ac_try" in | |
4657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4658 | *) ac_try_echo=$ac_try;; | |
4659 | esac | |
4660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4661 | $as_echo "$ac_try_echo"; } >&5 | |
4662 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4663 | ac_status=$? |
5213506e RW |
4664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4665 | test $ac_status = 0; }; then : | |
4666 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4667 | test -f "$ac_file" || continue; | |
1c710c3c | 4668 | case $ac_file in |
5213506e | 4669 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4670 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4671 | break;; | |
4672 | esac | |
4673 | done | |
4674 | else | |
5213506e | 4675 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4676 | sed 's/^/| /' conftest.$ac_ext >&5 |
4677 | ||
5213506e RW |
4678 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4679 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4680 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4681 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4682 | fi |
1c710c3c DJ |
4683 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4684 | fi | |
5213506e RW |
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4686 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4687 | OBJEXT=$ac_cv_objext |
4688 | ac_objext=$OBJEXT | |
5213506e RW |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4690 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4691 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4692 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4693 | else |
5213506e | 4694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4695 | /* end confdefs.h. */ |
4696 | ||
4697 | int | |
4698 | main () | |
4699 | { | |
4700 | #ifndef __GNUC__ | |
4701 | choke me | |
4702 | #endif | |
4703 | ||
4704 | ; | |
4705 | return 0; | |
4706 | } | |
4707 | _ACEOF | |
5213506e | 4708 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4709 | ac_compiler_gnu=yes |
4710 | else | |
5213506e | 4711 | ac_compiler_gnu=no |
1c710c3c | 4712 | fi |
5213506e | 4713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4714 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4715 | ||
4716 | fi | |
5213506e RW |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4718 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4719 | if test $ac_compiler_gnu = yes; then | |
4720 | GCC=yes | |
4721 | else | |
4722 | GCC= | |
4723 | fi | |
1c710c3c DJ |
4724 | ac_test_CFLAGS=${CFLAGS+set} |
4725 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4727 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4728 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4729 | $as_echo_n "(cached) " >&6 |
4730 | else | |
4731 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4732 | ac_c_werror_flag=yes | |
4733 | ac_cv_prog_cc_g=no | |
4734 | CFLAGS="-g" | |
4735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4736 | /* end confdefs.h. */ |
4737 | ||
4738 | int | |
4739 | main () | |
4740 | { | |
4741 | ||
4742 | ; | |
4743 | return 0; | |
4744 | } | |
4745 | _ACEOF | |
5213506e | 4746 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4747 | ac_cv_prog_cc_g=yes |
4748 | else | |
5213506e RW |
4749 | CFLAGS="" |
4750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4751 | /* end confdefs.h. */ | |
4752 | ||
4753 | int | |
4754 | main () | |
4755 | { | |
4756 | ||
4757 | ; | |
4758 | return 0; | |
4759 | } | |
4760 | _ACEOF | |
4761 | if ac_fn_c_try_compile "$LINENO"; then : | |
4762 | ||
4763 | else | |
4764 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4765 | CFLAGS="-g" | |
4766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4767 | /* end confdefs.h. */ | |
af71363e | 4768 | |
5213506e RW |
4769 | int |
4770 | main () | |
4771 | { | |
4772 | ||
4773 | ; | |
4774 | return 0; | |
4775 | } | |
4776 | _ACEOF | |
4777 | if ac_fn_c_try_compile "$LINENO"; then : | |
4778 | ac_cv_prog_cc_g=yes | |
4779 | fi | |
4780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4781 | fi |
5213506e | 4782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4783 | fi |
5213506e RW |
4784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4785 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4786 | fi | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4788 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4789 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4790 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4791 | elif test $ac_cv_prog_cc_g = yes; then |
4792 | if test "$GCC" = yes; then | |
4793 | CFLAGS="-g -O2" | |
4794 | else | |
4795 | CFLAGS="-g" | |
4796 | fi | |
4797 | else | |
4798 | if test "$GCC" = yes; then | |
4799 | CFLAGS="-O2" | |
4800 | else | |
4801 | CFLAGS= | |
4802 | fi | |
4803 | fi | |
5213506e RW |
4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4805 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4806 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4807 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4808 | else |
5213506e | 4809 | ac_cv_prog_cc_c89=no |
1c710c3c | 4810 | ac_save_CC=$CC |
5213506e | 4811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4812 | /* end confdefs.h. */ |
4813 | #include <stdarg.h> | |
4814 | #include <stdio.h> | |
22e05272 | 4815 | struct stat; |
1c710c3c DJ |
4816 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4817 | struct buf { int x; }; | |
4818 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4819 | static char *e (p, i) | |
4820 | char **p; | |
4821 | int i; | |
4822 | { | |
4823 | return p[i]; | |
4824 | } | |
4825 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4826 | { | |
4827 | char *s; | |
4828 | va_list v; | |
4829 | va_start (v,p); | |
4830 | s = g (p, va_arg (v,int)); | |
4831 | va_end (v); | |
4832 | return s; | |
4833 | } | |
4834 | ||
4835 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4836 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4837 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4838 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4839 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4840 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4841 | that's true only with -std. */ |
1c710c3c DJ |
4842 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4843 | ||
5213506e RW |
4844 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4845 | inside strings and character constants. */ | |
4846 | #define FOO(x) 'x' | |
4847 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4848 | ||
1c710c3c DJ |
4849 | int test (int i, double x); |
4850 | struct s1 {int (*f) (int a);}; | |
4851 | struct s2 {int (*f) (double a);}; | |
4852 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4853 | int argc; | |
4854 | char **argv; | |
4855 | int | |
4856 | main () | |
4857 | { | |
4858 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4859 | ; | |
4860 | return 0; | |
4861 | } | |
4862 | _ACEOF | |
5213506e RW |
4863 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4864 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4865 | do |
4866 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4867 | if ac_fn_c_try_compile "$LINENO"; then : |
4868 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4869 | fi |
5213506e RW |
4870 | rm -f core conftest.err conftest.$ac_objext |
4871 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4872 | done |
5213506e | 4873 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4874 | CC=$ac_save_CC |
4875 | ||
4876 | fi | |
5213506e RW |
4877 | # AC_CACHE_VAL |
4878 | case "x$ac_cv_prog_cc_c89" in | |
4879 | x) | |
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4881 | $as_echo "none needed" >&6; } ;; | |
4882 | xno) | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4884 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4885 | *) |
5213506e RW |
4886 | CC="$CC $ac_cv_prog_cc_c89" |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4888 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4889 | esac |
5213506e | 4890 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4891 | |
2aeb72e9 DD |
4892 | fi |
4893 | ||
2aeb72e9 DD |
4894 | ac_ext=c |
4895 | ac_cpp='$CPP $CPPFLAGS' | |
4896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4899 | ||
91743432 NC |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4901 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4902 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4903 | $as_echo_n "(cached) " >&6 | |
4904 | else | |
4905 | ac_cv_prog_cc_c99=no | |
4906 | ac_save_CC=$CC | |
4907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4908 | /* end confdefs.h. */ | |
4909 | #include <stdarg.h> | |
4910 | #include <stdbool.h> | |
4911 | #include <stdlib.h> | |
4912 | #include <wchar.h> | |
4913 | #include <stdio.h> | |
4914 | ||
4915 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4916 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4917 | #define showlist(...) puts (#__VA_ARGS__) | |
4918 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4919 | static void | |
4920 | test_varargs_macros (void) | |
4921 | { | |
4922 | int x = 1234; | |
4923 | int y = 5678; | |
4924 | debug ("Flag"); | |
4925 | debug ("X = %d\n", x); | |
4926 | showlist (The first, second, and third items.); | |
4927 | report (x>y, "x is %d but y is %d", x, y); | |
4928 | } | |
4929 | ||
4930 | // Check long long types. | |
4931 | #define BIG64 18446744073709551615ull | |
4932 | #define BIG32 4294967295ul | |
4933 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4934 | #if !BIG_OK | |
4935 | your preprocessor is broken; | |
4936 | #endif | |
4937 | #if BIG_OK | |
4938 | #else | |
4939 | your preprocessor is broken; | |
4940 | #endif | |
4941 | static long long int bignum = -9223372036854775807LL; | |
4942 | static unsigned long long int ubignum = BIG64; | |
4943 | ||
4944 | struct incomplete_array | |
4945 | { | |
4946 | int datasize; | |
4947 | double data[]; | |
4948 | }; | |
4949 | ||
4950 | struct named_init { | |
4951 | int number; | |
4952 | const wchar_t *name; | |
4953 | double average; | |
4954 | }; | |
4955 | ||
4956 | typedef const char *ccp; | |
4957 | ||
4958 | static inline int | |
4959 | test_restrict (ccp restrict text) | |
4960 | { | |
4961 | // See if C++-style comments work. | |
4962 | // Iterate through items via the restricted pointer. | |
4963 | // Also check for declarations in for loops. | |
4964 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4965 | continue; | |
4966 | return 0; | |
4967 | } | |
4968 | ||
4969 | // Check varargs and va_copy. | |
4970 | static void | |
4971 | test_varargs (const char *format, ...) | |
4972 | { | |
4973 | va_list args; | |
4974 | va_start (args, format); | |
4975 | va_list args_copy; | |
4976 | va_copy (args_copy, args); | |
4977 | ||
4978 | const char *str; | |
4979 | int number; | |
4980 | float fnumber; | |
4981 | ||
4982 | while (*format) | |
4983 | { | |
4984 | switch (*format++) | |
4985 | { | |
4986 | case 's': // string | |
4987 | str = va_arg (args_copy, const char *); | |
4988 | break; | |
4989 | case 'd': // int | |
4990 | number = va_arg (args_copy, int); | |
4991 | break; | |
4992 | case 'f': // float | |
4993 | fnumber = va_arg (args_copy, double); | |
4994 | break; | |
4995 | default: | |
4996 | break; | |
4997 | } | |
4998 | } | |
4999 | va_end (args_copy); | |
5000 | va_end (args); | |
5001 | } | |
5002 | ||
5003 | int | |
5004 | main () | |
5005 | { | |
5006 | ||
5007 | // Check bool. | |
5008 | _Bool success = false; | |
5009 | ||
5010 | // Check restrict. | |
5011 | if (test_restrict ("String literal") == 0) | |
5012 | success = true; | |
5013 | char *restrict newvar = "Another string"; | |
5014 | ||
5015 | // Check varargs. | |
5016 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5017 | test_varargs_macros (); | |
5018 | ||
5019 | // Check flexible array members. | |
5020 | struct incomplete_array *ia = | |
5021 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5022 | ia->datasize = 10; | |
5023 | for (int i = 0; i < ia->datasize; ++i) | |
5024 | ia->data[i] = i * 1.234; | |
5025 | ||
5026 | // Check named initializers. | |
5027 | struct named_init ni = { | |
5028 | .number = 34, | |
5029 | .name = L"Test wide string", | |
5030 | .average = 543.34343, | |
5031 | }; | |
5032 | ||
5033 | ni.number = 58; | |
5034 | ||
5035 | int dynamic_array[ni.number]; | |
5036 | dynamic_array[ni.number - 1] = 543; | |
5037 | ||
5038 | // work around unused variable warnings | |
5039 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5040 | || dynamic_array[ni.number - 1] != 543); | |
5041 | ||
5042 | ; | |
5043 | return 0; | |
5044 | } | |
5045 | _ACEOF | |
5046 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5047 | do | |
5048 | CC="$ac_save_CC $ac_arg" | |
5049 | if ac_fn_c_try_compile "$LINENO"; then : | |
5050 | ac_cv_prog_cc_c99=$ac_arg | |
5051 | fi | |
5052 | rm -f core conftest.err conftest.$ac_objext | |
5053 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5054 | done | |
5055 | rm -f conftest.$ac_ext | |
5056 | CC=$ac_save_CC | |
5057 | ||
5058 | fi | |
5059 | # AC_CACHE_VAL | |
5060 | case "x$ac_cv_prog_cc_c99" in | |
5061 | x) | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5063 | $as_echo "none needed" >&6; } ;; | |
5064 | xno) | |
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5066 | $as_echo "unsupported" >&6; } ;; | |
5067 | *) | |
5068 | CC="$CC $ac_cv_prog_cc_c99" | |
5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5070 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5071 | esac | |
5072 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5073 | ||
5074 | fi | |
5075 | ||
5076 | ||
5213506e | 5077 | ac_ext=cpp |
2aeb72e9 DD |
5078 | ac_cpp='$CXXCPP $CPPFLAGS' |
5079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5082 | if test -z "$CXX"; then |
5083 | if test -n "$CCC"; then | |
5084 | CXX=$CCC | |
5085 | else | |
5086 | if test -n "$ac_tool_prefix"; then | |
5087 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5088 | do |
5089 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5090 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5092 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5093 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5094 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5095 | else |
5096 | if test -n "$CXX"; then | |
5097 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5098 | else | |
5099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5100 | for as_dir in $PATH | |
5101 | do | |
5102 | IFS=$as_save_IFS | |
5103 | test -z "$as_dir" && as_dir=. | |
5213506e | 5104 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5106 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5108 | break 2 |
5109 | fi | |
5110 | done | |
5213506e RW |
5111 | done |
5112 | IFS=$as_save_IFS | |
55ffb5ed | 5113 | |
c3a86da9 DJ |
5114 | fi |
5115 | fi | |
5116 | CXX=$ac_cv_prog_CXX | |
5117 | if test -n "$CXX"; then | |
5213506e RW |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5119 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5120 | else |
5213506e RW |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5122 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5123 | fi |
5124 | ||
5213506e | 5125 | |
c3a86da9 DJ |
5126 | test -n "$CXX" && break |
5127 | done | |
5128 | fi | |
5129 | if test -z "$CXX"; then | |
5130 | ac_ct_CXX=$CXX | |
5213506e | 5131 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5132 | do |
5133 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5134 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5136 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5137 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5138 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5139 | else |
5140 | if test -n "$ac_ct_CXX"; then | |
5141 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5142 | else | |
5143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5144 | for as_dir in $PATH | |
5145 | do | |
5146 | IFS=$as_save_IFS | |
5147 | test -z "$as_dir" && as_dir=. | |
5213506e | 5148 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5150 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5152 | break 2 |
5153 | fi | |
5154 | done | |
5213506e RW |
5155 | done |
5156 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5157 | |
5158 | fi | |
5159 | fi | |
5160 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5161 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5163 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5164 | else |
5213506e RW |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5166 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5167 | fi |
5168 | ||
5213506e | 5169 | |
c3a86da9 DJ |
5170 | test -n "$ac_ct_CXX" && break |
5171 | done | |
c3a86da9 | 5172 | |
5213506e RW |
5173 | if test "x$ac_ct_CXX" = x; then |
5174 | CXX="g++" | |
5175 | else | |
5176 | case $cross_compiling:$ac_tool_warned in | |
5177 | yes:) | |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5180 | ac_tool_warned=yes ;; | |
5181 | esac | |
5182 | CXX=$ac_ct_CXX | |
5183 | fi | |
c3a86da9 DJ |
5184 | fi |
5185 | ||
5213506e RW |
5186 | fi |
5187 | fi | |
c3a86da9 | 5188 | # Provide some information about the compiler. |
5213506e RW |
5189 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5190 | set X $ac_compile | |
5191 | ac_compiler=$2 | |
5192 | for ac_option in --version -v -V -qversion; do | |
5193 | { { ac_try="$ac_compiler $ac_option >&5" | |
5194 | case "(($ac_try" in | |
5195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5196 | *) ac_try_echo=$ac_try;; | |
5197 | esac | |
5198 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5199 | $as_echo "$ac_try_echo"; } >&5 | |
5200 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5201 | ac_status=$? |
5213506e RW |
5202 | if test -s conftest.err; then |
5203 | sed '10a\ | |
5204 | ... rest of stderr output deleted ... | |
5205 | 10q' conftest.err >conftest.er1 | |
5206 | cat conftest.er1 >&5 | |
5213506e | 5207 | fi |
22e05272 | 5208 | rm -f conftest.er1 conftest.err |
5213506e RW |
5209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5210 | test $ac_status = 0; } | |
5211 | done | |
c3a86da9 | 5212 | |
5213506e RW |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5214 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5215 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5216 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5217 | else |
5213506e | 5218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5219 | /* end confdefs.h. */ |
5220 | ||
5221 | int | |
5222 | main () | |
5223 | { | |
5224 | #ifndef __GNUC__ | |
5225 | choke me | |
5226 | #endif | |
5227 | ||
5228 | ; | |
5229 | return 0; | |
5230 | } | |
5231 | _ACEOF | |
5213506e | 5232 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5233 | ac_compiler_gnu=yes |
5234 | else | |
5213506e | 5235 | ac_compiler_gnu=no |
c3a86da9 | 5236 | fi |
5213506e | 5237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5238 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5239 | ||
5240 | fi | |
5213506e RW |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5242 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5243 | if test $ac_compiler_gnu = yes; then | |
5244 | GXX=yes | |
5245 | else | |
5246 | GXX= | |
5247 | fi | |
c3a86da9 DJ |
5248 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5249 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5251 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5252 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5253 | $as_echo_n "(cached) " >&6 |
5254 | else | |
5255 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5256 | ac_cxx_werror_flag=yes | |
5257 | ac_cv_prog_cxx_g=no | |
5258 | CXXFLAGS="-g" | |
5259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5260 | /* end confdefs.h. */ |
5261 | ||
5262 | int | |
5263 | main () | |
5264 | { | |
5265 | ||
5266 | ; | |
5267 | return 0; | |
5268 | } | |
5269 | _ACEOF | |
5213506e | 5270 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5271 | ac_cv_prog_cxx_g=yes |
5272 | else | |
5213506e RW |
5273 | CXXFLAGS="" |
5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5275 | /* end confdefs.h. */ |
5213506e | 5276 | |
c3a86da9 DJ |
5277 | int |
5278 | main () | |
5279 | { | |
5213506e | 5280 | |
c3a86da9 DJ |
5281 | ; |
5282 | return 0; | |
5283 | } | |
5284 | _ACEOF | |
5213506e | 5285 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5286 | |
5213506e RW |
5287 | else |
5288 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5289 | CXXFLAGS="-g" | |
5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5291 | /* end confdefs.h. */ |
5213506e | 5292 | |
c3a86da9 DJ |
5293 | int |
5294 | main () | |
5295 | { | |
5213506e | 5296 | |
c3a86da9 DJ |
5297 | ; |
5298 | return 0; | |
5299 | } | |
5300 | _ACEOF | |
5213506e RW |
5301 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5302 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5303 | fi |
5213506e RW |
5304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5305 | fi | |
5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5307 | fi | |
5308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5309 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5310 | fi | |
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5312 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5313 | if test "$ac_test_CXXFLAGS" = set; then | |
5314 | CXXFLAGS=$ac_save_CXXFLAGS | |
5315 | elif test $ac_cv_prog_cxx_g = yes; then | |
5316 | if test "$GXX" = yes; then | |
5317 | CXXFLAGS="-g -O2" | |
5318 | else | |
5319 | CXXFLAGS="-g" | |
5320 | fi | |
5321 | else | |
5322 | if test "$GXX" = yes; then | |
5323 | CXXFLAGS="-O2" | |
5324 | else | |
5325 | CXXFLAGS= | |
5326 | fi | |
c3a86da9 | 5327 | fi |
c3a86da9 DJ |
5328 | ac_ext=c |
5329 | ac_cpp='$CPP $CPPFLAGS' | |
5330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5333 | ||
5334 | ||
5335 | # We must set the default linker to the linker used by gcc for the correct | |
5336 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5337 | # set the LD default to the ld used by gcc. | |
5338 | if test -z "$LD"; then | |
5339 | if test "$GCC" = yes; then | |
5340 | case $build in | |
5341 | *-*-mingw*) | |
5342 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5343 | *) | |
5344 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5345 | esac | |
5346 | case $gcc_prog_ld in | |
5347 | # Accept absolute paths. | |
5348 | [\\/]* | [A-Za-z]:[\\/]*) | |
5349 | LD="$gcc_prog_ld" ;; | |
5350 | esac | |
5351 | fi | |
23f6b2f9 PB |
5352 | fi |
5353 | ||
0b21f5d3 EB |
5354 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5355 | have_static_libs=no | |
5356 | if test "$GCC" = yes; then | |
5357 | saved_LDFLAGS="$LDFLAGS" | |
5358 | ||
5359 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5361 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5362 | ac_ext=cpp | |
5363 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5364 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5365 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5366 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5367 | ||
5368 | ||
5369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5370 | /* end confdefs.h. */ | |
0d6414b2 EB |
5371 | |
5372 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5373 | #error -static-libstdc++ not implemented | |
5374 | #endif | |
0b21f5d3 EB |
5375 | int main() {} |
5376 | _ACEOF | |
5377 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5379 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5380 | else | |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5382 | $as_echo "no" >&6; } | |
5383 | fi | |
5384 | rm -f core conftest.err conftest.$ac_objext \ | |
5385 | conftest$ac_exeext conftest.$ac_ext | |
5386 | ac_ext=c | |
5387 | ac_cpp='$CPP $CPPFLAGS' | |
5388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5391 | ||
5392 | ||
5393 | LDFLAGS="$saved_LDFLAGS" | |
5394 | fi | |
5395 | ||
23f6b2f9 PB |
5396 | |
5397 | ||
55ffb5ed | 5398 | |
1c710c3c DJ |
5399 | if test -n "$ac_tool_prefix"; then |
5400 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5401 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5403 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5404 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5405 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5406 | else |
5407 | if test -n "$GNATBIND"; then | |
5408 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5409 | else | |
1c710c3c DJ |
5410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5411 | for as_dir in $PATH | |
5412 | do | |
5413 | IFS=$as_save_IFS | |
5414 | test -z "$as_dir" && as_dir=. | |
5213506e | 5415 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5417 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5419 | break 2 |
5420 | fi | |
5421 | done | |
5213506e RW |
5422 | done |
5423 | IFS=$as_save_IFS | |
1c710c3c | 5424 | |
55ffb5ed NN |
5425 | fi |
5426 | fi | |
1c710c3c | 5427 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5428 | if test -n "$GNATBIND"; then |
5213506e RW |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5430 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5431 | else |
5213506e RW |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5433 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5434 | fi |
5435 | ||
5213506e | 5436 | |
1c710c3c | 5437 | fi |
55ffb5ed | 5438 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5439 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5440 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5441 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5443 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5444 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5445 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5446 | else |
1c710c3c DJ |
5447 | if test -n "$ac_ct_GNATBIND"; then |
5448 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5449 | else |
1c710c3c DJ |
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5451 | for as_dir in $PATH | |
5452 | do | |
5453 | IFS=$as_save_IFS | |
5454 | test -z "$as_dir" && as_dir=. | |
5213506e | 5455 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5456 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5457 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5459 | break 2 |
5460 | fi | |
5461 | done | |
5213506e RW |
5462 | done |
5463 | IFS=$as_save_IFS | |
1c710c3c | 5464 | |
55ffb5ed NN |
5465 | fi |
5466 | fi | |
1c710c3c DJ |
5467 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5468 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5470 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5471 | else |
5213506e RW |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5473 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5474 | fi |
5475 | ||
5213506e RW |
5476 | if test "x$ac_ct_GNATBIND" = x; then |
5477 | GNATBIND="no" | |
5478 | else | |
5479 | case $cross_compiling:$ac_tool_warned in | |
5480 | yes:) | |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5482 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5483 | ac_tool_warned=yes ;; | |
5484 | esac | |
5485 | GNATBIND=$ac_ct_GNATBIND | |
5486 | fi | |
55ffb5ed | 5487 | else |
1c710c3c | 5488 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5489 | fi |
5490 | ||
1c710c3c DJ |
5491 | if test -n "$ac_tool_prefix"; then |
5492 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5493 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5495 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5496 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5497 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5498 | else |
5499 | if test -n "$GNATMAKE"; then | |
5500 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5501 | else | |
1c710c3c DJ |
5502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5503 | for as_dir in $PATH | |
5504 | do | |
5505 | IFS=$as_save_IFS | |
5506 | test -z "$as_dir" && as_dir=. | |
5213506e | 5507 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5509 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5511 | break 2 |
5512 | fi | |
5513 | done | |
5213506e RW |
5514 | done |
5515 | IFS=$as_save_IFS | |
1c710c3c | 5516 | |
5305be7e RG |
5517 | fi |
5518 | fi | |
1c710c3c | 5519 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5520 | if test -n "$GNATMAKE"; then |
5213506e RW |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5522 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5523 | else |
5213506e RW |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5525 | $as_echo "no" >&6; } | |
5305be7e RG |
5526 | fi |
5527 | ||
5213506e | 5528 | |
1c710c3c | 5529 | fi |
5305be7e | 5530 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5531 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5532 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5533 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5535 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5536 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5537 | $as_echo_n "(cached) " >&6 |
5305be7e | 5538 | else |
1c710c3c DJ |
5539 | if test -n "$ac_ct_GNATMAKE"; then |
5540 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5541 | else |
1c710c3c DJ |
5542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5543 | for as_dir in $PATH | |
5544 | do | |
5545 | IFS=$as_save_IFS | |
5546 | test -z "$as_dir" && as_dir=. | |
5213506e | 5547 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5549 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5551 | break 2 |
5552 | fi | |
5553 | done | |
5213506e RW |
5554 | done |
5555 | IFS=$as_save_IFS | |
1c710c3c | 5556 | |
5305be7e RG |
5557 | fi |
5558 | fi | |
1c710c3c DJ |
5559 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5560 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5562 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5563 | else |
5213506e RW |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5565 | $as_echo "no" >&6; } | |
5305be7e RG |
5566 | fi |
5567 | ||
5213506e RW |
5568 | if test "x$ac_ct_GNATMAKE" = x; then |
5569 | GNATMAKE="no" | |
5570 | else | |
5571 | case $cross_compiling:$ac_tool_warned in | |
5572 | yes:) | |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5574 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5575 | ac_tool_warned=yes ;; | |
5576 | esac | |
5577 | GNATMAKE=$ac_ct_GNATMAKE | |
5578 | fi | |
5305be7e | 5579 | else |
1c710c3c | 5580 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5581 | fi |
5582 | ||
5213506e RW |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5584 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5585 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5586 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5587 | else |
5588 | cat >conftest.adb <<EOF | |
5589 | procedure conftest is begin null; end conftest; | |
5590 | EOF | |
5591 | acx_cv_cc_gcc_supports_ada=no | |
5592 | # There is a bug in old released versions of GCC which causes the | |
5593 | # driver to exit successfully when the appropriate language module | |
5594 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5595 | # Therefore we must check for the error message as well as an | |
5596 | # unsuccessful exit. | |
1db673ca RO |
5597 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5598 | # given a .adb file, but produce no object file. So we must check | |
5599 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5600 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5601 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5602 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5603 | fi |
5604 | rm -f conftest.* | |
5605 | fi | |
5213506e RW |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5607 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5608 | |
7cb62ef1 | 5609 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5610 | have_gnat=yes |
5611 | else | |
5612 | have_gnat=no | |
5613 | fi | |
5614 | ||
5213506e RW |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5616 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5617 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5618 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5619 | else |
5620 | echo abfoo >t1 | |
5621 | echo cdfoo >t2 | |
b55e6680 | 5622 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5623 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5624 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5625 | : | |
5626 | else | |
5627 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5628 | fi | |
5629 | fi | |
a76494aa PB |
5630 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5631 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5632 | : |
a76494aa PB |
5633 | else |
5634 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5635 | fi | |
5636 | fi | |
5637 | rm t1 t2 | |
5638 | ||
5639 | fi | |
5213506e RW |
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5641 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5642 | do_compare="$gcc_cv_prog_cmp_skip" |
5643 | ||
5644 | ||
55ffb5ed | 5645 | |
ff3ac0f4 ILT |
5646 | # Check whether --enable-bootstrap was given. |
5647 | if test "${enable_bootstrap+set}" = set; then : | |
5648 | enableval=$enable_bootstrap; | |
5649 | else | |
5650 | enable_bootstrap=default | |
5651 | fi | |
5652 | ||
5653 | ||
5654 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5655 | if test -r $srcdir/gcc/configure; then |
5656 | have_compiler=yes | |
5657 | else | |
5658 | have_compiler=no | |
5659 | fi | |
ff3ac0f4 ILT |
5660 | |
5661 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5662 | *:*:*:no) ;; | |
5663 | ||
5664 | # Default behavior. Enable bootstrap if we have a compiler | |
5665 | # and we are in a native configuration. | |
5666 | yes:$build:$build:default) | |
5667 | enable_bootstrap=yes ;; | |
5668 | ||
5669 | *:*:*:default) | |
5670 | enable_bootstrap=no ;; | |
5671 | ||
5672 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5673 | yes:$build:$build:yes) | |
5674 | ;; | |
5675 | ||
5676 | # Other configurations, but we have a compiler. Assume the user knows | |
5677 | # what he's doing. | |
5678 | yes:*:*:yes) | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5680 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5681 | ;; | |
5682 | ||
5683 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5684 | no:*:*:yes) | |
22e05272 | 5685 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5686 | |
5687 | # Fail if wrong command line | |
5688 | *) | |
22e05272 | 5689 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5690 | ;; |
5691 | esac | |
5692 | ||
5329b59a | 5693 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5694 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5695 | # require C++11 (or higher). | |
46070488 | 5696 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5697 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5698 | elif test "$have_compiler" = yes; then |
5699 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5700 | ac_ext=cpp | |
5701 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5702 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5703 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5704 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5705 | ac_success=no | |
5706 | ||
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5708 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5709 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5710 | $as_echo_n "(cached) " >&6 | |
5711 | else | |
5712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5713 | /* end confdefs.h. */ | |
5714 | ||
5715 | ||
5716 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5717 | // Hopefully, this will speed up the test. | |
5718 | ||
5719 | #ifndef __cplusplus | |
5720 | ||
5721 | #error "This is not a C++ compiler" | |
5722 | ||
5723 | #elif __cplusplus < 201103L | |
5724 | ||
5725 | #error "This is not a C++11 compiler" | |
5726 | ||
5727 | #else | |
5728 | ||
5729 | namespace cxx11 | |
5730 | { | |
5731 | ||
5732 | namespace test_static_assert | |
5733 | { | |
5734 | ||
5735 | template <typename T> | |
5736 | struct check | |
5737 | { | |
5738 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5739 | }; | |
5740 | ||
5741 | } | |
5742 | ||
5743 | namespace test_final_override | |
5744 | { | |
5745 | ||
5746 | struct Base | |
5747 | { | |
5748 | virtual ~Base() {} | |
5749 | virtual void f() {} | |
5750 | }; | |
5751 | ||
5752 | struct Derived : public Base | |
5753 | { | |
5754 | virtual ~Derived() override {} | |
5755 | virtual void f() override {} | |
5756 | }; | |
5757 | ||
5758 | } | |
5759 | ||
5760 | namespace test_double_right_angle_brackets | |
5761 | { | |
5762 | ||
5763 | template < typename T > | |
5764 | struct check {}; | |
5765 | ||
5766 | typedef check<void> single_type; | |
5767 | typedef check<check<void>> double_type; | |
5768 | typedef check<check<check<void>>> triple_type; | |
5769 | typedef check<check<check<check<void>>>> quadruple_type; | |
5770 | ||
5771 | } | |
5772 | ||
5773 | namespace test_decltype | |
5774 | { | |
5775 | ||
5776 | int | |
5777 | f() | |
5778 | { | |
5779 | int a = 1; | |
5780 | decltype(a) b = 2; | |
5781 | return a + b; | |
5782 | } | |
5783 | ||
5784 | } | |
5785 | ||
5786 | namespace test_type_deduction | |
5787 | { | |
5788 | ||
5789 | template < typename T1, typename T2 > | |
5790 | struct is_same | |
5791 | { | |
5792 | static const bool value = false; | |
5793 | }; | |
5794 | ||
5795 | template < typename T > | |
5796 | struct is_same<T, T> | |
5797 | { | |
5798 | static const bool value = true; | |
5799 | }; | |
5800 | ||
5801 | template < typename T1, typename T2 > | |
5802 | auto | |
5803 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5804 | { | |
5805 | return a1 + a2; | |
5806 | } | |
5807 | ||
5808 | int | |
5809 | test(const int c, volatile int v) | |
5810 | { | |
5811 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5812 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5813 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5814 | auto ac = c; | |
5815 | auto av = v; | |
5816 | auto sumi = ac + av + 'x'; | |
5817 | auto sumf = ac + av + 1.0; | |
5818 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5819 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5820 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5821 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5822 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5823 | return (sumf > 0.0) ? sumi : add(c, v); | |
5824 | } | |
5825 | ||
5826 | } | |
5827 | ||
5828 | namespace test_noexcept | |
5829 | { | |
5830 | ||
5831 | int f() { return 0; } | |
5832 | int g() noexcept { return 0; } | |
5833 | ||
5834 | static_assert(noexcept(f()) == false, ""); | |
5835 | static_assert(noexcept(g()) == true, ""); | |
5836 | ||
5837 | } | |
5838 | ||
5839 | namespace test_constexpr | |
5840 | { | |
5841 | ||
5842 | template < typename CharT > | |
5843 | unsigned long constexpr | |
5844 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5845 | { | |
5846 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5847 | } | |
5848 | ||
5849 | template < typename CharT > | |
5850 | unsigned long constexpr | |
5851 | strlen_c(const CharT *const s) noexcept | |
5852 | { | |
5853 | return strlen_c_r(s, 0UL); | |
5854 | } | |
5855 | ||
5856 | static_assert(strlen_c("") == 0UL, ""); | |
5857 | static_assert(strlen_c("1") == 1UL, ""); | |
5858 | static_assert(strlen_c("example") == 7UL, ""); | |
5859 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5860 | ||
5861 | } | |
5862 | ||
5863 | namespace test_rvalue_references | |
5864 | { | |
5865 | ||
5866 | template < int N > | |
5867 | struct answer | |
5868 | { | |
5869 | static constexpr int value = N; | |
5870 | }; | |
5871 | ||
5872 | answer<1> f(int&) { return answer<1>(); } | |
5873 | answer<2> f(const int&) { return answer<2>(); } | |
5874 | answer<3> f(int&&) { return answer<3>(); } | |
5875 | ||
5876 | void | |
5877 | test() | |
5878 | { | |
5879 | int i = 0; | |
5880 | const int c = 0; | |
5881 | static_assert(decltype(f(i))::value == 1, ""); | |
5882 | static_assert(decltype(f(c))::value == 2, ""); | |
5883 | static_assert(decltype(f(0))::value == 3, ""); | |
5884 | } | |
5885 | ||
5886 | } | |
5887 | ||
5888 | namespace test_uniform_initialization | |
5889 | { | |
5890 | ||
5891 | struct test | |
5892 | { | |
5893 | static const int zero {}; | |
5894 | static const int one {1}; | |
5895 | }; | |
5896 | ||
5897 | static_assert(test::zero == 0, ""); | |
5898 | static_assert(test::one == 1, ""); | |
5899 | ||
5900 | } | |
5901 | ||
5902 | namespace test_lambdas | |
5903 | { | |
5904 | ||
5905 | void | |
5906 | test1() | |
5907 | { | |
5908 | auto lambda1 = [](){}; | |
5909 | auto lambda2 = lambda1; | |
5910 | lambda1(); | |
5911 | lambda2(); | |
5912 | } | |
5913 | ||
5914 | int | |
5915 | test2() | |
5916 | { | |
5917 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
5918 | auto b = []() -> int { return '0'; }(); | |
5919 | auto c = [=](){ return a + b; }(); | |
5920 | auto d = [&](){ return c; }(); | |
5921 | auto e = [a, &b](int x) mutable { | |
5922 | const auto identity = [](int y){ return y; }; | |
5923 | for (auto i = 0; i < a; ++i) | |
5924 | a += b--; | |
5925 | return x + identity(a + b); | |
5926 | }(0); | |
5927 | return a + b + c + d + e; | |
5928 | } | |
5929 | ||
5930 | int | |
5931 | test3() | |
5932 | { | |
5933 | const auto nullary = [](){ return 0; }; | |
5934 | const auto unary = [](int x){ return x; }; | |
5935 | using nullary_t = decltype(nullary); | |
5936 | using unary_t = decltype(unary); | |
5937 | const auto higher1st = [](nullary_t f){ return f(); }; | |
5938 | const auto higher2nd = [unary](nullary_t f1){ | |
5939 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
5940 | }; | |
5941 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
5942 | } | |
5943 | ||
5944 | } | |
5945 | ||
5946 | namespace test_variadic_templates | |
5947 | { | |
5948 | ||
5949 | template <int...> | |
5950 | struct sum; | |
5951 | ||
5952 | template <int N0, int... N1toN> | |
5953 | struct sum<N0, N1toN...> | |
5954 | { | |
5955 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
5956 | }; | |
5957 | ||
5958 | template <> | |
5959 | struct sum<> | |
5960 | { | |
5961 | static constexpr auto value = 0; | |
5962 | }; | |
5963 | ||
5964 | static_assert(sum<>::value == 0, ""); | |
5965 | static_assert(sum<1>::value == 1, ""); | |
5966 | static_assert(sum<23>::value == 23, ""); | |
5967 | static_assert(sum<1, 2>::value == 3, ""); | |
5968 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
5969 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
5970 | ||
5971 | } | |
5972 | ||
5973 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
5974 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
5975 | // because of this. | |
5976 | namespace test_template_alias_sfinae | |
5977 | { | |
5978 | ||
5979 | struct foo {}; | |
5980 | ||
5981 | template<typename T> | |
5982 | using member = typename T::member_type; | |
5983 | ||
5984 | template<typename T> | |
5985 | void func(...) {} | |
5986 | ||
5987 | template<typename T> | |
5988 | void func(member<T>*) {} | |
5989 | ||
5990 | void test(); | |
5991 | ||
5992 | void test() { func<foo>(0); } | |
5993 | ||
5994 | } | |
5995 | ||
5996 | } // namespace cxx11 | |
5997 | ||
5998 | #endif // __cplusplus >= 201103L | |
5999 | ||
6000 | ||
6001 | ||
6002 | _ACEOF | |
6003 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6004 | ax_cv_cxx_compile_cxx11=yes | |
6005 | else | |
6006 | ax_cv_cxx_compile_cxx11=no | |
6007 | fi | |
6008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6009 | fi | |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6011 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6012 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6013 | ac_success=yes | |
6014 | fi | |
6015 | ||
6016 | if test x$ac_success = xno; then | |
6017 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6018 | switch="-std=gnu++${alternative}" | |
6019 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6021 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6022 | if eval \${$cachevar+:} false; then : | |
6023 | $as_echo_n "(cached) " >&6 | |
6024 | else | |
6025 | ac_save_CXX="$CXX" | |
6026 | CXX="$CXX $switch" | |
6027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6028 | /* end confdefs.h. */ | |
6029 | ||
6030 | ||
6031 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6032 | // Hopefully, this will speed up the test. | |
6033 | ||
6034 | #ifndef __cplusplus | |
6035 | ||
6036 | #error "This is not a C++ compiler" | |
6037 | ||
6038 | #elif __cplusplus < 201103L | |
6039 | ||
6040 | #error "This is not a C++11 compiler" | |
6041 | ||
6042 | #else | |
6043 | ||
6044 | namespace cxx11 | |
6045 | { | |
6046 | ||
6047 | namespace test_static_assert | |
6048 | { | |
6049 | ||
6050 | template <typename T> | |
6051 | struct check | |
6052 | { | |
6053 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6054 | }; | |
6055 | ||
6056 | } | |
6057 | ||
6058 | namespace test_final_override | |
6059 | { | |
6060 | ||
6061 | struct Base | |
6062 | { | |
6063 | virtual ~Base() {} | |
6064 | virtual void f() {} | |
6065 | }; | |
6066 | ||
6067 | struct Derived : public Base | |
6068 | { | |
6069 | virtual ~Derived() override {} | |
6070 | virtual void f() override {} | |
6071 | }; | |
6072 | ||
6073 | } | |
6074 | ||
6075 | namespace test_double_right_angle_brackets | |
6076 | { | |
6077 | ||
6078 | template < typename T > | |
6079 | struct check {}; | |
6080 | ||
6081 | typedef check<void> single_type; | |
6082 | typedef check<check<void>> double_type; | |
6083 | typedef check<check<check<void>>> triple_type; | |
6084 | typedef check<check<check<check<void>>>> quadruple_type; | |
6085 | ||
6086 | } | |
6087 | ||
6088 | namespace test_decltype | |
6089 | { | |
6090 | ||
6091 | int | |
6092 | f() | |
6093 | { | |
6094 | int a = 1; | |
6095 | decltype(a) b = 2; | |
6096 | return a + b; | |
6097 | } | |
6098 | ||
6099 | } | |
6100 | ||
6101 | namespace test_type_deduction | |
6102 | { | |
6103 | ||
6104 | template < typename T1, typename T2 > | |
6105 | struct is_same | |
6106 | { | |
6107 | static const bool value = false; | |
6108 | }; | |
6109 | ||
6110 | template < typename T > | |
6111 | struct is_same<T, T> | |
6112 | { | |
6113 | static const bool value = true; | |
6114 | }; | |
6115 | ||
6116 | template < typename T1, typename T2 > | |
6117 | auto | |
6118 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6119 | { | |
6120 | return a1 + a2; | |
6121 | } | |
6122 | ||
6123 | int | |
6124 | test(const int c, volatile int v) | |
6125 | { | |
6126 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6127 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6128 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6129 | auto ac = c; | |
6130 | auto av = v; | |
6131 | auto sumi = ac + av + 'x'; | |
6132 | auto sumf = ac + av + 1.0; | |
6133 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6134 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6135 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6136 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6137 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6138 | return (sumf > 0.0) ? sumi : add(c, v); | |
6139 | } | |
6140 | ||
6141 | } | |
6142 | ||
6143 | namespace test_noexcept | |
6144 | { | |
6145 | ||
6146 | int f() { return 0; } | |
6147 | int g() noexcept { return 0; } | |
6148 | ||
6149 | static_assert(noexcept(f()) == false, ""); | |
6150 | static_assert(noexcept(g()) == true, ""); | |
6151 | ||
6152 | } | |
6153 | ||
6154 | namespace test_constexpr | |
6155 | { | |
6156 | ||
6157 | template < typename CharT > | |
6158 | unsigned long constexpr | |
6159 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6160 | { | |
6161 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6162 | } | |
6163 | ||
6164 | template < typename CharT > | |
6165 | unsigned long constexpr | |
6166 | strlen_c(const CharT *const s) noexcept | |
6167 | { | |
6168 | return strlen_c_r(s, 0UL); | |
6169 | } | |
6170 | ||
6171 | static_assert(strlen_c("") == 0UL, ""); | |
6172 | static_assert(strlen_c("1") == 1UL, ""); | |
6173 | static_assert(strlen_c("example") == 7UL, ""); | |
6174 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6175 | ||
6176 | } | |
6177 | ||
6178 | namespace test_rvalue_references | |
6179 | { | |
6180 | ||
6181 | template < int N > | |
6182 | struct answer | |
6183 | { | |
6184 | static constexpr int value = N; | |
6185 | }; | |
6186 | ||
6187 | answer<1> f(int&) { return answer<1>(); } | |
6188 | answer<2> f(const int&) { return answer<2>(); } | |
6189 | answer<3> f(int&&) { return answer<3>(); } | |
6190 | ||
6191 | void | |
6192 | test() | |
6193 | { | |
6194 | int i = 0; | |
6195 | const int c = 0; | |
6196 | static_assert(decltype(f(i))::value == 1, ""); | |
6197 | static_assert(decltype(f(c))::value == 2, ""); | |
6198 | static_assert(decltype(f(0))::value == 3, ""); | |
6199 | } | |
6200 | ||
6201 | } | |
6202 | ||
6203 | namespace test_uniform_initialization | |
6204 | { | |
6205 | ||
6206 | struct test | |
6207 | { | |
6208 | static const int zero {}; | |
6209 | static const int one {1}; | |
6210 | }; | |
6211 | ||
6212 | static_assert(test::zero == 0, ""); | |
6213 | static_assert(test::one == 1, ""); | |
6214 | ||
6215 | } | |
6216 | ||
6217 | namespace test_lambdas | |
6218 | { | |
6219 | ||
6220 | void | |
6221 | test1() | |
6222 | { | |
6223 | auto lambda1 = [](){}; | |
6224 | auto lambda2 = lambda1; | |
6225 | lambda1(); | |
6226 | lambda2(); | |
6227 | } | |
6228 | ||
6229 | int | |
6230 | test2() | |
6231 | { | |
6232 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6233 | auto b = []() -> int { return '0'; }(); | |
6234 | auto c = [=](){ return a + b; }(); | |
6235 | auto d = [&](){ return c; }(); | |
6236 | auto e = [a, &b](int x) mutable { | |
6237 | const auto identity = [](int y){ return y; }; | |
6238 | for (auto i = 0; i < a; ++i) | |
6239 | a += b--; | |
6240 | return x + identity(a + b); | |
6241 | }(0); | |
6242 | return a + b + c + d + e; | |
6243 | } | |
6244 | ||
6245 | int | |
6246 | test3() | |
6247 | { | |
6248 | const auto nullary = [](){ return 0; }; | |
6249 | const auto unary = [](int x){ return x; }; | |
6250 | using nullary_t = decltype(nullary); | |
6251 | using unary_t = decltype(unary); | |
6252 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6253 | const auto higher2nd = [unary](nullary_t f1){ | |
6254 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6255 | }; | |
6256 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6257 | } | |
6258 | ||
6259 | } | |
6260 | ||
6261 | namespace test_variadic_templates | |
6262 | { | |
6263 | ||
6264 | template <int...> | |
6265 | struct sum; | |
6266 | ||
6267 | template <int N0, int... N1toN> | |
6268 | struct sum<N0, N1toN...> | |
6269 | { | |
6270 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6271 | }; | |
6272 | ||
6273 | template <> | |
6274 | struct sum<> | |
6275 | { | |
6276 | static constexpr auto value = 0; | |
6277 | }; | |
6278 | ||
6279 | static_assert(sum<>::value == 0, ""); | |
6280 | static_assert(sum<1>::value == 1, ""); | |
6281 | static_assert(sum<23>::value == 23, ""); | |
6282 | static_assert(sum<1, 2>::value == 3, ""); | |
6283 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6284 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6285 | ||
6286 | } | |
6287 | ||
6288 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6289 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6290 | // because of this. | |
6291 | namespace test_template_alias_sfinae | |
6292 | { | |
6293 | ||
6294 | struct foo {}; | |
6295 | ||
6296 | template<typename T> | |
6297 | using member = typename T::member_type; | |
6298 | ||
6299 | template<typename T> | |
6300 | void func(...) {} | |
6301 | ||
6302 | template<typename T> | |
6303 | void func(member<T>*) {} | |
6304 | ||
6305 | void test(); | |
6306 | ||
6307 | void test() { func<foo>(0); } | |
6308 | ||
6309 | } | |
6310 | ||
6311 | } // namespace cxx11 | |
6312 | ||
6313 | #endif // __cplusplus >= 201103L | |
6314 | ||
6315 | ||
6316 | ||
6317 | _ACEOF | |
6318 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6319 | eval $cachevar=yes | |
6320 | else | |
6321 | eval $cachevar=no | |
6322 | fi | |
6323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6324 | CXX="$ac_save_CXX" | |
6325 | fi | |
6326 | eval ac_res=\$$cachevar | |
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6328 | $as_echo "$ac_res" >&6; } | |
6329 | if eval test x\$$cachevar = xyes; then | |
6330 | CXX="$CXX $switch" | |
6331 | if test -n "$CXXCPP" ; then | |
6332 | CXXCPP="$CXXCPP $switch" | |
6333 | fi | |
6334 | ac_success=yes | |
6335 | break | |
6336 | fi | |
6337 | done | |
6338 | fi | |
6339 | ||
6340 | if test x$ac_success = xno; then | |
6341 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6342 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6343 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6345 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6346 | if eval \${$cachevar+:} false; then : | |
6347 | $as_echo_n "(cached) " >&6 | |
6348 | else | |
6349 | ac_save_CXX="$CXX" | |
6350 | CXX="$CXX $switch" | |
6351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6352 | /* end confdefs.h. */ | |
6353 | ||
6354 | ||
6355 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6356 | // Hopefully, this will speed up the test. | |
6357 | ||
6358 | #ifndef __cplusplus | |
6359 | ||
6360 | #error "This is not a C++ compiler" | |
6361 | ||
6362 | #elif __cplusplus < 201103L | |
6363 | ||
6364 | #error "This is not a C++11 compiler" | |
6365 | ||
6366 | #else | |
6367 | ||
6368 | namespace cxx11 | |
6369 | { | |
6370 | ||
6371 | namespace test_static_assert | |
6372 | { | |
6373 | ||
6374 | template <typename T> | |
6375 | struct check | |
6376 | { | |
6377 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6378 | }; | |
6379 | ||
6380 | } | |
6381 | ||
6382 | namespace test_final_override | |
6383 | { | |
6384 | ||
6385 | struct Base | |
6386 | { | |
6387 | virtual ~Base() {} | |
6388 | virtual void f() {} | |
6389 | }; | |
6390 | ||
6391 | struct Derived : public Base | |
6392 | { | |
6393 | virtual ~Derived() override {} | |
6394 | virtual void f() override {} | |
6395 | }; | |
6396 | ||
6397 | } | |
6398 | ||
6399 | namespace test_double_right_angle_brackets | |
6400 | { | |
6401 | ||
6402 | template < typename T > | |
6403 | struct check {}; | |
6404 | ||
6405 | typedef check<void> single_type; | |
6406 | typedef check<check<void>> double_type; | |
6407 | typedef check<check<check<void>>> triple_type; | |
6408 | typedef check<check<check<check<void>>>> quadruple_type; | |
6409 | ||
6410 | } | |
6411 | ||
6412 | namespace test_decltype | |
6413 | { | |
6414 | ||
6415 | int | |
6416 | f() | |
6417 | { | |
6418 | int a = 1; | |
6419 | decltype(a) b = 2; | |
6420 | return a + b; | |
6421 | } | |
6422 | ||
6423 | } | |
6424 | ||
6425 | namespace test_type_deduction | |
6426 | { | |
6427 | ||
6428 | template < typename T1, typename T2 > | |
6429 | struct is_same | |
6430 | { | |
6431 | static const bool value = false; | |
6432 | }; | |
6433 | ||
6434 | template < typename T > | |
6435 | struct is_same<T, T> | |
6436 | { | |
6437 | static const bool value = true; | |
6438 | }; | |
6439 | ||
6440 | template < typename T1, typename T2 > | |
6441 | auto | |
6442 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6443 | { | |
6444 | return a1 + a2; | |
6445 | } | |
6446 | ||
6447 | int | |
6448 | test(const int c, volatile int v) | |
6449 | { | |
6450 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6451 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6452 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6453 | auto ac = c; | |
6454 | auto av = v; | |
6455 | auto sumi = ac + av + 'x'; | |
6456 | auto sumf = ac + av + 1.0; | |
6457 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6458 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6459 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6460 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6461 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6462 | return (sumf > 0.0) ? sumi : add(c, v); | |
6463 | } | |
6464 | ||
6465 | } | |
6466 | ||
6467 | namespace test_noexcept | |
6468 | { | |
6469 | ||
6470 | int f() { return 0; } | |
6471 | int g() noexcept { return 0; } | |
6472 | ||
6473 | static_assert(noexcept(f()) == false, ""); | |
6474 | static_assert(noexcept(g()) == true, ""); | |
6475 | ||
6476 | } | |
6477 | ||
6478 | namespace test_constexpr | |
6479 | { | |
6480 | ||
6481 | template < typename CharT > | |
6482 | unsigned long constexpr | |
6483 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6484 | { | |
6485 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6486 | } | |
6487 | ||
6488 | template < typename CharT > | |
6489 | unsigned long constexpr | |
6490 | strlen_c(const CharT *const s) noexcept | |
6491 | { | |
6492 | return strlen_c_r(s, 0UL); | |
6493 | } | |
6494 | ||
6495 | static_assert(strlen_c("") == 0UL, ""); | |
6496 | static_assert(strlen_c("1") == 1UL, ""); | |
6497 | static_assert(strlen_c("example") == 7UL, ""); | |
6498 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6499 | ||
6500 | } | |
6501 | ||
6502 | namespace test_rvalue_references | |
6503 | { | |
6504 | ||
6505 | template < int N > | |
6506 | struct answer | |
6507 | { | |
6508 | static constexpr int value = N; | |
6509 | }; | |
6510 | ||
6511 | answer<1> f(int&) { return answer<1>(); } | |
6512 | answer<2> f(const int&) { return answer<2>(); } | |
6513 | answer<3> f(int&&) { return answer<3>(); } | |
6514 | ||
6515 | void | |
6516 | test() | |
6517 | { | |
6518 | int i = 0; | |
6519 | const int c = 0; | |
6520 | static_assert(decltype(f(i))::value == 1, ""); | |
6521 | static_assert(decltype(f(c))::value == 2, ""); | |
6522 | static_assert(decltype(f(0))::value == 3, ""); | |
6523 | } | |
6524 | ||
6525 | } | |
6526 | ||
6527 | namespace test_uniform_initialization | |
6528 | { | |
6529 | ||
6530 | struct test | |
6531 | { | |
6532 | static const int zero {}; | |
6533 | static const int one {1}; | |
6534 | }; | |
6535 | ||
6536 | static_assert(test::zero == 0, ""); | |
6537 | static_assert(test::one == 1, ""); | |
6538 | ||
6539 | } | |
6540 | ||
6541 | namespace test_lambdas | |
6542 | { | |
6543 | ||
6544 | void | |
6545 | test1() | |
6546 | { | |
6547 | auto lambda1 = [](){}; | |
6548 | auto lambda2 = lambda1; | |
6549 | lambda1(); | |
6550 | lambda2(); | |
6551 | } | |
6552 | ||
6553 | int | |
6554 | test2() | |
6555 | { | |
6556 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6557 | auto b = []() -> int { return '0'; }(); | |
6558 | auto c = [=](){ return a + b; }(); | |
6559 | auto d = [&](){ return c; }(); | |
6560 | auto e = [a, &b](int x) mutable { | |
6561 | const auto identity = [](int y){ return y; }; | |
6562 | for (auto i = 0; i < a; ++i) | |
6563 | a += b--; | |
6564 | return x + identity(a + b); | |
6565 | }(0); | |
6566 | return a + b + c + d + e; | |
6567 | } | |
6568 | ||
6569 | int | |
6570 | test3() | |
6571 | { | |
6572 | const auto nullary = [](){ return 0; }; | |
6573 | const auto unary = [](int x){ return x; }; | |
6574 | using nullary_t = decltype(nullary); | |
6575 | using unary_t = decltype(unary); | |
6576 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6577 | const auto higher2nd = [unary](nullary_t f1){ | |
6578 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6579 | }; | |
6580 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6581 | } | |
6582 | ||
6583 | } | |
6584 | ||
6585 | namespace test_variadic_templates | |
6586 | { | |
6587 | ||
6588 | template <int...> | |
6589 | struct sum; | |
6590 | ||
6591 | template <int N0, int... N1toN> | |
6592 | struct sum<N0, N1toN...> | |
6593 | { | |
6594 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6595 | }; | |
6596 | ||
6597 | template <> | |
6598 | struct sum<> | |
6599 | { | |
6600 | static constexpr auto value = 0; | |
6601 | }; | |
6602 | ||
6603 | static_assert(sum<>::value == 0, ""); | |
6604 | static_assert(sum<1>::value == 1, ""); | |
6605 | static_assert(sum<23>::value == 23, ""); | |
6606 | static_assert(sum<1, 2>::value == 3, ""); | |
6607 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6608 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6609 | ||
6610 | } | |
6611 | ||
6612 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6613 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6614 | // because of this. | |
6615 | namespace test_template_alias_sfinae | |
6616 | { | |
6617 | ||
6618 | struct foo {}; | |
6619 | ||
6620 | template<typename T> | |
6621 | using member = typename T::member_type; | |
6622 | ||
6623 | template<typename T> | |
6624 | void func(...) {} | |
6625 | ||
6626 | template<typename T> | |
6627 | void func(member<T>*) {} | |
6628 | ||
6629 | void test(); | |
6630 | ||
6631 | void test() { func<foo>(0); } | |
6632 | ||
6633 | } | |
6634 | ||
6635 | } // namespace cxx11 | |
6636 | ||
6637 | #endif // __cplusplus >= 201103L | |
6638 | ||
6639 | ||
6640 | ||
6641 | _ACEOF | |
6642 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6643 | eval $cachevar=yes | |
6644 | else | |
6645 | eval $cachevar=no | |
6646 | fi | |
6647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6648 | CXX="$ac_save_CXX" | |
6649 | fi | |
6650 | eval ac_res=\$$cachevar | |
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6652 | $as_echo "$ac_res" >&6; } | |
6653 | if eval test x\$$cachevar = xyes; then | |
6654 | CXX="$CXX $switch" | |
6655 | if test -n "$CXXCPP" ; then | |
6656 | CXXCPP="$CXXCPP $switch" | |
6657 | fi | |
6658 | ac_success=yes | |
6659 | break | |
6660 | fi | |
6661 | done | |
6662 | if test x$ac_success = xyes; then | |
6663 | break | |
6664 | fi | |
6665 | done | |
6666 | fi | |
7ffcf5d6 | 6667 | |
ffac9597 JM |
6668 | ac_ext=c |
6669 | ac_cpp='$CPP $CPPFLAGS' | |
6670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6673 | ||
6674 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6675 | if test x$ac_success = xno; then | |
6676 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6677 | fi | |
6678 | fi | |
6679 | if test x$ac_success = xno; then | |
6680 | HAVE_CXX11=0 | |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6682 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6683 | else | |
6684 | HAVE_CXX11=1 | |
6685 | ||
6686 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6687 | ||
6688 | fi | |
6689 | ||
6690 | ||
7ffcf5d6 TB |
6691 | |
6692 | if test "${build}" != "${host}"; then | |
6693 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6694 | ac_ext=cpp | |
6695 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6696 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6697 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6698 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6699 | ac_success=no | |
6700 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6701 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6702 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6703 | CXX="$CXX_FOR_BUILD" | |
6704 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6705 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6707 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6708 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6709 | $as_echo_n "(cached) " >&6 | |
6710 | else | |
6711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6712 | /* end confdefs.h. */ | |
6713 | ||
6714 | ||
6715 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6716 | // Hopefully, this will speed up the test. | |
6717 | ||
6718 | #ifndef __cplusplus | |
6719 | ||
6720 | #error "This is not a C++ compiler" | |
6721 | ||
6722 | #elif __cplusplus < 201103L | |
6723 | ||
6724 | #error "This is not a C++11 compiler" | |
6725 | ||
6726 | #else | |
6727 | ||
6728 | namespace cxx11 | |
6729 | { | |
6730 | ||
6731 | namespace test_static_assert | |
6732 | { | |
6733 | ||
6734 | template <typename T> | |
6735 | struct check | |
6736 | { | |
6737 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6738 | }; | |
6739 | ||
6740 | } | |
6741 | ||
6742 | namespace test_final_override | |
6743 | { | |
6744 | ||
6745 | struct Base | |
6746 | { | |
6747 | virtual ~Base() {} | |
6748 | virtual void f() {} | |
6749 | }; | |
6750 | ||
6751 | struct Derived : public Base | |
6752 | { | |
6753 | virtual ~Derived() override {} | |
6754 | virtual void f() override {} | |
6755 | }; | |
6756 | ||
6757 | } | |
6758 | ||
6759 | namespace test_double_right_angle_brackets | |
6760 | { | |
6761 | ||
6762 | template < typename T > | |
6763 | struct check {}; | |
6764 | ||
6765 | typedef check<void> single_type; | |
6766 | typedef check<check<void>> double_type; | |
6767 | typedef check<check<check<void>>> triple_type; | |
6768 | typedef check<check<check<check<void>>>> quadruple_type; | |
6769 | ||
6770 | } | |
6771 | ||
6772 | namespace test_decltype | |
6773 | { | |
6774 | ||
6775 | int | |
6776 | f() | |
6777 | { | |
6778 | int a = 1; | |
6779 | decltype(a) b = 2; | |
6780 | return a + b; | |
6781 | } | |
6782 | ||
6783 | } | |
6784 | ||
6785 | namespace test_type_deduction | |
6786 | { | |
6787 | ||
6788 | template < typename T1, typename T2 > | |
6789 | struct is_same | |
6790 | { | |
6791 | static const bool value = false; | |
6792 | }; | |
6793 | ||
6794 | template < typename T > | |
6795 | struct is_same<T, T> | |
6796 | { | |
6797 | static const bool value = true; | |
6798 | }; | |
6799 | ||
6800 | template < typename T1, typename T2 > | |
6801 | auto | |
6802 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6803 | { | |
6804 | return a1 + a2; | |
6805 | } | |
6806 | ||
6807 | int | |
6808 | test(const int c, volatile int v) | |
6809 | { | |
6810 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6811 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6812 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6813 | auto ac = c; | |
6814 | auto av = v; | |
6815 | auto sumi = ac + av + 'x'; | |
6816 | auto sumf = ac + av + 1.0; | |
6817 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6818 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6819 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6820 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6821 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6822 | return (sumf > 0.0) ? sumi : add(c, v); | |
6823 | } | |
6824 | ||
6825 | } | |
6826 | ||
6827 | namespace test_noexcept | |
6828 | { | |
6829 | ||
6830 | int f() { return 0; } | |
6831 | int g() noexcept { return 0; } | |
6832 | ||
6833 | static_assert(noexcept(f()) == false, ""); | |
6834 | static_assert(noexcept(g()) == true, ""); | |
6835 | ||
6836 | } | |
6837 | ||
6838 | namespace test_constexpr | |
6839 | { | |
6840 | ||
6841 | template < typename CharT > | |
6842 | unsigned long constexpr | |
6843 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6844 | { | |
6845 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6846 | } | |
6847 | ||
6848 | template < typename CharT > | |
6849 | unsigned long constexpr | |
6850 | strlen_c(const CharT *const s) noexcept | |
6851 | { | |
6852 | return strlen_c_r(s, 0UL); | |
6853 | } | |
6854 | ||
6855 | static_assert(strlen_c("") == 0UL, ""); | |
6856 | static_assert(strlen_c("1") == 1UL, ""); | |
6857 | static_assert(strlen_c("example") == 7UL, ""); | |
6858 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6859 | ||
6860 | } | |
6861 | ||
6862 | namespace test_rvalue_references | |
6863 | { | |
6864 | ||
6865 | template < int N > | |
6866 | struct answer | |
6867 | { | |
6868 | static constexpr int value = N; | |
6869 | }; | |
6870 | ||
6871 | answer<1> f(int&) { return answer<1>(); } | |
6872 | answer<2> f(const int&) { return answer<2>(); } | |
6873 | answer<3> f(int&&) { return answer<3>(); } | |
6874 | ||
6875 | void | |
6876 | test() | |
6877 | { | |
6878 | int i = 0; | |
6879 | const int c = 0; | |
6880 | static_assert(decltype(f(i))::value == 1, ""); | |
6881 | static_assert(decltype(f(c))::value == 2, ""); | |
6882 | static_assert(decltype(f(0))::value == 3, ""); | |
6883 | } | |
6884 | ||
6885 | } | |
6886 | ||
6887 | namespace test_uniform_initialization | |
6888 | { | |
6889 | ||
6890 | struct test | |
6891 | { | |
6892 | static const int zero {}; | |
6893 | static const int one {1}; | |
6894 | }; | |
6895 | ||
6896 | static_assert(test::zero == 0, ""); | |
6897 | static_assert(test::one == 1, ""); | |
6898 | ||
6899 | } | |
6900 | ||
6901 | namespace test_lambdas | |
6902 | { | |
6903 | ||
6904 | void | |
6905 | test1() | |
6906 | { | |
6907 | auto lambda1 = [](){}; | |
6908 | auto lambda2 = lambda1; | |
6909 | lambda1(); | |
6910 | lambda2(); | |
6911 | } | |
6912 | ||
6913 | int | |
6914 | test2() | |
6915 | { | |
6916 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6917 | auto b = []() -> int { return '0'; }(); | |
6918 | auto c = [=](){ return a + b; }(); | |
6919 | auto d = [&](){ return c; }(); | |
6920 | auto e = [a, &b](int x) mutable { | |
6921 | const auto identity = [](int y){ return y; }; | |
6922 | for (auto i = 0; i < a; ++i) | |
6923 | a += b--; | |
6924 | return x + identity(a + b); | |
6925 | }(0); | |
6926 | return a + b + c + d + e; | |
6927 | } | |
6928 | ||
6929 | int | |
6930 | test3() | |
6931 | { | |
6932 | const auto nullary = [](){ return 0; }; | |
6933 | const auto unary = [](int x){ return x; }; | |
6934 | using nullary_t = decltype(nullary); | |
6935 | using unary_t = decltype(unary); | |
6936 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6937 | const auto higher2nd = [unary](nullary_t f1){ | |
6938 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6939 | }; | |
6940 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6941 | } | |
6942 | ||
6943 | } | |
6944 | ||
6945 | namespace test_variadic_templates | |
6946 | { | |
6947 | ||
6948 | template <int...> | |
6949 | struct sum; | |
6950 | ||
6951 | template <int N0, int... N1toN> | |
6952 | struct sum<N0, N1toN...> | |
6953 | { | |
6954 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6955 | }; | |
6956 | ||
6957 | template <> | |
6958 | struct sum<> | |
6959 | { | |
6960 | static constexpr auto value = 0; | |
6961 | }; | |
6962 | ||
6963 | static_assert(sum<>::value == 0, ""); | |
6964 | static_assert(sum<1>::value == 1, ""); | |
6965 | static_assert(sum<23>::value == 23, ""); | |
6966 | static_assert(sum<1, 2>::value == 3, ""); | |
6967 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6968 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6969 | ||
6970 | } | |
6971 | ||
6972 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6973 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6974 | // because of this. | |
6975 | namespace test_template_alias_sfinae | |
6976 | { | |
6977 | ||
6978 | struct foo {}; | |
6979 | ||
6980 | template<typename T> | |
6981 | using member = typename T::member_type; | |
6982 | ||
6983 | template<typename T> | |
6984 | void func(...) {} | |
6985 | ||
6986 | template<typename T> | |
6987 | void func(member<T>*) {} | |
6988 | ||
6989 | void test(); | |
6990 | ||
6991 | void test() { func<foo>(0); } | |
6992 | ||
6993 | } | |
6994 | ||
6995 | } // namespace cxx11 | |
6996 | ||
6997 | #endif // __cplusplus >= 201103L | |
6998 | ||
6999 | ||
7000 | ||
7001 | _ACEOF | |
7002 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7003 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7004 | else | |
7005 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7006 | fi | |
7007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7008 | fi | |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7010 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7011 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7012 | ac_success=yes | |
7013 | fi | |
7014 | ||
7015 | if test x$ac_success = xno; then | |
7016 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7017 | switch="-std=gnu++${alternative}" | |
7018 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7020 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7021 | if eval \${$cachevar+:} false; then : | |
7022 | $as_echo_n "(cached) " >&6 | |
7023 | else | |
7024 | ac_save_CXX="$CXX" | |
7025 | CXX="$CXX $switch" | |
7026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7027 | /* end confdefs.h. */ | |
7028 | ||
7029 | ||
7030 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7031 | // Hopefully, this will speed up the test. | |
7032 | ||
7033 | #ifndef __cplusplus | |
7034 | ||
7035 | #error "This is not a C++ compiler" | |
7036 | ||
7037 | #elif __cplusplus < 201103L | |
7038 | ||
7039 | #error "This is not a C++11 compiler" | |
7040 | ||
7041 | #else | |
7042 | ||
7043 | namespace cxx11 | |
7044 | { | |
7045 | ||
7046 | namespace test_static_assert | |
7047 | { | |
7048 | ||
7049 | template <typename T> | |
7050 | struct check | |
7051 | { | |
7052 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7053 | }; | |
7054 | ||
7055 | } | |
7056 | ||
7057 | namespace test_final_override | |
7058 | { | |
7059 | ||
7060 | struct Base | |
7061 | { | |
7062 | virtual ~Base() {} | |
7063 | virtual void f() {} | |
7064 | }; | |
7065 | ||
7066 | struct Derived : public Base | |
7067 | { | |
7068 | virtual ~Derived() override {} | |
7069 | virtual void f() override {} | |
7070 | }; | |
7071 | ||
7072 | } | |
7073 | ||
7074 | namespace test_double_right_angle_brackets | |
7075 | { | |
7076 | ||
7077 | template < typename T > | |
7078 | struct check {}; | |
7079 | ||
7080 | typedef check<void> single_type; | |
7081 | typedef check<check<void>> double_type; | |
7082 | typedef check<check<check<void>>> triple_type; | |
7083 | typedef check<check<check<check<void>>>> quadruple_type; | |
7084 | ||
7085 | } | |
7086 | ||
7087 | namespace test_decltype | |
7088 | { | |
7089 | ||
7090 | int | |
7091 | f() | |
7092 | { | |
7093 | int a = 1; | |
7094 | decltype(a) b = 2; | |
7095 | return a + b; | |
7096 | } | |
7097 | ||
7098 | } | |
7099 | ||
7100 | namespace test_type_deduction | |
7101 | { | |
7102 | ||
7103 | template < typename T1, typename T2 > | |
7104 | struct is_same | |
7105 | { | |
7106 | static const bool value = false; | |
7107 | }; | |
7108 | ||
7109 | template < typename T > | |
7110 | struct is_same<T, T> | |
7111 | { | |
7112 | static const bool value = true; | |
7113 | }; | |
7114 | ||
7115 | template < typename T1, typename T2 > | |
7116 | auto | |
7117 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7118 | { | |
7119 | return a1 + a2; | |
7120 | } | |
7121 | ||
7122 | int | |
7123 | test(const int c, volatile int v) | |
7124 | { | |
7125 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7126 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7127 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7128 | auto ac = c; | |
7129 | auto av = v; | |
7130 | auto sumi = ac + av + 'x'; | |
7131 | auto sumf = ac + av + 1.0; | |
7132 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7133 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7134 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7135 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7136 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7137 | return (sumf > 0.0) ? sumi : add(c, v); | |
7138 | } | |
7139 | ||
7140 | } | |
7141 | ||
7142 | namespace test_noexcept | |
7143 | { | |
7144 | ||
7145 | int f() { return 0; } | |
7146 | int g() noexcept { return 0; } | |
7147 | ||
7148 | static_assert(noexcept(f()) == false, ""); | |
7149 | static_assert(noexcept(g()) == true, ""); | |
7150 | ||
7151 | } | |
7152 | ||
7153 | namespace test_constexpr | |
7154 | { | |
7155 | ||
7156 | template < typename CharT > | |
7157 | unsigned long constexpr | |
7158 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7159 | { | |
7160 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7161 | } | |
7162 | ||
7163 | template < typename CharT > | |
7164 | unsigned long constexpr | |
7165 | strlen_c(const CharT *const s) noexcept | |
7166 | { | |
7167 | return strlen_c_r(s, 0UL); | |
7168 | } | |
7169 | ||
7170 | static_assert(strlen_c("") == 0UL, ""); | |
7171 | static_assert(strlen_c("1") == 1UL, ""); | |
7172 | static_assert(strlen_c("example") == 7UL, ""); | |
7173 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7174 | ||
7175 | } | |
7176 | ||
7177 | namespace test_rvalue_references | |
7178 | { | |
7179 | ||
7180 | template < int N > | |
7181 | struct answer | |
7182 | { | |
7183 | static constexpr int value = N; | |
7184 | }; | |
7185 | ||
7186 | answer<1> f(int&) { return answer<1>(); } | |
7187 | answer<2> f(const int&) { return answer<2>(); } | |
7188 | answer<3> f(int&&) { return answer<3>(); } | |
7189 | ||
7190 | void | |
7191 | test() | |
7192 | { | |
7193 | int i = 0; | |
7194 | const int c = 0; | |
7195 | static_assert(decltype(f(i))::value == 1, ""); | |
7196 | static_assert(decltype(f(c))::value == 2, ""); | |
7197 | static_assert(decltype(f(0))::value == 3, ""); | |
7198 | } | |
7199 | ||
7200 | } | |
7201 | ||
7202 | namespace test_uniform_initialization | |
7203 | { | |
7204 | ||
7205 | struct test | |
7206 | { | |
7207 | static const int zero {}; | |
7208 | static const int one {1}; | |
7209 | }; | |
7210 | ||
7211 | static_assert(test::zero == 0, ""); | |
7212 | static_assert(test::one == 1, ""); | |
7213 | ||
7214 | } | |
7215 | ||
7216 | namespace test_lambdas | |
7217 | { | |
7218 | ||
7219 | void | |
7220 | test1() | |
7221 | { | |
7222 | auto lambda1 = [](){}; | |
7223 | auto lambda2 = lambda1; | |
7224 | lambda1(); | |
7225 | lambda2(); | |
7226 | } | |
7227 | ||
7228 | int | |
7229 | test2() | |
7230 | { | |
7231 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7232 | auto b = []() -> int { return '0'; }(); | |
7233 | auto c = [=](){ return a + b; }(); | |
7234 | auto d = [&](){ return c; }(); | |
7235 | auto e = [a, &b](int x) mutable { | |
7236 | const auto identity = [](int y){ return y; }; | |
7237 | for (auto i = 0; i < a; ++i) | |
7238 | a += b--; | |
7239 | return x + identity(a + b); | |
7240 | }(0); | |
7241 | return a + b + c + d + e; | |
7242 | } | |
7243 | ||
7244 | int | |
7245 | test3() | |
7246 | { | |
7247 | const auto nullary = [](){ return 0; }; | |
7248 | const auto unary = [](int x){ return x; }; | |
7249 | using nullary_t = decltype(nullary); | |
7250 | using unary_t = decltype(unary); | |
7251 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7252 | const auto higher2nd = [unary](nullary_t f1){ | |
7253 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7254 | }; | |
7255 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7256 | } | |
7257 | ||
7258 | } | |
7259 | ||
7260 | namespace test_variadic_templates | |
7261 | { | |
7262 | ||
7263 | template <int...> | |
7264 | struct sum; | |
7265 | ||
7266 | template <int N0, int... N1toN> | |
7267 | struct sum<N0, N1toN...> | |
7268 | { | |
7269 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7270 | }; | |
7271 | ||
7272 | template <> | |
7273 | struct sum<> | |
7274 | { | |
7275 | static constexpr auto value = 0; | |
7276 | }; | |
7277 | ||
7278 | static_assert(sum<>::value == 0, ""); | |
7279 | static_assert(sum<1>::value == 1, ""); | |
7280 | static_assert(sum<23>::value == 23, ""); | |
7281 | static_assert(sum<1, 2>::value == 3, ""); | |
7282 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7283 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7284 | ||
7285 | } | |
7286 | ||
7287 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7288 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7289 | // because of this. | |
7290 | namespace test_template_alias_sfinae | |
7291 | { | |
7292 | ||
7293 | struct foo {}; | |
7294 | ||
7295 | template<typename T> | |
7296 | using member = typename T::member_type; | |
7297 | ||
7298 | template<typename T> | |
7299 | void func(...) {} | |
7300 | ||
7301 | template<typename T> | |
7302 | void func(member<T>*) {} | |
7303 | ||
7304 | void test(); | |
7305 | ||
7306 | void test() { func<foo>(0); } | |
7307 | ||
7308 | } | |
7309 | ||
7310 | } // namespace cxx11 | |
7311 | ||
7312 | #endif // __cplusplus >= 201103L | |
7313 | ||
7314 | ||
7315 | ||
7316 | _ACEOF | |
7317 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7318 | eval $cachevar=yes | |
7319 | else | |
7320 | eval $cachevar=no | |
7321 | fi | |
7322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7323 | CXX="$ac_save_CXX" | |
7324 | fi | |
7325 | eval ac_res=\$$cachevar | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7327 | $as_echo "$ac_res" >&6; } | |
7328 | if eval test x\$$cachevar = xyes; then | |
7329 | CXX="$CXX $switch" | |
7330 | if test -n "$CXXCPP" ; then | |
7331 | CXXCPP="$CXXCPP $switch" | |
7332 | fi | |
7333 | ac_success=yes | |
7334 | break | |
7335 | fi | |
7336 | done | |
7337 | fi | |
7338 | ||
7339 | if test x$ac_success = xno; then | |
7340 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7341 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7342 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7344 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7345 | if eval \${$cachevar+:} false; then : | |
7346 | $as_echo_n "(cached) " >&6 | |
7347 | else | |
7348 | ac_save_CXX="$CXX" | |
7349 | CXX="$CXX $switch" | |
7350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7351 | /* end confdefs.h. */ | |
7352 | ||
7353 | ||
7354 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7355 | // Hopefully, this will speed up the test. | |
7356 | ||
7357 | #ifndef __cplusplus | |
7358 | ||
7359 | #error "This is not a C++ compiler" | |
7360 | ||
7361 | #elif __cplusplus < 201103L | |
7362 | ||
7363 | #error "This is not a C++11 compiler" | |
7364 | ||
7365 | #else | |
7366 | ||
7367 | namespace cxx11 | |
7368 | { | |
7369 | ||
7370 | namespace test_static_assert | |
7371 | { | |
7372 | ||
7373 | template <typename T> | |
7374 | struct check | |
7375 | { | |
7376 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7377 | }; | |
7378 | ||
7379 | } | |
7380 | ||
7381 | namespace test_final_override | |
7382 | { | |
7383 | ||
7384 | struct Base | |
7385 | { | |
7386 | virtual ~Base() {} | |
7387 | virtual void f() {} | |
7388 | }; | |
7389 | ||
7390 | struct Derived : public Base | |
7391 | { | |
7392 | virtual ~Derived() override {} | |
7393 | virtual void f() override {} | |
7394 | }; | |
7395 | ||
7396 | } | |
7397 | ||
7398 | namespace test_double_right_angle_brackets | |
7399 | { | |
7400 | ||
7401 | template < typename T > | |
7402 | struct check {}; | |
7403 | ||
7404 | typedef check<void> single_type; | |
7405 | typedef check<check<void>> double_type; | |
7406 | typedef check<check<check<void>>> triple_type; | |
7407 | typedef check<check<check<check<void>>>> quadruple_type; | |
7408 | ||
7409 | } | |
7410 | ||
7411 | namespace test_decltype | |
7412 | { | |
7413 | ||
7414 | int | |
7415 | f() | |
7416 | { | |
7417 | int a = 1; | |
7418 | decltype(a) b = 2; | |
7419 | return a + b; | |
7420 | } | |
7421 | ||
7422 | } | |
7423 | ||
7424 | namespace test_type_deduction | |
7425 | { | |
7426 | ||
7427 | template < typename T1, typename T2 > | |
7428 | struct is_same | |
7429 | { | |
7430 | static const bool value = false; | |
7431 | }; | |
7432 | ||
7433 | template < typename T > | |
7434 | struct is_same<T, T> | |
7435 | { | |
7436 | static const bool value = true; | |
7437 | }; | |
7438 | ||
7439 | template < typename T1, typename T2 > | |
7440 | auto | |
7441 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7442 | { | |
7443 | return a1 + a2; | |
7444 | } | |
7445 | ||
7446 | int | |
7447 | test(const int c, volatile int v) | |
7448 | { | |
7449 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7450 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7451 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7452 | auto ac = c; | |
7453 | auto av = v; | |
7454 | auto sumi = ac + av + 'x'; | |
7455 | auto sumf = ac + av + 1.0; | |
7456 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7457 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7458 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7459 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7460 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7461 | return (sumf > 0.0) ? sumi : add(c, v); | |
7462 | } | |
7463 | ||
7464 | } | |
7465 | ||
7466 | namespace test_noexcept | |
7467 | { | |
7468 | ||
7469 | int f() { return 0; } | |
7470 | int g() noexcept { return 0; } | |
7471 | ||
7472 | static_assert(noexcept(f()) == false, ""); | |
7473 | static_assert(noexcept(g()) == true, ""); | |
7474 | ||
7475 | } | |
7476 | ||
7477 | namespace test_constexpr | |
7478 | { | |
7479 | ||
7480 | template < typename CharT > | |
7481 | unsigned long constexpr | |
7482 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7483 | { | |
7484 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7485 | } | |
7486 | ||
7487 | template < typename CharT > | |
7488 | unsigned long constexpr | |
7489 | strlen_c(const CharT *const s) noexcept | |
7490 | { | |
7491 | return strlen_c_r(s, 0UL); | |
7492 | } | |
7493 | ||
7494 | static_assert(strlen_c("") == 0UL, ""); | |
7495 | static_assert(strlen_c("1") == 1UL, ""); | |
7496 | static_assert(strlen_c("example") == 7UL, ""); | |
7497 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7498 | ||
7499 | } | |
7500 | ||
7501 | namespace test_rvalue_references | |
7502 | { | |
7503 | ||
7504 | template < int N > | |
7505 | struct answer | |
7506 | { | |
7507 | static constexpr int value = N; | |
7508 | }; | |
7509 | ||
7510 | answer<1> f(int&) { return answer<1>(); } | |
7511 | answer<2> f(const int&) { return answer<2>(); } | |
7512 | answer<3> f(int&&) { return answer<3>(); } | |
7513 | ||
7514 | void | |
7515 | test() | |
7516 | { | |
7517 | int i = 0; | |
7518 | const int c = 0; | |
7519 | static_assert(decltype(f(i))::value == 1, ""); | |
7520 | static_assert(decltype(f(c))::value == 2, ""); | |
7521 | static_assert(decltype(f(0))::value == 3, ""); | |
7522 | } | |
7523 | ||
7524 | } | |
7525 | ||
7526 | namespace test_uniform_initialization | |
7527 | { | |
7528 | ||
7529 | struct test | |
7530 | { | |
7531 | static const int zero {}; | |
7532 | static const int one {1}; | |
7533 | }; | |
7534 | ||
7535 | static_assert(test::zero == 0, ""); | |
7536 | static_assert(test::one == 1, ""); | |
7537 | ||
7538 | } | |
7539 | ||
7540 | namespace test_lambdas | |
7541 | { | |
7542 | ||
7543 | void | |
7544 | test1() | |
7545 | { | |
7546 | auto lambda1 = [](){}; | |
7547 | auto lambda2 = lambda1; | |
7548 | lambda1(); | |
7549 | lambda2(); | |
7550 | } | |
7551 | ||
7552 | int | |
7553 | test2() | |
7554 | { | |
7555 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7556 | auto b = []() -> int { return '0'; }(); | |
7557 | auto c = [=](){ return a + b; }(); | |
7558 | auto d = [&](){ return c; }(); | |
7559 | auto e = [a, &b](int x) mutable { | |
7560 | const auto identity = [](int y){ return y; }; | |
7561 | for (auto i = 0; i < a; ++i) | |
7562 | a += b--; | |
7563 | return x + identity(a + b); | |
7564 | }(0); | |
7565 | return a + b + c + d + e; | |
7566 | } | |
7567 | ||
7568 | int | |
7569 | test3() | |
7570 | { | |
7571 | const auto nullary = [](){ return 0; }; | |
7572 | const auto unary = [](int x){ return x; }; | |
7573 | using nullary_t = decltype(nullary); | |
7574 | using unary_t = decltype(unary); | |
7575 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7576 | const auto higher2nd = [unary](nullary_t f1){ | |
7577 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7578 | }; | |
7579 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7580 | } | |
7581 | ||
7582 | } | |
7583 | ||
7584 | namespace test_variadic_templates | |
7585 | { | |
7586 | ||
7587 | template <int...> | |
7588 | struct sum; | |
7589 | ||
7590 | template <int N0, int... N1toN> | |
7591 | struct sum<N0, N1toN...> | |
7592 | { | |
7593 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7594 | }; | |
7595 | ||
7596 | template <> | |
7597 | struct sum<> | |
7598 | { | |
7599 | static constexpr auto value = 0; | |
7600 | }; | |
7601 | ||
7602 | static_assert(sum<>::value == 0, ""); | |
7603 | static_assert(sum<1>::value == 1, ""); | |
7604 | static_assert(sum<23>::value == 23, ""); | |
7605 | static_assert(sum<1, 2>::value == 3, ""); | |
7606 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7607 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7608 | ||
7609 | } | |
7610 | ||
7611 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7612 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7613 | // because of this. | |
7614 | namespace test_template_alias_sfinae | |
7615 | { | |
7616 | ||
7617 | struct foo {}; | |
7618 | ||
7619 | template<typename T> | |
7620 | using member = typename T::member_type; | |
7621 | ||
7622 | template<typename T> | |
7623 | void func(...) {} | |
7624 | ||
7625 | template<typename T> | |
7626 | void func(member<T>*) {} | |
7627 | ||
7628 | void test(); | |
7629 | ||
7630 | void test() { func<foo>(0); } | |
7631 | ||
7632 | } | |
7633 | ||
7634 | } // namespace cxx11 | |
7635 | ||
7636 | #endif // __cplusplus >= 201103L | |
7637 | ||
7638 | ||
7639 | ||
7640 | _ACEOF | |
7641 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7642 | eval $cachevar=yes | |
7643 | else | |
7644 | eval $cachevar=no | |
7645 | fi | |
7646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7647 | CXX="$ac_save_CXX" | |
7648 | fi | |
7649 | eval ac_res=\$$cachevar | |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7651 | $as_echo "$ac_res" >&6; } | |
7652 | if eval test x\$$cachevar = xyes; then | |
7653 | CXX="$CXX $switch" | |
7654 | if test -n "$CXXCPP" ; then | |
7655 | CXXCPP="$CXXCPP $switch" | |
7656 | fi | |
7657 | ac_success=yes | |
7658 | break | |
7659 | fi | |
7660 | done | |
7661 | if test x$ac_success = xyes; then | |
7662 | break | |
7663 | fi | |
7664 | done | |
7665 | fi | |
7666 | CXX_FOR_BUILD="$CXX" | |
7667 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7668 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7669 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7670 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7671 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7672 | ac_ext=c | |
7673 | ac_cpp='$CPP $CPPFLAGS' | |
7674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7677 | ||
7678 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7679 | if test x$ac_success = xno; then | |
7680 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7681 | fi | |
7682 | fi | |
7683 | if test x$ac_success = xno; then | |
7684 | HAVE_CXX11_FOR_BUILD=0 | |
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7686 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7687 | else | |
7688 | HAVE_CXX11_FOR_BUILD=1 | |
7689 | ||
7690 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7691 | ||
7692 | fi | |
7693 | ||
7694 | ||
7695 | fi | |
46070488 JM |
7696 | fi |
7697 | ||
592c90ff KG |
7698 | # Used for setting $lt_cv_objdir |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7700 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7701 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7702 | $as_echo_n "(cached) " >&6 |
7703 | else | |
7704 | rm -f .libs 2>/dev/null | |
7705 | mkdir .libs 2>/dev/null | |
7706 | if test -d .libs; then | |
7707 | lt_cv_objdir=.libs | |
7708 | else | |
7709 | # MS-DOS does not allow filenames that begin with a dot. | |
7710 | lt_cv_objdir=_libs | |
7711 | fi | |
7712 | rmdir .libs 2>/dev/null | |
7713 | fi | |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7715 | $as_echo "$lt_cv_objdir" >&6; } | |
7716 | objdir=$lt_cv_objdir | |
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | ||
7722 | cat >>confdefs.h <<_ACEOF | |
7723 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7724 | _ACEOF | |
7725 | ||
7726 | ||
7727 | ||
acd26225 | 7728 | # Check for GMP, MPFR and MPC |
3a5729ea | 7729 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7730 | gmpinc= |
e69bf64b | 7731 | have_gmp=no |
acd26225 KG |
7732 | |
7733 | # Specify a location for mpc | |
7734 | # check for this first so it ends up on the link line before mpfr. | |
7735 | ||
5213506e RW |
7736 | # Check whether --with-mpc was given. |
7737 | if test "${with_mpc+set}" = set; then : | |
7738 | withval=$with_mpc; | |
7739 | fi | |
acd26225 | 7740 | |
acd26225 | 7741 | |
9965e3cd | 7742 | # Check whether --with-mpc-include was given. |
5213506e RW |
7743 | if test "${with_mpc_include+set}" = set; then : |
7744 | withval=$with_mpc_include; | |
7745 | fi | |
acd26225 | 7746 | |
acd26225 | 7747 | |
9965e3cd | 7748 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7749 | if test "${with_mpc_lib+set}" = set; then : |
7750 | withval=$with_mpc_lib; | |
7751 | fi | |
acd26225 | 7752 | |
acd26225 KG |
7753 | |
7754 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7755 | gmplibs="-L$with_mpc/lib $gmplibs" |
7756 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7757 | fi |
7758 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7759 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7760 | fi |
7761 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7762 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7763 | fi |
7764 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7765 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7766 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7767 | # Do not test the mpc version. Assume that it is sufficient, since |
7768 | # it is in the source tree, and the library has not been built yet | |
7769 | # but it would be included on the link line in the version check below | |
7770 | # hence making the test fail. | |
3a5729ea | 7771 | have_gmp=yes |
acd26225 | 7772 | fi |
e69bf64b | 7773 | |
bebf829d PB |
7774 | # Specify a location for mpfr |
7775 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 7776 | |
5213506e RW |
7777 | # Check whether --with-mpfr-dir was given. |
7778 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 7779 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
7780 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
7781 | fi | |
7782 | ||
bebf829d PB |
7783 | |
7784 | ||
5213506e RW |
7785 | # Check whether --with-mpfr was given. |
7786 | if test "${with_mpfr+set}" = set; then : | |
7787 | withval=$with_mpfr; | |
7788 | fi | |
1c710c3c | 7789 | |
bebf829d | 7790 | |
9965e3cd | 7791 | # Check whether --with-mpfr-include was given. |
5213506e RW |
7792 | if test "${with_mpfr_include+set}" = set; then : |
7793 | withval=$with_mpfr_include; | |
7794 | fi | |
1c710c3c | 7795 | |
8a877c9c | 7796 | |
9965e3cd | 7797 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
7798 | if test "${with_mpfr_lib+set}" = set; then : |
7799 | withval=$with_mpfr_lib; | |
7800 | fi | |
8a877c9c | 7801 | |
bebf829d PB |
7802 | |
7803 | if test "x$with_mpfr" != x; then | |
7804 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 7805 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 7806 | fi |
8a877c9c | 7807 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 7808 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
7809 | fi |
7810 | if test "x$with_mpfr_lib" != x; then | |
7811 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
7812 | fi | |
e69bf64b | 7813 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
7814 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
7815 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 7816 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 7817 | fi |
00f35794 BE |
7818 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
7819 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
7820 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
7821 | # Do not test the mpfr version. Assume that it is sufficient, since |
7822 | # it is in the source tree, and the library has not been built yet | |
7823 | # but it would be included on the link line in the version check below | |
7824 | # hence making the test fail. | |
7825 | have_gmp=yes | |
7826 | fi | |
bebf829d | 7827 | |
6de9cd9a | 7828 | # Specify a location for gmp |
1c710c3c | 7829 | |
5213506e RW |
7830 | # Check whether --with-gmp-dir was given. |
7831 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 7832 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
7833 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
7834 | fi | |
7835 | ||
6de9cd9a | 7836 | |
6de9cd9a | 7837 | |
5213506e RW |
7838 | # Check whether --with-gmp was given. |
7839 | if test "${with_gmp+set}" = set; then : | |
7840 | withval=$with_gmp; | |
7841 | fi | |
1c710c3c | 7842 | |
6de9cd9a | 7843 | |
9965e3cd | 7844 | # Check whether --with-gmp-include was given. |
5213506e RW |
7845 | if test "${with_gmp_include+set}" = set; then : |
7846 | withval=$with_gmp_include; | |
7847 | fi | |
1c710c3c | 7848 | |
8a877c9c | 7849 | |
9965e3cd | 7850 | # Check whether --with-gmp-lib was given. |
5213506e RW |
7851 | if test "${with_gmp_lib+set}" = set; then : |
7852 | withval=$with_gmp_lib; | |
7853 | fi | |
8a877c9c KG |
7854 | |
7855 | ||
6de9cd9a | 7856 | |
bebf829d PB |
7857 | if test "x$with_gmp" != x; then |
7858 | gmplibs="-L$with_gmp/lib $gmplibs" | |
7859 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 7860 | fi |
8a877c9c KG |
7861 | if test "x$with_gmp_include" != x; then |
7862 | gmpinc="-I$with_gmp_include $gmpinc" | |
7863 | fi | |
7864 | if test "x$with_gmp_lib" != x; then | |
7865 | gmplibs="-L$with_gmp_lib $gmplibs" | |
7866 | fi | |
e69bf64b | 7867 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 7868 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 7869 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 7870 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 7871 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 7872 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
7873 | # Do not test the gmp version. Assume that it is sufficient, since |
7874 | # it is in the source tree, and the library has not been built yet | |
7875 | # but it would be included on the link line in the version check below | |
7876 | # hence making the test fail. | |
7877 | have_gmp=yes | |
7878 | fi | |
6de9cd9a | 7879 | |
d943d7c4 | 7880 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
7881 | have_gmp=yes |
7882 | saved_CFLAGS="$CFLAGS" | |
7883 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
7884 | # Check for the recommended and required versions of GMP. |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
7886 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
7887 | |
7888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
7889 | /* end confdefs.h. */ |
7890 | #include "gmp.h" | |
7891 | int | |
7892 | main () | |
7893 | { | |
7894 | ||
7895 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
7896 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 7897 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
7898 | choke me |
7899 | #endif | |
7900 | ||
7901 | ; | |
7902 | return 0; | |
7903 | } | |
7904 | _ACEOF | |
7905 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 7906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 7907 | /* end confdefs.h. */ |
362c6d2f | 7908 | #include <gmp.h> |
1c710c3c DJ |
7909 | int |
7910 | main () | |
7911 | { | |
6de9cd9a | 7912 | |
362c6d2f KG |
7913 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
7914 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
7915 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
7916 | choke me |
7917 | #endif | |
1c710c3c DJ |
7918 | |
7919 | ; | |
7920 | return 0; | |
7921 | } | |
7922 | _ACEOF | |
5213506e RW |
7923 | if ac_fn_c_try_compile "$LINENO"; then : |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7925 | $as_echo "yes" >&6; } | |
362c6d2f KG |
7926 | else |
7927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
7928 | $as_echo "buggy but acceptable" >&6; } | |
7929 | fi | |
7930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 7931 | else |
5213506e RW |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7933 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 7934 | fi |
5213506e | 7935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 7936 | |
acd26225 | 7937 | # If we have GMP, check the MPFR version. |
e69bf64b | 7938 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
7939 | # Check for the recommended and required versions of MPFR. |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
7941 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 7942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 7943 | /* end confdefs.h. */ |
70ec446f | 7944 | #include <gmp.h> |
e69bf64b | 7945 | #include <mpfr.h> |
1c710c3c DJ |
7946 | int |
7947 | main () | |
7948 | { | |
e48d66a9 | 7949 | |
8be34204 | 7950 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
7951 | choke me |
7952 | #endif | |
1c710c3c DJ |
7953 | |
7954 | ; | |
7955 | return 0; | |
7956 | } | |
7957 | _ACEOF | |
5213506e RW |
7958 | if ac_fn_c_try_compile "$LINENO"; then : |
7959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 7960 | /* end confdefs.h. */ |
a3993f33 | 7961 | #include <gmp.h> |
e69bf64b | 7962 | #include <mpfr.h> |
1c710c3c DJ |
7963 | int |
7964 | main () | |
7965 | { | |
a3993f33 | 7966 | |
8be34204 | 7967 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
7968 | choke me |
7969 | #endif | |
acd26225 KG |
7970 | |
7971 | ; | |
7972 | return 0; | |
7973 | } | |
7974 | _ACEOF | |
5213506e RW |
7975 | if ac_fn_c_try_compile "$LINENO"; then : |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7977 | $as_echo "yes" >&6; } | |
acd26225 | 7978 | else |
5213506e RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
7980 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 7981 | fi |
5213506e | 7982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 7983 | else |
5213506e RW |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7985 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 7986 | fi |
5213506e | 7987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
7988 | fi |
7989 | ||
7990 | # Check for the MPC header version. | |
3a5729ea | 7991 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 7992 | # Check for the recommended and required versions of MPC. |
5213506e RW |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
7994 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
7995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
7996 | /* end confdefs.h. */ |
7997 | #include <mpc.h> | |
7998 | int | |
7999 | main () | |
8000 | { | |
8001 | ||
362c6d2f KG |
8002 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8003 | choke me | |
8004 | #endif | |
8005 | ||
8006 | ; | |
8007 | return 0; | |
8008 | } | |
8009 | _ACEOF | |
8010 | if ac_fn_c_try_compile "$LINENO"; then : | |
8011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8012 | /* end confdefs.h. */ | |
8013 | #include <mpc.h> | |
8014 | int | |
8015 | main () | |
8016 | { | |
8017 | ||
8018 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8019 | choke me |
8020 | #endif | |
8021 | ||
8022 | ; | |
8023 | return 0; | |
8024 | } | |
8025 | _ACEOF | |
5213506e RW |
8026 | if ac_fn_c_try_compile "$LINENO"; then : |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8028 | $as_echo "yes" >&6; } |
362c6d2f KG |
8029 | else |
8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8031 | $as_echo "buggy but acceptable" >&6; } | |
8032 | fi | |
8033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8034 | else |
5213506e | 8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8036 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8037 | fi |
5213506e | 8038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8039 | fi |
8040 | ||
8041 | # Now check the MPFR library. | |
8042 | if test x"$have_gmp" = xyes; then | |
8043 | saved_LIBS="$LIBS" | |
8044 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8046 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 8047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8048 | /* end confdefs.h. */ |
3a5729ea | 8049 | #include <mpc.h> |
acd26225 KG |
8050 | int |
8051 | main () | |
8052 | { | |
8053 | ||
8054 | mpfr_t n; | |
8055 | mpfr_t x; | |
3a5729ea | 8056 | mpc_t c; |
acd26225 KG |
8057 | int t; |
8058 | mpfr_init (n); | |
8059 | mpfr_init (x); | |
90ca6847 TB |
8060 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8061 | mpfr_erfc (n, x, MPFR_RNDN); | |
8062 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8063 | mpfr_clear(n); |
8064 | mpfr_clear(x); | |
8065 | mpc_init2 (c, 53); | |
8066 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8067 | mpc_cosh (c, c, MPC_RNDNN); | |
8068 | mpc_pow (c, c, c, MPC_RNDNN); | |
8069 | mpc_acosh (c, c, MPC_RNDNN); | |
8070 | mpc_clear (c); | |
1c710c3c DJ |
8071 | |
8072 | ; | |
8073 | return 0; | |
8074 | } | |
8075 | _ACEOF | |
5213506e RW |
8076 | if ac_fn_c_try_link "$LINENO"; then : |
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8078 | $as_echo "yes" >&6; } | |
1c710c3c | 8079 | else |
5213506e RW |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8081 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8082 | fi |
5213506e RW |
8083 | rm -f core conftest.err conftest.$ac_objext \ |
8084 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8085 | LIBS="$saved_LIBS" |
8086 | fi | |
8087 | ||
e69bf64b | 8088 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8089 | |
362c6d2f KG |
8090 | # The library versions listed in the error message below should match |
8091 | # the HARD-minimums enforced above. | |
e69bf64b | 8092 | if test x$have_gmp != xyes; then |
8be34204 | 8093 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
8094 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8095 | their locations. Source code for these libraries can be found at | |
8096 | their respective hosting sites as well as at | |
aeebd94c | 8097 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
8098 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8099 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8100 | make sure that you have installed both the libraries and the header | |
8101 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 8102 | fi |
70ec446f KG |
8103 | fi |
8104 | ||
acd26225 KG |
8105 | # Flags needed for both GMP, MPFR and/or MPC. |
8106 | ||
8107 | ||
6de9cd9a DN |
8108 | |
8109 | ||
8110 | ||
9e3eba15 | 8111 | |
0ff2d841 | 8112 | |
0b21f5d3 | 8113 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8114 | |
0b21f5d3 EB |
8115 | # Check whether --with-stage1-libs was given. |
8116 | if test "${with_stage1_libs+set}" = set; then : | |
8117 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8118 | stage1_libs= | |
00020c16 | 8119 | else |
0b21f5d3 | 8120 | stage1_libs=$withval |
00020c16 ILT |
8121 | fi |
8122 | else | |
5dc85f7e | 8123 | stage1_libs= |
5213506e RW |
8124 | fi |
8125 | ||
00020c16 ILT |
8126 | |
8127 | ||
aac9103b TT |
8128 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8129 | # default is yes if gcc is being built; no otherwise. The reason for | |
8130 | # this default is that gdb is sometimes linked against GNU Source | |
8131 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8132 | # this case, -static-libstdc++ will cause crashes. | |
8133 | ||
8134 | # Check whether --with-static-standard-libraries was given. | |
8135 | if test "${with_static_standard_libraries+set}" = set; then : | |
8136 | withval=$with_static_standard_libraries; | |
8137 | else | |
8138 | with_static_standard_libraries=auto | |
8139 | fi | |
8140 | ||
8141 | if test "$with_static_standard_libraries" = auto; then | |
8142 | with_static_standard_libraries=$have_compiler | |
8143 | fi | |
8144 | ||
0b21f5d3 | 8145 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8146 | |
0b21f5d3 EB |
8147 | # Check whether --with-stage1-ldflags was given. |
8148 | if test "${with_stage1_ldflags+set}" = set; then : | |
8149 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8150 | stage1_ldflags= | |
00020c16 | 8151 | else |
0b21f5d3 | 8152 | stage1_ldflags=$withval |
00020c16 ILT |
8153 | fi |
8154 | else | |
0b21f5d3 EB |
8155 | stage1_ldflags= |
8156 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8157 | # if supported. But if the user explicitly specified the libraries to use, | |
8158 | # trust that they are doing what they want. | |
aac9103b TT |
8159 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8160 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8161 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8162 | fi | |
5213506e RW |
8163 | fi |
8164 | ||
00020c16 ILT |
8165 | |
8166 | ||
5dc85f7e | 8167 | # Libraries to use for stage2 and later builds. |
00020c16 | 8168 | |
5213506e RW |
8169 | # Check whether --with-boot-libs was given. |
8170 | if test "${with_boot_libs+set}" = set; then : | |
8171 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8172 | poststage1_libs= |
8173 | else | |
8174 | poststage1_libs=$withval | |
8175 | fi | |
8176 | else | |
5dc85f7e | 8177 | poststage1_libs= |
5213506e RW |
8178 | fi |
8179 | ||
00020c16 ILT |
8180 | |
8181 | ||
ed2eaa9f ILT |
8182 | # Linker flags to use for stage2 and later builds. |
8183 | ||
8184 | # Check whether --with-boot-ldflags was given. | |
8185 | if test "${with_boot_ldflags+set}" = set; then : | |
8186 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8187 | poststage1_ldflags= | |
8188 | else | |
8189 | poststage1_ldflags=$withval | |
8190 | fi | |
8191 | else | |
8192 | poststage1_ldflags= | |
bec93d73 ILT |
8193 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8194 | # statically. But if the user explicitly specified the libraries to | |
8195 | # use, trust that they are doing what they want. | |
8196 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8197 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8198 | fi | |
8199 | fi | |
8200 | ||
8201 | ||
8202 | ||
e357a5e0 | 8203 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8204 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8205 | |
8206 | ||
33ad93b9 RG |
8207 | # Check whether --with-isl was given. |
8208 | if test "${with_isl+set}" = set; then : | |
8209 | withval=$with_isl; | |
5213506e | 8210 | fi |
f8bf9252 | 8211 | |
f8bf9252 | 8212 | |
eae1a5d4 | 8213 | # Treat --without-isl as a request to disable |
625afa23 | 8214 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8215 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8216 | # Check for isl |
625afa23 RG |
8217 | |
8218 | ||
33ad93b9 RG |
8219 | # Check whether --with-isl-include was given. |
8220 | if test "${with_isl_include+set}" = set; then : | |
8221 | withval=$with_isl_include; | |
5213506e RW |
8222 | fi |
8223 | ||
f8bf9252 | 8224 | |
33ad93b9 RG |
8225 | # Check whether --with-isl-lib was given. |
8226 | if test "${with_isl_lib+set}" = set; then : | |
8227 | withval=$with_isl_lib; | |
5213506e | 8228 | fi |
f8bf9252 | 8229 | |
f8bf9252 | 8230 | |
33ad93b9 RG |
8231 | # Check whether --enable-isl-version-check was given. |
8232 | if test "${enable_isl_version_check+set}" = set; then : | |
8233 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8234 | else | |
8235 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8236 | fi |
8237 | ||
8238 | ||
33ad93b9 RG |
8239 | # Initialize isllibs and islinc. |
8240 | case $with_isl in | |
8241 | no) | |
8242 | isllibs= | |
8243 | islinc= | |
8244 | ;; | |
8245 | "" | yes) | |
8246 | ;; | |
8247 | *) | |
8248 | isllibs="-L$with_isl/lib" | |
8249 | islinc="-I$with_isl/include" | |
8250 | ;; | |
8251 | esac | |
8252 | if test "x${with_isl_include}" != x ; then | |
8253 | islinc="-I$with_isl_include" | |
8254 | fi | |
8255 | if test "x${with_isl_lib}" != x; then | |
8256 | isllibs="-L$with_isl_lib" | |
8257 | fi | |
8258 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8259 | && test -d ${srcdir}/isl; then | |
8260 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8261 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8262 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8264 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8265 | fi |
7d32a440 | 8266 | |
eae1a5d4 RG |
8267 | isllibs="${isllibs} -lisl" |
8268 | ||
7d32a440 | 8269 | |
7d32a440 | 8270 | |
9847828b RB |
8271 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8272 | _isl_saved_CFLAGS=$CFLAGS | |
8273 | _isl_saved_LDFLAGS=$LDFLAGS | |
8274 | _isl_saved_LIBS=$LIBS | |
8275 | ||
8276 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8277 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8278 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8279 | |
f877b3ad RB |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8281 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8283 | /* end confdefs.h. */ |
f877b3ad | 8284 | #include <isl/schedule.h> |
622dbadf BC |
8285 | int |
8286 | main () | |
8287 | { | |
f877b3ad | 8288 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8289 | ; |
8290 | return 0; | |
8291 | } | |
8292 | _ACEOF | |
8293 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8294 | gcc_cv_isl=yes |
622dbadf BC |
8295 | else |
8296 | gcc_cv_isl=no | |
8297 | fi | |
8298 | rm -f core conftest.err conftest.$ac_objext \ | |
8299 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8301 | $as_echo "$gcc_cv_isl" >&6; } | |
8302 | ||
560d18d3 | 8303 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8305 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8306 | fi |
8307 | ||
9847828b RB |
8308 | CFLAGS=$_isl_saved_CFLAGS |
8309 | LDFLAGS=$_isl_saved_LDFLAGS | |
8310 | LIBS=$_isl_saved_LIBS | |
8311 | fi | |
8312 | ||
8313 | ||
f8bf9252 | 8314 | |
f8bf9252 | 8315 | |
33ad93b9 RG |
8316 | |
8317 | ||
33ad93b9 RG |
8318 | if test "x${with_isl}" = xno; then |
8319 | graphite_requested=no | |
8320 | elif test "x${with_isl}" != x \ | |
8321 | || test "x${with_isl_include}" != x \ | |
8322 | || test "x${with_isl_lib}" != x ; then | |
8323 | graphite_requested=yes | |
8324 | else | |
8325 | graphite_requested=no | |
7d32a440 | 8326 | fi |
d789184e | 8327 | |
d789184e SP |
8328 | |
8329 | ||
33ad93b9 RG |
8330 | if test "${gcc_cv_isl}" = no ; then |
8331 | isllibs= | |
8332 | islinc= | |
8333 | fi | |
8334 | ||
8335 | if test "${graphite_requested}" = yes \ | |
8336 | && test "x${isllibs}" = x \ | |
8337 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8338 | |
22e05272 | 8339 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8340 | fi |
f8bf9252 | 8341 | |
d32ef397 | 8342 | |
d32ef397 AS |
8343 | fi |
8344 | ||
e357a5e0 | 8345 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8346 | if test "x$with_isl" = xno || |
625afa23 | 8347 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8348 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8349 | islinc= |
32d024bf RG |
8350 | fi |
8351 | ||
625afa23 RG |
8352 | |
8353 | ||
8354 | ||
d7f09764 DN |
8355 | # Check for LTO support. |
8356 | # Check whether --enable-lto was given. | |
8357 | if test "${enable_lto+set}" = set; then : | |
8358 | enableval=$enable_lto; enable_lto=$enableval | |
8359 | else | |
8360 | enable_lto=yes; default_enable_lto=yes | |
8361 | fi | |
8362 | ||
8363 | ||
7413962d | 8364 | |
9a02962b DK |
8365 | |
8366 | ||
8367 | target_elf=no | |
8368 | case $target in | |
8369 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8370 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8371 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8372 | nvptx-*-none) |
9a02962b DK |
8373 | target_elf=no |
8374 | ;; | |
8375 | *) | |
8376 | target_elf=yes | |
8377 | ;; | |
8378 | esac | |
8379 | ||
8380 | if test $target_elf = yes; then : | |
48215350 DK |
8381 | # ELF platforms build the lto-plugin always. |
8382 | build_lto_plugin=yes | |
9a02962b | 8383 | |
9a02962b DK |
8384 | else |
8385 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8386 | case $target in |
deeba76a | 8387 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8388 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8389 | *) enable_lto=no ;; |
8390 | esac | |
9a02962b | 8391 | else |
db50fe7d IS |
8392 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8393 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8394 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8395 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8396 | # -flto it won't be needed until after installation anyway. | |
8397 | case $target in | |
9e530bcd | 8398 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8399 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8400 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8401 | fi |
8402 | ;; | |
8403 | esac | |
8404 | fi | |
1cd0b716 | 8405 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8406 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8407 | case $target in |
48215350 | 8408 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8409 | *) ;; |
8410 | esac | |
48215350 | 8411 | |
9a02962b DK |
8412 | fi |
8413 | ||
d7f09764 | 8414 | |
45b3824d TS |
8415 | # Check whether --enable-linker-plugin-configure-flags was given. |
8416 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8417 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8418 | else | |
8419 | extra_linker_plugin_configure_flags= | |
8420 | fi | |
8421 | ||
8422 | ||
8423 | # Check whether --enable-linker-plugin-flags was given. | |
8424 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8425 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8426 | else | |
8427 | extra_linker_plugin_flags= | |
8428 | fi | |
8429 | ||
8430 | ||
8431 | ||
cdfee50a NS |
8432 | # Enable --enable-host-shared. |
8433 | # Checked early to determine whether jit is an 'all' language | |
8434 | # Check whether --enable-host-shared was given. | |
8435 | if test "${enable_host_shared+set}" = set; then : | |
8436 | enableval=$enable_host_shared; host_shared=$enableval | |
8437 | else | |
8438 | host_shared=no | |
8439 | fi | |
8440 | ||
8441 | ||
f8bf9252 | 8442 | |
0823efed | 8443 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8444 | stage1_languages=,c, |
2805b53a | 8445 | |
00020c16 | 8446 | # Target libraries that we bootstrap. |
ad1e5170 | 8447 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8448 | |
55ffb5ed NN |
8449 | # Figure out what language subdirectories are present. |
8450 | # Look if the user specified --enable-languages="..."; if not, use | |
8451 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8452 | # go away some day. | |
8453 | # NB: embedded tabs in this IF block -- do not untabify | |
8454 | if test -d ${srcdir}/gcc; then | |
8455 | if test x"${enable_languages+set}" != xset; then | |
8456 | if test x"${LANGUAGES+set}" = xset; then | |
8457 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8458 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8459 | else |
cdfee50a | 8460 | enable_languages=default |
55ffb5ed NN |
8461 | fi |
8462 | else | |
8463 | if test x"${enable_languages}" = x || | |
8464 | test x"${enable_languages}" = xyes; | |
8465 | then | |
6b1786aa | 8466 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8467 | exit 1 |
8468 | fi | |
8469 | fi | |
8470 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8471 | ||
7f26dfa3 FXC |
8472 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8473 | # and make the substitution. | |
8474 | case ,${enable_languages}, in | |
8475 | *,f95,*) | |
6b1786aa | 8476 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8477 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8478 | ;; | |
8479 | esac | |
8480 | ||
0823efed DN |
8481 | # If bootstrapping, C++ must be enabled. |
8482 | case ",$enable_languages,:$enable_bootstrap" in | |
8483 | *,c++,*:*) ;; | |
8484 | *:yes) | |
ff3ac0f4 ILT |
8485 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8486 | enable_languages="${enable_languages},c++" | |
8487 | else | |
22e05272 | 8488 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8489 | fi |
8490 | ;; | |
8491 | esac | |
8492 | ||
55ffb5ed NN |
8493 | # First scan to see if an enabled language requires some other language. |
8494 | # We assume that a given config-lang.in will list all the language | |
8495 | # front ends it requires, even if some are required indirectly. | |
8496 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8497 | case ${lang_frag} in | |
8498 | ..) ;; | |
8499 | # The odd quoting in the next line works around | |
8500 | # an apparent bug in bash 1.12 on linux. | |
8501 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8502 | *) | |
69ecd18f ILT |
8503 | # From the config-lang.in, get $language, $lang_requires, and |
8504 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8505 | language= |
8506 | lang_requires= | |
69ecd18f | 8507 | lang_requires_boot_languages= |
d4360477 NS |
8508 | # set srcdir during sourcing lang_frag to the gcc dir. |
8509 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8510 | # polutes this shell | |
8511 | saved_srcdir=${srcdir} | |
8512 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8513 | srcdir=${saved_srcdir} | |
69ecd18f | 8514 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8515 | case ,${enable_languages}, in |
8516 | *,$other,*) ;; | |
cdfee50a | 8517 | *,default,*) ;; |
55ffb5ed NN |
8518 | *,all,*) ;; |
8519 | *,$language,*) | |
8520 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8521 | enable_languages="${enable_languages},${other}" | |
8522 | ;; | |
8523 | esac | |
8524 | done | |
69ecd18f ILT |
8525 | for other in ${lang_requires_boot_languages} ; do |
8526 | if test "$other" != "c"; then | |
8527 | case ,${enable_stage1_languages}, in | |
8528 | *,$other,*) ;; | |
cdfee50a | 8529 | *,default,*) ;; |
69ecd18f ILT |
8530 | *,all,*) ;; |
8531 | *) | |
8532 | case ,${enable_languages}, in | |
8533 | *,$language,*) | |
8534 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8535 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8536 | ;; | |
8537 | esac | |
8538 | ;; | |
8539 | esac | |
8540 | fi | |
8541 | done | |
55ffb5ed NN |
8542 | ;; |
8543 | esac | |
8544 | done | |
8545 | ||
e1888513 | 8546 | new_enable_languages=,c, |
d7f09764 DN |
8547 | |
8548 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8549 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8550 | case ,${enable_languages}, in |
8551 | *,lto,*) ;; | |
8552 | *) enable_languages="${enable_languages},lto" ;; | |
8553 | esac | |
1cd0b716 | 8554 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8555 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8556 | fi |
8557 | fi | |
8558 | ||
426c1eb0 TS |
8559 | # If we're building an offloading compiler, add the LTO front end. |
8560 | if test x"$enable_as_accelerator_for" != x ; then | |
8561 | case ,${enable_languages}, in | |
8562 | *,lto,*) ;; | |
8563 | *) enable_languages="${enable_languages},lto" ;; | |
8564 | esac | |
8565 | fi | |
8566 | ||
cdfee50a | 8567 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8568 | potential_languages=,c, |
55ffb5ed | 8569 | |
4da3b0f8 ILT |
8570 | enabled_target_libs= |
8571 | disabled_target_libs= | |
8572 | ||
55ffb5ed NN |
8573 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8574 | case ${lang_frag} in | |
8575 | ..) ;; | |
8576 | # The odd quoting in the next line works around | |
8577 | # an apparent bug in bash 1.12 on linux. | |
8578 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8579 | *) | |
1c710c3c | 8580 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8581 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8582 | language= |
8583 | target_libs= | |
8584 | lang_dirs= | |
1546bb64 | 8585 | subdir_requires= |
e1888513 PB |
8586 | boot_language=no |
8587 | build_by_default=yes | |
d4360477 NS |
8588 | # set srcdir during sourcing. See above about save & restore |
8589 | saved_srcdir=${srcdir} | |
8590 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8591 | srcdir=${saved_srcdir} | |
e1888513 PB |
8592 | if test x${language} = x; then |
8593 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8594 | exit 1 | |
8595 | fi | |
8596 | ||
78767fd9 | 8597 | if test "$language" = "c++"; then |
0823efed | 8598 | boot_language=yes |
00020c16 ILT |
8599 | fi |
8600 | ||
178f875a | 8601 | add_this_lang=no |
cdfee50a NS |
8602 | # C is always enabled, so no need to add it again |
8603 | if test "$language" != "c"; then | |
8604 | case ,${enable_languages}, in | |
8605 | *,${language},*) | |
8606 | # Language was explicitly selected; include it | |
d4a10d0a | 8607 | add_this_lang=yes |
cdfee50a NS |
8608 | ;; |
8609 | *,all,*) | |
8610 | # All languages are enabled | |
8611 | add_this_lang=all | |
8612 | ;; | |
8613 | *,default,*) | |
8614 | # 'default' was selected, select it if it is a default language | |
178f875a | 8615 | add_this_lang=${build_by_default} |
cdfee50a NS |
8616 | ;; |
8617 | esac | |
8618 | fi | |
6de9cd9a | 8619 | |
1546bb64 | 8620 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8621 | for i in $subdir_requires; do |
b6348cb3 | 8622 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8623 | case ${add_this_lang} in |
8624 | yes) | |
1546bb64 | 8625 | # Specifically requested language; tell them. |
22e05272 | 8626 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8627 | ;; |
cdfee50a NS |
8628 | all) |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8630 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8631 | add_this_lang=unsupported | |
8632 | ;; | |
1546bb64 PB |
8633 | *) |
8634 | # Silently disable. | |
e1888513 | 8635 | add_this_lang=unsupported |
1546bb64 PB |
8636 | ;; |
8637 | esac | |
8638 | done | |
8639 | ||
e1888513 | 8640 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8641 | case ${add_this_lang}:${language}:${have_gnat} in |
8642 | yes:ada:no) | |
e1888513 | 8643 | # Specifically requested language; tell them. |
22e05272 | 8644 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8645 | ;; |
cdfee50a NS |
8646 | all:ada:no) |
8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8648 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8649 | add_this_lang=unsupported | |
8650 | ;; | |
e1888513 PB |
8651 | *:ada:no) |
8652 | # Silently disable. | |
8653 | add_this_lang=unsupported | |
8654 | ;; | |
8655 | esac | |
8656 | ||
cdfee50a | 8657 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8658 | # but not if building for Mingw. All code in Windows |
8659 | # is position independent code (PIC). | |
c83027f3 NB |
8660 | case $target in |
8661 | *mingw*) ;; | |
8662 | *) | |
8663 | case ${add_this_lang}:${language}:${host_shared} in | |
8664 | yes:jit:no) | |
8665 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8666 | as_fn_error $? " |
cdfee50a NS |
8667 | Enabling language \"jit\" requires --enable-host-shared. |
8668 | ||
8669 | --enable-host-shared typically slows the rest of the compiler down by | |
8670 | a few %, so you must explicitly enable it. | |
8671 | ||
8672 | If you want to build both the jit and the regular compiler, it is often | |
8673 | best to do this via two separate configure/builds, in separate | |
8674 | directories, to avoid imposing the performance cost of | |
8675 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8676 | ;; |
8677 | all:jit:no) | |
8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8679 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8680 | add_this_lang=unsupported |
8681 | ;; | |
8682 | *:jit:no) | |
8683 | # Silently disable. | |
8684 | add_this_lang=unsupported | |
8685 | ;; | |
8686 | esac | |
8687 | ;; | |
8688 | esac | |
cdfee50a NS |
8689 | |
8690 | # Disable a language that is unsupported by the target. | |
8691 | case "${add_this_lang}: $unsupported_languages " in | |
8692 | no:*) ;; | |
8693 | unsupported:*) ;; | |
8694 | *:*" $language "*) | |
8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8696 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8697 | add_this_lang=unsupported |
4fab7234 HPN |
8698 | ;; |
8699 | esac | |
8700 | ||
6de9cd9a | 8701 | case $add_this_lang in |
e1888513 | 8702 | unsupported) |
55ffb5ed | 8703 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8704 | disabled_target_libs="$disabled_target_libs $target_libs" |
8705 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8706 | ;; |
e1888513 PB |
8707 | no) |
8708 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8709 | disabled_target_libs="$disabled_target_libs $target_libs" |
8710 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8711 | potential_languages="${potential_languages}${language}," |
8712 | ;; | |
cdfee50a | 8713 | all|yes) |
e1888513 PB |
8714 | new_enable_languages="${new_enable_languages}${language}," |
8715 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8716 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8717 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8718 | case "${boot_language}:,$enable_stage1_languages," in |
8719 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8720 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8721 | case ",$stage1_languages," in |
8722 | *,$language,* | ,yes, | ,all,) ;; | |
8723 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8724 | esac | |
00020c16 ILT |
8725 | # We need to bootstrap any supporting libraries. |
8726 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
8727 | ;; |
8728 | esac | |
8729 | ;; | |
55ffb5ed NN |
8730 | esac |
8731 | ;; | |
8732 | esac | |
8733 | done | |
8734 | ||
4da3b0f8 ILT |
8735 | # Add target libraries which are only needed for disabled languages |
8736 | # to noconfigdirs. | |
8737 | if test -n "$disabled_target_libs"; then | |
8738 | for dir in $disabled_target_libs; do | |
8739 | case " $enabled_target_libs " in | |
8740 | *" ${dir} "*) ;; | |
8741 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8742 | esac | |
8743 | done | |
8744 | fi | |
8745 | ||
5213506e RW |
8746 | # Check whether --enable-stage1-languages was given. |
8747 | if test "${enable_stage1_languages+set}" = set; then : | |
8748 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8749 | ,no,|,,) |
8750 | # Set it to something that will have no effect in the loop below | |
8751 | enable_stage1_languages=c ;; | |
8752 | ,yes,) | |
8753 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8754 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8755 | *,all,*) | |
8756 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8757 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8758 | esac | |
8759 | ||
8760 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8761 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
8762 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
8763 | case $potential_languages in | |
8764 | *,$i,*) | |
8765 | case $stage1_languages in | |
8766 | *,$i,*) ;; | |
8767 | *) stage1_languages="$stage1_languages$i," ;; | |
8768 | esac ;; | |
8769 | *) | |
8770 | case $missing_languages in | |
8771 | *,$i,*) ;; | |
8772 | *) missing_languages="$missing_languages$i," ;; | |
8773 | esac ;; | |
8774 | esac | |
8775 | done | |
5213506e RW |
8776 | fi |
8777 | ||
e1888513 PB |
8778 | |
8779 | # Remove leading/trailing commas that were added for simplicity | |
8780 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 8781 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
8782 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
8783 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
8784 | ||
55ffb5ed | 8785 | if test "x$missing_languages" != x; then |
22e05272 | 8786 | as_fn_error $? " |
0cf085e4 | 8787 | The following requested languages could not be built: ${missing_languages} |
5213506e | 8788 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 8789 | fi |
55ffb5ed NN |
8790 | if test "x$new_enable_languages" != "x$enable_languages"; then |
8791 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 8792 | enable_languages="$new_enable_languages" |
55ffb5ed | 8793 | fi |
e1888513 | 8794 | |
1c710c3c | 8795 | |
b2eaac4a | 8796 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
8797 | fi |
8798 | ||
27079765 AH |
8799 | # Handle --disable-<component> generically. |
8800 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
8801 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
8802 | varname=`echo $dirname | sed -e s/+/_/g` |
8803 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
8804 | noconfigdirs="$noconfigdirs $dir" |
8805 | fi | |
8806 | done | |
8807 | ||
43c40f3e RO |
8808 | # Check for Boehm's garbage collector |
8809 | # Check whether --enable-objc-gc was given. | |
8810 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
8811 | enableval=$enable_objc_gc; |
8812 | fi | |
8813 | ||
8814 | ||
8815 | # Check whether --with-target-bdw-gc was given. | |
8816 | if test "${with_target_bdw_gc+set}" = set; then : | |
8817 | withval=$with_target_bdw_gc; | |
8818 | fi | |
8819 | ||
8820 | ||
8821 | # Check whether --with-target-bdw-gc-include was given. | |
8822 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
8823 | withval=$with_target_bdw_gc_include; | |
8824 | fi | |
8825 | ||
8826 | ||
8827 | # Check whether --with-target-bdw-gc-lib was given. | |
8828 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
8829 | withval=$with_target_bdw_gc_lib; | |
8830 | fi | |
8831 | ||
8832 | ||
8833 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
8835 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
8836 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
8838 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
8839 | else |
8840 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 8841 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 8842 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 8843 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
8844 | else |
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
8846 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
8847 | fi | |
8848 | fi | |
43c40f3e RO |
8849 | esac |
8850 | ||
5e9d6aa4 | 8851 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 8852 | case ,${enable_languages}, in |
1007a55c | 8853 | *,c++,*) |
5e9d6aa4 | 8854 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
8855 | case "${noconfigdirs}" in |
8856 | *target-libstdc++-v3*) | |
5e9d6aa4 | 8857 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
8858 | ;; |
8859 | *) ;; | |
8860 | esac | |
8861 | ;; | |
99776ebd | 8862 | *) |
5e9d6aa4 | 8863 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
8864 | ;; |
8865 | esac | |
8866 | ||
ee6a22df L |
8867 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
8868 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
8869 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
8870 | ||
8871 | notsupp="" | |
8872 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 8873 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
8874 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
8875 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
8876 | if test -r $srcdir/$dirname/configure ; then | |
8877 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8878 | true | |
8879 | else | |
8880 | notsupp="$notsupp $dir" | |
8881 | fi | |
8882 | fi | |
8883 | fi | |
ee6a22df L |
8884 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
8885 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
8886 | if test -r $srcdir/$dirname/configure ; then | |
8887 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8888 | true | |
8889 | else | |
8890 | notsupp="$notsupp $dir" | |
8891 | fi | |
8892 | fi | |
8893 | fi | |
55ffb5ed NN |
8894 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
8895 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
8896 | if test -r $srcdir/$dirname/configure ; then | |
8897 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8898 | true | |
8899 | else | |
8900 | notsupp="$notsupp $dir" | |
8901 | fi | |
8902 | fi | |
8903 | fi | |
8904 | done | |
8905 | ||
55ffb5ed NN |
8906 | # Quietly strip out all directories which aren't configurable in this tree. |
8907 | # This relies on all configurable subdirectories being autoconfiscated, which | |
8908 | # is now the case. | |
23f6b2f9 PB |
8909 | build_configdirs_all="$build_configdirs" |
8910 | build_configdirs= | |
8911 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 8912 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
8913 | if test -f ${srcdir}/$j/configure ; then |
8914 | build_configdirs="${build_configdirs} $i" | |
8915 | fi | |
8916 | done | |
8917 | ||
55ffb5ed NN |
8918 | configdirs_all="$configdirs" |
8919 | configdirs= | |
8920 | for i in ${configdirs_all} ; do | |
8921 | if test -f ${srcdir}/$i/configure ; then | |
8922 | configdirs="${configdirs} $i" | |
8923 | fi | |
8924 | done | |
23f6b2f9 | 8925 | |
55ffb5ed NN |
8926 | target_configdirs_all="$target_configdirs" |
8927 | target_configdirs= | |
8928 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 8929 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
8930 | if test -f ${srcdir}/$j/configure ; then |
8931 | target_configdirs="${target_configdirs} $i" | |
8932 | fi | |
8933 | done | |
8934 | ||
45b3824d TS |
8935 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
8936 | # so we have to add it after the preceding checks. | |
8937 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
8938 | then | |
8939 | case " $configdirs " in | |
8940 | *" libiberty "*) | |
8941 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
8942 | configdirs="$configdirs libiberty-linker-plugin" | |
8943 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
8944 | --with-libiberty=../libiberty-linker-plugin";; | |
8945 | *) | |
22e05272 | 8946 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
8947 | esac |
8948 | fi | |
8949 | ||
fca38047 TS |
8950 | # Sometimes we have special requirements for the host libiberty. |
8951 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 8952 | extra_host_zlib_configure_flags= |
fca38047 TS |
8953 | case " $configdirs " in |
8954 | *" lto-plugin "* | *" libcc1 "*) | |
8955 | # When these are to be built as shared libraries, the same applies to | |
8956 | # libiberty. | |
8957 | extra_host_libiberty_configure_flags=--enable-shared | |
8958 | ;; | |
1c01ebf6 L |
8959 | *" bfd "*) |
8960 | # When bfd is to be built as a shared library, the same applies to | |
8961 | # zlib. | |
8962 | if test "$enable_shared" = "yes"; then | |
8963 | extra_host_zlib_configure_flags=--enable-host-shared | |
8964 | fi | |
8965 | ;; | |
fca38047 TS |
8966 | esac |
8967 | ||
8968 | ||
1c01ebf6 | 8969 | |
55ffb5ed NN |
8970 | # Produce a warning message for the subdirs we can't configure. |
8971 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
8972 | # FSF releases, it's important to let people know when their machine isn't | |
8973 | # supported by the one or two programs in a package. | |
8974 | ||
8975 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
8976 | # If $appdirs is non-empty, at least one of those directories must still | |
8977 | # be configured, or we error out. (E.g., if the gas release supports a | |
8978 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
8979 | # pretend that all is well.) | |
8980 | if test -n "$appdirs" ; then | |
8981 | for dir in $appdirs ; do | |
8982 | if test -r $dir/Makefile.in ; then | |
8983 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8984 | appdirs="" | |
8985 | break | |
8986 | fi | |
23f6b2f9 | 8987 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
8988 | appdirs="" |
8989 | break | |
8990 | fi | |
8991 | fi | |
8992 | done | |
8993 | if test -n "$appdirs" ; then | |
8994 | echo "*** This configuration is not supported by this package." 1>&2 | |
8995 | exit 1 | |
8996 | fi | |
8997 | fi | |
8998 | # Okay, some application will build, or we don't care to check. Still | |
8999 | # notify of subdirs not getting built. | |
9000 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9001 | echo " ${notsupp}" 1>&2 | |
9002 | echo " (Any other directories should still work fine.)" 1>&2 | |
9003 | fi | |
9004 | ||
9005 | case "$host" in | |
9006 | *msdosdjgpp*) | |
9007 | enable_gdbtk=no ;; | |
9008 | esac | |
9009 | ||
c3a86da9 DJ |
9010 | # To find our prefix, in gcc_cv_tool_prefix. |
9011 | ||
9012 | # The user is always right. | |
9013 | if test "${PATH_SEPARATOR+set}" != set; then | |
9014 | echo "#! /bin/sh" >conf$$.sh | |
9015 | echo "exit 0" >>conf$$.sh | |
9016 | chmod +x conf$$.sh | |
9017 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9018 | PATH_SEPARATOR=';' | |
9019 | else | |
9020 | PATH_SEPARATOR=: | |
9021 | fi | |
9022 | rm -f conf$$.sh | |
9023 | fi | |
9024 | ||
9025 | ||
3c36aa6b JJ |
9026 | get_gcc_base_ver="cat" |
9027 | ||
9028 | # Check whether --with-gcc-major-version-only was given. | |
9029 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9030 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9031 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9032 | fi |
9033 | ||
9034 | fi | |
9035 | ||
9036 | ||
9037 | ||
9038 | ||
9039 | ||
c3a86da9 DJ |
9040 | |
9041 | if test "x$exec_prefix" = xNONE; then | |
9042 | if test "x$prefix" = xNONE; then | |
9043 | gcc_cv_tool_prefix=$ac_default_prefix | |
9044 | else | |
9045 | gcc_cv_tool_prefix=$prefix | |
9046 | fi | |
9047 | else | |
9048 | gcc_cv_tool_prefix=$exec_prefix | |
9049 | fi | |
9050 | ||
9051 | # If there is no compiler in the tree, use the PATH only. In any | |
9052 | # case, if there is no compiler in the tree nobody should use | |
9053 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9054 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9055 | if test x$with_gcc_major_version_only = xyes ; then |
9056 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9057 | else | |
9058 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9059 | fi | |
c3a86da9 DJ |
9060 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9061 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9062 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9063 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9064 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9065 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9066 | else | |
9067 | gcc_cv_tool_dirs= | |
9068 | fi | |
9069 | ||
9070 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9071 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9072 | fi | |
9073 | ||
9074 | ||
9075 | ||
55ffb5ed NN |
9076 | copy_dirs= |
9077 | ||
1c710c3c | 9078 | |
5213506e RW |
9079 | # Check whether --with-build-sysroot was given. |
9080 | if test "${with_build_sysroot+set}" = set; then : | |
9081 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9082 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9083 | fi | |
9084 | else | |
9085 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9086 | fi |
526635cb MM |
9087 | |
9088 | ||
c8aea42c | 9089 | |
5213506e RW |
9090 | |
9091 | # Check whether --with-debug-prefix-map was given. | |
9092 | if test "${with_debug_prefix_map+set}" = set; then : | |
9093 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9094 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9095 | for debug_map in $withval; do | |
9096 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9097 | done | |
9098 | fi | |
9099 | else | |
9100 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9101 | fi |
9102 | ||
c8aea42c PB |
9103 | |
9104 | ||
1c8bd6a3 PB |
9105 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9106 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9107 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9108 | # We want to ensure that TARGET libraries (which we know are built with | |
9109 | # gcc) are built with "-O2 -g", so include those options when setting | |
9110 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9111 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9112 | if test "x${is_cross_compiler}" = xyes; then |
9113 | CFLAGS_FOR_TARGET="-g -O2" | |
9114 | else | |
9115 | CFLAGS_FOR_TARGET=$CFLAGS | |
9116 | case " $CFLAGS " in | |
9117 | *" -O2 "*) ;; | |
9118 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9119 | esac | |
9120 | case " $CFLAGS " in | |
9121 | *" -g "* | *" -g3 "*) ;; | |
9122 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9123 | esac | |
9124 | fi | |
1c8bd6a3 PB |
9125 | fi |
9126 | ||
9127 | ||
9128 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9129 | if test "x${is_cross_compiler}" = xyes; then |
9130 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9131 | else | |
9132 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9133 | case " $CXXFLAGS " in | |
9134 | *" -O2 "*) ;; | |
9135 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9136 | esac | |
9137 | case " $CXXFLAGS " in | |
9138 | *" -g "* | *" -g3 "*) ;; | |
9139 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9140 | esac | |
9141 | fi | |
1c8bd6a3 PB |
9142 | fi |
9143 | ||
9144 | ||
6f57bdf6 DK |
9145 | |
9146 | ||
55ffb5ed NN |
9147 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9148 | # the named directory are copied to $(tooldir)/sys-include. | |
9149 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9150 | if test x${is_cross_compiler} = xno ; then | |
9151 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9152 | exit 1 | |
9153 | fi | |
9154 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9155 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9156 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9157 | fi |
9158 | fi | |
9159 | ||
9160 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9161 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9162 | # are permitted. | |
9163 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9164 | if test x${is_cross_compiler} = xno ; then | |
9165 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9166 | exit 1 | |
9167 | fi | |
9168 | if test x"${with_libs}" != xyes ; then | |
9169 | # Copy the libraries in reverse order, so that files in the first named | |
9170 | # library override files in subsequent libraries. | |
c3a86da9 | 9171 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9172 | for l in ${with_libs}; do |
1c710c3c | 9173 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9174 | done |
9175 | fi | |
9176 | fi | |
9177 | ||
d7f09764 | 9178 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9179 | # |
9180 | # This is done by determining whether or not the appropriate directory | |
9181 | # is available, and by checking whether or not specific configurations | |
9182 | # have requested that this magic not happen. | |
1c710c3c DJ |
9183 | # |
9184 | # The command line options always override the explicit settings in | |
6b1786aa | 9185 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9186 | # |
1c710c3c | 9187 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9188 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9189 | # --without-gnu-ld options for the configure script. Similarly, if |
9190 | # the default is to use the included zlib and you don't want to do that, | |
9191 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9192 | |
9193 | if test x${use_gnu_as} = x && | |
9194 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9195 | with_gnu_as=yes | |
9196 | extra_host_args="$extra_host_args --with-gnu-as" | |
9197 | fi | |
9198 | ||
9199 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9200 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9201 | with_gnu_ld=yes |
9202 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9203 | fi | |
9204 | ||
d7f09764 DN |
9205 | if test x${use_included_zlib} = x && |
9206 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9207 | : | |
9208 | else | |
9209 | with_system_zlib=yes | |
9210 | extra_host_args="$extra_host_args --with-system-zlib" | |
9211 | fi | |
9212 | ||
e8b05380 PB |
9213 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9214 | # can detect this case. | |
9215 | ||
9216 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9217 | with_newlib=yes | |
9218 | extra_host_args="$extra_host_args --with-newlib" | |
9219 | fi | |
9220 | ||
55ffb5ed NN |
9221 | # Handle ${copy_dirs} |
9222 | set fnord ${copy_dirs} | |
9223 | shift | |
9224 | while test $# != 0 ; do | |
9225 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9226 | : | |
9227 | else | |
9228 | echo Copying $1 to $2 | |
9229 | ||
9230 | # Use the install script to create the directory and all required | |
9231 | # parent directories. | |
9232 | if test -d $2 ; then | |
9233 | : | |
9234 | else | |
9235 | echo >config.temp | |
9236 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9237 | fi | |
9238 | ||
9239 | # Copy the directory, assuming we have tar. | |
9240 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9241 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9242 | ||
9243 | # It is the responsibility of the user to correctly adjust all | |
9244 | # symlinks. If somebody can figure out how to handle them correctly | |
9245 | # here, feel free to add the code. | |
9246 | ||
9247 | echo $1 > $2/COPIED | |
9248 | fi | |
9249 | shift; shift | |
9250 | done | |
9251 | ||
e8b05380 PB |
9252 | # Determine a target-dependent exec_prefix that the installed |
9253 | # gcc will search in. Keep this list sorted by triplet, with | |
9254 | # the *-*-osname triplets last. | |
9255 | md_exec_prefix= | |
9256 | case "${target}" in | |
30b74385 | 9257 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9258 | md_exec_prefix=/dev/env/DJDIR/bin |
9259 | ;; | |
e8b05380 | 9260 | *-*-hpux* | \ |
e8b05380 | 9261 | *-*-nto-qnx* | \ |
6de66370 | 9262 | *-*-solaris2*) |
e8b05380 PB |
9263 | md_exec_prefix=/usr/ccs/bin |
9264 | ;; | |
9265 | esac | |
9266 | ||
671aa708 NN |
9267 | extra_arflags_for_target= |
9268 | extra_nmflags_for_target= | |
9269 | extra_ranlibflags_for_target= | |
9270 | target_makefile_frag=/dev/null | |
9271 | case "${target}" in | |
58e24147 AM |
9272 | spu-*-*) |
9273 | target_makefile_frag="config/mt-spu" | |
9274 | ;; | |
d896cc4d | 9275 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9276 | target_makefile_frag="config/mt-sde" |
9277 | ;; | |
1ec3b87b RS |
9278 | mipsisa*-*-elfoabi*) |
9279 | target_makefile_frag="config/mt-mips-elfoabi" | |
9280 | ;; | |
08d0963a RS |
9281 | mips*-*-*linux* | mips*-*-gnu*) |
9282 | target_makefile_frag="config/mt-mips-gnu" | |
9283 | ;; | |
707f1839 SL |
9284 | nios2-*-elf*) |
9285 | target_makefile_frag="config/mt-nios2-elf" | |
9286 | ;; | |
76052545 EB |
9287 | *-*-linux-android*) |
9288 | target_makefile_frag="config/mt-android" | |
9289 | ;; | |
416ac4d4 | 9290 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9291 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9292 | ;; |
9293 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9294 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9295 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9296 | # harmless if we're using GNU nm or ar. | |
9297 | extra_arflags_for_target=" -X32_64" | |
9298 | extra_nmflags_for_target=" -B -X32_64" | |
9299 | ;; | |
671aa708 NN |
9300 | esac |
9301 | ||
9302 | alphaieee_frag=/dev/null | |
9303 | case $target in | |
9304 | alpha*-*-*) | |
9305 | # This just makes sure to use the -mieee option to build target libs. | |
9306 | # This should probably be set individually by each library. | |
9307 | alphaieee_frag="config/mt-alphaieee" | |
9308 | ;; | |
9309 | esac | |
9310 | ||
9311 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9312 | # the target libraries, similarly if it is not specified, use -Os | |
9313 | # on selected platforms. | |
9314 | ospace_frag=/dev/null | |
9315 | case "${enable_target_optspace}:${target}" in | |
9316 | yes:*) | |
9317 | ospace_frag="config/mt-ospace" | |
9318 | ;; | |
9319 | :d30v-*) | |
9320 | ospace_frag="config/mt-d30v" | |
9321 | ;; | |
d9063947 | 9322 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9323 | ospace_frag="config/mt-ospace" |
9324 | ;; | |
9325 | no:* | :*) | |
9326 | ;; | |
9327 | *) | |
9328 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9329 | ;; | |
9330 | esac | |
9331 | ||
671aa708 NN |
9332 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9333 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9334 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9335 | build_tooldir=${tooldir} |
9336 | ||
671aa708 NN |
9337 | # Create a .gdbinit file which runs the one in srcdir |
9338 | # and tells GDB to look there for source files. | |
9339 | ||
9340 | if test -r ${srcdir}/.gdbinit ; then | |
9341 | case ${srcdir} in | |
9342 | .) ;; | |
9343 | *) cat > ./.gdbinit <<EOF | |
9344 | # ${NO_EDIT} | |
9345 | dir ${srcdir} | |
9346 | dir . | |
9347 | source ${srcdir}/.gdbinit | |
9348 | EOF | |
9349 | ;; | |
9350 | esac | |
9351 | fi | |
9352 | ||
671aa708 NN |
9353 | # Make sure that the compiler is able to generate an executable. If it |
9354 | # can't, we are probably in trouble. We don't care whether we can run the | |
9355 | # executable--we might be using a cross compiler--we only care whether it | |
9356 | # can be created. At this point the main configure script has set CC. | |
9357 | we_are_ok=no | |
9358 | echo "int main () { return 0; }" > conftest.c | |
9359 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9360 | if test $? = 0 ; then | |
9361 | if test -s conftest || test -s conftest.exe ; then | |
9362 | we_are_ok=yes | |
9363 | fi | |
1c710c3c | 9364 | fi |
671aa708 NN |
9365 | case $we_are_ok in |
9366 | no) | |
9367 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9368 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9369 | rm -f conftest* | |
9370 | exit 1 | |
9371 | ;; | |
9372 | esac | |
9373 | rm -f conftest* | |
9374 | ||
d89f0ad6 | 9375 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9376 | case "${host}" in |
9377 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9378 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9379 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9380 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9381 | esac | |
9382 | ||
d89f0ad6 AL |
9383 | # On systems where the dynamic library environment variable is PATH, |
9384 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9385 | # built executables to PATH. | |
9386 | if test "$RPATH_ENVVAR" = PATH; then | |
9387 | GCC_SHLIB_SUBDIR=/shlib | |
9388 | else | |
9389 | GCC_SHLIB_SUBDIR= | |
9390 | fi | |
9391 | ||
beeda1d9 JJ |
9392 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9393 | case $enable_bootstrap in | |
9394 | yes) | |
9395 | bootstrap_suffix=bootstrap | |
9396 | BUILD_CONFIG=bootstrap-debug | |
9397 | ;; | |
9398 | no) | |
9399 | bootstrap_suffix=no-bootstrap | |
9400 | BUILD_CONFIG= | |
9401 | ;; | |
9402 | esac | |
9403 | ||
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9405 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9406 | ||
9407 | ||
9408 | # Check whether --with-build-config was given. | |
9409 | if test "${with_build_config+set}" = set; then : | |
9410 | withval=$with_build_config; case $with_build_config in | |
9411 | yes) with_build_config= ;; | |
9412 | no) with_build_config= BUILD_CONFIG= ;; | |
9413 | esac | |
9414 | fi | |
9415 | ||
9416 | ||
9417 | if test "x${with_build_config}" != x; then | |
9418 | BUILD_CONFIG=$with_build_config | |
9419 | else | |
9420 | case $BUILD_CONFIG in | |
9421 | bootstrap-debug) | |
9422 | if echo "int f (void) { return 0; }" > conftest.c && | |
9423 | ${CC} -c conftest.c && | |
9424 | mv conftest.o conftest.o.g0 && | |
9425 | ${CC} -c -g conftest.c && | |
9426 | mv conftest.o conftest.o.g && | |
9427 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9428 | : | |
9429 | else | |
9430 | BUILD_CONFIG= | |
9431 | fi | |
9432 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9433 | ;; | |
9434 | esac | |
9435 | fi | |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9437 | $as_echo "$BUILD_CONFIG" >&6; } | |
9438 | ||
9439 | ||
9440 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9442 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9443 | # Check whether --enable-vtable-verify was given. | |
9444 | if test "${enable_vtable_verify+set}" = set; then : | |
9445 | enableval=$enable_vtable_verify; case "$enableval" in | |
9446 | yes) enable_vtable_verify=yes ;; | |
9447 | no) enable_vtable_verify=no ;; | |
9448 | *) enable_vtable_verify=no;; | |
9449 | esac | |
9450 | else | |
9451 | enable_vtable_verify=no | |
9452 | fi | |
9453 | ||
9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9455 | $as_echo "$enable_vtable_verify" >&6; } | |
9456 | ||
671aa708 NN |
9457 | # Record target_configdirs and the configure arguments for target and |
9458 | # build configuration in Makefile. | |
9459 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9460 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9461 | bootstrap_fixincludes=no |
671aa708 | 9462 | |
ad1e5170 JR |
9463 | # If we are building libgomp, bootstrap it. |
9464 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9465 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9466 | fi | |
9467 | ||
beeda1d9 JJ |
9468 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9469 | # or bootstrap-ubsan, bootstrap it. | |
9470 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9471 | case "$BUILD_CONFIG" in | |
170e618e | 9472 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9473 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9474 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9475 | ;; |
9476 | esac | |
ac8701fe L |
9477 | fi |
9478 | ||
beeda1d9 JJ |
9479 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9480 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9481 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9482 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9483 | fi | |
9484 | ||
671aa708 NN |
9485 | # Determine whether gdb needs tk/tcl or not. |
9486 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9487 | # and in that case we want gdb to be built without tk. Ugh! | |
9488 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9489 | # so we should be able to put the 'maybe's in unconditionally and | |
9490 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9491 | # 100% sure that that's safe though. | |
e914a571 | 9492 | |
b4f96efe | 9493 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9494 | case "$enable_gdbtk" in |
9495 | no) | |
9496 | GDB_TK="" ;; | |
e914a571 AC |
9497 | yes) |
9498 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9499 | *) |
e914a571 AC |
9500 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9501 | # distro. Eventually someone will fix this and move Insight, nee | |
9502 | # gdbtk to a separate directory. | |
9503 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9504 | GDB_TK="${gdb_tk}" | |
9505 | else | |
9506 | GDB_TK="" | |
9507 | fi | |
9508 | ;; | |
671aa708 | 9509 | esac |
ef9db8d5 DJ |
9510 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9511 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9512 | |
f9d09df0 TT |
9513 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9514 | # else does, only include them if one of these is built. The Makefile | |
9515 | # provides the ordering, so it's enough here to add to the list. | |
9516 | case " ${configdirs} " in | |
9517 | *\ gdb\ *) | |
9518 | configdirs="${configdirs} gnulib gdbsupport" | |
9519 | ;; | |
9520 | *\ gdbserver\ *) | |
9521 | configdirs="${configdirs} gnulib gdbsupport" | |
9522 | ;; | |
9523 | esac | |
98e5be21 | 9524 | |
60975492 | 9525 | # Strip out unwanted targets. |
8b87bb96 NN |
9526 | |
9527 | # While at that, we remove Makefiles if we were started for recursive | |
9528 | # configuration, so that the top-level Makefile reconfigures them, | |
9529 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9530 | |
3e54529c RW |
9531 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9532 | # but now we're fixing up the Makefile ourselves with the additional | |
9533 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9534 | # extrasub-{build,host,target} not because there is any reason to split | |
9535 | # the substitutions up that way, but only to remain below the limit of | |
9536 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9537 | |
9538 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9539 | # configure will not warn you at all. | |
8b87bb96 | 9540 | |
79cd2b23 RW |
9541 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9542 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9543 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9544 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9545 | ;; |
9546 | esac | |
9547 | ||
3e54529c | 9548 | extrasub_build= |
23f6b2f9 | 9549 | for module in ${build_configdirs} ; do |
5607edfd PB |
9550 | if test -z "${no_recursion}" \ |
9551 | && test -f ${build_subdir}/${module}/Makefile; then | |
9552 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9553 | rm -f ${build_subdir}/${module}/Makefile | |
9554 | fi | |
3e54529c | 9555 | extrasub_build="$extrasub_build |
5607edfd PB |
9556 | /^@if build-$module\$/d |
9557 | /^@endif build-$module\$/d | |
da34ca3f | 9558 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9559 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9560 | /^@endif build-$module-$bootstrap_suffix\$/d |
9561 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9562 | done |
3e54529c | 9563 | extrasub_host= |
5607edfd | 9564 | for module in ${configdirs} ; do |
a6fbc1e2 | 9565 | if test -z "${no_recursion}"; then |
f063a9ed | 9566 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9567 | if test -f ${file}; then |
9568 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9569 | rm -f ${file} | |
9570 | fi | |
9571 | done | |
5607edfd | 9572 | fi |
9e1c8fc1 JJ |
9573 | case ${module},${bootstrap_fixincludes} in |
9574 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9575 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9576 | esac | |
3e54529c | 9577 | extrasub_host="$extrasub_host |
5607edfd PB |
9578 | /^@if $module\$/d |
9579 | /^@endif $module\$/d | |
da34ca3f | 9580 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9581 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9582 | /^@endif $module-$host_bootstrap_suffix\$/d |
9583 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9584 | done |
3e54529c | 9585 | extrasub_target= |
5607edfd PB |
9586 | for module in ${target_configdirs} ; do |
9587 | if test -z "${no_recursion}" \ | |
9588 | && test -f ${target_subdir}/${module}/Makefile; then | |
9589 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9590 | rm -f ${target_subdir}/${module}/Makefile | |
9591 | fi | |
00020c16 ILT |
9592 | |
9593 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9594 | case $bootstrap_target_libs in | |
9595 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9596 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9597 | esac | |
9598 | ||
3e54529c | 9599 | extrasub_target="$extrasub_target |
5607edfd PB |
9600 | /^@if target-$module\$/d |
9601 | /^@endif target-$module\$/d | |
da34ca3f | 9602 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9603 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9604 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9605 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9606 | done |
9607 | ||
3e54529c RW |
9608 | # Do the final fixup along with target modules. |
9609 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9610 | /^@if /,/^@endif /d |
9611 | /^@unless /d | |
9612 | /^@endunless /d" | |
671aa708 NN |
9613 | |
9614 | # Create the serialization dependencies. This uses a temporary file. | |
9615 | ||
5213506e RW |
9616 | # Check whether --enable-serial-configure was given. |
9617 | if test "${enable_serial_configure+set}" = set; then : | |
9618 | enableval=$enable_serial_configure; | |
9619 | fi | |
ade82b16 AO |
9620 | |
9621 | ||
bf1d3e81 NN |
9622 | case ${enable_serial_configure} in |
9623 | yes) | |
9624 | enable_serial_build_configure=yes | |
9625 | enable_serial_host_configure=yes | |
9626 | enable_serial_target_configure=yes | |
9627 | ;; | |
9628 | esac | |
9629 | ||
671aa708 NN |
9630 | # These force 'configure's to be done one at a time, to avoid problems |
9631 | # with contention over a shared config.cache. | |
9632 | rm -f serdep.tmp | |
ade82b16 | 9633 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9634 | olditem= |
bf1d3e81 | 9635 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9636 | for item in ${build_configdirs} ; do |
9637 | case ${olditem} in | |
9638 | "") ;; | |
ade82b16 | 9639 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9640 | esac |
9641 | olditem=${item} | |
9642 | done | |
9643 | olditem= | |
bf1d3e81 | 9644 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9645 | for item in ${configdirs} ; do |
9646 | case ${olditem} in | |
9647 | "") ;; | |
ade82b16 | 9648 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9649 | esac |
9650 | olditem=${item} | |
9651 | done | |
9652 | olditem= | |
bf1d3e81 | 9653 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9654 | for item in ${target_configdirs} ; do |
9655 | case ${olditem} in | |
9656 | "") ;; | |
ade82b16 | 9657 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9658 | esac |
9659 | olditem=${item} | |
9660 | done | |
9661 | serialization_dependencies=serdep.tmp | |
9662 | ||
9663 | ||
ade82b16 | 9664 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9665 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9666 | # might not want to pass down to subconfigures. The exception being |
9667 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9668 | # files altogether, and which should be passed on to subconfigures. | |
9669 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9670 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9671 | baseargs= |
29a63921 | 9672 | tbaseargs= |
1c710c3c DJ |
9673 | keep_next=no |
9674 | skip_next=no | |
9675 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9676 | for ac_arg |
9677 | do | |
1c710c3c DJ |
9678 | if test X"$skip_next" = X"yes"; then |
9679 | skip_next=no | |
9680 | continue | |
9681 | fi | |
9682 | if test X"$keep_next" = X"yes"; then | |
9683 | case $ac_arg in | |
9684 | *\'*) | |
9685 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9686 | esac | |
9687 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9688 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9689 | keep_next=no |
9690 | continue | |
9691 | fi | |
9692 | ||
9693 | # Handle separated arguments. Based on the logic generated by | |
9694 | # autoconf 2.59. | |
9695 | case $ac_arg in | |
9696 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9697 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9698 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9699 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9700 | separate_arg=no | |
9701 | ;; | |
9702 | -*) | |
9703 | separate_arg=yes | |
9704 | ;; | |
9705 | *) | |
9706 | separate_arg=no | |
9707 | ;; | |
9708 | esac | |
9709 | ||
29a63921 AO |
9710 | skip_targ=no |
9711 | case $ac_arg in | |
9712 | ||
9713 | --with-* | --without-*) | |
9714 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9715 | ||
9716 | case $libopt in | |
9717 | *[-_]include) | |
9718 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9719 | ;; | |
9720 | *[-_]lib) | |
9721 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9722 | ;; | |
9723 | *) | |
9724 | lib=$libopt | |
9725 | ;; | |
9726 | esac | |
9727 | ||
9728 | ||
9729 | case $lib in | |
4a9bb2aa | 9730 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9731 | # If we're processing --with-$lib, --with-$lib-include or |
9732 | # --with-$lib-lib, for one of the libs above, and target is | |
9733 | # different from host, don't pass the current argument to any | |
9734 | # target library's configure. | |
9735 | if test x$is_cross_compiler = xyes; then | |
9736 | skip_targ=yes | |
9737 | fi | |
9738 | ;; | |
9739 | esac | |
9740 | ;; | |
9741 | esac | |
9742 | ||
1c710c3c | 9743 | case "$ac_arg" in |
f1a036e4 NC |
9744 | --cache-file=/dev/null | \ |
9745 | -cache-file=/dev/null ) | |
9746 | # Handled here to avoid the test to skip args below. | |
9747 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9748 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
9749 | # Assert: $separate_arg should always be no. |
9750 | keep_next=$separate_arg | |
9751 | ;; | |
1c710c3c DJ |
9752 | --no*) |
9753 | continue | |
9754 | ;; | |
9755 | --c* | \ | |
9756 | --sr* | \ | |
9757 | --ho* | \ | |
9758 | --bu* | \ | |
9759 | --t* | \ | |
9760 | --program-* | \ | |
9761 | -cache_file* | \ | |
9762 | -srcdir* | \ | |
9763 | -host* | \ | |
9764 | -build* | \ | |
9765 | -target* | \ | |
9766 | -program-prefix* | \ | |
9767 | -program-suffix* | \ | |
9768 | -program-transform-name* ) | |
9769 | skip_next=$separate_arg | |
9770 | continue | |
9771 | ;; | |
9772 | -*) | |
9773 | # An option. Add it. | |
9774 | case $ac_arg in | |
9775 | *\'*) | |
9776 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9777 | esac | |
9778 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
9779 | if test X"$skip_targ" = Xno; then |
9780 | tbaseargs="$tbaseargs '$ac_arg'" | |
9781 | fi | |
1c710c3c DJ |
9782 | keep_next=$separate_arg |
9783 | ;; | |
9784 | *) | |
9785 | # Either a variable assignment, or a nonopt (triplet). Don't | |
9786 | # pass it down; let the Makefile handle this. | |
9787 | continue | |
9788 | ;; | |
9789 | esac | |
9790 | done | |
9791 | # Remove the initial space we just introduced and, as these will be | |
9792 | # expanded by make, quote '$'. | |
9793 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 9794 | |
43bb47c2 DJ |
9795 | # Add in --program-transform-name, after --program-prefix and |
9796 | # --program-suffix have been applied to it. Autoconf has already | |
9797 | # doubled dollar signs and backslashes in program_transform_name; we want | |
9798 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 9799 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
9800 | # Also, because we want to override the logic in subdir configure scripts to |
9801 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
9802 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
9803 | ${program_transform_name} | |
9804 | EOF_SED | |
9805 | gcc_transform_name=`cat conftestsed.out` | |
9806 | rm -f conftestsed.out | |
9807 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 9808 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
9809 | if test "$silent" = yes; then |
9810 | baseargs="$baseargs --silent" | |
29a63921 | 9811 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 9812 | fi |
0115d4a3 | 9813 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 9814 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 9815 | |
ffedf511 RW |
9816 | # Record and document user additions to sub configure arguments. |
9817 | ||
9818 | ||
9819 | ||
9820 | ||
671aa708 NN |
9821 | # For the build-side libraries, we just need to pretend we're native, |
9822 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
9823 | # desired. We can't even use the same cache file for all build-side |
9824 | # libraries, as they're compiled differently; some with C, some with | |
9825 | # C++ or with different feature-enabling options. | |
9826 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
9827 | |
9828 | # For host modules, accept cache file option, or specification as blank. | |
9829 | case "${cache_file}" in | |
9830 | "") # empty | |
9831 | cache_file_option="" ;; | |
9832 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
9833 | cache_file_option="--cache-file=${cache_file}" ;; | |
9834 | *) # relative path | |
9835 | cache_file_option="--cache-file=../${cache_file}" ;; | |
9836 | esac | |
9837 | ||
09438bde NN |
9838 | # Host dirs don't like to share a cache file either, horribly enough. |
9839 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 9840 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 9841 | |
29a63921 | 9842 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
9843 | |
9844 | # Passing a --with-cross-host argument lets the target libraries know | |
9845 | # whether they are being built with a cross-compiler or being built | |
9846 | # native. However, it would be better to use other mechanisms to make the | |
9847 | # sorts of decisions they want to make on this basis. Please consider | |
9848 | # this option to be deprecated. FIXME. | |
9849 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 9850 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
9851 | fi |
9852 | ||
79e0604d FXC |
9853 | # Special user-friendly check for native x86_64-linux build, if |
9854 | # multilib is not explicitly enabled. | |
9855 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
9856 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 9857 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
9858 | dev64=no |
9859 | echo "int main () { return 0; }" > conftest.c | |
9860 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9861 | if test $? = 0 ; then | |
9862 | if test -s conftest || test -s conftest.exe ; then | |
9863 | dev64=yes | |
9864 | fi | |
9865 | fi | |
9866 | rm -f conftest* | |
9867 | if test x${dev64} != xyes ; then | |
22e05272 | 9868 | as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
79e0604d FXC |
9869 | fi |
9870 | ;; | |
9871 | esac | |
9872 | ||
dc683a3f RW |
9873 | # Default to --enable-multilib. |
9874 | if test x${enable_multilib} = x ; then | |
671aa708 | 9875 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 9876 | fi |
671aa708 NN |
9877 | |
9878 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
9879 | # changed from the earlier setting of with_newlib. | |
9880 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
9881 | target_configargs="--with-newlib ${target_configargs}" | |
9882 | fi | |
9883 | ||
6b9eb62c NN |
9884 | # Different target subdirs use different values of certain variables |
9885 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
9886 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
9887 | # it doesn't automatically accept command-line overrides of them. | |
9888 | # This means it's not safe for target subdirs to share a cache file, | |
9889 | # which is disgusting, but there you have it. Hopefully this can be | |
9890 | # fixed in future. It's still worthwhile to use a cache file for each | |
9891 | # directory. I think. | |
9892 | ||
bebcd931 MS |
9893 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
9894 | # We need to pass --target, as newer autoconf's requires consistency | |
9895 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 9896 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 9897 | |
671aa708 NN |
9898 | FLAGS_FOR_TARGET= |
9899 | case " $target_configdirs " in | |
9900 | *" newlib "*) | |
9901 | case " $target_configargs " in | |
9902 | *" --with-newlib "*) | |
9903 | case "$target" in | |
5d571eaa | 9904 | *-cygwin*) |
443e6238 | 9905 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 9906 | ;; |
671aa708 NN |
9907 | esac |
9908 | ||
9909 | # If we're not building GCC, don't discard standard headers. | |
9910 | if test -d ${srcdir}/gcc; then | |
9911 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
9912 | ||
9913 | if test "${build}" != "${host}"; then | |
9914 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
9915 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
9916 | # to it. This is right: we don't want to search that directory | |
9917 | # for binaries, but we want the header files in there, so add | |
9918 | # them explicitly. | |
0463992b | 9919 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
9920 | |
9921 | # Someone might think of using the pre-installed headers on | |
9922 | # Canadian crosses, in case the installed compiler is not fully | |
9923 | # compatible with the compiler being built. In this case, it | |
9924 | # would be better to flag an error than risking having | |
9925 | # incompatible object files being constructed. We can't | |
9926 | # guarantee that an error will be flagged, but let's hope the | |
9927 | # compiler will do it, when presented with incompatible header | |
9928 | # files. | |
9929 | fi | |
9930 | fi | |
9931 | ||
9932 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 9933 | i[3456789]86-*-linux*-no) |
671aa708 NN |
9934 | # Here host == target, so we don't need to build gcc, |
9935 | # so we don't want to discard standard headers. | |
9936 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
9937 | ;; | |
9938 | *) | |
9939 | # If we're building newlib, use its generic headers last, but search | |
9940 | # for any libc-related directories first (so make it the last -B | |
9941 | # switch). | |
9942 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
c03353e2 RIL |
9943 | |
9944 | # If we're building libgloss, find the startup file, simulator library | |
9945 | # and linker script. | |
9946 | case " $target_configdirs " in | |
9947 | *" libgloss "*) | |
9948 | # Look for startup file, simulator library and maybe linker script. | |
9949 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
9950 | # Look for libnosys.a in case the target needs it. | |
9951 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
9952 | # Most targets have the linker script in the source directory. | |
9953 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
9954 | ;; | |
9955 | esac | |
671aa708 NN |
9956 | ;; |
9957 | esac | |
9958 | ;; | |
9959 | esac | |
9960 | ;; | |
9961 | esac | |
5d571eaa | 9962 | |
b91f0a41 | 9963 | case "$target" in |
5d571eaa OS |
9964 | x86_64-*mingw* | *-w64-mingw*) |
9965 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
9966 | # however, use a symlink named 'mingw' in ${prefix} . | |
9967 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
9968 | ;; | |
9969 | *-mingw*) | |
9970 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
9971 | 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' | |
9972 | ;; | |
b91f0a41 | 9973 | esac |
671aa708 | 9974 | |
6691a79e ME |
9975 | # Allow the user to override the flags for |
9976 | # our build compiler if desired. | |
f019adc1 MF |
9977 | if test x"${build}" = x"${host}" ; then |
9978 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
9979 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
9980 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
9981 | fi | |
6691a79e | 9982 | |
671aa708 NN |
9983 | # On Canadian crosses, we'll be searching the right directories for |
9984 | # the previously-installed cross compiler, so don't bother to add | |
9985 | # flags for directories within the install tree of the compiler | |
9986 | # being built; programs in there won't even run. | |
9987 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
9988 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 9989 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
671aa708 NN |
9990 | fi |
9991 | ||
9992 | if test "x${use_gnu_ld}" = x && | |
9993 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
9994 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 9995 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
9996 | fi |
9997 | ||
e88a2c09 DD |
9998 | # Search for other target-specific linker scripts and such. |
9999 | case "${target}" in | |
3e19841a PB |
10000 | mep*) |
10001 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10002 | ;; | |
e88a2c09 DD |
10003 | esac |
10004 | ||
671aa708 | 10005 | # Makefile fragments. |
7b61653a PE |
10006 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10007 | do | |
10008 | eval fragval=\$$frag | |
10009 | if test $fragval != /dev/null; then | |
10010 | eval $frag=${srcdir}/$fragval | |
10011 | fi | |
10012 | done | |
671aa708 NN |
10013 | |
10014 | ||
10015 | ||
10016 | ||
10017 | ||
10018 | # Miscellanea: directories, flags, etc. | |
10019 | ||
10020 | ||
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | ||
d89f0ad6 | 10026 | |
23f6b2f9 | 10027 | # Build module lists & subconfigure args. |
671aa708 NN |
10028 | |
10029 | ||
10030 | ||
2abefe3d PB |
10031 | # Host module lists & subconfigure args. |
10032 | ||
10033 | ||
10034 | ||
aae29963 | 10035 | |
2abefe3d PB |
10036 | # Target module lists & subconfigure args. |
10037 | ||
10038 | ||
10039 | ||
10040 | # Build tools. | |
10041 | ||
10042 | ||
10043 | ||
0999159b PB |
10044 | |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | ||
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | ||
10056 | ||
b4c522fa | 10057 | |
2abefe3d PB |
10058 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10059 | # on the build machine. These are used if the Makefile can't locate these | |
10060 | # programs in objdir. | |
10061 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10062 | ||
10063 | for ac_prog in 'bison -y' byacc yacc | |
10064 | do | |
1c710c3c | 10065 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10066 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10068 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10069 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10070 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10071 | else |
10072 | if test -n "$YACC"; then | |
10073 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10074 | else | |
1c710c3c DJ |
10075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10076 | for as_dir in $PATH | |
10077 | do | |
10078 | IFS=$as_save_IFS | |
10079 | test -z "$as_dir" && as_dir=. | |
5213506e | 10080 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10082 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10084 | break 2 |
10085 | fi | |
10086 | done | |
5213506e RW |
10087 | done |
10088 | IFS=$as_save_IFS | |
1c710c3c | 10089 | |
2abefe3d PB |
10090 | fi |
10091 | fi | |
1c710c3c | 10092 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10093 | if test -n "$YACC"; then |
5213506e RW |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10095 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10096 | else |
5213506e RW |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10098 | $as_echo "no" >&6; } | |
2abefe3d PB |
10099 | fi |
10100 | ||
5213506e | 10101 | |
1c710c3c | 10102 | test -n "$YACC" && break |
2abefe3d PB |
10103 | done |
10104 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10105 | ||
10106 | case " $build_configdirs " in | |
10107 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10108 | esac |
10109 | ||
10110 | for ac_prog in bison | |
10111 | do | |
1c710c3c | 10112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10113 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10115 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10116 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10117 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10118 | else |
10119 | if test -n "$BISON"; then | |
10120 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10121 | else | |
1c710c3c DJ |
10122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10123 | for as_dir in $PATH | |
10124 | do | |
10125 | IFS=$as_save_IFS | |
10126 | test -z "$as_dir" && as_dir=. | |
5213506e | 10127 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10129 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10131 | break 2 |
10132 | fi | |
10133 | done | |
5213506e RW |
10134 | done |
10135 | IFS=$as_save_IFS | |
1c710c3c | 10136 | |
2abefe3d PB |
10137 | fi |
10138 | fi | |
1c710c3c | 10139 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10140 | if test -n "$BISON"; then |
5213506e RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10142 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10143 | else |
5213506e RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10145 | $as_echo "no" >&6; } | |
2abefe3d PB |
10146 | fi |
10147 | ||
5213506e | 10148 | |
1c710c3c | 10149 | test -n "$BISON" && break |
2abefe3d PB |
10150 | done |
10151 | test -n "$BISON" || BISON="$MISSING bison" | |
10152 | ||
10153 | case " $build_configdirs " in | |
10154 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10155 | esac | |
10156 | ||
10157 | for ac_prog in gm4 gnum4 m4 | |
10158 | do | |
1c710c3c | 10159 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10160 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10162 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10163 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10164 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10165 | else |
10166 | if test -n "$M4"; then | |
10167 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10168 | else | |
1c710c3c DJ |
10169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10170 | for as_dir in $PATH | |
10171 | do | |
10172 | IFS=$as_save_IFS | |
10173 | test -z "$as_dir" && as_dir=. | |
5213506e | 10174 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10176 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10178 | break 2 |
10179 | fi | |
10180 | done | |
5213506e RW |
10181 | done |
10182 | IFS=$as_save_IFS | |
1c710c3c | 10183 | |
2abefe3d PB |
10184 | fi |
10185 | fi | |
1c710c3c | 10186 | M4=$ac_cv_prog_M4 |
2abefe3d | 10187 | if test -n "$M4"; then |
5213506e RW |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10189 | $as_echo "$M4" >&6; } | |
2abefe3d | 10190 | else |
5213506e RW |
10191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10192 | $as_echo "no" >&6; } | |
2abefe3d PB |
10193 | fi |
10194 | ||
5213506e | 10195 | |
1c710c3c | 10196 | test -n "$M4" && break |
2abefe3d PB |
10197 | done |
10198 | test -n "$M4" || M4="$MISSING m4" | |
10199 | ||
10200 | case " $build_configdirs " in | |
10201 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10202 | esac | |
10203 | ||
10204 | for ac_prog in flex lex | |
10205 | do | |
1c710c3c | 10206 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10207 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10209 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10210 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10211 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10212 | else |
10213 | if test -n "$LEX"; then | |
10214 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10215 | else | |
1c710c3c DJ |
10216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10217 | for as_dir in $PATH | |
10218 | do | |
10219 | IFS=$as_save_IFS | |
10220 | test -z "$as_dir" && as_dir=. | |
5213506e | 10221 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10223 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10225 | break 2 |
10226 | fi | |
10227 | done | |
5213506e RW |
10228 | done |
10229 | IFS=$as_save_IFS | |
1c710c3c | 10230 | |
2abefe3d PB |
10231 | fi |
10232 | fi | |
1c710c3c | 10233 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10234 | if test -n "$LEX"; then |
5213506e RW |
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10236 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10237 | else |
5213506e RW |
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10239 | $as_echo "no" >&6; } | |
2abefe3d PB |
10240 | fi |
10241 | ||
5213506e | 10242 | |
1c710c3c | 10243 | test -n "$LEX" && break |
2abefe3d PB |
10244 | done |
10245 | test -n "$LEX" || LEX="$MISSING flex" | |
10246 | ||
10247 | case " $build_configdirs " in | |
10248 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10249 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10250 | esac | |
10251 | ||
10252 | for ac_prog in flex | |
10253 | do | |
1c710c3c | 10254 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10255 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10257 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10258 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10259 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10260 | else |
10261 | if test -n "$FLEX"; then | |
10262 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10263 | else | |
1c710c3c DJ |
10264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10265 | for as_dir in $PATH | |
10266 | do | |
10267 | IFS=$as_save_IFS | |
10268 | test -z "$as_dir" && as_dir=. | |
5213506e | 10269 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10271 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10273 | break 2 |
10274 | fi | |
10275 | done | |
5213506e RW |
10276 | done |
10277 | IFS=$as_save_IFS | |
1c710c3c | 10278 | |
2abefe3d PB |
10279 | fi |
10280 | fi | |
1c710c3c | 10281 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10282 | if test -n "$FLEX"; then |
5213506e RW |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10284 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10285 | else |
5213506e RW |
10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10287 | $as_echo "no" >&6; } | |
2abefe3d PB |
10288 | fi |
10289 | ||
5213506e | 10290 | |
1c710c3c | 10291 | test -n "$FLEX" && break |
2abefe3d PB |
10292 | done |
10293 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10294 | ||
10295 | case " $build_configdirs " in | |
10296 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10297 | esac | |
10298 | ||
10299 | for ac_prog in makeinfo | |
10300 | do | |
1c710c3c | 10301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10302 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10304 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10305 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10306 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10307 | else |
10308 | if test -n "$MAKEINFO"; then | |
10309 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10310 | else | |
1c710c3c DJ |
10311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10312 | for as_dir in $PATH | |
10313 | do | |
10314 | IFS=$as_save_IFS | |
10315 | test -z "$as_dir" && as_dir=. | |
5213506e | 10316 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10318 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10320 | break 2 |
10321 | fi | |
10322 | done | |
5213506e RW |
10323 | done |
10324 | IFS=$as_save_IFS | |
1c710c3c | 10325 | |
2abefe3d PB |
10326 | fi |
10327 | fi | |
1c710c3c | 10328 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10329 | if test -n "$MAKEINFO"; then |
5213506e RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10331 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10332 | else |
5213506e RW |
10333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10334 | $as_echo "no" >&6; } | |
2abefe3d PB |
10335 | fi |
10336 | ||
5213506e | 10337 | |
1c710c3c | 10338 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10339 | done |
10340 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10341 | ||
10342 | case " $build_configdirs " in | |
10343 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10344 | *) | |
10345 | ||
d18ff35a | 10346 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10347 | # higher, else we use the "missing" dummy. |
10348 | if ${MAKEINFO} --version \ | |
d18ff35a | 10349 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10350 | : |
10351 | else | |
10352 | MAKEINFO="$MISSING makeinfo" | |
10353 | fi | |
10354 | ;; | |
10355 | ||
10356 | esac | |
671aa708 | 10357 | |
2abefe3d | 10358 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10359 | |
2abefe3d PB |
10360 | for ac_prog in expect |
10361 | do | |
1c710c3c | 10362 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10363 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10365 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10366 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10367 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10368 | else |
10369 | if test -n "$EXPECT"; then | |
10370 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10371 | else | |
1c710c3c DJ |
10372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10373 | for as_dir in $PATH | |
10374 | do | |
10375 | IFS=$as_save_IFS | |
10376 | test -z "$as_dir" && as_dir=. | |
5213506e | 10377 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10379 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10381 | break 2 |
10382 | fi | |
10383 | done | |
5213506e RW |
10384 | done |
10385 | IFS=$as_save_IFS | |
1c710c3c | 10386 | |
2abefe3d PB |
10387 | fi |
10388 | fi | |
1c710c3c | 10389 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10390 | if test -n "$EXPECT"; then |
5213506e RW |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10392 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10393 | else |
5213506e RW |
10394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10395 | $as_echo "no" >&6; } | |
2abefe3d | 10396 | fi |
671aa708 | 10397 | |
5213506e | 10398 | |
1c710c3c | 10399 | test -n "$EXPECT" && break |
2abefe3d PB |
10400 | done |
10401 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10402 | |
2abefe3d PB |
10403 | case " $configdirs " in |
10404 | *" expect "*) | |
10405 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10406 | ;; | |
10407 | esac | |
671aa708 | 10408 | |
2abefe3d PB |
10409 | for ac_prog in runtest |
10410 | do | |
1c710c3c | 10411 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10412 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10414 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10415 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10416 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10417 | else |
10418 | if test -n "$RUNTEST"; then | |
10419 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10420 | else |
1c710c3c DJ |
10421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10422 | for as_dir in $PATH | |
10423 | do | |
10424 | IFS=$as_save_IFS | |
10425 | test -z "$as_dir" && as_dir=. | |
5213506e | 10426 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10428 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10430 | break 2 |
10431 | fi | |
10432 | done | |
5213506e RW |
10433 | done |
10434 | IFS=$as_save_IFS | |
1c710c3c | 10435 | |
2abefe3d PB |
10436 | fi |
10437 | fi | |
1c710c3c | 10438 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10439 | if test -n "$RUNTEST"; then |
5213506e RW |
10440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10441 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10442 | else |
5213506e RW |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10444 | $as_echo "no" >&6; } | |
2abefe3d | 10445 | fi |
671aa708 | 10446 | |
5213506e | 10447 | |
1c710c3c | 10448 | test -n "$RUNTEST" && break |
2abefe3d PB |
10449 | done |
10450 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10451 | |
2abefe3d PB |
10452 | case " $configdirs " in |
10453 | *" dejagnu "*) | |
c394e891 | 10454 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10455 | ;; |
10456 | esac | |
671aa708 NN |
10457 | |
10458 | ||
671aa708 | 10459 | # Host tools. |
ca9f4b81 AO |
10460 | ncn_tool_prefix= |
10461 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10462 | ncn_target_tool_prefix= | |
10463 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10464 | ||
278a7a38 AO |
10465 | |
10466 | ||
10467 | if test -n "$AR"; then | |
10468 | ac_cv_prog_AR=$AR | |
10469 | elif test -n "$ac_cv_prog_AR"; then | |
10470 | AR=$ac_cv_prog_AR | |
10471 | fi | |
10472 | ||
10473 | if test -n "$ac_cv_prog_AR"; then | |
10474 | for ncn_progname in ar; do | |
10475 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10476 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10478 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10479 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10480 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10481 | else |
10482 | if test -n "$AR"; then | |
10483 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10484 | else | |
10485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10486 | for as_dir in $PATH | |
10487 | do | |
10488 | IFS=$as_save_IFS | |
10489 | test -z "$as_dir" && as_dir=. | |
5213506e | 10490 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10492 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10494 | break 2 |
10495 | fi | |
10496 | done | |
5213506e RW |
10497 | done |
10498 | IFS=$as_save_IFS | |
278a7a38 AO |
10499 | |
10500 | fi | |
10501 | fi | |
10502 | AR=$ac_cv_prog_AR | |
10503 | if test -n "$AR"; then | |
5213506e RW |
10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10505 | $as_echo "$AR" >&6; } | |
278a7a38 | 10506 | else |
5213506e RW |
10507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10508 | $as_echo "no" >&6; } | |
278a7a38 AO |
10509 | fi |
10510 | ||
5213506e | 10511 | |
278a7a38 AO |
10512 | done |
10513 | fi | |
10514 | ||
10515 | for ncn_progname in ar; do | |
2693c0b0 PB |
10516 | if test -n "$ncn_tool_prefix"; then |
10517 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10518 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10520 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10521 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10522 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10523 | else |
10524 | if test -n "$AR"; then | |
10525 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10526 | else | |
1c710c3c DJ |
10527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10528 | for as_dir in $PATH | |
10529 | do | |
10530 | IFS=$as_save_IFS | |
10531 | test -z "$as_dir" && as_dir=. | |
5213506e | 10532 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10534 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10536 | break 2 |
10537 | fi | |
10538 | done | |
5213506e RW |
10539 | done |
10540 | IFS=$as_save_IFS | |
1c710c3c | 10541 | |
ca9f4b81 AO |
10542 | fi |
10543 | fi | |
1c710c3c | 10544 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10545 | if test -n "$AR"; then |
5213506e RW |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10547 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10548 | else |
5213506e RW |
10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10550 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10551 | fi |
10552 | ||
5213506e | 10553 | |
2693c0b0 PB |
10554 | fi |
10555 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10556 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10557 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10559 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10560 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10561 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10562 | else |
2693c0b0 | 10563 | if test -n "$AR"; then |
af71363e AS |
10564 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10565 | else | |
1c710c3c DJ |
10566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10567 | for as_dir in $PATH | |
10568 | do | |
10569 | IFS=$as_save_IFS | |
10570 | test -z "$as_dir" && as_dir=. | |
5213506e | 10571 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10573 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10575 | break 2 |
10576 | fi | |
10577 | done | |
5213506e RW |
10578 | done |
10579 | IFS=$as_save_IFS | |
1c710c3c | 10580 | |
ca9f4b81 AO |
10581 | fi |
10582 | fi | |
1c710c3c | 10583 | AR=$ac_cv_prog_AR |
2693c0b0 | 10584 | if test -n "$AR"; then |
5213506e RW |
10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10586 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10587 | else |
5213506e RW |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10589 | $as_echo "no" >&6; } | |
ca9f4b81 | 10590 | fi |
1c710c3c | 10591 | |
5213506e | 10592 | |
2693c0b0 PB |
10593 | fi |
10594 | test -n "$ac_cv_prog_AR" && break | |
10595 | done | |
10596 | ||
10597 | if test -z "$ac_cv_prog_AR" ; then | |
10598 | set dummy ar | |
10599 | if test $build = $host ; then | |
10600 | AR="$2" | |
ca9f4b81 | 10601 | else |
2693c0b0 | 10602 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10603 | fi |
ca9f4b81 AO |
10604 | fi |
10605 | ||
278a7a38 AO |
10606 | |
10607 | ||
10608 | if test -n "$AS"; then | |
10609 | ac_cv_prog_AS=$AS | |
10610 | elif test -n "$ac_cv_prog_AS"; then | |
10611 | AS=$ac_cv_prog_AS | |
10612 | fi | |
10613 | ||
10614 | if test -n "$ac_cv_prog_AS"; then | |
10615 | for ncn_progname in as; do | |
10616 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10617 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10619 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10620 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10621 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10622 | else |
10623 | if test -n "$AS"; then | |
10624 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10625 | else | |
10626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10627 | for as_dir in $PATH | |
10628 | do | |
10629 | IFS=$as_save_IFS | |
10630 | test -z "$as_dir" && as_dir=. | |
5213506e | 10631 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10633 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10635 | break 2 |
10636 | fi | |
10637 | done | |
5213506e RW |
10638 | done |
10639 | IFS=$as_save_IFS | |
278a7a38 AO |
10640 | |
10641 | fi | |
10642 | fi | |
10643 | AS=$ac_cv_prog_AS | |
10644 | if test -n "$AS"; then | |
5213506e RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10646 | $as_echo "$AS" >&6; } | |
278a7a38 | 10647 | else |
5213506e RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10649 | $as_echo "no" >&6; } | |
278a7a38 AO |
10650 | fi |
10651 | ||
5213506e | 10652 | |
278a7a38 AO |
10653 | done |
10654 | fi | |
10655 | ||
10656 | for ncn_progname in as; do | |
2693c0b0 PB |
10657 | if test -n "$ncn_tool_prefix"; then |
10658 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10659 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10661 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10662 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10663 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10664 | else |
10665 | if test -n "$AS"; then | |
10666 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10667 | else |
1c710c3c DJ |
10668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10669 | for as_dir in $PATH | |
10670 | do | |
10671 | IFS=$as_save_IFS | |
10672 | test -z "$as_dir" && as_dir=. | |
5213506e | 10673 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10674 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10675 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10677 | break 2 |
10678 | fi | |
10679 | done | |
5213506e RW |
10680 | done |
10681 | IFS=$as_save_IFS | |
1c710c3c | 10682 | |
ca9f4b81 AO |
10683 | fi |
10684 | fi | |
1c710c3c | 10685 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10686 | if test -n "$AS"; then |
5213506e RW |
10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10688 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10689 | else |
5213506e RW |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10691 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10692 | fi |
10693 | ||
5213506e | 10694 | |
2693c0b0 PB |
10695 | fi |
10696 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10697 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10698 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10700 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10701 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10702 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10703 | else |
2693c0b0 PB |
10704 | if test -n "$AS"; then |
10705 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10706 | else |
1c710c3c DJ |
10707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10708 | for as_dir in $PATH | |
10709 | do | |
10710 | IFS=$as_save_IFS | |
10711 | test -z "$as_dir" && as_dir=. | |
5213506e | 10712 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10714 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10716 | break 2 |
10717 | fi | |
10718 | done | |
5213506e RW |
10719 | done |
10720 | IFS=$as_save_IFS | |
1c710c3c | 10721 | |
ca9f4b81 AO |
10722 | fi |
10723 | fi | |
1c710c3c | 10724 | AS=$ac_cv_prog_AS |
2693c0b0 | 10725 | if test -n "$AS"; then |
5213506e RW |
10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10727 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10728 | else |
5213506e RW |
10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10730 | $as_echo "no" >&6; } | |
ca9f4b81 | 10731 | fi |
1c710c3c | 10732 | |
5213506e | 10733 | |
2693c0b0 PB |
10734 | fi |
10735 | test -n "$ac_cv_prog_AS" && break | |
10736 | done | |
10737 | ||
10738 | if test -z "$ac_cv_prog_AS" ; then | |
10739 | set dummy as | |
10740 | if test $build = $host ; then | |
10741 | AS="$2" | |
ca9f4b81 | 10742 | else |
2693c0b0 | 10743 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 10744 | fi |
ca9f4b81 AO |
10745 | fi |
10746 | ||
278a7a38 AO |
10747 | |
10748 | ||
10749 | if test -n "$DLLTOOL"; then | |
10750 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
10751 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
10752 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10753 | fi | |
10754 | ||
10755 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
10756 | for ncn_progname in dlltool; do | |
10757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10758 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10760 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10761 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10762 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10763 | else |
10764 | if test -n "$DLLTOOL"; then | |
10765 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10766 | else | |
10767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10768 | for as_dir in $PATH | |
10769 | do | |
10770 | IFS=$as_save_IFS | |
10771 | test -z "$as_dir" && as_dir=. | |
5213506e | 10772 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10774 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 10775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10776 | break 2 |
10777 | fi | |
10778 | done | |
5213506e RW |
10779 | done |
10780 | IFS=$as_save_IFS | |
278a7a38 AO |
10781 | |
10782 | fi | |
10783 | fi | |
10784 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10785 | if test -n "$DLLTOOL"; then | |
5213506e RW |
10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10787 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 10788 | else |
5213506e RW |
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10790 | $as_echo "no" >&6; } | |
278a7a38 AO |
10791 | fi |
10792 | ||
5213506e | 10793 | |
278a7a38 AO |
10794 | done |
10795 | fi | |
10796 | ||
10797 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
10798 | if test -n "$ncn_tool_prefix"; then |
10799 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10800 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10802 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10803 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10804 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10805 | else |
10806 | if test -n "$DLLTOOL"; then | |
10807 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10808 | else | |
1c710c3c DJ |
10809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10810 | for as_dir in $PATH | |
10811 | do | |
10812 | IFS=$as_save_IFS | |
10813 | test -z "$as_dir" && as_dir=. | |
5213506e | 10814 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10816 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10818 | break 2 |
10819 | fi | |
10820 | done | |
5213506e RW |
10821 | done |
10822 | IFS=$as_save_IFS | |
1c710c3c | 10823 | |
ca9f4b81 AO |
10824 | fi |
10825 | fi | |
1c710c3c | 10826 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 10827 | if test -n "$DLLTOOL"; then |
5213506e RW |
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10829 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 10830 | else |
5213506e RW |
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10832 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10833 | fi |
10834 | ||
5213506e | 10835 | |
2693c0b0 PB |
10836 | fi |
10837 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
10838 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10839 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10841 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10842 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10843 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10844 | else |
2693c0b0 PB |
10845 | if test -n "$DLLTOOL"; then |
10846 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 10847 | else |
1c710c3c DJ |
10848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10849 | for as_dir in $PATH | |
10850 | do | |
10851 | IFS=$as_save_IFS | |
10852 | test -z "$as_dir" && as_dir=. | |
5213506e | 10853 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10855 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 10856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10857 | break 2 |
10858 | fi | |
10859 | done | |
5213506e RW |
10860 | done |
10861 | IFS=$as_save_IFS | |
1c710c3c | 10862 | |
ca9f4b81 AO |
10863 | fi |
10864 | fi | |
1c710c3c | 10865 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 10866 | if test -n "$DLLTOOL"; then |
5213506e RW |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10868 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 10869 | else |
5213506e RW |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10871 | $as_echo "no" >&6; } | |
ca9f4b81 | 10872 | fi |
1c710c3c | 10873 | |
5213506e | 10874 | |
2693c0b0 PB |
10875 | fi |
10876 | test -n "$ac_cv_prog_DLLTOOL" && break | |
10877 | done | |
10878 | ||
10879 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
10880 | set dummy dlltool | |
10881 | if test $build = $host ; then | |
10882 | DLLTOOL="$2" | |
ca9f4b81 | 10883 | else |
2693c0b0 | 10884 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 10885 | fi |
ca9f4b81 AO |
10886 | fi |
10887 | ||
278a7a38 AO |
10888 | |
10889 | ||
10890 | if test -n "$LD"; then | |
10891 | ac_cv_prog_LD=$LD | |
10892 | elif test -n "$ac_cv_prog_LD"; then | |
10893 | LD=$ac_cv_prog_LD | |
10894 | fi | |
10895 | ||
10896 | if test -n "$ac_cv_prog_LD"; then | |
10897 | for ncn_progname in ld; do | |
10898 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10899 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10901 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10902 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 10903 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10904 | else |
10905 | if test -n "$LD"; then | |
10906 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
10907 | else | |
10908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10909 | for as_dir in $PATH | |
10910 | do | |
10911 | IFS=$as_save_IFS | |
10912 | test -z "$as_dir" && as_dir=. | |
5213506e | 10913 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10915 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 10916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10917 | break 2 |
10918 | fi | |
10919 | done | |
5213506e RW |
10920 | done |
10921 | IFS=$as_save_IFS | |
278a7a38 AO |
10922 | |
10923 | fi | |
10924 | fi | |
10925 | LD=$ac_cv_prog_LD | |
10926 | if test -n "$LD"; then | |
5213506e RW |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
10928 | $as_echo "$LD" >&6; } | |
278a7a38 | 10929 | else |
5213506e RW |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10931 | $as_echo "no" >&6; } | |
278a7a38 AO |
10932 | fi |
10933 | ||
5213506e | 10934 | |
278a7a38 AO |
10935 | done |
10936 | fi | |
10937 | ||
10938 | for ncn_progname in ld; do | |
2693c0b0 PB |
10939 | if test -n "$ncn_tool_prefix"; then |
10940 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10941 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10943 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10944 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 10945 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10946 | else |
10947 | if test -n "$LD"; then | |
10948 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
10949 | else | |
1c710c3c DJ |
10950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10951 | for as_dir in $PATH | |
10952 | do | |
10953 | IFS=$as_save_IFS | |
10954 | test -z "$as_dir" && as_dir=. | |
5213506e | 10955 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10957 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10959 | break 2 |
10960 | fi | |
10961 | done | |
5213506e RW |
10962 | done |
10963 | IFS=$as_save_IFS | |
1c710c3c | 10964 | |
ca9f4b81 AO |
10965 | fi |
10966 | fi | |
1c710c3c | 10967 | LD=$ac_cv_prog_LD |
ca9f4b81 | 10968 | if test -n "$LD"; then |
5213506e RW |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
10970 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 10971 | else |
5213506e RW |
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10973 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10974 | fi |
10975 | ||
5213506e | 10976 | |
2693c0b0 PB |
10977 | fi |
10978 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
10979 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10980 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10982 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10983 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 10984 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10985 | else |
2693c0b0 PB |
10986 | if test -n "$LD"; then |
10987 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 10988 | else |
1c710c3c DJ |
10989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10990 | for as_dir in $PATH | |
10991 | do | |
10992 | IFS=$as_save_IFS | |
10993 | test -z "$as_dir" && as_dir=. | |
5213506e | 10994 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10996 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 10997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10998 | break 2 |
10999 | fi | |
11000 | done | |
5213506e RW |
11001 | done |
11002 | IFS=$as_save_IFS | |
1c710c3c | 11003 | |
ca9f4b81 AO |
11004 | fi |
11005 | fi | |
1c710c3c | 11006 | LD=$ac_cv_prog_LD |
2693c0b0 | 11007 | if test -n "$LD"; then |
5213506e RW |
11008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11009 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11010 | else |
5213506e RW |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11012 | $as_echo "no" >&6; } | |
ca9f4b81 | 11013 | fi |
1c710c3c | 11014 | |
5213506e | 11015 | |
2693c0b0 PB |
11016 | fi |
11017 | test -n "$ac_cv_prog_LD" && break | |
11018 | done | |
11019 | ||
11020 | if test -z "$ac_cv_prog_LD" ; then | |
11021 | set dummy ld | |
11022 | if test $build = $host ; then | |
11023 | LD="$2" | |
ca9f4b81 | 11024 | else |
2693c0b0 | 11025 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11026 | fi |
ca9f4b81 AO |
11027 | fi |
11028 | ||
278a7a38 AO |
11029 | |
11030 | ||
11031 | if test -n "$LIPO"; then | |
11032 | ac_cv_prog_LIPO=$LIPO | |
11033 | elif test -n "$ac_cv_prog_LIPO"; then | |
11034 | LIPO=$ac_cv_prog_LIPO | |
11035 | fi | |
11036 | ||
11037 | if test -n "$ac_cv_prog_LIPO"; then | |
11038 | for ncn_progname in lipo; do | |
11039 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11040 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11042 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11043 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11044 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11045 | else |
11046 | if test -n "$LIPO"; then | |
11047 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11048 | else | |
11049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11050 | for as_dir in $PATH | |
11051 | do | |
11052 | IFS=$as_save_IFS | |
11053 | test -z "$as_dir" && as_dir=. | |
5213506e | 11054 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11056 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11058 | break 2 |
11059 | fi | |
11060 | done | |
5213506e RW |
11061 | done |
11062 | IFS=$as_save_IFS | |
278a7a38 AO |
11063 | |
11064 | fi | |
11065 | fi | |
11066 | LIPO=$ac_cv_prog_LIPO | |
11067 | if test -n "$LIPO"; then | |
5213506e RW |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11069 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11070 | else |
5213506e RW |
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11072 | $as_echo "no" >&6; } | |
278a7a38 AO |
11073 | fi |
11074 | ||
5213506e | 11075 | |
278a7a38 AO |
11076 | done |
11077 | fi | |
11078 | ||
11079 | for ncn_progname in lipo; do | |
2abefe3d PB |
11080 | if test -n "$ncn_tool_prefix"; then |
11081 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11082 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11084 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11085 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11086 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11087 | else |
11088 | if test -n "$LIPO"; then | |
11089 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11090 | else | |
1c710c3c DJ |
11091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11092 | for as_dir in $PATH | |
11093 | do | |
11094 | IFS=$as_save_IFS | |
11095 | test -z "$as_dir" && as_dir=. | |
5213506e | 11096 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11098 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11100 | break 2 |
11101 | fi | |
11102 | done | |
5213506e RW |
11103 | done |
11104 | IFS=$as_save_IFS | |
1c710c3c | 11105 | |
2abefe3d PB |
11106 | fi |
11107 | fi | |
1c710c3c | 11108 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11109 | if test -n "$LIPO"; then |
5213506e RW |
11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11111 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11112 | else |
5213506e RW |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11114 | $as_echo "no" >&6; } | |
2abefe3d PB |
11115 | fi |
11116 | ||
5213506e | 11117 | |
2abefe3d PB |
11118 | fi |
11119 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11120 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11121 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11123 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11124 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11125 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11126 | else |
11127 | if test -n "$LIPO"; then | |
11128 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11129 | else | |
1c710c3c DJ |
11130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11131 | for as_dir in $PATH | |
11132 | do | |
11133 | IFS=$as_save_IFS | |
11134 | test -z "$as_dir" && as_dir=. | |
5213506e | 11135 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11137 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11139 | break 2 |
11140 | fi | |
11141 | done | |
5213506e RW |
11142 | done |
11143 | IFS=$as_save_IFS | |
1c710c3c | 11144 | |
2abefe3d PB |
11145 | fi |
11146 | fi | |
1c710c3c | 11147 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11148 | if test -n "$LIPO"; then |
5213506e RW |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11150 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11151 | else |
5213506e RW |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11153 | $as_echo "no" >&6; } | |
2abefe3d | 11154 | fi |
1c710c3c | 11155 | |
5213506e | 11156 | |
2abefe3d PB |
11157 | fi |
11158 | test -n "$ac_cv_prog_LIPO" && break | |
11159 | done | |
11160 | ||
11161 | if test -z "$ac_cv_prog_LIPO" ; then | |
11162 | set dummy lipo | |
11163 | if test $build = $host ; then | |
11164 | LIPO="$2" | |
11165 | else | |
11166 | LIPO="${ncn_tool_prefix}$2" | |
11167 | fi | |
11168 | fi | |
11169 | ||
278a7a38 AO |
11170 | |
11171 | ||
11172 | if test -n "$NM"; then | |
11173 | ac_cv_prog_NM=$NM | |
11174 | elif test -n "$ac_cv_prog_NM"; then | |
11175 | NM=$ac_cv_prog_NM | |
11176 | fi | |
11177 | ||
11178 | if test -n "$ac_cv_prog_NM"; then | |
11179 | for ncn_progname in nm; do | |
11180 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11181 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11183 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11184 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11185 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11186 | else |
11187 | if test -n "$NM"; then | |
11188 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11189 | else | |
1c710c3c DJ |
11190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11191 | for as_dir in $PATH | |
11192 | do | |
11193 | IFS=$as_save_IFS | |
11194 | test -z "$as_dir" && as_dir=. | |
5213506e | 11195 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11197 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11199 | break 2 |
11200 | fi | |
11201 | done | |
5213506e RW |
11202 | done |
11203 | IFS=$as_save_IFS | |
1c710c3c | 11204 | |
ca9f4b81 AO |
11205 | fi |
11206 | fi | |
1c710c3c | 11207 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11208 | if test -n "$NM"; then |
5213506e RW |
11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11210 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11211 | else |
5213506e RW |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11213 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11214 | fi |
11215 | ||
5213506e | 11216 | |
278a7a38 AO |
11217 | done |
11218 | fi | |
11219 | ||
11220 | for ncn_progname in nm; do | |
11221 | if test -n "$ncn_tool_prefix"; then | |
11222 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11223 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11225 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11226 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11227 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11228 | else |
2693c0b0 PB |
11229 | if test -n "$NM"; then |
11230 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11231 | else |
1c710c3c DJ |
11232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11233 | for as_dir in $PATH | |
11234 | do | |
11235 | IFS=$as_save_IFS | |
11236 | test -z "$as_dir" && as_dir=. | |
5213506e | 11237 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11239 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11241 | break 2 |
11242 | fi | |
11243 | done | |
5213506e RW |
11244 | done |
11245 | IFS=$as_save_IFS | |
1c710c3c | 11246 | |
ca9f4b81 AO |
11247 | fi |
11248 | fi | |
1c710c3c | 11249 | NM=$ac_cv_prog_NM |
2693c0b0 | 11250 | if test -n "$NM"; then |
5213506e RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11252 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11253 | else |
5213506e RW |
11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11255 | $as_echo "no" >&6; } | |
ca9f4b81 | 11256 | fi |
1c710c3c | 11257 | |
5213506e | 11258 | |
2693c0b0 | 11259 | fi |
278a7a38 AO |
11260 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11261 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11262 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11264 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11265 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11266 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11267 | else |
11268 | if test -n "$NM"; then | |
11269 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11270 | else | |
11271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11272 | for as_dir in $PATH | |
11273 | do | |
11274 | IFS=$as_save_IFS | |
11275 | test -z "$as_dir" && as_dir=. | |
5213506e | 11276 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11278 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11280 | break 2 |
11281 | fi | |
11282 | done | |
5213506e RW |
11283 | done |
11284 | IFS=$as_save_IFS | |
278a7a38 AO |
11285 | |
11286 | fi | |
11287 | fi | |
11288 | NM=$ac_cv_prog_NM | |
11289 | if test -n "$NM"; then | |
5213506e RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11291 | $as_echo "$NM" >&6; } | |
278a7a38 | 11292 | else |
5213506e RW |
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11294 | $as_echo "no" >&6; } | |
278a7a38 AO |
11295 | fi |
11296 | ||
5213506e | 11297 | |
278a7a38 AO |
11298 | fi |
11299 | test -n "$ac_cv_prog_NM" && break | |
11300 | done | |
11301 | ||
11302 | if test -z "$ac_cv_prog_NM" ; then | |
11303 | set dummy nm | |
11304 | if test $build = $host ; then | |
11305 | NM="$2" | |
11306 | else | |
11307 | NM="${ncn_tool_prefix}$2" | |
11308 | fi | |
11309 | fi | |
11310 | ||
11311 | ||
11312 | ||
11313 | if test -n "$RANLIB"; then | |
11314 | ac_cv_prog_RANLIB=$RANLIB | |
11315 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11316 | RANLIB=$ac_cv_prog_RANLIB | |
11317 | fi | |
11318 | ||
11319 | if test -n "$ac_cv_prog_RANLIB"; then | |
11320 | for ncn_progname in ranlib; do | |
11321 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11322 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11324 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11325 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11326 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11327 | else |
11328 | if test -n "$RANLIB"; then | |
11329 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11330 | else | |
11331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11332 | for as_dir in $PATH | |
11333 | do | |
11334 | IFS=$as_save_IFS | |
11335 | test -z "$as_dir" && as_dir=. | |
5213506e | 11336 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11338 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11340 | break 2 |
11341 | fi | |
11342 | done | |
5213506e RW |
11343 | done |
11344 | IFS=$as_save_IFS | |
278a7a38 AO |
11345 | |
11346 | fi | |
11347 | fi | |
11348 | RANLIB=$ac_cv_prog_RANLIB | |
11349 | if test -n "$RANLIB"; then | |
5213506e RW |
11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11351 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11352 | else |
5213506e RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11354 | $as_echo "no" >&6; } | |
278a7a38 AO |
11355 | fi |
11356 | ||
5213506e | 11357 | |
278a7a38 AO |
11358 | done |
11359 | fi | |
ca9f4b81 | 11360 | |
278a7a38 | 11361 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11362 | if test -n "$ncn_tool_prefix"; then |
11363 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11364 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11366 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11367 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11368 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11369 | else |
11370 | if test -n "$RANLIB"; then | |
11371 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11372 | else | |
1c710c3c DJ |
11373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11374 | for as_dir in $PATH | |
11375 | do | |
11376 | IFS=$as_save_IFS | |
11377 | test -z "$as_dir" && as_dir=. | |
5213506e | 11378 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11380 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11382 | break 2 |
11383 | fi | |
11384 | done | |
5213506e RW |
11385 | done |
11386 | IFS=$as_save_IFS | |
1c710c3c | 11387 | |
ca9f4b81 AO |
11388 | fi |
11389 | fi | |
1c710c3c | 11390 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11391 | if test -n "$RANLIB"; then |
5213506e RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11393 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11394 | else |
5213506e RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11396 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11397 | fi |
11398 | ||
5213506e | 11399 | |
2693c0b0 PB |
11400 | fi |
11401 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11402 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11403 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11405 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11406 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11407 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11408 | else |
2693c0b0 PB |
11409 | if test -n "$RANLIB"; then |
11410 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11411 | else |
1c710c3c DJ |
11412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11413 | for as_dir in $PATH | |
11414 | do | |
11415 | IFS=$as_save_IFS | |
11416 | test -z "$as_dir" && as_dir=. | |
5213506e | 11417 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11419 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11421 | break 2 |
11422 | fi | |
11423 | done | |
5213506e RW |
11424 | done |
11425 | IFS=$as_save_IFS | |
1c710c3c | 11426 | |
ca9f4b81 AO |
11427 | fi |
11428 | fi | |
1c710c3c | 11429 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11430 | if test -n "$RANLIB"; then |
5213506e RW |
11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11432 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11433 | else |
5213506e RW |
11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11435 | $as_echo "no" >&6; } | |
ca9f4b81 | 11436 | fi |
1c710c3c | 11437 | |
5213506e | 11438 | |
ca9f4b81 | 11439 | fi |
2693c0b0 PB |
11440 | test -n "$ac_cv_prog_RANLIB" && break |
11441 | done | |
11442 | ||
11443 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11444 | RANLIB="true" |
ca9f4b81 AO |
11445 | fi |
11446 | ||
278a7a38 AO |
11447 | |
11448 | ||
11449 | if test -n "$STRIP"; then | |
11450 | ac_cv_prog_STRIP=$STRIP | |
11451 | elif test -n "$ac_cv_prog_STRIP"; then | |
11452 | STRIP=$ac_cv_prog_STRIP | |
11453 | fi | |
11454 | ||
11455 | if test -n "$ac_cv_prog_STRIP"; then | |
11456 | for ncn_progname in strip; do | |
11457 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11458 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11460 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11461 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11462 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11463 | else |
11464 | if test -n "$STRIP"; then | |
11465 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11466 | else | |
11467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11468 | for as_dir in $PATH | |
11469 | do | |
11470 | IFS=$as_save_IFS | |
11471 | test -z "$as_dir" && as_dir=. | |
5213506e | 11472 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11474 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11476 | break 2 |
11477 | fi | |
11478 | done | |
5213506e RW |
11479 | done |
11480 | IFS=$as_save_IFS | |
278a7a38 AO |
11481 | |
11482 | fi | |
11483 | fi | |
11484 | STRIP=$ac_cv_prog_STRIP | |
11485 | if test -n "$STRIP"; then | |
5213506e RW |
11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11487 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11488 | else |
5213506e RW |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11490 | $as_echo "no" >&6; } | |
278a7a38 AO |
11491 | fi |
11492 | ||
5213506e | 11493 | |
278a7a38 AO |
11494 | done |
11495 | fi | |
11496 | ||
11497 | for ncn_progname in strip; do | |
2abefe3d PB |
11498 | if test -n "$ncn_tool_prefix"; then |
11499 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11500 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11502 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11503 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11504 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11505 | else |
11506 | if test -n "$STRIP"; then | |
11507 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11508 | else | |
1c710c3c DJ |
11509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11510 | for as_dir in $PATH | |
11511 | do | |
11512 | IFS=$as_save_IFS | |
11513 | test -z "$as_dir" && as_dir=. | |
5213506e | 11514 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11516 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11518 | break 2 |
11519 | fi | |
11520 | done | |
5213506e RW |
11521 | done |
11522 | IFS=$as_save_IFS | |
1c710c3c | 11523 | |
2abefe3d PB |
11524 | fi |
11525 | fi | |
1c710c3c | 11526 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11527 | if test -n "$STRIP"; then |
5213506e RW |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11529 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11530 | else |
5213506e RW |
11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11532 | $as_echo "no" >&6; } | |
2abefe3d PB |
11533 | fi |
11534 | ||
5213506e | 11535 | |
2abefe3d PB |
11536 | fi |
11537 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11539 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11541 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11542 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11543 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11544 | else |
11545 | if test -n "$STRIP"; then | |
11546 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11547 | else | |
1c710c3c DJ |
11548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11549 | for as_dir in $PATH | |
11550 | do | |
11551 | IFS=$as_save_IFS | |
11552 | test -z "$as_dir" && as_dir=. | |
5213506e | 11553 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11555 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11557 | break 2 |
11558 | fi | |
11559 | done | |
5213506e RW |
11560 | done |
11561 | IFS=$as_save_IFS | |
1c710c3c | 11562 | |
2abefe3d PB |
11563 | fi |
11564 | fi | |
1c710c3c | 11565 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11566 | if test -n "$STRIP"; then |
5213506e RW |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11568 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11569 | else |
5213506e RW |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11571 | $as_echo "no" >&6; } | |
2abefe3d | 11572 | fi |
1c710c3c | 11573 | |
5213506e | 11574 | |
2abefe3d PB |
11575 | fi |
11576 | test -n "$ac_cv_prog_STRIP" && break | |
11577 | done | |
11578 | ||
11579 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11580 | STRIP="true" |
2abefe3d PB |
11581 | fi |
11582 | ||
278a7a38 AO |
11583 | |
11584 | ||
11585 | if test -n "$WINDRES"; then | |
11586 | ac_cv_prog_WINDRES=$WINDRES | |
11587 | elif test -n "$ac_cv_prog_WINDRES"; then | |
11588 | WINDRES=$ac_cv_prog_WINDRES | |
11589 | fi | |
11590 | ||
11591 | if test -n "$ac_cv_prog_WINDRES"; then | |
11592 | for ncn_progname in windres; do | |
11593 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11594 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11596 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11597 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11598 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11599 | else |
11600 | if test -n "$WINDRES"; then | |
11601 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11602 | else | |
11603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11604 | for as_dir in $PATH | |
11605 | do | |
11606 | IFS=$as_save_IFS | |
11607 | test -z "$as_dir" && as_dir=. | |
5213506e | 11608 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11609 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11610 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11612 | break 2 |
11613 | fi | |
11614 | done | |
5213506e RW |
11615 | done |
11616 | IFS=$as_save_IFS | |
278a7a38 AO |
11617 | |
11618 | fi | |
11619 | fi | |
11620 | WINDRES=$ac_cv_prog_WINDRES | |
11621 | if test -n "$WINDRES"; then | |
5213506e RW |
11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11623 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 11624 | else |
5213506e RW |
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11626 | $as_echo "no" >&6; } | |
278a7a38 AO |
11627 | fi |
11628 | ||
5213506e | 11629 | |
278a7a38 AO |
11630 | done |
11631 | fi | |
11632 | ||
11633 | for ncn_progname in windres; do | |
2693c0b0 PB |
11634 | if test -n "$ncn_tool_prefix"; then |
11635 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11636 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11638 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11639 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11640 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11641 | else |
11642 | if test -n "$WINDRES"; then | |
11643 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11644 | else | |
1c710c3c DJ |
11645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11646 | for as_dir in $PATH | |
11647 | do | |
11648 | IFS=$as_save_IFS | |
11649 | test -z "$as_dir" && as_dir=. | |
5213506e | 11650 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11652 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11654 | break 2 |
11655 | fi | |
11656 | done | |
5213506e RW |
11657 | done |
11658 | IFS=$as_save_IFS | |
1c710c3c | 11659 | |
ca9f4b81 AO |
11660 | fi |
11661 | fi | |
1c710c3c | 11662 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 11663 | if test -n "$WINDRES"; then |
5213506e RW |
11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11665 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 11666 | else |
5213506e RW |
11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11668 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11669 | fi |
11670 | ||
5213506e | 11671 | |
2693c0b0 PB |
11672 | fi |
11673 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
11674 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11675 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11677 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11678 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11679 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11680 | else |
2693c0b0 PB |
11681 | if test -n "$WINDRES"; then |
11682 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 11683 | else |
1c710c3c DJ |
11684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11685 | for as_dir in $PATH | |
11686 | do | |
11687 | IFS=$as_save_IFS | |
11688 | test -z "$as_dir" && as_dir=. | |
5213506e | 11689 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11691 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11693 | break 2 |
11694 | fi | |
11695 | done | |
5213506e RW |
11696 | done |
11697 | IFS=$as_save_IFS | |
1c710c3c | 11698 | |
ca9f4b81 AO |
11699 | fi |
11700 | fi | |
1c710c3c | 11701 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 11702 | if test -n "$WINDRES"; then |
5213506e RW |
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11704 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 11705 | else |
5213506e RW |
11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11707 | $as_echo "no" >&6; } | |
ca9f4b81 | 11708 | fi |
1c710c3c | 11709 | |
5213506e | 11710 | |
2693c0b0 PB |
11711 | fi |
11712 | test -n "$ac_cv_prog_WINDRES" && break | |
11713 | done | |
11714 | ||
11715 | if test -z "$ac_cv_prog_WINDRES" ; then | |
11716 | set dummy windres | |
11717 | if test $build = $host ; then | |
11718 | WINDRES="$2" | |
ca9f4b81 | 11719 | else |
2693c0b0 | 11720 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 11721 | fi |
ca9f4b81 AO |
11722 | fi |
11723 | ||
278a7a38 AO |
11724 | |
11725 | ||
901119ae KT |
11726 | if test -n "$WINDMC"; then |
11727 | ac_cv_prog_WINDMC=$WINDMC | |
11728 | elif test -n "$ac_cv_prog_WINDMC"; then | |
11729 | WINDMC=$ac_cv_prog_WINDMC | |
11730 | fi | |
11731 | ||
11732 | if test -n "$ac_cv_prog_WINDMC"; then | |
11733 | for ncn_progname in windmc; do | |
11734 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11735 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11737 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11738 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 11739 | $as_echo_n "(cached) " >&6 |
901119ae KT |
11740 | else |
11741 | if test -n "$WINDMC"; then | |
11742 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
11743 | else | |
11744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11745 | for as_dir in $PATH | |
11746 | do | |
11747 | IFS=$as_save_IFS | |
11748 | test -z "$as_dir" && as_dir=. | |
5213506e | 11749 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 11751 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 11752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
11753 | break 2 |
11754 | fi | |
11755 | done | |
5213506e RW |
11756 | done |
11757 | IFS=$as_save_IFS | |
901119ae KT |
11758 | |
11759 | fi | |
11760 | fi | |
11761 | WINDMC=$ac_cv_prog_WINDMC | |
11762 | if test -n "$WINDMC"; then | |
5213506e RW |
11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
11764 | $as_echo "$WINDMC" >&6; } | |
901119ae | 11765 | else |
5213506e RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11767 | $as_echo "no" >&6; } | |
901119ae KT |
11768 | fi |
11769 | ||
5213506e | 11770 | |
901119ae KT |
11771 | done |
11772 | fi | |
11773 | ||
11774 | for ncn_progname in windmc; do | |
11775 | if test -n "$ncn_tool_prefix"; then | |
11776 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11777 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11779 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11780 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 11781 | $as_echo_n "(cached) " >&6 |
901119ae KT |
11782 | else |
11783 | if test -n "$WINDMC"; then | |
11784 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
11785 | else | |
11786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11787 | for as_dir in $PATH | |
11788 | do | |
11789 | IFS=$as_save_IFS | |
11790 | test -z "$as_dir" && as_dir=. | |
5213506e | 11791 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 11793 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
11795 | break 2 |
11796 | fi | |
11797 | done | |
5213506e RW |
11798 | done |
11799 | IFS=$as_save_IFS | |
901119ae KT |
11800 | |
11801 | fi | |
11802 | fi | |
11803 | WINDMC=$ac_cv_prog_WINDMC | |
11804 | if test -n "$WINDMC"; then | |
5213506e RW |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
11806 | $as_echo "$WINDMC" >&6; } | |
901119ae | 11807 | else |
5213506e RW |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11809 | $as_echo "no" >&6; } | |
901119ae KT |
11810 | fi |
11811 | ||
5213506e | 11812 | |
901119ae KT |
11813 | fi |
11814 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
11815 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11816 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11818 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11819 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 11820 | $as_echo_n "(cached) " >&6 |
901119ae KT |
11821 | else |
11822 | if test -n "$WINDMC"; then | |
11823 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
11824 | else | |
11825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11826 | for as_dir in $PATH | |
11827 | do | |
11828 | IFS=$as_save_IFS | |
11829 | test -z "$as_dir" && as_dir=. | |
5213506e | 11830 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 11832 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 11833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
11834 | break 2 |
11835 | fi | |
11836 | done | |
5213506e RW |
11837 | done |
11838 | IFS=$as_save_IFS | |
901119ae KT |
11839 | |
11840 | fi | |
11841 | fi | |
11842 | WINDMC=$ac_cv_prog_WINDMC | |
11843 | if test -n "$WINDMC"; then | |
5213506e RW |
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
11845 | $as_echo "$WINDMC" >&6; } | |
901119ae | 11846 | else |
5213506e RW |
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11848 | $as_echo "no" >&6; } | |
901119ae KT |
11849 | fi |
11850 | ||
5213506e | 11851 | |
901119ae KT |
11852 | fi |
11853 | test -n "$ac_cv_prog_WINDMC" && break | |
11854 | done | |
11855 | ||
11856 | if test -z "$ac_cv_prog_WINDMC" ; then | |
11857 | set dummy windmc | |
11858 | if test $build = $host ; then | |
11859 | WINDMC="$2" | |
11860 | else | |
11861 | WINDMC="${ncn_tool_prefix}$2" | |
11862 | fi | |
11863 | fi | |
11864 | ||
11865 | ||
11866 | ||
278a7a38 AO |
11867 | if test -n "$OBJCOPY"; then |
11868 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
11869 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
11870 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
11871 | fi | |
11872 | ||
11873 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
11874 | for ncn_progname in objcopy; do | |
11875 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11876 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11878 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11879 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 11880 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11881 | else |
11882 | if test -n "$OBJCOPY"; then | |
11883 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
11884 | else | |
11885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11886 | for as_dir in $PATH | |
11887 | do | |
11888 | IFS=$as_save_IFS | |
11889 | test -z "$as_dir" && as_dir=. | |
5213506e | 11890 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11892 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 11893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11894 | break 2 |
11895 | fi | |
11896 | done | |
5213506e RW |
11897 | done |
11898 | IFS=$as_save_IFS | |
278a7a38 AO |
11899 | |
11900 | fi | |
11901 | fi | |
11902 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
11903 | if test -n "$OBJCOPY"; then | |
5213506e RW |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
11905 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 11906 | else |
5213506e RW |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11908 | $as_echo "no" >&6; } | |
278a7a38 AO |
11909 | fi |
11910 | ||
5213506e | 11911 | |
278a7a38 AO |
11912 | done |
11913 | fi | |
11914 | ||
11915 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
11916 | if test -n "$ncn_tool_prefix"; then |
11917 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11918 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11920 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11921 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 11922 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11923 | else |
11924 | if test -n "$OBJCOPY"; then | |
11925 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
11926 | else | |
1c710c3c DJ |
11927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11928 | for as_dir in $PATH | |
11929 | do | |
11930 | IFS=$as_save_IFS | |
11931 | test -z "$as_dir" && as_dir=. | |
5213506e | 11932 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11934 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11936 | break 2 |
11937 | fi | |
11938 | done | |
5213506e RW |
11939 | done |
11940 | IFS=$as_save_IFS | |
1c710c3c | 11941 | |
ca9f4b81 AO |
11942 | fi |
11943 | fi | |
1c710c3c | 11944 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 11945 | if test -n "$OBJCOPY"; then |
5213506e RW |
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
11947 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 11948 | else |
5213506e RW |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11950 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11951 | fi |
11952 | ||
5213506e | 11953 | |
2693c0b0 PB |
11954 | fi |
11955 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
11956 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11957 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11959 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11960 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 11961 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11962 | else |
2693c0b0 PB |
11963 | if test -n "$OBJCOPY"; then |
11964 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 11965 | else |
1c710c3c DJ |
11966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11967 | for as_dir in $PATH | |
11968 | do | |
11969 | IFS=$as_save_IFS | |
11970 | test -z "$as_dir" && as_dir=. | |
5213506e | 11971 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11973 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 11974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11975 | break 2 |
11976 | fi | |
11977 | done | |
5213506e RW |
11978 | done |
11979 | IFS=$as_save_IFS | |
1c710c3c | 11980 | |
ca9f4b81 AO |
11981 | fi |
11982 | fi | |
1c710c3c | 11983 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 11984 | if test -n "$OBJCOPY"; then |
5213506e RW |
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
11986 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 11987 | else |
5213506e RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11989 | $as_echo "no" >&6; } | |
ca9f4b81 | 11990 | fi |
1c710c3c | 11991 | |
5213506e | 11992 | |
2693c0b0 PB |
11993 | fi |
11994 | test -n "$ac_cv_prog_OBJCOPY" && break | |
11995 | done | |
11996 | ||
11997 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
11998 | set dummy objcopy | |
11999 | if test $build = $host ; then | |
12000 | OBJCOPY="$2" | |
ca9f4b81 | 12001 | else |
2693c0b0 | 12002 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12003 | fi |
ca9f4b81 AO |
12004 | fi |
12005 | ||
278a7a38 AO |
12006 | |
12007 | ||
12008 | if test -n "$OBJDUMP"; then | |
12009 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12010 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12011 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12012 | fi | |
12013 | ||
12014 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12015 | for ncn_progname in objdump; do | |
12016 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12017 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12019 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12020 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12021 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12022 | else |
12023 | if test -n "$OBJDUMP"; then | |
12024 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12025 | else | |
12026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12027 | for as_dir in $PATH | |
12028 | do | |
12029 | IFS=$as_save_IFS | |
12030 | test -z "$as_dir" && as_dir=. | |
5213506e | 12031 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12033 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12035 | break 2 |
12036 | fi | |
12037 | done | |
5213506e RW |
12038 | done |
12039 | IFS=$as_save_IFS | |
278a7a38 AO |
12040 | |
12041 | fi | |
12042 | fi | |
12043 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12044 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12046 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12047 | else |
5213506e RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12049 | $as_echo "no" >&6; } | |
278a7a38 AO |
12050 | fi |
12051 | ||
5213506e | 12052 | |
278a7a38 AO |
12053 | done |
12054 | fi | |
12055 | ||
12056 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12057 | if test -n "$ncn_tool_prefix"; then |
12058 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12059 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12061 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12062 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12063 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12064 | else |
12065 | if test -n "$OBJDUMP"; then | |
12066 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12067 | else | |
1c710c3c DJ |
12068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12069 | for as_dir in $PATH | |
12070 | do | |
12071 | IFS=$as_save_IFS | |
12072 | test -z "$as_dir" && as_dir=. | |
5213506e | 12073 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12075 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12077 | break 2 |
12078 | fi | |
12079 | done | |
5213506e RW |
12080 | done |
12081 | IFS=$as_save_IFS | |
1c710c3c | 12082 | |
ca9f4b81 AO |
12083 | fi |
12084 | fi | |
1c710c3c | 12085 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12086 | if test -n "$OBJDUMP"; then |
5213506e RW |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12088 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12089 | else |
5213506e RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12091 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12092 | fi |
12093 | ||
5213506e | 12094 | |
2693c0b0 PB |
12095 | fi |
12096 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12097 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12098 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12100 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12101 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12102 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12103 | else |
2693c0b0 PB |
12104 | if test -n "$OBJDUMP"; then |
12105 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12106 | else |
1c710c3c DJ |
12107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12108 | for as_dir in $PATH | |
12109 | do | |
12110 | IFS=$as_save_IFS | |
12111 | test -z "$as_dir" && as_dir=. | |
5213506e | 12112 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12114 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12116 | break 2 |
12117 | fi | |
12118 | done | |
5213506e RW |
12119 | done |
12120 | IFS=$as_save_IFS | |
1c710c3c | 12121 | |
ca9f4b81 AO |
12122 | fi |
12123 | fi | |
1c710c3c | 12124 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12125 | if test -n "$OBJDUMP"; then |
5213506e RW |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12127 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12128 | else |
5213506e RW |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12130 | $as_echo "no" >&6; } | |
ca9f4b81 | 12131 | fi |
1c710c3c | 12132 | |
5213506e | 12133 | |
2693c0b0 PB |
12134 | fi |
12135 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12136 | done | |
12137 | ||
12138 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12139 | set dummy objdump | |
12140 | if test $build = $host ; then | |
12141 | OBJDUMP="$2" | |
ca9f4b81 | 12142 | else |
2693c0b0 | 12143 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12144 | fi |
ca9f4b81 AO |
12145 | fi |
12146 | ||
671aa708 NN |
12147 | |
12148 | ||
e4a9a572 IS |
12149 | if test -n "$OTOOL"; then |
12150 | ac_cv_prog_OTOOL=$OTOOL | |
12151 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12152 | OTOOL=$ac_cv_prog_OTOOL | |
12153 | fi | |
12154 | ||
12155 | if test -n "$ac_cv_prog_OTOOL"; then | |
12156 | for ncn_progname in otool; do | |
12157 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12158 | set dummy ${ncn_progname}; ac_word=$2 | |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12160 | $as_echo_n "checking for $ac_word... " >&6; } | |
12161 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12162 | $as_echo_n "(cached) " >&6 | |
12163 | else | |
12164 | if test -n "$OTOOL"; then | |
12165 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12166 | else | |
12167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12168 | for as_dir in $PATH | |
12169 | do | |
12170 | IFS=$as_save_IFS | |
12171 | test -z "$as_dir" && as_dir=. | |
12172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12174 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12176 | break 2 | |
12177 | fi | |
12178 | done | |
12179 | done | |
12180 | IFS=$as_save_IFS | |
12181 | ||
12182 | fi | |
12183 | fi | |
12184 | OTOOL=$ac_cv_prog_OTOOL | |
12185 | if test -n "$OTOOL"; then | |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12187 | $as_echo "$OTOOL" >&6; } | |
12188 | else | |
12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12190 | $as_echo "no" >&6; } | |
12191 | fi | |
12192 | ||
12193 | ||
12194 | done | |
12195 | fi | |
12196 | ||
12197 | for ncn_progname in otool; do | |
12198 | if test -n "$ncn_tool_prefix"; then | |
12199 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12200 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12202 | $as_echo_n "checking for $ac_word... " >&6; } | |
12203 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12204 | $as_echo_n "(cached) " >&6 | |
12205 | else | |
12206 | if test -n "$OTOOL"; then | |
12207 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12208 | else | |
12209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12210 | for as_dir in $PATH | |
12211 | do | |
12212 | IFS=$as_save_IFS | |
12213 | test -z "$as_dir" && as_dir=. | |
12214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12216 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12218 | break 2 | |
12219 | fi | |
12220 | done | |
12221 | done | |
12222 | IFS=$as_save_IFS | |
12223 | ||
12224 | fi | |
12225 | fi | |
12226 | OTOOL=$ac_cv_prog_OTOOL | |
12227 | if test -n "$OTOOL"; then | |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12229 | $as_echo "$OTOOL" >&6; } | |
12230 | else | |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12232 | $as_echo "no" >&6; } | |
12233 | fi | |
12234 | ||
12235 | ||
12236 | fi | |
12237 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12238 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12239 | set dummy ${ncn_progname}; ac_word=$2 | |
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12241 | $as_echo_n "checking for $ac_word... " >&6; } | |
12242 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12243 | $as_echo_n "(cached) " >&6 | |
12244 | else | |
12245 | if test -n "$OTOOL"; then | |
12246 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12247 | else | |
12248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12249 | for as_dir in $PATH | |
12250 | do | |
12251 | IFS=$as_save_IFS | |
12252 | test -z "$as_dir" && as_dir=. | |
12253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12255 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12257 | break 2 | |
12258 | fi | |
12259 | done | |
12260 | done | |
12261 | IFS=$as_save_IFS | |
12262 | ||
12263 | fi | |
12264 | fi | |
12265 | OTOOL=$ac_cv_prog_OTOOL | |
12266 | if test -n "$OTOOL"; then | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12268 | $as_echo "$OTOOL" >&6; } | |
12269 | else | |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12271 | $as_echo "no" >&6; } | |
12272 | fi | |
12273 | ||
12274 | ||
12275 | fi | |
12276 | test -n "$ac_cv_prog_OTOOL" && break | |
12277 | done | |
12278 | ||
12279 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12280 | set dummy otool | |
12281 | if test $build = $host ; then | |
12282 | OTOOL="$2" | |
12283 | else | |
12284 | OTOOL="${ncn_tool_prefix}$2" | |
12285 | fi | |
12286 | fi | |
12287 | ||
12288 | ||
12289 | ||
e7a82751 RM |
12290 | if test -n "$READELF"; then |
12291 | ac_cv_prog_READELF=$READELF | |
12292 | elif test -n "$ac_cv_prog_READELF"; then | |
12293 | READELF=$ac_cv_prog_READELF | |
12294 | fi | |
12295 | ||
12296 | if test -n "$ac_cv_prog_READELF"; then | |
12297 | for ncn_progname in readelf; do | |
12298 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12299 | set dummy ${ncn_progname}; ac_word=$2 | |
12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12301 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12302 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12303 | $as_echo_n "(cached) " >&6 |
12304 | else | |
12305 | if test -n "$READELF"; then | |
12306 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12307 | else | |
12308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12309 | for as_dir in $PATH | |
12310 | do | |
12311 | IFS=$as_save_IFS | |
12312 | test -z "$as_dir" && as_dir=. | |
12313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12315 | ac_cv_prog_READELF="${ncn_progname}" |
12316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12317 | break 2 | |
12318 | fi | |
12319 | done | |
12320 | done | |
12321 | IFS=$as_save_IFS | |
12322 | ||
12323 | fi | |
12324 | fi | |
12325 | READELF=$ac_cv_prog_READELF | |
12326 | if test -n "$READELF"; then | |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12328 | $as_echo "$READELF" >&6; } | |
12329 | else | |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12331 | $as_echo "no" >&6; } | |
12332 | fi | |
12333 | ||
12334 | ||
12335 | done | |
12336 | fi | |
12337 | ||
12338 | for ncn_progname in readelf; do | |
12339 | if test -n "$ncn_tool_prefix"; then | |
12340 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12341 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12343 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12344 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12345 | $as_echo_n "(cached) " >&6 |
12346 | else | |
12347 | if test -n "$READELF"; then | |
12348 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12349 | else | |
12350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12351 | for as_dir in $PATH | |
12352 | do | |
12353 | IFS=$as_save_IFS | |
12354 | test -z "$as_dir" && as_dir=. | |
12355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12357 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12359 | break 2 | |
12360 | fi | |
12361 | done | |
12362 | done | |
12363 | IFS=$as_save_IFS | |
12364 | ||
12365 | fi | |
12366 | fi | |
12367 | READELF=$ac_cv_prog_READELF | |
12368 | if test -n "$READELF"; then | |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12370 | $as_echo "$READELF" >&6; } | |
12371 | else | |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12373 | $as_echo "no" >&6; } | |
12374 | fi | |
12375 | ||
12376 | ||
12377 | fi | |
12378 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12379 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12380 | set dummy ${ncn_progname}; ac_word=$2 | |
12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12382 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12383 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12384 | $as_echo_n "(cached) " >&6 |
12385 | else | |
12386 | if test -n "$READELF"; then | |
12387 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12388 | else | |
12389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12390 | for as_dir in $PATH | |
12391 | do | |
12392 | IFS=$as_save_IFS | |
12393 | test -z "$as_dir" && as_dir=. | |
12394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12396 | ac_cv_prog_READELF="${ncn_progname}" |
12397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12398 | break 2 | |
12399 | fi | |
12400 | done | |
12401 | done | |
12402 | IFS=$as_save_IFS | |
12403 | ||
12404 | fi | |
12405 | fi | |
12406 | READELF=$ac_cv_prog_READELF | |
12407 | if test -n "$READELF"; then | |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12409 | $as_echo "$READELF" >&6; } | |
12410 | else | |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12412 | $as_echo "no" >&6; } | |
12413 | fi | |
12414 | ||
12415 | ||
12416 | fi | |
12417 | test -n "$ac_cv_prog_READELF" && break | |
12418 | done | |
12419 | ||
12420 | if test -z "$ac_cv_prog_READELF" ; then | |
12421 | set dummy readelf | |
12422 | if test $build = $host ; then | |
12423 | READELF="$2" | |
12424 | else | |
12425 | READELF="${ncn_tool_prefix}$2" | |
12426 | fi | |
12427 | fi | |
12428 | ||
12429 | ||
12430 | ||
671aa708 NN |
12431 | |
12432 | ||
12433 | ||
2abefe3d | 12434 | # Target tools. |
1c710c3c | 12435 | |
5213506e RW |
12436 | # Check whether --with-build-time-tools was given. |
12437 | if test "${with_build_time_tools+set}" = set; then : | |
12438 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12439 | x/*) ;; |
12440 | *) | |
12441 | with_build_time_tools= | |
5213506e RW |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12443 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12444 | ;; |
12445 | esac | |
ca9f4b81 | 12446 | else |
e8b05380 | 12447 | with_build_time_tools= |
5213506e RW |
12448 | fi |
12449 | ||
ca9f4b81 | 12450 | |
278a7a38 AO |
12451 | |
12452 | ||
12453 | if test -n "$CC_FOR_TARGET"; then | |
12454 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12455 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12456 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12457 | fi | |
12458 | ||
12459 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12460 | for ncn_progname in cc gcc; do | |
12461 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12462 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12464 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12465 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12466 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12467 | else |
12468 | if test -n "$CC_FOR_TARGET"; then | |
12469 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12470 | else | |
12471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12472 | for as_dir in $PATH | |
12473 | do | |
12474 | IFS=$as_save_IFS | |
12475 | test -z "$as_dir" && as_dir=. | |
5213506e | 12476 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12478 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12480 | break 2 |
12481 | fi | |
12482 | done | |
5213506e RW |
12483 | done |
12484 | IFS=$as_save_IFS | |
278a7a38 AO |
12485 | |
12486 | fi | |
12487 | fi | |
12488 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12489 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12491 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12492 | else |
5213506e RW |
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12494 | $as_echo "no" >&6; } | |
278a7a38 AO |
12495 | fi |
12496 | ||
5213506e | 12497 | |
278a7a38 AO |
12498 | done |
12499 | fi | |
12500 | ||
12501 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12502 | for ncn_progname in cc gcc; do |
5213506e RW |
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12504 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12505 | if test -x $with_build_time_tools/${ncn_progname}; then |
12506 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12508 | $as_echo "yes" >&6; } | |
72a7ab82 | 12509 | break |
e8b05380 | 12510 | else |
5213506e RW |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12512 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12513 | fi |
12514 | done | |
4de997d1 PB |
12515 | fi |
12516 | ||
e8b05380 PB |
12517 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12518 | for ncn_progname in cc gcc; do | |
12519 | if test -n "$ncn_target_tool_prefix"; then | |
12520 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12521 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12523 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12524 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12525 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12526 | else |
12527 | if test -n "$CC_FOR_TARGET"; then | |
12528 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12529 | else | |
1c710c3c DJ |
12530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12531 | for as_dir in $PATH | |
12532 | do | |
12533 | IFS=$as_save_IFS | |
12534 | test -z "$as_dir" && as_dir=. | |
5213506e | 12535 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12537 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12539 | break 2 |
12540 | fi | |
12541 | done | |
5213506e RW |
12542 | done |
12543 | IFS=$as_save_IFS | |
1c710c3c | 12544 | |
4de997d1 PB |
12545 | fi |
12546 | fi | |
1c710c3c | 12547 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12548 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12550 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12551 | else |
5213506e RW |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12553 | $as_echo "no" >&6; } | |
4de997d1 PB |
12554 | fi |
12555 | ||
5213506e | 12556 | |
e8b05380 PB |
12557 | fi |
12558 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12560 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12562 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12563 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12564 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12565 | else |
2693c0b0 PB |
12566 | if test -n "$CC_FOR_TARGET"; then |
12567 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12568 | else |
1c710c3c DJ |
12569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12570 | for as_dir in $PATH | |
12571 | do | |
12572 | IFS=$as_save_IFS | |
12573 | test -z "$as_dir" && as_dir=. | |
5213506e | 12574 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12576 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12578 | break 2 |
12579 | fi | |
12580 | done | |
5213506e RW |
12581 | done |
12582 | IFS=$as_save_IFS | |
1c710c3c | 12583 | |
4de997d1 PB |
12584 | fi |
12585 | fi | |
1c710c3c | 12586 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 12587 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12589 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12590 | else |
5213506e RW |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12592 | $as_echo "no" >&6; } | |
4de997d1 | 12593 | fi |
1c710c3c | 12594 | |
5213506e | 12595 | |
e8b05380 PB |
12596 | fi |
12597 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
12598 | done | |
12599 | fi | |
1c710c3c | 12600 | |
2693c0b0 PB |
12601 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
12602 | set dummy cc gcc | |
12603 | if test $build = $target ; then | |
12604 | CC_FOR_TARGET="$2" | |
4de997d1 | 12605 | else |
2693c0b0 | 12606 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12607 | fi |
1c00b503 PB |
12608 | else |
12609 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
12610 | fi |
12611 | ||
278a7a38 AO |
12612 | |
12613 | ||
12614 | if test -n "$CXX_FOR_TARGET"; then | |
12615 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
12616 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12617 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12618 | fi | |
12619 | ||
12620 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12621 | for ncn_progname in c++ g++ cxx gxx; do | |
12622 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12623 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12625 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12626 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12627 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12628 | else |
12629 | if test -n "$CXX_FOR_TARGET"; then | |
12630 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
12631 | else | |
12632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12633 | for as_dir in $PATH | |
12634 | do | |
12635 | IFS=$as_save_IFS | |
12636 | test -z "$as_dir" && as_dir=. | |
5213506e | 12637 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12639 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 12640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12641 | break 2 |
12642 | fi | |
12643 | done | |
5213506e RW |
12644 | done |
12645 | IFS=$as_save_IFS | |
278a7a38 AO |
12646 | |
12647 | fi | |
12648 | fi | |
12649 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12650 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12652 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 12653 | else |
5213506e RW |
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12655 | $as_echo "no" >&6; } | |
278a7a38 AO |
12656 | fi |
12657 | ||
5213506e | 12658 | |
278a7a38 AO |
12659 | done |
12660 | fi | |
12661 | ||
12662 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12663 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12665 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12666 | if test -x $with_build_time_tools/${ncn_progname}; then |
12667 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12669 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12670 | break |
12671 | else | |
5213506e RW |
12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12673 | $as_echo "no" >&6; } | |
e8b05380 PB |
12674 | fi |
12675 | done | |
12676 | fi | |
12677 | ||
12678 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12679 | for ncn_progname in c++ g++ cxx gxx; do | |
12680 | if test -n "$ncn_target_tool_prefix"; then | |
12681 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12682 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12684 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12685 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12686 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12687 | else |
12688 | if test -n "$CXX_FOR_TARGET"; then | |
12689 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
12690 | else | |
1c710c3c DJ |
12691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12692 | for as_dir in $PATH | |
12693 | do | |
12694 | IFS=$as_save_IFS | |
12695 | test -z "$as_dir" && as_dir=. | |
5213506e | 12696 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12698 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12700 | break 2 |
12701 | fi | |
12702 | done | |
5213506e RW |
12703 | done |
12704 | IFS=$as_save_IFS | |
1c710c3c | 12705 | |
4de997d1 PB |
12706 | fi |
12707 | fi | |
1c710c3c | 12708 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 12709 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12711 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 12712 | else |
5213506e RW |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12714 | $as_echo "no" >&6; } | |
4de997d1 PB |
12715 | fi |
12716 | ||
5213506e | 12717 | |
e8b05380 PB |
12718 | fi |
12719 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
12720 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12721 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12723 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12724 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12725 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12726 | else |
2693c0b0 PB |
12727 | if test -n "$CXX_FOR_TARGET"; then |
12728 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12729 | else |
1c710c3c DJ |
12730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12731 | for as_dir in $PATH | |
12732 | do | |
12733 | IFS=$as_save_IFS | |
12734 | test -z "$as_dir" && as_dir=. | |
5213506e | 12735 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12737 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 12738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12739 | break 2 |
12740 | fi | |
12741 | done | |
5213506e RW |
12742 | done |
12743 | IFS=$as_save_IFS | |
1c710c3c | 12744 | |
4de997d1 PB |
12745 | fi |
12746 | fi | |
1c710c3c | 12747 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 12748 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12750 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 12751 | else |
5213506e RW |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12753 | $as_echo "no" >&6; } | |
4de997d1 | 12754 | fi |
1c710c3c | 12755 | |
5213506e | 12756 | |
e8b05380 PB |
12757 | fi |
12758 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
12759 | done | |
12760 | fi | |
1c710c3c | 12761 | |
2693c0b0 PB |
12762 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
12763 | set dummy c++ g++ cxx gxx | |
12764 | if test $build = $target ; then | |
12765 | CXX_FOR_TARGET="$2" | |
4de997d1 | 12766 | else |
2693c0b0 | 12767 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12768 | fi |
1c00b503 PB |
12769 | else |
12770 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
12771 | fi |
12772 | ||
278a7a38 AO |
12773 | |
12774 | ||
12775 | if test -n "$GCC_FOR_TARGET"; then | |
12776 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
12777 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
12778 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
12779 | fi | |
12780 | ||
12781 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
12782 | for ncn_progname in gcc; do | |
12783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12784 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12786 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12787 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 12788 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12789 | else |
12790 | if test -n "$GCC_FOR_TARGET"; then | |
12791 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
12792 | else | |
12793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12794 | for as_dir in $PATH | |
12795 | do | |
12796 | IFS=$as_save_IFS | |
12797 | test -z "$as_dir" && as_dir=. | |
5213506e | 12798 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12800 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 12801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12802 | break 2 |
12803 | fi | |
12804 | done | |
5213506e RW |
12805 | done |
12806 | IFS=$as_save_IFS | |
278a7a38 AO |
12807 | |
12808 | fi | |
12809 | fi | |
12810 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
12811 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
12813 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 12814 | else |
5213506e RW |
12815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12816 | $as_echo "no" >&6; } | |
278a7a38 AO |
12817 | fi |
12818 | ||
5213506e | 12819 | |
278a7a38 AO |
12820 | done |
12821 | fi | |
12822 | ||
12823 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12824 | for ncn_progname in gcc; do |
5213506e RW |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12826 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12827 | if test -x $with_build_time_tools/${ncn_progname}; then |
12828 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12830 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12831 | break |
12832 | else | |
5213506e RW |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12834 | $as_echo "no" >&6; } | |
e8b05380 PB |
12835 | fi |
12836 | done | |
12837 | fi | |
12838 | ||
12839 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
12840 | for ncn_progname in gcc; do | |
12841 | if test -n "$ncn_target_tool_prefix"; then | |
12842 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12843 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12845 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12846 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 12847 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12848 | else |
e8b05380 PB |
12849 | if test -n "$GCC_FOR_TARGET"; then |
12850 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12851 | else |
1c710c3c DJ |
12852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12853 | for as_dir in $PATH | |
12854 | do | |
12855 | IFS=$as_save_IFS | |
12856 | test -z "$as_dir" && as_dir=. | |
5213506e | 12857 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12859 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12861 | break 2 |
12862 | fi | |
12863 | done | |
5213506e RW |
12864 | done |
12865 | IFS=$as_save_IFS | |
1c710c3c | 12866 | |
ca9f4b81 AO |
12867 | fi |
12868 | fi | |
1c710c3c | 12869 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 12870 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
12872 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 12873 | else |
5213506e RW |
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12875 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12876 | fi |
12877 | ||
5213506e | 12878 | |
e8b05380 PB |
12879 | fi |
12880 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
12881 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12882 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12884 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12885 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 12886 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12887 | else |
e8b05380 PB |
12888 | if test -n "$GCC_FOR_TARGET"; then |
12889 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12890 | else |
1c710c3c DJ |
12891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12892 | for as_dir in $PATH | |
12893 | do | |
12894 | IFS=$as_save_IFS | |
12895 | test -z "$as_dir" && as_dir=. | |
5213506e | 12896 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12898 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 12899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12900 | break 2 |
12901 | fi | |
12902 | done | |
5213506e RW |
12903 | done |
12904 | IFS=$as_save_IFS | |
1c710c3c | 12905 | |
ca9f4b81 AO |
12906 | fi |
12907 | fi | |
1c710c3c | 12908 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 12909 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
12911 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 12912 | else |
5213506e RW |
12913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12914 | $as_echo "no" >&6; } | |
ca9f4b81 | 12915 | fi |
1c710c3c | 12916 | |
5213506e | 12917 | |
e8b05380 PB |
12918 | fi |
12919 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
12920 | done | |
12921 | fi | |
1c710c3c | 12922 | |
e8b05380 PB |
12923 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
12924 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
12925 | else |
12926 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
12927 | fi |
12928 | ||
278a7a38 AO |
12929 | |
12930 | ||
278a7a38 AO |
12931 | if test -n "$GFORTRAN_FOR_TARGET"; then |
12932 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
12933 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
12934 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
12935 | fi |
12936 | ||
278a7a38 AO |
12937 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
12938 | for ncn_progname in gfortran; do | |
12939 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 12940 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12942 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12943 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 12944 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12945 | else |
278a7a38 AO |
12946 | if test -n "$GFORTRAN_FOR_TARGET"; then |
12947 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 12948 | else |
1c710c3c DJ |
12949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12950 | for as_dir in $PATH | |
12951 | do | |
12952 | IFS=$as_save_IFS | |
12953 | test -z "$as_dir" && as_dir=. | |
5213506e | 12954 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12956 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 12957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12958 | break 2 |
12959 | fi | |
12960 | done | |
5213506e RW |
12961 | done |
12962 | IFS=$as_save_IFS | |
1c710c3c | 12963 | |
e8b05380 PB |
12964 | fi |
12965 | fi | |
278a7a38 AO |
12966 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
12967 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
12969 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 12970 | else |
5213506e RW |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12972 | $as_echo "no" >&6; } | |
e8b05380 | 12973 | fi |
1c710c3c | 12974 | |
5213506e | 12975 | |
e8b05380 PB |
12976 | done |
12977 | fi | |
1c710c3c | 12978 | |
278a7a38 | 12979 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 12980 | for ncn_progname in gfortran; do |
5213506e RW |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12982 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12983 | if test -x $with_build_time_tools/${ncn_progname}; then |
12984 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12986 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12987 | break |
12988 | else | |
5213506e RW |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12990 | $as_echo "no" >&6; } | |
e8b05380 PB |
12991 | fi |
12992 | done | |
12993 | fi | |
12994 | ||
12995 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
12996 | for ncn_progname in gfortran; do | |
12997 | if test -n "$ncn_target_tool_prefix"; then | |
12998 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12999 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13001 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13002 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13003 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13004 | else |
13005 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13006 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13007 | else | |
13008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13009 | for as_dir in $PATH | |
13010 | do | |
13011 | IFS=$as_save_IFS | |
13012 | test -z "$as_dir" && as_dir=. | |
5213506e | 13013 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13015 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13017 | break 2 |
13018 | fi | |
13019 | done | |
5213506e RW |
13020 | done |
13021 | IFS=$as_save_IFS | |
1c710c3c | 13022 | |
e8b05380 PB |
13023 | fi |
13024 | fi | |
1c710c3c | 13025 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13026 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13028 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13029 | else |
5213506e RW |
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13031 | $as_echo "no" >&6; } | |
e8b05380 PB |
13032 | fi |
13033 | ||
5213506e | 13034 | |
e8b05380 PB |
13035 | fi |
13036 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13038 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13040 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13041 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13042 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13043 | else |
13044 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13045 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13046 | else | |
1c710c3c DJ |
13047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13048 | for as_dir in $PATH | |
13049 | do | |
13050 | IFS=$as_save_IFS | |
13051 | test -z "$as_dir" && as_dir=. | |
5213506e | 13052 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13054 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13056 | break 2 |
13057 | fi | |
13058 | done | |
5213506e RW |
13059 | done |
13060 | IFS=$as_save_IFS | |
1c710c3c | 13061 | |
e8b05380 PB |
13062 | fi |
13063 | fi | |
1c710c3c | 13064 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13065 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13067 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13068 | else |
5213506e RW |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13070 | $as_echo "no" >&6; } | |
e8b05380 | 13071 | fi |
1c710c3c | 13072 | |
5213506e | 13073 | |
e8b05380 PB |
13074 | fi |
13075 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13076 | done | |
13077 | fi | |
1c710c3c | 13078 | |
e8b05380 PB |
13079 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13080 | set dummy gfortran | |
2693c0b0 | 13081 | if test $build = $target ; then |
e8b05380 | 13082 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13083 | else |
e8b05380 PB |
13084 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13085 | fi | |
1c00b503 PB |
13086 | else |
13087 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13088 | fi |
13089 | ||
13090 | ||
13091 | ||
632e2a07 ILT |
13092 | if test -n "$GOC_FOR_TARGET"; then |
13093 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13094 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13095 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13096 | fi | |
13097 | ||
13098 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13099 | for ncn_progname in gccgo; do | |
13100 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13101 | set dummy ${ncn_progname}; ac_word=$2 | |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13103 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13104 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13105 | $as_echo_n "(cached) " >&6 |
13106 | else | |
13107 | if test -n "$GOC_FOR_TARGET"; then | |
13108 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13109 | else | |
13110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13111 | for as_dir in $PATH | |
13112 | do | |
13113 | IFS=$as_save_IFS | |
13114 | test -z "$as_dir" && as_dir=. | |
13115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13116 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13117 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13119 | break 2 | |
13120 | fi | |
13121 | done | |
13122 | done | |
13123 | IFS=$as_save_IFS | |
13124 | ||
13125 | fi | |
13126 | fi | |
13127 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13128 | if test -n "$GOC_FOR_TARGET"; then | |
13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13130 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13131 | else | |
13132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13133 | $as_echo "no" >&6; } | |
13134 | fi | |
13135 | ||
13136 | ||
13137 | done | |
13138 | fi | |
13139 | ||
13140 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13141 | for ncn_progname in gccgo; do | |
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13143 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13144 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13145 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13147 | $as_echo "yes" >&6; } | |
13148 | break | |
13149 | else | |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13151 | $as_echo "no" >&6; } | |
13152 | fi | |
13153 | done | |
13154 | fi | |
13155 | ||
13156 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13157 | for ncn_progname in gccgo; do | |
13158 | if test -n "$ncn_target_tool_prefix"; then | |
13159 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13160 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13162 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13163 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13164 | $as_echo_n "(cached) " >&6 |
13165 | else | |
13166 | if test -n "$GOC_FOR_TARGET"; then | |
13167 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13168 | else | |
13169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13170 | for as_dir in $PATH | |
13171 | do | |
13172 | IFS=$as_save_IFS | |
13173 | test -z "$as_dir" && as_dir=. | |
13174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13176 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13178 | break 2 | |
13179 | fi | |
13180 | done | |
13181 | done | |
13182 | IFS=$as_save_IFS | |
13183 | ||
13184 | fi | |
13185 | fi | |
13186 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13187 | if test -n "$GOC_FOR_TARGET"; then | |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13189 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13190 | else | |
13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13192 | $as_echo "no" >&6; } | |
13193 | fi | |
13194 | ||
13195 | ||
13196 | fi | |
13197 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13198 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13199 | set dummy ${ncn_progname}; ac_word=$2 | |
13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13201 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13202 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13203 | $as_echo_n "(cached) " >&6 |
13204 | else | |
13205 | if test -n "$GOC_FOR_TARGET"; then | |
13206 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13207 | else | |
13208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13209 | for as_dir in $PATH | |
13210 | do | |
13211 | IFS=$as_save_IFS | |
13212 | test -z "$as_dir" && as_dir=. | |
13213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13215 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13217 | break 2 | |
13218 | fi | |
13219 | done | |
13220 | done | |
13221 | IFS=$as_save_IFS | |
13222 | ||
13223 | fi | |
13224 | fi | |
13225 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13226 | if test -n "$GOC_FOR_TARGET"; then | |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13228 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13229 | else | |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13231 | $as_echo "no" >&6; } | |
13232 | fi | |
13233 | ||
13234 | ||
13235 | fi | |
13236 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13237 | done | |
13238 | fi | |
13239 | ||
13240 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13241 | set dummy gccgo | |
13242 | if test $build = $target ; then | |
13243 | GOC_FOR_TARGET="$2" | |
13244 | else | |
13245 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13246 | fi | |
13247 | else | |
13248 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13249 | fi | |
13250 | ||
13251 | ||
13252 | ||
b4c522fa IB |
13253 | if test -n "$GDC_FOR_TARGET"; then |
13254 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13255 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13256 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13257 | fi | |
13258 | ||
13259 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13260 | for ncn_progname in gdc; do | |
13261 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13262 | set dummy ${ncn_progname}; ac_word=$2 | |
13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13264 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13265 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13266 | $as_echo_n "(cached) " >&6 |
13267 | else | |
13268 | if test -n "$GDC_FOR_TARGET"; then | |
13269 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13270 | else | |
13271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13272 | for as_dir in $PATH | |
13273 | do | |
13274 | IFS=$as_save_IFS | |
13275 | test -z "$as_dir" && as_dir=. | |
13276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13278 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13280 | break 2 | |
13281 | fi | |
13282 | done | |
13283 | done | |
13284 | IFS=$as_save_IFS | |
13285 | ||
13286 | fi | |
13287 | fi | |
13288 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13289 | if test -n "$GDC_FOR_TARGET"; then | |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13291 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13292 | else | |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13294 | $as_echo "no" >&6; } | |
13295 | fi | |
13296 | ||
13297 | ||
13298 | done | |
13299 | fi | |
13300 | ||
13301 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13302 | for ncn_progname in gdc; do | |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13304 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13305 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13306 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13308 | $as_echo "yes" >&6; } | |
13309 | break | |
13310 | else | |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13312 | $as_echo "no" >&6; } | |
13313 | fi | |
13314 | done | |
13315 | fi | |
13316 | ||
13317 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13318 | for ncn_progname in gdc; do | |
13319 | if test -n "$ncn_target_tool_prefix"; then | |
13320 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13321 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13324 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13325 | $as_echo_n "(cached) " >&6 |
13326 | else | |
13327 | if test -n "$GDC_FOR_TARGET"; then | |
13328 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13329 | else | |
13330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13331 | for as_dir in $PATH | |
13332 | do | |
13333 | IFS=$as_save_IFS | |
13334 | test -z "$as_dir" && as_dir=. | |
13335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13337 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13339 | break 2 | |
13340 | fi | |
13341 | done | |
13342 | done | |
13343 | IFS=$as_save_IFS | |
13344 | ||
13345 | fi | |
13346 | fi | |
13347 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13348 | if test -n "$GDC_FOR_TARGET"; then | |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13350 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13351 | else | |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13353 | $as_echo "no" >&6; } | |
13354 | fi | |
13355 | ||
13356 | ||
13357 | fi | |
13358 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13360 | set dummy ${ncn_progname}; ac_word=$2 | |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13363 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13364 | $as_echo_n "(cached) " >&6 |
13365 | else | |
13366 | if test -n "$GDC_FOR_TARGET"; then | |
13367 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13368 | else | |
13369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13370 | for as_dir in $PATH | |
13371 | do | |
13372 | IFS=$as_save_IFS | |
13373 | test -z "$as_dir" && as_dir=. | |
13374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13376 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13378 | break 2 | |
13379 | fi | |
13380 | done | |
13381 | done | |
13382 | IFS=$as_save_IFS | |
13383 | ||
13384 | fi | |
13385 | fi | |
13386 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13387 | if test -n "$GDC_FOR_TARGET"; then | |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13389 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13390 | else | |
13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13392 | $as_echo "no" >&6; } | |
13393 | fi | |
13394 | ||
13395 | ||
13396 | fi | |
13397 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13398 | done | |
13399 | fi | |
13400 | ||
13401 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13402 | set dummy gdc | |
13403 | if test $build = $target ; then | |
13404 | GDC_FOR_TARGET="$2" | |
13405 | else | |
13406 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13407 | fi | |
13408 | else | |
13409 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13410 | fi | |
13411 | ||
13412 | ||
13413 | ||
e8b05380 PB |
13414 | cat > conftest.c << \EOF |
13415 | #ifdef __GNUC__ | |
13416 | gcc_yay; | |
13417 | #endif | |
13418 | EOF | |
13419 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13420 | have_gcc_for_target=yes | |
13421 | else | |
13422 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13423 | have_gcc_for_target=no | |
13424 | fi | |
13425 | rm conftest.c | |
13426 | ||
13427 | ||
13428 | ||
13429 | ||
13430 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13431 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13433 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13434 | if test -x $with_build_time_tools/ar; then |
13435 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13436 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13438 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13439 | else |
5213506e RW |
13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13441 | $as_echo "no" >&6; } | |
d1f8db0c | 13442 | fi |
e8b05380 PB |
13443 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13444 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13445 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13446 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13447 | fi |
13448 | fi | |
3e19841a | 13449 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13450 | # Extract the first word of "ar", so it can be a program name with args. |
13451 | set dummy ar; ac_word=$2 | |
5213506e RW |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13453 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13454 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13455 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13456 | else |
1c710c3c DJ |
13457 | case $AR_FOR_TARGET in |
13458 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13459 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13460 | ;; | |
e8b05380 | 13461 | *) |
1c710c3c DJ |
13462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13463 | for as_dir in $gcc_cv_tool_dirs | |
13464 | do | |
13465 | IFS=$as_save_IFS | |
13466 | test -z "$as_dir" && as_dir=. | |
5213506e | 13467 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13468 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13469 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13471 | break 2 |
13472 | fi | |
13473 | done | |
5213506e RW |
13474 | done |
13475 | IFS=$as_save_IFS | |
1c710c3c | 13476 | |
e8b05380 PB |
13477 | ;; |
13478 | esac | |
13479 | fi | |
1c710c3c | 13480 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13481 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13483 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13484 | else |
5213506e RW |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13486 | $as_echo "no" >&6; } | |
4de997d1 PB |
13487 | fi |
13488 | ||
5213506e | 13489 | |
e8b05380 PB |
13490 | fi |
13491 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13492 | |
13493 | ||
13494 | if test -n "$AR_FOR_TARGET"; then | |
13495 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13496 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13497 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13498 | fi | |
13499 | ||
13500 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13501 | for ncn_progname in ar; do | |
13502 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13503 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13505 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13506 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13507 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13508 | else |
13509 | if test -n "$AR_FOR_TARGET"; then | |
13510 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13511 | else | |
13512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13513 | for as_dir in $PATH | |
13514 | do | |
13515 | IFS=$as_save_IFS | |
13516 | test -z "$as_dir" && as_dir=. | |
5213506e | 13517 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13519 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13521 | break 2 |
13522 | fi | |
13523 | done | |
5213506e RW |
13524 | done |
13525 | IFS=$as_save_IFS | |
278a7a38 AO |
13526 | |
13527 | fi | |
13528 | fi | |
13529 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13530 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13532 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13533 | else |
5213506e RW |
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13535 | $as_echo "no" >&6; } | |
278a7a38 AO |
13536 | fi |
13537 | ||
5213506e | 13538 | |
278a7a38 AO |
13539 | done |
13540 | fi | |
13541 | ||
13542 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13543 | for ncn_progname in ar; do |
5213506e RW |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13545 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13546 | if test -x $with_build_time_tools/${ncn_progname}; then |
13547 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13549 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13550 | break |
13551 | else | |
5213506e RW |
13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13553 | $as_echo "no" >&6; } | |
e8b05380 PB |
13554 | fi |
13555 | done | |
13556 | fi | |
13557 | ||
13558 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13559 | for ncn_progname in ar; do | |
13560 | if test -n "$ncn_target_tool_prefix"; then | |
13561 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13562 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13564 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13565 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13566 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13567 | else |
e8b05380 PB |
13568 | if test -n "$AR_FOR_TARGET"; then |
13569 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13570 | else |
1c710c3c DJ |
13571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13572 | for as_dir in $PATH | |
13573 | do | |
13574 | IFS=$as_save_IFS | |
13575 | test -z "$as_dir" && as_dir=. | |
5213506e | 13576 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13578 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13580 | break 2 |
13581 | fi | |
13582 | done | |
5213506e RW |
13583 | done |
13584 | IFS=$as_save_IFS | |
1c710c3c | 13585 | |
4de997d1 PB |
13586 | fi |
13587 | fi | |
1c710c3c | 13588 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13589 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13591 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 13592 | else |
5213506e RW |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13594 | $as_echo "no" >&6; } | |
4de997d1 PB |
13595 | fi |
13596 | ||
5213506e | 13597 | |
e8b05380 PB |
13598 | fi |
13599 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
13600 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13601 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13603 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13604 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13605 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13606 | else |
13607 | if test -n "$AR_FOR_TARGET"; then | |
13608 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13609 | else | |
1c710c3c DJ |
13610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13611 | for as_dir in $PATH | |
13612 | do | |
13613 | IFS=$as_save_IFS | |
13614 | test -z "$as_dir" && as_dir=. | |
5213506e | 13615 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13617 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13619 | break 2 |
13620 | fi | |
13621 | done | |
5213506e RW |
13622 | done |
13623 | IFS=$as_save_IFS | |
1c710c3c | 13624 | |
e8b05380 PB |
13625 | fi |
13626 | fi | |
1c710c3c | 13627 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13628 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13630 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13631 | else |
5213506e RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13633 | $as_echo "no" >&6; } | |
e8b05380 | 13634 | fi |
1c710c3c | 13635 | |
5213506e | 13636 | |
e8b05380 PB |
13637 | fi |
13638 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
13639 | done | |
13640 | fi | |
1c710c3c | 13641 | |
e8b05380 PB |
13642 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
13643 | set dummy ar | |
13644 | if test $build = $target ; then | |
13645 | AR_FOR_TARGET="$2" | |
13646 | else | |
13647 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 13648 | fi |
1c00b503 PB |
13649 | else |
13650 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
13651 | fi |
13652 | ||
d1f8db0c PB |
13653 | else |
13654 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
13655 | fi |
13656 | ||
13657 | ||
13658 | ||
13659 | ||
13660 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
13661 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
13663 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13664 | if test -x $with_build_time_tools/as; then |
13665 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
13666 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
13668 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 13669 | else |
5213506e RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13671 | $as_echo "no" >&6; } | |
d1f8db0c | 13672 | fi |
e8b05380 PB |
13673 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13674 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
13675 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
13676 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
13677 | fi |
13678 | fi | |
3e19841a | 13679 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13680 | # Extract the first word of "as", so it can be a program name with args. |
13681 | set dummy as; ac_word=$2 | |
5213506e RW |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13683 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13684 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 13685 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13686 | else |
1c710c3c DJ |
13687 | case $AS_FOR_TARGET in |
13688 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13689 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
13690 | ;; | |
e8b05380 | 13691 | *) |
1c710c3c DJ |
13692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13693 | for as_dir in $gcc_cv_tool_dirs | |
13694 | do | |
13695 | IFS=$as_save_IFS | |
13696 | test -z "$as_dir" && as_dir=. | |
5213506e | 13697 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13699 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13701 | break 2 |
13702 | fi | |
13703 | done | |
5213506e RW |
13704 | done |
13705 | IFS=$as_save_IFS | |
1c710c3c | 13706 | |
e8b05380 PB |
13707 | ;; |
13708 | esac | |
13709 | fi | |
1c710c3c | 13710 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 13711 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13713 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 13714 | else |
5213506e RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13716 | $as_echo "no" >&6; } | |
e8b05380 PB |
13717 | fi |
13718 | ||
5213506e | 13719 | |
e8b05380 PB |
13720 | fi |
13721 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
13722 | |
13723 | ||
13724 | if test -n "$AS_FOR_TARGET"; then | |
13725 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
13726 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
13727 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
13728 | fi | |
13729 | ||
13730 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
13731 | for ncn_progname in as; do | |
13732 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13733 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13735 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13736 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 13737 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13738 | else |
13739 | if test -n "$AS_FOR_TARGET"; then | |
13740 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
13741 | else | |
13742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13743 | for as_dir in $PATH | |
13744 | do | |
13745 | IFS=$as_save_IFS | |
13746 | test -z "$as_dir" && as_dir=. | |
5213506e | 13747 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13749 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 13750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13751 | break 2 |
13752 | fi | |
13753 | done | |
5213506e RW |
13754 | done |
13755 | IFS=$as_save_IFS | |
278a7a38 AO |
13756 | |
13757 | fi | |
13758 | fi | |
13759 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
13760 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13762 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 13763 | else |
5213506e RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13765 | $as_echo "no" >&6; } | |
278a7a38 AO |
13766 | fi |
13767 | ||
5213506e | 13768 | |
278a7a38 AO |
13769 | done |
13770 | fi | |
13771 | ||
13772 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13773 | for ncn_progname in as; do |
5213506e RW |
13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13775 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13776 | if test -x $with_build_time_tools/${ncn_progname}; then |
13777 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13779 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13780 | break |
13781 | else | |
5213506e RW |
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13783 | $as_echo "no" >&6; } | |
e8b05380 PB |
13784 | fi |
13785 | done | |
13786 | fi | |
13787 | ||
13788 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
13789 | for ncn_progname in as; do | |
13790 | if test -n "$ncn_target_tool_prefix"; then | |
13791 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13792 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13794 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13795 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 13796 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13797 | else |
13798 | if test -n "$AS_FOR_TARGET"; then | |
13799 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
13800 | else | |
1c710c3c DJ |
13801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13802 | for as_dir in $PATH | |
13803 | do | |
13804 | IFS=$as_save_IFS | |
13805 | test -z "$as_dir" && as_dir=. | |
5213506e | 13806 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13808 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13810 | break 2 |
13811 | fi | |
13812 | done | |
5213506e RW |
13813 | done |
13814 | IFS=$as_save_IFS | |
1c710c3c | 13815 | |
e8b05380 PB |
13816 | fi |
13817 | fi | |
1c710c3c | 13818 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 13819 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13821 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 13822 | else |
5213506e RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13824 | $as_echo "no" >&6; } | |
e8b05380 PB |
13825 | fi |
13826 | ||
5213506e | 13827 | |
e8b05380 PB |
13828 | fi |
13829 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
13830 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13831 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13833 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13834 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 13835 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13836 | else |
e8b05380 PB |
13837 | if test -n "$AS_FOR_TARGET"; then |
13838 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13839 | else |
1c710c3c DJ |
13840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13841 | for as_dir in $PATH | |
13842 | do | |
13843 | IFS=$as_save_IFS | |
13844 | test -z "$as_dir" && as_dir=. | |
5213506e | 13845 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13847 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 13848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13849 | break 2 |
13850 | fi | |
13851 | done | |
5213506e RW |
13852 | done |
13853 | IFS=$as_save_IFS | |
1c710c3c | 13854 | |
4de997d1 PB |
13855 | fi |
13856 | fi | |
1c710c3c | 13857 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 13858 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13860 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 13861 | else |
5213506e RW |
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13863 | $as_echo "no" >&6; } | |
4de997d1 | 13864 | fi |
1c710c3c | 13865 | |
5213506e | 13866 | |
e8b05380 PB |
13867 | fi |
13868 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
13869 | done | |
13870 | fi | |
1c710c3c | 13871 | |
e8b05380 PB |
13872 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
13873 | set dummy as | |
13874 | if test $build = $target ; then | |
13875 | AS_FOR_TARGET="$2" | |
13876 | else | |
13877 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 13878 | fi |
1c00b503 PB |
13879 | else |
13880 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 13881 | fi |
2693c0b0 | 13882 | |
d1f8db0c PB |
13883 | else |
13884 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
13885 | fi |
13886 | ||
e8b05380 PB |
13887 | |
13888 | ||
13889 | ||
13890 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
13891 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
13893 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13894 | if test -x $with_build_time_tools/dlltool; then |
13895 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
13896 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
13898 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 13899 | else |
5213506e RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13901 | $as_echo "no" >&6; } | |
d1f8db0c | 13902 | fi |
e8b05380 PB |
13903 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13904 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
13905 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
13906 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
13907 | fi |
13908 | fi | |
3e19841a | 13909 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13910 | # Extract the first word of "dlltool", so it can be a program name with args. |
13911 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13913 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13914 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 13915 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13916 | else |
1c710c3c DJ |
13917 | case $DLLTOOL_FOR_TARGET in |
13918 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13919 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
13920 | ;; | |
e8b05380 | 13921 | *) |
1c710c3c DJ |
13922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13923 | for as_dir in $gcc_cv_tool_dirs | |
13924 | do | |
13925 | IFS=$as_save_IFS | |
13926 | test -z "$as_dir" && as_dir=. | |
5213506e | 13927 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13929 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13931 | break 2 |
13932 | fi | |
13933 | done | |
5213506e RW |
13934 | done |
13935 | IFS=$as_save_IFS | |
1c710c3c | 13936 | |
e8b05380 PB |
13937 | ;; |
13938 | esac | |
4de997d1 | 13939 | fi |
1c710c3c | 13940 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 13941 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
13943 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 13944 | else |
5213506e RW |
13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13946 | $as_echo "no" >&6; } | |
4de997d1 PB |
13947 | fi |
13948 | ||
5213506e | 13949 | |
e8b05380 PB |
13950 | fi |
13951 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
13952 | |
13953 | ||
13954 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
13955 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
13956 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
13957 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
13958 | fi | |
13959 | ||
13960 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
13961 | for ncn_progname in dlltool; do | |
13962 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13963 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13965 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13966 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 13967 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13968 | else |
13969 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
13970 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
13971 | else | |
13972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13973 | for as_dir in $PATH | |
13974 | do | |
13975 | IFS=$as_save_IFS | |
13976 | test -z "$as_dir" && as_dir=. | |
5213506e | 13977 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13979 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 13980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13981 | break 2 |
13982 | fi | |
13983 | done | |
5213506e RW |
13984 | done |
13985 | IFS=$as_save_IFS | |
278a7a38 AO |
13986 | |
13987 | fi | |
13988 | fi | |
13989 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
13990 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
13992 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 13993 | else |
5213506e RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13995 | $as_echo "no" >&6; } | |
278a7a38 AO |
13996 | fi |
13997 | ||
5213506e | 13998 | |
278a7a38 AO |
13999 | done |
14000 | fi | |
14001 | ||
14002 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14003 | for ncn_progname in dlltool; do |
5213506e RW |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14005 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14006 | if test -x $with_build_time_tools/${ncn_progname}; then |
14007 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14009 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14010 | break |
14011 | else | |
5213506e RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14013 | $as_echo "no" >&6; } | |
e8b05380 PB |
14014 | fi |
14015 | done | |
14016 | fi | |
14017 | ||
14018 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14019 | for ncn_progname in dlltool; do | |
14020 | if test -n "$ncn_target_tool_prefix"; then | |
14021 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14022 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14024 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14025 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14026 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14027 | else |
e8b05380 PB |
14028 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14029 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14030 | else |
1c710c3c DJ |
14031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14032 | for as_dir in $PATH | |
14033 | do | |
14034 | IFS=$as_save_IFS | |
14035 | test -z "$as_dir" && as_dir=. | |
5213506e | 14036 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14038 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14040 | break 2 |
14041 | fi | |
14042 | done | |
5213506e RW |
14043 | done |
14044 | IFS=$as_save_IFS | |
1c710c3c | 14045 | |
4de997d1 PB |
14046 | fi |
14047 | fi | |
1c710c3c | 14048 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14049 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14051 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14052 | else |
5213506e RW |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14054 | $as_echo "no" >&6; } | |
4de997d1 | 14055 | fi |
4de997d1 | 14056 | |
5213506e | 14057 | |
e8b05380 PB |
14058 | fi |
14059 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14061 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14063 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14064 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14065 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14066 | else |
e8b05380 PB |
14067 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14068 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14069 | else |
1c710c3c DJ |
14070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14071 | for as_dir in $PATH | |
14072 | do | |
14073 | IFS=$as_save_IFS | |
14074 | test -z "$as_dir" && as_dir=. | |
5213506e | 14075 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14077 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14079 | break 2 |
14080 | fi | |
14081 | done | |
5213506e RW |
14082 | done |
14083 | IFS=$as_save_IFS | |
1c710c3c | 14084 | |
4de997d1 PB |
14085 | fi |
14086 | fi | |
1c710c3c | 14087 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14088 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14090 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14091 | else |
5213506e RW |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14093 | $as_echo "no" >&6; } | |
4de997d1 | 14094 | fi |
1c710c3c | 14095 | |
5213506e | 14096 | |
e8b05380 PB |
14097 | fi |
14098 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14099 | done | |
14100 | fi | |
1c710c3c | 14101 | |
e8b05380 PB |
14102 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14103 | set dummy dlltool | |
14104 | if test $build = $target ; then | |
14105 | DLLTOOL_FOR_TARGET="$2" | |
14106 | else | |
14107 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14108 | fi | |
1c00b503 PB |
14109 | else |
14110 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14111 | fi |
14112 | ||
d1f8db0c PB |
14113 | else |
14114 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14115 | fi |
14116 | ||
4de997d1 | 14117 | |
e8b05380 PB |
14118 | |
14119 | ||
14120 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
14121 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14123 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14124 | if test -x $with_build_time_tools/ld; then |
14125 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14126 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14128 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14129 | else |
5213506e RW |
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14131 | $as_echo "no" >&6; } | |
d1f8db0c | 14132 | fi |
e8b05380 PB |
14133 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14134 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14135 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14136 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14137 | fi |
e8b05380 | 14138 | fi |
3e19841a | 14139 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14140 | # Extract the first word of "ld", so it can be a program name with args. |
14141 | set dummy ld; ac_word=$2 | |
5213506e RW |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14143 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14144 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14145 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14146 | else |
1c710c3c DJ |
14147 | case $LD_FOR_TARGET in |
14148 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14149 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14150 | ;; | |
e8b05380 | 14151 | *) |
1c710c3c DJ |
14152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14153 | for as_dir in $gcc_cv_tool_dirs | |
14154 | do | |
14155 | IFS=$as_save_IFS | |
14156 | test -z "$as_dir" && as_dir=. | |
5213506e | 14157 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14158 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14159 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14161 | break 2 |
14162 | fi | |
14163 | done | |
5213506e RW |
14164 | done |
14165 | IFS=$as_save_IFS | |
1c710c3c | 14166 | |
e8b05380 PB |
14167 | ;; |
14168 | esac | |
4de997d1 | 14169 | fi |
1c710c3c | 14170 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14171 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14173 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14174 | else |
5213506e RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14176 | $as_echo "no" >&6; } | |
4de997d1 | 14177 | fi |
2693c0b0 | 14178 | |
5213506e | 14179 | |
e8b05380 PB |
14180 | fi |
14181 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14182 | |
14183 | ||
14184 | if test -n "$LD_FOR_TARGET"; then | |
14185 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14186 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14187 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14188 | fi | |
14189 | ||
14190 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14191 | for ncn_progname in ld; do | |
14192 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14193 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14195 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14196 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14197 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14198 | else |
14199 | if test -n "$LD_FOR_TARGET"; then | |
14200 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14201 | else | |
14202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14203 | for as_dir in $PATH | |
14204 | do | |
14205 | IFS=$as_save_IFS | |
14206 | test -z "$as_dir" && as_dir=. | |
5213506e | 14207 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14209 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14211 | break 2 |
14212 | fi | |
14213 | done | |
5213506e RW |
14214 | done |
14215 | IFS=$as_save_IFS | |
278a7a38 AO |
14216 | |
14217 | fi | |
14218 | fi | |
14219 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14220 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14222 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14223 | else |
5213506e RW |
14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14225 | $as_echo "no" >&6; } | |
278a7a38 AO |
14226 | fi |
14227 | ||
5213506e | 14228 | |
278a7a38 AO |
14229 | done |
14230 | fi | |
14231 | ||
14232 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14233 | for ncn_progname in ld; do |
5213506e RW |
14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14235 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14236 | if test -x $with_build_time_tools/${ncn_progname}; then |
14237 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14239 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14240 | break |
14241 | else | |
5213506e RW |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14243 | $as_echo "no" >&6; } | |
e8b05380 PB |
14244 | fi |
14245 | done | |
ca9f4b81 AO |
14246 | fi |
14247 | ||
e8b05380 PB |
14248 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14249 | for ncn_progname in ld; do | |
14250 | if test -n "$ncn_target_tool_prefix"; then | |
14251 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14252 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14254 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14255 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14256 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14257 | else |
4de997d1 PB |
14258 | if test -n "$LD_FOR_TARGET"; then |
14259 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14260 | else |
1c710c3c DJ |
14261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14262 | for as_dir in $PATH | |
14263 | do | |
14264 | IFS=$as_save_IFS | |
14265 | test -z "$as_dir" && as_dir=. | |
5213506e | 14266 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14268 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14270 | break 2 |
14271 | fi | |
14272 | done | |
5213506e RW |
14273 | done |
14274 | IFS=$as_save_IFS | |
1c710c3c | 14275 | |
ca9f4b81 AO |
14276 | fi |
14277 | fi | |
1c710c3c | 14278 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14279 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14281 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14282 | else |
5213506e RW |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14284 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14285 | fi |
14286 | ||
5213506e | 14287 | |
e8b05380 PB |
14288 | fi |
14289 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14290 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14291 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14293 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14294 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14295 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14296 | else |
2693c0b0 PB |
14297 | if test -n "$LD_FOR_TARGET"; then |
14298 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14299 | else |
1c710c3c DJ |
14300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14301 | for as_dir in $PATH | |
14302 | do | |
14303 | IFS=$as_save_IFS | |
14304 | test -z "$as_dir" && as_dir=. | |
5213506e | 14305 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14306 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14307 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14309 | break 2 |
14310 | fi | |
14311 | done | |
5213506e RW |
14312 | done |
14313 | IFS=$as_save_IFS | |
1c710c3c | 14314 | |
ca9f4b81 AO |
14315 | fi |
14316 | fi | |
1c710c3c | 14317 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14318 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14320 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14321 | else |
5213506e RW |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14323 | $as_echo "no" >&6; } | |
ca9f4b81 | 14324 | fi |
1c710c3c | 14325 | |
5213506e | 14326 | |
e8b05380 PB |
14327 | fi |
14328 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14329 | done | |
14330 | fi | |
1c710c3c | 14331 | |
2693c0b0 PB |
14332 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14333 | set dummy ld | |
14334 | if test $build = $target ; then | |
14335 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14336 | else |
2693c0b0 | 14337 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14338 | fi |
1c00b503 PB |
14339 | else |
14340 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14341 | fi |
14342 | ||
d1f8db0c PB |
14343 | else |
14344 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14345 | fi |
14346 | ||
14347 | ||
14348 | ||
14349 | ||
14350 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14351 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14353 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14354 | if test -x $with_build_time_tools/lipo; then |
14355 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
14356 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
14358 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 14359 | else |
5213506e RW |
14360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14361 | $as_echo "no" >&6; } | |
d1f8db0c | 14362 | fi |
e8b05380 PB |
14363 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14364 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
14365 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
14366 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
14367 | fi |
14368 | fi | |
278a7a38 AO |
14369 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
14370 | # Extract the first word of "lipo", so it can be a program name with args. | |
14371 | set dummy lipo; ac_word=$2 | |
5213506e RW |
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14373 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14374 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14375 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14376 | else |
14377 | case $LIPO_FOR_TARGET in | |
14378 | [\\/]* | ?:[\\/]*) | |
14379 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
14380 | ;; | |
14381 | *) | |
14382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14383 | for as_dir in $gcc_cv_tool_dirs | |
14384 | do | |
14385 | IFS=$as_save_IFS | |
14386 | test -z "$as_dir" && as_dir=. | |
5213506e | 14387 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14388 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14389 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14391 | break 2 |
14392 | fi | |
14393 | done | |
5213506e RW |
14394 | done |
14395 | IFS=$as_save_IFS | |
278a7a38 AO |
14396 | |
14397 | ;; | |
14398 | esac | |
14399 | fi | |
14400 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 14401 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14403 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 14404 | else |
5213506e RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14406 | $as_echo "no" >&6; } | |
278a7a38 AO |
14407 | fi |
14408 | ||
5213506e | 14409 | |
278a7a38 AO |
14410 | fi |
14411 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14412 | ||
14413 | ||
14414 | if test -n "$LIPO_FOR_TARGET"; then | |
14415 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
14416 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14417 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
14418 | fi | |
14419 | ||
14420 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14421 | for ncn_progname in lipo; do | |
14422 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14423 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14425 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14426 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14427 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14428 | else |
278a7a38 AO |
14429 | if test -n "$LIPO_FOR_TARGET"; then |
14430 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
14431 | else | |
14432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14433 | for as_dir in $PATH | |
1c710c3c DJ |
14434 | do |
14435 | IFS=$as_save_IFS | |
14436 | test -z "$as_dir" && as_dir=. | |
5213506e | 14437 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14439 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 14440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14441 | break 2 |
14442 | fi | |
14443 | done | |
5213506e RW |
14444 | done |
14445 | IFS=$as_save_IFS | |
1c710c3c | 14446 | |
e8b05380 | 14447 | fi |
278a7a38 AO |
14448 | fi |
14449 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 14450 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14452 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 14453 | else |
5213506e RW |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14455 | $as_echo "no" >&6; } | |
e8b05380 PB |
14456 | fi |
14457 | ||
5213506e | 14458 | |
278a7a38 | 14459 | done |
e8b05380 | 14460 | fi |
278a7a38 AO |
14461 | |
14462 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14463 | for ncn_progname in lipo; do |
5213506e RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14465 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14466 | if test -x $with_build_time_tools/${ncn_progname}; then |
14467 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14469 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14470 | break |
14471 | else | |
5213506e RW |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14473 | $as_echo "no" >&6; } | |
e8b05380 PB |
14474 | fi |
14475 | done | |
14476 | fi | |
14477 | ||
14478 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14479 | for ncn_progname in lipo; do | |
14480 | if test -n "$ncn_target_tool_prefix"; then | |
14481 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14482 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14484 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14485 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14486 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
14487 | else |
14488 | if test -n "$LIPO_FOR_TARGET"; then | |
14489 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
14490 | else | |
1c710c3c DJ |
14491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14492 | for as_dir in $PATH | |
14493 | do | |
14494 | IFS=$as_save_IFS | |
14495 | test -z "$as_dir" && as_dir=. | |
5213506e | 14496 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14498 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14500 | break 2 |
14501 | fi | |
14502 | done | |
5213506e RW |
14503 | done |
14504 | IFS=$as_save_IFS | |
1c710c3c | 14505 | |
040b1c5a GK |
14506 | fi |
14507 | fi | |
1c710c3c | 14508 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 14509 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14511 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 14512 | else |
5213506e RW |
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14514 | $as_echo "no" >&6; } | |
040b1c5a GK |
14515 | fi |
14516 | ||
5213506e | 14517 | |
e8b05380 PB |
14518 | fi |
14519 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
14520 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14521 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14523 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14524 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14525 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
14526 | else |
14527 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
14528 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
14529 | else | |
1c710c3c DJ |
14530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14531 | for as_dir in $PATH | |
14532 | do | |
14533 | IFS=$as_save_IFS | |
14534 | test -z "$as_dir" && as_dir=. | |
5213506e | 14535 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14537 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 14538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14539 | break 2 |
14540 | fi | |
14541 | done | |
5213506e RW |
14542 | done |
14543 | IFS=$as_save_IFS | |
1c710c3c | 14544 | |
040b1c5a GK |
14545 | fi |
14546 | fi | |
1c710c3c | 14547 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 14548 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14550 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 14551 | else |
5213506e RW |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14553 | $as_echo "no" >&6; } | |
040b1c5a | 14554 | fi |
1c710c3c | 14555 | |
5213506e | 14556 | |
e8b05380 PB |
14557 | fi |
14558 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
14559 | done | |
14560 | fi | |
1c710c3c | 14561 | |
040b1c5a GK |
14562 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
14563 | set dummy lipo | |
14564 | if test $build = $target ; then | |
14565 | LIPO_FOR_TARGET="$2" | |
14566 | else | |
14567 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14568 | fi | |
1c00b503 PB |
14569 | else |
14570 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
14571 | fi |
14572 | ||
d1f8db0c PB |
14573 | else |
14574 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
14575 | fi |
14576 | ||
14577 | ||
14578 | ||
14579 | ||
14580 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
14581 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
14583 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14584 | if test -x $with_build_time_tools/nm; then |
14585 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
14586 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
14588 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 14589 | else |
5213506e RW |
14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14591 | $as_echo "no" >&6; } | |
d1f8db0c | 14592 | fi |
e8b05380 PB |
14593 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14594 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
14595 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
14596 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
14597 | fi |
14598 | fi | |
3e19841a | 14599 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14600 | # Extract the first word of "nm", so it can be a program name with args. |
14601 | set dummy nm; ac_word=$2 | |
5213506e RW |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14603 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14604 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 14605 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14606 | else |
1c710c3c DJ |
14607 | case $NM_FOR_TARGET in |
14608 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14609 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
14610 | ;; | |
e8b05380 | 14611 | *) |
1c710c3c DJ |
14612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14613 | for as_dir in $gcc_cv_tool_dirs | |
14614 | do | |
14615 | IFS=$as_save_IFS | |
14616 | test -z "$as_dir" && as_dir=. | |
5213506e | 14617 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14619 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14621 | break 2 |
14622 | fi | |
14623 | done | |
5213506e RW |
14624 | done |
14625 | IFS=$as_save_IFS | |
1c710c3c | 14626 | |
e8b05380 PB |
14627 | ;; |
14628 | esac | |
14629 | fi | |
1c710c3c | 14630 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 14631 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14633 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 14634 | else |
5213506e RW |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14636 | $as_echo "no" >&6; } | |
e8b05380 PB |
14637 | fi |
14638 | ||
5213506e | 14639 | |
e8b05380 PB |
14640 | fi |
14641 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
14642 | |
14643 | ||
14644 | if test -n "$NM_FOR_TARGET"; then | |
14645 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
14646 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
14647 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
14648 | fi | |
14649 | ||
14650 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
14651 | for ncn_progname in nm; do | |
14652 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14653 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14655 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14656 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 14657 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14658 | else |
14659 | if test -n "$NM_FOR_TARGET"; then | |
14660 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
14661 | else | |
14662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14663 | for as_dir in $PATH | |
14664 | do | |
14665 | IFS=$as_save_IFS | |
14666 | test -z "$as_dir" && as_dir=. | |
5213506e | 14667 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14669 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 14670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14671 | break 2 |
14672 | fi | |
14673 | done | |
5213506e RW |
14674 | done |
14675 | IFS=$as_save_IFS | |
278a7a38 AO |
14676 | |
14677 | fi | |
14678 | fi | |
14679 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
14680 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14682 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 14683 | else |
5213506e RW |
14684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14685 | $as_echo "no" >&6; } | |
278a7a38 AO |
14686 | fi |
14687 | ||
5213506e | 14688 | |
278a7a38 AO |
14689 | done |
14690 | fi | |
14691 | ||
14692 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14693 | for ncn_progname in nm; do |
5213506e RW |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14695 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14696 | if test -x $with_build_time_tools/${ncn_progname}; then |
14697 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14699 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14700 | break |
14701 | else | |
5213506e RW |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14703 | $as_echo "no" >&6; } | |
e8b05380 PB |
14704 | fi |
14705 | done | |
14706 | fi | |
14707 | ||
14708 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
14709 | for ncn_progname in nm; do | |
14710 | if test -n "$ncn_target_tool_prefix"; then | |
14711 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14712 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14714 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14715 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 14716 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14717 | else |
4de997d1 PB |
14718 | if test -n "$NM_FOR_TARGET"; then |
14719 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14720 | else |
1c710c3c DJ |
14721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14722 | for as_dir in $PATH | |
14723 | do | |
14724 | IFS=$as_save_IFS | |
14725 | test -z "$as_dir" && as_dir=. | |
5213506e | 14726 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14728 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14730 | break 2 |
14731 | fi | |
14732 | done | |
5213506e RW |
14733 | done |
14734 | IFS=$as_save_IFS | |
1c710c3c | 14735 | |
ca9f4b81 AO |
14736 | fi |
14737 | fi | |
1c710c3c | 14738 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 14739 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
14740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14741 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 14742 | else |
5213506e RW |
14743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14744 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14745 | fi |
14746 | ||
5213506e | 14747 | |
e8b05380 PB |
14748 | fi |
14749 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
14750 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14751 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14753 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14754 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 14755 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14756 | else |
2693c0b0 PB |
14757 | if test -n "$NM_FOR_TARGET"; then |
14758 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14759 | else |
1c710c3c DJ |
14760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14761 | for as_dir in $PATH | |
14762 | do | |
14763 | IFS=$as_save_IFS | |
14764 | test -z "$as_dir" && as_dir=. | |
5213506e | 14765 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14767 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 14768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14769 | break 2 |
14770 | fi | |
14771 | done | |
5213506e RW |
14772 | done |
14773 | IFS=$as_save_IFS | |
1c710c3c | 14774 | |
ca9f4b81 AO |
14775 | fi |
14776 | fi | |
1c710c3c | 14777 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 14778 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14780 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 14781 | else |
5213506e RW |
14782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14783 | $as_echo "no" >&6; } | |
ca9f4b81 | 14784 | fi |
1c710c3c | 14785 | |
5213506e | 14786 | |
e8b05380 PB |
14787 | fi |
14788 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
14789 | done | |
14790 | fi | |
1c710c3c | 14791 | |
2693c0b0 PB |
14792 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
14793 | set dummy nm | |
14794 | if test $build = $target ; then | |
14795 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 14796 | else |
2693c0b0 | 14797 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14798 | fi |
1c00b503 PB |
14799 | else |
14800 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
14801 | fi |
14802 | ||
d1f8db0c PB |
14803 | else |
14804 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
14805 | fi |
14806 | ||
14807 | ||
14808 | ||
14809 | ||
9bccfdf5 AP |
14810 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
14811 | if test -n "$with_build_time_tools"; then | |
14812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
14813 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
14814 | if test -x $with_build_time_tools/objcopy; then | |
14815 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
14816 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
14818 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
14819 | else | |
14820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14821 | $as_echo "no" >&6; } | |
14822 | fi | |
14823 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14824 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
14825 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
14826 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
14827 | fi | |
14828 | fi | |
14829 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14830 | # Extract the first word of "objcopy", so it can be a program name with args. | |
14831 | set dummy objcopy; ac_word=$2 | |
14832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14833 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14834 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
14835 | $as_echo_n "(cached) " >&6 |
14836 | else | |
14837 | case $OBJCOPY_FOR_TARGET in | |
14838 | [\\/]* | ?:[\\/]*) | |
14839 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
14840 | ;; | |
14841 | *) | |
14842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14843 | for as_dir in $gcc_cv_tool_dirs | |
14844 | do | |
14845 | IFS=$as_save_IFS | |
14846 | test -z "$as_dir" && as_dir=. | |
14847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
14849 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
14850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14851 | break 2 | |
14852 | fi | |
14853 | done | |
14854 | done | |
14855 | IFS=$as_save_IFS | |
14856 | ||
14857 | ;; | |
14858 | esac | |
14859 | fi | |
14860 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
14861 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
14863 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
14864 | else | |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14866 | $as_echo "no" >&6; } | |
14867 | fi | |
14868 | ||
14869 | ||
14870 | fi | |
14871 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
14872 | ||
14873 | ||
14874 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14875 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
14876 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
14877 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
14878 | fi | |
14879 | ||
14880 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
14881 | for ncn_progname in objcopy; do | |
14882 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14883 | set dummy ${ncn_progname}; ac_word=$2 | |
14884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14885 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14886 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
14887 | $as_echo_n "(cached) " >&6 |
14888 | else | |
14889 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14890 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
14891 | else | |
14892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14893 | for as_dir in $PATH | |
14894 | do | |
14895 | IFS=$as_save_IFS | |
14896 | test -z "$as_dir" && as_dir=. | |
14897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
14899 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
14900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14901 | break 2 | |
14902 | fi | |
14903 | done | |
14904 | done | |
14905 | IFS=$as_save_IFS | |
14906 | ||
14907 | fi | |
14908 | fi | |
14909 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
14910 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
14912 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
14913 | else | |
14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14915 | $as_echo "no" >&6; } | |
14916 | fi | |
14917 | ||
14918 | ||
14919 | done | |
14920 | fi | |
14921 | ||
14922 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14923 | for ncn_progname in objcopy; do | |
14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14925 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14926 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14927 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14929 | $as_echo "yes" >&6; } | |
14930 | break | |
14931 | else | |
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14933 | $as_echo "no" >&6; } | |
14934 | fi | |
14935 | done | |
14936 | fi | |
14937 | ||
14938 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
14939 | for ncn_progname in objcopy; do | |
14940 | if test -n "$ncn_target_tool_prefix"; then | |
14941 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14942 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14944 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14945 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
14946 | $as_echo_n "(cached) " >&6 |
14947 | else | |
14948 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14949 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
14950 | else | |
14951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14952 | for as_dir in $PATH | |
14953 | do | |
14954 | IFS=$as_save_IFS | |
14955 | test -z "$as_dir" && as_dir=. | |
14956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14957 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
14958 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
14959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14960 | break 2 | |
14961 | fi | |
14962 | done | |
14963 | done | |
14964 | IFS=$as_save_IFS | |
14965 | ||
14966 | fi | |
14967 | fi | |
14968 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
14969 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
14971 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
14972 | else | |
14973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14974 | $as_echo "no" >&6; } | |
14975 | fi | |
14976 | ||
14977 | ||
14978 | fi | |
14979 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
14980 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14981 | set dummy ${ncn_progname}; ac_word=$2 | |
14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14983 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14984 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
14985 | $as_echo_n "(cached) " >&6 |
14986 | else | |
14987 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
14988 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
14989 | else | |
14990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14991 | for as_dir in $PATH | |
14992 | do | |
14993 | IFS=$as_save_IFS | |
14994 | test -z "$as_dir" && as_dir=. | |
14995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
14997 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
14998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14999 | break 2 | |
15000 | fi | |
15001 | done | |
15002 | done | |
15003 | IFS=$as_save_IFS | |
15004 | ||
15005 | fi | |
15006 | fi | |
15007 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15008 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15010 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15011 | else | |
15012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15013 | $as_echo "no" >&6; } | |
15014 | fi | |
15015 | ||
15016 | ||
15017 | fi | |
15018 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15019 | done | |
15020 | fi | |
15021 | ||
15022 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15023 | set dummy objcopy | |
15024 | if test $build = $target ; then | |
15025 | OBJCOPY_FOR_TARGET="$2" | |
15026 | else | |
15027 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15028 | fi | |
15029 | else | |
15030 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15031 | fi | |
15032 | ||
15033 | else | |
15034 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15035 | fi | |
15036 | ||
15037 | ||
15038 | ||
15039 | ||
e8b05380 PB |
15040 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15041 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15043 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15044 | if test -x $with_build_time_tools/objdump; then |
15045 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15046 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15048 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15049 | else |
5213506e RW |
15050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15051 | $as_echo "no" >&6; } | |
d1f8db0c | 15052 | fi |
e8b05380 PB |
15053 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15054 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15055 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15056 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15057 | fi |
15058 | fi | |
3e19841a | 15059 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15060 | # Extract the first word of "objdump", so it can be a program name with args. |
15061 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15063 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15064 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15065 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15066 | else |
1c710c3c DJ |
15067 | case $OBJDUMP_FOR_TARGET in |
15068 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15069 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15070 | ;; | |
e8b05380 | 15071 | *) |
1c710c3c DJ |
15072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15073 | for as_dir in $gcc_cv_tool_dirs | |
15074 | do | |
15075 | IFS=$as_save_IFS | |
15076 | test -z "$as_dir" && as_dir=. | |
5213506e | 15077 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15079 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15081 | break 2 |
15082 | fi | |
15083 | done | |
5213506e RW |
15084 | done |
15085 | IFS=$as_save_IFS | |
1c710c3c | 15086 | |
e8b05380 PB |
15087 | ;; |
15088 | esac | |
15089 | fi | |
1c710c3c | 15090 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15091 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15093 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15094 | else |
5213506e RW |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15096 | $as_echo "no" >&6; } | |
e8b05380 PB |
15097 | fi |
15098 | ||
5213506e | 15099 | |
e8b05380 PB |
15100 | fi |
15101 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15102 | |
15103 | ||
15104 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15105 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15106 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15107 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15108 | fi | |
15109 | ||
15110 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15111 | for ncn_progname in objdump; do | |
15112 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15113 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15115 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15116 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15117 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15118 | else |
15119 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15120 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15121 | else | |
15122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15123 | for as_dir in $PATH | |
15124 | do | |
15125 | IFS=$as_save_IFS | |
15126 | test -z "$as_dir" && as_dir=. | |
5213506e | 15127 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15129 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15131 | break 2 |
15132 | fi | |
15133 | done | |
5213506e RW |
15134 | done |
15135 | IFS=$as_save_IFS | |
278a7a38 AO |
15136 | |
15137 | fi | |
15138 | fi | |
15139 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15140 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15142 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15143 | else |
5213506e RW |
15144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15145 | $as_echo "no" >&6; } | |
278a7a38 AO |
15146 | fi |
15147 | ||
5213506e | 15148 | |
278a7a38 AO |
15149 | done |
15150 | fi | |
15151 | ||
15152 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15153 | for ncn_progname in objdump; do |
5213506e RW |
15154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15155 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15156 | if test -x $with_build_time_tools/${ncn_progname}; then |
15157 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15159 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15160 | break |
15161 | else | |
5213506e RW |
15162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15163 | $as_echo "no" >&6; } | |
e8b05380 PB |
15164 | fi |
15165 | done | |
15166 | fi | |
15167 | ||
15168 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15169 | for ncn_progname in objdump; do | |
15170 | if test -n "$ncn_target_tool_prefix"; then | |
15171 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15172 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15174 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15175 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15176 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15177 | else |
15178 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15179 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15180 | else | |
1c710c3c DJ |
15181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15182 | for as_dir in $PATH | |
15183 | do | |
15184 | IFS=$as_save_IFS | |
15185 | test -z "$as_dir" && as_dir=. | |
5213506e | 15186 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15188 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15190 | break 2 |
15191 | fi | |
15192 | done | |
5213506e RW |
15193 | done |
15194 | IFS=$as_save_IFS | |
1c710c3c | 15195 | |
d739199a DJ |
15196 | fi |
15197 | fi | |
1c710c3c | 15198 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15199 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15201 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15202 | else |
5213506e RW |
15203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15204 | $as_echo "no" >&6; } | |
d739199a DJ |
15205 | fi |
15206 | ||
5213506e | 15207 | |
e8b05380 PB |
15208 | fi |
15209 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15210 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15211 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15213 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15214 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15215 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15216 | else |
15217 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15218 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15219 | else | |
1c710c3c DJ |
15220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15221 | for as_dir in $PATH | |
15222 | do | |
15223 | IFS=$as_save_IFS | |
15224 | test -z "$as_dir" && as_dir=. | |
5213506e | 15225 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15227 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15229 | break 2 |
15230 | fi | |
15231 | done | |
5213506e RW |
15232 | done |
15233 | IFS=$as_save_IFS | |
1c710c3c | 15234 | |
d739199a DJ |
15235 | fi |
15236 | fi | |
1c710c3c | 15237 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15238 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15240 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15241 | else |
5213506e RW |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15243 | $as_echo "no" >&6; } | |
d739199a | 15244 | fi |
1c710c3c | 15245 | |
5213506e | 15246 | |
e8b05380 PB |
15247 | fi |
15248 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15249 | done | |
15250 | fi | |
1c710c3c | 15251 | |
d739199a DJ |
15252 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15253 | set dummy objdump | |
15254 | if test $build = $target ; then | |
15255 | OBJDUMP_FOR_TARGET="$2" | |
15256 | else | |
15257 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15258 | fi | |
1c00b503 PB |
15259 | else |
15260 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15261 | fi |
15262 | ||
d1f8db0c PB |
15263 | else |
15264 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15265 | fi |
15266 | ||
15267 | ||
15268 | ||
15269 | ||
e4a9a572 IS |
15270 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15271 | if test -n "$with_build_time_tools"; then | |
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15273 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15274 | if test -x $with_build_time_tools/otool; then | |
15275 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15276 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15278 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15279 | else | |
15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15281 | $as_echo "no" >&6; } | |
15282 | fi | |
15283 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15284 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15285 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15286 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15287 | fi | |
15288 | fi | |
15289 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15290 | # Extract the first word of "otool", so it can be a program name with args. | |
15291 | set dummy otool; ac_word=$2 | |
15292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15293 | $as_echo_n "checking for $ac_word... " >&6; } | |
15294 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15295 | $as_echo_n "(cached) " >&6 | |
15296 | else | |
15297 | case $OTOOL_FOR_TARGET in | |
15298 | [\\/]* | ?:[\\/]*) | |
15299 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15300 | ;; | |
15301 | *) | |
15302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15303 | for as_dir in $gcc_cv_tool_dirs | |
15304 | do | |
15305 | IFS=$as_save_IFS | |
15306 | test -z "$as_dir" && as_dir=. | |
15307 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15309 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15311 | break 2 | |
15312 | fi | |
15313 | done | |
15314 | done | |
15315 | IFS=$as_save_IFS | |
15316 | ||
15317 | ;; | |
15318 | esac | |
15319 | fi | |
15320 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15321 | if test -n "$OTOOL_FOR_TARGET"; then | |
15322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15323 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15324 | else | |
15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15326 | $as_echo "no" >&6; } | |
15327 | fi | |
15328 | ||
15329 | ||
15330 | fi | |
15331 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15332 | ||
15333 | ||
15334 | if test -n "$OTOOL_FOR_TARGET"; then | |
15335 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15336 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15337 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15338 | fi | |
15339 | ||
15340 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15341 | for ncn_progname in otool; do | |
15342 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15343 | set dummy ${ncn_progname}; ac_word=$2 | |
15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15345 | $as_echo_n "checking for $ac_word... " >&6; } | |
15346 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15347 | $as_echo_n "(cached) " >&6 | |
15348 | else | |
15349 | if test -n "$OTOOL_FOR_TARGET"; then | |
15350 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15351 | else | |
15352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15353 | for as_dir in $PATH | |
15354 | do | |
15355 | IFS=$as_save_IFS | |
15356 | test -z "$as_dir" && as_dir=. | |
15357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15359 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15361 | break 2 | |
15362 | fi | |
15363 | done | |
15364 | done | |
15365 | IFS=$as_save_IFS | |
15366 | ||
15367 | fi | |
15368 | fi | |
15369 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15370 | if test -n "$OTOOL_FOR_TARGET"; then | |
15371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15372 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15373 | else | |
15374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15375 | $as_echo "no" >&6; } | |
15376 | fi | |
15377 | ||
15378 | ||
15379 | done | |
15380 | fi | |
15381 | ||
15382 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15383 | for ncn_progname in otool; do | |
15384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15385 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15386 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15387 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15389 | $as_echo "yes" >&6; } | |
15390 | break | |
15391 | else | |
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15393 | $as_echo "no" >&6; } | |
15394 | fi | |
15395 | done | |
15396 | fi | |
15397 | ||
15398 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15399 | for ncn_progname in otool; do | |
15400 | if test -n "$ncn_target_tool_prefix"; then | |
15401 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15402 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15404 | $as_echo_n "checking for $ac_word... " >&6; } | |
15405 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15406 | $as_echo_n "(cached) " >&6 | |
15407 | else | |
15408 | if test -n "$OTOOL_FOR_TARGET"; then | |
15409 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15410 | else | |
15411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15412 | for as_dir in $PATH | |
15413 | do | |
15414 | IFS=$as_save_IFS | |
15415 | test -z "$as_dir" && as_dir=. | |
15416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15418 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
15419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15420 | break 2 | |
15421 | fi | |
15422 | done | |
15423 | done | |
15424 | IFS=$as_save_IFS | |
15425 | ||
15426 | fi | |
15427 | fi | |
15428 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15429 | if test -n "$OTOOL_FOR_TARGET"; then | |
15430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15431 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15432 | else | |
15433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15434 | $as_echo "no" >&6; } | |
15435 | fi | |
15436 | ||
15437 | ||
15438 | fi | |
15439 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
15440 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15441 | set dummy ${ncn_progname}; ac_word=$2 | |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15443 | $as_echo_n "checking for $ac_word... " >&6; } | |
15444 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15445 | $as_echo_n "(cached) " >&6 | |
15446 | else | |
15447 | if test -n "$OTOOL_FOR_TARGET"; then | |
15448 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15449 | else | |
15450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15451 | for as_dir in $PATH | |
15452 | do | |
15453 | IFS=$as_save_IFS | |
15454 | test -z "$as_dir" && as_dir=. | |
15455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15456 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15457 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15459 | break 2 | |
15460 | fi | |
15461 | done | |
15462 | done | |
15463 | IFS=$as_save_IFS | |
15464 | ||
15465 | fi | |
15466 | fi | |
15467 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15468 | if test -n "$OTOOL_FOR_TARGET"; then | |
15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15470 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15471 | else | |
15472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15473 | $as_echo "no" >&6; } | |
15474 | fi | |
15475 | ||
15476 | ||
15477 | fi | |
15478 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
15479 | done | |
15480 | fi | |
15481 | ||
15482 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
15483 | set dummy otool | |
15484 | if test $build = $target ; then | |
15485 | OTOOL_FOR_TARGET="$2" | |
15486 | else | |
15487 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15488 | fi | |
15489 | else | |
15490 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
15491 | fi | |
15492 | ||
15493 | else | |
15494 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15495 | fi | |
15496 | ||
15497 | ||
15498 | ||
15499 | ||
e8b05380 PB |
15500 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
15501 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
15503 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15504 | if test -x $with_build_time_tools/ranlib; then |
15505 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
15506 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
15508 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 15509 | else |
5213506e RW |
15510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15511 | $as_echo "no" >&6; } | |
d1f8db0c | 15512 | fi |
e8b05380 PB |
15513 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15514 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
15515 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
15516 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
15517 | fi |
15518 | fi | |
3e19841a | 15519 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15520 | # Extract the first word of "ranlib", so it can be a program name with args. |
15521 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15523 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15524 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15525 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15526 | else |
1c710c3c DJ |
15527 | case $RANLIB_FOR_TARGET in |
15528 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15529 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
15530 | ;; | |
e8b05380 | 15531 | *) |
1c710c3c DJ |
15532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15533 | for as_dir in $gcc_cv_tool_dirs | |
15534 | do | |
15535 | IFS=$as_save_IFS | |
15536 | test -z "$as_dir" && as_dir=. | |
5213506e | 15537 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15539 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15541 | break 2 |
15542 | fi | |
15543 | done | |
5213506e RW |
15544 | done |
15545 | IFS=$as_save_IFS | |
1c710c3c | 15546 | |
e8b05380 PB |
15547 | ;; |
15548 | esac | |
15549 | fi | |
1c710c3c | 15550 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 15551 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
15552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15553 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 15554 | else |
5213506e RW |
15555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15556 | $as_echo "no" >&6; } | |
e8b05380 PB |
15557 | fi |
15558 | ||
5213506e | 15559 | |
e8b05380 PB |
15560 | fi |
15561 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
15562 | |
15563 | ||
15564 | if test -n "$RANLIB_FOR_TARGET"; then | |
15565 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
15566 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
15567 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
15568 | fi | |
15569 | ||
15570 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
15571 | for ncn_progname in ranlib; do | |
15572 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15573 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15575 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15576 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15577 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15578 | else |
15579 | if test -n "$RANLIB_FOR_TARGET"; then | |
15580 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
15581 | else | |
15582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15583 | for as_dir in $PATH | |
15584 | do | |
15585 | IFS=$as_save_IFS | |
15586 | test -z "$as_dir" && as_dir=. | |
5213506e | 15587 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15589 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 15590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15591 | break 2 |
15592 | fi | |
15593 | done | |
5213506e RW |
15594 | done |
15595 | IFS=$as_save_IFS | |
278a7a38 AO |
15596 | |
15597 | fi | |
15598 | fi | |
15599 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
15600 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
15601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15602 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 15603 | else |
5213506e RW |
15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15605 | $as_echo "no" >&6; } | |
278a7a38 AO |
15606 | fi |
15607 | ||
5213506e | 15608 | |
278a7a38 AO |
15609 | done |
15610 | fi | |
15611 | ||
15612 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15613 | for ncn_progname in ranlib; do |
5213506e RW |
15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15615 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15616 | if test -x $with_build_time_tools/${ncn_progname}; then |
15617 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15619 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15620 | break |
15621 | else | |
5213506e RW |
15622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15623 | $as_echo "no" >&6; } | |
e8b05380 PB |
15624 | fi |
15625 | done | |
15626 | fi | |
15627 | ||
15628 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
15629 | for ncn_progname in ranlib; do | |
15630 | if test -n "$ncn_target_tool_prefix"; then | |
15631 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 15632 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15634 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15635 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15636 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15637 | else |
4de997d1 PB |
15638 | if test -n "$RANLIB_FOR_TARGET"; then |
15639 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15640 | else |
1c710c3c DJ |
15641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15642 | for as_dir in $PATH | |
15643 | do | |
15644 | IFS=$as_save_IFS | |
15645 | test -z "$as_dir" && as_dir=. | |
5213506e | 15646 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15648 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15650 | break 2 |
15651 | fi | |
15652 | done | |
5213506e RW |
15653 | done |
15654 | IFS=$as_save_IFS | |
1c710c3c | 15655 | |
ca9f4b81 AO |
15656 | fi |
15657 | fi | |
1c710c3c | 15658 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 15659 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15661 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 15662 | else |
5213506e RW |
15663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15664 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15665 | fi |
15666 | ||
5213506e | 15667 | |
e8b05380 PB |
15668 | fi |
15669 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
15670 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15671 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15673 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15674 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15675 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15676 | else |
2693c0b0 PB |
15677 | if test -n "$RANLIB_FOR_TARGET"; then |
15678 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15679 | else |
1c710c3c DJ |
15680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15681 | for as_dir in $PATH | |
15682 | do | |
15683 | IFS=$as_save_IFS | |
15684 | test -z "$as_dir" && as_dir=. | |
5213506e | 15685 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15687 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 15688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15689 | break 2 |
15690 | fi | |
15691 | done | |
5213506e RW |
15692 | done |
15693 | IFS=$as_save_IFS | |
1c710c3c | 15694 | |
ca9f4b81 AO |
15695 | fi |
15696 | fi | |
1c710c3c | 15697 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 15698 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
15699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15700 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 15701 | else |
5213506e RW |
15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15703 | $as_echo "no" >&6; } | |
ca9f4b81 | 15704 | fi |
1c710c3c | 15705 | |
5213506e | 15706 | |
e8b05380 PB |
15707 | fi |
15708 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
15709 | done | |
15710 | fi | |
1c710c3c | 15711 | |
e8b05380 PB |
15712 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
15713 | set dummy ranlib | |
15714 | if test $build = $target ; then | |
15715 | RANLIB_FOR_TARGET="$2" | |
15716 | else | |
15717 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 15718 | fi |
1c00b503 PB |
15719 | else |
15720 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 15721 | fi |
2693c0b0 | 15722 | |
d1f8db0c PB |
15723 | else |
15724 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
15725 | fi |
15726 | ||
e8b05380 PB |
15727 | |
15728 | ||
15729 | ||
e7a82751 RM |
15730 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
15731 | if test -n "$with_build_time_tools"; then | |
15732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
15733 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
15734 | if test -x $with_build_time_tools/readelf; then | |
15735 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
15736 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
15738 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
15739 | else | |
15740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15741 | $as_echo "no" >&6; } | |
15742 | fi | |
15743 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15744 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
15745 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
15746 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
15747 | fi | |
15748 | fi | |
15749 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15750 | # Extract the first word of "readelf", so it can be a program name with args. | |
15751 | set dummy readelf; ac_word=$2 | |
15752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15753 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15754 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
15755 | $as_echo_n "(cached) " >&6 |
15756 | else | |
15757 | case $READELF_FOR_TARGET in | |
15758 | [\\/]* | ?:[\\/]*) | |
15759 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
15760 | ;; | |
15761 | *) | |
15762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15763 | for as_dir in $gcc_cv_tool_dirs | |
15764 | do | |
15765 | IFS=$as_save_IFS | |
15766 | test -z "$as_dir" && as_dir=. | |
15767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
15769 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15771 | break 2 | |
15772 | fi | |
15773 | done | |
15774 | done | |
15775 | IFS=$as_save_IFS | |
15776 | ||
15777 | ;; | |
15778 | esac | |
15779 | fi | |
15780 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
15781 | if test -n "$READELF_FOR_TARGET"; then | |
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
15783 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
15784 | else | |
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15786 | $as_echo "no" >&6; } | |
15787 | fi | |
15788 | ||
15789 | ||
15790 | fi | |
15791 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
15792 | ||
15793 | ||
15794 | if test -n "$READELF_FOR_TARGET"; then | |
15795 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
15796 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
15797 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
15798 | fi | |
15799 | ||
15800 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
15801 | for ncn_progname in readelf; do | |
15802 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15803 | set dummy ${ncn_progname}; ac_word=$2 | |
15804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15805 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15806 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
15807 | $as_echo_n "(cached) " >&6 |
15808 | else | |
15809 | if test -n "$READELF_FOR_TARGET"; then | |
15810 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
15811 | else | |
15812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15813 | for as_dir in $PATH | |
15814 | do | |
15815 | IFS=$as_save_IFS | |
15816 | test -z "$as_dir" && as_dir=. | |
15817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
15819 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
15820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15821 | break 2 | |
15822 | fi | |
15823 | done | |
15824 | done | |
15825 | IFS=$as_save_IFS | |
15826 | ||
15827 | fi | |
15828 | fi | |
15829 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
15830 | if test -n "$READELF_FOR_TARGET"; then | |
15831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
15832 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
15833 | else | |
15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15835 | $as_echo "no" >&6; } | |
15836 | fi | |
15837 | ||
15838 | ||
15839 | done | |
15840 | fi | |
15841 | ||
15842 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15843 | for ncn_progname in readelf; do | |
15844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15845 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15846 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15847 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15849 | $as_echo "yes" >&6; } | |
15850 | break | |
15851 | else | |
15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15853 | $as_echo "no" >&6; } | |
15854 | fi | |
15855 | done | |
15856 | fi | |
15857 | ||
15858 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
15859 | for ncn_progname in readelf; do | |
15860 | if test -n "$ncn_target_tool_prefix"; then | |
15861 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15862 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15864 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15865 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
15866 | $as_echo_n "(cached) " >&6 |
15867 | else | |
15868 | if test -n "$READELF_FOR_TARGET"; then | |
15869 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
15870 | else | |
15871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15872 | for as_dir in $PATH | |
15873 | do | |
15874 | IFS=$as_save_IFS | |
15875 | test -z "$as_dir" && as_dir=. | |
15876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
15878 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15880 | break 2 | |
15881 | fi | |
15882 | done | |
15883 | done | |
15884 | IFS=$as_save_IFS | |
15885 | ||
15886 | fi | |
15887 | fi | |
15888 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
15889 | if test -n "$READELF_FOR_TARGET"; then | |
15890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
15891 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
15892 | else | |
15893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15894 | $as_echo "no" >&6; } | |
15895 | fi | |
15896 | ||
15897 | ||
15898 | fi | |
15899 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
15900 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15901 | set dummy ${ncn_progname}; ac_word=$2 | |
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15903 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15904 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
15905 | $as_echo_n "(cached) " >&6 |
15906 | else | |
15907 | if test -n "$READELF_FOR_TARGET"; then | |
15908 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
15909 | else | |
15910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15911 | for as_dir in $PATH | |
15912 | do | |
15913 | IFS=$as_save_IFS | |
15914 | test -z "$as_dir" && as_dir=. | |
15915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
15917 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
15918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15919 | break 2 | |
15920 | fi | |
15921 | done | |
15922 | done | |
15923 | IFS=$as_save_IFS | |
15924 | ||
15925 | fi | |
15926 | fi | |
15927 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
15928 | if test -n "$READELF_FOR_TARGET"; then | |
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
15930 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
15931 | else | |
15932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15933 | $as_echo "no" >&6; } | |
15934 | fi | |
15935 | ||
15936 | ||
15937 | fi | |
15938 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
15939 | done | |
15940 | fi | |
15941 | ||
15942 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
15943 | set dummy readelf | |
15944 | if test $build = $target ; then | |
15945 | READELF_FOR_TARGET="$2" | |
15946 | else | |
15947 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15948 | fi | |
15949 | else | |
15950 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
15951 | fi | |
15952 | ||
15953 | else | |
15954 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
15955 | fi | |
15956 | ||
15957 | ||
15958 | ||
15959 | ||
e8b05380 PB |
15960 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
15961 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
15963 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15964 | if test -x $with_build_time_tools/strip; then |
15965 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
15966 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
15967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
15968 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 15969 | else |
5213506e RW |
15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15971 | $as_echo "no" >&6; } | |
d1f8db0c | 15972 | fi |
e8b05380 PB |
15973 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15974 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
15975 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
15976 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
15977 | fi |
15978 | fi | |
3e19841a | 15979 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15980 | # Extract the first word of "strip", so it can be a program name with args. |
15981 | set dummy strip; ac_word=$2 | |
5213506e RW |
15982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15983 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15984 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 15985 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15986 | else |
1c710c3c DJ |
15987 | case $STRIP_FOR_TARGET in |
15988 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15989 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
15990 | ;; | |
e8b05380 | 15991 | *) |
1c710c3c DJ |
15992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15993 | for as_dir in $gcc_cv_tool_dirs | |
15994 | do | |
15995 | IFS=$as_save_IFS | |
15996 | test -z "$as_dir" && as_dir=. | |
5213506e | 15997 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15999 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16001 | break 2 |
16002 | fi | |
16003 | done | |
5213506e RW |
16004 | done |
16005 | IFS=$as_save_IFS | |
1c710c3c | 16006 | |
e8b05380 PB |
16007 | ;; |
16008 | esac | |
16009 | fi | |
1c710c3c | 16010 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16011 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16013 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16014 | else |
5213506e RW |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16016 | $as_echo "no" >&6; } | |
e8b05380 PB |
16017 | fi |
16018 | ||
5213506e | 16019 | |
e8b05380 PB |
16020 | fi |
16021 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16022 | |
16023 | ||
16024 | if test -n "$STRIP_FOR_TARGET"; then | |
16025 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16026 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16027 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16028 | fi | |
16029 | ||
16030 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16031 | for ncn_progname in strip; do | |
16032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16033 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16035 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16036 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16037 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16038 | else |
16039 | if test -n "$STRIP_FOR_TARGET"; then | |
16040 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16041 | else | |
16042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16043 | for as_dir in $PATH | |
16044 | do | |
16045 | IFS=$as_save_IFS | |
16046 | test -z "$as_dir" && as_dir=. | |
5213506e | 16047 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16049 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16051 | break 2 |
16052 | fi | |
16053 | done | |
5213506e RW |
16054 | done |
16055 | IFS=$as_save_IFS | |
278a7a38 AO |
16056 | |
16057 | fi | |
16058 | fi | |
16059 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16060 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16062 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16063 | else |
5213506e RW |
16064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16065 | $as_echo "no" >&6; } | |
278a7a38 AO |
16066 | fi |
16067 | ||
5213506e | 16068 | |
278a7a38 AO |
16069 | done |
16070 | fi | |
16071 | ||
16072 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16073 | for ncn_progname in strip; do |
5213506e RW |
16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16075 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16076 | if test -x $with_build_time_tools/${ncn_progname}; then |
16077 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16079 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16080 | break |
16081 | else | |
5213506e RW |
16082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16083 | $as_echo "no" >&6; } | |
e8b05380 PB |
16084 | fi |
16085 | done | |
16086 | fi | |
16087 | ||
16088 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16089 | for ncn_progname in strip; do | |
16090 | if test -n "$ncn_target_tool_prefix"; then | |
16091 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16092 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16094 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16095 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16096 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16097 | else |
16098 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16099 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16100 | else | |
16101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16102 | for as_dir in $PATH | |
16103 | do | |
16104 | IFS=$as_save_IFS | |
16105 | test -z "$as_dir" && as_dir=. | |
5213506e | 16106 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16107 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16108 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16110 | break 2 |
16111 | fi | |
16112 | done | |
5213506e RW |
16113 | done |
16114 | IFS=$as_save_IFS | |
1c710c3c | 16115 | |
040b1c5a GK |
16116 | fi |
16117 | fi | |
1c710c3c | 16118 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16119 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16121 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16122 | else |
5213506e RW |
16123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16124 | $as_echo "no" >&6; } | |
040b1c5a GK |
16125 | fi |
16126 | ||
5213506e | 16127 | |
e8b05380 PB |
16128 | fi |
16129 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16130 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16131 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16133 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16134 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16135 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16136 | else |
16137 | if test -n "$STRIP_FOR_TARGET"; then | |
16138 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16139 | else | |
1c710c3c DJ |
16140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16141 | for as_dir in $PATH | |
16142 | do | |
16143 | IFS=$as_save_IFS | |
16144 | test -z "$as_dir" && as_dir=. | |
5213506e | 16145 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16147 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16149 | break 2 |
16150 | fi | |
16151 | done | |
5213506e RW |
16152 | done |
16153 | IFS=$as_save_IFS | |
1c710c3c | 16154 | |
040b1c5a GK |
16155 | fi |
16156 | fi | |
1c710c3c | 16157 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16158 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16160 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16161 | else |
5213506e RW |
16162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16163 | $as_echo "no" >&6; } | |
040b1c5a | 16164 | fi |
1c710c3c | 16165 | |
5213506e | 16166 | |
e8b05380 PB |
16167 | fi |
16168 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16169 | done | |
16170 | fi | |
1c710c3c | 16171 | |
040b1c5a GK |
16172 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16173 | set dummy strip | |
16174 | if test $build = $target ; then | |
16175 | STRIP_FOR_TARGET="$2" | |
16176 | else | |
16177 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16178 | fi | |
1c00b503 PB |
16179 | else |
16180 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16181 | fi |
16182 | ||
d1f8db0c PB |
16183 | else |
16184 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16185 | fi |
16186 | ||
16187 | ||
16188 | ||
16189 | ||
16190 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16191 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16193 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16194 | if test -x $with_build_time_tools/windres; then |
16195 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16196 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16198 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16199 | else |
5213506e RW |
16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16201 | $as_echo "no" >&6; } | |
d1f8db0c | 16202 | fi |
e8b05380 PB |
16203 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16204 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16205 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16206 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16207 | fi |
16208 | fi | |
3e19841a | 16209 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16210 | # Extract the first word of "windres", so it can be a program name with args. |
16211 | set dummy windres; ac_word=$2 | |
5213506e RW |
16212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16213 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16214 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16215 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16216 | else |
1c710c3c DJ |
16217 | case $WINDRES_FOR_TARGET in |
16218 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16219 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16220 | ;; | |
e8b05380 | 16221 | *) |
1c710c3c DJ |
16222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16223 | for as_dir in $gcc_cv_tool_dirs | |
16224 | do | |
16225 | IFS=$as_save_IFS | |
16226 | test -z "$as_dir" && as_dir=. | |
5213506e | 16227 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16229 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16231 | break 2 |
16232 | fi | |
16233 | done | |
5213506e RW |
16234 | done |
16235 | IFS=$as_save_IFS | |
1c710c3c | 16236 | |
e8b05380 PB |
16237 | ;; |
16238 | esac | |
16239 | fi | |
1c710c3c | 16240 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16241 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16243 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16244 | else |
5213506e RW |
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16246 | $as_echo "no" >&6; } | |
e8b05380 PB |
16247 | fi |
16248 | ||
5213506e | 16249 | |
e8b05380 PB |
16250 | fi |
16251 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16252 | |
16253 | ||
16254 | if test -n "$WINDRES_FOR_TARGET"; then | |
16255 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16256 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16257 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16258 | fi | |
16259 | ||
16260 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16261 | for ncn_progname in windres; do | |
16262 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16263 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16265 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16266 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16267 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16268 | else |
16269 | if test -n "$WINDRES_FOR_TARGET"; then | |
16270 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16271 | else | |
16272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16273 | for as_dir in $PATH | |
16274 | do | |
16275 | IFS=$as_save_IFS | |
16276 | test -z "$as_dir" && as_dir=. | |
5213506e | 16277 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16279 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16281 | break 2 |
16282 | fi | |
16283 | done | |
5213506e RW |
16284 | done |
16285 | IFS=$as_save_IFS | |
278a7a38 AO |
16286 | |
16287 | fi | |
16288 | fi | |
16289 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16290 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16292 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16293 | else |
5213506e RW |
16294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16295 | $as_echo "no" >&6; } | |
278a7a38 AO |
16296 | fi |
16297 | ||
5213506e | 16298 | |
278a7a38 AO |
16299 | done |
16300 | fi | |
16301 | ||
16302 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16303 | for ncn_progname in windres; do |
5213506e RW |
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16305 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16306 | if test -x $with_build_time_tools/${ncn_progname}; then |
16307 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16309 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16310 | break |
16311 | else | |
5213506e RW |
16312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16313 | $as_echo "no" >&6; } | |
e8b05380 PB |
16314 | fi |
16315 | done | |
16316 | fi | |
16317 | ||
16318 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16319 | for ncn_progname in windres; do | |
16320 | if test -n "$ncn_target_tool_prefix"; then | |
16321 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16322 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16324 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16325 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16326 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16327 | else |
4de997d1 PB |
16328 | if test -n "$WINDRES_FOR_TARGET"; then |
16329 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16330 | else |
1c710c3c DJ |
16331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16332 | for as_dir in $PATH | |
16333 | do | |
16334 | IFS=$as_save_IFS | |
16335 | test -z "$as_dir" && as_dir=. | |
5213506e | 16336 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16338 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16340 | break 2 |
16341 | fi | |
16342 | done | |
5213506e RW |
16343 | done |
16344 | IFS=$as_save_IFS | |
1c710c3c | 16345 | |
ca9f4b81 AO |
16346 | fi |
16347 | fi | |
1c710c3c | 16348 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16349 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16351 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16352 | else |
5213506e RW |
16353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16354 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16355 | fi |
16356 | ||
5213506e | 16357 | |
e8b05380 PB |
16358 | fi |
16359 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
16360 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16361 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16363 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16364 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16365 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16366 | else |
2693c0b0 PB |
16367 | if test -n "$WINDRES_FOR_TARGET"; then |
16368 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16369 | else |
1c710c3c DJ |
16370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16371 | for as_dir in $PATH | |
16372 | do | |
16373 | IFS=$as_save_IFS | |
16374 | test -z "$as_dir" && as_dir=. | |
5213506e | 16375 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16377 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16379 | break 2 |
16380 | fi | |
16381 | done | |
5213506e RW |
16382 | done |
16383 | IFS=$as_save_IFS | |
1c710c3c | 16384 | |
ca9f4b81 AO |
16385 | fi |
16386 | fi | |
1c710c3c | 16387 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 16388 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16390 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16391 | else |
5213506e RW |
16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16393 | $as_echo "no" >&6; } | |
ca9f4b81 | 16394 | fi |
1c710c3c | 16395 | |
5213506e | 16396 | |
e8b05380 PB |
16397 | fi |
16398 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
16399 | done | |
16400 | fi | |
1c710c3c | 16401 | |
2693c0b0 PB |
16402 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
16403 | set dummy windres | |
16404 | if test $build = $target ; then | |
16405 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 16406 | else |
2693c0b0 | 16407 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 16408 | fi |
1c00b503 PB |
16409 | else |
16410 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
16411 | fi |
16412 | ||
d1f8db0c PB |
16413 | else |
16414 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
16415 | fi |
16416 | ||
4977bab6 | 16417 | |
901119ae KT |
16418 | |
16419 | ||
16420 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
16421 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
16423 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
16424 | if test -x $with_build_time_tools/windmc; then |
16425 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
16426 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
16428 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16429 | else |
5213506e RW |
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16431 | $as_echo "no" >&6; } | |
901119ae KT |
16432 | fi |
16433 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16434 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
16435 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
16436 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
16437 | fi |
16438 | fi | |
16439 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16440 | # Extract the first word of "windmc", so it can be a program name with args. | |
16441 | set dummy windmc; ac_word=$2 | |
5213506e RW |
16442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16443 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16444 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16445 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16446 | else |
16447 | case $WINDMC_FOR_TARGET in | |
16448 | [\\/]* | ?:[\\/]*) | |
16449 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
16450 | ;; | |
16451 | *) | |
16452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16453 | for as_dir in $gcc_cv_tool_dirs | |
16454 | do | |
16455 | IFS=$as_save_IFS | |
16456 | test -z "$as_dir" && as_dir=. | |
5213506e | 16457 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16459 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16461 | break 2 |
16462 | fi | |
16463 | done | |
5213506e RW |
16464 | done |
16465 | IFS=$as_save_IFS | |
901119ae KT |
16466 | |
16467 | ;; | |
16468 | esac | |
16469 | fi | |
16470 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 16471 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
16472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16473 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16474 | else |
5213506e RW |
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16476 | $as_echo "no" >&6; } | |
901119ae KT |
16477 | fi |
16478 | ||
5213506e | 16479 | |
901119ae KT |
16480 | fi |
16481 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
16482 | ||
16483 | ||
16484 | if test -n "$WINDMC_FOR_TARGET"; then | |
16485 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
16486 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
16487 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16488 | fi | |
16489 | ||
16490 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
16491 | for ncn_progname in windmc; do | |
16492 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16493 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16495 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16496 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16497 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16498 | else |
16499 | if test -n "$WINDMC_FOR_TARGET"; then | |
16500 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
16501 | else | |
16502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16503 | for as_dir in $PATH | |
16504 | do | |
16505 | IFS=$as_save_IFS | |
16506 | test -z "$as_dir" && as_dir=. | |
5213506e | 16507 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16509 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 16510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16511 | break 2 |
16512 | fi | |
16513 | done | |
5213506e RW |
16514 | done |
16515 | IFS=$as_save_IFS | |
901119ae KT |
16516 | |
16517 | fi | |
16518 | fi | |
16519 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16520 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
16521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16522 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16523 | else |
5213506e RW |
16524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16525 | $as_echo "no" >&6; } | |
901119ae KT |
16526 | fi |
16527 | ||
5213506e | 16528 | |
901119ae KT |
16529 | done |
16530 | fi | |
16531 | ||
16532 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16533 | for ncn_progname in windmc; do | |
5213506e RW |
16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16535 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
16536 | if test -x $with_build_time_tools/${ncn_progname}; then |
16537 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16539 | $as_echo "yes" >&6; } | |
901119ae KT |
16540 | break |
16541 | else | |
5213506e RW |
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16543 | $as_echo "no" >&6; } | |
901119ae KT |
16544 | fi |
16545 | done | |
16546 | fi | |
16547 | ||
16548 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
16549 | for ncn_progname in windmc; do | |
16550 | if test -n "$ncn_target_tool_prefix"; then | |
16551 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16552 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
16553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16554 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16555 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16556 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16557 | else |
16558 | if test -n "$WINDMC_FOR_TARGET"; then | |
16559 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
16560 | else | |
16561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16562 | for as_dir in $PATH | |
16563 | do | |
16564 | IFS=$as_save_IFS | |
16565 | test -z "$as_dir" && as_dir=. | |
5213506e | 16566 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16567 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16568 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16570 | break 2 |
16571 | fi | |
16572 | done | |
5213506e RW |
16573 | done |
16574 | IFS=$as_save_IFS | |
901119ae KT |
16575 | |
16576 | fi | |
16577 | fi | |
16578 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16579 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
16580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16581 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16582 | else |
5213506e RW |
16583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16584 | $as_echo "no" >&6; } | |
901119ae KT |
16585 | fi |
16586 | ||
5213506e | 16587 | |
901119ae KT |
16588 | fi |
16589 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
16590 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16591 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16593 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16594 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16595 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16596 | else |
16597 | if test -n "$WINDMC_FOR_TARGET"; then | |
16598 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
16599 | else | |
16600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16601 | for as_dir in $PATH | |
16602 | do | |
16603 | IFS=$as_save_IFS | |
16604 | test -z "$as_dir" && as_dir=. | |
5213506e | 16605 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16606 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16607 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 16608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16609 | break 2 |
16610 | fi | |
16611 | done | |
5213506e RW |
16612 | done |
16613 | IFS=$as_save_IFS | |
901119ae KT |
16614 | |
16615 | fi | |
16616 | fi | |
16617 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16618 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16620 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16621 | else |
5213506e RW |
16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16623 | $as_echo "no" >&6; } | |
901119ae KT |
16624 | fi |
16625 | ||
5213506e | 16626 | |
901119ae KT |
16627 | fi |
16628 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
16629 | done | |
16630 | fi | |
16631 | ||
16632 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
16633 | set dummy windmc | |
16634 | if test $build = $target ; then | |
16635 | WINDMC_FOR_TARGET="$2" | |
16636 | else | |
16637 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16638 | fi | |
1c00b503 PB |
16639 | else |
16640 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
16641 | fi |
16642 | ||
16643 | else | |
16644 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
16645 | fi | |
16646 | ||
16647 | ||
2abefe3d PB |
16648 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
16649 | ||
5213506e RW |
16650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
16651 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 16652 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16653 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
16654 | # We already found the complete path | |
172e41aa | 16655 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16657 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16658 | else |
16659 | # Canadian cross, just use what we found | |
5213506e RW |
16660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16661 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16662 | fi |
2abefe3d PB |
16663 | else |
16664 | ok=yes | |
16665 | case " ${configdirs} " in | |
16666 | *" binutils "*) ;; | |
16667 | *) ok=no ;; | |
16668 | esac | |
1c710c3c | 16669 | |
2abefe3d PB |
16670 | if test $ok = yes; then |
16671 | # An in-tree tool is available and we can use it | |
16672 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
16673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16674 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16675 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
16676 | # We already found the complete path | |
172e41aa | 16677 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16679 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16680 | elif test "x$target" = "x$host"; then |
16681 | # We can use an host tool | |
16682 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16684 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16685 | else |
16686 | # We need a cross tool | |
5213506e RW |
16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16688 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16689 | fi |
16690 | fi | |
0b0dc272 | 16691 | |
5213506e RW |
16692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
16693 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 16694 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16695 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
16696 | # We already found the complete path | |
172e41aa | 16697 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
16698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16699 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16700 | else |
16701 | # Canadian cross, just use what we found | |
5213506e RW |
16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16703 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16704 | fi |
2abefe3d PB |
16705 | else |
16706 | ok=yes | |
16707 | case " ${configdirs} " in | |
16708 | *" gas "*) ;; | |
16709 | *) ok=no ;; | |
16710 | esac | |
1c710c3c | 16711 | |
2abefe3d PB |
16712 | if test $ok = yes; then |
16713 | # An in-tree tool is available and we can use it | |
16714 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16716 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16717 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
16718 | # We already found the complete path | |
172e41aa | 16719 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16721 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16722 | elif test "x$target" = "x$host"; then |
16723 | # We can use an host tool | |
16724 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16726 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16727 | else |
16728 | # We need a cross tool | |
5213506e RW |
16729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16730 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16731 | fi |
16732 | fi | |
0b0dc272 | 16733 | |
5213506e RW |
16734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
16735 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 16736 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16737 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
16738 | # We already found the complete path | |
172e41aa | 16739 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
16740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16741 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16742 | else |
16743 | # Canadian cross, just use what we found | |
5213506e RW |
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16745 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16746 | fi |
2abefe3d PB |
16747 | else |
16748 | ok=yes | |
16749 | case " ${configdirs} " in | |
16750 | *" gcc "*) ;; | |
16751 | *) ok=no ;; | |
16752 | esac | |
1c710c3c | 16753 | |
2abefe3d PB |
16754 | if test $ok = yes; then |
16755 | # An in-tree tool is available and we can use it | |
16756 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16758 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16759 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
16760 | # We already found the complete path | |
172e41aa | 16761 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
16762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16763 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16764 | elif test "x$target" = "x$host"; then |
16765 | # We can use an host tool | |
16766 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16768 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16769 | else |
16770 | # We need a cross tool | |
5213506e RW |
16771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16772 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16773 | fi |
16774 | fi | |
0b0dc272 | 16775 | |
5213506e RW |
16776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
16777 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 16778 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16779 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
16780 | # We already found the complete path | |
172e41aa | 16781 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
16782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16783 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16784 | else |
16785 | # Canadian cross, just use what we found | |
5213506e RW |
16786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16787 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16788 | fi |
2abefe3d PB |
16789 | else |
16790 | ok=yes | |
16791 | case " ${configdirs} " in | |
16792 | *" gcc "*) ;; | |
16793 | *) ok=no ;; | |
16794 | esac | |
16795 | case ,${enable_languages}, in | |
16796 | *,c++,*) ;; | |
16797 | *) ok=no ;; | |
16798 | esac | |
16799 | if test $ok = yes; then | |
16800 | # An in-tree tool is available and we can use it | |
2077db1b | 16801 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
16802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16803 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16804 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
16805 | # We already found the complete path | |
172e41aa | 16806 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16808 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16809 | elif test "x$target" = "x$host"; then |
16810 | # We can use an host tool | |
16811 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16813 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16814 | else |
16815 | # We need a cross tool | |
5213506e RW |
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16817 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16818 | fi |
16819 | fi | |
0b0dc272 | 16820 | |
5213506e RW |
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
16822 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 16823 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16824 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
16825 | # We already found the complete path | |
172e41aa | 16826 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16828 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16829 | else |
16830 | # Canadian cross, just use what we found | |
5213506e RW |
16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16832 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16833 | fi |
2abefe3d PB |
16834 | else |
16835 | ok=yes | |
16836 | case " ${configdirs} " in | |
16837 | *" gcc "*) ;; | |
16838 | *) ok=no ;; | |
16839 | esac | |
16840 | case ,${enable_languages}, in | |
16841 | *,c++,*) ;; | |
16842 | *) ok=no ;; | |
16843 | esac | |
16844 | if test $ok = yes; then | |
16845 | # An in-tree tool is available and we can use it | |
2077db1b | 16846 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16848 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16849 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
16850 | # We already found the complete path | |
172e41aa | 16851 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
16852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16853 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16854 | elif test "x$target" = "x$host"; then |
16855 | # We can use an host tool | |
16856 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
16857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16858 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16859 | else |
16860 | # We need a cross tool | |
5213506e RW |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16862 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16863 | fi |
16864 | fi | |
0b0dc272 | 16865 | |
5213506e RW |
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
16867 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 16868 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16869 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
16870 | # We already found the complete path | |
172e41aa | 16871 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16873 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16874 | else |
16875 | # Canadian cross, just use what we found | |
5213506e RW |
16876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16877 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16878 | fi |
2abefe3d PB |
16879 | else |
16880 | ok=yes | |
16881 | case " ${configdirs} " in | |
16882 | *" binutils "*) ;; | |
16883 | *) ok=no ;; | |
16884 | esac | |
1c710c3c | 16885 | |
2abefe3d PB |
16886 | if test $ok = yes; then |
16887 | # An in-tree tool is available and we can use it | |
16888 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
16889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16890 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16891 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
16892 | # We already found the complete path | |
172e41aa | 16893 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
16894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16895 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16896 | elif test "x$target" = "x$host"; then |
16897 | # We can use an host tool | |
16898 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16900 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16901 | else |
16902 | # We need a cross tool | |
5213506e RW |
16903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16904 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16905 | fi |
16906 | fi | |
0b0dc272 | 16907 | |
5213506e RW |
16908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
16909 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 16910 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16911 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
16912 | # We already found the complete path | |
172e41aa | 16913 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16915 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16916 | else |
16917 | # Canadian cross, just use what we found | |
5213506e RW |
16918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16919 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16920 | fi |
2abefe3d PB |
16921 | else |
16922 | ok=yes | |
16923 | case " ${configdirs} " in | |
16924 | *" gcc "*) ;; | |
16925 | *) ok=no ;; | |
16926 | esac | |
1c710c3c | 16927 | |
2abefe3d PB |
16928 | if test $ok = yes; then |
16929 | # An in-tree tool is available and we can use it | |
16930 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
16931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16932 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16933 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
16934 | # We already found the complete path | |
172e41aa | 16935 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
16936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16937 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16938 | elif test "x$target" = "x$host"; then |
16939 | # We can use an host tool | |
16940 | GCC_FOR_TARGET='$()' | |
5213506e RW |
16941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16942 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16943 | else |
16944 | # We need a cross tool | |
5213506e RW |
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16946 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16947 | fi |
16948 | fi | |
0b0dc272 | 16949 | |
5213506e RW |
16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
16951 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 16952 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16953 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
16954 | # We already found the complete path | |
172e41aa | 16955 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
16956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16957 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16958 | else |
16959 | # Canadian cross, just use what we found | |
5213506e RW |
16960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16961 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16962 | fi |
2abefe3d PB |
16963 | else |
16964 | ok=yes | |
16965 | case " ${configdirs} " in | |
16966 | *" gcc "*) ;; | |
16967 | *) ok=no ;; | |
16968 | esac | |
16969 | case ,${enable_languages}, in | |
16970 | *,fortran,*) ;; | |
16971 | *) ok=no ;; | |
16972 | esac | |
16973 | if test $ok = yes; then | |
16974 | # An in-tree tool is available and we can use it | |
16975 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
16976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16977 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16978 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
16979 | # We already found the complete path | |
172e41aa | 16980 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
16981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16982 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16983 | elif test "x$target" = "x$host"; then |
16984 | # We can use an host tool | |
16985 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
16986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16987 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16988 | else |
16989 | # We need a cross tool | |
5213506e RW |
16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16991 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16992 | fi |
16993 | fi | |
0b0dc272 | 16994 | |
632e2a07 ILT |
16995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
16996 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
16997 | if test "x${build}" != "x${host}" ; then | |
16998 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
16999 | # We already found the complete path | |
17000 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17002 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17003 | else | |
17004 | # Canadian cross, just use what we found | |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17006 | $as_echo "pre-installed" >&6; } | |
17007 | fi | |
17008 | else | |
17009 | ok=yes | |
17010 | case " ${configdirs} " in | |
17011 | *" gcc "*) ;; | |
17012 | *) ok=no ;; | |
17013 | esac | |
17014 | case ,${enable_languages}, in | |
17015 | *,go,*) ;; | |
17016 | *) ok=no ;; | |
17017 | esac | |
17018 | if test $ok = yes; then | |
17019 | # An in-tree tool is available and we can use it | |
17020 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17022 | $as_echo "just compiled" >&6; } | |
17023 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17024 | # We already found the complete path | |
17025 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17027 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17028 | elif test "x$target" = "x$host"; then | |
17029 | # We can use an host tool | |
17030 | GOC_FOR_TARGET='$(GOC)' | |
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17032 | $as_echo "host tool" >&6; } | |
17033 | else | |
17034 | # We need a cross tool | |
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17036 | $as_echo "pre-installed" >&6; } | |
17037 | fi | |
17038 | fi | |
17039 | ||
b4c522fa IB |
17040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17041 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17042 | if test "x${build}" != "x${host}" ; then | |
17043 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17044 | # We already found the complete path | |
17045 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17047 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17048 | else | |
17049 | # Canadian cross, just use what we found | |
17050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17051 | $as_echo "pre-installed" >&6; } | |
17052 | fi | |
17053 | else | |
17054 | ok=yes | |
17055 | case " ${configdirs} " in | |
17056 | *" gcc "*) ;; | |
17057 | *) ok=no ;; | |
17058 | esac | |
17059 | case ,${enable_languages}, in | |
17060 | *,d,*) ;; | |
17061 | *) ok=no ;; | |
17062 | esac | |
17063 | if test $ok = yes; then | |
17064 | # An in-tree tool is available and we can use it | |
17065 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17067 | $as_echo "just compiled" >&6; } | |
17068 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17069 | # We already found the complete path | |
17070 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17072 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17073 | elif test "x$target" = "x$host"; then | |
17074 | # We can use an host tool | |
17075 | GDC_FOR_TARGET='$(GDC)' | |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17077 | $as_echo "host tool" >&6; } | |
17078 | else | |
17079 | # We need a cross tool | |
17080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17081 | $as_echo "pre-installed" >&6; } | |
17082 | fi | |
17083 | fi | |
17084 | ||
5213506e RW |
17085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17086 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17087 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17088 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17089 | # We already found the complete path | |
172e41aa | 17090 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17092 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17093 | else |
17094 | # Canadian cross, just use what we found | |
5213506e RW |
17095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17096 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17097 | fi |
2abefe3d PB |
17098 | else |
17099 | ok=yes | |
17100 | case " ${configdirs} " in | |
17101 | *" ld "*) ;; | |
17102 | *) ok=no ;; | |
17103 | esac | |
1c710c3c | 17104 | |
2abefe3d PB |
17105 | if test $ok = yes; then |
17106 | # An in-tree tool is available and we can use it | |
17107 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17109 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17110 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17111 | # We already found the complete path | |
172e41aa | 17112 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17114 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17115 | elif test "x$target" = "x$host"; then |
17116 | # We can use an host tool | |
17117 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17119 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17120 | else |
17121 | # We need a cross tool | |
5213506e RW |
17122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17123 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17124 | fi |
17125 | fi | |
0b0dc272 | 17126 | |
5213506e RW |
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17128 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17129 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17130 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17131 | # We already found the complete path | |
172e41aa | 17132 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17134 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17135 | else |
17136 | # Canadian cross, just use what we found | |
5213506e RW |
17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17138 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17139 | fi |
2abefe3d | 17140 | else |
e8b05380 PB |
17141 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17142 | # We already found the complete path | |
172e41aa | 17143 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17145 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17146 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17147 | # We can use an host tool |
17148 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17150 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17151 | else |
17152 | # We need a cross tool | |
5213506e RW |
17153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17154 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17155 | fi |
17156 | fi | |
0b0dc272 | 17157 | |
5213506e RW |
17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17159 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17160 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17161 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17162 | # We already found the complete path | |
172e41aa | 17163 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17165 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17166 | else |
17167 | # Canadian cross, just use what we found | |
5213506e RW |
17168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17169 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17170 | fi |
2abefe3d PB |
17171 | else |
17172 | ok=yes | |
17173 | case " ${configdirs} " in | |
17174 | *" binutils "*) ;; | |
17175 | *) ok=no ;; | |
17176 | esac | |
1c710c3c | 17177 | |
2abefe3d PB |
17178 | if test $ok = yes; then |
17179 | # An in-tree tool is available and we can use it | |
17180 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17182 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17183 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17184 | # We already found the complete path | |
172e41aa | 17185 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17187 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17188 | elif test "x$target" = "x$host"; then |
17189 | # We can use an host tool | |
17190 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17192 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17193 | else |
17194 | # We need a cross tool | |
5213506e RW |
17195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17196 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17197 | fi |
17198 | fi | |
0b0dc272 | 17199 | |
9bccfdf5 AP |
17200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17201 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17202 | if test "x${build}" != "x${host}" ; then | |
17203 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17204 | # We already found the complete path | |
17205 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17207 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17208 | else | |
17209 | # Canadian cross, just use what we found | |
17210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17211 | $as_echo "pre-installed" >&6; } | |
17212 | fi | |
17213 | else | |
17214 | ok=yes | |
17215 | case " ${configdirs} " in | |
17216 | *" binutils "*) ;; | |
17217 | *) ok=no ;; | |
17218 | esac | |
17219 | ||
17220 | if test $ok = yes; then | |
17221 | # An in-tree tool is available and we can use it | |
17222 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17224 | $as_echo "just compiled" >&6; } | |
17225 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17226 | # We already found the complete path | |
17227 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17229 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17230 | elif test "x$target" = "x$host"; then | |
17231 | # We can use an host tool | |
ec8fd1c0 | 17232 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17234 | $as_echo "host tool" >&6; } | |
17235 | else | |
17236 | # We need a cross tool | |
17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17238 | $as_echo "pre-installed" >&6; } | |
17239 | fi | |
17240 | fi | |
17241 | ||
5213506e RW |
17242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17243 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17244 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17245 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17246 | # We already found the complete path | |
172e41aa | 17247 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17249 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17250 | else |
17251 | # Canadian cross, just use what we found | |
5213506e RW |
17252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17253 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17254 | fi |
2abefe3d PB |
17255 | else |
17256 | ok=yes | |
17257 | case " ${configdirs} " in | |
17258 | *" binutils "*) ;; | |
17259 | *) ok=no ;; | |
17260 | esac | |
1c710c3c | 17261 | |
2abefe3d PB |
17262 | if test $ok = yes; then |
17263 | # An in-tree tool is available and we can use it | |
17264 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17266 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17267 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17268 | # We already found the complete path | |
172e41aa | 17269 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17271 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17272 | elif test "x$target" = "x$host"; then |
17273 | # We can use an host tool | |
17274 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17276 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17277 | else |
17278 | # We need a cross tool | |
5213506e RW |
17279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17280 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17281 | fi |
17282 | fi | |
0b0dc272 | 17283 | |
e4a9a572 IS |
17284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17285 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17286 | if test "x${build}" != "x${host}" ; then | |
17287 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17288 | # We already found the complete path | |
17289 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17291 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17292 | else | |
17293 | # Canadian cross, just use what we found | |
17294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17295 | $as_echo "pre-installed" >&6; } | |
17296 | fi | |
17297 | else | |
17298 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17299 | # We already found the complete path | |
17300 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17302 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17303 | elif test "x$target" = "x$host"; then | |
17304 | # We can use an host tool | |
17305 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17307 | $as_echo "host tool" >&6; } | |
17308 | else | |
17309 | # We need a cross tool | |
17310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17311 | $as_echo "pre-installed" >&6; } | |
17312 | fi | |
17313 | fi | |
17314 | ||
5213506e RW |
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17316 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17317 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17318 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17319 | # We already found the complete path | |
172e41aa | 17320 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17322 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17323 | else |
17324 | # Canadian cross, just use what we found | |
5213506e RW |
17325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17326 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17327 | fi |
2abefe3d PB |
17328 | else |
17329 | ok=yes | |
17330 | case " ${configdirs} " in | |
17331 | *" binutils "*) ;; | |
17332 | *) ok=no ;; | |
17333 | esac | |
1c710c3c | 17334 | |
2abefe3d PB |
17335 | if test $ok = yes; then |
17336 | # An in-tree tool is available and we can use it | |
17337 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17339 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17340 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17341 | # We already found the complete path | |
172e41aa | 17342 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17344 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17345 | elif test "x$target" = "x$host"; then |
17346 | # We can use an host tool | |
17347 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17349 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17350 | else |
17351 | # We need a cross tool | |
5213506e RW |
17352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17353 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17354 | fi |
17355 | fi | |
0b0dc272 | 17356 | |
e7a82751 RM |
17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
17358 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
17359 | if test "x${build}" != "x${host}" ; then | |
17360 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17361 | # We already found the complete path | |
17362 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17364 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17365 | else | |
17366 | # Canadian cross, just use what we found | |
17367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17368 | $as_echo "pre-installed" >&6; } | |
17369 | fi | |
17370 | else | |
17371 | ok=yes | |
17372 | case " ${configdirs} " in | |
17373 | *" binutils "*) ;; | |
17374 | *) ok=no ;; | |
17375 | esac | |
17376 | ||
17377 | if test $ok = yes; then | |
17378 | # An in-tree tool is available and we can use it | |
17379 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
17380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17381 | $as_echo "just compiled" >&6; } | |
17382 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17383 | # We already found the complete path | |
17384 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17386 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17387 | elif test "x$target" = "x$host"; then | |
17388 | # We can use an host tool | |
17389 | READELF_FOR_TARGET='$(READELF)' | |
17390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17391 | $as_echo "host tool" >&6; } | |
17392 | else | |
17393 | # We need a cross tool | |
17394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17395 | $as_echo "pre-installed" >&6; } | |
17396 | fi | |
17397 | fi | |
17398 | ||
5213506e RW |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
17400 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 17401 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17402 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
17403 | # We already found the complete path | |
172e41aa | 17404 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
17405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17406 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17407 | else |
17408 | # Canadian cross, just use what we found | |
5213506e RW |
17409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17410 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17411 | fi |
2abefe3d PB |
17412 | else |
17413 | ok=yes | |
17414 | case " ${configdirs} " in | |
17415 | *" binutils "*) ;; | |
17416 | *) ok=no ;; | |
17417 | esac | |
1c710c3c | 17418 | |
2abefe3d PB |
17419 | if test $ok = yes; then |
17420 | # An in-tree tool is available and we can use it | |
455c8f48 | 17421 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
17422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17423 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17424 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
17425 | # We already found the complete path | |
172e41aa | 17426 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17428 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17429 | elif test "x$target" = "x$host"; then |
17430 | # We can use an host tool | |
17431 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17433 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17434 | else |
17435 | # We need a cross tool | |
5213506e RW |
17436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17437 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17438 | fi |
17439 | fi | |
0b0dc272 | 17440 | |
5213506e RW |
17441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
17442 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 17443 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17444 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
17445 | # We already found the complete path | |
172e41aa | 17446 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17448 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17449 | else |
17450 | # Canadian cross, just use what we found | |
5213506e RW |
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17452 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17453 | fi |
2abefe3d PB |
17454 | else |
17455 | ok=yes | |
17456 | case " ${configdirs} " in | |
17457 | *" binutils "*) ;; | |
17458 | *) ok=no ;; | |
17459 | esac | |
1c710c3c | 17460 | |
2abefe3d PB |
17461 | if test $ok = yes; then |
17462 | # An in-tree tool is available and we can use it | |
17463 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
17464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17465 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17466 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
17467 | # We already found the complete path | |
172e41aa | 17468 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
17469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17470 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17471 | elif test "x$target" = "x$host"; then |
17472 | # We can use an host tool | |
17473 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17475 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17476 | else |
17477 | # We need a cross tool | |
5213506e RW |
17478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17479 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 17480 | fi |
671aa708 | 17481 | fi |
be912515 | 17482 | |
5213506e RW |
17483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
17484 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
17485 | if test "x${build}" != "x${host}" ; then |
17486 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
17487 | # We already found the complete path | |
17488 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17490 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
17491 | else |
17492 | # Canadian cross, just use what we found | |
5213506e RW |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17494 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
17495 | fi |
17496 | else | |
17497 | ok=yes | |
17498 | case " ${configdirs} " in | |
17499 | *" binutils "*) ;; | |
17500 | *) ok=no ;; | |
17501 | esac | |
17502 | ||
17503 | if test $ok = yes; then | |
17504 | # An in-tree tool is available and we can use it | |
17505 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
17506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17507 | $as_echo "just compiled" >&6; } | |
901119ae KT |
17508 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
17509 | # We already found the complete path | |
17510 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17512 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
17513 | elif test "x$target" = "x$host"; then |
17514 | # We can use an host tool | |
17515 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17517 | $as_echo "host tool" >&6; } | |
901119ae KT |
17518 | else |
17519 | # We need a cross tool | |
5213506e RW |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17521 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
17522 | fi |
17523 | fi | |
17524 | ||
be912515 NN |
17525 | |
17526 | ||
2abefe3d | 17527 | |
0b0dc272 | 17528 | |
671aa708 NN |
17529 | # Certain tools may need extra flags. |
17530 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
17531 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
17532 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
17533 | ||
2abefe3d PB |
17534 | # When building target libraries, except in a Canadian cross, we use |
17535 | # the same toolchain as the compiler we just built. | |
17536 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
17537 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
17538 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
17539 | if test $host = $build; then | |
17540 | case " $configdirs " in | |
17541 | *" gcc "*) | |
17542 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
17543 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
17544 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
17545 | ;; | |
17546 | esac | |
17547 | fi | |
17548 | ||
17549 | ||
17550 | ||
17551 | ||
17552 | ||
5213506e RW |
17553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
17554 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
17555 | # Check whether --enable-maintainer-mode was given. | |
17556 | if test "${enable_maintainer_mode+set}" = set; then : | |
17557 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
17558 | else |
17559 | USE_MAINTAINER_MODE=no | |
5213506e RW |
17560 | fi |
17561 | ||
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
17563 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
17564 | |
17565 | ||
17566 | if test "$USE_MAINTAINER_MODE" = yes; then | |
17567 | MAINTAINER_MODE_TRUE= | |
17568 | MAINTAINER_MODE_FALSE='#' | |
17569 | else | |
17570 | MAINTAINER_MODE_TRUE='#' | |
17571 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 17572 | fi |
ee03dc5e AO |
17573 | MAINT=$MAINTAINER_MODE_TRUE |
17574 | ||
2805b53a NN |
17575 | # --------------------- |
17576 | # GCC bootstrap support | |
17577 | # --------------------- | |
17578 | ||
17579 | # Stage specific cflags for build. | |
17580 | stage1_cflags="-g" | |
17581 | case $build in | |
17582 | vax-*-*) | |
17583 | case ${GCC} in | |
17584 | yes) stage1_cflags="-g -Wa,-J" ;; | |
17585 | *) stage1_cflags="-g -J" ;; | |
17586 | esac ;; | |
2805b53a NN |
17587 | esac |
17588 | ||
0b50988a | 17589 | |
2805b53a | 17590 | |
8efea775 | 17591 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
17592 | # Check whether --enable-stage1-checking was given. |
17593 | if test "${enable_stage1_checking+set}" = set; then : | |
17594 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 17595 | else |
e643dc23 | 17596 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
17597 | # For --disable-checking or implicit --enable-checking=release, avoid |
17598 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
17599 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
17600 | case $BUILD_CONFIG in |
17601 | *lto*) | |
7db11a5a JJ |
17602 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
17603 | *) | |
17604 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 17605 | esac |
7db11a5a JJ |
17606 | if test "x$enable_checking" = x && \ |
17607 | test -d ${srcdir}/gcc && \ | |
17608 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 17609 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 17610 | fi |
8efea775 | 17611 | else |
e643dc23 | 17612 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 17613 | fi |
5213506e | 17614 | fi |
8efea775 PB |
17615 | |
17616 | ||
2aeb72e9 | 17617 | |
5213506e RW |
17618 | # Enable -Werror in bootstrap stage2 and later. |
17619 | # Check whether --enable-werror was given. | |
17620 | if test "${enable_werror+set}" = set; then : | |
17621 | enableval=$enable_werror; | |
09a9c095 NN |
17622 | case ${enable_werror} in |
17623 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
17624 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
17625 | esac |
17626 | ||
afd88efc ML |
17627 | else |
17628 | ||
01c712cb ML |
17629 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
17630 | case $BUILD_CONFIG in | |
17631 | bootstrap-debug) | |
17632 | stage2_werror_flag="--enable-werror-always" ;; | |
17633 | "") | |
17634 | stage2_werror_flag="--enable-werror-always" ;; | |
17635 | esac | |
17636 | fi | |
17637 | ||
afd88efc ML |
17638 | fi |
17639 | ||
17640 | ||
01c712cb | 17641 | |
2805b53a | 17642 | |
f2689b09 SE |
17643 | # Specify what files to not compare during bootstrap. |
17644 | ||
17645 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
17646 | case "$target" in | |
17647 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
17648 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
17649 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
17650 | esac |
17651 | ||
17652 | ||
5213506e RW |
17653 | ac_config_files="$ac_config_files Makefile" |
17654 | ||
1c710c3c | 17655 | cat >confcache <<\_ACEOF |
671aa708 NN |
17656 | # This file is a shell script that caches the results of configure |
17657 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
17658 | # scripts and configure runs, see configure's option --config-cache. |
17659 | # It is not useful on other systems. If it contains results you don't | |
17660 | # want to keep, you may remove or edit it. | |
671aa708 | 17661 | # |
1c710c3c DJ |
17662 | # config.status only pays attention to the cache file if you give it |
17663 | # the --recheck option to rerun configure. | |
671aa708 | 17664 | # |
1c710c3c DJ |
17665 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17666 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17667 | # following values. | |
17668 | ||
17669 | _ACEOF | |
17670 | ||
671aa708 NN |
17671 | # The following way of writing the cache mishandles newlines in values, |
17672 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 17673 | # So, we kill variables containing newlines. |
671aa708 NN |
17674 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17675 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
17676 | ( |
17677 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17678 | eval ac_val=\$$ac_var | |
17679 | case $ac_val in #( | |
17680 | *${as_nl}*) | |
17681 | case $ac_var in #( | |
17682 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17683 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17684 | esac | |
17685 | case $ac_var in #( | |
17686 | _ | IFS | as_nl) ;; #( | |
17687 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17688 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17689 | esac ;; | |
17690 | esac | |
17691 | done | |
17692 | ||
1c710c3c | 17693 | (set) 2>&1 | |
5213506e RW |
17694 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17695 | *${as_nl}ac_space=\ *) | |
17696 | # `set' does not quote correctly, so add quotes: double-quote | |
17697 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
17698 | sed -n \ |
17699 | "s/'/'\\\\''/g; | |
17700 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 17701 | ;; #( |
1c710c3c DJ |
17702 | *) |
17703 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 17704 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 17705 | ;; |
5213506e RW |
17706 | esac | |
17707 | sort | |
17708 | ) | | |
1c710c3c | 17709 | sed ' |
5213506e | 17710 | /^ac_cv_env_/b end |
1c710c3c | 17711 | t clear |
5213506e | 17712 | :clear |
1c710c3c DJ |
17713 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17714 | t end | |
5213506e RW |
17715 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17716 | :end' >>confcache | |
17717 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17718 | if test -w "$cache_file"; then | |
22e05272 | 17719 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
17720 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17721 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17722 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17723 | cat confcache >"$cache_file" | |
17724 | else | |
17725 | case $cache_file in #( | |
17726 | */* | ?:*) | |
17727 | mv -f confcache "$cache_file"$$ && | |
17728 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17729 | *) | |
17730 | mv -f confcache "$cache_file" ;; | |
17731 | esac | |
17732 | fi | |
17733 | fi | |
671aa708 | 17734 | else |
5213506e RW |
17735 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17736 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 17737 | fi |
4977bab6 | 17738 | fi |
671aa708 | 17739 | rm -f confcache |
79c06341 | 17740 | |
671aa708 NN |
17741 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17742 | # Let make expand exec_prefix. | |
17743 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 17744 | |
671aa708 NN |
17745 | # Transform confdefs.h into DEFS. |
17746 | # Protect against shell expansion while executing Makefile rules. | |
17747 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
17748 | # |
17749 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 17750 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 17751 | # look for a macro that doesn't take arguments. |
5213506e RW |
17752 | ac_script=' |
17753 | :mline | |
17754 | /\\$/{ | |
17755 | N | |
17756 | s,\\\n,, | |
17757 | b mline | |
17758 | } | |
1c710c3c | 17759 | t clear |
5213506e RW |
17760 | :clear |
17761 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 17762 | t quote |
5213506e | 17763 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 17764 | t quote |
5213506e RW |
17765 | b any |
17766 | :quote | |
17767 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
17768 | s/\[/\\&/g | |
17769 | s/\]/\\&/g | |
17770 | s/\$/$$/g | |
17771 | H | |
17772 | :any | |
17773 | ${ | |
17774 | g | |
17775 | s/^\n// | |
17776 | s/\n/ /g | |
17777 | p | |
17778 | } | |
17779 | ' | |
17780 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
17781 | |
17782 | ||
17783 | ac_libobjs= | |
17784 | ac_ltlibobjs= | |
22e05272 | 17785 | U= |
1c710c3c DJ |
17786 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17787 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
17788 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17789 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17790 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17791 | # will be set to the directory where LIBOBJS objects are built. | |
17792 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17793 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
17794 | done |
17795 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 17796 | |
1c710c3c | 17797 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 17798 | |
af71363e | 17799 | |
1c710c3c | 17800 | |
22e05272 | 17801 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 17802 | ac_write_fail=0 |
1c710c3c DJ |
17803 | ac_clean_files_save=$ac_clean_files |
17804 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17806 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17807 | as_write_fail=0 | |
17808 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
17809 | #! $SHELL |
17810 | # Generated by $as_me. | |
671aa708 | 17811 | # Run this file to recreate the current configuration. |
671aa708 | 17812 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 17813 | # configure, is in config.log if it exists. |
0b0dc272 | 17814 | |
1c710c3c DJ |
17815 | debug=false |
17816 | ac_cs_recheck=false | |
17817 | ac_cs_silent=false | |
1c710c3c | 17818 | |
5213506e RW |
17819 | SHELL=\${CONFIG_SHELL-$SHELL} |
17820 | export SHELL | |
17821 | _ASEOF | |
17822 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17823 | ## -------------------- ## | |
17824 | ## M4sh Initialization. ## | |
17825 | ## -------------------- ## | |
17826 | ||
17827 | # Be more Bourne compatible | |
17828 | DUALCASE=1; export DUALCASE # for MKS sh | |
17829 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
17830 | emulate sh |
17831 | NULLCMD=: | |
5213506e | 17832 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
17833 | # is contrary to our usage. Disable this feature. |
17834 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
17835 | setopt NO_GLOB_SUBST |
17836 | else | |
17837 | case `(set -o) 2>/dev/null` in #( | |
17838 | *posix*) : | |
17839 | set -o posix ;; #( | |
17840 | *) : | |
17841 | ;; | |
17842 | esac | |
1c710c3c | 17843 | fi |
1c710c3c | 17844 | |
5213506e RW |
17845 | |
17846 | as_nl=' | |
17847 | ' | |
17848 | export as_nl | |
17849 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17850 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17851 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17852 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17853 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17854 | # but without wasting forks for bash or zsh. | |
17855 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17856 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17857 | as_echo='print -r --' | |
17858 | as_echo_n='print -rn --' | |
17859 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17860 | as_echo='printf %s\n' | |
17861 | as_echo_n='printf %s' | |
17862 | else | |
17863 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17864 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17865 | as_echo_n='/usr/ucb/echo -n' | |
17866 | else | |
17867 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17868 | as_echo_n_body='eval | |
17869 | arg=$1; | |
17870 | case $arg in #( | |
17871 | *"$as_nl"*) | |
17872 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17873 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17874 | esac; | |
17875 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17876 | ' | |
17877 | export as_echo_n_body | |
17878 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17879 | fi | |
17880 | export as_echo_body | |
17881 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
17882 | fi |
17883 | ||
5213506e RW |
17884 | # The user is always right. |
17885 | if test "${PATH_SEPARATOR+set}" != set; then | |
17886 | PATH_SEPARATOR=: | |
17887 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17888 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17889 | PATH_SEPARATOR=';' | |
17890 | } | |
17891 | fi | |
17892 | ||
17893 | ||
17894 | # IFS | |
17895 | # We need space, tab and new line, in precisely that order. Quoting is | |
17896 | # there to prevent editors from complaining about space-tab. | |
17897 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17898 | # splitting by setting IFS to empty value.) | |
17899 | IFS=" "" $as_nl" | |
17900 | ||
17901 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 17902 | as_myself= |
5213506e RW |
17903 | case $0 in #(( |
17904 | *[\\/]* ) as_myself=$0 ;; | |
17905 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17906 | for as_dir in $PATH | |
17907 | do | |
17908 | IFS=$as_save_IFS | |
17909 | test -z "$as_dir" && as_dir=. | |
17910 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17911 | done | |
17912 | IFS=$as_save_IFS | |
17913 | ||
17914 | ;; | |
17915 | esac | |
17916 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17917 | # in which case we are not to be found in the path. | |
17918 | if test "x$as_myself" = x; then | |
17919 | as_myself=$0 | |
17920 | fi | |
17921 | if test ! -f "$as_myself"; then | |
17922 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17923 | exit 1 | |
17924 | fi | |
1c710c3c | 17925 | |
5213506e RW |
17926 | # Unset variables that we do not need and which cause bugs (e.g. in |
17927 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17928 | # suppresses any "Segmentation fault" message there. '((' could | |
17929 | # trigger a bug in pdksh 5.2.14. | |
17930 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17931 | do eval test x\${$as_var+set} = xset \ | |
17932 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17933 | done | |
1c710c3c DJ |
17934 | PS1='$ ' |
17935 | PS2='> ' | |
17936 | PS4='+ ' | |
17937 | ||
17938 | # NLS nuisances. | |
5213506e RW |
17939 | LC_ALL=C |
17940 | export LC_ALL | |
17941 | LANGUAGE=C | |
17942 | export LANGUAGE | |
17943 | ||
17944 | # CDPATH. | |
17945 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17946 | ||
17947 | ||
22e05272 JM |
17948 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17949 | # ---------------------------------------- | |
5213506e RW |
17950 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17951 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 17952 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
17953 | as_fn_error () |
17954 | { | |
22e05272 JM |
17955 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17956 | if test "$4"; then | |
17957 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17958 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 17959 | fi |
22e05272 | 17960 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
17961 | as_fn_exit $as_status |
17962 | } # as_fn_error | |
17963 | ||
17964 | ||
17965 | # as_fn_set_status STATUS | |
17966 | # ----------------------- | |
17967 | # Set $? to STATUS, without forking. | |
17968 | as_fn_set_status () | |
17969 | { | |
17970 | return $1 | |
17971 | } # as_fn_set_status | |
17972 | ||
17973 | # as_fn_exit STATUS | |
17974 | # ----------------- | |
17975 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17976 | as_fn_exit () | |
17977 | { | |
17978 | set +e | |
17979 | as_fn_set_status $1 | |
17980 | exit $1 | |
17981 | } # as_fn_exit | |
17982 | ||
17983 | # as_fn_unset VAR | |
17984 | # --------------- | |
17985 | # Portably unset VAR. | |
17986 | as_fn_unset () | |
17987 | { | |
17988 | { eval $1=; unset $1;} | |
17989 | } | |
17990 | as_unset=as_fn_unset | |
17991 | # as_fn_append VAR VALUE | |
17992 | # ---------------------- | |
17993 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17994 | # advantage of any shell optimizations that allow amortized linear growth over | |
17995 | # repeated appends, instead of the typical quadratic growth present in naive | |
17996 | # implementations. | |
17997 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17998 | eval 'as_fn_append () | |
17999 | { | |
18000 | eval $1+=\$2 | |
18001 | }' | |
18002 | else | |
18003 | as_fn_append () | |
18004 | { | |
18005 | eval $1=\$$1\$2 | |
18006 | } | |
18007 | fi # as_fn_append | |
18008 | ||
18009 | # as_fn_arith ARG... | |
18010 | # ------------------ | |
18011 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18012 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18013 | # must be portable across $(()) and expr. | |
18014 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18015 | eval 'as_fn_arith () | |
18016 | { | |
18017 | as_val=$(( $* )) | |
18018 | }' | |
18019 | else | |
18020 | as_fn_arith () | |
18021 | { | |
18022 | as_val=`expr "$@" || test $? -eq 1` | |
18023 | } | |
18024 | fi # as_fn_arith | |
18025 | ||
1c710c3c | 18026 | |
5213506e RW |
18027 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18028 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18029 | as_expr=expr |
18030 | else | |
18031 | as_expr=false | |
18032 | fi | |
18033 | ||
5213506e | 18034 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18035 | as_basename=basename |
18036 | else | |
18037 | as_basename=false | |
18038 | fi | |
18039 | ||
5213506e RW |
18040 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18041 | as_dirname=dirname | |
18042 | else | |
18043 | as_dirname=false | |
18044 | fi | |
1c710c3c | 18045 | |
5213506e | 18046 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18047 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18048 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18049 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18050 | $as_echo X/"$0" | | |
18051 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18052 | s//\1/ | |
18053 | q | |
18054 | } | |
18055 | /^X\/\(\/\/\)$/{ | |
18056 | s//\1/ | |
18057 | q | |
18058 | } | |
18059 | /^X\/\(\/\).*/{ | |
18060 | s//\1/ | |
18061 | q | |
18062 | } | |
18063 | s/.*/./; q'` | |
2aeb72e9 | 18064 | |
2aeb72e9 DD |
18065 | # Avoid depending upon Character Ranges. |
18066 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18067 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18068 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18069 | as_cr_digits='0123456789' | |
18070 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18071 | ||
5213506e RW |
18072 | ECHO_C= ECHO_N= ECHO_T= |
18073 | case `echo -n x` in #((((( | |
18074 | -n*) | |
18075 | case `echo 'xy\c'` in | |
18076 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18077 | xy) ECHO_C='\c';; | |
18078 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18079 | ECHO_T=' ';; | |
18080 | esac;; | |
18081 | *) | |
18082 | ECHO_N='-n';; | |
1c710c3c DJ |
18083 | esac |
18084 | ||
5213506e RW |
18085 | rm -f conf$$ conf$$.exe conf$$.file |
18086 | if test -d conf$$.dir; then | |
18087 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18088 | else |
5213506e RW |
18089 | rm -f conf$$.dir |
18090 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18091 | fi |
5213506e RW |
18092 | if (echo >conf$$.file) 2>/dev/null; then |
18093 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18094 | as_ln_s='ln -s' |
5213506e RW |
18095 | # ... but there are two gotchas: |
18096 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18097 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18098 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18099 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18100 | as_ln_s='cp -pR' |
5213506e RW |
18101 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18102 | as_ln_s=ln | |
18103 | else | |
22e05272 | 18104 | as_ln_s='cp -pR' |
2aeb72e9 | 18105 | fi |
1c710c3c | 18106 | else |
22e05272 | 18107 | as_ln_s='cp -pR' |
1c710c3c | 18108 | fi |
5213506e RW |
18109 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18110 | rmdir conf$$.dir 2>/dev/null | |
18111 | ||
18112 | ||
18113 | # as_fn_mkdir_p | |
18114 | # ------------- | |
18115 | # Create "$as_dir" as a directory, including parents if necessary. | |
18116 | as_fn_mkdir_p () | |
18117 | { | |
18118 | ||
18119 | case $as_dir in #( | |
18120 | -*) as_dir=./$as_dir;; | |
18121 | esac | |
18122 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18123 | as_dirs= | |
18124 | while :; do | |
18125 | case $as_dir in #( | |
18126 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18127 | *) as_qdir=$as_dir;; | |
18128 | esac | |
18129 | as_dirs="'$as_qdir' $as_dirs" | |
18130 | as_dir=`$as_dirname -- "$as_dir" || | |
18131 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18132 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18133 | X"$as_dir" : 'X\(//\)$' \| \ | |
18134 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18135 | $as_echo X"$as_dir" | | |
18136 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18137 | s//\1/ | |
18138 | q | |
18139 | } | |
18140 | /^X\(\/\/\)[^/].*/{ | |
18141 | s//\1/ | |
18142 | q | |
18143 | } | |
18144 | /^X\(\/\/\)$/{ | |
18145 | s//\1/ | |
18146 | q | |
18147 | } | |
18148 | /^X\(\/\).*/{ | |
18149 | s//\1/ | |
18150 | q | |
18151 | } | |
18152 | s/.*/./; q'` | |
18153 | test -d "$as_dir" && break | |
18154 | done | |
18155 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18156 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18157 | |
1c710c3c | 18158 | |
5213506e | 18159 | } # as_fn_mkdir_p |
1c710c3c | 18160 | if mkdir -p . 2>/dev/null; then |
5213506e | 18161 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18162 | else |
18163 | test -d ./-p && rmdir ./-p | |
18164 | as_mkdir_p=false | |
18165 | fi | |
18166 | ||
22e05272 JM |
18167 | |
18168 | # as_fn_executable_p FILE | |
18169 | # ----------------------- | |
18170 | # Test if FILE is an executable regular file. | |
18171 | as_fn_executable_p () | |
18172 | { | |
18173 | test -f "$1" && test -x "$1" | |
18174 | } # as_fn_executable_p | |
18175 | as_test_x='test -x' | |
18176 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18177 | |
18178 | # Sed expression to map a string onto a valid CPP name. | |
18179 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18180 | ||
18181 | # Sed expression to map a string onto a valid variable name. | |
18182 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18183 | ||
18184 | ||
1c710c3c | 18185 | exec 6>&1 |
5213506e RW |
18186 | ## ----------------------------------- ## |
18187 | ## Main body of $CONFIG_STATUS script. ## | |
18188 | ## ----------------------------------- ## | |
18189 | _ASEOF | |
18190 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18191 | ||
18192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18193 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18194 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18195 | # values after options handling. |
18196 | ac_log=" | |
1c710c3c | 18197 | This file was extended by $as_me, which was |
22e05272 | 18198 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18199 | |
18200 | CONFIG_FILES = $CONFIG_FILES | |
18201 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18202 | CONFIG_LINKS = $CONFIG_LINKS | |
18203 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18204 | $ $0 $@ | |
18205 | ||
5213506e RW |
18206 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18207 | " | |
18208 | ||
1c710c3c DJ |
18209 | _ACEOF |
18210 | ||
5213506e RW |
18211 | case $ac_config_files in *" |
18212 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18213 | esac | |
1c710c3c | 18214 | |
2aeb72e9 | 18215 | |
2aeb72e9 | 18216 | |
5213506e RW |
18217 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18218 | # Files that config.status was made for. | |
18219 | config_files="$ac_config_files" | |
1c710c3c | 18220 | |
5213506e | 18221 | _ACEOF |
2aeb72e9 | 18222 | |
5213506e | 18223 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18224 | ac_cs_usage="\ |
5213506e RW |
18225 | \`$as_me' instantiates files and other configuration actions |
18226 | from templates according to the current configuration. Unless the files | |
18227 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18228 | |
5213506e | 18229 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18230 | |
18231 | -h, --help print this help, then exit | |
5213506e | 18232 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18233 | --config print configuration, then exit |
5213506e RW |
18234 | -q, --quiet, --silent |
18235 | do not print progress messages | |
1c710c3c DJ |
18236 | -d, --debug don't remove temporary files |
18237 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18238 | --file=FILE[:TEMPLATE] |
18239 | instantiate the configuration file FILE | |
1c710c3c DJ |
18240 | |
18241 | Configuration files: | |
18242 | $config_files | |
18243 | ||
5213506e | 18244 | Report bugs to the package provider." |
2aeb72e9 | 18245 | |
5213506e RW |
18246 | _ACEOF |
18247 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18248 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18249 | ac_cs_version="\\ |
18250 | config.status | |
22e05272 JM |
18251 | configured by $0, generated by GNU Autoconf 2.69, |
18252 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18253 | |
22e05272 | 18254 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18255 | This config.status script is free software; the Free Software Foundation |
18256 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18257 | |
18258 | ac_pwd='$ac_pwd' | |
18259 | srcdir='$srcdir' | |
18260 | INSTALL='$INSTALL' | |
87264276 | 18261 | AWK='$AWK' |
5213506e | 18262 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18263 | _ACEOF |
18264 | ||
5213506e RW |
18265 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18266 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18267 | ac_need_defaults=: |
18268 | while test $# != 0 | |
a4b9e93e | 18269 | do |
1c710c3c | 18270 | case $1 in |
22e05272 | 18271 | --*=?*) |
5213506e RW |
18272 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18273 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18274 | ac_shift=: |
18275 | ;; | |
22e05272 JM |
18276 | --*=) |
18277 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18278 | ac_optarg= | |
18279 | ac_shift=: | |
18280 | ;; | |
5213506e | 18281 | *) |
1c710c3c DJ |
18282 | ac_option=$1 |
18283 | ac_optarg=$2 | |
18284 | ac_shift=shift | |
18285 | ;; | |
1c710c3c DJ |
18286 | esac |
18287 | ||
18288 | case $ac_option in | |
18289 | # Handling of the options. | |
671aa708 | 18290 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18291 | ac_cs_recheck=: ;; |
5213506e RW |
18292 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18293 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18294 | --config | --confi | --conf | --con | --co | --c ) |
18295 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18296 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18297 | debug=: ;; |
18298 | --file | --fil | --fi | --f ) | |
18299 | $ac_shift | |
5213506e RW |
18300 | case $ac_optarg in |
18301 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18302 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18303 | esac |
18304 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18305 | ac_need_defaults=false;; |
5213506e RW |
18306 | --he | --h | --help | --hel | -h ) |
18307 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18309 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18310 | ac_cs_silent=: ;; | |
18311 | ||
18312 | # This is an error. | |
22e05272 | 18313 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18314 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18315 | |
5213506e RW |
18316 | *) as_fn_append ac_config_targets " $1" |
18317 | ac_need_defaults=false ;; | |
1c710c3c | 18318 | |
0b0dc272 | 18319 | esac |
1c710c3c | 18320 | shift |
0b0dc272 AM |
18321 | done |
18322 | ||
1c710c3c | 18323 | ac_configure_extra_args= |
0b0dc272 | 18324 | |
1c710c3c DJ |
18325 | if $ac_cs_silent; then |
18326 | exec 6>/dev/null | |
18327 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18328 | fi | |
0b0dc272 | 18329 | |
1c710c3c | 18330 | _ACEOF |
5213506e | 18331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 18332 | if \$ac_cs_recheck; then |
22e05272 | 18333 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
18334 | shift |
18335 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18336 | CONFIG_SHELL='$SHELL' | |
18337 | export CONFIG_SHELL | |
18338 | exec "\$@" | |
1c710c3c DJ |
18339 | fi |
18340 | ||
18341 | _ACEOF | |
5213506e RW |
18342 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18343 | exec 5>>config.log | |
18344 | { | |
18345 | echo | |
18346 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18347 | ## Running $as_me. ## | |
18348 | _ASBOX | |
18349 | $as_echo "$ac_log" | |
18350 | } >&5 | |
1c710c3c | 18351 | |
5213506e RW |
18352 | _ACEOF |
18353 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
18354 | # |
18355 | # INIT-COMMANDS | |
18356 | # | |
18357 | extrasub_build="$extrasub_build" | |
18358 | extrasub_host="$extrasub_host" | |
18359 | extrasub_target="$extrasub_target" | |
18360 | ||
5213506e | 18361 | _ACEOF |
1c710c3c | 18362 | |
5213506e | 18363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 18364 | |
5213506e | 18365 | # Handling of arguments. |
1c710c3c DJ |
18366 | for ac_config_target in $ac_config_targets |
18367 | do | |
5213506e RW |
18368 | case $ac_config_target in |
18369 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18370 | ||
22e05272 | 18371 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
18372 | esac |
18373 | done | |
18374 | ||
5213506e | 18375 | |
1c710c3c DJ |
18376 | # If the user did not use the arguments to specify the items to instantiate, |
18377 | # then the envvar interface is used. Set only those that are not. | |
18378 | # We use the long form for the default assignment because of an extremely | |
18379 | # bizarre bug on SunOS 4.1.3. | |
18380 | if $ac_need_defaults; then | |
18381 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18382 | fi | |
18383 | ||
18384 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 18385 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 18386 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
18387 | # Hook for its removal unless debugging. |
18388 | # Note that there is a small window in which the directory will not be cleaned: | |
18389 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
18390 | $debug || |
18391 | { | |
22e05272 | 18392 | tmp= ac_tmp= |
5213506e | 18393 | trap 'exit_status=$? |
22e05272 JM |
18394 | : "${ac_tmp:=$tmp}" |
18395 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
18396 | ' 0 |
18397 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 18398 | } |
1c710c3c DJ |
18399 | # Create a (secure) tmp directory for tmp files. |
18400 | ||
18401 | { | |
5213506e | 18402 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 18403 | test -d "$tmp" |
1c710c3c DJ |
18404 | } || |
18405 | { | |
5213506e RW |
18406 | tmp=./conf$$-$RANDOM |
18407 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
18408 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18409 | ac_tmp=$tmp | |
5213506e RW |
18410 | |
18411 | # Set up the scripts for CONFIG_FILES section. | |
18412 | # No need to generate them if there are no CONFIG_FILES. | |
18413 | # This happens for instance with `./config.status config.h'. | |
18414 | if test -n "$CONFIG_FILES"; then | |
18415 | ||
18416 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18417 | ac_cs_awk_getline=: | |
18418 | ac_cs_awk_pipe_init= | |
18419 | ac_cs_awk_read_file=' | |
18420 | while ((getline aline < (F[key])) > 0) | |
18421 | print(aline) | |
18422 | close(F[key])' | |
18423 | ac_cs_awk_pipe_fini= | |
18424 | else | |
18425 | ac_cs_awk_getline=false | |
18426 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
18427 | ac_cs_awk_read_file=' | |
18428 | print "|#_!!_#|" | |
18429 | print "cat " F[key] " &&" | |
18430 | '$ac_cs_awk_pipe_init | |
18431 | # The final `:' finishes the AND list. | |
18432 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
18433 | fi | |
18434 | ac_cr=`echo X | tr X '\015'` | |
18435 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18436 | # But we know of no other shell where ac_cr would be empty at this | |
18437 | # point, so we can use a bashism as a fallback. | |
18438 | if test "x$ac_cr" = x; then | |
18439 | eval ac_cr=\$\'\\r\' | |
18440 | fi | |
18441 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18442 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 18443 | ac_cs_awk_cr='\\r' |
5213506e RW |
18444 | else |
18445 | ac_cs_awk_cr=$ac_cr | |
18446 | fi | |
18447 | ||
22e05272 | 18448 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
18449 | _ACEOF |
18450 | ||
18451 | # Create commands to substitute file output variables. | |
1c710c3c | 18452 | { |
5213506e | 18453 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 18454 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
18455 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
18456 | echo "_ACAWK" && | |
18457 | echo "_ACEOF" | |
18458 | } >conf$$files.sh && | |
18459 | . ./conf$$files.sh || | |
22e05272 | 18460 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 18461 | rm -f conf$$files.sh |
1c710c3c | 18462 | |
5213506e RW |
18463 | { |
18464 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18465 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18466 | echo "_ACEOF" | |
18467 | } >conf$$subs.sh || | |
22e05272 JM |
18468 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18469 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
18470 | ac_delim='%!_!# ' |
18471 | for ac_last_try in false false false false false :; do | |
18472 | . ./conf$$subs.sh || | |
22e05272 | 18473 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18474 | |
18475 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18476 | if test $ac_delim_n = $ac_delim_num; then | |
18477 | break | |
18478 | elif $ac_last_try; then | |
22e05272 | 18479 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18480 | else |
18481 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18482 | fi | |
18483 | done | |
18484 | rm -f conf$$subs.sh | |
18485 | ||
18486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18487 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 18488 | _ACEOF |
5213506e RW |
18489 | sed -n ' |
18490 | h | |
18491 | s/^/S["/; s/!.*/"]=/ | |
18492 | p | |
18493 | g | |
18494 | s/^[^!]*!// | |
18495 | :repl | |
18496 | t repl | |
18497 | s/'"$ac_delim"'$// | |
18498 | t delim | |
18499 | :nl | |
18500 | h | |
22e05272 | 18501 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18502 | t more1 |
18503 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18504 | p | |
18505 | n | |
18506 | b repl | |
18507 | :more1 | |
18508 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18509 | p | |
18510 | g | |
18511 | s/.\{148\}// | |
18512 | t nl | |
18513 | :delim | |
18514 | h | |
22e05272 | 18515 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18516 | t more2 |
18517 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18518 | p | |
18519 | b | |
18520 | :more2 | |
18521 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18522 | p | |
18523 | g | |
18524 | s/.\{148\}// | |
18525 | t delim | |
18526 | ' <conf$$subs.awk | sed ' | |
18527 | /^[^""]/{ | |
18528 | N | |
18529 | s/\n// | |
18530 | } | |
18531 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18532 | rm -f conf$$subs.awk | |
18533 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18534 | _ACAWK | |
22e05272 | 18535 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
18536 | for (key in S) S_is_set[key] = 1 |
18537 | FS = "\a" | |
18538 | \$ac_cs_awk_pipe_init | |
18539 | } | |
18540 | { | |
18541 | line = $ 0 | |
18542 | nfields = split(line, field, "@") | |
18543 | substed = 0 | |
18544 | len = length(field[1]) | |
18545 | for (i = 2; i < nfields; i++) { | |
18546 | key = field[i] | |
18547 | keylen = length(key) | |
18548 | if (S_is_set[key]) { | |
18549 | value = S[key] | |
18550 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18551 | len += length(value) + length(field[++i]) | |
18552 | substed = 1 | |
18553 | } else | |
18554 | len += 1 + keylen | |
18555 | } | |
18556 | if (nfields == 3 && !substed) { | |
18557 | key = field[2] | |
18558 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
18559 | \$ac_cs_awk_read_file | |
18560 | next | |
18561 | } | |
18562 | } | |
18563 | print line | |
18564 | } | |
18565 | \$ac_cs_awk_pipe_fini | |
18566 | _ACAWK | |
18567 | _ACEOF | |
18568 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18569 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18570 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18571 | else | |
18572 | cat | |
22e05272 JM |
18573 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18574 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
18575 | _ACEOF |
18576 | ||
22e05272 JM |
18577 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18578 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
18579 | # trailing colons and then remove the whole line if VPATH becomes empty |
18580 | # (actually we leave an empty line to preserve line numbers). | |
18581 | if test "x$srcdir" = x.; then | |
22e05272 JM |
18582 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18583 | h | |
18584 | s/// | |
18585 | s/^/:/ | |
18586 | s/[ ]*$/:/ | |
18587 | s/:\$(srcdir):/:/g | |
18588 | s/:\${srcdir}:/:/g | |
18589 | s/:@srcdir@:/:/g | |
18590 | s/^:*// | |
5213506e | 18591 | s/:*$// |
22e05272 JM |
18592 | x |
18593 | s/\(=[ ]*\).*/\1/ | |
18594 | G | |
18595 | s/\n// | |
5213506e RW |
18596 | s/^[^=]*=[ ]*$// |
18597 | }' | |
18598 | fi | |
2aeb72e9 | 18599 | |
5213506e RW |
18600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18601 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 18602 | |
1c710c3c | 18603 | |
5213506e RW |
18604 | eval set X " :F $CONFIG_FILES " |
18605 | shift | |
18606 | for ac_tag | |
18607 | do | |
18608 | case $ac_tag in | |
18609 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18610 | esac | |
18611 | case $ac_mode$ac_tag in | |
18612 | :[FHL]*:*);; | |
22e05272 | 18613 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
18614 | :[FH]-) ac_tag=-:-;; |
18615 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18616 | esac | |
18617 | ac_save_IFS=$IFS | |
18618 | IFS=: | |
18619 | set x $ac_tag | |
18620 | IFS=$ac_save_IFS | |
18621 | shift | |
18622 | ac_file=$1 | |
18623 | shift | |
79c06341 | 18624 | |
5213506e RW |
18625 | case $ac_mode in |
18626 | :L) ac_source=$1;; | |
18627 | :[FH]) | |
18628 | ac_file_inputs= | |
18629 | for ac_f | |
18630 | do | |
18631 | case $ac_f in | |
22e05272 | 18632 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
18633 | *) # Look for the file first in the build tree, then in the source tree |
18634 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18635 | # because $ac_f cannot contain `:'. | |
18636 | test -f "$ac_f" || | |
18637 | case $ac_f in | |
18638 | [\\/$]*) false;; | |
18639 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18640 | esac || | |
22e05272 | 18641 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
18642 | esac |
18643 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18644 | as_fn_append ac_file_inputs " '$ac_f'" | |
18645 | done | |
1c710c3c | 18646 | |
5213506e RW |
18647 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
18648 | # use $as_me), people would be surprised to read: | |
18649 | # /* config.h. Generated by config.status. */ | |
18650 | configure_input='Generated from '` | |
18651 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18652 | `' by configure.' | |
18653 | if test x"$ac_file" != x-; then | |
18654 | configure_input="$ac_file. $configure_input" | |
18655 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18656 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 18657 | fi |
5213506e RW |
18658 | # Neutralize special characters interpreted by sed in replacement strings. |
18659 | case $configure_input in #( | |
18660 | *\&* | *\|* | *\\* ) | |
18661 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18662 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18663 | *) ac_sed_conf_input=$configure_input;; | |
18664 | esac | |
11a67599 | 18665 | |
5213506e | 18666 | case $ac_tag in |
22e05272 JM |
18667 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18668 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
18669 | esac |
18670 | ;; | |
11a67599 ZW |
18671 | esac |
18672 | ||
5213506e | 18673 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
18674 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18675 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18676 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
18677 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18678 | $as_echo X"$ac_file" | | |
18679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18680 | s//\1/ | |
18681 | q | |
18682 | } | |
18683 | /^X\(\/\/\)[^/].*/{ | |
18684 | s//\1/ | |
18685 | q | |
18686 | } | |
18687 | /^X\(\/\/\)$/{ | |
18688 | s//\1/ | |
18689 | q | |
18690 | } | |
18691 | /^X\(\/\).*/{ | |
18692 | s//\1/ | |
18693 | q | |
18694 | } | |
18695 | s/.*/./; q'` | |
18696 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 18697 | ac_builddir=. |
0b0dc272 | 18698 | |
5213506e RW |
18699 | case "$ac_dir" in |
18700 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18701 | *) | |
18702 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18703 | # A ".." for each directory in $ac_dir_suffix. | |
18704 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18705 | case $ac_top_builddir_sub in | |
18706 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18707 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18708 | esac ;; | |
18709 | esac | |
18710 | ac_abs_top_builddir=$ac_pwd | |
18711 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18712 | # for backward compatibility: | |
18713 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
18714 | |
18715 | case $srcdir in | |
5213506e | 18716 | .) # We are building in place. |
1c710c3c | 18717 | ac_srcdir=. |
5213506e RW |
18718 | ac_top_srcdir=$ac_top_builddir_sub |
18719 | ac_abs_top_srcdir=$ac_pwd ;; | |
18720 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 18721 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
18722 | ac_top_srcdir=$srcdir |
18723 | ac_abs_top_srcdir=$srcdir ;; | |
18724 | *) # Relative name. | |
18725 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18726 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18727 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 18728 | esac |
5213506e | 18729 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 18730 | |
0b0dc272 | 18731 | |
5213506e RW |
18732 | case $ac_mode in |
18733 | :F) | |
18734 | # | |
18735 | # CONFIG_FILE | |
18736 | # | |
1c710c3c DJ |
18737 | |
18738 | case $INSTALL in | |
18739 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 18740 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 18741 | esac |
5213506e | 18742 | _ACEOF |
11a67599 | 18743 | |
5213506e RW |
18744 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18745 | # If the template does not know about datarootdir, expand it. | |
18746 | # FIXME: This hack should be removed a few years after 2.60. | |
18747 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18748 | ac_sed_dataroot=' | |
18749 | /datarootdir/ { | |
18750 | p | |
18751 | q | |
18752 | } | |
18753 | /@datadir@/p | |
18754 | /@docdir@/p | |
18755 | /@infodir@/p | |
18756 | /@localedir@/p | |
18757 | /@mandir@/p' | |
18758 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18759 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18760 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18762 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 18763 | _ACEOF |
5213506e RW |
18764 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18765 | ac_datarootdir_hack=' | |
18766 | s&@datadir@&$datadir&g | |
18767 | s&@docdir@&$docdir&g | |
18768 | s&@infodir@&$infodir&g | |
18769 | s&@localedir@&$localedir&g | |
18770 | s&@mandir@&$mandir&g | |
18771 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18772 | esac | |
18773 | _ACEOF | |
18774 | ||
18775 | # Neutralize VPATH when `$srcdir' = `.'. | |
18776 | # Shell code in configure.ac might set extrasub. | |
18777 | # FIXME: do we really want to maintain this feature? | |
18778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18779 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
18780 | $extrasub |
18781 | _ACEOF | |
5213506e | 18782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
18783 | :t |
18784 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
18785 | s|@configure_input@|$ac_sed_conf_input|;t t |
18786 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18787 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18788 | s&@srcdir@&$ac_srcdir&;t t | |
18789 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18790 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18791 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18792 | s&@builddir@&$ac_builddir&;t t | |
18793 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18794 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18795 | s&@INSTALL@&$ac_INSTALL&;t t | |
18796 | $ac_datarootdir_hack | |
18797 | " | |
18798 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
18799 | if $ac_cs_awk_getline; then | |
22e05272 | 18800 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 18801 | else |
22e05272 JM |
18802 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
18803 | fi \ | |
18804 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
18805 | |
18806 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
18807 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18808 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
18809 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 18810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18811 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 18812 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18813 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 18814 | |
22e05272 | 18815 | rm -f "$ac_tmp/stdin" |
5213506e | 18816 | case $ac_file in |
22e05272 JM |
18817 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18818 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 18819 | esac \ |
22e05272 | 18820 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 18821 | ;; |
11a67599 | 18822 | |
11a67599 | 18823 | |
79c06341 | 18824 | |
5213506e RW |
18825 | esac |
18826 | ||
3e54529c RW |
18827 | |
18828 | case $ac_file$ac_mode in | |
18829 | "Makefile":F) sed "$extrasub_build" Makefile | | |
18830 | sed "$extrasub_host" | | |
18831 | sed "$extrasub_target" > mf$$ | |
18832 | mv -f mf$$ Makefile ;; | |
18833 | ||
18834 | esac | |
5213506e RW |
18835 | done # for ac_tag |
18836 | ||
18837 | ||
18838 | as_fn_exit 0 | |
1c710c3c | 18839 | _ACEOF |
1c710c3c DJ |
18840 | ac_clean_files=$ac_clean_files_save |
18841 | ||
5213506e | 18842 | test $ac_write_fail = 0 || |
22e05272 | 18843 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 18844 | |
1c710c3c DJ |
18845 | |
18846 | # configure is writing to config.log, and then calls config.status. | |
18847 | # config.status does its own redirection, appending to config.log. | |
18848 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18849 | # by configure, so config.status won't be able to write to it; its | |
18850 | # output is simply discarded. So we exec the FD to /dev/null, | |
18851 | # effectively closing config.log, so it can be properly (re)opened and | |
18852 | # appended to by config.status. When coming back to configure, we | |
18853 | # need to make the FD available again. | |
18854 | if test "$no_create" != yes; then | |
18855 | ac_cs_success=: | |
18856 | ac_config_status_args= | |
18857 | test "$silent" = yes && | |
18858 | ac_config_status_args="$ac_config_status_args --quiet" | |
18859 | exec 5>/dev/null | |
18860 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18861 | exec 5>>config.log | |
18862 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18863 | # would make configure fail if this is the last instruction. | |
22e05272 | 18864 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
18865 | fi |
18866 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18868 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 18869 | fi |
79c06341 | 18870 |