]>
Commit | Line | Data |
---|---|---|
71ab34df | 1 | #! /bin/sh |
71ab34df | 2 | # Guess values for system-dependent variables and create Makefiles. |
cd9a469c | 3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
71ab34df | 8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b30fcfae | 14 | |
cd9a469c | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
b30fcfae | 31 | fi |
b30fcfae | 32 | |
cd9a469c | 33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
b30fcfae | 79 | fi |
80 | ||
81 | ||
cd9a469c | 82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
b30fcfae | 121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
cd9a469c | 126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
b181f265 | 171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
cd9a469c | 173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b30fcfae | 184 | do |
cd9a469c | 185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b30fcfae | 228 | else |
cd9a469c | 229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
b30fcfae | 233 | fi |
cd9a469c | 234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
b30fcfae | 263 | |
cd9a469c | 264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
cd9a469c | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
cd9a469c | 386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
b30fcfae | 391 | |
cd9a469c | 392 | as_me=`$as_basename -- "$0" || |
b30fcfae | 393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
b30fcfae | 410 | |
5084f823 | 411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
570af75a | 417 | |
b30fcfae | 418 | |
cd9a469c | 419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
b30fcfae | 428 | sed ' |
cd9a469c | 429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
b30fcfae | 433 | N |
cd9a469c | 434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b30fcfae | 436 | t loop |
cd9a469c | 437 | s/-\n.*// |
b30fcfae | 438 | ' >$as_me.lineno && |
cd9a469c | 439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b30fcfae | 441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
cd9a469c | 444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
b30fcfae | 446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
cd9a469c | 450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
b30fcfae | 461 | esac |
462 | ||
cd9a469c | 463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 466 | else |
cd9a469c | 467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 469 | fi |
cd9a469c | 470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 472 | as_ln_s='ln -s' |
cd9a469c | 473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
5084f823 | 483 | fi |
b30fcfae | 484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
cd9a469c | 487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
b30fcfae | 489 | |
490 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
cd9a469c | 497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
a83ffacf | 519 | |
b30fcfae | 520 | # Sed expression to map a string onto a valid CPP name. |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
cd9a469c | 527 | exec 7<&0 </dev/null 6>&1 |
b30fcfae | 528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
b30fcfae | 534 | # |
535 | # Initializations. | |
536 | # | |
71ab34df | 537 | ac_default_prefix=/usr/local |
cd9a469c | 538 | ac_clean_files= |
b30fcfae | 539 | ac_config_libobj_dir=. |
cd9a469c | 540 | LIBOBJS= |
b30fcfae | 541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
5084f823 | 545 | |
b30fcfae | 546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
cd9a469c | 552 | PACKAGE_URL= |
b30fcfae | 553 | |
554 | ac_unique_file="move-if-change" | |
cd9a469c | 555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
ef3c41c7 | 559 | POSTSTAGE1_CONFIGURE_FLAGS |
cd9a469c | 560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
574 | RANLIB_FOR_TARGET | |
575 | OBJDUMP_FOR_TARGET | |
576 | NM_FOR_TARGET | |
577 | LIPO_FOR_TARGET | |
578 | LD_FOR_TARGET | |
579 | DLLTOOL_FOR_TARGET | |
580 | AS_FOR_TARGET | |
581 | AR_FOR_TARGET | |
5ff5b630 | 582 | GOC_FOR_TARGET |
cd9a469c | 583 | GFORTRAN_FOR_TARGET |
584 | GCJ_FOR_TARGET | |
585 | GCC_FOR_TARGET | |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
588 | OBJDUMP | |
589 | OBJCOPY | |
590 | WINDMC | |
591 | WINDRES | |
592 | STRIP | |
593 | RANLIB | |
594 | NM | |
595 | LIPO | |
596 | LD | |
597 | DLLTOOL | |
598 | AS | |
599 | AR | |
600 | RUNTEST | |
601 | EXPECT | |
602 | MAKEINFO | |
603 | FLEX | |
604 | LEX | |
605 | M4 | |
606 | BISON | |
607 | YACC | |
cd9a469c | 608 | WINDRES_FOR_BUILD |
609 | WINDMC_FOR_BUILD | |
610 | RANLIB_FOR_BUILD | |
611 | NM_FOR_BUILD | |
612 | LD_FOR_BUILD | |
613 | LDFLAGS_FOR_BUILD | |
5ff5b630 | 614 | GOC_FOR_BUILD |
cd9a469c | 615 | GFORTRAN_FOR_BUILD |
616 | GCJ_FOR_BUILD | |
617 | DLLTOOL_FOR_BUILD | |
618 | CXX_FOR_BUILD | |
619 | CXXFLAGS_FOR_BUILD | |
620 | CFLAGS_FOR_BUILD | |
621 | CC_FOR_BUILD | |
622 | AS_FOR_BUILD | |
623 | AR_FOR_BUILD | |
1fda3360 | 624 | target_configdirs |
cd9a469c | 625 | configdirs |
cd9a469c | 626 | build_configdirs |
cd9a469c | 627 | INSTALL_GDB_TK |
628 | GDB_TK | |
629 | CONFIGURE_GDB_TK | |
630 | build_tooldir | |
631 | tooldir | |
632 | GCC_SHLIB_SUBDIR | |
633 | RPATH_ENVVAR | |
372a3f1e | 634 | target_configargs |
635 | host_configargs | |
636 | build_configargs | |
719faf1c | 637 | BUILD_CONFIG |
ed9516f5 | 638 | LDFLAGS_FOR_TARGET |
cd9a469c | 639 | CXXFLAGS_FOR_TARGET |
640 | CFLAGS_FOR_TARGET | |
641 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
642 | SYSROOT_CFLAGS_FOR_TARGET | |
643 | stage1_languages | |
7bfefa9d | 644 | extra_host_libiberty_configure_flags |
cd9a469c | 645 | clooginc |
646 | clooglibs | |
647 | pplinc | |
648 | ppllibs | |
cd9a469c | 649 | poststage1_ldflags |
d6dfe18a | 650 | poststage1_libs |
cd9a469c | 651 | stage1_libs |
652 | stage1_ldflags | |
653 | extra_mpc_mpfr_configure_flags | |
654 | extra_mpc_gmp_configure_flags | |
655 | extra_mpfr_configure_flags | |
656 | gmpinc | |
657 | gmplibs | |
658 | do_compare | |
659 | GNATMAKE | |
660 | GNATBIND | |
661 | ac_ct_CXX | |
662 | CXXFLAGS | |
663 | CXX | |
664 | OBJEXT | |
665 | EXEEXT | |
666 | ac_ct_CC | |
667 | CPPFLAGS | |
668 | LDFLAGS | |
669 | CFLAGS | |
670 | CC | |
d7e52ac9 | 671 | EXTRA_CONFIGARGS_LIBJAVA |
cd9a469c | 672 | target_subdir |
673 | host_subdir | |
674 | build_subdir | |
675 | build_libsubdir | |
b181f265 | 676 | AWK |
677 | SED | |
cd9a469c | 678 | LN_S |
679 | LN | |
680 | INSTALL_DATA | |
681 | INSTALL_SCRIPT | |
682 | INSTALL_PROGRAM | |
683 | target_os | |
684 | target_vendor | |
685 | target_cpu | |
686 | target | |
687 | host_os | |
688 | host_vendor | |
689 | host_cpu | |
690 | host | |
691 | target_noncanonical | |
692 | host_noncanonical | |
693 | build_noncanonical | |
694 | build_os | |
695 | build_vendor | |
696 | build_cpu | |
697 | build | |
698 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
699 | target_alias | |
700 | host_alias | |
701 | build_alias | |
702 | LIBS | |
703 | ECHO_T | |
704 | ECHO_N | |
705 | ECHO_C | |
706 | DEFS | |
707 | mandir | |
708 | localedir | |
709 | libdir | |
710 | psdir | |
711 | pdfdir | |
712 | dvidir | |
713 | htmldir | |
714 | infodir | |
715 | docdir | |
716 | oldincludedir | |
717 | includedir | |
718 | localstatedir | |
719 | sharedstatedir | |
720 | sysconfdir | |
721 | datadir | |
722 | datarootdir | |
723 | libexecdir | |
724 | sbindir | |
725 | bindir | |
726 | program_transform_name | |
727 | prefix | |
728 | exec_prefix | |
729 | PACKAGE_URL | |
730 | PACKAGE_BUGREPORT | |
731 | PACKAGE_STRING | |
732 | PACKAGE_VERSION | |
733 | PACKAGE_TARNAME | |
734 | PACKAGE_NAME | |
735 | PATH_SEPARATOR | |
736 | SHELL' | |
737 | ac_subst_files='serialization_dependencies | |
738 | host_makefile_frag | |
739 | target_makefile_frag | |
740 | alphaieee_frag | |
741 | ospace_frag' | |
742 | ac_user_opts=' | |
743 | enable_option_checking | |
744 | with_build_libsubdir | |
745 | enable_gold | |
1e369e5f | 746 | enable_ld |
d9d975ae | 747 | enable_libquadmath |
748 | enable_libquadmath_support | |
cd9a469c | 749 | enable_libada |
750 | enable_libssp | |
d7e52ac9 | 751 | enable_static_libjava |
6c59dfa4 | 752 | enable_bootstrap |
cd9a469c | 753 | enable_build_with_cxx |
ef3c41c7 | 754 | enable_build_poststage1_with_cxx |
cd9a469c | 755 | with_mpc |
756 | with_mpc_include | |
757 | with_mpc_lib | |
758 | with_mpfr_dir | |
759 | with_mpfr | |
760 | with_mpfr_include | |
761 | with_mpfr_lib | |
762 | with_gmp_dir | |
763 | with_gmp | |
764 | with_gmp_include | |
765 | with_gmp_lib | |
766 | with_host_libstdcxx | |
767 | with_stage1_ldflags | |
768 | with_stage1_libs | |
cd9a469c | 769 | with_boot_libs |
d6dfe18a | 770 | with_boot_ldflags |
cd9a469c | 771 | with_ppl |
772 | with_ppl_include | |
773 | with_ppl_lib | |
774 | enable_ppl_version_check | |
775 | with_cloog | |
776 | with_cloog_include | |
777 | with_cloog_lib | |
8a0fe290 | 778 | enable_cloog_backend |
cd9a469c | 779 | enable_cloog_version_check |
7bfefa9d | 780 | enable_lto |
cd9a469c | 781 | enable_stage1_languages |
782 | enable_objc_gc | |
783 | with_build_sysroot | |
784 | with_debug_prefix_map | |
a2059f7a | 785 | with_build_config |
cd9a469c | 786 | enable_serial_configure |
787 | with_build_time_tools | |
788 | enable_maintainer_mode | |
789 | enable_stage1_checking | |
790 | enable_werror | |
cd9a469c | 791 | ' |
792 | ac_precious_vars='build_alias | |
793 | host_alias | |
794 | target_alias | |
795 | CC | |
796 | CFLAGS | |
797 | LDFLAGS | |
798 | LIBS | |
799 | CPPFLAGS | |
800 | CXX | |
801 | CXXFLAGS | |
802 | CCC | |
372a3f1e | 803 | build_configargs |
804 | host_configargs | |
805 | target_configargs | |
cd9a469c | 806 | AR |
807 | AS | |
808 | DLLTOOL | |
809 | LD | |
810 | LIPO | |
811 | NM | |
812 | RANLIB | |
813 | STRIP | |
814 | WINDRES | |
815 | WINDMC | |
816 | OBJCOPY | |
817 | OBJDUMP | |
818 | CC_FOR_TARGET | |
819 | CXX_FOR_TARGET | |
820 | GCC_FOR_TARGET | |
821 | GCJ_FOR_TARGET | |
822 | GFORTRAN_FOR_TARGET | |
5ff5b630 | 823 | GOC_FOR_TARGET |
cd9a469c | 824 | AR_FOR_TARGET |
825 | AS_FOR_TARGET | |
826 | DLLTOOL_FOR_TARGET | |
827 | LD_FOR_TARGET | |
828 | LIPO_FOR_TARGET | |
829 | NM_FOR_TARGET | |
830 | OBJDUMP_FOR_TARGET | |
831 | RANLIB_FOR_TARGET | |
832 | STRIP_FOR_TARGET | |
833 | WINDRES_FOR_TARGET | |
834 | WINDMC_FOR_TARGET' | |
835 | ||
71ab34df | 836 | |
837 | # Initialize some variables set by options. | |
b30fcfae | 838 | ac_init_help= |
839 | ac_init_version=false | |
cd9a469c | 840 | ac_unrecognized_opts= |
841 | ac_unrecognized_sep= | |
71ab34df | 842 | # The variables have the same names as the options, with |
843 | # dashes changed to underlines. | |
b30fcfae | 844 | cache_file=/dev/null |
71ab34df | 845 | exec_prefix=NONE |
71ab34df | 846 | no_create= |
71ab34df | 847 | no_recursion= |
848 | prefix=NONE | |
849 | program_prefix=NONE | |
850 | program_suffix=NONE | |
851 | program_transform_name=s,x,x, | |
852 | silent= | |
853 | site= | |
854 | srcdir= | |
71ab34df | 855 | verbose= |
856 | x_includes=NONE | |
857 | x_libraries=NONE | |
b30fcfae | 858 | |
859 | # Installation directory options. | |
860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
861 | # and all the variables that are supposed to be based on exec_prefix | |
862 | # by default will actually change. | |
863 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 864 | # (The list follows the same order as the GNU Coding Standards.) |
71ab34df | 865 | bindir='${exec_prefix}/bin' |
866 | sbindir='${exec_prefix}/sbin' | |
867 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 868 | datarootdir='${prefix}/share' |
869 | datadir='${datarootdir}' | |
71ab34df | 870 | sysconfdir='${prefix}/etc' |
871 | sharedstatedir='${prefix}/com' | |
872 | localstatedir='${prefix}/var' | |
71ab34df | 873 | includedir='${prefix}/include' |
874 | oldincludedir='/usr/include' | |
cd9a469c | 875 | docdir='${datarootdir}/doc/${PACKAGE}' |
876 | infodir='${datarootdir}/info' | |
877 | htmldir='${docdir}' | |
878 | dvidir='${docdir}' | |
879 | pdfdir='${docdir}' | |
880 | psdir='${docdir}' | |
881 | libdir='${exec_prefix}/lib' | |
882 | localedir='${datarootdir}/locale' | |
883 | mandir='${datarootdir}/man' | |
a8298541 | 884 | |
71ab34df | 885 | ac_prev= |
cd9a469c | 886 | ac_dashdash= |
71ab34df | 887 | for ac_option |
888 | do | |
71ab34df | 889 | # If the previous option needs an argument, assign it. |
890 | if test -n "$ac_prev"; then | |
cd9a469c | 891 | eval $ac_prev=\$ac_option |
71ab34df | 892 | ac_prev= |
893 | continue | |
894 | fi | |
a8298541 | 895 | |
cd9a469c | 896 | case $ac_option in |
897 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
898 | *) ac_optarg=yes ;; | |
899 | esac | |
71ab34df | 900 | |
901 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
902 | ||
cd9a469c | 903 | case $ac_dashdash$ac_option in |
904 | --) | |
905 | ac_dashdash=yes ;; | |
71ab34df | 906 | |
907 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
908 | ac_prev=bindir ;; | |
909 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b30fcfae | 910 | bindir=$ac_optarg ;; |
71ab34df | 911 | |
912 | -build | --build | --buil | --bui | --bu) | |
b30fcfae | 913 | ac_prev=build_alias ;; |
71ab34df | 914 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b30fcfae | 915 | build_alias=$ac_optarg ;; |
71ab34df | 916 | |
917 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
918 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
919 | ac_prev=cache_file ;; | |
920 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
921 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b30fcfae | 922 | cache_file=$ac_optarg ;; |
923 | ||
924 | --config-cache | -C) | |
925 | cache_file=config.cache ;; | |
71ab34df | 926 | |
cd9a469c | 927 | -datadir | --datadir | --datadi | --datad) |
71ab34df | 928 | ac_prev=datadir ;; |
cd9a469c | 929 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b30fcfae | 930 | datadir=$ac_optarg ;; |
71ab34df | 931 | |
cd9a469c | 932 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
933 | | --dataroo | --dataro | --datar) | |
934 | ac_prev=datarootdir ;; | |
935 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
936 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
937 | datarootdir=$ac_optarg ;; | |
938 | ||
71ab34df | 939 | -disable-* | --disable-*) |
cd9a469c | 940 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
71ab34df | 941 | # Reject names that are not valid shell variable names. |
cd9a469c | 942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
943 | as_fn_error "invalid feature name: $ac_useropt" | |
944 | ac_useropt_orig=$ac_useropt | |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=no ;; | |
954 | ||
955 | -docdir | --docdir | --docdi | --doc | --do) | |
956 | ac_prev=docdir ;; | |
957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
958 | docdir=$ac_optarg ;; | |
959 | ||
960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
961 | ac_prev=dvidir ;; | |
962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
963 | dvidir=$ac_optarg ;; | |
71ab34df | 964 | |
965 | -enable-* | --enable-*) | |
cd9a469c | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
71ab34df | 967 | # Reject names that are not valid shell variable names. |
cd9a469c | 968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
969 | as_fn_error "invalid feature name: $ac_useropt" | |
970 | ac_useropt_orig=$ac_useropt | |
971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
972 | case $ac_user_opts in | |
973 | *" | |
974 | "enable_$ac_useropt" | |
975 | "*) ;; | |
976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
977 | ac_unrecognized_sep=', ';; | |
5084f823 | 978 | esac |
cd9a469c | 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
71ab34df | 980 | |
981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
983 | | --exec | --exe | --ex) | |
984 | ac_prev=exec_prefix ;; | |
985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
987 | | --exec=* | --exe=* | --ex=*) | |
b30fcfae | 988 | exec_prefix=$ac_optarg ;; |
71ab34df | 989 | |
990 | -gas | --gas | --ga | --g) | |
991 | # Obsolete; use --with-gas. | |
992 | with_gas=yes ;; | |
993 | ||
b30fcfae | 994 | -help | --help | --hel | --he | -h) |
995 | ac_init_help=long ;; | |
996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
997 | ac_init_help=recursive ;; | |
998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
999 | ac_init_help=short ;; | |
71ab34df | 1000 | |
1001 | -host | --host | --hos | --ho) | |
b30fcfae | 1002 | ac_prev=host_alias ;; |
71ab34df | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
b30fcfae | 1004 | host_alias=$ac_optarg ;; |
71ab34df | 1005 | |
cd9a469c | 1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1007 | ac_prev=htmldir ;; | |
1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1009 | | --ht=*) | |
1010 | htmldir=$ac_optarg ;; | |
1011 | ||
71ab34df | 1012 | -includedir | --includedir | --includedi | --included | --include \ |
1013 | | --includ | --inclu | --incl | --inc) | |
1014 | ac_prev=includedir ;; | |
1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b30fcfae | 1017 | includedir=$ac_optarg ;; |
71ab34df | 1018 | |
1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1020 | ac_prev=infodir ;; | |
1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b30fcfae | 1022 | infodir=$ac_optarg ;; |
71ab34df | 1023 | |
1024 | -libdir | --libdir | --libdi | --libd) | |
1025 | ac_prev=libdir ;; | |
1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b30fcfae | 1027 | libdir=$ac_optarg ;; |
71ab34df | 1028 | |
1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1030 | | --libexe | --libex | --libe) | |
1031 | ac_prev=libexecdir ;; | |
1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1033 | | --libexe=* | --libex=* | --libe=*) | |
b30fcfae | 1034 | libexecdir=$ac_optarg ;; |
71ab34df | 1035 | |
cd9a469c | 1036 | -localedir | --localedir | --localedi | --localed | --locale) |
1037 | ac_prev=localedir ;; | |
1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1039 | localedir=$ac_optarg ;; | |
1040 | ||
71ab34df | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
71ab34df | 1043 | ac_prev=localstatedir ;; |
1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b30fcfae | 1046 | localstatedir=$ac_optarg ;; |
71ab34df | 1047 | |
1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1049 | ac_prev=mandir ;; | |
1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b30fcfae | 1051 | mandir=$ac_optarg ;; |
71ab34df | 1052 | |
1053 | -nfp | --nfp | --nf) | |
1054 | # Obsolete; use --without-fp. | |
1055 | with_fp=no ;; | |
1056 | ||
1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b30fcfae | 1058 | | --no-cr | --no-c | -n) |
71ab34df | 1059 | no_create=yes ;; |
1060 | ||
1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1063 | no_recursion=yes ;; | |
1064 | ||
1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1067 | | --oldin | --oldi | --old | --ol | --o) | |
1068 | ac_prev=oldincludedir ;; | |
1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b30fcfae | 1072 | oldincludedir=$ac_optarg ;; |
71ab34df | 1073 | |
1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1075 | ac_prev=prefix ;; | |
1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b30fcfae | 1077 | prefix=$ac_optarg ;; |
71ab34df | 1078 | |
1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1080 | | --program-pre | --program-pr | --program-p) | |
1081 | ac_prev=program_prefix ;; | |
1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b30fcfae | 1084 | program_prefix=$ac_optarg ;; |
71ab34df | 1085 | |
1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1087 | | --program-suf | --program-su | --program-s) | |
1088 | ac_prev=program_suffix ;; | |
1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b30fcfae | 1091 | program_suffix=$ac_optarg ;; |
71ab34df | 1092 | |
1093 | -program-transform-name | --program-transform-name \ | |
1094 | | --program-transform-nam | --program-transform-na \ | |
1095 | | --program-transform-n | --program-transform- \ | |
1096 | | --program-transform | --program-transfor \ | |
1097 | | --program-transfo | --program-transf \ | |
1098 | | --program-trans | --program-tran \ | |
1099 | | --progr-tra | --program-tr | --program-t) | |
1100 | ac_prev=program_transform_name ;; | |
1101 | -program-transform-name=* | --program-transform-name=* \ | |
1102 | | --program-transform-nam=* | --program-transform-na=* \ | |
1103 | | --program-transform-n=* | --program-transform-=* \ | |
1104 | | --program-transform=* | --program-transfor=* \ | |
1105 | | --program-transfo=* | --program-transf=* \ | |
1106 | | --program-trans=* | --program-tran=* \ | |
1107 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b30fcfae | 1108 | program_transform_name=$ac_optarg ;; |
71ab34df | 1109 | |
cd9a469c | 1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1111 | ac_prev=pdfdir ;; | |
1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1113 | pdfdir=$ac_optarg ;; | |
1114 | ||
1115 | -psdir | --psdir | --psdi | --psd | --ps) | |
1116 | ac_prev=psdir ;; | |
1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1118 | psdir=$ac_optarg ;; | |
1119 | ||
71ab34df | 1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1121 | | -silent | --silent | --silen | --sile | --sil) | |
1122 | silent=yes ;; | |
1123 | ||
1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1125 | ac_prev=sbindir ;; | |
1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1127 | | --sbi=* | --sb=*) | |
b30fcfae | 1128 | sbindir=$ac_optarg ;; |
71ab34df | 1129 | |
1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1132 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1133 | | --sha | --sh) | |
1134 | ac_prev=sharedstatedir ;; | |
1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1138 | | --sha=* | --sh=*) | |
b30fcfae | 1139 | sharedstatedir=$ac_optarg ;; |
71ab34df | 1140 | |
1141 | -site | --site | --sit) | |
1142 | ac_prev=site ;; | |
1143 | -site=* | --site=* | --sit=*) | |
b30fcfae | 1144 | site=$ac_optarg ;; |
71ab34df | 1145 | |
1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1147 | ac_prev=srcdir ;; | |
1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b30fcfae | 1149 | srcdir=$ac_optarg ;; |
71ab34df | 1150 | |
1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1152 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1153 | ac_prev=sysconfdir ;; | |
1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b30fcfae | 1156 | sysconfdir=$ac_optarg ;; |
71ab34df | 1157 | |
1158 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b30fcfae | 1159 | ac_prev=target_alias ;; |
71ab34df | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b30fcfae | 1161 | target_alias=$ac_optarg ;; |
71ab34df | 1162 | |
1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1164 | verbose=yes ;; | |
1165 | ||
b30fcfae | 1166 | -version | --version | --versio | --versi | --vers | -V) |
1167 | ac_init_version=: ;; | |
71ab34df | 1168 | |
1169 | -with-* | --with-*) | |
cd9a469c | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
71ab34df | 1171 | # Reject names that are not valid shell variable names. |
cd9a469c | 1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1173 | as_fn_error "invalid package name: $ac_useropt" | |
1174 | ac_useropt_orig=$ac_useropt | |
1175 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1176 | case $ac_user_opts in | |
1177 | *" | |
1178 | "with_$ac_useropt" | |
1179 | "*) ;; | |
1180 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1181 | ac_unrecognized_sep=', ';; | |
5084f823 | 1182 | esac |
cd9a469c | 1183 | eval with_$ac_useropt=\$ac_optarg ;; |
71ab34df | 1184 | |
1185 | -without-* | --without-*) | |
cd9a469c | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
71ab34df | 1187 | # Reject names that are not valid shell variable names. |
cd9a469c | 1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1189 | as_fn_error "invalid package name: $ac_useropt" | |
1190 | ac_useropt_orig=$ac_useropt | |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
1198 | esac | |
1199 | eval with_$ac_useropt=no ;; | |
71ab34df | 1200 | |
1201 | --x) | |
1202 | # Obsolete; use --with-x. | |
1203 | with_x=yes ;; | |
1204 | ||
1205 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1206 | | --x-incl | --x-inc | --x-in | --x-i) | |
1207 | ac_prev=x_includes ;; | |
1208 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1209 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b30fcfae | 1210 | x_includes=$ac_optarg ;; |
71ab34df | 1211 | |
1212 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1213 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1214 | ac_prev=x_libraries ;; | |
1215 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1216 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b30fcfae | 1217 | x_libraries=$ac_optarg ;; |
71ab34df | 1218 | |
cd9a469c | 1219 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1220 | Try \`$0 --help' for more information." | |
71ab34df | 1221 | ;; |
1222 | ||
b30fcfae | 1223 | *=*) |
1224 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1225 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1226 | case $ac_envvar in #( |
1227 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1228 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1229 | esac | |
1230 | eval $ac_envvar=\$ac_optarg | |
b30fcfae | 1231 | export $ac_envvar ;; |
1232 | ||
71ab34df | 1233 | *) |
b30fcfae | 1234 | # FIXME: should be removed in autoconf 3.0. |
cd9a469c | 1235 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b30fcfae | 1236 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1237 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b30fcfae | 1238 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
71ab34df | 1239 | ;; |
1240 | ||
1241 | esac | |
1242 | done | |
1243 | ||
1244 | if test -n "$ac_prev"; then | |
b30fcfae | 1245 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
cd9a469c | 1246 | as_fn_error "missing argument to $ac_option" |
ae48753c | 1247 | fi |
ae48753c | 1248 | |
cd9a469c | 1249 | if test -n "$ac_unrecognized_opts"; then |
1250 | case $enable_option_checking in | |
1251 | no) ;; | |
1252 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1253 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
5084f823 | 1254 | esac |
cd9a469c | 1255 | fi |
5084f823 | 1256 | |
cd9a469c | 1257 | # Check all directory arguments for consistency. |
1258 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1259 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1260 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1261 | libdir localedir mandir | |
5084f823 | 1262 | do |
cd9a469c | 1263 | eval ac_val=\$$ac_var |
1264 | # Remove trailing slashes. | |
1265 | case $ac_val in | |
1266 | */ ) | |
1267 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1268 | eval $ac_var=\$ac_val;; | |
1269 | esac | |
1270 | # Be sure to have absolute directory names. | |
5084f823 | 1271 | case $ac_val in |
cd9a469c | 1272 | [\\/$]* | ?:[\\/]* ) continue;; |
1273 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
71ab34df | 1274 | esac |
cd9a469c | 1275 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
71ab34df | 1276 | done |
1277 | ||
b30fcfae | 1278 | # There might be people who depend on the old broken behavior: `$host' |
1279 | # used to hold the argument of --host etc. | |
1280 | # FIXME: To remove some day. | |
1281 | build=$build_alias | |
1282 | host=$host_alias | |
1283 | target=$target_alias | |
a83ffacf | 1284 | |
b30fcfae | 1285 | # FIXME: To remove some day. |
1286 | if test "x$host_alias" != x; then | |
1287 | if test "x$build_alias" = x; then | |
1288 | cross_compiling=maybe | |
cd9a469c | 1289 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b30fcfae | 1290 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1291 | elif test "x$build_alias" != "x$host_alias"; then | |
1292 | cross_compiling=yes | |
1293 | fi | |
1294 | fi | |
1295 | ||
1296 | ac_tool_prefix= | |
1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1298 | ||
1299 | test "$silent" = yes && exec 6>/dev/null | |
71ab34df | 1300 | |
71ab34df | 1301 | |
cd9a469c | 1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1303 | ac_ls_di=`ls -di .` && | |
1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1305 | as_fn_error "working directory cannot be determined" | |
1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1307 | as_fn_error "pwd does not report name of working directory" | |
1308 | ||
1309 | ||
71ab34df | 1310 | # Find the source files, if location was not specified. |
1311 | if test -z "$srcdir"; then | |
1312 | ac_srcdir_defaulted=yes | |
cd9a469c | 1313 | # Try the directory containing this script, then the parent directory. |
1314 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1317 | X"$as_myself" : 'X\(//\)$' \| \ | |
1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1319 | $as_echo X"$as_myself" | | |
1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)[^/].*/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)$/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\).*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | s/.*/./; q'` | |
71ab34df | 1337 | srcdir=$ac_confdir |
cd9a469c | 1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
71ab34df | 1339 | srcdir=.. |
1340 | fi | |
1341 | else | |
1342 | ac_srcdir_defaulted=no | |
1343 | fi | |
cd9a469c | 1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1346 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1347 | fi | |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1349 | ac_abs_confdir=`( | |
1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1351 | pwd)` | |
1352 | # When building in place, set srcdir=. | |
1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1354 | srcdir=. | |
1355 | fi | |
1356 | # Remove unnecessary trailing slashes from srcdir. | |
1357 | # Double slashes in file names in object file debugging info | |
1358 | # mess up M-x gdb in Emacs. | |
1359 | case $srcdir in | |
1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1361 | esac | |
13d2f2b2 | 1362 | case $srcdir in |
1363 | *" "*) | |
1364 | as_fn_error "path to source, $srcdir, contains spaces" | |
1365 | ;; | |
1366 | esac | |
d2d2630b | 1367 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1368 | ||
cd9a469c | 1369 | for ac_var in $ac_precious_vars; do |
1370 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1371 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1372 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1373 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1374 | done | |
b30fcfae | 1375 | |
1376 | # | |
1377 | # Report the --help message. | |
1378 | # | |
1379 | if test "$ac_init_help" = "long"; then | |
1380 | # Omit some internal or obsolete options to make the list less imposing. | |
1381 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1382 | cat <<_ACEOF | |
1383 | \`configure' configures this package to adapt to many kinds of systems. | |
1384 | ||
1385 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1386 | ||
1387 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1388 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1389 | ||
1390 | Defaults for the options are specified in brackets. | |
1391 | ||
1392 | Configuration: | |
1393 | -h, --help display this help and exit | |
1394 | --help=short display options specific to this package | |
1395 | --help=recursive display the short help of all the included packages | |
1396 | -V, --version display version information and exit | |
1397 | -q, --quiet, --silent do not print \`checking...' messages | |
1398 | --cache-file=FILE cache test results in FILE [disabled] | |
1399 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1400 | -n, --no-create do not create output files | |
1401 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1402 | ||
b30fcfae | 1403 | Installation directories: |
1404 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1405 | [$ac_default_prefix] |
b30fcfae | 1406 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1407 | [PREFIX] |
b30fcfae | 1408 | |
1409 | By default, \`make install' will install all the files in | |
1410 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1411 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1412 | for instance \`--prefix=\$HOME'. | |
1413 | ||
1414 | For better control, use the options below. | |
1415 | ||
1416 | Fine tuning of the installation directories: | |
cd9a469c | 1417 | --bindir=DIR user executables [EPREFIX/bin] |
1418 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1419 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1420 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1421 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1422 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1423 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1424 | --includedir=DIR C header files [PREFIX/include] | |
1425 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1426 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1427 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1428 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1429 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1430 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1431 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1432 | --htmldir=DIR html documentation [DOCDIR] | |
1433 | --dvidir=DIR dvi documentation [DOCDIR] | |
1434 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1435 | --psdir=DIR ps documentation [DOCDIR] | |
b30fcfae | 1436 | _ACEOF |
1437 | ||
1438 | cat <<\_ACEOF | |
1439 | ||
1440 | Program names: | |
1441 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1442 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1443 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1444 | ||
1445 | System types: | |
1446 | --build=BUILD configure for building on BUILD [guessed] | |
1447 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1448 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1449 | _ACEOF | |
1450 | fi | |
1451 | ||
1452 | if test -n "$ac_init_help"; then | |
1453 | ||
1454 | cat <<\_ACEOF | |
1455 | ||
1456 | Optional Features: | |
cd9a469c | 1457 | --disable-option-checking ignore unrecognized --enable/--with options |
b30fcfae | 1458 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1459 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1e369e5f | 1460 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
8747a938 | 1461 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
d9d975ae | 1462 | --disable-libquadmath do not build libquadmath directory |
1463 | --disable-libquadmath-support | |
1464 | disable libquadmath support for Fortran | |
09c2d953 | 1465 | --enable-libada build libada directory |
1466 | --enable-libssp build libssp directory | |
d7e52ac9 | 1467 | --enable-static-libjava[=ARG] |
1468 | build static libjava [default=no] | |
6c59dfa4 | 1469 | --enable-bootstrap enable bootstrapping [yes if native build] |
7ab76cec | 1470 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
ef3c41c7 | 1471 | --enable-build-poststage1-with-cxx |
1472 | build stages 2 and 3 with C++, not C | |
8747a938 | 1473 | --disable-ppl-version-check |
1474 | disable check for PPL version | |
8cc5f86b | 1475 | --enable-cloog-backend[=BACKEND] |
1476 | set the CLooG BACKEND used to either isl, ppl or | |
1477 | ppl-legacy (default) | |
a3c81e03 | 1478 | --disable-cloog-version-check |
1479 | disable check for CLooG version | |
7bfefa9d | 1480 | --enable-lto enable link time optimization support |
8747a938 | 1481 | --enable-stage1-languages[=all] |
1482 | choose additional languages to build during stage1. | |
1483 | Mostly useful for compiler development | |
1484 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1485 | Objective-C runtime | |
09c2d953 | 1486 | --enable-serial-[{host,target,build}-]configure |
8747a938 | 1487 | force sequential configuration of sub-packages for |
1488 | the host, target or build machine, or all | |
1489 | sub-packages | |
1490 | --enable-maintainer-mode | |
1491 | enable make rules and dependencies not useful (and | |
1492 | sometimes confusing) to the casual installer | |
1493 | --enable-stage1-checking[=all] | |
1494 | choose additional checking for stage1 of the | |
1495 | compiler | |
b30fcfae | 1496 | --enable-werror enable -Werror in bootstrap stage2 and later |
1497 | ||
1498 | Optional Packages: | |
1499 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1500 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1501 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
8747a938 | 1502 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1503 | Equivalent to --with-mpc-include=PATH/include plus | |
1504 | --with-mpc-lib=PATH/lib | |
1505 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1506 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
09c2d953 | 1507 | --with-mpfr-dir=PATH this option has been REMOVED |
1508 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
8747a938 | 1509 | Equivalent to --with-mpfr-include=PATH/include plus |
1510 | --with-mpfr-lib=PATH/lib | |
b30fcfae | 1511 | --with-mpfr-include=PATH |
09c2d953 | 1512 | specify directory for installed MPFR include files |
1513 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1514 | --with-gmp-dir=PATH this option has been REMOVED | |
8747a938 | 1515 | --with-gmp=PATH specify prefix directory for the installed GMP |
1516 | package. Equivalent to | |
1517 | --with-gmp-include=PATH/include plus | |
1518 | --with-gmp-lib=PATH/lib | |
09c2d953 | 1519 | --with-gmp-include=PATH specify directory for installed GMP include files |
1520 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
8747a938 | 1521 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1522 | linking with PPL | |
1523 | --with-stage1-ldflags=FLAGS | |
1524 | linker flags for stage1 | |
1525 | --with-stage1-libs=LIBS libraries for stage1 | |
1526 | --with-boot-libs=LIBS libraries for stage2 and later | |
1527 | --with-boot-ldflags=FLAGS | |
1528 | linker flags for stage2 and later | |
1529 | --with-ppl=PATH specify prefix directory for the installed PPL | |
1530 | package. Equivalent to | |
1531 | --with-ppl-include=PATH/include plus | |
1532 | --with-ppl-lib=PATH/lib | |
1533 | --with-ppl-include=PATH specify directory for installed PPL include files | |
1534 | --with-ppl-lib=PATH specify directory for the installed PPL library | |
a3c81e03 | 1535 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1536 | package. Equivalent to | |
1537 | --with-cloog-include=PATH/include plus | |
1538 | --with-cloog-lib=PATH/lib | |
1539 | --with-cloog-include=PATH | |
1540 | Specify directory for installed CLooG include files | |
1541 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1542 | library | |
09c2d953 | 1543 | --with-build-sysroot=SYSROOT |
b30fcfae | 1544 | use sysroot as the system root during the build |
5f1f2de5 | 1545 | --with-debug-prefix-map='A=B C=D ...' |
8747a938 | 1546 | map A to B, C to D ... in debug information |
1547 | --with-build-config='NAME NAME2...' | |
1548 | use config/NAME.mk build configuration | |
09c2d953 | 1549 | --with-build-time-tools=PATH |
b30fcfae | 1550 | use given path to find target tools during the build |
b30fcfae | 1551 | |
1552 | Some influential environment variables: | |
1553 | CC C compiler command | |
1554 | CFLAGS C compiler flags | |
1555 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1556 | nonstandard directory <lib dir> | |
cd9a469c | 1557 | LIBS libraries to pass to the linker, e.g. -l<library> |
1558 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1559 | you have headers in a nonstandard directory <include dir> | |
eae5b2bc | 1560 | CXX C++ compiler command |
1561 | CXXFLAGS C++ compiler flags | |
372a3f1e | 1562 | build_configargs |
1563 | additional configure arguments for build directories | |
1564 | host_configargs | |
1565 | additional configure arguments for host directories | |
1566 | target_configargs | |
1567 | additional configure arguments for target directories | |
95a05732 | 1568 | AR AR for the host |
1569 | AS AS for the host | |
1570 | DLLTOOL DLLTOOL for the host | |
1571 | LD LD for the host | |
1572 | LIPO LIPO for the host | |
1573 | NM NM for the host | |
1574 | RANLIB RANLIB for the host | |
1575 | STRIP STRIP for the host | |
1576 | WINDRES WINDRES for the host | |
75d6a0a9 | 1577 | WINDMC WINDMC for the host |
95a05732 | 1578 | OBJCOPY OBJCOPY for the host |
1579 | OBJDUMP OBJDUMP for the host | |
1580 | CC_FOR_TARGET | |
1581 | CC for the target | |
1582 | CXX_FOR_TARGET | |
1583 | CXX for the target | |
1584 | GCC_FOR_TARGET | |
1585 | GCC for the target | |
1586 | GCJ_FOR_TARGET | |
1587 | GCJ for the target | |
1588 | GFORTRAN_FOR_TARGET | |
1589 | GFORTRAN for the target | |
5ff5b630 | 1590 | GOC_FOR_TARGET |
1591 | GOC for the target | |
95a05732 | 1592 | AR_FOR_TARGET |
1593 | AR for the target | |
1594 | AS_FOR_TARGET | |
1595 | AS for the target | |
1596 | DLLTOOL_FOR_TARGET | |
1597 | DLLTOOL for the target | |
1598 | LD_FOR_TARGET | |
1599 | LD for the target | |
1600 | LIPO_FOR_TARGET | |
1601 | LIPO for the target | |
1602 | NM_FOR_TARGET | |
1603 | NM for the target | |
1604 | OBJDUMP_FOR_TARGET | |
1605 | OBJDUMP for the target | |
1606 | RANLIB_FOR_TARGET | |
1607 | RANLIB for the target | |
1608 | STRIP_FOR_TARGET | |
1609 | STRIP for the target | |
1610 | WINDRES_FOR_TARGET | |
1611 | WINDRES for the target | |
75d6a0a9 | 1612 | WINDMC_FOR_TARGET |
1613 | WINDMC for the target | |
b30fcfae | 1614 | |
1615 | Use these variables to override the choices made by `configure' or to help | |
1616 | it to find libraries and programs with nonstandard names/locations. | |
1617 | ||
cd9a469c | 1618 | Report bugs to the package provider. |
b30fcfae | 1619 | _ACEOF |
cd9a469c | 1620 | ac_status=$? |
b30fcfae | 1621 | fi |
1622 | ||
1623 | if test "$ac_init_help" = "recursive"; then | |
1624 | # If there are subdirs, report their specific --help. | |
b30fcfae | 1625 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1626 | test -d "$ac_dir" || |
1627 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1628 | continue | |
b30fcfae | 1629 | ac_builddir=. |
1630 | ||
cd9a469c | 1631 | case "$ac_dir" in |
1632 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1633 | *) | |
1634 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1635 | # A ".." for each directory in $ac_dir_suffix. | |
1636 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1637 | case $ac_top_builddir_sub in | |
1638 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1639 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1640 | esac ;; | |
1641 | esac | |
1642 | ac_abs_top_builddir=$ac_pwd | |
1643 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1644 | # for backward compatibility: | |
1645 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 1646 | |
1647 | case $srcdir in | |
cd9a469c | 1648 | .) # We are building in place. |
b30fcfae | 1649 | ac_srcdir=. |
cd9a469c | 1650 | ac_top_srcdir=$ac_top_builddir_sub |
1651 | ac_abs_top_srcdir=$ac_pwd ;; | |
1652 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 1653 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1654 | ac_top_srcdir=$srcdir |
1655 | ac_abs_top_srcdir=$srcdir ;; | |
1656 | *) # Relative name. | |
1657 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1658 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1659 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5084f823 | 1660 | esac |
cd9a469c | 1661 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1662 | ||
1663 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1664 | # Check for guested configure. | |
1665 | if test -f "$ac_srcdir/configure.gnu"; then | |
1666 | echo && | |
1667 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1668 | elif test -f "$ac_srcdir/configure"; then | |
1669 | echo && | |
1670 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b30fcfae | 1671 | else |
cd9a469c | 1672 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1673 | fi || ac_status=$? | |
1674 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b30fcfae | 1675 | done |
1676 | fi | |
1677 | ||
cd9a469c | 1678 | test -n "$ac_init_help" && exit $ac_status |
b30fcfae | 1679 | if $ac_init_version; then |
1680 | cat <<\_ACEOF | |
cd9a469c | 1681 | configure |
1682 | generated by GNU Autoconf 2.64 | |
b30fcfae | 1683 | |
cd9a469c | 1684 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 1685 | This configure script is free software; the Free Software Foundation |
1686 | gives unlimited permission to copy, distribute and modify it. | |
1687 | _ACEOF | |
cd9a469c | 1688 | exit |
a83ffacf | 1689 | fi |
cd9a469c | 1690 | |
1691 | ## ------------------------ ## | |
1692 | ## Autoconf initialization. ## | |
1693 | ## ------------------------ ## | |
1694 | ||
1695 | # ac_fn_c_try_compile LINENO | |
1696 | # -------------------------- | |
1697 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1698 | ac_fn_c_try_compile () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | rm -f conftest.$ac_objext | |
1702 | if { { ac_try="$ac_compile" | |
1703 | case "(($ac_try" in | |
1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1705 | *) ac_try_echo=$ac_try;; | |
1706 | esac | |
1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1708 | $as_echo "$ac_try_echo"; } >&5 | |
1709 | (eval "$ac_compile") 2>conftest.err | |
1710 | ac_status=$? | |
1711 | if test -s conftest.err; then | |
1712 | grep -v '^ *+' conftest.err >conftest.er1 | |
1713 | cat conftest.er1 >&5 | |
1714 | mv -f conftest.er1 conftest.err | |
1715 | fi | |
1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1717 | test $ac_status = 0; } && { | |
1718 | test -z "$ac_c_werror_flag" || | |
1719 | test ! -s conftest.err | |
1720 | } && test -s conftest.$ac_objext; then : | |
1721 | ac_retval=0 | |
1722 | else | |
1723 | $as_echo "$as_me: failed program was:" >&5 | |
1724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1725 | ||
1726 | ac_retval=1 | |
1727 | fi | |
1728 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1729 | return $ac_retval | |
1730 | ||
1731 | } # ac_fn_c_try_compile | |
1732 | ||
1733 | # ac_fn_cxx_try_compile LINENO | |
1734 | # ---------------------------- | |
1735 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1736 | ac_fn_cxx_try_compile () | |
1737 | { | |
1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1739 | rm -f conftest.$ac_objext | |
1740 | if { { ac_try="$ac_compile" | |
1741 | case "(($ac_try" in | |
1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1743 | *) ac_try_echo=$ac_try;; | |
1744 | esac | |
1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1746 | $as_echo "$ac_try_echo"; } >&5 | |
1747 | (eval "$ac_compile") 2>conftest.err | |
1748 | ac_status=$? | |
1749 | if test -s conftest.err; then | |
1750 | grep -v '^ *+' conftest.err >conftest.er1 | |
1751 | cat conftest.er1 >&5 | |
1752 | mv -f conftest.er1 conftest.err | |
1753 | fi | |
1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1755 | test $ac_status = 0; } && { | |
1756 | test -z "$ac_cxx_werror_flag" || | |
1757 | test ! -s conftest.err | |
1758 | } && test -s conftest.$ac_objext; then : | |
1759 | ac_retval=0 | |
1760 | else | |
1761 | $as_echo "$as_me: failed program was:" >&5 | |
1762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1763 | ||
1764 | ac_retval=1 | |
1765 | fi | |
1766 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1767 | return $ac_retval | |
1768 | ||
1769 | } # ac_fn_cxx_try_compile | |
1770 | ||
1771 | # ac_fn_c_try_link LINENO | |
1772 | # ----------------------- | |
1773 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1774 | ac_fn_c_try_link () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1778 | if { { ac_try="$ac_link" | |
1779 | case "(($ac_try" in | |
1780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 | *) ac_try_echo=$ac_try;; | |
1782 | esac | |
1783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 | $as_echo "$ac_try_echo"; } >&5 | |
1785 | (eval "$ac_link") 2>conftest.err | |
1786 | ac_status=$? | |
1787 | if test -s conftest.err; then | |
1788 | grep -v '^ *+' conftest.err >conftest.er1 | |
1789 | cat conftest.er1 >&5 | |
1790 | mv -f conftest.er1 conftest.err | |
1791 | fi | |
1792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1793 | test $ac_status = 0; } && { | |
1794 | test -z "$ac_c_werror_flag" || | |
1795 | test ! -s conftest.err | |
1796 | } && test -s conftest$ac_exeext && { | |
1797 | test "$cross_compiling" = yes || | |
1798 | $as_test_x conftest$ac_exeext | |
1799 | }; then : | |
1800 | ac_retval=0 | |
1801 | else | |
1802 | $as_echo "$as_me: failed program was:" >&5 | |
1803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1804 | ||
1805 | ac_retval=1 | |
1806 | fi | |
1807 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1808 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1809 | # interfere with the next link command; also delete a directory that is | |
1810 | # left behind by Apple's compiler. We do this before executing the actions. | |
1811 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1812 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1813 | return $ac_retval | |
1814 | ||
1815 | } # ac_fn_c_try_link | |
1816 | cat >config.log <<_ACEOF | |
b30fcfae | 1817 | This file contains any messages produced by compilers while |
1818 | running configure, to aid debugging if configure makes a mistake. | |
1819 | ||
1820 | It was created by $as_me, which was | |
cd9a469c | 1821 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 1822 | |
1823 | $ $0 $@ | |
1824 | ||
1825 | _ACEOF | |
cd9a469c | 1826 | exec 5>>config.log |
b30fcfae | 1827 | { |
1828 | cat <<_ASUNAME | |
1829 | ## --------- ## | |
1830 | ## Platform. ## | |
1831 | ## --------- ## | |
1832 | ||
1833 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1834 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1835 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1836 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1837 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1838 | ||
1839 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1840 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1841 | ||
1842 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1843 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1844 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
cd9a469c | 1845 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b30fcfae | 1846 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1847 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1848 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1849 | ||
1850 | _ASUNAME | |
1851 | ||
1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1853 | for as_dir in $PATH | |
1854 | do | |
1855 | IFS=$as_save_IFS | |
1856 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 1857 | $as_echo "PATH: $as_dir" |
1858 | done | |
1859 | IFS=$as_save_IFS | |
b30fcfae | 1860 | |
1861 | } >&5 | |
1862 | ||
1863 | cat >&5 <<_ACEOF | |
1864 | ||
1865 | ||
1866 | ## ----------- ## | |
1867 | ## Core tests. ## | |
1868 | ## ----------- ## | |
1869 | ||
1870 | _ACEOF | |
1871 | ||
1872 | ||
1873 | # Keep a trace of the command line. | |
1874 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1875 | # Strip out --silent because we don't want to record it for future runs. | |
1876 | # Also quote any args containing shell meta-characters. | |
1877 | # Make two passes to allow for proper duplicate-argument suppression. | |
1878 | ac_configure_args= | |
1879 | ac_configure_args0= | |
1880 | ac_configure_args1= | |
b30fcfae | 1881 | ac_must_keep_next=false |
1882 | for ac_pass in 1 2 | |
1883 | do | |
1884 | for ac_arg | |
1885 | do | |
1886 | case $ac_arg in | |
1887 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1888 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1889 | | -silent | --silent | --silen | --sile | --sil) | |
1890 | continue ;; | |
cd9a469c | 1891 | *\'*) |
1892 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b30fcfae | 1893 | esac |
1894 | case $ac_pass in | |
cd9a469c | 1895 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b30fcfae | 1896 | 2) |
cd9a469c | 1897 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b30fcfae | 1898 | if test $ac_must_keep_next = true; then |
1899 | ac_must_keep_next=false # Got value, back to normal. | |
1900 | else | |
1901 | case $ac_arg in | |
1902 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1903 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1904 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1905 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1906 | case "$ac_configure_args0 " in | |
1907 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1908 | esac | |
1909 | ;; | |
1910 | -* ) ac_must_keep_next=true ;; | |
1911 | esac | |
1912 | fi | |
cd9a469c | 1913 | as_fn_append ac_configure_args " '$ac_arg'" |
b30fcfae | 1914 | ;; |
1915 | esac | |
1916 | done | |
1917 | done | |
cd9a469c | 1918 | { ac_configure_args0=; unset ac_configure_args0;} |
1919 | { ac_configure_args1=; unset ac_configure_args1;} | |
b30fcfae | 1920 | |
1921 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1922 | # config.log. We remove comments because anyway the quotes in there | |
1923 | # would cause problems or look ugly. | |
cd9a469c | 1924 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1925 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b30fcfae | 1926 | trap 'exit_status=$? |
1927 | # Save into config.log some information that might help in debugging. | |
1928 | { | |
1929 | echo | |
1930 | ||
1931 | cat <<\_ASBOX | |
1932 | ## ---------------- ## | |
1933 | ## Cache variables. ## | |
1934 | ## ---------------- ## | |
1935 | _ASBOX | |
1936 | echo | |
1937 | # The following way of writing the cache mishandles newlines in values, | |
cd9a469c | 1938 | ( |
1939 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1940 | eval ac_val=\$$ac_var | |
1941 | case $ac_val in #( | |
1942 | *${as_nl}*) | |
1943 | case $ac_var in #( | |
1944 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1945 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1946 | esac | |
1947 | case $ac_var in #( | |
1948 | _ | IFS | as_nl) ;; #( | |
1949 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1950 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1951 | esac ;; | |
1952 | esac | |
1953 | done | |
b30fcfae | 1954 | (set) 2>&1 | |
cd9a469c | 1955 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1956 | *${as_nl}ac_space=\ *) | |
b30fcfae | 1957 | sed -n \ |
cd9a469c | 1958 | "s/'\''/'\''\\\\'\'''\''/g; |
1959 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1960 | ;; #( | |
b30fcfae | 1961 | *) |
cd9a469c | 1962 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 1963 | ;; |
cd9a469c | 1964 | esac | |
1965 | sort | |
1966 | ) | |
b30fcfae | 1967 | echo |
1968 | ||
1969 | cat <<\_ASBOX | |
1970 | ## ----------------- ## | |
1971 | ## Output variables. ## | |
1972 | ## ----------------- ## | |
1973 | _ASBOX | |
1974 | echo | |
1975 | for ac_var in $ac_subst_vars | |
1976 | do | |
cd9a469c | 1977 | eval ac_val=\$$ac_var |
1978 | case $ac_val in | |
1979 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1980 | esac | |
1981 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 1982 | done | sort |
1983 | echo | |
1984 | ||
1985 | if test -n "$ac_subst_files"; then | |
1986 | cat <<\_ASBOX | |
cd9a469c | 1987 | ## ------------------- ## |
1988 | ## File substitutions. ## | |
1989 | ## ------------------- ## | |
b30fcfae | 1990 | _ASBOX |
1991 | echo | |
1992 | for ac_var in $ac_subst_files | |
1993 | do | |
cd9a469c | 1994 | eval ac_val=\$$ac_var |
1995 | case $ac_val in | |
1996 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1997 | esac | |
1998 | $as_echo "$ac_var='\''$ac_val'\''" | |
b30fcfae | 1999 | done | sort |
2000 | echo | |
2001 | fi | |
2002 | ||
2003 | if test -s confdefs.h; then | |
2004 | cat <<\_ASBOX | |
2005 | ## ----------- ## | |
2006 | ## confdefs.h. ## | |
2007 | ## ----------- ## | |
2008 | _ASBOX | |
2009 | echo | |
cd9a469c | 2010 | cat confdefs.h |
b30fcfae | 2011 | echo |
2012 | fi | |
2013 | test "$ac_signal" != 0 && | |
cd9a469c | 2014 | $as_echo "$as_me: caught signal $ac_signal" |
2015 | $as_echo "$as_me: exit $exit_status" | |
b30fcfae | 2016 | } >&5 |
cd9a469c | 2017 | rm -f core *.core core.conftest.* && |
2018 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b30fcfae | 2019 | exit $exit_status |
cd9a469c | 2020 | ' 0 |
b30fcfae | 2021 | for ac_signal in 1 2 13 15; do |
cd9a469c | 2022 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b30fcfae | 2023 | done |
2024 | ac_signal=0 | |
2025 | ||
2026 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
cd9a469c | 2027 | rm -f -r conftest* confdefs.h |
2028 | ||
2029 | $as_echo "/* confdefs.h */" > confdefs.h | |
b30fcfae | 2030 | |
2031 | # Predefined preprocessor variables. | |
2032 | ||
2033 | cat >>confdefs.h <<_ACEOF | |
2034 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2035 | _ACEOF | |
2036 | ||
b30fcfae | 2037 | cat >>confdefs.h <<_ACEOF |
2038 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2039 | _ACEOF | |
2040 | ||
b30fcfae | 2041 | cat >>confdefs.h <<_ACEOF |
2042 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2043 | _ACEOF | |
a83ffacf | 2044 | |
b30fcfae | 2045 | cat >>confdefs.h <<_ACEOF |
2046 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2047 | _ACEOF | |
2048 | ||
b30fcfae | 2049 | cat >>confdefs.h <<_ACEOF |
2050 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2051 | _ACEOF | |
2052 | ||
cd9a469c | 2053 | cat >>confdefs.h <<_ACEOF |
2054 | #define PACKAGE_URL "$PACKAGE_URL" | |
2055 | _ACEOF | |
2056 | ||
b30fcfae | 2057 | |
2058 | # Let the site file select an alternate cache file if it wants to. | |
cd9a469c | 2059 | # Prefer an explicitly selected file to automatically selected ones. |
2060 | ac_site_file1=NONE | |
2061 | ac_site_file2=NONE | |
2062 | if test -n "$CONFIG_SITE"; then | |
2063 | ac_site_file1=$CONFIG_SITE | |
2064 | elif test "x$prefix" != xNONE; then | |
2065 | ac_site_file1=$prefix/share/config.site | |
2066 | ac_site_file2=$prefix/etc/config.site | |
2067 | else | |
2068 | ac_site_file1=$ac_default_prefix/share/config.site | |
2069 | ac_site_file2=$ac_default_prefix/etc/config.site | |
71ab34df | 2070 | fi |
cd9a469c | 2071 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2072 | do | |
2073 | test "x$ac_site_file" = xNONE && continue | |
71ab34df | 2074 | if test -r "$ac_site_file"; then |
cd9a469c | 2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2076 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b30fcfae | 2077 | sed 's/^/| /' "$ac_site_file" >&5 |
71ab34df | 2078 | . "$ac_site_file" |
2079 | fi | |
2080 | done | |
2081 | ||
2082 | if test -r "$cache_file"; then | |
b30fcfae | 2083 | # Some versions of bash will fail to source /dev/null (special |
2084 | # files actually), so we avoid doing that. | |
2085 | if test -f "$cache_file"; then | |
cd9a469c | 2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2087 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b30fcfae | 2088 | case $cache_file in |
cd9a469c | 2089 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2090 | *) . "./$cache_file";; | |
b30fcfae | 2091 | esac |
2092 | fi | |
71ab34df | 2093 | else |
cd9a469c | 2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2095 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b30fcfae | 2096 | >$cache_file |
2097 | fi | |
2098 | ||
2099 | # Check that the precious variables saved in the cache have kept the same | |
2100 | # value. | |
2101 | ac_cache_corrupted=false | |
cd9a469c | 2102 | for ac_var in $ac_precious_vars; do |
b30fcfae | 2103 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2104 | eval ac_new_set=\$ac_env_${ac_var}_set | |
cd9a469c | 2105 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2106 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b30fcfae | 2107 | case $ac_old_set,$ac_new_set in |
2108 | set,) | |
cd9a469c | 2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2110 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b30fcfae | 2111 | ac_cache_corrupted=: ;; |
2112 | ,set) | |
cd9a469c | 2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2114 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b30fcfae | 2115 | ac_cache_corrupted=: ;; |
2116 | ,);; | |
2117 | *) | |
2118 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
cd9a469c | 2119 | # differences in whitespace do not lead to failure. |
2120 | ac_old_val_w=`echo x $ac_old_val` | |
2121 | ac_new_val_w=`echo x $ac_new_val` | |
2122 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2124 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2125 | ac_cache_corrupted=: | |
2126 | else | |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2128 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2129 | eval $ac_var=\$ac_old_val | |
2130 | fi | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2132 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2134 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b30fcfae | 2135 | fi;; |
2136 | esac | |
2137 | # Pass precious variables to config.status. | |
2138 | if test "$ac_new_set" = set; then | |
2139 | case $ac_new_val in | |
cd9a469c | 2140 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b30fcfae | 2141 | *) ac_arg=$ac_var=$ac_new_val ;; |
2142 | esac | |
2143 | case " $ac_configure_args " in | |
2144 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
cd9a469c | 2145 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b30fcfae | 2146 | esac |
2147 | fi | |
2148 | done | |
2149 | if $ac_cache_corrupted; then | |
cd9a469c | 2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2153 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2154 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
71ab34df | 2155 | fi |
cd9a469c | 2156 | ## -------------------- ## |
2157 | ## Main body of script. ## | |
2158 | ## -------------------- ## | |
71ab34df | 2159 | |
5084f823 | 2160 | ac_ext=c |
2161 | ac_cpp='$CPP $CPPFLAGS' | |
2162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2165 | ||
b30fcfae | 2166 | |
2167 | ||
2168 | ||
b30fcfae | 2169 | |
2170 | ||
cd2f3773 | 2171 | |
b30fcfae | 2172 | |
4e8a889d | 2173 | |
2174 | progname=$0 | |
2175 | # if PWD already has a value, it is probably wrong. | |
2176 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2177 | ||
2178 | # Export original configure arguments for use by sub-configures. | |
2179 | # Quote arguments with shell meta charatcers. | |
2180 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2181 | set -- "$progname" "$@" | |
2182 | for ac_arg | |
2183 | do | |
2184 | case "$ac_arg" in | |
2185 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2186 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2187 | # if the argument is of the form -foo=baz, quote the baz part only | |
2188 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2189 | *) ;; | |
2190 | esac | |
2191 | # Add the quoted argument to the list. | |
2192 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2193 | done | |
2194 | if test "$silent" = yes; then | |
2195 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2196 | fi | |
2197 | # Remove the initial space we just introduced and, as these will be | |
2198 | # expanded by make, quote '$'. | |
2199 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2200 | ||
b30fcfae | 2201 | |
2202 | # Find the build, host, and target systems. | |
71ab34df | 2203 | ac_aux_dir= |
cd9a469c | 2204 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2205 | for ac_t in install-sh install.sh shtool; do | |
2206 | if test -f "$ac_dir/$ac_t"; then | |
2207 | ac_aux_dir=$ac_dir | |
2208 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2209 | break 2 | |
2210 | fi | |
2211 | done | |
71ab34df | 2212 | done |
2213 | if test -z "$ac_aux_dir"; then | |
cd9a469c | 2214 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
71ab34df | 2215 | fi |
cd9a469c | 2216 | |
2217 | # These three variables are undocumented and unsupported, | |
2218 | # and are intended to be withdrawn in a future Autoconf release. | |
2219 | # They can cause serious problems if a builder's source tree is in a directory | |
2220 | # whose full name contains unusual characters. | |
2221 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2222 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2223 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2224 | ||
71ab34df | 2225 | |
b30fcfae | 2226 | # Make sure we can run config.sub. |
cd9a469c | 2227 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2228 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2229 | ||
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2231 | $as_echo_n "checking build system type... " >&6; } | |
2232 | if test "${ac_cv_build+set}" = set; then : | |
2233 | $as_echo_n "(cached) " >&6 | |
2234 | else | |
2235 | ac_build_alias=$build_alias | |
2236 | test "x$ac_build_alias" = x && | |
2237 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2238 | test "x$ac_build_alias" = x && | |
2239 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2240 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2241 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2242 | ||
2243 | fi | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2245 | $as_echo "$ac_cv_build" >&6; } | |
2246 | case $ac_cv_build in | |
2247 | *-*-*) ;; | |
2248 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2249 | esac | |
b30fcfae | 2250 | build=$ac_cv_build |
cd9a469c | 2251 | ac_save_IFS=$IFS; IFS='-' |
2252 | set x $ac_cv_build | |
2253 | shift | |
2254 | build_cpu=$1 | |
2255 | build_vendor=$2 | |
2256 | shift; shift | |
2257 | # Remember, the first character of IFS is used to create $*, | |
2258 | # except with old shells: | |
2259 | build_os=$* | |
2260 | IFS=$ac_save_IFS | |
2261 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
71ab34df | 2262 | |
71ab34df | 2263 | |
b30fcfae | 2264 | case ${build_alias} in |
2265 | "") build_noncanonical=${build} ;; | |
2266 | *) build_noncanonical=${build_alias} ;; | |
ae48753c | 2267 | esac |
2268 | ||
2269 | ||
ae48753c | 2270 | |
b30fcfae | 2271 | case ${host_alias} in |
2272 | "") host_noncanonical=${build_noncanonical} ;; | |
2273 | *) host_noncanonical=${host_alias} ;; | |
ae48753c | 2274 | esac |
2275 | ||
ae48753c | 2276 | |
b30fcfae | 2277 | |
2278 | case ${target_alias} in | |
2279 | "") target_noncanonical=${host_noncanonical} ;; | |
2280 | *) target_noncanonical=${target_alias} ;; | |
ae48753c | 2281 | esac |
2282 | ||
ae48753c | 2283 | |
b30fcfae | 2284 | |
2285 | ||
2286 | test "$host_noncanonical" = "$target_noncanonical" && | |
71ab34df | 2287 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2288 | NONENONEs,x,x, && | |
b30fcfae | 2289 | program_transform_name=s,y,y, |
ae48753c | 2290 | |
cd9a469c | 2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2292 | $as_echo_n "checking host system type... " >&6; } | |
2293 | if test "${ac_cv_host+set}" = set; then : | |
2294 | $as_echo_n "(cached) " >&6 | |
ae48753c | 2295 | else |
cd9a469c | 2296 | if test "x$host_alias" = x; then |
2297 | ac_cv_host=$ac_cv_build | |
2298 | else | |
2299 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2300 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2301 | fi | |
b30fcfae | 2302 | |
ae48753c | 2303 | fi |
cd9a469c | 2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2305 | $as_echo "$ac_cv_host" >&6; } | |
2306 | case $ac_cv_host in | |
2307 | *-*-*) ;; | |
2308 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2309 | esac | |
b30fcfae | 2310 | host=$ac_cv_host |
cd9a469c | 2311 | ac_save_IFS=$IFS; IFS='-' |
2312 | set x $ac_cv_host | |
2313 | shift | |
2314 | host_cpu=$1 | |
2315 | host_vendor=$2 | |
2316 | shift; shift | |
2317 | # Remember, the first character of IFS is used to create $*, | |
2318 | # except with old shells: | |
2319 | host_os=$* | |
2320 | IFS=$ac_save_IFS | |
2321 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5084f823 | 2322 | |
2323 | ||
cd9a469c | 2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2325 | $as_echo_n "checking target system type... " >&6; } | |
2326 | if test "${ac_cv_target+set}" = set; then : | |
2327 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2328 | else |
cd9a469c | 2329 | if test "x$target_alias" = x; then |
2330 | ac_cv_target=$ac_cv_host | |
2331 | else | |
2332 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2333 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2334 | fi | |
b30fcfae | 2335 | |
2336 | fi | |
cd9a469c | 2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2338 | $as_echo "$ac_cv_target" >&6; } | |
2339 | case $ac_cv_target in | |
2340 | *-*-*) ;; | |
2341 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2342 | esac | |
b30fcfae | 2343 | target=$ac_cv_target |
cd9a469c | 2344 | ac_save_IFS=$IFS; IFS='-' |
2345 | set x $ac_cv_target | |
2346 | shift | |
2347 | target_cpu=$1 | |
2348 | target_vendor=$2 | |
2349 | shift; shift | |
2350 | # Remember, the first character of IFS is used to create $*, | |
2351 | # except with old shells: | |
2352 | target_os=$* | |
2353 | IFS=$ac_save_IFS | |
2354 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b30fcfae | 2355 | |
2356 | ||
2357 | # The aliases save the names the user supplied, while $host etc. | |
2358 | # will get canonicalized. | |
2359 | test -n "$target_alias" && | |
2360 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2361 | NONENONEs,x,x, && | |
2362 | program_prefix=${target_alias}- | |
cd9a469c | 2363 | |
71ab34df | 2364 | test "$program_prefix" != NONE && |
cd9a469c | 2365 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
71ab34df | 2366 | # Use a double $ so make ignores it. |
2367 | test "$program_suffix" != NONE && | |
cd9a469c | 2368 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2369 | # Double any \ or $. | |
b30fcfae | 2370 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 2371 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2372 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ae48753c | 2373 | |
71ab34df | 2374 | |
2375 | ||
450e6c84 | 2376 | # Get 'install' or 'install-sh' and its variants. |
2377 | # Find a good install program. We prefer a C program (faster), | |
2378 | # so one script is as good as another. But avoid the broken or | |
2379 | # incompatible versions: | |
2380 | # SysV /etc/install, /usr/sbin/install | |
2381 | # SunOS /usr/etc/install | |
2382 | # IRIX /sbin/install | |
2383 | # AIX /bin/install | |
b30fcfae | 2384 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
450e6c84 | 2385 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2386 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2387 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
b30fcfae | 2388 | # OS/2's system install, which has a completely different semantic |
450e6c84 | 2389 | # ./install, which can be erroneously created by make from ./install.sh. |
82eaf560 | 2390 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2392 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
450e6c84 | 2393 | if test -z "$INSTALL"; then |
cd9a469c | 2394 | if test "${ac_cv_path_install+set}" = set; then : |
2395 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 2396 | else |
2397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2398 | for as_dir in $PATH | |
2399 | do | |
2400 | IFS=$as_save_IFS | |
2401 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2402 | # Account for people who put trailing slashes in PATH elements. |
2403 | case $as_dir/ in #(( | |
2404 | ./ | .// | /[cC]/* | \ | |
b30fcfae | 2405 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2406 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b30fcfae | 2407 | /usr/ucb/* ) ;; |
2408 | *) | |
2409 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2410 | # Don't use installbsd from OSF since it installs stuff as root | |
2411 | # by default. | |
2412 | for ac_prog in ginstall scoinst install; do | |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2414 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
450e6c84 | 2415 | if test $ac_prog = install && |
b30fcfae | 2416 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
450e6c84 | 2417 | # AIX install. It has an incompatible calling convention. |
2418 | : | |
b30fcfae | 2419 | elif test $ac_prog = install && |
2420 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2421 | # program-specific install script used by HP pwplus--don't use. | |
2422 | : | |
450e6c84 | 2423 | else |
82eaf560 | 2424 | rm -rf conftest.one conftest.two conftest.dir |
2425 | echo one > conftest.one | |
2426 | echo two > conftest.two | |
2427 | mkdir conftest.dir | |
2428 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2429 | test -s conftest.one && test -s conftest.two && | |
2430 | test -s conftest.dir/conftest.one && | |
2431 | test -s conftest.dir/conftest.two | |
2432 | then | |
2433 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2434 | break 3 | |
2435 | fi | |
450e6c84 | 2436 | fi |
2437 | fi | |
2438 | done | |
b30fcfae | 2439 | done |
2440 | ;; | |
2441 | esac | |
cd9a469c | 2442 | |
2443 | done | |
2444 | IFS=$as_save_IFS | |
b30fcfae | 2445 | |
82eaf560 | 2446 | rm -rf conftest.one conftest.two conftest.dir |
450e6c84 | 2447 | |
2448 | fi | |
2449 | if test "${ac_cv_path_install+set}" = set; then | |
b30fcfae | 2450 | INSTALL=$ac_cv_path_install |
450e6c84 | 2451 | else |
82eaf560 | 2452 | # As a last resort, use the slow shell script. Don't cache a |
2453 | # value for INSTALL within a source directory, because that will | |
450e6c84 | 2454 | # break other packages using the cache if that directory is |
82eaf560 | 2455 | # removed, or if the value is a relative name. |
b30fcfae | 2456 | INSTALL=$ac_install_sh |
450e6c84 | 2457 | fi |
2458 | fi | |
cd9a469c | 2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2460 | $as_echo "$INSTALL" >&6; } | |
450e6c84 | 2461 | |
2462 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2463 | # It thinks the first close brace ends the variable substitution. | |
2464 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2465 | ||
b30fcfae | 2466 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
450e6c84 | 2467 | |
2468 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2469 | ||
cd9a469c | 2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2471 | $as_echo_n "checking whether ln works... " >&6; } | |
2472 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2473 | $as_echo_n "(cached) " >&6 | |
599a3eac | 2474 | else |
2475 | rm -f conftestdata_t | |
2476 | echo >conftestdata_f | |
2477 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2478 | then | |
2479 | acx_cv_prog_LN=ln | |
2480 | else | |
2481 | acx_cv_prog_LN=no | |
2482 | fi | |
2483 | rm -f conftestdata_f conftestdata_t | |
2484 | ||
2485 | fi | |
2486 | if test $acx_cv_prog_LN = no; then | |
2487 | LN="cp" | |
cd9a469c | 2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2489 | $as_echo "no, using $LN" >&6; } | |
599a3eac | 2490 | else |
2491 | LN="$acx_cv_prog_LN" | |
cd9a469c | 2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2493 | $as_echo "yes" >&6; } | |
599a3eac | 2494 | fi |
2495 | ||
cd9a469c | 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2497 | $as_echo_n "checking whether ln -s works... " >&6; } | |
b30fcfae | 2498 | LN_S=$as_ln_s |
2499 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2501 | $as_echo "yes" >&6; } | |
a4af6a58 | 2502 | else |
cd9a469c | 2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2504 | $as_echo "no, using $LN_S" >&6; } | |
5965d276 | 2505 | fi |
2506 | ||
b181f265 | 2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2508 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2509 | if test "${ac_cv_path_SED+set}" = set; then : | |
2510 | $as_echo_n "(cached) " >&6 | |
2511 | else | |
2512 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2513 | for ac_i in 1 2 3 4 5 6 7; do | |
2514 | ac_script="$ac_script$as_nl$ac_script" | |
2515 | done | |
2516 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2517 | { ac_script=; unset ac_script;} | |
2518 | if test -z "$SED"; then | |
2519 | ac_path_SED_found=false | |
2520 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
2526 | for ac_prog in sed gsed; do | |
2527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2528 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2529 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2530 | # Check for GNU ac_path_SED and select it if it is found. | |
2531 | # Check for GNU $ac_path_SED | |
2532 | case `"$ac_path_SED" --version 2>&1` in | |
2533 | *GNU*) | |
2534 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2535 | *) | |
2536 | ac_count=0 | |
2537 | $as_echo_n 0123456789 >"conftest.in" | |
2538 | while : | |
2539 | do | |
2540 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2541 | mv "conftest.tmp" "conftest.in" | |
2542 | cp "conftest.in" "conftest.nl" | |
2543 | $as_echo '' >> "conftest.nl" | |
2544 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2545 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2546 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2547 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2548 | # Best one so far, save it but keep looking for a better one | |
2549 | ac_cv_path_SED="$ac_path_SED" | |
2550 | ac_path_SED_max=$ac_count | |
2551 | fi | |
2552 | # 10*(2^10) chars as input seems more than enough | |
2553 | test $ac_count -gt 10 && break | |
2554 | done | |
2555 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2556 | esac | |
2557 | ||
2558 | $ac_path_SED_found && break 3 | |
2559 | done | |
2560 | done | |
2561 | done | |
2562 | IFS=$as_save_IFS | |
2563 | if test -z "$ac_cv_path_SED"; then | |
2564 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2565 | fi | |
2566 | else | |
2567 | ac_cv_path_SED=$SED | |
2568 | fi | |
2569 | ||
2570 | fi | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2572 | $as_echo "$ac_cv_path_SED" >&6; } | |
2573 | SED="$ac_cv_path_SED" | |
2574 | rm -f conftest.sed | |
2575 | ||
2576 | for ac_prog in gawk mawk nawk awk | |
2577 | do | |
2578 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2579 | set dummy $ac_prog; ac_word=$2 | |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2581 | $as_echo_n "checking for $ac_word... " >&6; } | |
2582 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2583 | $as_echo_n "(cached) " >&6 | |
2584 | else | |
2585 | if test -n "$AWK"; then | |
2586 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2587 | else | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2595 | ac_cv_prog_AWK="$ac_prog" | |
2596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2597 | break 2 | |
2598 | fi | |
2599 | done | |
2600 | done | |
2601 | IFS=$as_save_IFS | |
2602 | ||
2603 | fi | |
2604 | fi | |
2605 | AWK=$ac_cv_prog_AWK | |
2606 | if test -n "$AWK"; then | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2608 | $as_echo "$AWK" >&6; } | |
2609 | else | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2611 | $as_echo "no" >&6; } | |
2612 | fi | |
2613 | ||
2614 | ||
2615 | test -n "$AWK" && break | |
2616 | done | |
2617 | ||
450e6c84 | 2618 | |
e8eddfdd | 2619 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2620 | ||
2621 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2622 | # a relative path. | |
2623 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2624 | INSTALL="${srcpwd}/install-sh -c" | |
2625 | fi | |
2626 | ||
71ab34df | 2627 | # Set srcdir to "." if that's what it is. |
2628 | # This is important for multilib support. | |
2629 | pwd=`${PWDCMD-pwd}` | |
71ab34df | 2630 | if test "${pwd}" = "${srcpwd}" ; then |
2631 | srcdir=. | |
a8298541 | 2632 | fi |
2633 | ||
71ab34df | 2634 | topsrcdir=$srcpwd |
ed37269d | 2635 | |
71ab34df | 2636 | extra_host_args= |
14ac9144 | 2637 | |
71ab34df | 2638 | ### To add a new directory to the tree, first choose whether it is a target |
2639 | ### or a host dependent tool. Then put it into the appropriate list | |
2640 | ### (library or tools, host or target), doing a dependency sort. | |
a8298541 | 2641 | |
b30fcfae | 2642 | # Subdirs will be configured in the order listed in build_configdirs, |
71ab34df | 2643 | # configdirs, or target_configdirs; see the serialization section below. |
a8298541 | 2644 | |
b30fcfae | 2645 | # Dependency sorting is only needed when *configuration* must be done in |
2646 | # a particular order. In all cases a dependency should be specified in | |
71ab34df | 2647 | # the Makefile, whether or not it's implicitly specified here. |
a8298541 | 2648 | |
71ab34df | 2649 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2650 | # cause circular dependencies and break everything horribly. | |
a8298541 | 2651 | |
2f8725b0 | 2652 | # these library is used by various programs built for the build |
2653 | # environment | |
2654 | # | |
2655 | build_libs="build-libiberty" | |
2656 | ||
2657 | # these tools are built for the build environment | |
4fc99708 | 2658 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
2f8725b0 | 2659 | |
71ab34df | 2660 | # these libraries are used by various programs built for the host environment |
2661 | # | |
4fc99708 | 2662 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv" |
71ab34df | 2663 | |
71ab34df | 2664 | # these tools are built for the host environment |
2665 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2666 | # know that we are building the simulator. | |
2667 | # binutils, gas and ld appear in that order because it makes sense to run | |
2668 | # "make check" in that particular order. | |
af7c5662 | 2669 | # If --enable-gold is used, "gold" may replace "ld". |
4fc99708 | 2670 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
71ab34df | 2671 | |
2672 | # libgcj represents the runtime libraries only used by gcj. | |
2673 | libgcj="target-libffi \ | |
71ab34df | 2674 | target-zlib \ |
71ab34df | 2675 | target-libjava" |
2676 | ||
2677 | # these libraries are built for the target environment, and are built after | |
2678 | # the host libraries and the host tools (which may be a cross compiler) | |
5ab7e123 | 2679 | # Note that libiberty is not a target library. |
27bfe7b7 | 2680 | target_libraries="target-libgcc \ |
71ab34df | 2681 | target-libgloss \ |
2682 | target-newlib \ | |
a0191bfe | 2683 | target-libgomp \ |
4c0315d0 | 2684 | target-libitm \ |
54d7d5f2 | 2685 | target-libstdc++-v3 \ |
4ee9c684 | 2686 | target-libmudflap \ |
0d55f4d0 | 2687 | target-libssp \ |
87969c8c | 2688 | target-libquadmath \ |
4ee9c684 | 2689 | target-libgfortran \ |
dd6d3a67 | 2690 | target-boehm-gc \ |
cdfc500e | 2691 | ${libgcj} \ |
93341878 | 2692 | target-libobjc \ |
5ff5b630 | 2693 | target-libada \ |
2694 | target-libgo" | |
71ab34df | 2695 | |
328637e8 | 2696 | # these tools are built using the target libraries, and are intended to |
2697 | # run only in the target environment | |
71ab34df | 2698 | # |
328637e8 | 2699 | # note: any program that *uses* libraries that are in the "target_libraries" |
6c9785b4 | 2700 | # list belongs in this list. |
71ab34df | 2701 | # |
4fc99708 | 2702 | target_tools="target-rda" |
a8298541 | 2703 | |
71ab34df | 2704 | ################################################################################ |
a8298541 | 2705 | |
71ab34df | 2706 | ## All tools belong in one of the four categories, and are assigned above |
2707 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2708 | ## is important because configure will choke if they ever get through. | |
2709 | ## ${configdirs} is directories we build using the host tools. | |
2710 | ## ${target_configdirs} is directories we build using the target tools. | |
71ab34df | 2711 | configdirs=`echo ${host_libs} ${host_tools}` |
328637e8 | 2712 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
2b59cb05 | 2713 | build_configdirs=`echo ${build_libs} ${build_tools}` |
6f4f34a7 | 2714 | |
d2d2630b | 2715 | |
2716 | ||
71ab34df | 2717 | ################################################################################ |
a8298541 | 2718 | |
71ab34df | 2719 | srcname="gnu development package" |
a8298541 | 2720 | |
71ab34df | 2721 | # This gets set non-empty for some net releases of packages. |
2722 | appdirs="" | |
a8298541 | 2723 | |
71ab34df | 2724 | # Define is_cross_compiler to save on calls to 'test'. |
2725 | is_cross_compiler= | |
2726 | if test x"${host}" = x"${target}" ; then | |
2727 | is_cross_compiler=no | |
a8298541 | 2728 | else |
71ab34df | 2729 | is_cross_compiler=yes |
b30fcfae | 2730 | fi |
a8298541 | 2731 | |
2f61b8ca | 2732 | # Find the build and target subdir names. |
6f4f34a7 | 2733 | |
d3e7b04c | 2734 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2735 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2736 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2737 | # However, they still use the build modules, because the corresponding | |
2738 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2739 | # finishes. So: | |
2740 | # - build_subdir is where we find build modules, and never changes. | |
2741 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2742 | ||
2743 | # Prefix 'build-' so this never conflicts with target_subdir. | |
6f4f34a7 | 2744 | build_subdir="build-${build_noncanonical}" |
b30fcfae | 2745 | |
cd9a469c | 2746 | # Check whether --with-build-libsubdir was given. |
2747 | if test "${with_build_libsubdir+set}" = set; then : | |
2748 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
d3e7b04c | 2749 | else |
2750 | build_libsubdir="$build_subdir" | |
cd9a469c | 2751 | fi |
2752 | ||
c1eb9e31 | 2753 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2754 | if ( test $srcdir = . && test -d gcc ) \ | |
2755 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2756 | host_subdir="host-${host_noncanonical}" | |
2757 | else | |
2758 | host_subdir=. | |
2759 | fi | |
6f4f34a7 | 2760 | # No prefix. |
2761 | target_subdir=${target_noncanonical} | |
b30fcfae | 2762 | |
04a2e841 | 2763 | # Be sure to cover against remnants of an in-tree build. |
2764 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2765 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2766 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2767 | fi | |
a8298541 | 2768 | |
71ab34df | 2769 | # Skipdirs are removed silently. |
2770 | skipdirs= | |
2771 | # Noconfigdirs are removed loudly. | |
2772 | noconfigdirs="" | |
a8298541 | 2773 | |
71ab34df | 2774 | use_gnu_ld= |
2775 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2776 | if test x$with_gnu_ld = xno ; then | |
2777 | use_gnu_ld=no | |
3d47fcf5 | 2778 | noconfigdirs="$noconfigdirs ld gold" |
a8298541 | 2779 | fi |
2780 | ||
71ab34df | 2781 | use_gnu_as= |
2782 | # Make sure we don't let GNU as be added if we didn't want it. | |
2783 | if test x$with_gnu_as = xno ; then | |
2784 | use_gnu_as=no | |
2785 | noconfigdirs="$noconfigdirs gas" | |
a8298541 | 2786 | fi |
2787 | ||
7bfefa9d | 2788 | use_included_zlib= |
2789 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2790 | if test x$with_system_zlib = xyes ; then | |
2791 | use_included_zlib=no | |
2792 | noconfigdirs="$noconfigdirs zlib" | |
2793 | fi | |
2794 | ||
b30fcfae | 2795 | # some tools are so dependent upon X11 that if we're not building with X, |
71ab34df | 2796 | # it's not even worth trying to configure, much less build, that tool. |
a8298541 | 2797 | |
71ab34df | 2798 | case ${with_x} in |
2799 | yes | "") ;; # the default value for this tree is that X11 is available | |
2800 | no) | |
f843f075 | 2801 | skipdirs="${skipdirs} tk itcl libgui" |
71ab34df | 2802 | # We won't be able to build gdbtk without X. |
b30fcfae | 2803 | enable_gdbtk=no |
71ab34df | 2804 | ;; |
2805 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2806 | esac | |
a8298541 | 2807 | |
6c9785b4 | 2808 | # Some are only suitable for cross toolchains. |
71ab34df | 2809 | # Remove these if host=target. |
2810 | cross_only="target-libgloss target-newlib target-opcodes" | |
2811 | ||
2812 | case $is_cross_compiler in | |
2813 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
71ab34df | 2814 | esac |
a8298541 | 2815 | |
71ab34df | 2816 | # If both --with-headers and --with-libs are specified, default to |
2817 | # --without-newlib. | |
e8eddfdd | 2818 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2819 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
71ab34df | 2820 | if test x"${with_newlib}" = x ; then |
2821 | with_newlib=no | |
2822 | fi | |
a8298541 | 2823 | fi |
2824 | ||
71ab34df | 2825 | # Recognize --with-newlib/--without-newlib. |
2826 | case ${with_newlib} in | |
2827 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2828 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2829 | esac | |
a8298541 | 2830 | |
1e369e5f | 2831 | # Handle --enable-gold, --enable-ld. |
2832 | # --disable-gold [--enable-ld] | |
2833 | # Build only ld. Default option. | |
85516948 | 2834 | # --enable-gold [--enable-ld] |
2835 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2836 | # as "ld.bfd" and "ld". | |
2837 | # --enable-gold=default [--enable-ld] | |
1e369e5f | 2838 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2839 | # install ld as "ld.bfd". | |
2840 | # --enable-gold[=default] --disable-ld | |
2841 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2842 | # --enable-gold --enable-ld=default | |
85516948 | 2843 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2844 | # and ld.bfd). | |
1e369e5f | 2845 | # In other words, ld is default |
2846 | # --enable-gold=default --enable-ld=default | |
2847 | # Error. | |
2848 | ||
2849 | default_ld= | |
cd9a469c | 2850 | # Check whether --enable-gold was given. |
2851 | if test "${enable_gold+set}" = set; then : | |
2852 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
3d47fcf5 | 2853 | else |
2854 | ENABLE_GOLD=no | |
cd9a469c | 2855 | fi |
2856 | ||
1e369e5f | 2857 | case "${ENABLE_GOLD}" in |
2858 | yes|default) | |
af7c5662 | 2859 | # Check for ELF target. |
2860 | is_elf=no | |
2861 | case "${target}" in | |
2862 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2863 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
e3a1fe08 | 2864 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2865 | | *-*-solaris2* | *-*-nto*) | |
af7c5662 | 2866 | case "${target}" in |
2867 | *-*-linux*aout* | *-*-linux*oldld*) | |
2868 | ;; | |
2869 | *) | |
2870 | is_elf=yes | |
2871 | ;; | |
2872 | esac | |
2873 | esac | |
2874 | ||
2875 | if test "$is_elf" = "yes"; then | |
2876 | # Check for target supported by gold. | |
3d47fcf5 | 2877 | case "${target}" in |
af7c5662 | 2878 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
1e369e5f | 2879 | configdirs="$configdirs gold" |
2880 | if test x${ENABLE_GOLD} = xdefault; then | |
2881 | default_ld=gold | |
2882 | fi | |
af7c5662 | 2883 | ENABLE_GOLD=yes |
3d47fcf5 | 2884 | ;; |
2885 | esac | |
af7c5662 | 2886 | fi |
2887 | ;; | |
2888 | no) | |
2889 | ;; | |
2890 | *) | |
2891 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2892 | ;; | |
1e369e5f | 2893 | esac |
2894 | ||
2895 | # Check whether --enable-ld was given. | |
2896 | if test "${enable_ld+set}" = set; then : | |
2897 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2898 | else | |
2899 | ENABLE_LD=yes | |
2900 | fi | |
2901 | ||
2902 | ||
2903 | case "${ENABLE_LD}" in | |
2904 | default) | |
85516948 | 2905 | if test x${default_ld} != x; then |
1e369e5f | 2906 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2907 | fi | |
2908 | ;; | |
2909 | yes) | |
2910 | ;; | |
2911 | no) | |
2912 | if test x${ENABLE_GOLD} != xyes; then | |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2914 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2915 | fi | |
2916 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2917 | ;; | |
2918 | *) | |
2919 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2920 | ;; | |
2921 | esac | |
3d47fcf5 | 2922 | |
71ab34df | 2923 | # Configure extra directories which are host specific |
a8298541 | 2924 | |
71ab34df | 2925 | case "${host}" in |
2926 | *-cygwin*) | |
2927 | configdirs="$configdirs libtermcap" ;; | |
2928 | esac | |
a8298541 | 2929 | |
ff7dcf6a | 2930 | # A target can indicate whether a language isn't supported for some reason. |
2931 | # Only spaces may be used in this macro; not newlines or tabs. | |
2932 | unsupported_languages= | |
2933 | ||
b30fcfae | 2934 | # Remove more programs from consideration, based on the host or |
71ab34df | 2935 | # target this usually means that a port of the program doesn't |
2936 | # exist yet. | |
c7879c37 | 2937 | |
71ab34df | 2938 | case "${host}" in |
b2240ff6 | 2939 | i[3456789]86-*-msdosdjgpp*) |
e3a5e6ff | 2940 | noconfigdirs="$noconfigdirs tcl tk itcl" |
71ab34df | 2941 | ;; |
71ab34df | 2942 | esac |
c7879c37 | 2943 | |
4ee9c684 | 2944 | |
d9d975ae | 2945 | # Check whether --enable-libquadmath was given. |
2946 | if test "${enable_libquadmath+set}" = set; then : | |
2947 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2948 | else | |
2949 | ENABLE_LIBQUADMATH=yes | |
2950 | fi | |
2951 | ||
2952 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2953 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2954 | fi | |
2955 | ||
2956 | ||
2957 | # Check whether --enable-libquadmath-support was given. | |
2958 | if test "${enable_libquadmath_support+set}" = set; then : | |
2959 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
2960 | else | |
2961 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
2962 | fi | |
2963 | ||
2964 | enable_libquadmath_support= | |
2965 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
2966 | enable_libquadmath_support=no | |
2967 | fi | |
2968 | ||
2969 | ||
cd9a469c | 2970 | # Check whether --enable-libada was given. |
2971 | if test "${enable_libada+set}" = set; then : | |
2972 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
93341878 | 2973 | else |
2974 | ENABLE_LIBADA=yes | |
cd9a469c | 2975 | fi |
2976 | ||
93341878 | 2977 | if test "${ENABLE_LIBADA}" != "yes" ; then |
a136b23d | 2978 | noconfigdirs="$noconfigdirs gnattools" |
93341878 | 2979 | fi |
2980 | ||
cd9a469c | 2981 | # Check whether --enable-libssp was given. |
2982 | if test "${enable_libssp+set}" = set; then : | |
2983 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
07da5214 | 2984 | else |
2985 | ENABLE_LIBSSP=yes | |
cd9a469c | 2986 | fi |
2987 | ||
07da5214 | 2988 | |
71ab34df | 2989 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2990 | # front-end isn't enabled, we still get libgcj disabled. | |
2991 | libgcj_saved=$libgcj | |
2992 | case $enable_libgcj in | |
2993 | yes) | |
2994 | # If we reset it here, it won't get added to noconfigdirs in the | |
2995 | # target-specific build rules, so it will be forcibly enabled | |
2996 | # (unless the Java language itself isn't enabled). | |
2997 | libgcj= | |
2998 | ;; | |
2999 | no) | |
3000 | # Make sure we get it printed in the list of not supported target libs. | |
604a285a | 3001 | # Don't disable libffi, though, other languages use it. |
3002 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
8593ce89 | 3003 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3004 | # built. | |
3005 | libgcj_saved= | |
71ab34df | 3006 | ;; |
3007 | esac | |
c7879c37 | 3008 | |
d7e52ac9 | 3009 | # Check whether --enable-static-libjava was given. |
3010 | if test "${enable_static_libjava+set}" = set; then : | |
3011 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3012 | else | |
3013 | ENABLE_STATIC_LIBJAVA=no | |
3014 | fi | |
3015 | ||
3016 | enable_static_libjava= | |
3017 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3018 | enable_static_libjava=yes | |
3019 | fi | |
3020 | ||
3021 | if test x$enable_static_libjava != xyes ; then | |
3022 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3023 | fi | |
3024 | ||
4ee9c684 | 3025 | |
50996fe5 | 3026 | # Disable libmudflap on some systems. |
3027 | if test x$enable_libmudflap = x ; then | |
344b2784 | 3028 | case "${target}" in |
3bef4012 | 3029 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
cb8a7007 | 3030 | # Enable libmudflap by default in GNU and friends. |
344b2784 | 3031 | ;; |
122ae8c7 | 3032 | *-*-freebsd*) |
3033 | # Enable libmudflap by default in FreeBSD. | |
3034 | ;; | |
344b2784 | 3035 | *) |
3036 | # Disable it by default everywhere else. | |
3037 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3038 | ;; | |
3039 | esac | |
50996fe5 | 3040 | fi |
4ee9c684 | 3041 | |
50996fe5 | 3042 | # Disable libgomp on non POSIX hosted systems. |
3043 | if test x$enable_libgomp = x ; then | |
1e8e9920 | 3044 | # Enable libgomp by default on hosted POSIX systems. |
3045 | case "${target}" in | |
3bef4012 | 3046 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
1e8e9920 | 3047 | ;; |
e3a1fe08 | 3048 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
1e8e9920 | 3049 | ;; |
93faf308 | 3050 | *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
1e8e9920 | 3051 | ;; |
634efbee | 3052 | *-*-darwin* | *-*-aix*) |
1e8e9920 | 3053 | ;; |
3054 | *) | |
3055 | noconfigdirs="$noconfigdirs target-libgomp" | |
3056 | ;; | |
3057 | esac | |
50996fe5 | 3058 | fi |
1e8e9920 | 3059 | |
42b15c81 | 3060 | # Disable libitm on unsupported systems. |
3061 | if test -d ${srcdir}/libitm; then | |
3062 | if test x$enable_libitm = x; then | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
298c66d9 | 3064 | $as_echo_n "checking for libitm support... " >&6; } |
42b15c81 | 3065 | if (srcdir=${srcdir}/libitm; \ |
3066 | . ${srcdir}/configure.tgt; \ | |
3067 | test -n "$UNSUPPORTED") | |
3068 | then | |
3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
298c66d9 | 3070 | $as_echo "no" >&6; } |
42b15c81 | 3071 | noconfigdirs="$noconfigdirs target-libitm" |
3072 | else | |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
298c66d9 | 3074 | $as_echo "yes" >&6; } |
42b15c81 | 3075 | fi |
3076 | fi | |
4c0315d0 | 3077 | fi |
3078 | ||
d5831552 | 3079 | # Disable libssp for some systems. |
3080 | case "${target}" in | |
3081 | avr-*-*) | |
76c19016 | 3082 | # No hosted I/O support. |
d5831552 | 3083 | noconfigdirs="$noconfigdirs target-libssp" |
3084 | ;; | |
3085 | powerpc-*-aix* | rs6000-*-aix*) | |
3086 | noconfigdirs="$noconfigdirs target-libssp" | |
3087 | ;; | |
d5831552 | 3088 | esac |
3089 | ||
d5831552 | 3090 | # Disable libstdc++-v3 for some systems. |
3091 | case "${target}" in | |
3092 | *-*-vxworks*) | |
3093 | # VxWorks uses the Dinkumware C++ library. | |
3094 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3095 | ;; | |
3096 | arm*-wince-pe*) | |
3097 | # the C++ libraries don't build on top of CE's C libraries | |
3098 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3099 | ;; | |
3100 | avr-*-*) | |
3101 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3102 | ;; | |
3103 | esac | |
3104 | ||
3105 | # Disable Fortran for some systems. | |
3106 | case "${target}" in | |
3107 | mmix-*-*) | |
3108 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3109 | unsupported_languages="$unsupported_languages fortran" | |
3110 | ;; | |
3111 | esac | |
3112 | ||
91b5b6ec | 3113 | # Disable Java if libffi is not supported. |
f24be480 | 3114 | case "${target}" in |
91b5b6ec | 3115 | alpha*-*-*) |
3116 | ;; | |
3117 | arm*-*-*) | |
3118 | ;; | |
3119 | cris-*-*) | |
3120 | ;; | |
3121 | frv-*-*) | |
3122 | ;; | |
3123 | hppa*-*-linux*) | |
3124 | ;; | |
3125 | hppa*-*-hpux*) | |
3126 | ;; | |
3127 | i?86-*-*) | |
3128 | ;; | |
3129 | ia64*-*-*) | |
3130 | ;; | |
3131 | m32r*-*-*) | |
3132 | ;; | |
3133 | m68k-*-*) | |
3134 | ;; | |
3135 | mips-sgi-irix6.* | mips*-*-rtems*) | |
3136 | ;; | |
3137 | mips*-*-linux*) | |
3138 | ;; | |
3139 | powerpc*-*-linux*) | |
3140 | ;; | |
3141 | powerpc-*-darwin*) | |
3142 | ;; | |
3143 | powerpc-*-aix* | rs6000-*-aix*) | |
3144 | ;; | |
3145 | powerpc-*-freebsd*) | |
3146 | ;; | |
3147 | powerpc64-*-freebsd*) | |
3148 | ;; | |
3149 | powerpc*-*-rtems*) | |
f24be480 | 3150 | ;; |
91b5b6ec | 3151 | s390-*-* | s390x-*-*) |
3152 | ;; | |
3153 | sh-*-* | sh[34]*-*-*) | |
3154 | ;; | |
3155 | sh64-*-* | sh5*-*-*) | |
3156 | ;; | |
3157 | sparc*-*-*) | |
3158 | ;; | |
3159 | x86_64-*-*) | |
3160 | ;; | |
3161 | *-*-*) | |
3162 | unsupported_languages="$unsupported_languages java" | |
3163 | ;; | |
3164 | esac | |
3165 | ||
3166 | # Disable Java, libgcj or related libraries for some systems. | |
3167 | case "${target}" in | |
f24be480 | 3168 | powerpc-*-darwin*) |
3169 | ;; | |
3170 | i[3456789]86-*-darwin*) | |
3171 | ;; | |
3172 | x86_64-*-darwin[912]*) | |
3173 | ;; | |
3174 | *-*-darwin*) | |
3175 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3176 | ;; | |
f24be480 | 3177 | *-*-netware*) |
3178 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3179 | ;; | |
3180 | *-*-rtems*) | |
3181 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3182 | ;; | |
3183 | *-*-tpf*) | |
3184 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3185 | ;; | |
3186 | *-*-uclinux*) | |
3187 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3188 | ;; | |
3189 | *-*-vxworks*) | |
3190 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3191 | ;; | |
f24be480 | 3192 | alpha*-*-*vms*) |
3193 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3194 | ;; | |
91b5b6ec | 3195 | arm-wince-pe) |
f24be480 | 3196 | noconfigdirs="$noconfigdirs ${libgcj}" |
3197 | ;; | |
f24be480 | 3198 | arm*-*-symbianelf*) |
3199 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3200 | ;; | |
f24be480 | 3201 | bfin-*-*) |
f24be480 | 3202 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3203 | ;; | |
f24be480 | 3204 | cris-*-* | crisv32-*-*) |
3205 | unsupported_languages="$unsupported_languages java" | |
3206 | case "${target}" in | |
3207 | *-*-linux*) | |
3208 | ;; | |
3209 | *) # See PR46792 regarding target-libffi. | |
3210 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3211 | esac | |
3212 | ;; | |
f24be480 | 3213 | hppa*64*-*-linux*) |
3214 | # In this case, it's because the hppa64-linux target is for | |
3215 | # the kernel only at this point and has no libc, and thus no | |
3216 | # headers, crt*.o, etc., all of which are needed by these. | |
a7e330e9 | 3217 | unsupported_languages="$unsupported_languages java" |
f24be480 | 3218 | ;; |
a7e330e9 | 3219 | hppa*64*-*-hpux*) |
f24be480 | 3220 | noconfigdirs="$noconfigdirs ${libgcj}" |
3221 | ;; | |
3222 | hppa*-hp-hpux11*) | |
3223 | ;; | |
a7e330e9 | 3224 | hppa*-*-hpux*) |
f24be480 | 3225 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3226 | # build on HP-UX 10.20. | |
3227 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3228 | ;; | |
f24be480 | 3229 | ia64*-*-*vms*) |
3230 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3231 | ;; | |
f24be480 | 3232 | i[3456789]86-w64-mingw*) |
3233 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3234 | ;; | |
3235 | i[3456789]86-*-mingw*) | |
3236 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3237 | ;; | |
3238 | x86_64-*-mingw*) | |
3239 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3240 | ;; | |
f24be480 | 3241 | mmix-*-*) |
3242 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
f24be480 | 3243 | ;; |
3244 | powerpc-*-aix*) | |
3245 | # copied from rs6000-*-* entry | |
3246 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3247 | ;; | |
f24be480 | 3248 | rs6000-*-aix*) |
3249 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3250 | ;; | |
f24be480 | 3251 | mips*-*-irix6*) |
3252 | # Linking libjava exceeds command-line length limits on at least | |
3253 | # IRIX 6.2, but not on IRIX 6.5. | |
3254 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3255 | # <oldham@codesourcery.com> | |
3256 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3257 | ;; | |
f24be480 | 3258 | *-*-lynxos*) |
3259 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3260 | ;; | |
f24be480 | 3261 | esac |
3262 | ||
1c5767f1 | 3263 | # Default libgloss CPU subdirectory. |
3264 | libgloss_dir="$target_cpu" | |
4ee9c684 | 3265 | |
e0942c78 | 3266 | case "${target}" in |
3267 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3268 | libgloss_dir=wince | |
3269 | ;; | |
3270 | arm*-*-*) | |
3271 | libgloss_dir=arm | |
3272 | ;; | |
3273 | cris-*-* | crisv32-*-*) | |
3274 | libgloss_dir=cris | |
3275 | ;; | |
3276 | hppa*-*-*) | |
3277 | libgloss_dir=pa | |
3278 | ;; | |
3279 | i[3456789]86-*-*) | |
3280 | libgloss_dir=i386 | |
3281 | ;; | |
3282 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3283 | libgloss_dir=m68hc11 | |
3284 | ;; | |
3285 | m68*-*-* | fido-*-*) | |
3286 | libgloss_dir=m68k | |
3287 | ;; | |
3288 | mips*-*-*) | |
3289 | libgloss_dir=mips | |
3290 | ;; | |
3291 | powerpc*-*-*) | |
3292 | libgloss_dir=rs6000 | |
3293 | ;; | |
3294 | sparc*-*-*) | |
3295 | libgloss_dir=sparc | |
3296 | ;; | |
3297 | esac | |
3298 | ||
d556f192 | 3299 | # Disable newlib and libgloss for various target OSes. |
71ab34df | 3300 | case "${target}" in |
d556f192 | 3301 | alpha*-dec-osf*) |
3302 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3303 | ;; | |
3304 | i[3456789]86-*-linux*) | |
3305 | # This section makes it possible to build newlib natively on linux. | |
3306 | # If we are using a cross compiler then don't configure newlib. | |
3307 | if test x${is_cross_compiler} != xno ; then | |
3308 | noconfigdirs="$noconfigdirs target-newlib" | |
3309 | fi | |
3310 | noconfigdirs="$noconfigdirs target-libgloss" | |
3311 | # If we are not using a cross compiler, do configure newlib. | |
3312 | # Note however, that newlib will only be configured in this situation | |
3313 | # if the --with-newlib option has been given, because otherwise | |
3314 | # 'target-newlib' will appear in skipdirs. | |
3315 | ;; | |
3316 | i[3456789]86-*-rdos*) | |
3317 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3318 | ;; | |
3319 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3320 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3321 | ;; | |
3322 | sparc-*-sunos4*) | |
3323 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3324 | ;; | |
3325 | *-*-aix*) | |
3326 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3327 | ;; | |
3328 | *-*-beos*) | |
3329 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3330 | ;; | |
71ab34df | 3331 | *-*-chorusos) |
71559dce | 3332 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3333 | ;; |
d556f192 | 3334 | *-*-dragonfly*) |
3335 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3336 | ;; | |
3337 | *-*-freebsd*) | |
3338 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3339 | ;; | |
3340 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3341 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3342 | ;; | |
3343 | *-*-lynxos*) | |
3344 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3345 | ;; | |
3346 | *-*-mingw*) | |
3347 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3348 | ;; | |
3349 | *-*-netbsd*) | |
3350 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3351 | ;; | |
3352 | *-*-netware*) | |
3353 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3354 | ;; | |
3355 | *-*-tpf*) | |
3356 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3357 | ;; | |
3358 | *-*-uclinux*) | |
3359 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3360 | ;; | |
3361 | *-*-vxworks*) | |
3362 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3363 | ;; | |
3364 | esac | |
3365 | ||
3366 | case "${target}" in | |
3367 | *-*-chorusos) | |
3368 | ;; | |
40c500e1 | 3369 | powerpc-*-darwin*) |
dba2c8ea | 3370 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
d28caca4 | 3371 | noconfigdirs="$noconfigdirs sim target-rda" |
0894307c | 3372 | ;; |
ea864ded | 3373 | i[3456789]86-*-darwin*) |
3374 | noconfigdirs="$noconfigdirs ld gprof" | |
3375 | noconfigdirs="$noconfigdirs sim target-rda" | |
3376 | ;; | |
3377 | x86_64-*-darwin[912]*) | |
d9f9f3af | 3378 | noconfigdirs="$noconfigdirs ld gas gprof" |
3379 | noconfigdirs="$noconfigdirs sim target-rda" | |
3380 | ;; | |
fce068fd | 3381 | *-*-darwin*) |
3382 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3383 | noconfigdirs="$noconfigdirs sim target-rda" | |
fce068fd | 3384 | ;; |
e3a1fe08 | 3385 | *-*-dragonfly*) |
e3a1fe08 | 3386 | ;; |
c01dd063 | 3387 | *-*-freebsd*) |
4ee9c684 | 3388 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3389 | && test -f /usr/local/include/gmp.h; then | |
3390 | with_gmp=/usr/local | |
3391 | fi | |
4ee9c684 | 3392 | ;; |
336577be | 3393 | *-*-kaos*) |
3394 | # Remove unsupported stuff on all kaOS configurations. | |
336577be | 3395 | noconfigdirs="$noconfigdirs target-libgloss" |
3396 | ;; | |
71ab34df | 3397 | *-*-netbsd*) |
71ab34df | 3398 | ;; |
634f7a13 | 3399 | *-*-netware*) |
71ab34df | 3400 | ;; |
3401 | *-*-rtems*) | |
f24be480 | 3402 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3403 | ;; |
9f88bc9d | 3404 | # The tpf target doesn't support gdb yet. |
3405 | *-*-tpf*) | |
d556f192 | 3406 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
9f88bc9d | 3407 | ;; |
688429c4 | 3408 | *-*-uclinux*) |
d556f192 | 3409 | noconfigdirs="$noconfigdirs target-rda" |
688429c4 | 3410 | ;; |
71ab34df | 3411 | *-*-vxworks*) |
71ab34df | 3412 | ;; |
3413 | alpha*-dec-osf*) | |
3414 | # ld works, but does not support shared libraries. | |
71ab34df | 3415 | # gas doesn't generate exception information. |
d556f192 | 3416 | noconfigdirs="$noconfigdirs gas ld" |
71ab34df | 3417 | ;; |
3418 | alpha*-*-*vms*) | |
f24be480 | 3419 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
71ab34df | 3420 | ;; |
71ab34df | 3421 | alpha*-*-*) |
3422 | # newlib is not 64 bit ready | |
f24be480 | 3423 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3424 | ;; |
71ab34df | 3425 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
f843f075 | 3426 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
71ab34df | 3427 | ;; |
3428 | arc-*-*) | |
17b3d2a8 | 3429 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3430 | ;; |
71ab34df | 3431 | arm-*-pe*) |
f24be480 | 3432 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3433 | ;; |
71ab34df | 3434 | arm-*-riscix*) |
71559dce | 3435 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3436 | ;; |
71ab34df | 3437 | c4x-*-* | tic4x-*-*) |
71559dce | 3438 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3439 | ;; |
71559dce | 3440 | tic54x-*-*) |
3441 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
71ab34df | 3442 | ;; |
15f8eac8 | 3443 | cr16-*-*) |
f24be480 | 3444 | noconfigdirs="$noconfigdirs gdb" |
15f8eac8 | 3445 | ;; |
71ab34df | 3446 | d10v-*-*) |
71559dce | 3447 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3448 | ;; |
3449 | d30v-*-*) | |
71559dce | 3450 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3451 | ;; |
3452 | fr30-*-elf*) | |
f24be480 | 3453 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3454 | ;; |
ca2751b6 | 3455 | moxie-*-*) |
ca2751b6 | 3456 | noconfigdirs="$noconfigdirs gprof" |
3457 | ;; | |
71ab34df | 3458 | h8300*-*-*) |
f24be480 | 3459 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3460 | ;; |
3461 | h8500-*-*) | |
71559dce | 3462 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3463 | ;; |
e8eddfdd | 3464 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
e8eddfdd | 3465 | ;; |
6bd59761 | 3466 | hppa*64*-*-linux*) |
71ab34df | 3467 | ;; |
99684e84 | 3468 | hppa*-*-linux*) |
08261f02 | 3469 | ;; |
71ab34df | 3470 | hppa*-*-*elf* | \ |
71ab34df | 3471 | hppa*-*-lites* | \ |
3472 | hppa*-*-openbsd* | \ | |
3473 | hppa*64*-*-*) | |
71ab34df | 3474 | ;; |
75d59721 | 3475 | hppa*-hp-hpux11*) |
6c9785b4 | 3476 | noconfigdirs="$noconfigdirs ld" |
75d59721 | 3477 | ;; |
1c5767f1 | 3478 | hppa*-*-pro*) |
1c5767f1 | 3479 | ;; |
71ab34df | 3480 | hppa*-*-*) |
f24be480 | 3481 | noconfigdirs="$noconfigdirs ld" |
71ab34df | 3482 | ;; |
4a9237fb | 3483 | i960-*-*) |
71559dce | 3484 | noconfigdirs="$noconfigdirs gdb" |
4a9237fb | 3485 | ;; |
71ab34df | 3486 | ia64*-*-elf*) |
3487 | # No gdb support yet. | |
6c9785b4 | 3488 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
71ab34df | 3489 | ;; |
3490 | ia64*-**-hpux*) | |
1aca86a6 | 3491 | # No ld support yet. |
f24be480 | 3492 | noconfigdirs="$noconfigdirs libgui itcl ld" |
71ab34df | 3493 | ;; |
8408ca00 | 3494 | ia64*-*-*vms*) |
3495 | # No gdb or ld support yet. | |
f24be480 | 3496 | noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" |
8408ca00 | 3497 | ;; |
ec2eb8fb | 3498 | i[3456789]86-w64-mingw*) |
ec2eb8fb | 3499 | ;; |
3500 | i[3456789]86-*-mingw*) | |
d6d689df | 3501 | target_configdirs="$target_configdirs target-winsup" |
b30fcfae | 3502 | ;; |
71ab34df | 3503 | *-*-cygwin*) |
3504 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
6c9785b4 | 3505 | noconfigdirs="$noconfigdirs target-libgloss" |
2c10944d | 3506 | # always build newlib if winsup directory is present. |
d6d689df | 3507 | if test -d "$srcdir/winsup/cygwin"; then |
2c10944d | 3508 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
e8eddfdd | 3509 | elif test -d "$srcdir/newlib"; then |
d6d689df | 3510 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
2c10944d | 3511 | fi |
b30fcfae | 3512 | ;; |
f74ea578 | 3513 | i[3456789]86-*-pe) |
17b3d2a8 | 3514 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3515 | ;; |
f74ea578 | 3516 | i[3456789]86-*-sco3.2v5*) |
71ab34df | 3517 | # The linker does not yet know about weak symbols in COFF, |
3518 | # and is not configured to handle mixed ELF and COFF. | |
71559dce | 3519 | noconfigdirs="$noconfigdirs ld target-libgloss" |
71ab34df | 3520 | ;; |
f74ea578 | 3521 | i[3456789]86-*-sco*) |
71559dce | 3522 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3523 | ;; |
14f27bc6 | 3524 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
71ab34df | 3525 | noconfigdirs="$noconfigdirs target-libgloss" |
3526 | ;; | |
f74ea578 | 3527 | i[3456789]86-*-sysv4*) |
71559dce | 3528 | noconfigdirs="$noconfigdirs target-libgloss" |
71ab34df | 3529 | ;; |
f74ea578 | 3530 | i[3456789]86-*-beos*) |
d556f192 | 3531 | noconfigdirs="$noconfigdirs gdb" |
602d002b | 3532 | ;; |
ab0da556 | 3533 | i[3456789]86-*-rdos*) |
d556f192 | 3534 | noconfigdirs="$noconfigdirs gdb" |
1c5767f1 | 3535 | ;; |
71ab34df | 3536 | mmix-*-*) |
f24be480 | 3537 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3538 | ;; |
957985d9 | 3539 | mt-*-*) |
f6fa11cb | 3540 | noconfigdirs="$noconfigdirs sim" |
3541 | ;; | |
71ab34df | 3542 | powerpc-*-aix*) |
3543 | # copied from rs6000-*-* entry | |
d556f192 | 3544 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3545 | ;; |
6bd59761 | 3546 | powerpc*-*-winnt* | powerpc*-*-pe*) |
71ab34df | 3547 | target_configdirs="$target_configdirs target-winsup" |
71559dce | 3548 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
71ab34df | 3549 | # always build newlib. |
3550 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3551 | ;; | |
3552 | # This is temporary until we can link against shared libraries | |
3553 | powerpcle-*-solaris*) | |
71559dce | 3554 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
71ab34df | 3555 | ;; |
3556 | powerpc-*-beos*) | |
d556f192 | 3557 | noconfigdirs="$noconfigdirs gdb" |
71ab34df | 3558 | ;; |
71ab34df | 3559 | rs6000-*-lynxos*) |
d556f192 | 3560 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3561 | ;; |
3562 | rs6000-*-aix*) | |
d556f192 | 3563 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3564 | ;; |
3565 | rs6000-*-*) | |
f24be480 | 3566 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3567 | ;; |
3568 | m68k-apollo-*) | |
71559dce | 3569 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
71ab34df | 3570 | ;; |
ba2b484f | 3571 | microblaze*) |
f24be480 | 3572 | noconfigdirs="$noconfigdirs gprof" |
ba2b484f | 3573 | ;; |
68c9bc25 | 3574 | mips*-sde-elf*) |
68c9bc25 | 3575 | if test x$with_newlib = xyes; then |
3576 | noconfigdirs="$noconfigdirs gprof" | |
3577 | fi | |
68c9bc25 | 3578 | ;; |
71ab34df | 3579 | mips*-*-irix5*) |
71559dce | 3580 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3581 | ;; |
3582 | mips*-*-irix6*) | |
f24be480 | 3583 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3584 | ;; |
71ab34df | 3585 | mips*-*-bsd*) |
71559dce | 3586 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
71ab34df | 3587 | ;; |
71ab34df | 3588 | mips*-*-linux*) |
71ab34df | 3589 | ;; |
3590 | mips*-*-*) | |
f24be480 | 3591 | noconfigdirs="$noconfigdirs gprof" |
71ab34df | 3592 | ;; |
33974778 | 3593 | sh-*-* | sh64-*-*) |
39f6b116 | 3594 | case "${target}" in |
3595 | sh*-*-elf) | |
f24be480 | 3596 | ;; |
39f6b116 | 3597 | *) |
f24be480 | 3598 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
39f6b116 | 3599 | esac |
71ab34df | 3600 | ;; |
71ab34df | 3601 | sparc-*-sunos4*) |
d556f192 | 3602 | if test x${is_cross_compiler} = xno ; then |
71ab34df | 3603 | use_gnu_ld=no |
3604 | fi | |
3605 | ;; | |
fa0a53e3 | 3606 | tic6x-*-*) |
ccdfa490 | 3607 | noconfigdirs="$noconfigdirs sim" |
fa0a53e3 | 3608 | ;; |
e5fa74b2 | 3609 | tilepro-*-* | tilegx-*-*) |
3610 | noconfigdirs="$noconfigdirs sim" | |
3611 | ;; | |
71ab34df | 3612 | v810-*-*) |
71559dce | 3613 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
71ab34df | 3614 | ;; |
3615 | vax-*-*) | |
f24be480 | 3616 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
71ab34df | 3617 | ;; |
71ab34df | 3618 | esac |
a8298541 | 3619 | |
71ab34df | 3620 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3621 | # depends upon some newlib header files. | |
3622 | case "${noconfigdirs}" in | |
3623 | *target-libgloss*) ;; | |
3624 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3625 | esac | |
3626 | ||
71ab34df | 3627 | # Work in distributions that contain no compiler tools, like Autoconf. |
71ab34df | 3628 | host_makefile_frag=/dev/null |
3629 | if test -d ${srcdir}/config ; then | |
3630 | case "${host}" in | |
f74ea578 | 3631 | i[3456789]86-*-msdosdjgpp*) |
71ab34df | 3632 | host_makefile_frag="config/mh-djgpp" |
3633 | ;; | |
3634 | *-cygwin*) | |
45043b2b | 3635 | |
cd9a469c | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3637 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
45043b2b | 3638 | echo a >cygwin-cat-check |
82d97a59 | 3639 | if test `cat cygwin-cat-check` = a ; then |
45043b2b | 3640 | rm cygwin-cat-check |
cd9a469c | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3642 | $as_echo "yes" >&6; } | |
45043b2b | 3643 | else |
3644 | rm cygwin-cat-check | |
cd9a469c | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3646 | $as_echo "no" >&6; } | |
3647 | as_fn_error "The cat command does not ignore carriage return characters. | |
45043b2b | 3648 | Please either mount the build directory in binary mode or run the following |
3649 | commands before running any configure script: | |
3650 | set -o igncr | |
3651 | export SHELLOPTS | |
cd9a469c | 3652 | " "$LINENO" 5 |
45043b2b | 3653 | fi |
3654 | ||
71ab34df | 3655 | host_makefile_frag="config/mh-cygwin" |
3656 | ;; | |
5a92bcc2 | 3657 | *-mingw*) |
70d8e49e | 3658 | host_makefile_frag="config/mh-mingw" |
a378fc89 | 3659 | ;; |
71ab34df | 3660 | *-interix*) |
3661 | host_makefile_frag="config/mh-interix" | |
3662 | ;; | |
d2b94e36 | 3663 | hppa*-hp-hpux10*) |
d2b94e36 | 3664 | host_makefile_frag="config/mh-pa-hpux10" |
71ab34df | 3665 | ;; |
b2240ff6 | 3666 | hppa*-hp-hpux*) |
d2b94e36 | 3667 | host_makefile_frag="config/mh-pa" |
3668 | ;; | |
3669 | hppa*-*) | |
3670 | host_makefile_frag="config/mh-pa" | |
3671 | ;; | |
16463c8d | 3672 | *-*-darwin*) |
3673 | host_makefile_frag="config/mh-darwin" | |
0222d984 | 3674 | ;; |
9d44a802 | 3675 | powerpc-*-aix*) |
3676 | host_makefile_frag="config/mh-ppc-aix" | |
3677 | ;; | |
3678 | rs6000-*-aix*) | |
3679 | host_makefile_frag="config/mh-ppc-aix" | |
3680 | ;; | |
71ab34df | 3681 | esac |
3682 | fi | |
3683 | ||
8e1fea1a | 3684 | if test "${build}" != "${host}" ; then |
93c5e793 | 3685 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3686 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
8e1fea1a | 3687 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
93c5e793 | 3688 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3689 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3690 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
5ff5b630 | 3691 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
93c5e793 | 3692 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3693 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3694 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3695 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3696 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3697 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3698 | else | |
3699 | AR_FOR_BUILD="\$(AR)" | |
3700 | AS_FOR_BUILD="\$(AS)" | |
a4af6a58 | 3701 | CC_FOR_BUILD="\$(CC)" |
93c5e793 | 3702 | CXX_FOR_BUILD="\$(CXX)" |
3703 | GCJ_FOR_BUILD="\$(GCJ)" | |
3704 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
5ff5b630 | 3705 | GOC_FOR_BUILD="\$(GOC)" |
93c5e793 | 3706 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3707 | LD_FOR_BUILD="\$(LD)" | |
3708 | NM_FOR_BUILD="\$(NM)" | |
3709 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3710 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3711 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
eae5b2bc | 3712 | fi |
3713 | ||
3714 | ac_ext=c | |
b30fcfae | 3715 | ac_cpp='$CPP $CPPFLAGS' |
3716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3719 | if test -n "$ac_tool_prefix"; then | |
3720 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3721 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3723 | $as_echo_n "checking for $ac_word... " >&6; } | |
3724 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3725 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 3726 | else |
3727 | if test -n "$CC"; then | |
3728 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3729 | else | |
3730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3731 | for as_dir in $PATH | |
3732 | do | |
3733 | IFS=$as_save_IFS | |
3734 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3735 | for ac_exec_ext in '' $ac_executable_extensions; do |
3736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3737 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3739 | break 2 |
3740 | fi | |
3741 | done | |
cd9a469c | 3742 | done |
3743 | IFS=$as_save_IFS | |
b30fcfae | 3744 | |
3745 | fi | |
3746 | fi | |
3747 | CC=$ac_cv_prog_CC | |
3748 | if test -n "$CC"; then | |
cd9a469c | 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3750 | $as_echo "$CC" >&6; } | |
b30fcfae | 3751 | else |
cd9a469c | 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3753 | $as_echo "no" >&6; } | |
b30fcfae | 3754 | fi |
3755 | ||
cd9a469c | 3756 | |
b30fcfae | 3757 | fi |
3758 | if test -z "$ac_cv_prog_CC"; then | |
3759 | ac_ct_CC=$CC | |
a4af6a58 | 3760 | # Extract the first word of "gcc", so it can be a program name with args. |
3761 | set dummy gcc; ac_word=$2 | |
cd9a469c | 3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3763 | $as_echo_n "checking for $ac_word... " >&6; } | |
3764 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3765 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 3766 | else |
3767 | if test -n "$ac_ct_CC"; then | |
3768 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3769 | else | |
3770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3771 | for as_dir in $PATH | |
3772 | do | |
3773 | IFS=$as_save_IFS | |
3774 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3775 | for ac_exec_ext in '' $ac_executable_extensions; do |
3776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3777 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 3778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3779 | break 2 |
3780 | fi | |
3781 | done | |
cd9a469c | 3782 | done |
3783 | IFS=$as_save_IFS | |
b30fcfae | 3784 | |
3785 | fi | |
3786 | fi | |
3787 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3788 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3790 | $as_echo "$ac_ct_CC" >&6; } | |
b30fcfae | 3791 | else |
cd9a469c | 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3793 | $as_echo "no" >&6; } | |
b30fcfae | 3794 | fi |
3795 | ||
cd9a469c | 3796 | if test "x$ac_ct_CC" = x; then |
3797 | CC="" | |
3798 | else | |
3799 | case $cross_compiling:$ac_tool_warned in | |
3800 | yes:) | |
3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3802 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3803 | ac_tool_warned=yes ;; | |
3804 | esac | |
3805 | CC=$ac_ct_CC | |
3806 | fi | |
b30fcfae | 3807 | else |
3808 | CC="$ac_cv_prog_CC" | |
3809 | fi | |
3810 | ||
3811 | if test -z "$CC"; then | |
cd9a469c | 3812 | if test -n "$ac_tool_prefix"; then |
3813 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b30fcfae | 3814 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3816 | $as_echo_n "checking for $ac_word... " >&6; } | |
3817 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3818 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 3819 | else |
3820 | if test -n "$CC"; then | |
3821 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3822 | else | |
b30fcfae | 3823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3824 | for as_dir in $PATH | |
3825 | do | |
3826 | IFS=$as_save_IFS | |
3827 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3828 | for ac_exec_ext in '' $ac_executable_extensions; do |
3829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3830 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 3831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3832 | break 2 |
3833 | fi | |
3834 | done | |
cd9a469c | 3835 | done |
3836 | IFS=$as_save_IFS | |
b30fcfae | 3837 | |
a83ffacf | 3838 | fi |
a83ffacf | 3839 | fi |
b30fcfae | 3840 | CC=$ac_cv_prog_CC |
ae48753c | 3841 | if test -n "$CC"; then |
cd9a469c | 3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3843 | $as_echo "$CC" >&6; } | |
5084f823 | 3844 | else |
cd9a469c | 3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3846 | $as_echo "no" >&6; } | |
5084f823 | 3847 | fi |
3848 | ||
5084f823 | 3849 | |
cd9a469c | 3850 | fi |
b30fcfae | 3851 | fi |
8e1fea1a | 3852 | if test -z "$CC"; then |
3853 | # Extract the first word of "cc", so it can be a program name with args. | |
3854 | set dummy cc; ac_word=$2 | |
cd9a469c | 3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3856 | $as_echo_n "checking for $ac_word... " >&6; } | |
3857 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3858 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 3859 | else |
3860 | if test -n "$CC"; then | |
3861 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3862 | else | |
a83ffacf | 3863 | ac_prog_rejected=no |
b30fcfae | 3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3865 | for as_dir in $PATH | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3869 | for ac_exec_ext in '' $ac_executable_extensions; do |
3870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3871 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3872 | ac_prog_rejected=yes | |
3873 | continue | |
3874 | fi | |
3875 | ac_cv_prog_CC="cc" | |
cd9a469c | 3876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3877 | break 2 |
3878 | fi | |
3879 | done | |
cd9a469c | 3880 | done |
3881 | IFS=$as_save_IFS | |
b30fcfae | 3882 | |
8e1fea1a | 3883 | if test $ac_prog_rejected = yes; then |
3884 | # We found a bogon in the path, so make sure we never use it. | |
3885 | set dummy $ac_cv_prog_CC | |
3886 | shift | |
b30fcfae | 3887 | if test $# != 0; then |
8e1fea1a | 3888 | # We chose a different compiler from the bogus one. |
3889 | # However, it has the same basename, so the bogon will be chosen | |
3890 | # first if we set CC to just the basename; use the full file name. | |
3891 | shift | |
b30fcfae | 3892 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
8e1fea1a | 3893 | fi |
3894 | fi | |
3895 | fi | |
3896 | fi | |
b30fcfae | 3897 | CC=$ac_cv_prog_CC |
8e1fea1a | 3898 | if test -n "$CC"; then |
cd9a469c | 3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3900 | $as_echo "$CC" >&6; } | |
8e1fea1a | 3901 | else |
cd9a469c | 3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3903 | $as_echo "no" >&6; } | |
8e1fea1a | 3904 | fi |
3905 | ||
cd9a469c | 3906 | |
b30fcfae | 3907 | fi |
3908 | if test -z "$CC"; then | |
3909 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 3910 | for ac_prog in cl.exe |
b30fcfae | 3911 | do |
3912 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3913 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3915 | $as_echo_n "checking for $ac_word... " >&6; } | |
3916 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3917 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 3918 | else |
3919 | if test -n "$CC"; then | |
3920 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3921 | else | |
b30fcfae | 3922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3923 | for as_dir in $PATH | |
3924 | do | |
3925 | IFS=$as_save_IFS | |
3926 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3927 | for ac_exec_ext in '' $ac_executable_extensions; do |
3928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3929 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 3930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3931 | break 2 |
3932 | fi | |
3933 | done | |
cd9a469c | 3934 | done |
3935 | IFS=$as_save_IFS | |
b30fcfae | 3936 | |
8e1fea1a | 3937 | fi |
3938 | fi | |
b30fcfae | 3939 | CC=$ac_cv_prog_CC |
8e1fea1a | 3940 | if test -n "$CC"; then |
cd9a469c | 3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3942 | $as_echo "$CC" >&6; } | |
b1660f25 | 3943 | else |
cd9a469c | 3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3945 | $as_echo "no" >&6; } | |
a4af6a58 | 3946 | fi |
ae48753c | 3947 | |
cd9a469c | 3948 | |
b30fcfae | 3949 | test -n "$CC" && break |
3950 | done | |
ae48753c | 3951 | fi |
b30fcfae | 3952 | if test -z "$CC"; then |
3953 | ac_ct_CC=$CC | |
cd9a469c | 3954 | for ac_prog in cl.exe |
b30fcfae | 3955 | do |
3956 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3957 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3959 | $as_echo_n "checking for $ac_word... " >&6; } | |
3960 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3961 | $as_echo_n "(cached) " >&6 | |
a83ffacf | 3962 | else |
b30fcfae | 3963 | if test -n "$ac_ct_CC"; then |
3964 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a83ffacf | 3965 | else |
b30fcfae | 3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3967 | for as_dir in $PATH | |
3968 | do | |
3969 | IFS=$as_save_IFS | |
3970 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3971 | for ac_exec_ext in '' $ac_executable_extensions; do |
3972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 3973 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 3974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 3975 | break 2 |
3976 | fi | |
3977 | done | |
cd9a469c | 3978 | done |
3979 | IFS=$as_save_IFS | |
b30fcfae | 3980 | |
ae48753c | 3981 | fi |
3982 | fi | |
b30fcfae | 3983 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3984 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3986 | $as_echo "$ac_ct_CC" >&6; } | |
a4af6a58 | 3987 | else |
cd9a469c | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3989 | $as_echo "no" >&6; } | |
ae48753c | 3990 | fi |
a83ffacf | 3991 | |
cd9a469c | 3992 | |
b30fcfae | 3993 | test -n "$ac_ct_CC" && break |
3994 | done | |
3995 | ||
cd9a469c | 3996 | if test "x$ac_ct_CC" = x; then |
3997 | CC="" | |
3998 | else | |
3999 | case $cross_compiling:$ac_tool_warned in | |
4000 | yes:) | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4003 | ac_tool_warned=yes ;; | |
4004 | esac | |
4005 | CC=$ac_ct_CC | |
4006 | fi | |
b30fcfae | 4007 | fi |
4008 | ||
4009 | fi | |
4010 | ||
4011 | ||
cd9a469c | 4012 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4014 | as_fn_error "no acceptable C compiler found in \$PATH | |
4015 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4016 | |
4017 | # Provide some information about the compiler. | |
cd9a469c | 4018 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4019 | set X $ac_compile | |
4020 | ac_compiler=$2 | |
4021 | for ac_option in --version -v -V -qversion; do | |
4022 | { { ac_try="$ac_compiler $ac_option >&5" | |
4023 | case "(($ac_try" in | |
4024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4025 | *) ac_try_echo=$ac_try;; | |
4026 | esac | |
4027 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4028 | $as_echo "$ac_try_echo"; } >&5 | |
4029 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b30fcfae | 4030 | ac_status=$? |
cd9a469c | 4031 | if test -s conftest.err; then |
4032 | sed '10a\ | |
4033 | ... rest of stderr output deleted ... | |
4034 | 10q' conftest.err >conftest.er1 | |
4035 | cat conftest.er1 >&5 | |
4036 | rm -f conftest.er1 conftest.err | |
4037 | fi | |
4038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4039 | test $ac_status = 0; } | |
4040 | done | |
b30fcfae | 4041 | |
cd9a469c | 4042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4043 | /* end confdefs.h. */ |
4044 | ||
4045 | int | |
4046 | main () | |
4047 | { | |
4048 | ||
4049 | ; | |
4050 | return 0; | |
4051 | } | |
4052 | _ACEOF | |
4053 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 4054 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
b30fcfae | 4055 | # Try to create an executable without -o first, disregard a.out. |
4056 | # It will help us diagnose broken compilers, and finding out an intuition | |
4057 | # of exeext. | |
cd9a469c | 4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4059 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4060 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4061 | ||
4062 | # The possible output files: | |
4063 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4064 | ||
4065 | ac_rmfiles= | |
4066 | for ac_file in $ac_files | |
4067 | do | |
4068 | case $ac_file in | |
4069 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4070 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4071 | esac | |
4072 | done | |
4073 | rm -f $ac_rmfiles | |
4074 | ||
4075 | if { { ac_try="$ac_link_default" | |
4076 | case "(($ac_try" in | |
4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4078 | *) ac_try_echo=$ac_try;; | |
4079 | esac | |
4080 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4081 | $as_echo "$ac_try_echo"; } >&5 | |
4082 | (eval "$ac_link_default") 2>&5 | |
b30fcfae | 4083 | ac_status=$? |
cd9a469c | 4084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4085 | test $ac_status = 0; }; then : | |
4086 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4087 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4088 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4089 | # so that the user can short-circuit this test for compilers unknown to | |
4090 | # Autoconf. | |
4091 | for ac_file in $ac_files '' | |
b30fcfae | 4092 | do |
4093 | test -f "$ac_file" || continue | |
4094 | case $ac_file in | |
cd9a469c | 4095 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b30fcfae | 4096 | ;; |
4097 | [ab].out ) | |
4098 | # We found the default executable, but exeext='' is most | |
4099 | # certainly right. | |
4100 | break;; | |
4101 | *.* ) | |
cd9a469c | 4102 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4103 | then :; else | |
4104 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4105 | fi | |
4106 | # We set ac_cv_exeext here because the later test for it is not | |
4107 | # safe: cross compilers may not add the suffix if given an `-o' | |
4108 | # argument, so we may need to know it at that point already. | |
4109 | # Even if this section looks crufty: it has the advantage of | |
4110 | # actually working. | |
b30fcfae | 4111 | break;; |
4112 | * ) | |
4113 | break;; | |
4114 | esac | |
4115 | done | |
cd9a469c | 4116 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4117 | ||
b30fcfae | 4118 | else |
cd9a469c | 4119 | ac_file='' |
4120 | fi | |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4122 | $as_echo "$ac_file" >&6; } | |
4123 | if test -z "$ac_file"; then : | |
4124 | $as_echo "$as_me: failed program was:" >&5 | |
b30fcfae | 4125 | sed 's/^/| /' conftest.$ac_ext >&5 |
4126 | ||
cd9a469c | 4127 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4128 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4129 | { as_fn_set_status 77 | |
4130 | as_fn_error "C compiler cannot create executables | |
4131 | See \`config.log' for more details." "$LINENO" 5; }; } | |
b30fcfae | 4132 | fi |
b30fcfae | 4133 | ac_exeext=$ac_cv_exeext |
b30fcfae | 4134 | |
cd9a469c | 4135 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4136 | # the compiler is broken, or we cross compile. |
cd9a469c | 4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4138 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b30fcfae | 4139 | # If not cross compiling, check that we can run a simple program. |
4140 | if test "$cross_compiling" != yes; then | |
4141 | if { ac_try='./$ac_file' | |
cd9a469c | 4142 | { { case "(($ac_try" in |
4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4144 | *) ac_try_echo=$ac_try;; | |
4145 | esac | |
4146 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4147 | $as_echo "$ac_try_echo"; } >&5 | |
4148 | (eval "$ac_try") 2>&5 | |
b30fcfae | 4149 | ac_status=$? |
cd9a469c | 4150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4151 | test $ac_status = 0; }; }; then | |
b30fcfae | 4152 | cross_compiling=no |
4153 | else | |
4154 | if test "$cross_compiling" = maybe; then | |
4155 | cross_compiling=yes | |
4156 | else | |
cd9a469c | 4157 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4158 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4159 | as_fn_error "cannot run C compiled programs. | |
b30fcfae | 4160 | If you meant to cross compile, use \`--host'. |
cd9a469c | 4161 | See \`config.log' for more details." "$LINENO" 5; } |
b30fcfae | 4162 | fi |
4163 | fi | |
4164 | fi | |
cd9a469c | 4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4166 | $as_echo "yes" >&6; } | |
b30fcfae | 4167 | |
cd9a469c | 4168 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
b30fcfae | 4169 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4170 | # Check that the compiler produces executables we can run. If not, either |
b30fcfae | 4171 | # the compiler is broken, or we cross compile. |
cd9a469c | 4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4173 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4175 | $as_echo "$cross_compiling" >&6; } | |
4176 | ||
4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4178 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4179 | if { { ac_try="$ac_link" | |
4180 | case "(($ac_try" in | |
4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4182 | *) ac_try_echo=$ac_try;; | |
4183 | esac | |
4184 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4185 | $as_echo "$ac_try_echo"; } >&5 | |
4186 | (eval "$ac_link") 2>&5 | |
b30fcfae | 4187 | ac_status=$? |
cd9a469c | 4188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4189 | test $ac_status = 0; }; then : | |
b30fcfae | 4190 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4191 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4192 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4193 | # `rm'. | |
4194 | for ac_file in conftest.exe conftest conftest.*; do | |
4195 | test -f "$ac_file" || continue | |
4196 | case $ac_file in | |
cd9a469c | 4197 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b30fcfae | 4198 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b30fcfae | 4199 | break;; |
4200 | * ) break;; | |
4201 | esac | |
4202 | done | |
ae48753c | 4203 | else |
cd9a469c | 4204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4206 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4207 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4208 | fi |
b30fcfae | 4209 | rm -f conftest$ac_cv_exeext |
cd9a469c | 4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4211 | $as_echo "$ac_cv_exeext" >&6; } | |
b30fcfae | 4212 | |
4213 | rm -f conftest.$ac_ext | |
4214 | EXEEXT=$ac_cv_exeext | |
4215 | ac_exeext=$EXEEXT | |
cd9a469c | 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4217 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4218 | if test "${ac_cv_objext+set}" = set; then : | |
4219 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4220 | else |
cd9a469c | 4221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4222 | /* end confdefs.h. */ |
4223 | ||
4224 | int | |
4225 | main () | |
4226 | { | |
4227 | ||
4228 | ; | |
4229 | return 0; | |
4230 | } | |
4231 | _ACEOF | |
4232 | rm -f conftest.o conftest.obj | |
cd9a469c | 4233 | if { { ac_try="$ac_compile" |
4234 | case "(($ac_try" in | |
4235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4236 | *) ac_try_echo=$ac_try;; | |
4237 | esac | |
4238 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4239 | $as_echo "$ac_try_echo"; } >&5 | |
4240 | (eval "$ac_compile") 2>&5 | |
b30fcfae | 4241 | ac_status=$? |
cd9a469c | 4242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4243 | test $ac_status = 0; }; then : | |
4244 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4245 | test -f "$ac_file" || continue; | |
b30fcfae | 4246 | case $ac_file in |
cd9a469c | 4247 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b30fcfae | 4248 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4249 | break;; | |
4250 | esac | |
4251 | done | |
4252 | else | |
cd9a469c | 4253 | $as_echo "$as_me: failed program was:" >&5 |
b30fcfae | 4254 | sed 's/^/| /' conftest.$ac_ext >&5 |
4255 | ||
cd9a469c | 4256 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4257 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4258 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4259 | See \`config.log' for more details." "$LINENO" 5; } | |
b30fcfae | 4260 | fi |
b30fcfae | 4261 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4262 | fi | |
cd9a469c | 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4264 | $as_echo "$ac_cv_objext" >&6; } | |
b30fcfae | 4265 | OBJEXT=$ac_cv_objext |
4266 | ac_objext=$OBJEXT | |
cd9a469c | 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4268 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4269 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4270 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4271 | else |
cd9a469c | 4272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4273 | /* end confdefs.h. */ |
4274 | ||
4275 | int | |
4276 | main () | |
4277 | { | |
4278 | #ifndef __GNUC__ | |
4279 | choke me | |
4280 | #endif | |
4281 | ||
4282 | ; | |
4283 | return 0; | |
4284 | } | |
4285 | _ACEOF | |
cd9a469c | 4286 | if ac_fn_c_try_compile "$LINENO"; then : |
b30fcfae | 4287 | ac_compiler_gnu=yes |
4288 | else | |
cd9a469c | 4289 | ac_compiler_gnu=no |
b30fcfae | 4290 | fi |
cd9a469c | 4291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4292 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4293 | ||
4294 | fi | |
cd9a469c | 4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4296 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4297 | if test $ac_compiler_gnu = yes; then | |
4298 | GCC=yes | |
4299 | else | |
4300 | GCC= | |
4301 | fi | |
b30fcfae | 4302 | ac_test_CFLAGS=${CFLAGS+set} |
4303 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4305 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4306 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4307 | $as_echo_n "(cached) " >&6 | |
4308 | else | |
4309 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4310 | ac_c_werror_flag=yes | |
4311 | ac_cv_prog_cc_g=no | |
4312 | CFLAGS="-g" | |
4313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 4314 | /* end confdefs.h. */ |
4315 | ||
4316 | int | |
4317 | main () | |
4318 | { | |
4319 | ||
4320 | ; | |
4321 | return 0; | |
4322 | } | |
4323 | _ACEOF | |
cd9a469c | 4324 | if ac_fn_c_try_compile "$LINENO"; then : |
8e1fea1a | 4325 | ac_cv_prog_cc_g=yes |
4326 | else | |
cd9a469c | 4327 | CFLAGS="" |
4328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4329 | /* end confdefs.h. */ | |
4330 | ||
4331 | int | |
4332 | main () | |
4333 | { | |
4334 | ||
4335 | ; | |
4336 | return 0; | |
4337 | } | |
4338 | _ACEOF | |
4339 | if ac_fn_c_try_compile "$LINENO"; then : | |
4340 | ||
4341 | else | |
4342 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4343 | CFLAGS="-g" | |
4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4345 | /* end confdefs.h. */ | |
ae48753c | 4346 | |
cd9a469c | 4347 | int |
4348 | main () | |
4349 | { | |
4350 | ||
4351 | ; | |
4352 | return 0; | |
4353 | } | |
4354 | _ACEOF | |
4355 | if ac_fn_c_try_compile "$LINENO"; then : | |
4356 | ac_cv_prog_cc_g=yes | |
4357 | fi | |
4358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a83ffacf | 4359 | fi |
cd9a469c | 4360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b30fcfae | 4361 | fi |
cd9a469c | 4362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4363 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4364 | fi | |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4366 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
8e1fea1a | 4367 | if test "$ac_test_CFLAGS" = set; then |
b30fcfae | 4368 | CFLAGS=$ac_save_CFLAGS |
8e1fea1a | 4369 | elif test $ac_cv_prog_cc_g = yes; then |
4370 | if test "$GCC" = yes; then | |
4371 | CFLAGS="-g -O2" | |
4372 | else | |
4373 | CFLAGS="-g" | |
4374 | fi | |
4375 | else | |
4376 | if test "$GCC" = yes; then | |
4377 | CFLAGS="-O2" | |
4378 | else | |
4379 | CFLAGS= | |
4380 | fi | |
4381 | fi | |
cd9a469c | 4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4383 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4384 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4385 | $as_echo_n "(cached) " >&6 | |
b30fcfae | 4386 | else |
cd9a469c | 4387 | ac_cv_prog_cc_c89=no |
b30fcfae | 4388 | ac_save_CC=$CC |
cd9a469c | 4389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 4390 | /* end confdefs.h. */ |
4391 | #include <stdarg.h> | |
4392 | #include <stdio.h> | |
4393 | #include <sys/types.h> | |
4394 | #include <sys/stat.h> | |
4395 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4396 | struct buf { int x; }; | |
4397 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4398 | static char *e (p, i) | |
4399 | char **p; | |
4400 | int i; | |
4401 | { | |
4402 | return p[i]; | |
4403 | } | |
4404 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4405 | { | |
4406 | char *s; | |
4407 | va_list v; | |
4408 | va_start (v,p); | |
4409 | s = g (p, va_arg (v,int)); | |
4410 | va_end (v); | |
4411 | return s; | |
4412 | } | |
4413 | ||
4414 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4415 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4416 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4417 | as 'x'. The following induces an error, until -std is added to get |
b30fcfae | 4418 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4419 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4420 | that's true only with -std. */ |
b30fcfae | 4421 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4422 | ||
cd9a469c | 4423 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4424 | inside strings and character constants. */ | |
4425 | #define FOO(x) 'x' | |
4426 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4427 | ||
b30fcfae | 4428 | int test (int i, double x); |
4429 | struct s1 {int (*f) (int a);}; | |
4430 | struct s2 {int (*f) (double a);}; | |
4431 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4432 | int argc; | |
4433 | char **argv; | |
4434 | int | |
4435 | main () | |
4436 | { | |
4437 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4438 | ; | |
4439 | return 0; | |
4440 | } | |
4441 | _ACEOF | |
cd9a469c | 4442 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4443 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b30fcfae | 4444 | do |
4445 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4446 | if ac_fn_c_try_compile "$LINENO"; then : |
4447 | ac_cv_prog_cc_c89=$ac_arg | |
b30fcfae | 4448 | fi |
cd9a469c | 4449 | rm -f core conftest.err conftest.$ac_objext |
4450 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b30fcfae | 4451 | done |
cd9a469c | 4452 | rm -f conftest.$ac_ext |
b30fcfae | 4453 | CC=$ac_save_CC |
4454 | ||
4455 | fi | |
cd9a469c | 4456 | # AC_CACHE_VAL |
4457 | case "x$ac_cv_prog_cc_c89" in | |
4458 | x) | |
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4460 | $as_echo "none needed" >&6; } ;; | |
4461 | xno) | |
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4463 | $as_echo "unsupported" >&6; } ;; | |
b30fcfae | 4464 | *) |
cd9a469c | 4465 | CC="$CC $ac_cv_prog_cc_c89" |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4467 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b30fcfae | 4468 | esac |
cd9a469c | 4469 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b30fcfae | 4470 | |
5084f823 | 4471 | fi |
4472 | ||
5084f823 | 4473 | ac_ext=c |
4474 | ac_cpp='$CPP $CPPFLAGS' | |
4475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4478 | ||
cd9a469c | 4479 | ac_ext=cpp |
5084f823 | 4480 | ac_cpp='$CXXCPP $CPPFLAGS' |
4481 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4482 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4483 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
cd9a469c | 4484 | if test -z "$CXX"; then |
4485 | if test -n "$CCC"; then | |
4486 | CXX=$CCC | |
4487 | else | |
4488 | if test -n "$ac_tool_prefix"; then | |
4489 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5084f823 | 4490 | do |
4491 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4492 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4494 | $as_echo_n "checking for $ac_word... " >&6; } | |
4495 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4496 | $as_echo_n "(cached) " >&6 | |
5084f823 | 4497 | else |
4498 | if test -n "$CXX"; then | |
4499 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4500 | else | |
4501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4502 | for as_dir in $PATH | |
4503 | do | |
4504 | IFS=$as_save_IFS | |
4505 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4506 | for ac_exec_ext in '' $ac_executable_extensions; do |
4507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084f823 | 4508 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cd9a469c | 4509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5084f823 | 4510 | break 2 |
4511 | fi | |
4512 | done | |
cd9a469c | 4513 | done |
4514 | IFS=$as_save_IFS | |
8e1fea1a | 4515 | |
eae5b2bc | 4516 | fi |
4517 | fi | |
4518 | CXX=$ac_cv_prog_CXX | |
4519 | if test -n "$CXX"; then | |
cd9a469c | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4521 | $as_echo "$CXX" >&6; } | |
eae5b2bc | 4522 | else |
cd9a469c | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4524 | $as_echo "no" >&6; } | |
eae5b2bc | 4525 | fi |
4526 | ||
cd9a469c | 4527 | |
eae5b2bc | 4528 | test -n "$CXX" && break |
4529 | done | |
4530 | fi | |
4531 | if test -z "$CXX"; then | |
4532 | ac_ct_CXX=$CXX | |
cd9a469c | 4533 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
eae5b2bc | 4534 | do |
4535 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4536 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4538 | $as_echo_n "checking for $ac_word... " >&6; } | |
4539 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4540 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4541 | else |
4542 | if test -n "$ac_ct_CXX"; then | |
4543 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4544 | else | |
4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4546 | for as_dir in $PATH | |
4547 | do | |
4548 | IFS=$as_save_IFS | |
4549 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4550 | for ac_exec_ext in '' $ac_executable_extensions; do |
4551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
eae5b2bc | 4552 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cd9a469c | 4553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
eae5b2bc | 4554 | break 2 |
4555 | fi | |
4556 | done | |
cd9a469c | 4557 | done |
4558 | IFS=$as_save_IFS | |
eae5b2bc | 4559 | |
4560 | fi | |
4561 | fi | |
4562 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4563 | if test -n "$ac_ct_CXX"; then | |
cd9a469c | 4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4565 | $as_echo "$ac_ct_CXX" >&6; } | |
eae5b2bc | 4566 | else |
cd9a469c | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4568 | $as_echo "no" >&6; } | |
eae5b2bc | 4569 | fi |
4570 | ||
cd9a469c | 4571 | |
eae5b2bc | 4572 | test -n "$ac_ct_CXX" && break |
4573 | done | |
eae5b2bc | 4574 | |
cd9a469c | 4575 | if test "x$ac_ct_CXX" = x; then |
4576 | CXX="g++" | |
4577 | else | |
4578 | case $cross_compiling:$ac_tool_warned in | |
4579 | yes:) | |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4581 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4582 | ac_tool_warned=yes ;; | |
4583 | esac | |
4584 | CXX=$ac_ct_CXX | |
4585 | fi | |
eae5b2bc | 4586 | fi |
4587 | ||
cd9a469c | 4588 | fi |
4589 | fi | |
eae5b2bc | 4590 | # Provide some information about the compiler. |
cd9a469c | 4591 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4592 | set X $ac_compile | |
4593 | ac_compiler=$2 | |
4594 | for ac_option in --version -v -V -qversion; do | |
4595 | { { ac_try="$ac_compiler $ac_option >&5" | |
4596 | case "(($ac_try" in | |
4597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4598 | *) ac_try_echo=$ac_try;; | |
4599 | esac | |
4600 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4601 | $as_echo "$ac_try_echo"; } >&5 | |
4602 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
eae5b2bc | 4603 | ac_status=$? |
cd9a469c | 4604 | if test -s conftest.err; then |
4605 | sed '10a\ | |
4606 | ... rest of stderr output deleted ... | |
4607 | 10q' conftest.err >conftest.er1 | |
4608 | cat conftest.er1 >&5 | |
4609 | rm -f conftest.er1 conftest.err | |
4610 | fi | |
4611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4612 | test $ac_status = 0; } | |
4613 | done | |
eae5b2bc | 4614 | |
cd9a469c | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4616 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4617 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4618 | $as_echo_n "(cached) " >&6 | |
eae5b2bc | 4619 | else |
cd9a469c | 4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eae5b2bc | 4621 | /* end confdefs.h. */ |
4622 | ||
4623 | int | |
4624 | main () | |
4625 | { | |
4626 | #ifndef __GNUC__ | |
4627 | choke me | |
4628 | #endif | |
4629 | ||
4630 | ; | |
4631 | return 0; | |
4632 | } | |
4633 | _ACEOF | |
cd9a469c | 4634 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4635 | ac_compiler_gnu=yes |
4636 | else | |
cd9a469c | 4637 | ac_compiler_gnu=no |
eae5b2bc | 4638 | fi |
cd9a469c | 4639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eae5b2bc | 4640 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4641 | ||
4642 | fi | |
cd9a469c | 4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4644 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4645 | if test $ac_compiler_gnu = yes; then | |
4646 | GXX=yes | |
4647 | else | |
4648 | GXX= | |
4649 | fi | |
eae5b2bc | 4650 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4651 | ac_save_CXXFLAGS=$CXXFLAGS | |
cd9a469c | 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4653 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4654 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4655 | $as_echo_n "(cached) " >&6 | |
4656 | else | |
4657 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4658 | ac_cxx_werror_flag=yes | |
4659 | ac_cv_prog_cxx_g=no | |
4660 | CXXFLAGS="-g" | |
4661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4662 | /* end confdefs.h. */ |
4663 | ||
4664 | int | |
4665 | main () | |
4666 | { | |
4667 | ||
4668 | ; | |
4669 | return 0; | |
4670 | } | |
4671 | _ACEOF | |
cd9a469c | 4672 | if ac_fn_cxx_try_compile "$LINENO"; then : |
eae5b2bc | 4673 | ac_cv_prog_cxx_g=yes |
4674 | else | |
cd9a469c | 4675 | CXXFLAGS="" |
4676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4677 | /* end confdefs.h. */ |
cd9a469c | 4678 | |
eae5b2bc | 4679 | int |
4680 | main () | |
4681 | { | |
cd9a469c | 4682 | |
eae5b2bc | 4683 | ; |
4684 | return 0; | |
4685 | } | |
4686 | _ACEOF | |
cd9a469c | 4687 | if ac_fn_cxx_try_compile "$LINENO"; then : |
2f8725b0 | 4688 | |
cd9a469c | 4689 | else |
4690 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4691 | CXXFLAGS="-g" | |
4692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eae5b2bc | 4693 | /* end confdefs.h. */ |
cd9a469c | 4694 | |
eae5b2bc | 4695 | int |
4696 | main () | |
4697 | { | |
cd9a469c | 4698 | |
eae5b2bc | 4699 | ; |
4700 | return 0; | |
4701 | } | |
4702 | _ACEOF | |
cd9a469c | 4703 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4704 | ac_cv_prog_cxx_g=yes | |
570af75a | 4705 | fi |
cd9a469c | 4706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4707 | fi | |
4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4709 | fi | |
4710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4711 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4712 | fi | |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4714 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4715 | if test "$ac_test_CXXFLAGS" = set; then | |
4716 | CXXFLAGS=$ac_save_CXXFLAGS | |
4717 | elif test $ac_cv_prog_cxx_g = yes; then | |
4718 | if test "$GXX" = yes; then | |
4719 | CXXFLAGS="-g -O2" | |
4720 | else | |
4721 | CXXFLAGS="-g" | |
4722 | fi | |
4723 | else | |
4724 | if test "$GXX" = yes; then | |
4725 | CXXFLAGS="-O2" | |
4726 | else | |
4727 | CXXFLAGS= | |
4728 | fi | |
eae5b2bc | 4729 | fi |
eae5b2bc | 4730 | ac_ext=c |
4731 | ac_cpp='$CPP $CPPFLAGS' | |
4732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4735 | ||
4736 | ||
4737 | # We must set the default linker to the linker used by gcc for the correct | |
4738 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4739 | # set the LD default to the ld used by gcc. | |
4740 | if test -z "$LD"; then | |
4741 | if test "$GCC" = yes; then | |
4742 | case $build in | |
4743 | *-*-mingw*) | |
4744 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4745 | *) | |
4746 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4747 | esac | |
4748 | case $gcc_prog_ld in | |
4749 | # Accept absolute paths. | |
4750 | [\\/]* | [A-Za-z]:[\\/]*) | |
4751 | LD="$gcc_prog_ld" ;; | |
4752 | esac | |
4753 | fi | |
2f8725b0 | 4754 | fi |
4755 | ||
2f8725b0 | 4756 | |
4757 | ||
8e1fea1a | 4758 | |
b30fcfae | 4759 | if test -n "$ac_tool_prefix"; then |
4760 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
8e1fea1a | 4761 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
cd9a469c | 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4763 | $as_echo_n "checking for $ac_word... " >&6; } | |
4764 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4765 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4766 | else |
4767 | if test -n "$GNATBIND"; then | |
4768 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4769 | else | |
b30fcfae | 4770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4771 | for as_dir in $PATH | |
4772 | do | |
4773 | IFS=$as_save_IFS | |
4774 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4775 | for ac_exec_ext in '' $ac_executable_extensions; do |
4776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4777 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
cd9a469c | 4778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4779 | break 2 |
4780 | fi | |
4781 | done | |
cd9a469c | 4782 | done |
4783 | IFS=$as_save_IFS | |
b30fcfae | 4784 | |
8e1fea1a | 4785 | fi |
4786 | fi | |
b30fcfae | 4787 | GNATBIND=$ac_cv_prog_GNATBIND |
8e1fea1a | 4788 | if test -n "$GNATBIND"; then |
cd9a469c | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4790 | $as_echo "$GNATBIND" >&6; } | |
8e1fea1a | 4791 | else |
cd9a469c | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4793 | $as_echo "no" >&6; } | |
8e1fea1a | 4794 | fi |
4795 | ||
cd9a469c | 4796 | |
b30fcfae | 4797 | fi |
8e1fea1a | 4798 | if test -z "$ac_cv_prog_GNATBIND"; then |
b30fcfae | 4799 | ac_ct_GNATBIND=$GNATBIND |
8e1fea1a | 4800 | # Extract the first word of "gnatbind", so it can be a program name with args. |
4801 | set dummy gnatbind; ac_word=$2 | |
cd9a469c | 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4803 | $as_echo_n "checking for $ac_word... " >&6; } | |
4804 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4805 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4806 | else |
b30fcfae | 4807 | if test -n "$ac_ct_GNATBIND"; then |
4808 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
8e1fea1a | 4809 | else |
b30fcfae | 4810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4811 | for as_dir in $PATH | |
4812 | do | |
4813 | IFS=$as_save_IFS | |
4814 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4815 | for ac_exec_ext in '' $ac_executable_extensions; do |
4816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4817 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
cd9a469c | 4818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4819 | break 2 |
4820 | fi | |
4821 | done | |
cd9a469c | 4822 | done |
4823 | IFS=$as_save_IFS | |
b30fcfae | 4824 | |
8e1fea1a | 4825 | fi |
4826 | fi | |
b30fcfae | 4827 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4828 | if test -n "$ac_ct_GNATBIND"; then | |
cd9a469c | 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4830 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
8e1fea1a | 4831 | else |
cd9a469c | 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4833 | $as_echo "no" >&6; } | |
8e1fea1a | 4834 | fi |
4835 | ||
cd9a469c | 4836 | if test "x$ac_ct_GNATBIND" = x; then |
4837 | GNATBIND="no" | |
4838 | else | |
4839 | case $cross_compiling:$ac_tool_warned in | |
4840 | yes:) | |
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4843 | ac_tool_warned=yes ;; | |
4844 | esac | |
4845 | GNATBIND=$ac_ct_GNATBIND | |
4846 | fi | |
8e1fea1a | 4847 | else |
b30fcfae | 4848 | GNATBIND="$ac_cv_prog_GNATBIND" |
8e1fea1a | 4849 | fi |
4850 | ||
b30fcfae | 4851 | if test -n "$ac_tool_prefix"; then |
4852 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
a18b2c54 | 4853 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
cd9a469c | 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4855 | $as_echo_n "checking for $ac_word... " >&6; } | |
4856 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4857 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 4858 | else |
4859 | if test -n "$GNATMAKE"; then | |
4860 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4861 | else | |
b30fcfae | 4862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4863 | for as_dir in $PATH | |
4864 | do | |
4865 | IFS=$as_save_IFS | |
4866 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4867 | for ac_exec_ext in '' $ac_executable_extensions; do |
4868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4869 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
cd9a469c | 4870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4871 | break 2 |
4872 | fi | |
4873 | done | |
cd9a469c | 4874 | done |
4875 | IFS=$as_save_IFS | |
b30fcfae | 4876 | |
a18b2c54 | 4877 | fi |
4878 | fi | |
b30fcfae | 4879 | GNATMAKE=$ac_cv_prog_GNATMAKE |
a18b2c54 | 4880 | if test -n "$GNATMAKE"; then |
cd9a469c | 4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4882 | $as_echo "$GNATMAKE" >&6; } | |
a18b2c54 | 4883 | else |
cd9a469c | 4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4885 | $as_echo "no" >&6; } | |
a18b2c54 | 4886 | fi |
4887 | ||
cd9a469c | 4888 | |
b30fcfae | 4889 | fi |
a18b2c54 | 4890 | if test -z "$ac_cv_prog_GNATMAKE"; then |
b30fcfae | 4891 | ac_ct_GNATMAKE=$GNATMAKE |
a18b2c54 | 4892 | # Extract the first word of "gnatmake", so it can be a program name with args. |
4893 | set dummy gnatmake; ac_word=$2 | |
cd9a469c | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4895 | $as_echo_n "checking for $ac_word... " >&6; } | |
4896 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4897 | $as_echo_n "(cached) " >&6 | |
a18b2c54 | 4898 | else |
b30fcfae | 4899 | if test -n "$ac_ct_GNATMAKE"; then |
4900 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
a18b2c54 | 4901 | else |
b30fcfae | 4902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4903 | for as_dir in $PATH | |
4904 | do | |
4905 | IFS=$as_save_IFS | |
4906 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4907 | for ac_exec_ext in '' $ac_executable_extensions; do |
4908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 4909 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
cd9a469c | 4910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 4911 | break 2 |
4912 | fi | |
4913 | done | |
cd9a469c | 4914 | done |
4915 | IFS=$as_save_IFS | |
b30fcfae | 4916 | |
a18b2c54 | 4917 | fi |
4918 | fi | |
b30fcfae | 4919 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4920 | if test -n "$ac_ct_GNATMAKE"; then | |
cd9a469c | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4922 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
a18b2c54 | 4923 | else |
cd9a469c | 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4925 | $as_echo "no" >&6; } | |
a18b2c54 | 4926 | fi |
4927 | ||
cd9a469c | 4928 | if test "x$ac_ct_GNATMAKE" = x; then |
4929 | GNATMAKE="no" | |
4930 | else | |
4931 | case $cross_compiling:$ac_tool_warned in | |
4932 | yes:) | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4934 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4935 | ac_tool_warned=yes ;; | |
4936 | esac | |
4937 | GNATMAKE=$ac_ct_GNATMAKE | |
4938 | fi | |
a18b2c54 | 4939 | else |
b30fcfae | 4940 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
a18b2c54 | 4941 | fi |
4942 | ||
cd9a469c | 4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4944 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4945 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4946 | $as_echo_n "(cached) " >&6 | |
8e1fea1a | 4947 | else |
4948 | cat >conftest.adb <<EOF | |
4949 | procedure conftest is begin null; end conftest; | |
4950 | EOF | |
4951 | acx_cv_cc_gcc_supports_ada=no | |
4952 | # There is a bug in old released versions of GCC which causes the | |
4953 | # driver to exit successfully when the appropriate language module | |
4954 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4955 | # Therefore we must check for the error message as well as an | |
4956 | # unsuccessful exit. | |
216de822 | 4957 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4958 | # given a .adb file, but produce no object file. So we must check | |
4959 | # if an object file was really produced to guard against this. | |
8e1fea1a | 4960 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
216de822 | 4961 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
8e1fea1a | 4962 | acx_cv_cc_gcc_supports_ada=yes |
8e1fea1a | 4963 | fi |
4964 | rm -f conftest.* | |
4965 | fi | |
cd9a469c | 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4967 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
8e1fea1a | 4968 | |
a18b2c54 | 4969 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
8e1fea1a | 4970 | have_gnat=yes |
4971 | else | |
4972 | have_gnat=no | |
4973 | fi | |
4974 | ||
cd9a469c | 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
4976 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
4977 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
4978 | $as_echo_n "(cached) " >&6 | |
7bcc3b4a | 4979 | else |
4980 | echo abfoo >t1 | |
4981 | echo cdfoo >t2 | |
4982 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
697dfd2c | 4983 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4984 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4985 | : | |
4986 | else | |
4987 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4988 | fi | |
4989 | fi | |
7bcc3b4a | 4990 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4991 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
697dfd2c | 4992 | : |
7bcc3b4a | 4993 | else |
4994 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4995 | fi | |
4996 | fi | |
4997 | rm t1 t2 | |
4998 | ||
4999 | fi | |
cd9a469c | 5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5001 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
7bcc3b4a | 5002 | do_compare="$gcc_cv_prog_cmp_skip" |
5003 | ||
5004 | ||
8e1fea1a | 5005 | |
6c59dfa4 | 5006 | # Check whether --enable-bootstrap was given. |
5007 | if test "${enable_bootstrap+set}" = set; then : | |
5008 | enableval=$enable_bootstrap; | |
5009 | else | |
5010 | enable_bootstrap=default | |
5011 | fi | |
5012 | ||
5013 | ||
5014 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
d7c9b4c1 | 5015 | if test -r $srcdir/gcc/configure; then |
5016 | have_compiler=yes | |
5017 | else | |
5018 | have_compiler=no | |
5019 | fi | |
6c59dfa4 | 5020 | |
5021 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5022 | *:*:*:no) ;; | |
5023 | ||
5024 | # Default behavior. Enable bootstrap if we have a compiler | |
5025 | # and we are in a native configuration. | |
5026 | yes:$build:$build:default) | |
5027 | enable_bootstrap=yes ;; | |
5028 | ||
5029 | *:*:*:default) | |
5030 | enable_bootstrap=no ;; | |
5031 | ||
5032 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5033 | yes:$build:$build:yes) | |
5034 | ;; | |
5035 | ||
5036 | # Other configurations, but we have a compiler. Assume the user knows | |
5037 | # what he's doing. | |
5038 | yes:*:*:yes) | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5040 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5041 | ;; | |
5042 | ||
5043 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5044 | no:*:*:yes) | |
5045 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5046 | ||
5047 | # Fail if wrong command line | |
5048 | *) | |
5049 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5050 | ;; | |
5051 | esac | |
5052 | ||
7ab76cec | 5053 | # See if we are building gcc with C++. |
cd9a469c | 5054 | # Check whether --enable-build-with-cxx was given. |
5055 | if test "${enable_build_with_cxx+set}" = set; then : | |
5056 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
7ab76cec | 5057 | else |
5058 | ENABLE_BUILD_WITH_CXX=no | |
cd9a469c | 5059 | fi |
5060 | ||
7ab76cec | 5061 | |
ef3c41c7 | 5062 | # Build stage1 with C and build stages 2 and 3 with C++. |
5063 | # Check whether --enable-build-poststage1-with-cxx was given. | |
5064 | if test "${enable_build_poststage1_with_cxx+set}" = set; then : | |
5065 | enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval | |
5066 | else | |
5067 | ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes | |
5068 | fi | |
5069 | ||
5070 | ||
c3fc6a63 | 5071 | # Used for setting $lt_cv_objdir |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5073 | $as_echo_n "checking for objdir... " >&6; } | |
5074 | if test "${lt_cv_objdir+set}" = set; then : | |
5075 | $as_echo_n "(cached) " >&6 | |
5076 | else | |
5077 | rm -f .libs 2>/dev/null | |
5078 | mkdir .libs 2>/dev/null | |
5079 | if test -d .libs; then | |
5080 | lt_cv_objdir=.libs | |
5081 | else | |
5082 | # MS-DOS does not allow filenames that begin with a dot. | |
5083 | lt_cv_objdir=_libs | |
5084 | fi | |
5085 | rmdir .libs 2>/dev/null | |
5086 | fi | |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5088 | $as_echo "$lt_cv_objdir" >&6; } | |
5089 | objdir=$lt_cv_objdir | |
5090 | ||
5091 | ||
5092 | ||
5093 | ||
5094 | ||
5095 | cat >>confdefs.h <<_ACEOF | |
5096 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5097 | _ACEOF | |
5098 | ||
5099 | ||
5100 | ||
7601a55c | 5101 | # Check for GMP, MPFR and MPC |
16de6a81 | 5102 | gmplibs="-lmpc -lmpfr -lgmp" |
4ee9c684 | 5103 | gmpinc= |
d45318b3 | 5104 | have_gmp=no |
7601a55c | 5105 | |
5106 | # Specify a location for mpc | |
5107 | # check for this first so it ends up on the link line before mpfr. | |
5108 | ||
cd9a469c | 5109 | # Check whether --with-mpc was given. |
5110 | if test "${with_mpc+set}" = set; then : | |
5111 | withval=$with_mpc; | |
5112 | fi | |
7601a55c | 5113 | |
7601a55c | 5114 | |
73f813e1 | 5115 | # Check whether --with-mpc-include was given. |
cd9a469c | 5116 | if test "${with_mpc_include+set}" = set; then : |
5117 | withval=$with_mpc_include; | |
5118 | fi | |
7601a55c | 5119 | |
7601a55c | 5120 | |
73f813e1 | 5121 | # Check whether --with-mpc-lib was given. |
cd9a469c | 5122 | if test "${with_mpc_lib+set}" = set; then : |
5123 | withval=$with_mpc_lib; | |
5124 | fi | |
7601a55c | 5125 | |
7601a55c | 5126 | |
5127 | if test "x$with_mpc" != x; then | |
16de6a81 | 5128 | gmplibs="-L$with_mpc/lib $gmplibs" |
5129 | gmpinc="-I$with_mpc/include $gmpinc" | |
7601a55c | 5130 | fi |
5131 | if test "x$with_mpc_include" != x; then | |
16de6a81 | 5132 | gmpinc="-I$with_mpc_include $gmpinc" |
7601a55c | 5133 | fi |
5134 | if test "x$with_mpc_lib" != x; then | |
16de6a81 | 5135 | gmplibs="-L$with_mpc_lib $gmplibs" |
7601a55c | 5136 | fi |
5137 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
c3fc6a63 | 5138 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
16de6a81 | 5139 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
7601a55c | 5140 | # Do not test the mpc version. Assume that it is sufficient, since |
5141 | # it is in the source tree, and the library has not been built yet | |
5142 | # but it would be included on the link line in the version check below | |
5143 | # hence making the test fail. | |
16de6a81 | 5144 | have_gmp=yes |
7601a55c | 5145 | fi |
d45318b3 | 5146 | |
5ca838b8 | 5147 | # Specify a location for mpfr |
5148 | # check for this first so it ends up on the link line before gmp. | |
b30fcfae | 5149 | |
cd9a469c | 5150 | # Check whether --with-mpfr-dir was given. |
5151 | if test "${with_mpfr_dir+set}" = set; then : | |
5152 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5153 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5154 | fi | |
5155 | ||
5ca838b8 | 5156 | |
5157 | ||
cd9a469c | 5158 | # Check whether --with-mpfr was given. |
5159 | if test "${with_mpfr+set}" = set; then : | |
5160 | withval=$with_mpfr; | |
5161 | fi | |
b30fcfae | 5162 | |
5ca838b8 | 5163 | |
73f813e1 | 5164 | # Check whether --with-mpfr-include was given. |
cd9a469c | 5165 | if test "${with_mpfr_include+set}" = set; then : |
5166 | withval=$with_mpfr_include; | |
5167 | fi | |
b30fcfae | 5168 | |
a5144c1d | 5169 | |
73f813e1 | 5170 | # Check whether --with-mpfr-lib was given. |
cd9a469c | 5171 | if test "${with_mpfr_lib+set}" = set; then : |
5172 | withval=$with_mpfr_lib; | |
5173 | fi | |
a5144c1d | 5174 | |
5ca838b8 | 5175 | |
5176 | if test "x$with_mpfr" != x; then | |
5177 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
16de6a81 | 5178 | gmpinc="-I$with_mpfr/include $gmpinc" |
5ca838b8 | 5179 | fi |
a5144c1d | 5180 | if test "x$with_mpfr_include" != x; then |
16de6a81 | 5181 | gmpinc="-I$with_mpfr_include $gmpinc" |
a5144c1d | 5182 | fi |
5183 | if test "x$with_mpfr_lib" != x; then | |
5184 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5185 | fi | |
d45318b3 | 5186 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
c3fc6a63 | 5187 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5188 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
c3fc6a63 | 5189 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
d45318b3 | 5190 | # Do not test the mpfr version. Assume that it is sufficient, since |
5191 | # it is in the source tree, and the library has not been built yet | |
5192 | # but it would be included on the link line in the version check below | |
5193 | # hence making the test fail. | |
5194 | have_gmp=yes | |
5195 | fi | |
5ca838b8 | 5196 | |
4ee9c684 | 5197 | # Specify a location for gmp |
b30fcfae | 5198 | |
cd9a469c | 5199 | # Check whether --with-gmp-dir was given. |
5200 | if test "${with_gmp_dir+set}" = set; then : | |
5201 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5202 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5203 | fi | |
5204 | ||
4ee9c684 | 5205 | |
4ee9c684 | 5206 | |
cd9a469c | 5207 | # Check whether --with-gmp was given. |
5208 | if test "${with_gmp+set}" = set; then : | |
5209 | withval=$with_gmp; | |
5210 | fi | |
b30fcfae | 5211 | |
4ee9c684 | 5212 | |
73f813e1 | 5213 | # Check whether --with-gmp-include was given. |
cd9a469c | 5214 | if test "${with_gmp_include+set}" = set; then : |
5215 | withval=$with_gmp_include; | |
5216 | fi | |
b30fcfae | 5217 | |
a5144c1d | 5218 | |
73f813e1 | 5219 | # Check whether --with-gmp-lib was given. |
cd9a469c | 5220 | if test "${with_gmp_lib+set}" = set; then : |
5221 | withval=$with_gmp_lib; | |
5222 | fi | |
a5144c1d | 5223 | |
5224 | ||
4ee9c684 | 5225 | |
5ca838b8 | 5226 | if test "x$with_gmp" != x; then |
5227 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5228 | gmpinc="-I$with_gmp/include $gmpinc" | |
4ee9c684 | 5229 | fi |
a5144c1d | 5230 | if test "x$with_gmp_include" != x; then |
5231 | gmpinc="-I$with_gmp_include $gmpinc" | |
5232 | fi | |
5233 | if test "x$with_gmp_lib" != x; then | |
5234 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5235 | fi | |
d45318b3 | 5236 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
c3fc6a63 | 5237 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
d45318b3 | 5238 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
b9a8e4c4 | 5239 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
c3fc6a63 | 5240 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d45318b3 | 5241 | # Do not test the gmp version. Assume that it is sufficient, since |
5242 | # it is in the source tree, and the library has not been built yet | |
5243 | # but it would be included on the link line in the version check below | |
5244 | # hence making the test fail. | |
5245 | have_gmp=yes | |
5246 | fi | |
4ee9c684 | 5247 | |
16c9b2e3 | 5248 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
d45318b3 | 5249 | have_gmp=yes |
5250 | saved_CFLAGS="$CFLAGS" | |
5251 | CFLAGS="$CFLAGS $gmpinc" | |
17b6993a | 5252 | # Check for the recommended and required versions of GMP. |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5254 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4fd35f21 | 5255 | |
5256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17b6993a | 5257 | /* end confdefs.h. */ |
5258 | #include "gmp.h" | |
5259 | int | |
5260 | main () | |
5261 | { | |
5262 | ||
5263 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5264 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5265 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5266 | choke me | |
5267 | #endif | |
5268 | ||
5269 | ; | |
5270 | return 0; | |
5271 | } | |
5272 | _ACEOF | |
5273 | if ac_fn_c_try_compile "$LINENO"; then : | |
4fd35f21 | 5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5275 | /* end confdefs.h. */ |
17b6993a | 5276 | #include <gmp.h> |
b30fcfae | 5277 | int |
5278 | main () | |
5279 | { | |
4ee9c684 | 5280 | |
17b6993a | 5281 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5282 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5283 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
d45318b3 | 5284 | choke me |
5285 | #endif | |
b30fcfae | 5286 | |
5287 | ; | |
5288 | return 0; | |
5289 | } | |
5290 | _ACEOF | |
cd9a469c | 5291 | if ac_fn_c_try_compile "$LINENO"; then : |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5293 | $as_echo "yes" >&6; } | |
17b6993a | 5294 | else |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5296 | $as_echo "buggy but acceptable" >&6; } | |
5297 | fi | |
5298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b30fcfae | 5299 | else |
cd9a469c | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5301 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5302 | fi |
cd9a469c | 5303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5304 | |
7601a55c | 5305 | # If we have GMP, check the MPFR version. |
d45318b3 | 5306 | if test x"$have_gmp" = xyes; then |
17b6993a | 5307 | # Check for the recommended and required versions of MPFR. |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5309 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
cd9a469c | 5310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b30fcfae | 5311 | /* end confdefs.h. */ |
6a086156 | 5312 | #include <gmp.h> |
d45318b3 | 5313 | #include <mpfr.h> |
b30fcfae | 5314 | int |
5315 | main () | |
5316 | { | |
112f3d57 | 5317 | |
fec76ae9 | 5318 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
d45318b3 | 5319 | choke me |
5320 | #endif | |
b30fcfae | 5321 | |
5322 | ; | |
5323 | return 0; | |
5324 | } | |
5325 | _ACEOF | |
cd9a469c | 5326 | if ac_fn_c_try_compile "$LINENO"; then : |
5327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 5328 | /* end confdefs.h. */ |
0157cc75 | 5329 | #include <gmp.h> |
d45318b3 | 5330 | #include <mpfr.h> |
b30fcfae | 5331 | int |
5332 | main () | |
5333 | { | |
0157cc75 | 5334 | |
17b6993a | 5335 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
d45318b3 | 5336 | choke me |
5337 | #endif | |
7601a55c | 5338 | |
5339 | ; | |
5340 | return 0; | |
5341 | } | |
5342 | _ACEOF | |
cd9a469c | 5343 | if ac_fn_c_try_compile "$LINENO"; then : |
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5345 | $as_echo "yes" >&6; } | |
7601a55c | 5346 | else |
cd9a469c | 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5348 | $as_echo "buggy but acceptable" >&6; } | |
7601a55c | 5349 | fi |
cd9a469c | 5350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5351 | else |
cd9a469c | 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5353 | $as_echo "no" >&6; }; have_gmp=no | |
7601a55c | 5354 | fi |
cd9a469c | 5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5356 | fi |
5357 | ||
5358 | # Check for the MPC header version. | |
16de6a81 | 5359 | if test x"$have_gmp" = xyes ; then |
17b6993a | 5360 | # Check for the recommended and required versions of MPC. |
cd9a469c | 5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5362 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601a55c | 5364 | /* end confdefs.h. */ |
5365 | #include <mpc.h> | |
5366 | int | |
5367 | main () | |
5368 | { | |
5369 | ||
17b6993a | 5370 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5371 | choke me | |
5372 | #endif | |
5373 | ||
5374 | ; | |
5375 | return 0; | |
5376 | } | |
5377 | _ACEOF | |
5378 | if ac_fn_c_try_compile "$LINENO"; then : | |
5379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5380 | /* end confdefs.h. */ | |
5381 | #include <mpc.h> | |
5382 | int | |
5383 | main () | |
5384 | { | |
5385 | ||
5386 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
7601a55c | 5387 | choke me |
5388 | #endif | |
5389 | ||
5390 | ; | |
5391 | return 0; | |
5392 | } | |
5393 | _ACEOF | |
cd9a469c | 5394 | if ac_fn_c_try_compile "$LINENO"; then : |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16de6a81 | 5396 | $as_echo "yes" >&6; } |
17b6993a | 5397 | else |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5399 | $as_echo "buggy but acceptable" >&6; } | |
5400 | fi | |
5401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601a55c | 5402 | else |
cd9a469c | 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16de6a81 | 5404 | $as_echo "no" >&6; }; have_gmp=no |
7601a55c | 5405 | fi |
cd9a469c | 5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7601a55c | 5407 | fi |
5408 | ||
5409 | # Now check the MPFR library. | |
5410 | if test x"$have_gmp" = xyes; then | |
5411 | saved_LIBS="$LIBS" | |
5412 | LIBS="$LIBS $gmplibs" | |
16de6a81 | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5414 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
cd9a469c | 5415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7601a55c | 5416 | /* end confdefs.h. */ |
16de6a81 | 5417 | #include <mpc.h> |
7601a55c | 5418 | int |
5419 | main () | |
5420 | { | |
5421 | ||
5422 | mpfr_t n; | |
5423 | mpfr_t x; | |
16de6a81 | 5424 | mpc_t c; |
7601a55c | 5425 | int t; |
5426 | mpfr_init (n); | |
5427 | mpfr_init (x); | |
5428 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5429 | mpfr_erfc (n, x, GMP_RNDN); | |
5430 | mpfr_subnormalize (x, t, GMP_RNDN); | |
16de6a81 | 5431 | mpfr_clear(n); |
5432 | mpfr_clear(x); | |
5433 | mpc_init2 (c, 53); | |
5434 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5435 | mpc_cosh (c, c, MPC_RNDNN); | |
5436 | mpc_pow (c, c, c, MPC_RNDNN); | |
5437 | mpc_acosh (c, c, MPC_RNDNN); | |
5438 | mpc_clear (c); | |
b30fcfae | 5439 | |
5440 | ; | |
5441 | return 0; | |
5442 | } | |
5443 | _ACEOF | |
cd9a469c | 5444 | if ac_fn_c_try_link "$LINENO"; then : |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5446 | $as_echo "yes" >&6; } | |
b30fcfae | 5447 | else |
cd9a469c | 5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5449 | $as_echo "no" >&6; }; have_gmp=no | |
b30fcfae | 5450 | fi |
cd9a469c | 5451 | rm -f core conftest.err conftest.$ac_objext \ |
5452 | conftest$ac_exeext conftest.$ac_ext | |
7601a55c | 5453 | LIBS="$saved_LIBS" |
5454 | fi | |
5455 | ||
d45318b3 | 5456 | CFLAGS="$saved_CFLAGS" |
4ee9c684 | 5457 | |
17b6993a | 5458 | # The library versions listed in the error message below should match |
5459 | # the HARD-minimums enforced above. | |
d45318b3 | 5460 | if test x$have_gmp != xyes; then |
17b6993a | 5461 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
16de6a81 | 5462 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5463 | their locations. Source code for these libraries can be found at | |
5464 | their respective hosting sites as well as at | |
5465 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5466 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5467 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5468 | make sure that you have installed both the libraries and the header | |
5469 | files. They may be located in separate packages." "$LINENO" 5 | |
d45318b3 | 5470 | fi |
6a086156 | 5471 | fi |
5472 | ||
7601a55c | 5473 | # Flags needed for both GMP, MPFR and/or MPC. |
5474 | ||
5475 | ||
4ee9c684 | 5476 | |
5477 | ||
5478 | ||
bff7ea4a | 5479 | |
5bc96548 | 5480 | # Allow host libstdc++ to be specified for static linking with PPL. |
5481 | ||
cd9a469c | 5482 | # Check whether --with-host-libstdcxx was given. |
5483 | if test "${with_host_libstdcxx+set}" = set; then : | |
5484 | withval=$with_host_libstdcxx; | |
5485 | fi | |
5bc96548 | 5486 | |
5bc96548 | 5487 | |
5488 | case $with_host_libstdcxx in | |
5489 | no|yes) | |
cd9a469c | 5490 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
5bc96548 | 5491 | ;; |
5492 | esac | |
255b6be7 | 5493 | |
7ab76cec | 5494 | # Linker flags to use for stage1 or when not boostrapping. |
5495 | ||
cd9a469c | 5496 | # Check whether --with-stage1-ldflags was given. |
5497 | if test "${with_stage1_ldflags+set}" = set; then : | |
5498 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
7ab76cec | 5499 | stage1_ldflags= |
5500 | else | |
5501 | stage1_ldflags=$withval | |
5502 | fi | |
5503 | else | |
5504 | stage1_ldflags= | |
cd9a469c | 5505 | fi |
5506 | ||
7ab76cec | 5507 | |
5508 | ||
5509 | # Libraries to use for stage1 or when not bootstrapping. | |
5510 | ||
cd9a469c | 5511 | # Check whether --with-stage1-libs was given. |
5512 | if test "${with_stage1_libs+set}" = set; then : | |
5513 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
7ab76cec | 5514 | stage1_libs= |
5515 | else | |
5516 | stage1_libs=$withval | |
5517 | fi | |
5518 | else | |
5519 | stage1_libs=$with_host_libstdcxx | |
cd9a469c | 5520 | fi |
5521 | ||
7ab76cec | 5522 | |
5523 | ||
7ab76cec | 5524 | # Libraries to use for stage2 and later builds. This defaults to the |
5525 | # argument passed to --with-host-libstdcxx. | |
5526 | ||
cd9a469c | 5527 | # Check whether --with-boot-libs was given. |
5528 | if test "${with_boot_libs+set}" = set; then : | |
5529 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5110389d | 5530 | poststage1_libs= |
5531 | else | |
5532 | poststage1_libs=$withval | |
5533 | fi | |
5534 | else | |
7ab76cec | 5535 | poststage1_libs=$with_host_libstdcxx |
cd9a469c | 5536 | fi |
5537 | ||
7ab76cec | 5538 | |
5539 | ||
d6dfe18a | 5540 | # Linker flags to use for stage2 and later builds. |
5541 | ||
5542 | # Check whether --with-boot-ldflags was given. | |
5543 | if test "${with_boot_ldflags+set}" = set; then : | |
5544 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5545 | poststage1_ldflags= | |
5546 | else | |
5547 | poststage1_ldflags=$withval | |
5548 | fi | |
5549 | else | |
5550 | poststage1_ldflags= | |
7deb2d70 | 5551 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5552 | # statically. But if the user explicitly specified the libraries to | |
5553 | # use, trust that they are doing what they want. | |
5554 | if test "$poststage1_libs" = ""; then | |
d6dfe18a | 5555 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5556 | fi | |
5557 | fi | |
5558 | ||
5559 | ||
5560 | ||
255b6be7 | 5561 | # Check for PPL |
062b4a94 | 5562 | ppllibs= |
255b6be7 | 5563 | pplinc= |
062b4a94 | 5564 | pwllib= |
255b6be7 | 5565 | |
5566 | ||
cd9a469c | 5567 | # Check whether --with-ppl was given. |
5568 | if test "${with_ppl+set}" = set; then : | |
5569 | withval=$with_ppl; | |
cd9a469c | 5570 | fi |
255b6be7 | 5571 | |
255b6be7 | 5572 | |
73f813e1 | 5573 | # Check whether --with-ppl-include was given. |
cd9a469c | 5574 | if test "${with_ppl_include+set}" = set; then : |
5575 | withval=$with_ppl_include; | |
5576 | fi | |
5577 | ||
255b6be7 | 5578 | |
73f813e1 | 5579 | # Check whether --with-ppl-lib was given. |
cd9a469c | 5580 | if test "${with_ppl_lib+set}" = set; then : |
5581 | withval=$with_ppl_lib; | |
5582 | fi | |
255b6be7 | 5583 | |
255b6be7 | 5584 | |
062b4a94 | 5585 | # Check whether --enable-ppl-version-check was given. |
5586 | if test "${enable_ppl_version_check+set}" = set; then : | |
5587 | enableval=$enable_ppl_version_check; | |
5588 | fi | |
5589 | ||
5590 | ||
4aa0552b | 5591 | case $with_ppl in |
062b4a94 | 5592 | yes | no | "") |
539c8c59 | 5593 | ;; |
4aa0552b | 5594 | *) |
062b4a94 | 5595 | ppllibs="-L$with_ppl/lib" |
4aa0552b | 5596 | pplinc="-I$with_ppl/include $pplinc" |
062b4a94 | 5597 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5598 | with_ppl=yes | |
5599 | else | |
5600 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5601 | fi | |
4aa0552b | 5602 | ;; |
5603 | esac | |
062b4a94 | 5604 | |
5605 | if test x"$with_ppl_include" != x; then | |
255b6be7 | 5606 | pplinc="-I$with_ppl_include $pplinc" |
062b4a94 | 5607 | with_ppl=yes |
255b6be7 | 5608 | fi |
062b4a94 | 5609 | |
255b6be7 | 5610 | if test "x$with_ppl_lib" != x; then |
062b4a94 | 5611 | ppllibs="-L$with_ppl_lib" |
5612 | with_ppl=yes | |
255b6be7 | 5613 | fi |
062b4a94 | 5614 | |
5615 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5616 | if test x"$enable_watchdog" = xyes; then | |
5617 | pwllib="-lpwl" | |
5618 | fi | |
5619 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
eea1ae23 | 5620 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5621 | enable_ppl_version_check=no | |
062b4a94 | 5622 | with_ppl=yes |
255b6be7 | 5623 | fi |
5624 | ||
7aa8604d | 5625 | if test "x$with_ppl" != xno; then |
062b4a94 | 5626 | if test "x$pwllib" = x; then |
55184b41 | 5627 | saved_LIBS="$LIBS" |
5628 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
062b4a94 | 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5630 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5631 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5632 | $as_echo_n "(cached) " >&6 | |
5633 | else | |
5634 | ac_check_lib_save_LIBS=$LIBS | |
5635 | LIBS="-lpwl $LIBS" | |
5636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5637 | /* end confdefs.h. */ | |
5638 | ||
5639 | /* Override any GCC internal prototype to avoid an error. | |
5640 | Use char because int might match the return type of a GCC | |
5641 | builtin and then its argument prototype would still apply. */ | |
5642 | #ifdef __cplusplus | |
5643 | extern "C" | |
5644 | #endif | |
5645 | char PWL_handle_timeout (); | |
5646 | int | |
5647 | main () | |
5648 | { | |
5649 | return PWL_handle_timeout (); | |
5650 | ; | |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | if ac_fn_c_try_link "$LINENO"; then : | |
5655 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
5362e323 | 5656 | else |
062b4a94 | 5657 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5658 | fi | |
5659 | rm -f core conftest.err conftest.$ac_objext \ | |
5660 | conftest$ac_exeext conftest.$ac_ext | |
5661 | LIBS=$ac_check_lib_save_LIBS | |
5662 | fi | |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5664 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5665 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5666 | pwllib="-lpwl" | |
cd9a469c | 5667 | fi |
5668 | ||
55184b41 | 5669 | LIBS="$saved_LIBS" |
062b4a94 | 5670 | fi |
255b6be7 | 5671 | |
062b4a94 | 5672 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5673 | ||
5674 | if test "$enable_ppl_version_check" != no; then | |
5675 | saved_CFLAGS="$CFLAGS" | |
5676 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5678 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
255b6be7 | 5680 | /* end confdefs.h. */ |
5681 | #include "ppl_c.h" | |
5682 | int | |
5683 | main () | |
5684 | { | |
5685 | ||
062b4a94 | 5686 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5687 | choke me | |
5688 | #endif | |
255b6be7 | 5689 | |
5690 | ; | |
5691 | return 0; | |
5692 | } | |
5693 | _ACEOF | |
cd9a469c | 5694 | if ac_fn_c_try_compile "$LINENO"; then : |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5696 | $as_echo "yes" >&6; } | |
255b6be7 | 5697 | else |
cd9a469c | 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24d0cd27 | 5699 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
255b6be7 | 5700 | fi |
cd9a469c | 5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
062b4a94 | 5702 | CFLAGS="$saved_CFLAGS" |
5703 | fi | |
5362e323 | 5704 | fi |
5705 | ||
5706 | # Flags needed for PPL | |
5707 | ||
5708 | ||
255b6be7 | 5709 | |
255b6be7 | 5710 | |
5362e323 | 5711 | # Check for CLOOG |
a3c81e03 | 5712 | |
5362e323 | 5713 | |
5714 | ||
cd9a469c | 5715 | # Check whether --with-cloog was given. |
5716 | if test "${with_cloog+set}" = set; then : | |
5717 | withval=$with_cloog; | |
cd9a469c | 5718 | fi |
5719 | ||
5362e323 | 5720 | |
73f813e1 | 5721 | # Check whether --with-cloog-include was given. |
cd9a469c | 5722 | if test "${with_cloog_include+set}" = set; then : |
5723 | withval=$with_cloog_include; | |
5724 | fi | |
5362e323 | 5725 | |
5362e323 | 5726 | |
73f813e1 | 5727 | # Check whether --with-cloog-lib was given. |
cd9a469c | 5728 | if test "${with_cloog_lib+set}" = set; then : |
5729 | withval=$with_cloog_lib; | |
5730 | fi | |
5362e323 | 5731 | |
5362e323 | 5732 | |
8a0fe290 | 5733 | # Check whether --enable-cloog-backend was given. |
5734 | if test "${enable_cloog_backend+set}" = set; then : | |
5735 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5736 | cloog_backend=isl | |
5737 | elif test "x${enableval}" = "xppl"; then | |
5738 | cloog_backend=ppl | |
5739 | else | |
5740 | cloog_backend=ppl-legacy | |
5741 | fi | |
5742 | else | |
5743 | cloog_backend=ppl-legacy | |
5744 | fi | |
5745 | ||
a3c81e03 | 5746 | # Check whether --enable-cloog-version-check was given. |
5747 | if test "${enable_cloog_version_check+set}" = set; then : | |
5748 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5749 | else | |
5750 | ENABLE_CLOOG_CHECK=yes | |
5751 | fi | |
5752 | ||
5753 | ||
5754 | # Initialize clooglibs and clooginc. | |
5755 | case $with_cloog in | |
5756 | no) | |
5757 | clooglibs= | |
5758 | clooginc= | |
5759 | ;; | |
5760 | "" | yes) | |
5761 | ;; | |
5762 | *) | |
5763 | clooglibs="-L$with_cloog/lib" | |
5764 | clooginc="-I$with_cloog/include" | |
5765 | ;; | |
5766 | esac | |
5767 | if test "x${with_cloog_include}" != x ; then | |
5768 | clooginc="-I$with_cloog_include" | |
5769 | fi | |
5770 | if test "x${with_cloog_lib}" != x; then | |
5771 | clooglibs="-L$with_cloog_lib" | |
5772 | fi | |
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
3a8cd7be | 5778 | if test "x$with_ppl" = "xno"; then |
822a8dd0 | 5779 | |
5780 | ||
5781 | ||
f9c26062 | 5782 | if test "x${with_cloog}" = xno; then |
5783 | graphite_requested=no | |
5784 | elif test "x${with_cloog}" != x \ | |
822a8dd0 | 5785 | || test "x${with_cloog_include}" != x \ |
5786 | || test "x${with_cloog_lib}" != x ; then | |
5787 | graphite_requested=yes | |
5788 | else | |
5789 | graphite_requested=no | |
5790 | fi | |
5791 | ||
5792 | ||
5793 | if test "${graphite_requested}" = yes; then | |
9e9f1ccb | 5794 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 |
822a8dd0 | 5795 | fi |
f9c26062 | 5796 | with_cloog=no |
539c8c59 | 5797 | fi |
a3c81e03 | 5798 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5799 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5800 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5801 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5802 | fi | |
5803 | if test "x$with_cloog" != "xno"; then | |
539c8c59 | 5804 | |
a3c81e03 | 5805 | |
5806 | ||
5807 | _cloog_saved_CFLAGS=$CFLAGS | |
5808 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5809 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5810 | _cloog_saved_LIBS=$LIBS | |
5811 | ||
a3c81e03 | 5812 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" |
5813 | ||
8a0fe290 | 5814 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" |
81b9d148 | 5815 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" |
8a0fe290 | 5816 | LDFLAGS="${LDFLAGS} ${clooglibs}" |
5817 | ||
5818 | case $cloog_backend in | |
5819 | "ppl-legacy") | |
5820 | CFLAGS="${CFLAGS} ${pplinc}" | |
5821 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5823 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
a3c81e03 | 5824 | if test "${gcc_cv_cloog_type+set}" = set; then : |
5825 | $as_echo_n "(cached) " >&6 | |
5826 | else | |
5827 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
8a0fe290 | 5828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a3c81e03 | 5829 | /* end confdefs.h. */ |
81b9d148 | 5830 | #include "cloog/cloog.h" |
a3c81e03 | 5831 | int |
5832 | main () | |
5833 | { | |
81b9d148 | 5834 | #ifndef CLOOG_PPL_BACKEND |
5835 | choke me | |
5836 | #endif | |
a3c81e03 | 5837 | ; |
5838 | return 0; | |
5839 | } | |
5840 | _ACEOF | |
5841 | if ac_fn_c_try_link "$LINENO"; then : | |
5842 | gcc_cv_cloog_type="PPL Legacy" | |
5843 | else | |
8a0fe290 | 5844 | gcc_cv_cloog_type=no |
5845 | fi | |
5846 | rm -f core conftest.err conftest.$ac_objext \ | |
5847 | conftest$ac_exeext conftest.$ac_ext | |
5848 | fi | |
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5850 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5851 | ;; | |
5852 | "isl") | |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5854 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5855 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5856 | $as_echo_n "(cached) " >&6 | |
5857 | else | |
5858 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a3c81e03 | 5860 | /* end confdefs.h. */ |
81b9d148 | 5861 | #include "cloog/cloog.h" |
a3c81e03 | 5862 | int |
5863 | main () | |
5864 | { | |
5865 | cloog_version () | |
5866 | ; | |
5867 | return 0; | |
5868 | } | |
5869 | _ACEOF | |
5870 | if ac_fn_c_try_link "$LINENO"; then : | |
8a0fe290 | 5871 | gcc_cv_cloog_type="ISL" |
5872 | else | |
5873 | gcc_cv_cloog_type=no | |
5874 | fi | |
5875 | rm -f core conftest.err conftest.$ac_objext \ | |
5876 | conftest$ac_exeext conftest.$ac_ext | |
5877 | fi | |
5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5879 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5880 | ;; | |
5881 | "ppl") | |
5882 | CFLAGS="${CFLAGS} ${pplinc}" | |
5883 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5885 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5886 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5887 | $as_echo_n "(cached) " >&6 | |
a3c81e03 | 5888 | else |
5889 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" | |
8a0fe290 | 5890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a3c81e03 | 5891 | /* end confdefs.h. */ |
81b9d148 | 5892 | #include "cloog/cloog.h" |
8a0fe290 | 5893 | #include "cloog/ppl/cloog.h" |
a3c81e03 | 5894 | int |
5895 | main () | |
5896 | { | |
5897 | cloog_version () | |
5898 | ; | |
5899 | return 0; | |
5900 | } | |
5901 | _ACEOF | |
5902 | if ac_fn_c_try_link "$LINENO"; then : | |
8a0fe290 | 5903 | gcc_cv_cloog_type="PPL" |
a3c81e03 | 5904 | else |
5905 | gcc_cv_cloog_type=no | |
5362e323 | 5906 | fi |
a3c81e03 | 5907 | rm -f core conftest.err conftest.$ac_objext \ |
5908 | conftest$ac_exeext conftest.$ac_ext | |
5362e323 | 5909 | fi |
a3c81e03 | 5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5911 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
8a0fe290 | 5912 | ;; |
5913 | *) | |
5914 | gcc_cv_cloog_type="" | |
5915 | esac | |
cd9a469c | 5916 | |
a3c81e03 | 5917 | case $gcc_cv_cloog_type in |
5918 | "PPL Legacy") | |
81b9d148 | 5919 | clooginc="${clooginc}" |
a3c81e03 | 5920 | clooglibs="${clooglibs} -lcloog" |
5921 | cloog_org=no | |
5922 | ;; | |
5923 | "ISL") | |
5924 | clooginc="${clooginc} ${_cloogorginc}" | |
f9f211c9 | 5925 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
a3c81e03 | 5926 | cloog_org=yes |
5927 | ;; | |
5928 | "PPL") | |
5929 | clooginc="${clooginc} ${_cloogorginc}" | |
5930 | clooglibs="${clooglibs} -lcloog-ppl" | |
5931 | cloog_org=yes | |
5932 | ;; | |
5933 | *) | |
5934 | clooglibs= | |
5935 | clooginc= | |
5936 | cloog_org= | |
5937 | ;; | |
5938 | esac | |
5362e323 | 5939 | |
a3c81e03 | 5940 | LIBS=$_cloog_saved_LIBS |
5941 | CFLAGS=$_cloog_saved_CFLAGS | |
5942 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5943 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5950 | _cloog_saved_CFLAGS=$CFLAGS | |
5951 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5952 | ||
5953 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
88e8cc3e | 5954 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" |
a3c81e03 | 5955 | |
5956 | if test "${cloog_org}" = yes ; then | |
12072151 | 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
5958 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
a3c81e03 | 5959 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
5960 | $as_echo_n "(cached) " >&6 | |
5961 | else | |
5962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5963 | /* end confdefs.h. */ | |
5964 | #include "cloog/cloog.h" | |
5965 | int | |
5966 | main () | |
5967 | { | |
5968 | #if CLOOG_VERSION_MAJOR != 0 \ | |
12072151 | 5969 | || CLOOG_VERSION_MINOR != 16 \ |
5970 | || CLOOG_VERSION_REVISION < 1 | |
a3c81e03 | 5971 | choke me |
5972 | #endif | |
5973 | ; | |
5974 | return 0; | |
5975 | } | |
5976 | _ACEOF | |
5977 | if ac_fn_c_try_compile "$LINENO"; then : | |
5978 | gcc_cv_cloog_ct_0_14_0=yes | |
5979 | else | |
5980 | gcc_cv_cloog_ct_0_14_0=no | |
5981 | fi | |
5982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5983 | fi | |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
5985 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
5986 | elif test "${cloog_org}" = no ; then | |
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
cff3778c | 5988 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
a3c81e03 | 5989 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
5990 | $as_echo_n "(cached) " >&6 | |
5991 | else | |
cd9a469c | 5992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
255b6be7 | 5993 | /* end confdefs.h. */ |
5994 | #include "cloog/cloog.h" | |
5995 | int | |
5996 | main () | |
5997 | { | |
a3c81e03 | 5998 | #if CLOOG_VERSION_MAJOR != 0 \ |
5999 | || CLOOG_VERSION_MINOR != 15 \ | |
6000 | || CLOOG_VERSION_REVISION < 5 | |
6001 | choke me | |
6002 | #endif | |
255b6be7 | 6003 | ; |
6004 | return 0; | |
6005 | } | |
6006 | _ACEOF | |
1279b87b | 6007 | if ac_fn_c_try_compile "$LINENO"; then : |
6008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6009 | /* end confdefs.h. */ | |
6010 | #include "cloog/cloog.h" | |
6011 | int | |
6012 | main () | |
6013 | { | |
a3c81e03 | 6014 | #if CLOOG_VERSION_MAJOR != 0 \ |
6015 | || CLOOG_VERSION_MINOR != 15 \ | |
6016 | || CLOOG_VERSION_REVISION < 9 | |
6017 | choke me | |
6018 | #endif | |
1279b87b | 6019 | ; |
6020 | return 0; | |
6021 | } | |
6022 | _ACEOF | |
cd9a469c | 6023 | if ac_fn_c_try_compile "$LINENO"; then : |
a3c81e03 | 6024 | gcc_cv_cloog_ct_0_15_5=yes |
1279b87b | 6025 | else |
a3c81e03 | 6026 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
1279b87b | 6027 | fi |
6028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
255b6be7 | 6029 | else |
a3c81e03 | 6030 | gcc_cv_cloog_ct_0_15_5=no |
255b6be7 | 6031 | fi |
cd9a469c | 6032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5362e323 | 6033 | fi |
a3c81e03 | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
6035 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
6036 | fi | |
6037 | ||
6038 | CFLAGS=$_cloog_saved_CFLAGS | |
6039 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6040 | fi | |
255b6be7 | 6041 | |
255b6be7 | 6042 | |
6043 | ||
6044 | ||
a3c81e03 | 6045 | |
6046 | ||
6047 | ||
f9c26062 | 6048 | if test "x${with_cloog}" = xno; then |
6049 | graphite_requested=no | |
6050 | elif test "x${with_cloog}" != x \ | |
a3c81e03 | 6051 | || test "x${with_cloog_include}" != x \ |
6052 | || test "x${with_cloog_lib}" != x ; then | |
6053 | graphite_requested=yes | |
6054 | else | |
6055 | graphite_requested=no | |
6056 | fi | |
6057 | ||
6058 | ||
6059 | ||
6060 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
6061 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
6062 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
6063 | clooglibs= | |
6064 | clooginc= | |
6065 | fi | |
6066 | ||
6067 | if test "${graphite_requested}" = yes \ | |
6068 | && test "x${clooglibs}" = x \ | |
6069 | && test "x${clooginc}" = x ; then | |
6070 | ||
822a8dd0 | 6071 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
a3c81e03 | 6072 | fi |
6073 | ||
6074 | ||
6075 | fi | |
6076 | ||
7bfefa9d | 6077 | # Check for LTO support. |
6078 | # Check whether --enable-lto was given. | |
6079 | if test "${enable_lto+set}" = set; then : | |
6080 | enableval=$enable_lto; enable_lto=$enableval | |
6081 | else | |
6082 | enable_lto=yes; default_enable_lto=yes | |
6083 | fi | |
6084 | ||
6085 | ||
1a4f45ec | 6086 | |
9bdbb0bc | 6087 | |
6088 | ||
6089 | target_elf=no | |
6090 | case $target in | |
6091 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
4d72c922 | 6092 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
9bdbb0bc | 6093 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
6094 | target_elf=no | |
6095 | ;; | |
6096 | *) | |
6097 | target_elf=yes | |
6098 | ;; | |
6099 | esac | |
6100 | ||
6101 | if test $target_elf = yes; then : | |
25630dc7 | 6102 | # ELF platforms build the lto-plugin always. |
6103 | build_lto_plugin=yes | |
9bdbb0bc | 6104 | |
9bdbb0bc | 6105 | else |
6106 | if test x"$default_enable_lto" = x"yes" ; then | |
4ae8c98f | 6107 | case $target in |
b990d06f | 6108 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
25630dc7 | 6109 | # On other non-ELF platforms, LTO has yet to be validated. |
4ae8c98f | 6110 | *) enable_lto=no ;; |
6111 | esac | |
9bdbb0bc | 6112 | else |
62932e4d | 6113 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6114 | # It would also be nice to check the binutils support, but we don't | |
9bdbb0bc | 6115 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6116 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6117 | # -flto it won't be needed until after installation anyway. | |
6118 | case $target in | |
ca42e774 | 6119 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9bdbb0bc | 6120 | *) if test x"$enable_lto" = x"yes"; then |
6121 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6122 | fi | |
6123 | ;; | |
6124 | esac | |
6125 | fi | |
ca42e774 | 6126 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
25630dc7 | 6127 | # Build it unless LTO was explicitly disabled. |
ca42e774 | 6128 | case $target in |
25630dc7 | 6129 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
ca42e774 | 6130 | *) ;; |
6131 | esac | |
25630dc7 | 6132 | |
9bdbb0bc | 6133 | fi |
6134 | ||
7bfefa9d | 6135 | |
255b6be7 | 6136 | |
8e6391a6 | 6137 | # By default, C is the only stage 1 language. |
9c3a0a29 | 6138 | stage1_languages=,c, |
2d64c2fd | 6139 | |
7ab76cec | 6140 | # Target libraries that we bootstrap. |
5c96a839 | 6141 | bootstrap_target_libs=,target-libgcc, |
7ab76cec | 6142 | |
8e1fea1a | 6143 | # Figure out what language subdirectories are present. |
6144 | # Look if the user specified --enable-languages="..."; if not, use | |
6145 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6146 | # go away some day. | |
6147 | # NB: embedded tabs in this IF block -- do not untabify | |
6148 | if test -d ${srcdir}/gcc; then | |
6149 | if test x"${enable_languages+set}" != xset; then | |
6150 | if test x"${LANGUAGES+set}" = xset; then | |
6151 | enable_languages="${LANGUAGES}" | |
6152 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6153 | else | |
6154 | enable_languages=all | |
6155 | fi | |
6156 | else | |
6157 | if test x"${enable_languages}" = x || | |
6158 | test x"${enable_languages}" = xyes; | |
6159 | then | |
6160 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6161 | exit 1 | |
6162 | fi | |
6163 | fi | |
6164 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6165 | ||
2c718da0 | 6166 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6167 | # and make the substitution. | |
6168 | case ,${enable_languages}, in | |
6169 | *,f95,*) | |
6170 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6171 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6172 | ;; | |
6173 | esac | |
6174 | ||
6c59dfa4 | 6175 | # If bootstrapping, then using --enable-build-with-cxx or |
6176 | # --enable-build-poststage1-with-cxx requires enabling C++. | |
6177 | case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in | |
6178 | *,c++,*:*:*) ;; | |
6179 | *:*,yes,*:yes) | |
6180 | if test -f ${srcdir}/gcc/cp/config-lang.in; then | |
6181 | enable_languages="${enable_languages},c++" | |
6182 | else | |
6183 | as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5 | |
6184 | fi | |
6185 | ;; | |
6186 | esac | |
6187 | ||
8e1fea1a | 6188 | # First scan to see if an enabled language requires some other language. |
6189 | # We assume that a given config-lang.in will list all the language | |
6190 | # front ends it requires, even if some are required indirectly. | |
6191 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6192 | case ${lang_frag} in | |
6193 | ..) ;; | |
6194 | # The odd quoting in the next line works around | |
6195 | # an apparent bug in bash 1.12 on linux. | |
6196 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6197 | *) | |
101ddbe4 | 6198 | # From the config-lang.in, get $language, $lang_requires, and |
6199 | # $lang_requires_boot_languages. | |
8e1fea1a | 6200 | language= |
6201 | lang_requires= | |
101ddbe4 | 6202 | lang_requires_boot_languages= |
8e1fea1a | 6203 | . ${lang_frag} |
101ddbe4 | 6204 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
8e1fea1a | 6205 | case ,${enable_languages}, in |
6206 | *,$other,*) ;; | |
6207 | *,all,*) ;; | |
6208 | *,$language,*) | |
6209 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6210 | enable_languages="${enable_languages},${other}" | |
6211 | ;; | |
6212 | esac | |
6213 | done | |
101ddbe4 | 6214 | for other in ${lang_requires_boot_languages} ; do |
6215 | if test "$other" != "c"; then | |
6216 | case ,${enable_stage1_languages}, in | |
6217 | *,$other,*) ;; | |
6218 | *,all,*) ;; | |
6219 | *) | |
6220 | case ,${enable_languages}, in | |
6221 | *,$language,*) | |
6222 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6223 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6224 | ;; | |
6225 | esac | |
6226 | ;; | |
6227 | esac | |
6228 | fi | |
6229 | done | |
8e1fea1a | 6230 | ;; |
6231 | esac | |
6232 | done | |
6233 | ||
9c3a0a29 | 6234 | new_enable_languages=,c, |
7bfefa9d | 6235 | |
6236 | # If LTO is enabled, add the LTO front end. | |
6237 | extra_host_libiberty_configure_flags= | |
6238 | if test "$enable_lto" = "yes" ; then | |
d6ef094a | 6239 | case ,${enable_languages}, in |
6240 | *,lto,*) ;; | |
6241 | *) enable_languages="${enable_languages},lto" ;; | |
6242 | esac | |
ca42e774 | 6243 | if test "${build_lto_plugin}" = "yes" ; then |
7bfefa9d | 6244 | configdirs="$configdirs lto-plugin" |
6245 | extra_host_libiberty_configure_flags=--enable-shared | |
6246 | fi | |
6247 | fi | |
6248 | ||
6249 | ||
8e1fea1a | 6250 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9c3a0a29 | 6251 | potential_languages=,c, |
8e1fea1a | 6252 | |
604a285a | 6253 | enabled_target_libs= |
6254 | disabled_target_libs= | |
6255 | ||
8e1fea1a | 6256 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6257 | case ${lang_frag} in | |
6258 | ..) ;; | |
6259 | # The odd quoting in the next line works around | |
6260 | # an apparent bug in bash 1.12 on linux. | |
6261 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6262 | *) | |
b30fcfae | 6263 | # From the config-lang.in, get $language, $target_libs, |
2d64c2fd | 6264 | # $lang_dirs, $boot_language, and $build_by_default |
8e1fea1a | 6265 | language= |
6266 | target_libs= | |
6267 | lang_dirs= | |
5dee13c2 | 6268 | subdir_requires= |
9c3a0a29 | 6269 | boot_language=no |
6270 | build_by_default=yes | |
8e1fea1a | 6271 | . ${lang_frag} |
9c3a0a29 | 6272 | if test x${language} = x; then |
6273 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6274 | exit 1 | |
6275 | fi | |
6276 | ||
ef3c41c7 | 6277 | if test "$language" = "c++"; then |
6278 | if test "$ENABLE_BUILD_WITH_CXX" = "yes" \ | |
6279 | || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
6280 | boot_language=yes | |
6281 | fi | |
7ab76cec | 6282 | fi |
6283 | ||
9c3a0a29 | 6284 | case ,${enable_languages}, in |
6285 | *,${language},*) | |
8e1fea1a | 6286 | # Language was explicitly selected; include it. |
6287 | add_this_lang=yes | |
6288 | ;; | |
9c3a0a29 | 6289 | *,all,*) |
6290 | # 'all' was selected, select it if it is a default language | |
6291 | add_this_lang=${build_by_default} | |
8e1fea1a | 6292 | ;; |
6293 | *) | |
6294 | add_this_lang=no | |
6295 | ;; | |
6296 | esac | |
4ee9c684 | 6297 | |
5dee13c2 | 6298 | # Disable languages that need other directories if these aren't available. |
9333ae0b | 6299 | for i in $subdir_requires; do |
3891e7d9 | 6300 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
5dee13c2 | 6301 | case ,${enable_languages}, in |
6302 | *,${language},*) | |
6303 | # Specifically requested language; tell them. | |
cd9a469c | 6304 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
5dee13c2 | 6305 | ;; |
6306 | *) | |
6307 | # Silently disable. | |
9c3a0a29 | 6308 | add_this_lang=unsupported |
5dee13c2 | 6309 | ;; |
6310 | esac | |
6311 | done | |
6312 | ||
9c3a0a29 | 6313 | # Disable Ada if no preexisting GNAT is available. |
6314 | case ,${enable_languages},:${language}:${have_gnat} in | |
6315 | *,${language},*:ada:no) | |
6316 | # Specifically requested language; tell them. | |
cd9a469c | 6317 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9c3a0a29 | 6318 | ;; |
6319 | *:ada:no) | |
6320 | # Silently disable. | |
6321 | add_this_lang=unsupported | |
6322 | ;; | |
6323 | esac | |
6324 | ||
ff7dcf6a | 6325 | # Disable a language that is unsupported by the target. |
6326 | case " $unsupported_languages " in | |
6327 | *" $language "*) | |
9c3a0a29 | 6328 | add_this_lang=unsupported |
ff7dcf6a | 6329 | ;; |
6330 | esac | |
6331 | ||
4ee9c684 | 6332 | case $add_this_lang in |
9c3a0a29 | 6333 | unsupported) |
8e1fea1a | 6334 | # Remove language-dependent dirs. |
604a285a | 6335 | disabled_target_libs="$disabled_target_libs $target_libs" |
6336 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2d64c2fd | 6337 | ;; |
9c3a0a29 | 6338 | no) |
6339 | # Remove language-dependent dirs; still show language as supported. | |
604a285a | 6340 | disabled_target_libs="$disabled_target_libs $target_libs" |
6341 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9c3a0a29 | 6342 | potential_languages="${potential_languages}${language}," |
6343 | ;; | |
6344 | yes) | |
6345 | new_enable_languages="${new_enable_languages}${language}," | |
6346 | potential_languages="${potential_languages}${language}," | |
2d64c2fd | 6347 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
604a285a | 6348 | enabled_target_libs="$enabled_target_libs $target_libs" |
32027446 | 6349 | case "${boot_language}:,$enable_stage1_languages," in |
6350 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
aff6cf7b | 6351 | # Add to (comma-separated) list of stage 1 languages. |
32027446 | 6352 | case ",$stage1_languages," in |
6353 | *,$language,* | ,yes, | ,all,) ;; | |
6354 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6355 | esac | |
7ab76cec | 6356 | # We need to bootstrap any supporting libraries. |
6357 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2d64c2fd | 6358 | ;; |
6359 | esac | |
6360 | ;; | |
8e1fea1a | 6361 | esac |
6362 | ;; | |
6363 | esac | |
6364 | done | |
6365 | ||
604a285a | 6366 | # Add target libraries which are only needed for disabled languages |
6367 | # to noconfigdirs. | |
6368 | if test -n "$disabled_target_libs"; then | |
6369 | for dir in $disabled_target_libs; do | |
6370 | case " $enabled_target_libs " in | |
6371 | *" ${dir} "*) ;; | |
6372 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6373 | esac | |
6374 | done | |
6375 | fi | |
6376 | ||
cd9a469c | 6377 | # Check whether --enable-stage1-languages was given. |
6378 | if test "${enable_stage1_languages+set}" = set; then : | |
6379 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9c3a0a29 | 6380 | ,no,|,,) |
6381 | # Set it to something that will have no effect in the loop below | |
6382 | enable_stage1_languages=c ;; | |
6383 | ,yes,) | |
6384 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6385 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6386 | *,all,*) | |
6387 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6388 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6389 | esac | |
6390 | ||
6391 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6392 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6393 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6394 | case $potential_languages in | |
6395 | *,$i,*) | |
6396 | case $stage1_languages in | |
6397 | *,$i,*) ;; | |
6398 | *) stage1_languages="$stage1_languages$i," ;; | |
6399 | esac ;; | |
6400 | *) | |
6401 | case $missing_languages in | |
6402 | *,$i,*) ;; | |
6403 | *) missing_languages="$missing_languages$i," ;; | |
6404 | esac ;; | |
6405 | esac | |
6406 | done | |
cd9a469c | 6407 | fi |
6408 | ||
9c3a0a29 | 6409 | |
6410 | # Remove leading/trailing commas that were added for simplicity | |
6411 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
989edd2f | 6412 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9c3a0a29 | 6413 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6414 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6415 | ||
8e1fea1a | 6416 | if test "x$missing_languages" != x; then |
cd9a469c | 6417 | as_fn_error " |
e8bfe1fa | 6418 | The following requested languages could not be built: ${missing_languages} |
cd9a469c | 6419 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
8e1fea1a | 6420 | fi |
8e1fea1a | 6421 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6422 | echo The following languages will be built: ${new_enable_languages} | |
9c3a0a29 | 6423 | enable_languages="$new_enable_languages" |
8e1fea1a | 6424 | fi |
9c3a0a29 | 6425 | |
b30fcfae | 6426 | |
b0e9b581 | 6427 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
8e1fea1a | 6428 | fi |
6429 | ||
50996fe5 | 6430 | # Handle --disable-<component> generically. |
6431 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6432 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
d2d2630b | 6433 | varname=`echo $dirname | sed -e s/+/_/g` |
6434 | if eval test x\${enable_${varname}} "=" xno ; then | |
50996fe5 | 6435 | noconfigdirs="$noconfigdirs $dir" |
6436 | fi | |
6437 | done | |
6438 | ||
dd6d3a67 | 6439 | # Check for Boehm's garbage collector |
cd9a469c | 6440 | # Check whether --enable-objc-gc was given. |
6441 | if test "${enable_objc_gc+set}" = set; then : | |
6442 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
dd6d3a67 | 6443 | *,objc,*:*:yes:*target-boehm-gc*) |
cd9a469c | 6444 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
dd6d3a67 | 6445 | ;; |
6446 | esac | |
cd9a469c | 6447 | fi |
6448 | ||
dd6d3a67 | 6449 | |
6450 | # Make sure we only build Boehm's garbage collector if required. | |
f1716c67 | 6451 | case ,${enable_languages},:${enable_objc_gc} in |
6452 | *,objc,*:yes) | |
dd6d3a67 | 6453 | # Keep target-boehm-gc if requested for Objective-C. |
6454 | ;; | |
dd6d3a67 | 6455 | *) |
f1716c67 | 6456 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6457 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6458 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6459 | fi | |
dd6d3a67 | 6460 | ;; |
6461 | esac | |
6462 | ||
e8eddfdd | 6463 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6464 | # $build_configdirs and $target_configdirs. | |
8e1fea1a | 6465 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6466 | ||
6467 | notsupp="" | |
6468 | for dir in . $skipdirs $noconfigdirs ; do | |
e8eddfdd | 6469 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
8e1fea1a | 6470 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6471 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6472 | if test -r $srcdir/$dirname/configure ; then | |
6473 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6474 | true | |
6475 | else | |
6476 | notsupp="$notsupp $dir" | |
6477 | fi | |
6478 | fi | |
6479 | fi | |
e8eddfdd | 6480 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6481 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6482 | if test -r $srcdir/$dirname/configure ; then | |
6483 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6484 | true | |
6485 | else | |
6486 | notsupp="$notsupp $dir" | |
6487 | fi | |
6488 | fi | |
6489 | fi | |
8e1fea1a | 6490 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6491 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6492 | if test -r $srcdir/$dirname/configure ; then | |
6493 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6494 | true | |
6495 | else | |
6496 | notsupp="$notsupp $dir" | |
6497 | fi | |
6498 | fi | |
6499 | fi | |
6500 | done | |
6501 | ||
8e1fea1a | 6502 | # Quietly strip out all directories which aren't configurable in this tree. |
6503 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6504 | # is now the case. | |
2f8725b0 | 6505 | build_configdirs_all="$build_configdirs" |
6506 | build_configdirs= | |
6507 | for i in ${build_configdirs_all} ; do | |
b30fcfae | 6508 | j=`echo $i | sed -e s/build-//g` |
2f8725b0 | 6509 | if test -f ${srcdir}/$j/configure ; then |
6510 | build_configdirs="${build_configdirs} $i" | |
6511 | fi | |
6512 | done | |
6513 | ||
8e1fea1a | 6514 | configdirs_all="$configdirs" |
6515 | configdirs= | |
6516 | for i in ${configdirs_all} ; do | |
6517 | if test -f ${srcdir}/$i/configure ; then | |
6518 | configdirs="${configdirs} $i" | |
6519 | fi | |
6520 | done | |
2f8725b0 | 6521 | |
8e1fea1a | 6522 | target_configdirs_all="$target_configdirs" |
6523 | target_configdirs= | |
6524 | for i in ${target_configdirs_all} ; do | |
b30fcfae | 6525 | j=`echo $i | sed -e s/target-//g` |
8e1fea1a | 6526 | if test -f ${srcdir}/$j/configure ; then |
6527 | target_configdirs="${target_configdirs} $i" | |
6528 | fi | |
6529 | done | |
6530 | ||
6531 | # Produce a warning message for the subdirs we can't configure. | |
6532 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6533 | # FSF releases, it's important to let people know when their machine isn't | |
6534 | # supported by the one or two programs in a package. | |
6535 | ||
6536 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6537 | # If $appdirs is non-empty, at least one of those directories must still | |
6538 | # be configured, or we error out. (E.g., if the gas release supports a | |
6539 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6540 | # pretend that all is well.) | |
6541 | if test -n "$appdirs" ; then | |
6542 | for dir in $appdirs ; do | |
6543 | if test -r $dir/Makefile.in ; then | |
6544 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6545 | appdirs="" | |
6546 | break | |
6547 | fi | |
2f8725b0 | 6548 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
8e1fea1a | 6549 | appdirs="" |
6550 | break | |
6551 | fi | |
6552 | fi | |
6553 | done | |
6554 | if test -n "$appdirs" ; then | |
6555 | echo "*** This configuration is not supported by this package." 1>&2 | |
6556 | exit 1 | |
6557 | fi | |
6558 | fi | |
6559 | # Okay, some application will build, or we don't care to check. Still | |
6560 | # notify of subdirs not getting built. | |
6561 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6562 | echo " ${notsupp}" 1>&2 | |
6563 | echo " (Any other directories should still work fine.)" 1>&2 | |
6564 | fi | |
6565 | ||
6566 | case "$host" in | |
6567 | *msdosdjgpp*) | |
6568 | enable_gdbtk=no ;; | |
6569 | esac | |
6570 | ||
eae5b2bc | 6571 | # To find our prefix, in gcc_cv_tool_prefix. |
6572 | ||
6573 | # The user is always right. | |
6574 | if test "${PATH_SEPARATOR+set}" != set; then | |
6575 | echo "#! /bin/sh" >conf$$.sh | |
6576 | echo "exit 0" >>conf$$.sh | |
6577 | chmod +x conf$$.sh | |
6578 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6579 | PATH_SEPARATOR=';' | |
6580 | else | |
6581 | PATH_SEPARATOR=: | |
6582 | fi | |
6583 | rm -f conf$$.sh | |
6584 | fi | |
6585 | ||
6586 | ||
6587 | ||
6588 | if test "x$exec_prefix" = xNONE; then | |
6589 | if test "x$prefix" = xNONE; then | |
6590 | gcc_cv_tool_prefix=$ac_default_prefix | |
6591 | else | |
6592 | gcc_cv_tool_prefix=$prefix | |
6593 | fi | |
6594 | else | |
6595 | gcc_cv_tool_prefix=$exec_prefix | |
6596 | fi | |
6597 | ||
6598 | # If there is no compiler in the tree, use the PATH only. In any | |
6599 | # case, if there is no compiler in the tree nobody should use | |
6600 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6601 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6602 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6603 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6604 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6605 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6606 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6607 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6608 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6609 | else | |
6610 | gcc_cv_tool_dirs= | |
6611 | fi | |
6612 | ||
6613 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6614 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6615 | fi | |
6616 | ||
6617 | ||
6618 | ||
8e1fea1a | 6619 | copy_dirs= |
6620 | ||
b30fcfae | 6621 | |
cd9a469c | 6622 | # Check whether --with-build-sysroot was given. |
6623 | if test "${with_build_sysroot+set}" = set; then : | |
6624 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
ffa8502d | 6625 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6626 | fi | |
6627 | else | |
6628 | SYSROOT_CFLAGS_FOR_TARGET= | |
cd9a469c | 6629 | fi |
ffa8502d | 6630 | |
6631 | ||
5f1f2de5 | 6632 | |
cd9a469c | 6633 | |
6634 | # Check whether --with-debug-prefix-map was given. | |
6635 | if test "${with_debug_prefix_map+set}" = set; then : | |
6636 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
5f1f2de5 | 6637 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6638 | for debug_map in $withval; do | |
6639 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6640 | done | |
6641 | fi | |
6642 | else | |
6643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
cd9a469c | 6644 | fi |
6645 | ||
5f1f2de5 | 6646 | |
6647 | ||
c898f165 | 6648 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6649 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6650 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6651 | # We want to ensure that TARGET libraries (which we know are built with | |
6652 | # gcc) are built with "-O2 -g", so include those options when setting | |
6653 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6654 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6655 | CFLAGS_FOR_TARGET=$CFLAGS | |
6656 | case " $CFLAGS " in | |
6657 | *" -O2 "*) ;; | |
6658 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6659 | esac | |
6660 | case " $CFLAGS " in | |
6661 | *" -g "* | *" -g3 "*) ;; | |
6662 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6663 | esac | |
6664 | fi | |
6665 | ||
6666 | ||
6667 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6668 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6669 | case " $CXXFLAGS " in | |
6670 | *" -O2 "*) ;; | |
6671 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6672 | esac | |
6673 | case " $CXXFLAGS " in | |
6674 | *" -g "* | *" -g3 "*) ;; | |
6675 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6676 | esac | |
6677 | fi | |
6678 | ||
6679 | ||
ed9516f5 | 6680 | |
6681 | ||
8e1fea1a | 6682 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6683 | # the named directory are copied to $(tooldir)/sys-include. | |
6684 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6685 | if test x${is_cross_compiler} = xno ; then | |
6686 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6687 | exit 1 | |
6688 | fi | |
6689 | if test x"${with_headers}" != xyes ; then | |
eae5b2bc | 6690 | x=${gcc_cv_tool_prefix} |
b30fcfae | 6691 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
8e1fea1a | 6692 | fi |
6693 | fi | |
6694 | ||
6695 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6696 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6697 | # are permitted. | |
6698 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6699 | if test x${is_cross_compiler} = xno ; then | |
6700 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6701 | exit 1 | |
6702 | fi | |
6703 | if test x"${with_libs}" != xyes ; then | |
6704 | # Copy the libraries in reverse order, so that files in the first named | |
6705 | # library override files in subsequent libraries. | |
eae5b2bc | 6706 | x=${gcc_cv_tool_prefix} |
8e1fea1a | 6707 | for l in ${with_libs}; do |
b30fcfae | 6708 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
8e1fea1a | 6709 | done |
6710 | fi | |
6711 | fi | |
6712 | ||
7bfefa9d | 6713 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
c47832b1 | 6714 | # |
6715 | # This is done by determining whether or not the appropriate directory | |
6716 | # is available, and by checking whether or not specific configurations | |
6717 | # have requested that this magic not happen. | |
b30fcfae | 6718 | # |
6719 | # The command line options always override the explicit settings in | |
c47832b1 | 6720 | # configure.in, and the settings in configure.in override this magic. |
6721 | # | |
b30fcfae | 6722 | # If the default for a toolchain is to use GNU as and ld, and you don't |
c47832b1 | 6723 | # want to do that, then you should use the --without-gnu-as and |
7bfefa9d | 6724 | # --without-gnu-ld options for the configure script. Similarly, if |
6725 | # the default is to use the included zlib and you don't want to do that, | |
6726 | # you should use the --with-system-zlib option for the configure script. | |
c47832b1 | 6727 | |
6728 | if test x${use_gnu_as} = x && | |
6729 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6730 | with_gnu_as=yes | |
6731 | extra_host_args="$extra_host_args --with-gnu-as" | |
6732 | fi | |
6733 | ||
6734 | if test x${use_gnu_ld} = x && | |
3d47fcf5 | 6735 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
c47832b1 | 6736 | with_gnu_ld=yes |
6737 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6738 | fi | |
6739 | ||
7bfefa9d | 6740 | if test x${use_included_zlib} = x && |
6741 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6742 | : | |
6743 | else | |
6744 | with_system_zlib=yes | |
6745 | extra_host_args="$extra_host_args --with-system-zlib" | |
6746 | fi | |
6747 | ||
c47832b1 | 6748 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6749 | # can detect this case. | |
6750 | ||
6751 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6752 | with_newlib=yes | |
6753 | extra_host_args="$extra_host_args --with-newlib" | |
6754 | fi | |
6755 | ||
8e1fea1a | 6756 | # Handle ${copy_dirs} |
6757 | set fnord ${copy_dirs} | |
6758 | shift | |
6759 | while test $# != 0 ; do | |
6760 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6761 | : | |
6762 | else | |
6763 | echo Copying $1 to $2 | |
6764 | ||
6765 | # Use the install script to create the directory and all required | |
6766 | # parent directories. | |
6767 | if test -d $2 ; then | |
6768 | : | |
6769 | else | |
6770 | echo >config.temp | |
6771 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6772 | fi | |
6773 | ||
6774 | # Copy the directory, assuming we have tar. | |
6775 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6776 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6777 | ||
6778 | # It is the responsibility of the user to correctly adjust all | |
6779 | # symlinks. If somebody can figure out how to handle them correctly | |
6780 | # here, feel free to add the code. | |
6781 | ||
6782 | echo $1 > $2/COPIED | |
6783 | fi | |
6784 | shift; shift | |
6785 | done | |
6786 | ||
c47832b1 | 6787 | # Determine a target-dependent exec_prefix that the installed |
6788 | # gcc will search in. Keep this list sorted by triplet, with | |
6789 | # the *-*-osname triplets last. | |
6790 | md_exec_prefix= | |
6791 | case "${target}" in | |
09c2d953 | 6792 | i[34567]86-pc-msdosdjgpp*) |
c47832b1 | 6793 | md_exec_prefix=/dev/env/DJDIR/bin |
6794 | ;; | |
c47832b1 | 6795 | *-*-hpux* | \ |
c47832b1 | 6796 | *-*-nto-qnx* | \ |
93faf308 | 6797 | *-*-solaris2*) |
c47832b1 | 6798 | md_exec_prefix=/usr/ccs/bin |
6799 | ;; | |
6800 | esac | |
6801 | ||
71ab34df | 6802 | extra_arflags_for_target= |
6803 | extra_nmflags_for_target= | |
6804 | extra_ranlibflags_for_target= | |
6805 | target_makefile_frag=/dev/null | |
6806 | case "${target}" in | |
57c7de11 | 6807 | spu-*-*) |
6808 | target_makefile_frag="config/mt-spu" | |
6809 | ;; | |
f8520ad7 | 6810 | mips*-sde-elf*) |
6811 | target_makefile_frag="config/mt-sde" | |
6812 | ;; | |
3013c2c7 | 6813 | mipsisa*-*-elfoabi*) |
6814 | target_makefile_frag="config/mt-mips-elfoabi" | |
6815 | ;; | |
559b0712 | 6816 | mips*-*-*linux* | mips*-*-gnu*) |
6817 | target_makefile_frag="config/mt-mips-gnu" | |
6818 | ;; | |
3bef4012 | 6819 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
cb8a7007 | 6820 | target_makefile_frag="config/mt-gnu" |
71ab34df | 6821 | ;; |
6822 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
b30fcfae | 6823 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
71ab34df | 6824 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6825 | # harmless if we're using GNU nm or ar. | |
6826 | extra_arflags_for_target=" -X32_64" | |
6827 | extra_nmflags_for_target=" -B -X32_64" | |
6828 | ;; | |
1384f0b0 | 6829 | *-*-darwin[3-9]*) |
6830 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
71ab34df | 6831 | extra_ranlibflags_for_target=" -c" |
6832 | ;; | |
71ab34df | 6833 | esac |
6834 | ||
6835 | alphaieee_frag=/dev/null | |
6836 | case $target in | |
6837 | alpha*-*-*) | |
6838 | # This just makes sure to use the -mieee option to build target libs. | |
6839 | # This should probably be set individually by each library. | |
6840 | alphaieee_frag="config/mt-alphaieee" | |
6841 | ;; | |
6842 | esac | |
6843 | ||
6844 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6845 | # the target libraries, similarly if it is not specified, use -Os | |
6846 | # on selected platforms. | |
6847 | ospace_frag=/dev/null | |
6848 | case "${enable_target_optspace}:${target}" in | |
6849 | yes:*) | |
6850 | ospace_frag="config/mt-ospace" | |
6851 | ;; | |
6852 | :d30v-*) | |
6853 | ospace_frag="config/mt-d30v" | |
6854 | ;; | |
6855 | :m32r-* | :d10v-* | :fr30-*) | |
6856 | ospace_frag="config/mt-ospace" | |
6857 | ;; | |
6858 | no:* | :*) | |
6859 | ;; | |
6860 | *) | |
6861 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6862 | ;; | |
6863 | esac | |
6864 | ||
71ab34df | 6865 | # Default to using --with-stabs for certain targets. |
6866 | if test x${with_stabs} = x ; then | |
6867 | case "${target}" in | |
d74dd50d | 6868 | mips*-*-irix[56]*) |
71ab34df | 6869 | ;; |
6870 | mips*-*-* | alpha*-*-osf*) | |
6871 | with_stabs=yes; | |
6872 | extra_host_args="${extra_host_args} --with-stabs" | |
6873 | ;; | |
6874 | esac | |
6875 | fi | |
6876 | ||
71ab34df | 6877 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6878 | # using) don't handle "\$" correctly, so don't use it here. | |
b30fcfae | 6879 | tooldir='${exec_prefix}'/${target_noncanonical} |
71ab34df | 6880 | build_tooldir=${tooldir} |
6881 | ||
71ab34df | 6882 | # Create a .gdbinit file which runs the one in srcdir |
6883 | # and tells GDB to look there for source files. | |
6884 | ||
6885 | if test -r ${srcdir}/.gdbinit ; then | |
6886 | case ${srcdir} in | |
6887 | .) ;; | |
6888 | *) cat > ./.gdbinit <<EOF | |
6889 | # ${NO_EDIT} | |
6890 | dir ${srcdir} | |
6891 | dir . | |
6892 | source ${srcdir}/.gdbinit | |
6893 | EOF | |
6894 | ;; | |
6895 | esac | |
6896 | fi | |
6897 | ||
71ab34df | 6898 | # Make sure that the compiler is able to generate an executable. If it |
6899 | # can't, we are probably in trouble. We don't care whether we can run the | |
6900 | # executable--we might be using a cross compiler--we only care whether it | |
6901 | # can be created. At this point the main configure script has set CC. | |
6902 | we_are_ok=no | |
6903 | echo "int main () { return 0; }" > conftest.c | |
6904 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6905 | if test $? = 0 ; then | |
6906 | if test -s conftest || test -s conftest.exe ; then | |
6907 | we_are_ok=yes | |
6908 | fi | |
b30fcfae | 6909 | fi |
71ab34df | 6910 | case $we_are_ok in |
6911 | no) | |
6912 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6913 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6914 | rm -f conftest* | |
6915 | exit 1 | |
6916 | ;; | |
6917 | esac | |
6918 | rm -f conftest* | |
6919 | ||
7d804f04 | 6920 | # Decide which environment variable is used to find dynamic libraries. |
71ab34df | 6921 | case "${host}" in |
6922 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
b2240ff6 | 6923 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
7d804f04 | 6924 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
71ab34df | 6925 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6926 | esac | |
6927 | ||
7d804f04 | 6928 | # On systems where the dynamic library environment variable is PATH, |
6929 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6930 | # built executables to PATH. | |
6931 | if test "$RPATH_ENVVAR" = PATH; then | |
6932 | GCC_SHLIB_SUBDIR=/shlib | |
6933 | else | |
6934 | GCC_SHLIB_SUBDIR= | |
6935 | fi | |
6936 | ||
71ab34df | 6937 | # Record target_configdirs and the configure arguments for target and |
6938 | # build configuration in Makefile. | |
6939 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2f8725b0 | 6940 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
71ab34df | 6941 | |
5c96a839 | 6942 | # If we are building libgomp, bootstrap it. |
6943 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6944 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6945 | fi | |
6946 | ||
71ab34df | 6947 | # Determine whether gdb needs tk/tcl or not. |
6948 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6949 | # and in that case we want gdb to be built without tk. Ugh! | |
6950 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6951 | # so we should be able to put the 'maybe's in unconditionally and | |
6952 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6953 | # 100% sure that that's safe though. | |
8fdaf281 | 6954 | |
f843f075 | 6955 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
71ab34df | 6956 | case "$enable_gdbtk" in |
6957 | no) | |
6958 | GDB_TK="" ;; | |
8fdaf281 | 6959 | yes) |
6960 | GDB_TK="${gdb_tk}" ;; | |
71ab34df | 6961 | *) |
8fdaf281 | 6962 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6963 | # distro. Eventually someone will fix this and move Insight, nee | |
6964 | # gdbtk to a separate directory. | |
6965 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6966 | GDB_TK="${gdb_tk}" | |
6967 | else | |
6968 | GDB_TK="" | |
6969 | fi | |
6970 | ;; | |
71ab34df | 6971 | esac |
415470be | 6972 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6973 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
71ab34df | 6974 | |
01b41571 | 6975 | # Strip out unwanted targets. |
6f4f34a7 | 6976 | |
6977 | # While at that, we remove Makefiles if we were started for recursive | |
6978 | # configuration, so that the top-level Makefile reconfigures them, | |
6979 | # like we used to do when configure itself was recursive. | |
6f4f34a7 | 6980 | |
8bb79148 | 6981 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6982 | # but now we're fixing up the Makefile ourselves with the additional | |
6983 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6984 | # extrasub-{build,host,target} not because there is any reason to split | |
6985 | # the substitutions up that way, but only to remain below the limit of | |
6986 | # 99 commands in a script, for HP-UX sed. | |
6987 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
6f4f34a7 | 6988 | |
7b5fee3e | 6989 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6990 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6991 | yes:yes:*\ gold\ *:*) | |
6992 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6993 | ;; | |
6994 | esac | |
6995 | ||
3c782584 | 6996 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
719faf1c | 6997 | case $enable_bootstrap in |
54f0538b | 6998 | yes) |
719faf1c | 6999 | bootstrap_suffix=bootstrap |
7000 | BUILD_CONFIG=bootstrap-debug | |
7001 | ;; | |
54f0538b | 7002 | no) |
719faf1c | 7003 | bootstrap_suffix=no-bootstrap |
7004 | BUILD_CONFIG= | |
7005 | ;; | |
54f0538b | 7006 | esac |
7007 | ||
719faf1c | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7009 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
a2059f7a | 7010 | |
7011 | ||
7012 | # Check whether --with-build-config was given. | |
7013 | if test "${with_build_config+set}" = set; then : | |
7014 | withval=$with_build_config; case $with_build_config in | |
7015 | yes) with_build_config= ;; | |
7016 | no) with_build_config= BUILD_CONFIG= ;; | |
7017 | esac | |
7018 | fi | |
7019 | ||
7020 | ||
719faf1c | 7021 | if test "x${with_build_config}" != x; then |
7022 | BUILD_CONFIG=$with_build_config | |
7023 | else | |
7024 | case $BUILD_CONFIG in | |
7025 | bootstrap-debug) | |
7026 | if echo "int f (void) { return 0; }" > conftest.c && | |
7027 | ${CC} -c conftest.c && | |
7028 | mv conftest.o conftest.o.g0 && | |
7029 | ${CC} -c -g conftest.c && | |
7030 | mv conftest.o conftest.o.g && | |
affd1d61 | 7031 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
719faf1c | 7032 | : |
7033 | else | |
7034 | BUILD_CONFIG= | |
7035 | fi | |
7036 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7037 | ;; | |
7038 | esac | |
7039 | fi | |
7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7041 | $as_echo "$BUILD_CONFIG" >&6; } | |
7042 | ||
7043 | ||
8bb79148 | 7044 | extrasub_build= |
2f8725b0 | 7045 | for module in ${build_configdirs} ; do |
93f93279 | 7046 | if test -z "${no_recursion}" \ |
7047 | && test -f ${build_subdir}/${module}/Makefile; then | |
7048 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7049 | rm -f ${build_subdir}/${module}/Makefile | |
7050 | fi | |
8bb79148 | 7051 | extrasub_build="$extrasub_build |
93f93279 | 7052 | /^@if build-$module\$/d |
7053 | /^@endif build-$module\$/d | |
7054 | /^@if build-$module-$bootstrap_suffix\$/d | |
7055 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7056 | done | |
8bb79148 | 7057 | extrasub_host= |
93f93279 | 7058 | for module in ${configdirs} ; do |
9c19a746 | 7059 | if test -z "${no_recursion}"; then |
35d84d10 | 7060 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
9c19a746 | 7061 | if test -f ${file}; then |
7062 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7063 | rm -f ${file} | |
7064 | fi | |
7065 | done | |
93f93279 | 7066 | fi |
8bb79148 | 7067 | extrasub_host="$extrasub_host |
93f93279 | 7068 | /^@if $module\$/d |
7069 | /^@endif $module\$/d | |
7070 | /^@if $module-$bootstrap_suffix\$/d | |
7071 | /^@endif $module-$bootstrap_suffix\$/d" | |
7072 | done | |
8bb79148 | 7073 | extrasub_target= |
93f93279 | 7074 | for module in ${target_configdirs} ; do |
7075 | if test -z "${no_recursion}" \ | |
7076 | && test -f ${target_subdir}/${module}/Makefile; then | |
7077 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7078 | rm -f ${target_subdir}/${module}/Makefile | |
7079 | fi | |
7ab76cec | 7080 | |
7081 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7082 | case $bootstrap_target_libs in | |
7083 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7084 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7085 | esac | |
7086 | ||
8bb79148 | 7087 | extrasub_target="$extrasub_target |
93f93279 | 7088 | /^@if target-$module\$/d |
7089 | /^@endif target-$module\$/d | |
7ab76cec | 7090 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7091 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
93f93279 | 7092 | done |
7093 | ||
8bb79148 | 7094 | # Do the final fixup along with target modules. |
7095 | extrasub_target="$extrasub_target | |
01b41571 | 7096 | /^@if /,/^@endif /d" |
71ab34df | 7097 | |
7098 | # Create the serialization dependencies. This uses a temporary file. | |
7099 | ||
cd9a469c | 7100 | # Check whether --enable-serial-configure was given. |
7101 | if test "${enable_serial_configure+set}" = set; then : | |
7102 | enableval=$enable_serial_configure; | |
7103 | fi | |
11d8013a | 7104 | |
7105 | ||
622c1fa9 | 7106 | case ${enable_serial_configure} in |
7107 | yes) | |
7108 | enable_serial_build_configure=yes | |
7109 | enable_serial_host_configure=yes | |
7110 | enable_serial_target_configure=yes | |
7111 | ;; | |
7112 | esac | |
7113 | ||
71ab34df | 7114 | # These force 'configure's to be done one at a time, to avoid problems |
7115 | # with contention over a shared config.cache. | |
7116 | rm -f serdep.tmp | |
11d8013a | 7117 | echo '# serdep.tmp' > serdep.tmp |
71ab34df | 7118 | olditem= |
622c1fa9 | 7119 | test "x${enable_serial_build_configure}" = xyes && |
71ab34df | 7120 | for item in ${build_configdirs} ; do |
7121 | case ${olditem} in | |
7122 | "") ;; | |
11d8013a | 7123 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
71ab34df | 7124 | esac |
7125 | olditem=${item} | |
7126 | done | |
7127 | olditem= | |
622c1fa9 | 7128 | test "x${enable_serial_host_configure}" = xyes && |
71ab34df | 7129 | for item in ${configdirs} ; do |
7130 | case ${olditem} in | |
7131 | "") ;; | |
11d8013a | 7132 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
71ab34df | 7133 | esac |
7134 | olditem=${item} | |
7135 | done | |
7136 | olditem= | |
622c1fa9 | 7137 | test "x${enable_serial_target_configure}" = xyes && |
71ab34df | 7138 | for item in ${target_configdirs} ; do |
7139 | case ${olditem} in | |
7140 | "") ;; | |
11d8013a | 7141 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
71ab34df | 7142 | esac |
7143 | olditem=${item} | |
7144 | done | |
7145 | serialization_dependencies=serdep.tmp | |
7146 | ||
7147 | ||
11d8013a | 7148 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
b30fcfae | 7149 | # target, nonopt, and variable assignments. These are the ones we |
412c2e81 | 7150 | # might not want to pass down to subconfigures. The exception being |
7151 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7152 | # files altogether, and which should be passed on to subconfigures. | |
7153 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7154 | # so that we can pass down a consistent program-transform-name. | |
b30fcfae | 7155 | baseargs= |
0e4d1862 | 7156 | tbaseargs= |
b30fcfae | 7157 | keep_next=no |
7158 | skip_next=no | |
7159 | eval "set -- $ac_configure_args" | |
4ff792a4 | 7160 | for ac_arg |
7161 | do | |
b30fcfae | 7162 | if test X"$skip_next" = X"yes"; then |
7163 | skip_next=no | |
7164 | continue | |
7165 | fi | |
7166 | if test X"$keep_next" = X"yes"; then | |
7167 | case $ac_arg in | |
7168 | *\'*) | |
7169 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7170 | esac | |
7171 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7172 | tbaseargs="$tbaseargs '$ac_arg'" |
b30fcfae | 7173 | keep_next=no |
7174 | continue | |
7175 | fi | |
7176 | ||
7177 | # Handle separated arguments. Based on the logic generated by | |
7178 | # autoconf 2.59. | |
7179 | case $ac_arg in | |
7180 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7181 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7182 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7183 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7184 | separate_arg=no | |
7185 | ;; | |
7186 | -*) | |
7187 | separate_arg=yes | |
7188 | ;; | |
7189 | *) | |
7190 | separate_arg=no | |
7191 | ;; | |
7192 | esac | |
7193 | ||
0e4d1862 | 7194 | skip_targ=no |
7195 | case $ac_arg in | |
7196 | ||
7197 | --with-* | --without-*) | |
7198 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7199 | ||
7200 | case $libopt in | |
7201 | *[-_]include) | |
7202 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7203 | ;; | |
7204 | *[-_]lib) | |
7205 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7206 | ;; | |
7207 | *) | |
7208 | lib=$libopt | |
7209 | ;; | |
7210 | esac | |
7211 | ||
7212 | ||
7213 | case $lib in | |
7214 | mpc | mpfr | gmp | ppl | cloog) | |
7215 | # If we're processing --with-$lib, --with-$lib-include or | |
7216 | # --with-$lib-lib, for one of the libs above, and target is | |
7217 | # different from host, don't pass the current argument to any | |
7218 | # target library's configure. | |
7219 | if test x$is_cross_compiler = xyes; then | |
7220 | skip_targ=yes | |
7221 | fi | |
7222 | ;; | |
7223 | esac | |
7224 | ;; | |
7225 | esac | |
7226 | ||
b30fcfae | 7227 | case "$ac_arg" in |
412c2e81 | 7228 | --cache-file=/dev/null | \ |
7229 | -cache-file=/dev/null ) | |
7230 | # Handled here to avoid the test to skip args below. | |
7231 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7232 | tbaseargs="$tbaseargs '$ac_arg'" |
412c2e81 | 7233 | # Assert: $separate_arg should always be no. |
7234 | keep_next=$separate_arg | |
7235 | ;; | |
b30fcfae | 7236 | --no*) |
7237 | continue | |
7238 | ;; | |
7239 | --c* | \ | |
7240 | --sr* | \ | |
7241 | --ho* | \ | |
7242 | --bu* | \ | |
7243 | --t* | \ | |
7244 | --program-* | \ | |
7245 | -cache_file* | \ | |
7246 | -srcdir* | \ | |
7247 | -host* | \ | |
7248 | -build* | \ | |
7249 | -target* | \ | |
7250 | -program-prefix* | \ | |
7251 | -program-suffix* | \ | |
7252 | -program-transform-name* ) | |
7253 | skip_next=$separate_arg | |
7254 | continue | |
7255 | ;; | |
7256 | -*) | |
7257 | # An option. Add it. | |
7258 | case $ac_arg in | |
7259 | *\'*) | |
7260 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7261 | esac | |
7262 | baseargs="$baseargs '$ac_arg'" | |
0e4d1862 | 7263 | if test X"$skip_targ" = Xno; then |
7264 | tbaseargs="$tbaseargs '$ac_arg'" | |
7265 | fi | |
b30fcfae | 7266 | keep_next=$separate_arg |
7267 | ;; | |
7268 | *) | |
7269 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7270 | # pass it down; let the Makefile handle this. | |
7271 | continue | |
7272 | ;; | |
7273 | esac | |
7274 | done | |
7275 | # Remove the initial space we just introduced and, as these will be | |
7276 | # expanded by make, quote '$'. | |
7277 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
71ab34df | 7278 | |
fbfea1fa | 7279 | # Add in --program-transform-name, after --program-prefix and |
7280 | # --program-suffix have been applied to it. Autoconf has already | |
7281 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7282 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
b30fcfae | 7283 | # quotes, because this will be expanded first by make and then by the shell. |
fbfea1fa | 7284 | # Also, because we want to override the logic in subdir configure scripts to |
7285 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7286 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7287 | ${program_transform_name} | |
7288 | EOF_SED | |
7289 | gcc_transform_name=`cat conftestsed.out` | |
7290 | rm -f conftestsed.out | |
7291 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
0e4d1862 | 7292 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
af7bb0c0 | 7293 | if test "$silent" = yes; then |
7294 | baseargs="$baseargs --silent" | |
0e4d1862 | 7295 | tbaseargs="$tbaseargs --silent" |
af7bb0c0 | 7296 | fi |
cd2f3773 | 7297 | baseargs="$baseargs --disable-option-checking" |
0e4d1862 | 7298 | tbaseargs="$tbaseargs --disable-option-checking" |
fbfea1fa | 7299 | |
372a3f1e | 7300 | # Record and document user additions to sub configure arguments. |
7301 | ||
7302 | ||
7303 | ||
7304 | ||
71ab34df | 7305 | # For the build-side libraries, we just need to pretend we're native, |
7306 | # and not use the same cache file. Multilibs are neither needed nor | |
7307 | # desired. | |
372a3f1e | 7308 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
71ab34df | 7309 | |
7310 | # For host modules, accept cache file option, or specification as blank. | |
7311 | case "${cache_file}" in | |
7312 | "") # empty | |
7313 | cache_file_option="" ;; | |
7314 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7315 | cache_file_option="--cache-file=${cache_file}" ;; | |
7316 | *) # relative path | |
7317 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7318 | esac | |
7319 | ||
ba1081ef | 7320 | # Host dirs don't like to share a cache file either, horribly enough. |
7321 | # This seems to be due to autoconf 2.5x stupidity. | |
372a3f1e | 7322 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
71ab34df | 7323 | |
0e4d1862 | 7324 | target_configargs="$target_configargs ${tbaseargs}" |
71ab34df | 7325 | |
7326 | # Passing a --with-cross-host argument lets the target libraries know | |
7327 | # whether they are being built with a cross-compiler or being built | |
7328 | # native. However, it would be better to use other mechanisms to make the | |
7329 | # sorts of decisions they want to make on this basis. Please consider | |
7330 | # this option to be deprecated. FIXME. | |
7331 | if test x${is_cross_compiler} = xyes ; then | |
b30fcfae | 7332 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
71ab34df | 7333 | fi |
7334 | ||
59a40389 | 7335 | # Default to --enable-multilib. |
7336 | if test x${enable_multilib} = x ; then | |
71ab34df | 7337 | target_configargs="--enable-multilib ${target_configargs}" |
59a40389 | 7338 | fi |
71ab34df | 7339 | |
7340 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7341 | # changed from the earlier setting of with_newlib. | |
7342 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7343 | target_configargs="--with-newlib ${target_configargs}" | |
7344 | fi | |
7345 | ||
74fef112 | 7346 | # Different target subdirs use different values of certain variables |
7347 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7348 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7349 | # it doesn't automatically accept command-line overrides of them. | |
7350 | # This means it's not safe for target subdirs to share a cache file, | |
7351 | # which is disgusting, but there you have it. Hopefully this can be | |
7352 | # fixed in future. It's still worthwhile to use a cache file for each | |
7353 | # directory. I think. | |
7354 | ||
a8abbd9d | 7355 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7356 | # We need to pass --target, as newer autoconf's requires consistency | |
7357 | # for target_alias and gcc doesn't manage it consistently. | |
d45318b3 | 7358 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
71ab34df | 7359 | |
71ab34df | 7360 | FLAGS_FOR_TARGET= |
7361 | case " $target_configdirs " in | |
7362 | *" newlib "*) | |
7363 | case " $target_configargs " in | |
7364 | *" --with-newlib "*) | |
7365 | case "$target" in | |
fe284774 | 7366 | *-cygwin*) |
7367 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7368 | ;; | |
71ab34df | 7369 | esac |
7370 | ||
7371 | # If we're not building GCC, don't discard standard headers. | |
7372 | if test -d ${srcdir}/gcc; then | |
7373 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7374 | ||
7375 | if test "${build}" != "${host}"; then | |
7376 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7377 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7378 | # to it. This is right: we don't want to search that directory | |
7379 | # for binaries, but we want the header files in there, so add | |
7380 | # them explicitly. | |
e619f0a6 | 7381 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
71ab34df | 7382 | |
7383 | # Someone might think of using the pre-installed headers on | |
7384 | # Canadian crosses, in case the installed compiler is not fully | |
7385 | # compatible with the compiler being built. In this case, it | |
7386 | # would be better to flag an error than risking having | |
7387 | # incompatible object files being constructed. We can't | |
7388 | # guarantee that an error will be flagged, but let's hope the | |
7389 | # compiler will do it, when presented with incompatible header | |
7390 | # files. | |
7391 | fi | |
7392 | fi | |
7393 | ||
7394 | case "${target}-${is_cross_compiler}" in | |
f74ea578 | 7395 | i[3456789]86-*-linux*-no) |
71ab34df | 7396 | # Here host == target, so we don't need to build gcc, |
7397 | # so we don't want to discard standard headers. | |
7398 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7399 | ;; | |
7400 | *) | |
7401 | # If we're building newlib, use its generic headers last, but search | |
7402 | # for any libc-related directories first (so make it the last -B | |
7403 | # switch). | |
7404 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
1c5767f1 | 7405 | |
7406 | # If we're building libgloss, find the startup file, simulator library | |
7407 | # and linker script. | |
7408 | case " $target_configdirs " in | |
7409 | *" libgloss "*) | |
7410 | # Look for startup file, simulator library and maybe linker script. | |
7411 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7412 | # Look for libnosys.a in case the target needs it. | |
7413 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7414 | # Most targets have the linker script in the source directory. | |
7415 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7416 | ;; | |
7417 | esac | |
71ab34df | 7418 | ;; |
7419 | esac | |
7420 | ;; | |
7421 | esac | |
7422 | ;; | |
7423 | esac | |
fe284774 | 7424 | |
d6d689df | 7425 | case "$target" in |
fe284774 | 7426 | x86_64-*mingw* | *-w64-mingw*) |
7427 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7428 | # however, use a symlink named 'mingw' in ${prefix} . | |
7429 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7430 | ;; | |
7431 | *-mingw*) | |
7432 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7433 | 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' | |
7434 | ;; | |
d6d689df | 7435 | esac |
71ab34df | 7436 | |
d8e9ea04 | 7437 | # Allow the user to override the flags for |
7438 | # our build compiler if desired. | |
823e8b8d | 7439 | if test x"${build}" = x"${host}" ; then |
7440 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7441 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7442 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7443 | fi | |
d8e9ea04 | 7444 | |
71ab34df | 7445 | # On Canadian crosses, we'll be searching the right directories for |
7446 | # the previously-installed cross compiler, so don't bother to add | |
7447 | # flags for directories within the install tree of the compiler | |
7448 | # being built; programs in there won't even run. | |
7449 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7450 | # Search for pre-installed headers if nothing else fits. | |
5750c7d4 | 7451 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
71ab34df | 7452 | fi |
7453 | ||
7454 | if test "x${use_gnu_ld}" = x && | |
7455 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7456 | # Arrange for us to find uninstalled linker scripts. | |
c1eb9e31 | 7457 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
71ab34df | 7458 | fi |
7459 | ||
24714a39 | 7460 | # Search for other target-specific linker scripts and such. |
7461 | case "${target}" in | |
38d7211b | 7462 | mep*) |
7463 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7464 | ;; | |
24714a39 | 7465 | esac |
7466 | ||
71ab34df | 7467 | # Makefile fragments. |
03c65091 | 7468 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7469 | do | |
7470 | eval fragval=\$$frag | |
7471 | if test $fragval != /dev/null; then | |
7472 | eval $frag=${srcdir}/$fragval | |
7473 | fi | |
7474 | done | |
71ab34df | 7475 | |
7476 | ||
7477 | ||
7478 | ||
7479 | ||
7480 | # Miscellanea: directories, flags, etc. | |
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7d804f04 | 7488 | |
2f8725b0 | 7489 | # Build module lists & subconfigure args. |
71ab34df | 7490 | |
7491 | ||
7492 | ||
f5aebe3e | 7493 | # Host module lists & subconfigure args. |
7494 | ||
7495 | ||
7496 | ||
1fda3360 | 7497 | |
f5aebe3e | 7498 | # Target module lists & subconfigure args. |
7499 | ||
7500 | ||
7501 | ||
7502 | # Build tools. | |
7503 | ||
7504 | ||
7505 | ||
93c5e793 | 7506 | |
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | ||
7519 | ||
f5aebe3e | 7520 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7521 | # on the build machine. These are used if the Makefile can't locate these | |
7522 | # programs in objdir. | |
7523 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7524 | ||
7525 | for ac_prog in 'bison -y' byacc yacc | |
7526 | do | |
b30fcfae | 7527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7528 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7530 | $as_echo_n "checking for $ac_word... " >&6; } | |
7531 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7532 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7533 | else |
7534 | if test -n "$YACC"; then | |
7535 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7536 | else | |
b30fcfae | 7537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7538 | for as_dir in $PATH | |
7539 | do | |
7540 | IFS=$as_save_IFS | |
7541 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7542 | for ac_exec_ext in '' $ac_executable_extensions; do |
7543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7544 | ac_cv_prog_YACC="$ac_prog" |
cd9a469c | 7545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7546 | break 2 |
7547 | fi | |
7548 | done | |
cd9a469c | 7549 | done |
7550 | IFS=$as_save_IFS | |
b30fcfae | 7551 | |
f5aebe3e | 7552 | fi |
7553 | fi | |
b30fcfae | 7554 | YACC=$ac_cv_prog_YACC |
f5aebe3e | 7555 | if test -n "$YACC"; then |
cd9a469c | 7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7557 | $as_echo "$YACC" >&6; } | |
f5aebe3e | 7558 | else |
cd9a469c | 7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7560 | $as_echo "no" >&6; } | |
f5aebe3e | 7561 | fi |
7562 | ||
cd9a469c | 7563 | |
b30fcfae | 7564 | test -n "$YACC" && break |
f5aebe3e | 7565 | done |
7566 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7567 | ||
7568 | case " $build_configdirs " in | |
7569 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
f5aebe3e | 7570 | esac |
7571 | ||
7572 | for ac_prog in bison | |
7573 | do | |
b30fcfae | 7574 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7575 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7577 | $as_echo_n "checking for $ac_word... " >&6; } | |
7578 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7579 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7580 | else |
7581 | if test -n "$BISON"; then | |
7582 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7583 | else | |
b30fcfae | 7584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7585 | for as_dir in $PATH | |
7586 | do | |
7587 | IFS=$as_save_IFS | |
7588 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7589 | for ac_exec_ext in '' $ac_executable_extensions; do |
7590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7591 | ac_cv_prog_BISON="$ac_prog" |
cd9a469c | 7592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7593 | break 2 |
7594 | fi | |
7595 | done | |
cd9a469c | 7596 | done |
7597 | IFS=$as_save_IFS | |
b30fcfae | 7598 | |
f5aebe3e | 7599 | fi |
7600 | fi | |
b30fcfae | 7601 | BISON=$ac_cv_prog_BISON |
f5aebe3e | 7602 | if test -n "$BISON"; then |
cd9a469c | 7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7604 | $as_echo "$BISON" >&6; } | |
f5aebe3e | 7605 | else |
cd9a469c | 7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7607 | $as_echo "no" >&6; } | |
f5aebe3e | 7608 | fi |
7609 | ||
cd9a469c | 7610 | |
b30fcfae | 7611 | test -n "$BISON" && break |
f5aebe3e | 7612 | done |
7613 | test -n "$BISON" || BISON="$MISSING bison" | |
7614 | ||
7615 | case " $build_configdirs " in | |
7616 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7617 | esac | |
7618 | ||
7619 | for ac_prog in gm4 gnum4 m4 | |
7620 | do | |
b30fcfae | 7621 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7622 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7624 | $as_echo_n "checking for $ac_word... " >&6; } | |
7625 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7626 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7627 | else |
7628 | if test -n "$M4"; then | |
7629 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7630 | else | |
b30fcfae | 7631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7632 | for as_dir in $PATH | |
7633 | do | |
7634 | IFS=$as_save_IFS | |
7635 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7636 | for ac_exec_ext in '' $ac_executable_extensions; do |
7637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7638 | ac_cv_prog_M4="$ac_prog" |
cd9a469c | 7639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7640 | break 2 |
7641 | fi | |
7642 | done | |
cd9a469c | 7643 | done |
7644 | IFS=$as_save_IFS | |
b30fcfae | 7645 | |
f5aebe3e | 7646 | fi |
7647 | fi | |
b30fcfae | 7648 | M4=$ac_cv_prog_M4 |
f5aebe3e | 7649 | if test -n "$M4"; then |
cd9a469c | 7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7651 | $as_echo "$M4" >&6; } | |
f5aebe3e | 7652 | else |
cd9a469c | 7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7654 | $as_echo "no" >&6; } | |
f5aebe3e | 7655 | fi |
7656 | ||
cd9a469c | 7657 | |
b30fcfae | 7658 | test -n "$M4" && break |
f5aebe3e | 7659 | done |
7660 | test -n "$M4" || M4="$MISSING m4" | |
7661 | ||
7662 | case " $build_configdirs " in | |
7663 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7664 | esac | |
7665 | ||
7666 | for ac_prog in flex lex | |
7667 | do | |
b30fcfae | 7668 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7669 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7671 | $as_echo_n "checking for $ac_word... " >&6; } | |
7672 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7673 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7674 | else |
7675 | if test -n "$LEX"; then | |
7676 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7677 | else | |
b30fcfae | 7678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7679 | for as_dir in $PATH | |
7680 | do | |
7681 | IFS=$as_save_IFS | |
7682 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7683 | for ac_exec_ext in '' $ac_executable_extensions; do |
7684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7685 | ac_cv_prog_LEX="$ac_prog" |
cd9a469c | 7686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7687 | break 2 |
7688 | fi | |
7689 | done | |
cd9a469c | 7690 | done |
7691 | IFS=$as_save_IFS | |
b30fcfae | 7692 | |
f5aebe3e | 7693 | fi |
7694 | fi | |
b30fcfae | 7695 | LEX=$ac_cv_prog_LEX |
f5aebe3e | 7696 | if test -n "$LEX"; then |
cd9a469c | 7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7698 | $as_echo "$LEX" >&6; } | |
f5aebe3e | 7699 | else |
cd9a469c | 7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7701 | $as_echo "no" >&6; } | |
f5aebe3e | 7702 | fi |
7703 | ||
cd9a469c | 7704 | |
b30fcfae | 7705 | test -n "$LEX" && break |
f5aebe3e | 7706 | done |
7707 | test -n "$LEX" || LEX="$MISSING flex" | |
7708 | ||
7709 | case " $build_configdirs " in | |
7710 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7711 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7712 | esac | |
7713 | ||
7714 | for ac_prog in flex | |
7715 | do | |
b30fcfae | 7716 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7717 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7719 | $as_echo_n "checking for $ac_word... " >&6; } | |
7720 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7721 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7722 | else |
7723 | if test -n "$FLEX"; then | |
7724 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7725 | else | |
b30fcfae | 7726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7727 | for as_dir in $PATH | |
7728 | do | |
7729 | IFS=$as_save_IFS | |
7730 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7731 | for ac_exec_ext in '' $ac_executable_extensions; do |
7732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7733 | ac_cv_prog_FLEX="$ac_prog" |
cd9a469c | 7734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7735 | break 2 |
7736 | fi | |
7737 | done | |
cd9a469c | 7738 | done |
7739 | IFS=$as_save_IFS | |
b30fcfae | 7740 | |
f5aebe3e | 7741 | fi |
7742 | fi | |
b30fcfae | 7743 | FLEX=$ac_cv_prog_FLEX |
f5aebe3e | 7744 | if test -n "$FLEX"; then |
cd9a469c | 7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7746 | $as_echo "$FLEX" >&6; } | |
f5aebe3e | 7747 | else |
cd9a469c | 7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7749 | $as_echo "no" >&6; } | |
f5aebe3e | 7750 | fi |
7751 | ||
cd9a469c | 7752 | |
b30fcfae | 7753 | test -n "$FLEX" && break |
f5aebe3e | 7754 | done |
7755 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7756 | ||
7757 | case " $build_configdirs " in | |
7758 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7759 | esac | |
7760 | ||
7761 | for ac_prog in makeinfo | |
7762 | do | |
b30fcfae | 7763 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7764 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7766 | $as_echo_n "checking for $ac_word... " >&6; } | |
7767 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7768 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7769 | else |
7770 | if test -n "$MAKEINFO"; then | |
7771 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7772 | else | |
b30fcfae | 7773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7774 | for as_dir in $PATH | |
7775 | do | |
7776 | IFS=$as_save_IFS | |
7777 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7778 | for ac_exec_ext in '' $ac_executable_extensions; do |
7779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7780 | ac_cv_prog_MAKEINFO="$ac_prog" |
cd9a469c | 7781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7782 | break 2 |
7783 | fi | |
7784 | done | |
cd9a469c | 7785 | done |
7786 | IFS=$as_save_IFS | |
b30fcfae | 7787 | |
f5aebe3e | 7788 | fi |
7789 | fi | |
b30fcfae | 7790 | MAKEINFO=$ac_cv_prog_MAKEINFO |
f5aebe3e | 7791 | if test -n "$MAKEINFO"; then |
cd9a469c | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7793 | $as_echo "$MAKEINFO" >&6; } | |
f5aebe3e | 7794 | else |
cd9a469c | 7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7796 | $as_echo "no" >&6; } | |
f5aebe3e | 7797 | fi |
7798 | ||
cd9a469c | 7799 | |
b30fcfae | 7800 | test -n "$MAKEINFO" && break |
f5aebe3e | 7801 | done |
7802 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7803 | ||
7804 | case " $build_configdirs " in | |
7805 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7806 | *) | |
7807 | ||
03caadda | 7808 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
f5aebe3e | 7809 | # higher, else we use the "missing" dummy. |
7810 | if ${MAKEINFO} --version \ | |
03caadda | 7811 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
f5aebe3e | 7812 | : |
7813 | else | |
7814 | MAKEINFO="$MISSING makeinfo" | |
7815 | fi | |
7816 | ;; | |
7817 | ||
7818 | esac | |
71ab34df | 7819 | |
f5aebe3e | 7820 | # FIXME: expect and dejagnu may become build tools? |
71ab34df | 7821 | |
f5aebe3e | 7822 | for ac_prog in expect |
7823 | do | |
b30fcfae | 7824 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7825 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7827 | $as_echo_n "checking for $ac_word... " >&6; } | |
7828 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7829 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7830 | else |
7831 | if test -n "$EXPECT"; then | |
7832 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7833 | else | |
b30fcfae | 7834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7835 | for as_dir in $PATH | |
7836 | do | |
7837 | IFS=$as_save_IFS | |
7838 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7839 | for ac_exec_ext in '' $ac_executable_extensions; do |
7840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7841 | ac_cv_prog_EXPECT="$ac_prog" |
cd9a469c | 7842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7843 | break 2 |
7844 | fi | |
7845 | done | |
cd9a469c | 7846 | done |
7847 | IFS=$as_save_IFS | |
b30fcfae | 7848 | |
f5aebe3e | 7849 | fi |
7850 | fi | |
b30fcfae | 7851 | EXPECT=$ac_cv_prog_EXPECT |
f5aebe3e | 7852 | if test -n "$EXPECT"; then |
cd9a469c | 7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7854 | $as_echo "$EXPECT" >&6; } | |
f5aebe3e | 7855 | else |
cd9a469c | 7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7857 | $as_echo "no" >&6; } | |
f5aebe3e | 7858 | fi |
71ab34df | 7859 | |
cd9a469c | 7860 | |
b30fcfae | 7861 | test -n "$EXPECT" && break |
f5aebe3e | 7862 | done |
7863 | test -n "$EXPECT" || EXPECT="expect" | |
71ab34df | 7864 | |
f5aebe3e | 7865 | case " $configdirs " in |
7866 | *" expect "*) | |
7867 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7868 | ;; | |
7869 | esac | |
71ab34df | 7870 | |
f5aebe3e | 7871 | for ac_prog in runtest |
7872 | do | |
b30fcfae | 7873 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
f5aebe3e | 7874 | set dummy $ac_prog; ac_word=$2 |
cd9a469c | 7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7876 | $as_echo_n "checking for $ac_word... " >&6; } | |
7877 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7878 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 7879 | else |
7880 | if test -n "$RUNTEST"; then | |
7881 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
a4af6a58 | 7882 | else |
b30fcfae | 7883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7884 | for as_dir in $PATH | |
7885 | do | |
7886 | IFS=$as_save_IFS | |
7887 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7888 | for ac_exec_ext in '' $ac_executable_extensions; do |
7889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7890 | ac_cv_prog_RUNTEST="$ac_prog" |
cd9a469c | 7891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7892 | break 2 |
7893 | fi | |
7894 | done | |
cd9a469c | 7895 | done |
7896 | IFS=$as_save_IFS | |
b30fcfae | 7897 | |
f5aebe3e | 7898 | fi |
7899 | fi | |
b30fcfae | 7900 | RUNTEST=$ac_cv_prog_RUNTEST |
f5aebe3e | 7901 | if test -n "$RUNTEST"; then |
cd9a469c | 7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7903 | $as_echo "$RUNTEST" >&6; } | |
f5aebe3e | 7904 | else |
cd9a469c | 7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7906 | $as_echo "no" >&6; } | |
f5aebe3e | 7907 | fi |
71ab34df | 7908 | |
cd9a469c | 7909 | |
b30fcfae | 7910 | test -n "$RUNTEST" && break |
f5aebe3e | 7911 | done |
7912 | test -n "$RUNTEST" || RUNTEST="runtest" | |
71ab34df | 7913 | |
f5aebe3e | 7914 | case " $configdirs " in |
7915 | *" dejagnu "*) | |
8d365775 | 7916 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
f5aebe3e | 7917 | ;; |
7918 | esac | |
71ab34df | 7919 | |
7920 | ||
71ab34df | 7921 | # Host tools. |
bb612911 | 7922 | ncn_tool_prefix= |
7923 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7924 | ncn_target_tool_prefix= | |
7925 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7926 | ||
95a05732 | 7927 | |
7928 | ||
7929 | if test -n "$AR"; then | |
7930 | ac_cv_prog_AR=$AR | |
7931 | elif test -n "$ac_cv_prog_AR"; then | |
7932 | AR=$ac_cv_prog_AR | |
7933 | fi | |
7934 | ||
7935 | if test -n "$ac_cv_prog_AR"; then | |
7936 | for ncn_progname in ar; do | |
7937 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7938 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7940 | $as_echo_n "checking for $ac_word... " >&6; } | |
7941 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7942 | $as_echo_n "(cached) " >&6 | |
95a05732 | 7943 | else |
7944 | if test -n "$AR"; then | |
7945 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7946 | else | |
7947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7948 | for as_dir in $PATH | |
7949 | do | |
7950 | IFS=$as_save_IFS | |
7951 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7952 | for ac_exec_ext in '' $ac_executable_extensions; do |
7953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 7954 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 7955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 7956 | break 2 |
7957 | fi | |
7958 | done | |
cd9a469c | 7959 | done |
7960 | IFS=$as_save_IFS | |
95a05732 | 7961 | |
7962 | fi | |
7963 | fi | |
7964 | AR=$ac_cv_prog_AR | |
7965 | if test -n "$AR"; then | |
cd9a469c | 7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7967 | $as_echo "$AR" >&6; } | |
95a05732 | 7968 | else |
cd9a469c | 7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7970 | $as_echo "no" >&6; } | |
95a05732 | 7971 | fi |
7972 | ||
cd9a469c | 7973 | |
95a05732 | 7974 | done |
7975 | fi | |
7976 | ||
7977 | for ncn_progname in ar; do | |
768691b5 | 7978 | if test -n "$ncn_tool_prefix"; then |
7979 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7980 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7982 | $as_echo_n "checking for $ac_word... " >&6; } | |
7983 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7984 | $as_echo_n "(cached) " >&6 | |
bb612911 | 7985 | else |
7986 | if test -n "$AR"; then | |
7987 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7988 | else | |
b30fcfae | 7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7990 | for as_dir in $PATH | |
7991 | do | |
7992 | IFS=$as_save_IFS | |
7993 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7994 | for ac_exec_ext in '' $ac_executable_extensions; do |
7995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 7996 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 7997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 7998 | break 2 |
7999 | fi | |
8000 | done | |
cd9a469c | 8001 | done |
8002 | IFS=$as_save_IFS | |
b30fcfae | 8003 | |
bb612911 | 8004 | fi |
8005 | fi | |
b30fcfae | 8006 | AR=$ac_cv_prog_AR |
bb612911 | 8007 | if test -n "$AR"; then |
cd9a469c | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8009 | $as_echo "$AR" >&6; } | |
bb612911 | 8010 | else |
cd9a469c | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8012 | $as_echo "no" >&6; } | |
bb612911 | 8013 | fi |
8014 | ||
cd9a469c | 8015 | |
768691b5 | 8016 | fi |
8017 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8018 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8019 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8021 | $as_echo_n "checking for $ac_word... " >&6; } | |
8022 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8023 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8024 | else |
768691b5 | 8025 | if test -n "$AR"; then |
ae48753c | 8026 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8027 | else | |
b30fcfae | 8028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8029 | for as_dir in $PATH | |
8030 | do | |
8031 | IFS=$as_save_IFS | |
8032 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8033 | for ac_exec_ext in '' $ac_executable_extensions; do |
8034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8035 | ac_cv_prog_AR="${ncn_progname}" |
cd9a469c | 8036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8037 | break 2 |
8038 | fi | |
8039 | done | |
cd9a469c | 8040 | done |
8041 | IFS=$as_save_IFS | |
b30fcfae | 8042 | |
bb612911 | 8043 | fi |
8044 | fi | |
b30fcfae | 8045 | AR=$ac_cv_prog_AR |
768691b5 | 8046 | if test -n "$AR"; then |
cd9a469c | 8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8048 | $as_echo "$AR" >&6; } | |
bb612911 | 8049 | else |
cd9a469c | 8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8051 | $as_echo "no" >&6; } | |
bb612911 | 8052 | fi |
b30fcfae | 8053 | |
cd9a469c | 8054 | |
768691b5 | 8055 | fi |
8056 | test -n "$ac_cv_prog_AR" && break | |
8057 | done | |
8058 | ||
8059 | if test -z "$ac_cv_prog_AR" ; then | |
8060 | set dummy ar | |
8061 | if test $build = $host ; then | |
8062 | AR="$2" | |
bb612911 | 8063 | else |
768691b5 | 8064 | AR="${ncn_tool_prefix}$2" |
bb612911 | 8065 | fi |
bb612911 | 8066 | fi |
8067 | ||
95a05732 | 8068 | |
8069 | ||
8070 | if test -n "$AS"; then | |
8071 | ac_cv_prog_AS=$AS | |
8072 | elif test -n "$ac_cv_prog_AS"; then | |
8073 | AS=$ac_cv_prog_AS | |
8074 | fi | |
8075 | ||
8076 | if test -n "$ac_cv_prog_AS"; then | |
8077 | for ncn_progname in as; do | |
8078 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8079 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8081 | $as_echo_n "checking for $ac_word... " >&6; } | |
8082 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8083 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8084 | else |
8085 | if test -n "$AS"; then | |
8086 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8087 | else | |
8088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8089 | for as_dir in $PATH | |
8090 | do | |
8091 | IFS=$as_save_IFS | |
8092 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8093 | for ac_exec_ext in '' $ac_executable_extensions; do |
8094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8095 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8097 | break 2 |
8098 | fi | |
8099 | done | |
cd9a469c | 8100 | done |
8101 | IFS=$as_save_IFS | |
95a05732 | 8102 | |
8103 | fi | |
8104 | fi | |
8105 | AS=$ac_cv_prog_AS | |
8106 | if test -n "$AS"; then | |
cd9a469c | 8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8108 | $as_echo "$AS" >&6; } | |
95a05732 | 8109 | else |
cd9a469c | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8111 | $as_echo "no" >&6; } | |
95a05732 | 8112 | fi |
8113 | ||
cd9a469c | 8114 | |
95a05732 | 8115 | done |
8116 | fi | |
8117 | ||
8118 | for ncn_progname in as; do | |
768691b5 | 8119 | if test -n "$ncn_tool_prefix"; then |
8120 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8121 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8123 | $as_echo_n "checking for $ac_word... " >&6; } | |
8124 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8125 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8126 | else |
8127 | if test -n "$AS"; then | |
8128 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
a83ffacf | 8129 | else |
b30fcfae | 8130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8131 | for as_dir in $PATH | |
8132 | do | |
8133 | IFS=$as_save_IFS | |
8134 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8135 | for ac_exec_ext in '' $ac_executable_extensions; do |
8136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8137 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8139 | break 2 |
8140 | fi | |
8141 | done | |
cd9a469c | 8142 | done |
8143 | IFS=$as_save_IFS | |
b30fcfae | 8144 | |
bb612911 | 8145 | fi |
8146 | fi | |
b30fcfae | 8147 | AS=$ac_cv_prog_AS |
bb612911 | 8148 | if test -n "$AS"; then |
cd9a469c | 8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8150 | $as_echo "$AS" >&6; } | |
bb612911 | 8151 | else |
cd9a469c | 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8153 | $as_echo "no" >&6; } | |
bb612911 | 8154 | fi |
8155 | ||
cd9a469c | 8156 | |
768691b5 | 8157 | fi |
8158 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8159 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8160 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8162 | $as_echo_n "checking for $ac_word... " >&6; } | |
8163 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8164 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8165 | else |
768691b5 | 8166 | if test -n "$AS"; then |
8167 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
bb612911 | 8168 | else |
b30fcfae | 8169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8170 | for as_dir in $PATH | |
8171 | do | |
8172 | IFS=$as_save_IFS | |
8173 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8174 | for ac_exec_ext in '' $ac_executable_extensions; do |
8175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8176 | ac_cv_prog_AS="${ncn_progname}" |
cd9a469c | 8177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8178 | break 2 |
8179 | fi | |
8180 | done | |
cd9a469c | 8181 | done |
8182 | IFS=$as_save_IFS | |
b30fcfae | 8183 | |
bb612911 | 8184 | fi |
8185 | fi | |
b30fcfae | 8186 | AS=$ac_cv_prog_AS |
768691b5 | 8187 | if test -n "$AS"; then |
cd9a469c | 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8189 | $as_echo "$AS" >&6; } | |
bb612911 | 8190 | else |
cd9a469c | 8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8192 | $as_echo "no" >&6; } | |
bb612911 | 8193 | fi |
b30fcfae | 8194 | |
cd9a469c | 8195 | |
768691b5 | 8196 | fi |
8197 | test -n "$ac_cv_prog_AS" && break | |
8198 | done | |
8199 | ||
8200 | if test -z "$ac_cv_prog_AS" ; then | |
8201 | set dummy as | |
8202 | if test $build = $host ; then | |
8203 | AS="$2" | |
bb612911 | 8204 | else |
768691b5 | 8205 | AS="${ncn_tool_prefix}$2" |
bb612911 | 8206 | fi |
bb612911 | 8207 | fi |
8208 | ||
95a05732 | 8209 | |
8210 | ||
8211 | if test -n "$DLLTOOL"; then | |
8212 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8213 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8214 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8215 | fi | |
8216 | ||
8217 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8218 | for ncn_progname in dlltool; do | |
8219 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8220 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8222 | $as_echo_n "checking for $ac_word... " >&6; } | |
8223 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8224 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8225 | else |
8226 | if test -n "$DLLTOOL"; then | |
8227 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8228 | else | |
8229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8230 | for as_dir in $PATH | |
8231 | do | |
8232 | IFS=$as_save_IFS | |
8233 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8234 | for ac_exec_ext in '' $ac_executable_extensions; do |
8235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8236 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8238 | break 2 |
8239 | fi | |
8240 | done | |
cd9a469c | 8241 | done |
8242 | IFS=$as_save_IFS | |
95a05732 | 8243 | |
8244 | fi | |
8245 | fi | |
8246 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8247 | if test -n "$DLLTOOL"; then | |
cd9a469c | 8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8249 | $as_echo "$DLLTOOL" >&6; } | |
95a05732 | 8250 | else |
cd9a469c | 8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8252 | $as_echo "no" >&6; } | |
95a05732 | 8253 | fi |
8254 | ||
cd9a469c | 8255 | |
95a05732 | 8256 | done |
8257 | fi | |
8258 | ||
8259 | for ncn_progname in dlltool; do | |
768691b5 | 8260 | if test -n "$ncn_tool_prefix"; then |
8261 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8262 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8264 | $as_echo_n "checking for $ac_word... " >&6; } | |
8265 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8266 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8267 | else |
8268 | if test -n "$DLLTOOL"; then | |
8269 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8270 | else | |
b30fcfae | 8271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8272 | for as_dir in $PATH | |
8273 | do | |
8274 | IFS=$as_save_IFS | |
8275 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8276 | for ac_exec_ext in '' $ac_executable_extensions; do |
8277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8278 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8280 | break 2 |
8281 | fi | |
8282 | done | |
cd9a469c | 8283 | done |
8284 | IFS=$as_save_IFS | |
b30fcfae | 8285 | |
bb612911 | 8286 | fi |
8287 | fi | |
b30fcfae | 8288 | DLLTOOL=$ac_cv_prog_DLLTOOL |
bb612911 | 8289 | if test -n "$DLLTOOL"; then |
cd9a469c | 8290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8291 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8292 | else |
cd9a469c | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8294 | $as_echo "no" >&6; } | |
bb612911 | 8295 | fi |
8296 | ||
cd9a469c | 8297 | |
768691b5 | 8298 | fi |
8299 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8300 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8301 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8303 | $as_echo_n "checking for $ac_word... " >&6; } | |
8304 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8305 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8306 | else |
768691b5 | 8307 | if test -n "$DLLTOOL"; then |
8308 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
bb612911 | 8309 | else |
b30fcfae | 8310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8311 | for as_dir in $PATH | |
8312 | do | |
8313 | IFS=$as_save_IFS | |
8314 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8315 | for ac_exec_ext in '' $ac_executable_extensions; do |
8316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8317 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
cd9a469c | 8318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8319 | break 2 |
8320 | fi | |
8321 | done | |
cd9a469c | 8322 | done |
8323 | IFS=$as_save_IFS | |
b30fcfae | 8324 | |
bb612911 | 8325 | fi |
8326 | fi | |
b30fcfae | 8327 | DLLTOOL=$ac_cv_prog_DLLTOOL |
768691b5 | 8328 | if test -n "$DLLTOOL"; then |
cd9a469c | 8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8330 | $as_echo "$DLLTOOL" >&6; } | |
bb612911 | 8331 | else |
cd9a469c | 8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8333 | $as_echo "no" >&6; } | |
bb612911 | 8334 | fi |
b30fcfae | 8335 | |
cd9a469c | 8336 | |
768691b5 | 8337 | fi |
8338 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8339 | done | |
8340 | ||
8341 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8342 | set dummy dlltool | |
8343 | if test $build = $host ; then | |
8344 | DLLTOOL="$2" | |
bb612911 | 8345 | else |
768691b5 | 8346 | DLLTOOL="${ncn_tool_prefix}$2" |
bb612911 | 8347 | fi |
bb612911 | 8348 | fi |
8349 | ||
95a05732 | 8350 | |
8351 | ||
8352 | if test -n "$LD"; then | |
8353 | ac_cv_prog_LD=$LD | |
8354 | elif test -n "$ac_cv_prog_LD"; then | |
8355 | LD=$ac_cv_prog_LD | |
8356 | fi | |
8357 | ||
8358 | if test -n "$ac_cv_prog_LD"; then | |
8359 | for ncn_progname in ld; do | |
8360 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8361 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8363 | $as_echo_n "checking for $ac_word... " >&6; } | |
8364 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8365 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8366 | else |
8367 | if test -n "$LD"; then | |
8368 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8369 | else | |
8370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8371 | for as_dir in $PATH | |
8372 | do | |
8373 | IFS=$as_save_IFS | |
8374 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8375 | for ac_exec_ext in '' $ac_executable_extensions; do |
8376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8377 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8379 | break 2 |
8380 | fi | |
8381 | done | |
cd9a469c | 8382 | done |
8383 | IFS=$as_save_IFS | |
95a05732 | 8384 | |
8385 | fi | |
8386 | fi | |
8387 | LD=$ac_cv_prog_LD | |
8388 | if test -n "$LD"; then | |
cd9a469c | 8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8390 | $as_echo "$LD" >&6; } | |
95a05732 | 8391 | else |
cd9a469c | 8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8393 | $as_echo "no" >&6; } | |
95a05732 | 8394 | fi |
8395 | ||
cd9a469c | 8396 | |
95a05732 | 8397 | done |
8398 | fi | |
8399 | ||
8400 | for ncn_progname in ld; do | |
768691b5 | 8401 | if test -n "$ncn_tool_prefix"; then |
8402 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8403 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8405 | $as_echo_n "checking for $ac_word... " >&6; } | |
8406 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8407 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8408 | else |
8409 | if test -n "$LD"; then | |
8410 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8411 | else | |
b30fcfae | 8412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8413 | for as_dir in $PATH | |
8414 | do | |
8415 | IFS=$as_save_IFS | |
8416 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8417 | for ac_exec_ext in '' $ac_executable_extensions; do |
8418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8419 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8421 | break 2 |
8422 | fi | |
8423 | done | |
cd9a469c | 8424 | done |
8425 | IFS=$as_save_IFS | |
b30fcfae | 8426 | |
bb612911 | 8427 | fi |
8428 | fi | |
b30fcfae | 8429 | LD=$ac_cv_prog_LD |
bb612911 | 8430 | if test -n "$LD"; then |
cd9a469c | 8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8432 | $as_echo "$LD" >&6; } | |
bb612911 | 8433 | else |
cd9a469c | 8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8435 | $as_echo "no" >&6; } | |
bb612911 | 8436 | fi |
8437 | ||
cd9a469c | 8438 | |
768691b5 | 8439 | fi |
8440 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8441 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8442 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8444 | $as_echo_n "checking for $ac_word... " >&6; } | |
8445 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8446 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8447 | else |
768691b5 | 8448 | if test -n "$LD"; then |
8449 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
7172be51 | 8450 | else |
b30fcfae | 8451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8452 | for as_dir in $PATH | |
8453 | do | |
8454 | IFS=$as_save_IFS | |
8455 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8456 | for ac_exec_ext in '' $ac_executable_extensions; do |
8457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8458 | ac_cv_prog_LD="${ncn_progname}" |
cd9a469c | 8459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8460 | break 2 |
8461 | fi | |
8462 | done | |
cd9a469c | 8463 | done |
8464 | IFS=$as_save_IFS | |
b30fcfae | 8465 | |
bb612911 | 8466 | fi |
8467 | fi | |
b30fcfae | 8468 | LD=$ac_cv_prog_LD |
768691b5 | 8469 | if test -n "$LD"; then |
cd9a469c | 8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8471 | $as_echo "$LD" >&6; } | |
bb612911 | 8472 | else |
cd9a469c | 8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8474 | $as_echo "no" >&6; } | |
bb612911 | 8475 | fi |
b30fcfae | 8476 | |
cd9a469c | 8477 | |
768691b5 | 8478 | fi |
8479 | test -n "$ac_cv_prog_LD" && break | |
8480 | done | |
8481 | ||
8482 | if test -z "$ac_cv_prog_LD" ; then | |
8483 | set dummy ld | |
8484 | if test $build = $host ; then | |
8485 | LD="$2" | |
bb612911 | 8486 | else |
768691b5 | 8487 | LD="${ncn_tool_prefix}$2" |
bb612911 | 8488 | fi |
bb612911 | 8489 | fi |
8490 | ||
95a05732 | 8491 | |
8492 | ||
8493 | if test -n "$LIPO"; then | |
8494 | ac_cv_prog_LIPO=$LIPO | |
8495 | elif test -n "$ac_cv_prog_LIPO"; then | |
8496 | LIPO=$ac_cv_prog_LIPO | |
8497 | fi | |
8498 | ||
8499 | if test -n "$ac_cv_prog_LIPO"; then | |
8500 | for ncn_progname in lipo; do | |
8501 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8502 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8504 | $as_echo_n "checking for $ac_word... " >&6; } | |
8505 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8506 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8507 | else |
8508 | if test -n "$LIPO"; then | |
8509 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8510 | else | |
8511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8512 | for as_dir in $PATH | |
8513 | do | |
8514 | IFS=$as_save_IFS | |
8515 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8516 | for ac_exec_ext in '' $ac_executable_extensions; do |
8517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8518 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8520 | break 2 |
8521 | fi | |
8522 | done | |
cd9a469c | 8523 | done |
8524 | IFS=$as_save_IFS | |
95a05732 | 8525 | |
8526 | fi | |
8527 | fi | |
8528 | LIPO=$ac_cv_prog_LIPO | |
8529 | if test -n "$LIPO"; then | |
cd9a469c | 8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8531 | $as_echo "$LIPO" >&6; } | |
95a05732 | 8532 | else |
cd9a469c | 8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8534 | $as_echo "no" >&6; } | |
95a05732 | 8535 | fi |
8536 | ||
cd9a469c | 8537 | |
95a05732 | 8538 | done |
8539 | fi | |
8540 | ||
8541 | for ncn_progname in lipo; do | |
f5aebe3e | 8542 | if test -n "$ncn_tool_prefix"; then |
8543 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8544 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8546 | $as_echo_n "checking for $ac_word... " >&6; } | |
8547 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8548 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8549 | else |
8550 | if test -n "$LIPO"; then | |
8551 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8552 | else | |
b30fcfae | 8553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8554 | for as_dir in $PATH | |
8555 | do | |
8556 | IFS=$as_save_IFS | |
8557 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8558 | for ac_exec_ext in '' $ac_executable_extensions; do |
8559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8560 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8562 | break 2 |
8563 | fi | |
8564 | done | |
cd9a469c | 8565 | done |
8566 | IFS=$as_save_IFS | |
b30fcfae | 8567 | |
f5aebe3e | 8568 | fi |
8569 | fi | |
b30fcfae | 8570 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8571 | if test -n "$LIPO"; then |
cd9a469c | 8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8573 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8574 | else |
cd9a469c | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8576 | $as_echo "no" >&6; } | |
f5aebe3e | 8577 | fi |
8578 | ||
cd9a469c | 8579 | |
f5aebe3e | 8580 | fi |
8581 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8583 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8585 | $as_echo_n "checking for $ac_word... " >&6; } | |
8586 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8587 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8588 | else |
8589 | if test -n "$LIPO"; then | |
8590 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8591 | else | |
b30fcfae | 8592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8593 | for as_dir in $PATH | |
8594 | do | |
8595 | IFS=$as_save_IFS | |
8596 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8597 | for ac_exec_ext in '' $ac_executable_extensions; do |
8598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8599 | ac_cv_prog_LIPO="${ncn_progname}" |
cd9a469c | 8600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8601 | break 2 |
8602 | fi | |
8603 | done | |
cd9a469c | 8604 | done |
8605 | IFS=$as_save_IFS | |
b30fcfae | 8606 | |
f5aebe3e | 8607 | fi |
8608 | fi | |
b30fcfae | 8609 | LIPO=$ac_cv_prog_LIPO |
f5aebe3e | 8610 | if test -n "$LIPO"; then |
cd9a469c | 8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8612 | $as_echo "$LIPO" >&6; } | |
f5aebe3e | 8613 | else |
cd9a469c | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8615 | $as_echo "no" >&6; } | |
f5aebe3e | 8616 | fi |
b30fcfae | 8617 | |
cd9a469c | 8618 | |
f5aebe3e | 8619 | fi |
8620 | test -n "$ac_cv_prog_LIPO" && break | |
8621 | done | |
8622 | ||
8623 | if test -z "$ac_cv_prog_LIPO" ; then | |
8624 | set dummy lipo | |
8625 | if test $build = $host ; then | |
8626 | LIPO="$2" | |
8627 | else | |
8628 | LIPO="${ncn_tool_prefix}$2" | |
8629 | fi | |
8630 | fi | |
8631 | ||
95a05732 | 8632 | |
8633 | ||
8634 | if test -n "$NM"; then | |
8635 | ac_cv_prog_NM=$NM | |
8636 | elif test -n "$ac_cv_prog_NM"; then | |
8637 | NM=$ac_cv_prog_NM | |
8638 | fi | |
8639 | ||
8640 | if test -n "$ac_cv_prog_NM"; then | |
8641 | for ncn_progname in nm; do | |
8642 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8643 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8645 | $as_echo_n "checking for $ac_word... " >&6; } | |
8646 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8647 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8648 | else |
8649 | if test -n "$NM"; then | |
8650 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8651 | else | |
b30fcfae | 8652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8653 | for as_dir in $PATH | |
8654 | do | |
8655 | IFS=$as_save_IFS | |
8656 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8657 | for ac_exec_ext in '' $ac_executable_extensions; do |
8658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8659 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8661 | break 2 |
8662 | fi | |
8663 | done | |
cd9a469c | 8664 | done |
8665 | IFS=$as_save_IFS | |
b30fcfae | 8666 | |
bb612911 | 8667 | fi |
8668 | fi | |
b30fcfae | 8669 | NM=$ac_cv_prog_NM |
bb612911 | 8670 | if test -n "$NM"; then |
cd9a469c | 8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8672 | $as_echo "$NM" >&6; } | |
bb612911 | 8673 | else |
cd9a469c | 8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8675 | $as_echo "no" >&6; } | |
bb612911 | 8676 | fi |
8677 | ||
cd9a469c | 8678 | |
95a05732 | 8679 | done |
8680 | fi | |
8681 | ||
8682 | for ncn_progname in nm; do | |
8683 | if test -n "$ncn_tool_prefix"; then | |
8684 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8685 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8687 | $as_echo_n "checking for $ac_word... " >&6; } | |
8688 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8689 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8690 | else |
768691b5 | 8691 | if test -n "$NM"; then |
8692 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
bb612911 | 8693 | else |
b30fcfae | 8694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8695 | for as_dir in $PATH | |
8696 | do | |
8697 | IFS=$as_save_IFS | |
8698 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8699 | for ac_exec_ext in '' $ac_executable_extensions; do |
8700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8701 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8703 | break 2 |
8704 | fi | |
8705 | done | |
cd9a469c | 8706 | done |
8707 | IFS=$as_save_IFS | |
b30fcfae | 8708 | |
bb612911 | 8709 | fi |
8710 | fi | |
b30fcfae | 8711 | NM=$ac_cv_prog_NM |
768691b5 | 8712 | if test -n "$NM"; then |
cd9a469c | 8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8714 | $as_echo "$NM" >&6; } | |
bb612911 | 8715 | else |
cd9a469c | 8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8717 | $as_echo "no" >&6; } | |
bb612911 | 8718 | fi |
b30fcfae | 8719 | |
cd9a469c | 8720 | |
768691b5 | 8721 | fi |
95a05732 | 8722 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8723 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8724 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8726 | $as_echo_n "checking for $ac_word... " >&6; } | |
8727 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8728 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8729 | else |
8730 | if test -n "$NM"; then | |
8731 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8732 | else | |
8733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8734 | for as_dir in $PATH | |
8735 | do | |
8736 | IFS=$as_save_IFS | |
8737 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8738 | for ac_exec_ext in '' $ac_executable_extensions; do |
8739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8740 | ac_cv_prog_NM="${ncn_progname}" |
cd9a469c | 8741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8742 | break 2 |
8743 | fi | |
8744 | done | |
cd9a469c | 8745 | done |
8746 | IFS=$as_save_IFS | |
95a05732 | 8747 | |
8748 | fi | |
8749 | fi | |
8750 | NM=$ac_cv_prog_NM | |
8751 | if test -n "$NM"; then | |
cd9a469c | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8753 | $as_echo "$NM" >&6; } | |
95a05732 | 8754 | else |
cd9a469c | 8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8756 | $as_echo "no" >&6; } | |
95a05732 | 8757 | fi |
8758 | ||
cd9a469c | 8759 | |
95a05732 | 8760 | fi |
8761 | test -n "$ac_cv_prog_NM" && break | |
8762 | done | |
8763 | ||
8764 | if test -z "$ac_cv_prog_NM" ; then | |
8765 | set dummy nm | |
8766 | if test $build = $host ; then | |
8767 | NM="$2" | |
8768 | else | |
8769 | NM="${ncn_tool_prefix}$2" | |
8770 | fi | |
8771 | fi | |
8772 | ||
8773 | ||
8774 | ||
8775 | if test -n "$RANLIB"; then | |
8776 | ac_cv_prog_RANLIB=$RANLIB | |
8777 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8778 | RANLIB=$ac_cv_prog_RANLIB | |
8779 | fi | |
8780 | ||
8781 | if test -n "$ac_cv_prog_RANLIB"; then | |
8782 | for ncn_progname in ranlib; do | |
8783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8784 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8786 | $as_echo_n "checking for $ac_word... " >&6; } | |
8787 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8788 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8789 | else |
8790 | if test -n "$RANLIB"; then | |
8791 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8792 | else | |
8793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8794 | for as_dir in $PATH | |
8795 | do | |
8796 | IFS=$as_save_IFS | |
8797 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8798 | for ac_exec_ext in '' $ac_executable_extensions; do |
8799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8800 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8802 | break 2 |
8803 | fi | |
8804 | done | |
cd9a469c | 8805 | done |
8806 | IFS=$as_save_IFS | |
95a05732 | 8807 | |
8808 | fi | |
8809 | fi | |
8810 | RANLIB=$ac_cv_prog_RANLIB | |
8811 | if test -n "$RANLIB"; then | |
cd9a469c | 8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8813 | $as_echo "$RANLIB" >&6; } | |
95a05732 | 8814 | else |
cd9a469c | 8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8816 | $as_echo "no" >&6; } | |
95a05732 | 8817 | fi |
8818 | ||
cd9a469c | 8819 | |
95a05732 | 8820 | done |
8821 | fi | |
bb612911 | 8822 | |
95a05732 | 8823 | for ncn_progname in ranlib; do |
768691b5 | 8824 | if test -n "$ncn_tool_prefix"; then |
8825 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8826 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8828 | $as_echo_n "checking for $ac_word... " >&6; } | |
8829 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8830 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8831 | else |
8832 | if test -n "$RANLIB"; then | |
8833 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8834 | else | |
b30fcfae | 8835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8836 | for as_dir in $PATH | |
8837 | do | |
8838 | IFS=$as_save_IFS | |
8839 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8840 | for ac_exec_ext in '' $ac_executable_extensions; do |
8841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8842 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8844 | break 2 |
8845 | fi | |
8846 | done | |
cd9a469c | 8847 | done |
8848 | IFS=$as_save_IFS | |
b30fcfae | 8849 | |
bb612911 | 8850 | fi |
8851 | fi | |
b30fcfae | 8852 | RANLIB=$ac_cv_prog_RANLIB |
bb612911 | 8853 | if test -n "$RANLIB"; then |
cd9a469c | 8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8855 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 8856 | else |
cd9a469c | 8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8858 | $as_echo "no" >&6; } | |
bb612911 | 8859 | fi |
8860 | ||
cd9a469c | 8861 | |
768691b5 | 8862 | fi |
8863 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8864 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8865 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8867 | $as_echo_n "checking for $ac_word... " >&6; } | |
8868 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8869 | $as_echo_n "(cached) " >&6 | |
bb612911 | 8870 | else |
768691b5 | 8871 | if test -n "$RANLIB"; then |
8872 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
bb612911 | 8873 | else |
b30fcfae | 8874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8875 | for as_dir in $PATH | |
8876 | do | |
8877 | IFS=$as_save_IFS | |
8878 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8879 | for ac_exec_ext in '' $ac_executable_extensions; do |
8880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8881 | ac_cv_prog_RANLIB="${ncn_progname}" |
cd9a469c | 8882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8883 | break 2 |
8884 | fi | |
8885 | done | |
cd9a469c | 8886 | done |
8887 | IFS=$as_save_IFS | |
b30fcfae | 8888 | |
bb612911 | 8889 | fi |
8890 | fi | |
b30fcfae | 8891 | RANLIB=$ac_cv_prog_RANLIB |
768691b5 | 8892 | if test -n "$RANLIB"; then |
cd9a469c | 8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8894 | $as_echo "$RANLIB" >&6; } | |
bb612911 | 8895 | else |
cd9a469c | 8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8897 | $as_echo "no" >&6; } | |
bb612911 | 8898 | fi |
b30fcfae | 8899 | |
cd9a469c | 8900 | |
bb612911 | 8901 | fi |
768691b5 | 8902 | test -n "$ac_cv_prog_RANLIB" && break |
8903 | done | |
8904 | ||
8905 | if test -z "$ac_cv_prog_RANLIB" ; then | |
68645a6b | 8906 | RANLIB="true" |
bb612911 | 8907 | fi |
8908 | ||
95a05732 | 8909 | |
8910 | ||
8911 | if test -n "$STRIP"; then | |
8912 | ac_cv_prog_STRIP=$STRIP | |
8913 | elif test -n "$ac_cv_prog_STRIP"; then | |
8914 | STRIP=$ac_cv_prog_STRIP | |
8915 | fi | |
8916 | ||
8917 | if test -n "$ac_cv_prog_STRIP"; then | |
8918 | for ncn_progname in strip; do | |
8919 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8920 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8922 | $as_echo_n "checking for $ac_word... " >&6; } | |
8923 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8924 | $as_echo_n "(cached) " >&6 | |
95a05732 | 8925 | else |
8926 | if test -n "$STRIP"; then | |
8927 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8928 | else | |
8929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8930 | for as_dir in $PATH | |
8931 | do | |
8932 | IFS=$as_save_IFS | |
8933 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8934 | for ac_exec_ext in '' $ac_executable_extensions; do |
8935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 8936 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 8937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 8938 | break 2 |
8939 | fi | |
8940 | done | |
cd9a469c | 8941 | done |
8942 | IFS=$as_save_IFS | |
95a05732 | 8943 | |
8944 | fi | |
8945 | fi | |
8946 | STRIP=$ac_cv_prog_STRIP | |
8947 | if test -n "$STRIP"; then | |
cd9a469c | 8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8949 | $as_echo "$STRIP" >&6; } | |
95a05732 | 8950 | else |
cd9a469c | 8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8952 | $as_echo "no" >&6; } | |
95a05732 | 8953 | fi |
8954 | ||
cd9a469c | 8955 | |
95a05732 | 8956 | done |
8957 | fi | |
8958 | ||
8959 | for ncn_progname in strip; do | |
f5aebe3e | 8960 | if test -n "$ncn_tool_prefix"; then |
8961 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8962 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8964 | $as_echo_n "checking for $ac_word... " >&6; } | |
8965 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8966 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 8967 | else |
8968 | if test -n "$STRIP"; then | |
8969 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8970 | else | |
b30fcfae | 8971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8972 | for as_dir in $PATH | |
8973 | do | |
8974 | IFS=$as_save_IFS | |
8975 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8976 | for ac_exec_ext in '' $ac_executable_extensions; do |
8977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 8978 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 8979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 8980 | break 2 |
8981 | fi | |
8982 | done | |
cd9a469c | 8983 | done |
8984 | IFS=$as_save_IFS | |
b30fcfae | 8985 | |
f5aebe3e | 8986 | fi |
8987 | fi | |
b30fcfae | 8988 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 8989 | if test -n "$STRIP"; then |
cd9a469c | 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8991 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 8992 | else |
cd9a469c | 8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8994 | $as_echo "no" >&6; } | |
f5aebe3e | 8995 | fi |
8996 | ||
cd9a469c | 8997 | |
f5aebe3e | 8998 | fi |
8999 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9000 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9001 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9003 | $as_echo_n "checking for $ac_word... " >&6; } | |
9004 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9005 | $as_echo_n "(cached) " >&6 | |
f5aebe3e | 9006 | else |
9007 | if test -n "$STRIP"; then | |
9008 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9009 | else | |
b30fcfae | 9010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9011 | for as_dir in $PATH | |
9012 | do | |
9013 | IFS=$as_save_IFS | |
9014 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9015 | for ac_exec_ext in '' $ac_executable_extensions; do |
9016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9017 | ac_cv_prog_STRIP="${ncn_progname}" |
cd9a469c | 9018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9019 | break 2 |
9020 | fi | |
9021 | done | |
cd9a469c | 9022 | done |
9023 | IFS=$as_save_IFS | |
b30fcfae | 9024 | |
f5aebe3e | 9025 | fi |
9026 | fi | |
b30fcfae | 9027 | STRIP=$ac_cv_prog_STRIP |
f5aebe3e | 9028 | if test -n "$STRIP"; then |
cd9a469c | 9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9030 | $as_echo "$STRIP" >&6; } | |
f5aebe3e | 9031 | else |
cd9a469c | 9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9033 | $as_echo "no" >&6; } | |
f5aebe3e | 9034 | fi |
b30fcfae | 9035 | |
cd9a469c | 9036 | |
f5aebe3e | 9037 | fi |
9038 | test -n "$ac_cv_prog_STRIP" && break | |
9039 | done | |
9040 | ||
9041 | if test -z "$ac_cv_prog_STRIP" ; then | |
68645a6b | 9042 | STRIP="true" |
f5aebe3e | 9043 | fi |
9044 | ||
95a05732 | 9045 | |
9046 | ||
9047 | if test -n "$WINDRES"; then | |
9048 | ac_cv_prog_WINDRES=$WINDRES | |
9049 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9050 | WINDRES=$ac_cv_prog_WINDRES | |
9051 | fi | |
9052 | ||
9053 | if test -n "$ac_cv_prog_WINDRES"; then | |
9054 | for ncn_progname in windres; do | |
9055 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9056 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9058 | $as_echo_n "checking for $ac_word... " >&6; } | |
9059 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9060 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9061 | else |
9062 | if test -n "$WINDRES"; then | |
9063 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9064 | else | |
9065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9066 | for as_dir in $PATH | |
9067 | do | |
9068 | IFS=$as_save_IFS | |
9069 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9070 | for ac_exec_ext in '' $ac_executable_extensions; do |
9071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9072 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9074 | break 2 |
9075 | fi | |
9076 | done | |
cd9a469c | 9077 | done |
9078 | IFS=$as_save_IFS | |
95a05732 | 9079 | |
9080 | fi | |
9081 | fi | |
9082 | WINDRES=$ac_cv_prog_WINDRES | |
9083 | if test -n "$WINDRES"; then | |
cd9a469c | 9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9085 | $as_echo "$WINDRES" >&6; } | |
95a05732 | 9086 | else |
cd9a469c | 9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9088 | $as_echo "no" >&6; } | |
95a05732 | 9089 | fi |
9090 | ||
cd9a469c | 9091 | |
95a05732 | 9092 | done |
9093 | fi | |
9094 | ||
9095 | for ncn_progname in windres; do | |
768691b5 | 9096 | if test -n "$ncn_tool_prefix"; then |
9097 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9098 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9100 | $as_echo_n "checking for $ac_word... " >&6; } | |
9101 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9102 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9103 | else |
9104 | if test -n "$WINDRES"; then | |
9105 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9106 | else | |
b30fcfae | 9107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9108 | for as_dir in $PATH | |
9109 | do | |
9110 | IFS=$as_save_IFS | |
9111 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9112 | for ac_exec_ext in '' $ac_executable_extensions; do |
9113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9114 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9116 | break 2 |
9117 | fi | |
9118 | done | |
cd9a469c | 9119 | done |
9120 | IFS=$as_save_IFS | |
b30fcfae | 9121 | |
bb612911 | 9122 | fi |
9123 | fi | |
b30fcfae | 9124 | WINDRES=$ac_cv_prog_WINDRES |
bb612911 | 9125 | if test -n "$WINDRES"; then |
cd9a469c | 9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9127 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9128 | else |
cd9a469c | 9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9130 | $as_echo "no" >&6; } | |
bb612911 | 9131 | fi |
9132 | ||
cd9a469c | 9133 | |
768691b5 | 9134 | fi |
9135 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9136 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9137 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9139 | $as_echo_n "checking for $ac_word... " >&6; } | |
9140 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9141 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9142 | else |
768691b5 | 9143 | if test -n "$WINDRES"; then |
9144 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
bb612911 | 9145 | else |
b30fcfae | 9146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9147 | for as_dir in $PATH | |
9148 | do | |
9149 | IFS=$as_save_IFS | |
9150 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9151 | for ac_exec_ext in '' $ac_executable_extensions; do |
9152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9153 | ac_cv_prog_WINDRES="${ncn_progname}" |
cd9a469c | 9154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9155 | break 2 |
9156 | fi | |
9157 | done | |
cd9a469c | 9158 | done |
9159 | IFS=$as_save_IFS | |
b30fcfae | 9160 | |
bb612911 | 9161 | fi |
9162 | fi | |
b30fcfae | 9163 | WINDRES=$ac_cv_prog_WINDRES |
768691b5 | 9164 | if test -n "$WINDRES"; then |
cd9a469c | 9165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9166 | $as_echo "$WINDRES" >&6; } | |
bb612911 | 9167 | else |
cd9a469c | 9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9169 | $as_echo "no" >&6; } | |
bb612911 | 9170 | fi |
b30fcfae | 9171 | |
cd9a469c | 9172 | |
768691b5 | 9173 | fi |
9174 | test -n "$ac_cv_prog_WINDRES" && break | |
9175 | done | |
9176 | ||
9177 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9178 | set dummy windres | |
9179 | if test $build = $host ; then | |
9180 | WINDRES="$2" | |
bb612911 | 9181 | else |
768691b5 | 9182 | WINDRES="${ncn_tool_prefix}$2" |
bb612911 | 9183 | fi |
bb612911 | 9184 | fi |
9185 | ||
95a05732 | 9186 | |
9187 | ||
75d6a0a9 | 9188 | if test -n "$WINDMC"; then |
9189 | ac_cv_prog_WINDMC=$WINDMC | |
9190 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9191 | WINDMC=$ac_cv_prog_WINDMC | |
9192 | fi | |
9193 | ||
9194 | if test -n "$ac_cv_prog_WINDMC"; then | |
9195 | for ncn_progname in windmc; do | |
9196 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9197 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9199 | $as_echo_n "checking for $ac_word... " >&6; } | |
9200 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9201 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9202 | else |
9203 | if test -n "$WINDMC"; then | |
9204 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9205 | else | |
9206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9207 | for as_dir in $PATH | |
9208 | do | |
9209 | IFS=$as_save_IFS | |
9210 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9211 | for ac_exec_ext in '' $ac_executable_extensions; do |
9212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9213 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9215 | break 2 |
9216 | fi | |
9217 | done | |
cd9a469c | 9218 | done |
9219 | IFS=$as_save_IFS | |
75d6a0a9 | 9220 | |
9221 | fi | |
9222 | fi | |
9223 | WINDMC=$ac_cv_prog_WINDMC | |
9224 | if test -n "$WINDMC"; then | |
cd9a469c | 9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9226 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9227 | else |
cd9a469c | 9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9229 | $as_echo "no" >&6; } | |
75d6a0a9 | 9230 | fi |
9231 | ||
cd9a469c | 9232 | |
75d6a0a9 | 9233 | done |
9234 | fi | |
9235 | ||
9236 | for ncn_progname in windmc; do | |
9237 | if test -n "$ncn_tool_prefix"; then | |
9238 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9239 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9241 | $as_echo_n "checking for $ac_word... " >&6; } | |
9242 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9243 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9244 | else |
9245 | if test -n "$WINDMC"; then | |
9246 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9247 | else | |
9248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9249 | for as_dir in $PATH | |
9250 | do | |
9251 | IFS=$as_save_IFS | |
9252 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9253 | for ac_exec_ext in '' $ac_executable_extensions; do |
9254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9255 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9257 | break 2 |
9258 | fi | |
9259 | done | |
cd9a469c | 9260 | done |
9261 | IFS=$as_save_IFS | |
75d6a0a9 | 9262 | |
9263 | fi | |
9264 | fi | |
9265 | WINDMC=$ac_cv_prog_WINDMC | |
9266 | if test -n "$WINDMC"; then | |
cd9a469c | 9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9268 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9269 | else |
cd9a469c | 9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9271 | $as_echo "no" >&6; } | |
75d6a0a9 | 9272 | fi |
9273 | ||
cd9a469c | 9274 | |
75d6a0a9 | 9275 | fi |
9276 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9277 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9278 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9280 | $as_echo_n "checking for $ac_word... " >&6; } | |
9281 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9282 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 9283 | else |
9284 | if test -n "$WINDMC"; then | |
9285 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9286 | else | |
9287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9288 | for as_dir in $PATH | |
9289 | do | |
9290 | IFS=$as_save_IFS | |
9291 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9292 | for ac_exec_ext in '' $ac_executable_extensions; do |
9293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 9294 | ac_cv_prog_WINDMC="${ncn_progname}" |
cd9a469c | 9295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 9296 | break 2 |
9297 | fi | |
9298 | done | |
cd9a469c | 9299 | done |
9300 | IFS=$as_save_IFS | |
75d6a0a9 | 9301 | |
9302 | fi | |
9303 | fi | |
9304 | WINDMC=$ac_cv_prog_WINDMC | |
9305 | if test -n "$WINDMC"; then | |
cd9a469c | 9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9307 | $as_echo "$WINDMC" >&6; } | |
75d6a0a9 | 9308 | else |
cd9a469c | 9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9310 | $as_echo "no" >&6; } | |
75d6a0a9 | 9311 | fi |
9312 | ||
cd9a469c | 9313 | |
75d6a0a9 | 9314 | fi |
9315 | test -n "$ac_cv_prog_WINDMC" && break | |
9316 | done | |
9317 | ||
9318 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9319 | set dummy windmc | |
9320 | if test $build = $host ; then | |
9321 | WINDMC="$2" | |
9322 | else | |
9323 | WINDMC="${ncn_tool_prefix}$2" | |
9324 | fi | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | ||
95a05732 | 9329 | if test -n "$OBJCOPY"; then |
9330 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9331 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9332 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9333 | fi | |
9334 | ||
9335 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9336 | for ncn_progname in objcopy; do | |
9337 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9338 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9340 | $as_echo_n "checking for $ac_word... " >&6; } | |
9341 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9342 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9343 | else |
9344 | if test -n "$OBJCOPY"; then | |
9345 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9346 | else | |
9347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9348 | for as_dir in $PATH | |
9349 | do | |
9350 | IFS=$as_save_IFS | |
9351 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9352 | for ac_exec_ext in '' $ac_executable_extensions; do |
9353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9354 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9356 | break 2 |
9357 | fi | |
9358 | done | |
cd9a469c | 9359 | done |
9360 | IFS=$as_save_IFS | |
95a05732 | 9361 | |
9362 | fi | |
9363 | fi | |
9364 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9365 | if test -n "$OBJCOPY"; then | |
cd9a469c | 9366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9367 | $as_echo "$OBJCOPY" >&6; } | |
95a05732 | 9368 | else |
cd9a469c | 9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9370 | $as_echo "no" >&6; } | |
95a05732 | 9371 | fi |
9372 | ||
cd9a469c | 9373 | |
95a05732 | 9374 | done |
9375 | fi | |
9376 | ||
9377 | for ncn_progname in objcopy; do | |
768691b5 | 9378 | if test -n "$ncn_tool_prefix"; then |
9379 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9380 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9382 | $as_echo_n "checking for $ac_word... " >&6; } | |
9383 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9384 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9385 | else |
9386 | if test -n "$OBJCOPY"; then | |
9387 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9388 | else | |
b30fcfae | 9389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9390 | for as_dir in $PATH | |
9391 | do | |
9392 | IFS=$as_save_IFS | |
9393 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9394 | for ac_exec_ext in '' $ac_executable_extensions; do |
9395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9396 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9398 | break 2 |
9399 | fi | |
9400 | done | |
cd9a469c | 9401 | done |
9402 | IFS=$as_save_IFS | |
b30fcfae | 9403 | |
bb612911 | 9404 | fi |
9405 | fi | |
b30fcfae | 9406 | OBJCOPY=$ac_cv_prog_OBJCOPY |
bb612911 | 9407 | if test -n "$OBJCOPY"; then |
cd9a469c | 9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9409 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9410 | else |
cd9a469c | 9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9412 | $as_echo "no" >&6; } | |
bb612911 | 9413 | fi |
9414 | ||
cd9a469c | 9415 | |
768691b5 | 9416 | fi |
9417 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9418 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9419 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9421 | $as_echo_n "checking for $ac_word... " >&6; } | |
9422 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9423 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9424 | else |
768691b5 | 9425 | if test -n "$OBJCOPY"; then |
9426 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
bb612911 | 9427 | else |
b30fcfae | 9428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9429 | for as_dir in $PATH | |
9430 | do | |
9431 | IFS=$as_save_IFS | |
9432 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9433 | for ac_exec_ext in '' $ac_executable_extensions; do |
9434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9435 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
cd9a469c | 9436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9437 | break 2 |
9438 | fi | |
9439 | done | |
cd9a469c | 9440 | done |
9441 | IFS=$as_save_IFS | |
b30fcfae | 9442 | |
bb612911 | 9443 | fi |
9444 | fi | |
b30fcfae | 9445 | OBJCOPY=$ac_cv_prog_OBJCOPY |
768691b5 | 9446 | if test -n "$OBJCOPY"; then |
cd9a469c | 9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9448 | $as_echo "$OBJCOPY" >&6; } | |
bb612911 | 9449 | else |
cd9a469c | 9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9451 | $as_echo "no" >&6; } | |
bb612911 | 9452 | fi |
b30fcfae | 9453 | |
cd9a469c | 9454 | |
768691b5 | 9455 | fi |
9456 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9457 | done | |
9458 | ||
9459 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9460 | set dummy objcopy | |
9461 | if test $build = $host ; then | |
9462 | OBJCOPY="$2" | |
bb612911 | 9463 | else |
768691b5 | 9464 | OBJCOPY="${ncn_tool_prefix}$2" |
bb612911 | 9465 | fi |
bb612911 | 9466 | fi |
9467 | ||
95a05732 | 9468 | |
9469 | ||
9470 | if test -n "$OBJDUMP"; then | |
9471 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9472 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9473 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9474 | fi | |
9475 | ||
9476 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9477 | for ncn_progname in objdump; do | |
9478 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9479 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9481 | $as_echo_n "checking for $ac_word... " >&6; } | |
9482 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9483 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9484 | else |
9485 | if test -n "$OBJDUMP"; then | |
9486 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9487 | else | |
9488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9489 | for as_dir in $PATH | |
9490 | do | |
9491 | IFS=$as_save_IFS | |
9492 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9493 | for ac_exec_ext in '' $ac_executable_extensions; do |
9494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9495 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9497 | break 2 |
9498 | fi | |
9499 | done | |
cd9a469c | 9500 | done |
9501 | IFS=$as_save_IFS | |
95a05732 | 9502 | |
9503 | fi | |
9504 | fi | |
9505 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9506 | if test -n "$OBJDUMP"; then | |
cd9a469c | 9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9508 | $as_echo "$OBJDUMP" >&6; } | |
95a05732 | 9509 | else |
cd9a469c | 9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9511 | $as_echo "no" >&6; } | |
95a05732 | 9512 | fi |
9513 | ||
cd9a469c | 9514 | |
95a05732 | 9515 | done |
9516 | fi | |
9517 | ||
9518 | for ncn_progname in objdump; do | |
768691b5 | 9519 | if test -n "$ncn_tool_prefix"; then |
9520 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9521 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9523 | $as_echo_n "checking for $ac_word... " >&6; } | |
9524 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9525 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9526 | else |
9527 | if test -n "$OBJDUMP"; then | |
9528 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9529 | else | |
b30fcfae | 9530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9531 | for as_dir in $PATH | |
9532 | do | |
9533 | IFS=$as_save_IFS | |
9534 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9535 | for ac_exec_ext in '' $ac_executable_extensions; do |
9536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9537 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
cd9a469c | 9538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9539 | break 2 |
9540 | fi | |
9541 | done | |
cd9a469c | 9542 | done |
9543 | IFS=$as_save_IFS | |
b30fcfae | 9544 | |
bb612911 | 9545 | fi |
9546 | fi | |
b30fcfae | 9547 | OBJDUMP=$ac_cv_prog_OBJDUMP |
bb612911 | 9548 | if test -n "$OBJDUMP"; then |
cd9a469c | 9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9550 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9551 | else |
cd9a469c | 9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9553 | $as_echo "no" >&6; } | |
bb612911 | 9554 | fi |
9555 | ||
cd9a469c | 9556 | |
768691b5 | 9557 | fi |
9558 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9560 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9562 | $as_echo_n "checking for $ac_word... " >&6; } | |
9563 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9564 | $as_echo_n "(cached) " >&6 | |
bb612911 | 9565 | else |
768691b5 | 9566 | if test -n "$OBJDUMP"; then |
9567 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
bb612911 | 9568 | else |
b30fcfae | 9569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9570 | for as_dir in $PATH | |
9571 | do | |
9572 | IFS=$as_save_IFS | |
9573 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9574 | for ac_exec_ext in '' $ac_executable_extensions; do |
9575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9576 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
cd9a469c | 9577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9578 | break 2 |
9579 | fi | |
9580 | done | |
cd9a469c | 9581 | done |
9582 | IFS=$as_save_IFS | |
b30fcfae | 9583 | |
bb612911 | 9584 | fi |
9585 | fi | |
b30fcfae | 9586 | OBJDUMP=$ac_cv_prog_OBJDUMP |
768691b5 | 9587 | if test -n "$OBJDUMP"; then |
cd9a469c | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9589 | $as_echo "$OBJDUMP" >&6; } | |
bb612911 | 9590 | else |
cd9a469c | 9591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9592 | $as_echo "no" >&6; } | |
bb612911 | 9593 | fi |
b30fcfae | 9594 | |
cd9a469c | 9595 | |
768691b5 | 9596 | fi |
9597 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9598 | done | |
9599 | ||
9600 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9601 | set dummy objdump | |
9602 | if test $build = $host ; then | |
9603 | OBJDUMP="$2" | |
bb612911 | 9604 | else |
768691b5 | 9605 | OBJDUMP="${ncn_tool_prefix}$2" |
bb612911 | 9606 | fi |
bb612911 | 9607 | fi |
9608 | ||
71ab34df | 9609 | |
9610 | ||
9611 | ||
9612 | ||
9613 | ||
f5aebe3e | 9614 | # Target tools. |
b30fcfae | 9615 | |
cd9a469c | 9616 | # Check whether --with-build-time-tools was given. |
9617 | if test "${with_build_time_tools+set}" = set; then : | |
9618 | withval=$with_build_time_tools; case x"$withval" in | |
c47832b1 | 9619 | x/*) ;; |
9620 | *) | |
9621 | with_build_time_tools= | |
cd9a469c | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9623 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
c47832b1 | 9624 | ;; |
9625 | esac | |
bb612911 | 9626 | else |
c47832b1 | 9627 | with_build_time_tools= |
cd9a469c | 9628 | fi |
9629 | ||
bb612911 | 9630 | |
95a05732 | 9631 | |
9632 | ||
9633 | if test -n "$CC_FOR_TARGET"; then | |
9634 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9635 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9636 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9637 | fi | |
9638 | ||
9639 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9640 | for ncn_progname in cc gcc; do | |
9641 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9642 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9644 | $as_echo_n "checking for $ac_word... " >&6; } | |
9645 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9646 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9647 | else |
9648 | if test -n "$CC_FOR_TARGET"; then | |
9649 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9650 | else | |
9651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9652 | for as_dir in $PATH | |
9653 | do | |
9654 | IFS=$as_save_IFS | |
9655 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9656 | for ac_exec_ext in '' $ac_executable_extensions; do |
9657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9658 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9660 | break 2 |
9661 | fi | |
9662 | done | |
cd9a469c | 9663 | done |
9664 | IFS=$as_save_IFS | |
95a05732 | 9665 | |
9666 | fi | |
9667 | fi | |
9668 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9669 | if test -n "$CC_FOR_TARGET"; then | |
cd9a469c | 9670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9671 | $as_echo "$CC_FOR_TARGET" >&6; } | |
95a05732 | 9672 | else |
cd9a469c | 9673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9674 | $as_echo "no" >&6; } | |
95a05732 | 9675 | fi |
9676 | ||
cd9a469c | 9677 | |
95a05732 | 9678 | done |
9679 | fi | |
9680 | ||
9681 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 9682 | for ncn_progname in cc gcc; do |
cd9a469c | 9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9684 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 9685 | if test -x $with_build_time_tools/${ncn_progname}; then |
9686 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9688 | $as_echo "yes" >&6; } | |
9886f3d1 | 9689 | break |
c47832b1 | 9690 | else |
cd9a469c | 9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9692 | $as_echo "no" >&6; } | |
9886f3d1 | 9693 | fi |
9694 | done | |
ef8184c7 | 9695 | fi |
9696 | ||
c47832b1 | 9697 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9698 | for ncn_progname in cc gcc; do | |
9699 | if test -n "$ncn_target_tool_prefix"; then | |
9700 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9701 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9703 | $as_echo_n "checking for $ac_word... " >&6; } | |
9704 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9705 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9706 | else |
9707 | if test -n "$CC_FOR_TARGET"; then | |
9708 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9709 | else | |
b30fcfae | 9710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9711 | for as_dir in $PATH | |
9712 | do | |
9713 | IFS=$as_save_IFS | |
9714 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9715 | for ac_exec_ext in '' $ac_executable_extensions; do |
9716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9717 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 9718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9719 | break 2 |
9720 | fi | |
9721 | done | |
cd9a469c | 9722 | done |
9723 | IFS=$as_save_IFS | |
b30fcfae | 9724 | |
ef8184c7 | 9725 | fi |
9726 | fi | |
b30fcfae | 9727 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
ef8184c7 | 9728 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9730 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 9731 | else |
cd9a469c | 9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9733 | $as_echo "no" >&6; } | |
ef8184c7 | 9734 | fi |
9735 | ||
cd9a469c | 9736 | |
c47832b1 | 9737 | fi |
9738 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9739 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9740 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9742 | $as_echo_n "checking for $ac_word... " >&6; } | |
9743 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9744 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9745 | else |
768691b5 | 9746 | if test -n "$CC_FOR_TARGET"; then |
9747 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 9748 | else |
b30fcfae | 9749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9750 | for as_dir in $PATH | |
9751 | do | |
9752 | IFS=$as_save_IFS | |
9753 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9754 | for ac_exec_ext in '' $ac_executable_extensions; do |
9755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9756 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9758 | break 2 |
9759 | fi | |
9760 | done | |
cd9a469c | 9761 | done |
9762 | IFS=$as_save_IFS | |
b30fcfae | 9763 | |
ef8184c7 | 9764 | fi |
9765 | fi | |
b30fcfae | 9766 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
768691b5 | 9767 | if test -n "$CC_FOR_TARGET"; then |
cd9a469c | 9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9769 | $as_echo "$CC_FOR_TARGET" >&6; } | |
ef8184c7 | 9770 | else |
cd9a469c | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9772 | $as_echo "no" >&6; } | |
ef8184c7 | 9773 | fi |
b30fcfae | 9774 | |
cd9a469c | 9775 | |
c47832b1 | 9776 | fi |
9777 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9778 | done | |
9779 | fi | |
b30fcfae | 9780 | |
768691b5 | 9781 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9782 | set dummy cc gcc | |
9783 | if test $build = $target ; then | |
9784 | CC_FOR_TARGET="$2" | |
ef8184c7 | 9785 | else |
768691b5 | 9786 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 9787 | fi |
b7ef8464 | 9788 | else |
9789 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
ef8184c7 | 9790 | fi |
9791 | ||
95a05732 | 9792 | |
9793 | ||
9794 | if test -n "$CXX_FOR_TARGET"; then | |
9795 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9796 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9797 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9798 | fi | |
9799 | ||
9800 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9801 | for ncn_progname in c++ g++ cxx gxx; do | |
9802 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9803 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9805 | $as_echo_n "checking for $ac_word... " >&6; } | |
9806 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9807 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9808 | else |
9809 | if test -n "$CXX_FOR_TARGET"; then | |
9810 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9811 | else | |
9812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9813 | for as_dir in $PATH | |
9814 | do | |
9815 | IFS=$as_save_IFS | |
9816 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9817 | for ac_exec_ext in '' $ac_executable_extensions; do |
9818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9819 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9821 | break 2 |
9822 | fi | |
9823 | done | |
cd9a469c | 9824 | done |
9825 | IFS=$as_save_IFS | |
95a05732 | 9826 | |
9827 | fi | |
9828 | fi | |
9829 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9830 | if test -n "$CXX_FOR_TARGET"; then | |
cd9a469c | 9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9832 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
95a05732 | 9833 | else |
cd9a469c | 9834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9835 | $as_echo "no" >&6; } | |
95a05732 | 9836 | fi |
9837 | ||
cd9a469c | 9838 | |
95a05732 | 9839 | done |
9840 | fi | |
9841 | ||
9842 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 9843 | for ncn_progname in c++ g++ cxx gxx; do |
cd9a469c | 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9845 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 9846 | if test -x $with_build_time_tools/${ncn_progname}; then |
9847 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 9848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9849 | $as_echo "yes" >&6; } | |
c47832b1 | 9850 | break |
9851 | else | |
cd9a469c | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9853 | $as_echo "no" >&6; } | |
c47832b1 | 9854 | fi |
9855 | done | |
9856 | fi | |
9857 | ||
9858 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9859 | for ncn_progname in c++ g++ cxx gxx; do | |
9860 | if test -n "$ncn_target_tool_prefix"; then | |
9861 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9862 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9864 | $as_echo_n "checking for $ac_word... " >&6; } | |
9865 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9866 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9867 | else |
9868 | if test -n "$CXX_FOR_TARGET"; then | |
9869 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9870 | else | |
b30fcfae | 9871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9872 | for as_dir in $PATH | |
9873 | do | |
9874 | IFS=$as_save_IFS | |
9875 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9876 | for ac_exec_ext in '' $ac_executable_extensions; do |
9877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9878 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 9879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9880 | break 2 |
9881 | fi | |
9882 | done | |
cd9a469c | 9883 | done |
9884 | IFS=$as_save_IFS | |
b30fcfae | 9885 | |
ef8184c7 | 9886 | fi |
9887 | fi | |
b30fcfae | 9888 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
ef8184c7 | 9889 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9891 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 9892 | else |
cd9a469c | 9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9894 | $as_echo "no" >&6; } | |
ef8184c7 | 9895 | fi |
9896 | ||
cd9a469c | 9897 | |
c47832b1 | 9898 | fi |
9899 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9900 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 9901 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9903 | $as_echo_n "checking for $ac_word... " >&6; } | |
9904 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9905 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 9906 | else |
768691b5 | 9907 | if test -n "$CXX_FOR_TARGET"; then |
9908 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 9909 | else |
b30fcfae | 9910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9911 | for as_dir in $PATH | |
9912 | do | |
9913 | IFS=$as_save_IFS | |
9914 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9915 | for ac_exec_ext in '' $ac_executable_extensions; do |
9916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 9917 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 9919 | break 2 |
9920 | fi | |
9921 | done | |
cd9a469c | 9922 | done |
9923 | IFS=$as_save_IFS | |
b30fcfae | 9924 | |
ef8184c7 | 9925 | fi |
9926 | fi | |
b30fcfae | 9927 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
768691b5 | 9928 | if test -n "$CXX_FOR_TARGET"; then |
cd9a469c | 9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9930 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
ef8184c7 | 9931 | else |
cd9a469c | 9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9933 | $as_echo "no" >&6; } | |
ef8184c7 | 9934 | fi |
b30fcfae | 9935 | |
cd9a469c | 9936 | |
c47832b1 | 9937 | fi |
9938 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9939 | done | |
9940 | fi | |
b30fcfae | 9941 | |
768691b5 | 9942 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9943 | set dummy c++ g++ cxx gxx | |
9944 | if test $build = $target ; then | |
9945 | CXX_FOR_TARGET="$2" | |
ef8184c7 | 9946 | else |
768691b5 | 9947 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ef8184c7 | 9948 | fi |
b7ef8464 | 9949 | else |
9950 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
bb612911 | 9951 | fi |
9952 | ||
95a05732 | 9953 | |
9954 | ||
9955 | if test -n "$GCC_FOR_TARGET"; then | |
9956 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9957 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9958 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9959 | fi | |
9960 | ||
9961 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9962 | for ncn_progname in gcc; do | |
9963 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9964 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9966 | $as_echo_n "checking for $ac_word... " >&6; } | |
9967 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9968 | $as_echo_n "(cached) " >&6 | |
95a05732 | 9969 | else |
9970 | if test -n "$GCC_FOR_TARGET"; then | |
9971 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9972 | else | |
9973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9974 | for as_dir in $PATH | |
9975 | do | |
9976 | IFS=$as_save_IFS | |
9977 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 9978 | for ac_exec_ext in '' $ac_executable_extensions; do |
9979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 9980 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 9981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 9982 | break 2 |
9983 | fi | |
9984 | done | |
cd9a469c | 9985 | done |
9986 | IFS=$as_save_IFS | |
95a05732 | 9987 | |
9988 | fi | |
9989 | fi | |
9990 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9991 | if test -n "$GCC_FOR_TARGET"; then | |
cd9a469c | 9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9993 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
95a05732 | 9994 | else |
cd9a469c | 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9996 | $as_echo "no" >&6; } | |
95a05732 | 9997 | fi |
9998 | ||
cd9a469c | 9999 | |
95a05732 | 10000 | done |
10001 | fi | |
10002 | ||
10003 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10004 | for ncn_progname in gcc; do |
cd9a469c | 10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10006 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10007 | if test -x $with_build_time_tools/${ncn_progname}; then |
10008 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10010 | $as_echo "yes" >&6; } | |
c47832b1 | 10011 | break |
10012 | else | |
cd9a469c | 10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10014 | $as_echo "no" >&6; } | |
c47832b1 | 10015 | fi |
10016 | done | |
10017 | fi | |
10018 | ||
10019 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10020 | for ncn_progname in gcc; do | |
10021 | if test -n "$ncn_target_tool_prefix"; then | |
10022 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10023 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10025 | $as_echo_n "checking for $ac_word... " >&6; } | |
10026 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10027 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10028 | else |
c47832b1 | 10029 | if test -n "$GCC_FOR_TARGET"; then |
10030 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10031 | else |
b30fcfae | 10032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10033 | for as_dir in $PATH | |
10034 | do | |
10035 | IFS=$as_save_IFS | |
10036 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10037 | for ac_exec_ext in '' $ac_executable_extensions; do |
10038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10039 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10041 | break 2 |
10042 | fi | |
10043 | done | |
cd9a469c | 10044 | done |
10045 | IFS=$as_save_IFS | |
b30fcfae | 10046 | |
bb612911 | 10047 | fi |
10048 | fi | |
b30fcfae | 10049 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10050 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10052 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10053 | else |
cd9a469c | 10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10055 | $as_echo "no" >&6; } | |
bb612911 | 10056 | fi |
10057 | ||
cd9a469c | 10058 | |
c47832b1 | 10059 | fi |
10060 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10061 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10062 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10064 | $as_echo_n "checking for $ac_word... " >&6; } | |
10065 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10066 | $as_echo_n "(cached) " >&6 | |
bb612911 | 10067 | else |
c47832b1 | 10068 | if test -n "$GCC_FOR_TARGET"; then |
10069 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
bb612911 | 10070 | else |
b30fcfae | 10071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10072 | for as_dir in $PATH | |
10073 | do | |
10074 | IFS=$as_save_IFS | |
10075 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10076 | for ac_exec_ext in '' $ac_executable_extensions; do |
10077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10078 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10080 | break 2 |
10081 | fi | |
10082 | done | |
cd9a469c | 10083 | done |
10084 | IFS=$as_save_IFS | |
b30fcfae | 10085 | |
bb612911 | 10086 | fi |
10087 | fi | |
b30fcfae | 10088 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
c47832b1 | 10089 | if test -n "$GCC_FOR_TARGET"; then |
cd9a469c | 10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10091 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
bb612911 | 10092 | else |
cd9a469c | 10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10094 | $as_echo "no" >&6; } | |
bb612911 | 10095 | fi |
b30fcfae | 10096 | |
cd9a469c | 10097 | |
c47832b1 | 10098 | fi |
10099 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10100 | done | |
10101 | fi | |
b30fcfae | 10102 | |
c47832b1 | 10103 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10104 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
b7ef8464 | 10105 | else |
10106 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
c47832b1 | 10107 | fi |
10108 | ||
95a05732 | 10109 | |
10110 | ||
10111 | if test -n "$GCJ_FOR_TARGET"; then | |
10112 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10113 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10114 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10115 | fi | |
10116 | ||
10117 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10118 | for ncn_progname in gcj; do | |
10119 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10120 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10122 | $as_echo_n "checking for $ac_word... " >&6; } | |
10123 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10124 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10125 | else |
10126 | if test -n "$GCJ_FOR_TARGET"; then | |
10127 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10128 | else | |
10129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10130 | for as_dir in $PATH | |
10131 | do | |
10132 | IFS=$as_save_IFS | |
10133 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10134 | for ac_exec_ext in '' $ac_executable_extensions; do |
10135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10136 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10138 | break 2 |
10139 | fi | |
10140 | done | |
cd9a469c | 10141 | done |
10142 | IFS=$as_save_IFS | |
95a05732 | 10143 | |
10144 | fi | |
10145 | fi | |
10146 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10147 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10149 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10150 | else |
cd9a469c | 10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10152 | $as_echo "no" >&6; } | |
95a05732 | 10153 | fi |
10154 | ||
cd9a469c | 10155 | |
95a05732 | 10156 | done |
10157 | fi | |
10158 | ||
10159 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10160 | for ncn_progname in gcj; do |
cd9a469c | 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10162 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10163 | if test -x $with_build_time_tools/${ncn_progname}; then |
10164 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10166 | $as_echo "yes" >&6; } | |
c47832b1 | 10167 | break |
10168 | else | |
cd9a469c | 10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10170 | $as_echo "no" >&6; } | |
c47832b1 | 10171 | fi |
10172 | done | |
10173 | fi | |
10174 | ||
10175 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10176 | for ncn_progname in gcj; do | |
10177 | if test -n "$ncn_target_tool_prefix"; then | |
10178 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10179 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10181 | $as_echo_n "checking for $ac_word... " >&6; } | |
10182 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10183 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10184 | else |
a4af6a58 | 10185 | if test -n "$GCJ_FOR_TARGET"; then |
10186 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10187 | else | |
b30fcfae | 10188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10189 | for as_dir in $PATH | |
10190 | do | |
10191 | IFS=$as_save_IFS | |
10192 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10193 | for ac_exec_ext in '' $ac_executable_extensions; do |
10194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10195 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10197 | break 2 |
10198 | fi | |
10199 | done | |
cd9a469c | 10200 | done |
10201 | IFS=$as_save_IFS | |
b30fcfae | 10202 | |
c47832b1 | 10203 | fi |
10204 | fi | |
95a05732 | 10205 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10206 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10208 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10209 | else |
cd9a469c | 10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10211 | $as_echo "no" >&6; } | |
95a05732 | 10212 | fi |
10213 | ||
cd9a469c | 10214 | |
95a05732 | 10215 | fi |
10216 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10217 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10218 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10220 | $as_echo_n "checking for $ac_word... " >&6; } | |
10221 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10222 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10223 | else |
10224 | if test -n "$GCJ_FOR_TARGET"; then | |
10225 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10226 | else | |
10227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10228 | for as_dir in $PATH | |
10229 | do | |
10230 | IFS=$as_save_IFS | |
10231 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10232 | for ac_exec_ext in '' $ac_executable_extensions; do |
10233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10234 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10236 | break 2 |
10237 | fi | |
10238 | done | |
cd9a469c | 10239 | done |
10240 | IFS=$as_save_IFS | |
95a05732 | 10241 | |
10242 | fi | |
10243 | fi | |
10244 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10245 | if test -n "$GCJ_FOR_TARGET"; then | |
cd9a469c | 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10247 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
95a05732 | 10248 | else |
cd9a469c | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10250 | $as_echo "no" >&6; } | |
95a05732 | 10251 | fi |
10252 | ||
cd9a469c | 10253 | |
95a05732 | 10254 | fi |
10255 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10256 | done | |
10257 | fi | |
10258 | ||
10259 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10260 | set dummy gcj | |
10261 | if test $build = $target ; then | |
10262 | GCJ_FOR_TARGET="$2" | |
10263 | else | |
10264 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10265 | fi | |
b7ef8464 | 10266 | else |
10267 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
95a05732 | 10268 | fi |
10269 | ||
10270 | ||
10271 | ||
10272 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10273 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10274 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10275 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
c47832b1 | 10276 | fi |
10277 | ||
95a05732 | 10278 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10279 | for ncn_progname in gfortran; do | |
10280 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
c47832b1 | 10281 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10283 | $as_echo_n "checking for $ac_word... " >&6; } | |
10284 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10285 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10286 | else |
95a05732 | 10287 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10288 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
c47832b1 | 10289 | else |
b30fcfae | 10290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10291 | for as_dir in $PATH | |
10292 | do | |
10293 | IFS=$as_save_IFS | |
10294 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10295 | for ac_exec_ext in '' $ac_executable_extensions; do |
10296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10297 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10299 | break 2 |
10300 | fi | |
10301 | done | |
cd9a469c | 10302 | done |
10303 | IFS=$as_save_IFS | |
b30fcfae | 10304 | |
c47832b1 | 10305 | fi |
10306 | fi | |
95a05732 | 10307 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10308 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
cd9a469c | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10310 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10311 | else |
cd9a469c | 10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10313 | $as_echo "no" >&6; } | |
c47832b1 | 10314 | fi |
b30fcfae | 10315 | |
cd9a469c | 10316 | |
c47832b1 | 10317 | done |
10318 | fi | |
b30fcfae | 10319 | |
95a05732 | 10320 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
c47832b1 | 10321 | for ncn_progname in gfortran; do |
cd9a469c | 10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10323 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10324 | if test -x $with_build_time_tools/${ncn_progname}; then |
10325 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10327 | $as_echo "yes" >&6; } | |
c47832b1 | 10328 | break |
10329 | else | |
cd9a469c | 10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10331 | $as_echo "no" >&6; } | |
c47832b1 | 10332 | fi |
10333 | done | |
10334 | fi | |
10335 | ||
10336 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10337 | for ncn_progname in gfortran; do | |
10338 | if test -n "$ncn_target_tool_prefix"; then | |
10339 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10340 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10342 | $as_echo_n "checking for $ac_word... " >&6; } | |
10343 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10344 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10345 | else |
10346 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
b30fcfae | 10347 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10348 | else | |
10349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10350 | for as_dir in $PATH | |
10351 | do | |
10352 | IFS=$as_save_IFS | |
10353 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10354 | for ac_exec_ext in '' $ac_executable_extensions; do |
10355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10356 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10358 | break 2 |
10359 | fi | |
10360 | done | |
cd9a469c | 10361 | done |
10362 | IFS=$as_save_IFS | |
b30fcfae | 10363 | |
c47832b1 | 10364 | fi |
10365 | fi | |
b30fcfae | 10366 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10367 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10369 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10370 | else |
cd9a469c | 10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10372 | $as_echo "no" >&6; } | |
c47832b1 | 10373 | fi |
10374 | ||
cd9a469c | 10375 | |
c47832b1 | 10376 | fi |
10377 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10378 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10379 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10381 | $as_echo_n "checking for $ac_word... " >&6; } | |
10382 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10383 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10384 | else |
10385 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10386 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10387 | else | |
b30fcfae | 10388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10389 | for as_dir in $PATH | |
10390 | do | |
10391 | IFS=$as_save_IFS | |
10392 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10393 | for ac_exec_ext in '' $ac_executable_extensions; do |
10394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10395 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10397 | break 2 |
10398 | fi | |
10399 | done | |
cd9a469c | 10400 | done |
10401 | IFS=$as_save_IFS | |
b30fcfae | 10402 | |
c47832b1 | 10403 | fi |
10404 | fi | |
b30fcfae | 10405 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
c47832b1 | 10406 | if test -n "$GFORTRAN_FOR_TARGET"; then |
cd9a469c | 10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10408 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
c47832b1 | 10409 | else |
cd9a469c | 10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10411 | $as_echo "no" >&6; } | |
c47832b1 | 10412 | fi |
b30fcfae | 10413 | |
cd9a469c | 10414 | |
c47832b1 | 10415 | fi |
10416 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10417 | done | |
10418 | fi | |
b30fcfae | 10419 | |
c47832b1 | 10420 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10421 | set dummy gfortran | |
768691b5 | 10422 | if test $build = $target ; then |
c47832b1 | 10423 | GFORTRAN_FOR_TARGET="$2" |
bb612911 | 10424 | else |
c47832b1 | 10425 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10426 | fi | |
b7ef8464 | 10427 | else |
10428 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
c47832b1 | 10429 | fi |
10430 | ||
10431 | ||
10432 | ||
5ff5b630 | 10433 | if test -n "$GOC_FOR_TARGET"; then |
10434 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10435 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10436 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10437 | fi | |
10438 | ||
10439 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10440 | for ncn_progname in gccgo; do | |
10441 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10442 | set dummy ${ncn_progname}; ac_word=$2 | |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10444 | $as_echo_n "checking for $ac_word... " >&6; } | |
10445 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10446 | $as_echo_n "(cached) " >&6 | |
10447 | else | |
10448 | if test -n "$GOC_FOR_TARGET"; then | |
10449 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10450 | else | |
10451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10452 | for as_dir in $PATH | |
10453 | do | |
10454 | IFS=$as_save_IFS | |
10455 | test -z "$as_dir" && as_dir=. | |
10456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10458 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10460 | break 2 | |
10461 | fi | |
10462 | done | |
10463 | done | |
10464 | IFS=$as_save_IFS | |
10465 | ||
10466 | fi | |
10467 | fi | |
10468 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10469 | if test -n "$GOC_FOR_TARGET"; then | |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10471 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10472 | else | |
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10474 | $as_echo "no" >&6; } | |
10475 | fi | |
10476 | ||
10477 | ||
10478 | done | |
10479 | fi | |
10480 | ||
10481 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10482 | for ncn_progname in gccgo; do | |
10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10484 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10485 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10486 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10488 | $as_echo "yes" >&6; } | |
10489 | break | |
10490 | else | |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10492 | $as_echo "no" >&6; } | |
10493 | fi | |
10494 | done | |
10495 | fi | |
10496 | ||
10497 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10498 | for ncn_progname in gccgo; do | |
10499 | if test -n "$ncn_target_tool_prefix"; then | |
10500 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10501 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10503 | $as_echo_n "checking for $ac_word... " >&6; } | |
10504 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10505 | $as_echo_n "(cached) " >&6 | |
10506 | else | |
10507 | if test -n "$GOC_FOR_TARGET"; then | |
10508 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10509 | else | |
10510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10511 | for as_dir in $PATH | |
10512 | do | |
10513 | IFS=$as_save_IFS | |
10514 | test -z "$as_dir" && as_dir=. | |
10515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10517 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10519 | break 2 | |
10520 | fi | |
10521 | done | |
10522 | done | |
10523 | IFS=$as_save_IFS | |
10524 | ||
10525 | fi | |
10526 | fi | |
10527 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10528 | if test -n "$GOC_FOR_TARGET"; then | |
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10530 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10531 | else | |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10533 | $as_echo "no" >&6; } | |
10534 | fi | |
10535 | ||
10536 | ||
10537 | fi | |
10538 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10539 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10540 | set dummy ${ncn_progname}; ac_word=$2 | |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10542 | $as_echo_n "checking for $ac_word... " >&6; } | |
10543 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10544 | $as_echo_n "(cached) " >&6 | |
10545 | else | |
10546 | if test -n "$GOC_FOR_TARGET"; then | |
10547 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10548 | else | |
10549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10550 | for as_dir in $PATH | |
10551 | do | |
10552 | IFS=$as_save_IFS | |
10553 | test -z "$as_dir" && as_dir=. | |
10554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10556 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10558 | break 2 | |
10559 | fi | |
10560 | done | |
10561 | done | |
10562 | IFS=$as_save_IFS | |
10563 | ||
10564 | fi | |
10565 | fi | |
10566 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10567 | if test -n "$GOC_FOR_TARGET"; then | |
10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10569 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10570 | else | |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10572 | $as_echo "no" >&6; } | |
10573 | fi | |
10574 | ||
10575 | ||
10576 | fi | |
10577 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10578 | done | |
10579 | fi | |
10580 | ||
10581 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10582 | set dummy gccgo | |
10583 | if test $build = $target ; then | |
10584 | GOC_FOR_TARGET="$2" | |
10585 | else | |
10586 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10587 | fi | |
10588 | else | |
10589 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10590 | fi | |
10591 | ||
10592 | ||
10593 | ||
c47832b1 | 10594 | cat > conftest.c << \EOF |
10595 | #ifdef __GNUC__ | |
10596 | gcc_yay; | |
10597 | #endif | |
10598 | EOF | |
10599 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10600 | have_gcc_for_target=yes | |
10601 | else | |
10602 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10603 | have_gcc_for_target=no | |
10604 | fi | |
10605 | rm conftest.c | |
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10611 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10613 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
ab0da556 | 10614 | if test -x $with_build_time_tools/ar; then |
10615 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10616 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
cd9a469c | 10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10618 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
ab0da556 | 10619 | else |
cd9a469c | 10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10621 | $as_echo "no" >&6; } | |
ab0da556 | 10622 | fi |
c47832b1 | 10623 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10624 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
b7ef8464 | 10625 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10626 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
c47832b1 | 10627 | fi |
10628 | fi | |
38d7211b | 10629 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10630 | # Extract the first word of "ar", so it can be a program name with args. |
10631 | set dummy ar; ac_word=$2 | |
cd9a469c | 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10633 | $as_echo_n "checking for $ac_word... " >&6; } | |
10634 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10635 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10636 | else |
b30fcfae | 10637 | case $AR_FOR_TARGET in |
10638 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10639 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10640 | ;; | |
c47832b1 | 10641 | *) |
b30fcfae | 10642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10643 | for as_dir in $gcc_cv_tool_dirs | |
10644 | do | |
10645 | IFS=$as_save_IFS | |
10646 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10647 | for ac_exec_ext in '' $ac_executable_extensions; do |
10648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10649 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10651 | break 2 |
10652 | fi | |
10653 | done | |
cd9a469c | 10654 | done |
10655 | IFS=$as_save_IFS | |
b30fcfae | 10656 | |
c47832b1 | 10657 | ;; |
10658 | esac | |
10659 | fi | |
b30fcfae | 10660 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
c47832b1 | 10661 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10663 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10664 | else |
cd9a469c | 10665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10666 | $as_echo "no" >&6; } | |
ef8184c7 | 10667 | fi |
10668 | ||
cd9a469c | 10669 | |
c47832b1 | 10670 | fi |
10671 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
95a05732 | 10672 | |
10673 | ||
10674 | if test -n "$AR_FOR_TARGET"; then | |
10675 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10676 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10677 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10678 | fi | |
10679 | ||
10680 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10681 | for ncn_progname in ar; do | |
10682 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10683 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10685 | $as_echo_n "checking for $ac_word... " >&6; } | |
10686 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10687 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10688 | else |
10689 | if test -n "$AR_FOR_TARGET"; then | |
10690 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10691 | else | |
10692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10693 | for as_dir in $PATH | |
10694 | do | |
10695 | IFS=$as_save_IFS | |
10696 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10697 | for ac_exec_ext in '' $ac_executable_extensions; do |
10698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10699 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10701 | break 2 |
10702 | fi | |
10703 | done | |
cd9a469c | 10704 | done |
10705 | IFS=$as_save_IFS | |
95a05732 | 10706 | |
10707 | fi | |
10708 | fi | |
10709 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10710 | if test -n "$AR_FOR_TARGET"; then | |
cd9a469c | 10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10712 | $as_echo "$AR_FOR_TARGET" >&6; } | |
95a05732 | 10713 | else |
cd9a469c | 10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10715 | $as_echo "no" >&6; } | |
95a05732 | 10716 | fi |
10717 | ||
cd9a469c | 10718 | |
95a05732 | 10719 | done |
10720 | fi | |
10721 | ||
10722 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10723 | for ncn_progname in ar; do |
cd9a469c | 10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10725 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10726 | if test -x $with_build_time_tools/${ncn_progname}; then |
10727 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10729 | $as_echo "yes" >&6; } | |
c47832b1 | 10730 | break |
10731 | else | |
cd9a469c | 10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10733 | $as_echo "no" >&6; } | |
c47832b1 | 10734 | fi |
10735 | done | |
10736 | fi | |
10737 | ||
10738 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10739 | for ncn_progname in ar; do | |
10740 | if test -n "$ncn_target_tool_prefix"; then | |
10741 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 10742 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 10743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10744 | $as_echo_n "checking for $ac_word... " >&6; } | |
10745 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10746 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 10747 | else |
c47832b1 | 10748 | if test -n "$AR_FOR_TARGET"; then |
10749 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 10750 | else |
b30fcfae | 10751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10752 | for as_dir in $PATH | |
10753 | do | |
10754 | IFS=$as_save_IFS | |
10755 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10756 | for ac_exec_ext in '' $ac_executable_extensions; do |
10757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10758 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10760 | break 2 |
10761 | fi | |
10762 | done | |
cd9a469c | 10763 | done |
10764 | IFS=$as_save_IFS | |
b30fcfae | 10765 | |
ef8184c7 | 10766 | fi |
10767 | fi | |
b30fcfae | 10768 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 10769 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10771 | $as_echo "$AR_FOR_TARGET" >&6; } | |
ef8184c7 | 10772 | else |
cd9a469c | 10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10774 | $as_echo "no" >&6; } | |
ef8184c7 | 10775 | fi |
10776 | ||
cd9a469c | 10777 | |
c47832b1 | 10778 | fi |
10779 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10780 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10781 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10783 | $as_echo_n "checking for $ac_word... " >&6; } | |
10784 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10785 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10786 | else |
10787 | if test -n "$AR_FOR_TARGET"; then | |
10788 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10789 | else | |
b30fcfae | 10790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10791 | for as_dir in $PATH | |
10792 | do | |
10793 | IFS=$as_save_IFS | |
10794 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10795 | for ac_exec_ext in '' $ac_executable_extensions; do |
10796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10797 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10799 | break 2 |
10800 | fi | |
10801 | done | |
cd9a469c | 10802 | done |
10803 | IFS=$as_save_IFS | |
b30fcfae | 10804 | |
c47832b1 | 10805 | fi |
10806 | fi | |
b30fcfae | 10807 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
c47832b1 | 10808 | if test -n "$AR_FOR_TARGET"; then |
cd9a469c | 10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10810 | $as_echo "$AR_FOR_TARGET" >&6; } | |
c47832b1 | 10811 | else |
cd9a469c | 10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10813 | $as_echo "no" >&6; } | |
c47832b1 | 10814 | fi |
b30fcfae | 10815 | |
cd9a469c | 10816 | |
c47832b1 | 10817 | fi |
10818 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10819 | done | |
10820 | fi | |
b30fcfae | 10821 | |
c47832b1 | 10822 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10823 | set dummy ar | |
10824 | if test $build = $target ; then | |
10825 | AR_FOR_TARGET="$2" | |
10826 | else | |
10827 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
768691b5 | 10828 | fi |
b7ef8464 | 10829 | else |
10830 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
c47832b1 | 10831 | fi |
10832 | ||
ab0da556 | 10833 | else |
10834 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
c47832b1 | 10835 | fi |
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10841 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10843 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
ab0da556 | 10844 | if test -x $with_build_time_tools/as; then |
10845 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10846 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
cd9a469c | 10847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10848 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
ab0da556 | 10849 | else |
cd9a469c | 10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10851 | $as_echo "no" >&6; } | |
ab0da556 | 10852 | fi |
c47832b1 | 10853 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10854 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
b7ef8464 | 10855 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10856 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
c47832b1 | 10857 | fi |
10858 | fi | |
38d7211b | 10859 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 10860 | # Extract the first word of "as", so it can be a program name with args. |
10861 | set dummy as; ac_word=$2 | |
cd9a469c | 10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10863 | $as_echo_n "checking for $ac_word... " >&6; } | |
10864 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10865 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10866 | else |
b30fcfae | 10867 | case $AS_FOR_TARGET in |
10868 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 10869 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10870 | ;; | |
c47832b1 | 10871 | *) |
b30fcfae | 10872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10873 | for as_dir in $gcc_cv_tool_dirs | |
10874 | do | |
10875 | IFS=$as_save_IFS | |
10876 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10877 | for ac_exec_ext in '' $ac_executable_extensions; do |
10878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10879 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 10880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10881 | break 2 |
10882 | fi | |
10883 | done | |
cd9a469c | 10884 | done |
10885 | IFS=$as_save_IFS | |
b30fcfae | 10886 | |
c47832b1 | 10887 | ;; |
10888 | esac | |
10889 | fi | |
b30fcfae | 10890 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
c47832b1 | 10891 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10893 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 10894 | else |
cd9a469c | 10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10896 | $as_echo "no" >&6; } | |
c47832b1 | 10897 | fi |
10898 | ||
cd9a469c | 10899 | |
c47832b1 | 10900 | fi |
10901 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
95a05732 | 10902 | |
10903 | ||
10904 | if test -n "$AS_FOR_TARGET"; then | |
10905 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10906 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10907 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10908 | fi | |
10909 | ||
10910 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10911 | for ncn_progname in as; do | |
10912 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10913 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10915 | $as_echo_n "checking for $ac_word... " >&6; } | |
10916 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10917 | $as_echo_n "(cached) " >&6 | |
95a05732 | 10918 | else |
10919 | if test -n "$AS_FOR_TARGET"; then | |
10920 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10921 | else | |
10922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10923 | for as_dir in $PATH | |
10924 | do | |
10925 | IFS=$as_save_IFS | |
10926 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10927 | for ac_exec_ext in '' $ac_executable_extensions; do |
10928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 10929 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 10930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 10931 | break 2 |
10932 | fi | |
10933 | done | |
cd9a469c | 10934 | done |
10935 | IFS=$as_save_IFS | |
95a05732 | 10936 | |
10937 | fi | |
10938 | fi | |
10939 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10940 | if test -n "$AS_FOR_TARGET"; then | |
cd9a469c | 10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10942 | $as_echo "$AS_FOR_TARGET" >&6; } | |
95a05732 | 10943 | else |
cd9a469c | 10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10945 | $as_echo "no" >&6; } | |
95a05732 | 10946 | fi |
10947 | ||
cd9a469c | 10948 | |
95a05732 | 10949 | done |
10950 | fi | |
10951 | ||
10952 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 10953 | for ncn_progname in as; do |
cd9a469c | 10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10955 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 10956 | if test -x $with_build_time_tools/${ncn_progname}; then |
10957 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10959 | $as_echo "yes" >&6; } | |
c47832b1 | 10960 | break |
10961 | else | |
cd9a469c | 10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10963 | $as_echo "no" >&6; } | |
c47832b1 | 10964 | fi |
10965 | done | |
10966 | fi | |
10967 | ||
10968 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10969 | for ncn_progname in as; do | |
10970 | if test -n "$ncn_target_tool_prefix"; then | |
10971 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10972 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10974 | $as_echo_n "checking for $ac_word... " >&6; } | |
10975 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10976 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 10977 | else |
10978 | if test -n "$AS_FOR_TARGET"; then | |
10979 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10980 | else | |
b30fcfae | 10981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10982 | for as_dir in $PATH | |
10983 | do | |
10984 | IFS=$as_save_IFS | |
10985 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 10986 | for ac_exec_ext in '' $ac_executable_extensions; do |
10987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 10988 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 10989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 10990 | break 2 |
10991 | fi | |
10992 | done | |
cd9a469c | 10993 | done |
10994 | IFS=$as_save_IFS | |
b30fcfae | 10995 | |
c47832b1 | 10996 | fi |
10997 | fi | |
b30fcfae | 10998 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 10999 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11001 | $as_echo "$AS_FOR_TARGET" >&6; } | |
c47832b1 | 11002 | else |
cd9a469c | 11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11004 | $as_echo "no" >&6; } | |
c47832b1 | 11005 | fi |
11006 | ||
cd9a469c | 11007 | |
c47832b1 | 11008 | fi |
11009 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11010 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11011 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11013 | $as_echo_n "checking for $ac_word... " >&6; } | |
11014 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11015 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11016 | else |
c47832b1 | 11017 | if test -n "$AS_FOR_TARGET"; then |
11018 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11019 | else |
b30fcfae | 11020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11021 | for as_dir in $PATH | |
11022 | do | |
11023 | IFS=$as_save_IFS | |
11024 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11025 | for ac_exec_ext in '' $ac_executable_extensions; do |
11026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11027 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11029 | break 2 |
11030 | fi | |
11031 | done | |
cd9a469c | 11032 | done |
11033 | IFS=$as_save_IFS | |
b30fcfae | 11034 | |
ef8184c7 | 11035 | fi |
11036 | fi | |
b30fcfae | 11037 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
c47832b1 | 11038 | if test -n "$AS_FOR_TARGET"; then |
cd9a469c | 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11040 | $as_echo "$AS_FOR_TARGET" >&6; } | |
ef8184c7 | 11041 | else |
cd9a469c | 11042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11043 | $as_echo "no" >&6; } | |
ef8184c7 | 11044 | fi |
b30fcfae | 11045 | |
cd9a469c | 11046 | |
c47832b1 | 11047 | fi |
11048 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11049 | done | |
11050 | fi | |
b30fcfae | 11051 | |
c47832b1 | 11052 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11053 | set dummy as | |
11054 | if test $build = $target ; then | |
11055 | AS_FOR_TARGET="$2" | |
11056 | else | |
11057 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ef8184c7 | 11058 | fi |
b7ef8464 | 11059 | else |
11060 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
c47832b1 | 11061 | fi |
768691b5 | 11062 | |
ab0da556 | 11063 | else |
11064 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
ef8184c7 | 11065 | fi |
11066 | ||
c47832b1 | 11067 | |
11068 | ||
11069 | ||
11070 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11071 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11073 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
ab0da556 | 11074 | if test -x $with_build_time_tools/dlltool; then |
11075 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11076 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
cd9a469c | 11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11078 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
ab0da556 | 11079 | else |
cd9a469c | 11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11081 | $as_echo "no" >&6; } | |
ab0da556 | 11082 | fi |
c47832b1 | 11083 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11084 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
b7ef8464 | 11085 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11086 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
c47832b1 | 11087 | fi |
11088 | fi | |
38d7211b | 11089 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11090 | # Extract the first word of "dlltool", so it can be a program name with args. |
11091 | set dummy dlltool; ac_word=$2 | |
cd9a469c | 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11093 | $as_echo_n "checking for $ac_word... " >&6; } | |
11094 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11095 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11096 | else |
b30fcfae | 11097 | case $DLLTOOL_FOR_TARGET in |
11098 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11099 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11100 | ;; | |
c47832b1 | 11101 | *) |
b30fcfae | 11102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11103 | for as_dir in $gcc_cv_tool_dirs | |
11104 | do | |
11105 | IFS=$as_save_IFS | |
11106 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11107 | for ac_exec_ext in '' $ac_executable_extensions; do |
11108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11109 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11111 | break 2 |
11112 | fi | |
11113 | done | |
cd9a469c | 11114 | done |
11115 | IFS=$as_save_IFS | |
b30fcfae | 11116 | |
c47832b1 | 11117 | ;; |
11118 | esac | |
ef8184c7 | 11119 | fi |
b30fcfae | 11120 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
c47832b1 | 11121 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11123 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11124 | else |
cd9a469c | 11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11126 | $as_echo "no" >&6; } | |
ef8184c7 | 11127 | fi |
11128 | ||
cd9a469c | 11129 | |
c47832b1 | 11130 | fi |
11131 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
95a05732 | 11132 | |
11133 | ||
11134 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11135 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11136 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11137 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11138 | fi | |
11139 | ||
11140 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11141 | for ncn_progname in dlltool; do | |
11142 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11143 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11145 | $as_echo_n "checking for $ac_word... " >&6; } | |
11146 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11147 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11148 | else |
11149 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11150 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11151 | else | |
11152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11153 | for as_dir in $PATH | |
11154 | do | |
11155 | IFS=$as_save_IFS | |
11156 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11157 | for ac_exec_ext in '' $ac_executable_extensions; do |
11158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11159 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11161 | break 2 |
11162 | fi | |
11163 | done | |
cd9a469c | 11164 | done |
11165 | IFS=$as_save_IFS | |
95a05732 | 11166 | |
11167 | fi | |
11168 | fi | |
11169 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11170 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
cd9a469c | 11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11172 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
95a05732 | 11173 | else |
cd9a469c | 11174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11175 | $as_echo "no" >&6; } | |
95a05732 | 11176 | fi |
11177 | ||
cd9a469c | 11178 | |
95a05732 | 11179 | done |
11180 | fi | |
11181 | ||
11182 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11183 | for ncn_progname in dlltool; do |
cd9a469c | 11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11185 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11186 | if test -x $with_build_time_tools/${ncn_progname}; then |
11187 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11189 | $as_echo "yes" >&6; } | |
c47832b1 | 11190 | break |
11191 | else | |
cd9a469c | 11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11193 | $as_echo "no" >&6; } | |
c47832b1 | 11194 | fi |
11195 | done | |
11196 | fi | |
11197 | ||
11198 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11199 | for ncn_progname in dlltool; do | |
11200 | if test -n "$ncn_target_tool_prefix"; then | |
11201 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11202 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11204 | $as_echo_n "checking for $ac_word... " >&6; } | |
11205 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11206 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11207 | else |
c47832b1 | 11208 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11209 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11210 | else |
b30fcfae | 11211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11212 | for as_dir in $PATH | |
11213 | do | |
11214 | IFS=$as_save_IFS | |
11215 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11216 | for ac_exec_ext in '' $ac_executable_extensions; do |
11217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11218 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11220 | break 2 |
11221 | fi | |
11222 | done | |
cd9a469c | 11223 | done |
11224 | IFS=$as_save_IFS | |
b30fcfae | 11225 | |
ef8184c7 | 11226 | fi |
11227 | fi | |
b30fcfae | 11228 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11229 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11231 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11232 | else |
cd9a469c | 11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11234 | $as_echo "no" >&6; } | |
ef8184c7 | 11235 | fi |
ef8184c7 | 11236 | |
cd9a469c | 11237 | |
c47832b1 | 11238 | fi |
11239 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11240 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11241 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11243 | $as_echo_n "checking for $ac_word... " >&6; } | |
11244 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11245 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11246 | else |
c47832b1 | 11247 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11248 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
ef8184c7 | 11249 | else |
b30fcfae | 11250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11251 | for as_dir in $PATH | |
11252 | do | |
11253 | IFS=$as_save_IFS | |
11254 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11255 | for ac_exec_ext in '' $ac_executable_extensions; do |
11256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11257 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11259 | break 2 |
11260 | fi | |
11261 | done | |
cd9a469c | 11262 | done |
11263 | IFS=$as_save_IFS | |
b30fcfae | 11264 | |
ef8184c7 | 11265 | fi |
11266 | fi | |
b30fcfae | 11267 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
c47832b1 | 11268 | if test -n "$DLLTOOL_FOR_TARGET"; then |
cd9a469c | 11269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11270 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
ef8184c7 | 11271 | else |
cd9a469c | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11273 | $as_echo "no" >&6; } | |
ef8184c7 | 11274 | fi |
b30fcfae | 11275 | |
cd9a469c | 11276 | |
c47832b1 | 11277 | fi |
11278 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11279 | done | |
11280 | fi | |
b30fcfae | 11281 | |
c47832b1 | 11282 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11283 | set dummy dlltool | |
11284 | if test $build = $target ; then | |
11285 | DLLTOOL_FOR_TARGET="$2" | |
11286 | else | |
11287 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11288 | fi | |
b7ef8464 | 11289 | else |
11290 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
c47832b1 | 11291 | fi |
11292 | ||
ab0da556 | 11293 | else |
11294 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
c47832b1 | 11295 | fi |
11296 | ||
ef8184c7 | 11297 | |
c47832b1 | 11298 | |
11299 | ||
11300 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11301 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11303 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
ab0da556 | 11304 | if test -x $with_build_time_tools/ld; then |
11305 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11306 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
cd9a469c | 11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11308 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
ab0da556 | 11309 | else |
cd9a469c | 11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11311 | $as_echo "no" >&6; } | |
ab0da556 | 11312 | fi |
c47832b1 | 11313 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11314 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
b7ef8464 | 11315 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11316 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
768691b5 | 11317 | fi |
c47832b1 | 11318 | fi |
38d7211b | 11319 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11320 | # Extract the first word of "ld", so it can be a program name with args. |
11321 | set dummy ld; ac_word=$2 | |
cd9a469c | 11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11323 | $as_echo_n "checking for $ac_word... " >&6; } | |
11324 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11325 | $as_echo_n "(cached) " >&6 | |
ef8184c7 | 11326 | else |
b30fcfae | 11327 | case $LD_FOR_TARGET in |
11328 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11329 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11330 | ;; | |
c47832b1 | 11331 | *) |
b30fcfae | 11332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11333 | for as_dir in $gcc_cv_tool_dirs | |
11334 | do | |
11335 | IFS=$as_save_IFS | |
11336 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11337 | for ac_exec_ext in '' $ac_executable_extensions; do |
11338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11339 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11341 | break 2 |
11342 | fi | |
11343 | done | |
cd9a469c | 11344 | done |
11345 | IFS=$as_save_IFS | |
b30fcfae | 11346 | |
c47832b1 | 11347 | ;; |
11348 | esac | |
ef8184c7 | 11349 | fi |
b30fcfae | 11350 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
c47832b1 | 11351 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11353 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ef8184c7 | 11354 | else |
cd9a469c | 11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11356 | $as_echo "no" >&6; } | |
ef8184c7 | 11357 | fi |
768691b5 | 11358 | |
cd9a469c | 11359 | |
c47832b1 | 11360 | fi |
11361 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
95a05732 | 11362 | |
11363 | ||
11364 | if test -n "$LD_FOR_TARGET"; then | |
11365 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11366 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11367 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11368 | fi | |
11369 | ||
11370 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11371 | for ncn_progname in ld; do | |
11372 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11373 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11375 | $as_echo_n "checking for $ac_word... " >&6; } | |
11376 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11377 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11378 | else |
11379 | if test -n "$LD_FOR_TARGET"; then | |
11380 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11381 | else | |
11382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11383 | for as_dir in $PATH | |
11384 | do | |
11385 | IFS=$as_save_IFS | |
11386 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11387 | for ac_exec_ext in '' $ac_executable_extensions; do |
11388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11389 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11391 | break 2 |
11392 | fi | |
11393 | done | |
cd9a469c | 11394 | done |
11395 | IFS=$as_save_IFS | |
95a05732 | 11396 | |
11397 | fi | |
11398 | fi | |
11399 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11400 | if test -n "$LD_FOR_TARGET"; then | |
cd9a469c | 11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11402 | $as_echo "$LD_FOR_TARGET" >&6; } | |
95a05732 | 11403 | else |
cd9a469c | 11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11405 | $as_echo "no" >&6; } | |
95a05732 | 11406 | fi |
11407 | ||
cd9a469c | 11408 | |
95a05732 | 11409 | done |
11410 | fi | |
11411 | ||
11412 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11413 | for ncn_progname in ld; do |
cd9a469c | 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11415 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11416 | if test -x $with_build_time_tools/${ncn_progname}; then |
11417 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11419 | $as_echo "yes" >&6; } | |
c47832b1 | 11420 | break |
11421 | else | |
cd9a469c | 11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11423 | $as_echo "no" >&6; } | |
c47832b1 | 11424 | fi |
11425 | done | |
bb612911 | 11426 | fi |
11427 | ||
c47832b1 | 11428 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11429 | for ncn_progname in ld; do | |
11430 | if test -n "$ncn_target_tool_prefix"; then | |
11431 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11432 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11434 | $as_echo_n "checking for $ac_word... " >&6; } | |
11435 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11436 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11437 | else |
ef8184c7 | 11438 | if test -n "$LD_FOR_TARGET"; then |
11439 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11440 | else |
b30fcfae | 11441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11442 | for as_dir in $PATH | |
11443 | do | |
11444 | IFS=$as_save_IFS | |
11445 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11446 | for ac_exec_ext in '' $ac_executable_extensions; do |
11447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11448 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11450 | break 2 |
11451 | fi | |
11452 | done | |
cd9a469c | 11453 | done |
11454 | IFS=$as_save_IFS | |
b30fcfae | 11455 | |
bb612911 | 11456 | fi |
11457 | fi | |
b30fcfae | 11458 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
ef8184c7 | 11459 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11461 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11462 | else |
cd9a469c | 11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11464 | $as_echo "no" >&6; } | |
bb612911 | 11465 | fi |
11466 | ||
cd9a469c | 11467 | |
c47832b1 | 11468 | fi |
11469 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11470 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11471 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11473 | $as_echo_n "checking for $ac_word... " >&6; } | |
11474 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11475 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11476 | else |
768691b5 | 11477 | if test -n "$LD_FOR_TARGET"; then |
11478 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11479 | else |
b30fcfae | 11480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11481 | for as_dir in $PATH | |
11482 | do | |
11483 | IFS=$as_save_IFS | |
11484 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11485 | for ac_exec_ext in '' $ac_executable_extensions; do |
11486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11487 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11489 | break 2 |
11490 | fi | |
11491 | done | |
cd9a469c | 11492 | done |
11493 | IFS=$as_save_IFS | |
b30fcfae | 11494 | |
bb612911 | 11495 | fi |
11496 | fi | |
b30fcfae | 11497 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
768691b5 | 11498 | if test -n "$LD_FOR_TARGET"; then |
cd9a469c | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11500 | $as_echo "$LD_FOR_TARGET" >&6; } | |
bb612911 | 11501 | else |
cd9a469c | 11502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11503 | $as_echo "no" >&6; } | |
bb612911 | 11504 | fi |
b30fcfae | 11505 | |
cd9a469c | 11506 | |
c47832b1 | 11507 | fi |
11508 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11509 | done | |
11510 | fi | |
b30fcfae | 11511 | |
768691b5 | 11512 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11513 | set dummy ld | |
11514 | if test $build = $target ; then | |
11515 | LD_FOR_TARGET="$2" | |
bb612911 | 11516 | else |
768691b5 | 11517 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11518 | fi |
b7ef8464 | 11519 | else |
11520 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
bb612911 | 11521 | fi |
11522 | ||
ab0da556 | 11523 | else |
11524 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
c47832b1 | 11525 | fi |
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11531 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11533 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
ab0da556 | 11534 | if test -x $with_build_time_tools/lipo; then |
11535 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11536 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
cd9a469c | 11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11538 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
ab0da556 | 11539 | else |
cd9a469c | 11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11541 | $as_echo "no" >&6; } | |
ab0da556 | 11542 | fi |
c47832b1 | 11543 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11544 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
b7ef8464 | 11545 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11546 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
c47832b1 | 11547 | fi |
11548 | fi | |
95a05732 | 11549 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11550 | # Extract the first word of "lipo", so it can be a program name with args. | |
11551 | set dummy lipo; ac_word=$2 | |
cd9a469c | 11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11553 | $as_echo_n "checking for $ac_word... " >&6; } | |
11554 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11555 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11556 | else |
11557 | case $LIPO_FOR_TARGET in | |
11558 | [\\/]* | ?:[\\/]*) | |
11559 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11560 | ;; | |
11561 | *) | |
11562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11563 | for as_dir in $gcc_cv_tool_dirs | |
11564 | do | |
11565 | IFS=$as_save_IFS | |
11566 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11567 | for ac_exec_ext in '' $ac_executable_extensions; do |
11568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11569 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11571 | break 2 |
11572 | fi | |
11573 | done | |
cd9a469c | 11574 | done |
11575 | IFS=$as_save_IFS | |
95a05732 | 11576 | |
11577 | ;; | |
11578 | esac | |
11579 | fi | |
11580 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
95a05732 | 11581 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11583 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
95a05732 | 11584 | else |
cd9a469c | 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11586 | $as_echo "no" >&6; } | |
95a05732 | 11587 | fi |
11588 | ||
cd9a469c | 11589 | |
95a05732 | 11590 | fi |
11591 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11592 | ||
11593 | ||
11594 | if test -n "$LIPO_FOR_TARGET"; then | |
11595 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11596 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11597 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11598 | fi | |
11599 | ||
11600 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11601 | for ncn_progname in lipo; do | |
11602 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11603 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11605 | $as_echo_n "checking for $ac_word... " >&6; } | |
11606 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11607 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11608 | else |
95a05732 | 11609 | if test -n "$LIPO_FOR_TARGET"; then |
11610 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11611 | else | |
11612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11613 | for as_dir in $PATH | |
b30fcfae | 11614 | do |
11615 | IFS=$as_save_IFS | |
11616 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11617 | for ac_exec_ext in '' $ac_executable_extensions; do |
11618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11619 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11621 | break 2 |
11622 | fi | |
11623 | done | |
cd9a469c | 11624 | done |
11625 | IFS=$as_save_IFS | |
b30fcfae | 11626 | |
c47832b1 | 11627 | fi |
95a05732 | 11628 | fi |
11629 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
c47832b1 | 11630 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11632 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
c47832b1 | 11633 | else |
cd9a469c | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11635 | $as_echo "no" >&6; } | |
c47832b1 | 11636 | fi |
11637 | ||
cd9a469c | 11638 | |
95a05732 | 11639 | done |
c47832b1 | 11640 | fi |
95a05732 | 11641 | |
11642 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11643 | for ncn_progname in lipo; do |
cd9a469c | 11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11645 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11646 | if test -x $with_build_time_tools/${ncn_progname}; then |
11647 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11649 | $as_echo "yes" >&6; } | |
c47832b1 | 11650 | break |
11651 | else | |
cd9a469c | 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11653 | $as_echo "no" >&6; } | |
c47832b1 | 11654 | fi |
11655 | done | |
11656 | fi | |
11657 | ||
11658 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11659 | for ncn_progname in lipo; do | |
11660 | if test -n "$ncn_target_tool_prefix"; then | |
11661 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11662 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11664 | $as_echo_n "checking for $ac_word... " >&6; } | |
11665 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11666 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11667 | else |
11668 | if test -n "$LIPO_FOR_TARGET"; then | |
11669 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11670 | else | |
b30fcfae | 11671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11672 | for as_dir in $PATH | |
11673 | do | |
11674 | IFS=$as_save_IFS | |
11675 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11676 | for ac_exec_ext in '' $ac_executable_extensions; do |
11677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11678 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11680 | break 2 |
11681 | fi | |
11682 | done | |
cd9a469c | 11683 | done |
11684 | IFS=$as_save_IFS | |
b30fcfae | 11685 | |
9fec3fa8 | 11686 | fi |
11687 | fi | |
b30fcfae | 11688 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11689 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11691 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11692 | else |
cd9a469c | 11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11694 | $as_echo "no" >&6; } | |
9fec3fa8 | 11695 | fi |
11696 | ||
cd9a469c | 11697 | |
c47832b1 | 11698 | fi |
11699 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11700 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 11701 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11703 | $as_echo_n "checking for $ac_word... " >&6; } | |
11704 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11705 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 11706 | else |
11707 | if test -n "$LIPO_FOR_TARGET"; then | |
9886f3d1 | 11708 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11709 | else | |
b30fcfae | 11710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11711 | for as_dir in $PATH | |
11712 | do | |
11713 | IFS=$as_save_IFS | |
11714 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11715 | for ac_exec_ext in '' $ac_executable_extensions; do |
11716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11717 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11719 | break 2 |
11720 | fi | |
11721 | done | |
cd9a469c | 11722 | done |
11723 | IFS=$as_save_IFS | |
b30fcfae | 11724 | |
9fec3fa8 | 11725 | fi |
11726 | fi | |
b30fcfae | 11727 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
9fec3fa8 | 11728 | if test -n "$LIPO_FOR_TARGET"; then |
cd9a469c | 11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11730 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9fec3fa8 | 11731 | else |
cd9a469c | 11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11733 | $as_echo "no" >&6; } | |
9fec3fa8 | 11734 | fi |
b30fcfae | 11735 | |
cd9a469c | 11736 | |
c47832b1 | 11737 | fi |
11738 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11739 | done | |
11740 | fi | |
b30fcfae | 11741 | |
9fec3fa8 | 11742 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11743 | set dummy lipo | |
11744 | if test $build = $target ; then | |
11745 | LIPO_FOR_TARGET="$2" | |
11746 | else | |
11747 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11748 | fi | |
b7ef8464 | 11749 | else |
11750 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
9fec3fa8 | 11751 | fi |
11752 | ||
ab0da556 | 11753 | else |
11754 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
c47832b1 | 11755 | fi |
11756 | ||
11757 | ||
11758 | ||
11759 | ||
11760 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11761 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11763 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
ab0da556 | 11764 | if test -x $with_build_time_tools/nm; then |
11765 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11766 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
cd9a469c | 11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11768 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
ab0da556 | 11769 | else |
cd9a469c | 11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11771 | $as_echo "no" >&6; } | |
ab0da556 | 11772 | fi |
c47832b1 | 11773 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11774 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
b7ef8464 | 11775 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11776 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
c47832b1 | 11777 | fi |
11778 | fi | |
38d7211b | 11779 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 11780 | # Extract the first word of "nm", so it can be a program name with args. |
11781 | set dummy nm; ac_word=$2 | |
cd9a469c | 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11783 | $as_echo_n "checking for $ac_word... " >&6; } | |
11784 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11785 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 11786 | else |
b30fcfae | 11787 | case $NM_FOR_TARGET in |
11788 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 11789 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11790 | ;; | |
c47832b1 | 11791 | *) |
b30fcfae | 11792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11793 | for as_dir in $gcc_cv_tool_dirs | |
11794 | do | |
11795 | IFS=$as_save_IFS | |
11796 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11797 | for ac_exec_ext in '' $ac_executable_extensions; do |
11798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11799 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 11800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11801 | break 2 |
11802 | fi | |
11803 | done | |
cd9a469c | 11804 | done |
11805 | IFS=$as_save_IFS | |
b30fcfae | 11806 | |
c47832b1 | 11807 | ;; |
11808 | esac | |
11809 | fi | |
b30fcfae | 11810 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
c47832b1 | 11811 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11813 | $as_echo "$NM_FOR_TARGET" >&6; } | |
c47832b1 | 11814 | else |
cd9a469c | 11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11816 | $as_echo "no" >&6; } | |
c47832b1 | 11817 | fi |
11818 | ||
cd9a469c | 11819 | |
c47832b1 | 11820 | fi |
11821 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
95a05732 | 11822 | |
11823 | ||
11824 | if test -n "$NM_FOR_TARGET"; then | |
11825 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11826 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11827 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11828 | fi | |
11829 | ||
11830 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11831 | for ncn_progname in nm; do | |
11832 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11833 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11835 | $as_echo_n "checking for $ac_word... " >&6; } | |
11836 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11837 | $as_echo_n "(cached) " >&6 | |
95a05732 | 11838 | else |
11839 | if test -n "$NM_FOR_TARGET"; then | |
11840 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11841 | else | |
11842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11843 | for as_dir in $PATH | |
11844 | do | |
11845 | IFS=$as_save_IFS | |
11846 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11847 | for ac_exec_ext in '' $ac_executable_extensions; do |
11848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 11849 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 11851 | break 2 |
11852 | fi | |
11853 | done | |
cd9a469c | 11854 | done |
11855 | IFS=$as_save_IFS | |
95a05732 | 11856 | |
11857 | fi | |
11858 | fi | |
11859 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11860 | if test -n "$NM_FOR_TARGET"; then | |
cd9a469c | 11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11862 | $as_echo "$NM_FOR_TARGET" >&6; } | |
95a05732 | 11863 | else |
cd9a469c | 11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11865 | $as_echo "no" >&6; } | |
95a05732 | 11866 | fi |
11867 | ||
cd9a469c | 11868 | |
95a05732 | 11869 | done |
11870 | fi | |
11871 | ||
11872 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 11873 | for ncn_progname in nm; do |
cd9a469c | 11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11875 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 11876 | if test -x $with_build_time_tools/${ncn_progname}; then |
11877 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11879 | $as_echo "yes" >&6; } | |
c47832b1 | 11880 | break |
11881 | else | |
cd9a469c | 11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11883 | $as_echo "no" >&6; } | |
c47832b1 | 11884 | fi |
11885 | done | |
11886 | fi | |
11887 | ||
11888 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11889 | for ncn_progname in nm; do | |
11890 | if test -n "$ncn_target_tool_prefix"; then | |
11891 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 11892 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11894 | $as_echo_n "checking for $ac_word... " >&6; } | |
11895 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11896 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11897 | else |
ef8184c7 | 11898 | if test -n "$NM_FOR_TARGET"; then |
11899 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11900 | else |
b30fcfae | 11901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11902 | for as_dir in $PATH | |
11903 | do | |
11904 | IFS=$as_save_IFS | |
11905 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11906 | for ac_exec_ext in '' $ac_executable_extensions; do |
11907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11908 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 11909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11910 | break 2 |
11911 | fi | |
11912 | done | |
cd9a469c | 11913 | done |
11914 | IFS=$as_save_IFS | |
b30fcfae | 11915 | |
bb612911 | 11916 | fi |
11917 | fi | |
b30fcfae | 11918 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
ef8184c7 | 11919 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11921 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 11922 | else |
cd9a469c | 11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11924 | $as_echo "no" >&6; } | |
bb612911 | 11925 | fi |
11926 | ||
cd9a469c | 11927 | |
c47832b1 | 11928 | fi |
11929 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11930 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 11931 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11933 | $as_echo_n "checking for $ac_word... " >&6; } | |
11934 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11935 | $as_echo_n "(cached) " >&6 | |
bb612911 | 11936 | else |
768691b5 | 11937 | if test -n "$NM_FOR_TARGET"; then |
11938 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
bb612911 | 11939 | else |
b30fcfae | 11940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11941 | for as_dir in $PATH | |
11942 | do | |
11943 | IFS=$as_save_IFS | |
11944 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 11945 | for ac_exec_ext in '' $ac_executable_extensions; do |
11946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 11947 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
cd9a469c | 11948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 11949 | break 2 |
11950 | fi | |
11951 | done | |
cd9a469c | 11952 | done |
11953 | IFS=$as_save_IFS | |
b30fcfae | 11954 | |
bb612911 | 11955 | fi |
11956 | fi | |
b30fcfae | 11957 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
768691b5 | 11958 | if test -n "$NM_FOR_TARGET"; then |
cd9a469c | 11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11960 | $as_echo "$NM_FOR_TARGET" >&6; } | |
bb612911 | 11961 | else |
cd9a469c | 11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11963 | $as_echo "no" >&6; } | |
bb612911 | 11964 | fi |
b30fcfae | 11965 | |
cd9a469c | 11966 | |
c47832b1 | 11967 | fi |
11968 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11969 | done | |
11970 | fi | |
b30fcfae | 11971 | |
768691b5 | 11972 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11973 | set dummy nm | |
11974 | if test $build = $target ; then | |
11975 | NM_FOR_TARGET="$2" | |
bb612911 | 11976 | else |
768691b5 | 11977 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 11978 | fi |
b7ef8464 | 11979 | else |
11980 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
bb612911 | 11981 | fi |
11982 | ||
ab0da556 | 11983 | else |
11984 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
c47832b1 | 11985 | fi |
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11991 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11993 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
ab0da556 | 11994 | if test -x $with_build_time_tools/objdump; then |
11995 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11996 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
cd9a469c | 11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11998 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
ab0da556 | 11999 | else |
cd9a469c | 12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12001 | $as_echo "no" >&6; } | |
ab0da556 | 12002 | fi |
c47832b1 | 12003 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12004 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
b7ef8464 | 12005 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12006 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
c47832b1 | 12007 | fi |
12008 | fi | |
38d7211b | 12009 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12010 | # Extract the first word of "objdump", so it can be a program name with args. |
12011 | set dummy objdump; ac_word=$2 | |
cd9a469c | 12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12013 | $as_echo_n "checking for $ac_word... " >&6; } | |
12014 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12015 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12016 | else |
b30fcfae | 12017 | case $OBJDUMP_FOR_TARGET in |
12018 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12019 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12020 | ;; | |
c47832b1 | 12021 | *) |
b30fcfae | 12022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12023 | for as_dir in $gcc_cv_tool_dirs | |
12024 | do | |
12025 | IFS=$as_save_IFS | |
12026 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12027 | for ac_exec_ext in '' $ac_executable_extensions; do |
12028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12029 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12031 | break 2 |
12032 | fi | |
12033 | done | |
cd9a469c | 12034 | done |
12035 | IFS=$as_save_IFS | |
b30fcfae | 12036 | |
c47832b1 | 12037 | ;; |
12038 | esac | |
12039 | fi | |
b30fcfae | 12040 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
c47832b1 | 12041 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12043 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
c47832b1 | 12044 | else |
cd9a469c | 12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12046 | $as_echo "no" >&6; } | |
c47832b1 | 12047 | fi |
12048 | ||
cd9a469c | 12049 | |
c47832b1 | 12050 | fi |
12051 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
95a05732 | 12052 | |
12053 | ||
12054 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12055 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12056 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12057 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12058 | fi | |
12059 | ||
12060 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12061 | for ncn_progname in objdump; do | |
12062 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12063 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12065 | $as_echo_n "checking for $ac_word... " >&6; } | |
12066 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12067 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12068 | else |
12069 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12070 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12071 | else | |
12072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12073 | for as_dir in $PATH | |
12074 | do | |
12075 | IFS=$as_save_IFS | |
12076 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12077 | for ac_exec_ext in '' $ac_executable_extensions; do |
12078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12079 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12081 | break 2 |
12082 | fi | |
12083 | done | |
cd9a469c | 12084 | done |
12085 | IFS=$as_save_IFS | |
95a05732 | 12086 | |
12087 | fi | |
12088 | fi | |
12089 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12090 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
cd9a469c | 12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12092 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
95a05732 | 12093 | else |
cd9a469c | 12094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12095 | $as_echo "no" >&6; } | |
95a05732 | 12096 | fi |
12097 | ||
cd9a469c | 12098 | |
95a05732 | 12099 | done |
12100 | fi | |
12101 | ||
12102 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12103 | for ncn_progname in objdump; do |
cd9a469c | 12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12105 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12106 | if test -x $with_build_time_tools/${ncn_progname}; then |
12107 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12109 | $as_echo "yes" >&6; } | |
c47832b1 | 12110 | break |
12111 | else | |
cd9a469c | 12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12113 | $as_echo "no" >&6; } | |
c47832b1 | 12114 | fi |
12115 | done | |
12116 | fi | |
12117 | ||
12118 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12119 | for ncn_progname in objdump; do | |
12120 | if test -n "$ncn_target_tool_prefix"; then | |
12121 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12122 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12124 | $as_echo_n "checking for $ac_word... " >&6; } | |
12125 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12126 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12127 | else |
12128 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12129 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12130 | else | |
b30fcfae | 12131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12132 | for as_dir in $PATH | |
12133 | do | |
12134 | IFS=$as_save_IFS | |
12135 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12136 | for ac_exec_ext in '' $ac_executable_extensions; do |
12137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12138 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12140 | break 2 |
12141 | fi | |
12142 | done | |
cd9a469c | 12143 | done |
12144 | IFS=$as_save_IFS | |
b30fcfae | 12145 | |
ae74ffb7 | 12146 | fi |
12147 | fi | |
b30fcfae | 12148 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12149 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12151 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12152 | else |
cd9a469c | 12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12154 | $as_echo "no" >&6; } | |
ae74ffb7 | 12155 | fi |
12156 | ||
cd9a469c | 12157 | |
c47832b1 | 12158 | fi |
12159 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12160 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12161 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12163 | $as_echo_n "checking for $ac_word... " >&6; } | |
12164 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12165 | $as_echo_n "(cached) " >&6 | |
ae74ffb7 | 12166 | else |
12167 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12168 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12169 | else | |
b30fcfae | 12170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12171 | for as_dir in $PATH | |
12172 | do | |
12173 | IFS=$as_save_IFS | |
12174 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12175 | for ac_exec_ext in '' $ac_executable_extensions; do |
12176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12177 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12179 | break 2 |
12180 | fi | |
12181 | done | |
cd9a469c | 12182 | done |
12183 | IFS=$as_save_IFS | |
b30fcfae | 12184 | |
ae74ffb7 | 12185 | fi |
12186 | fi | |
b30fcfae | 12187 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
ae74ffb7 | 12188 | if test -n "$OBJDUMP_FOR_TARGET"; then |
cd9a469c | 12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12190 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
ae74ffb7 | 12191 | else |
cd9a469c | 12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12193 | $as_echo "no" >&6; } | |
ae74ffb7 | 12194 | fi |
b30fcfae | 12195 | |
cd9a469c | 12196 | |
c47832b1 | 12197 | fi |
12198 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12199 | done | |
12200 | fi | |
b30fcfae | 12201 | |
ae74ffb7 | 12202 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12203 | set dummy objdump | |
12204 | if test $build = $target ; then | |
12205 | OBJDUMP_FOR_TARGET="$2" | |
12206 | else | |
12207 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12208 | fi | |
b7ef8464 | 12209 | else |
12210 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
ae74ffb7 | 12211 | fi |
12212 | ||
ab0da556 | 12213 | else |
12214 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
c47832b1 | 12215 | fi |
12216 | ||
12217 | ||
12218 | ||
12219 | ||
12220 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12221 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12223 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
ab0da556 | 12224 | if test -x $with_build_time_tools/ranlib; then |
12225 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12226 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
cd9a469c | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12228 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
ab0da556 | 12229 | else |
cd9a469c | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12231 | $as_echo "no" >&6; } | |
ab0da556 | 12232 | fi |
c47832b1 | 12233 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12234 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
b7ef8464 | 12235 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12236 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
c47832b1 | 12237 | fi |
12238 | fi | |
38d7211b | 12239 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12240 | # Extract the first word of "ranlib", so it can be a program name with args. |
12241 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12243 | $as_echo_n "checking for $ac_word... " >&6; } | |
12244 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12245 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12246 | else |
b30fcfae | 12247 | case $RANLIB_FOR_TARGET in |
12248 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12249 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12250 | ;; | |
c47832b1 | 12251 | *) |
b30fcfae | 12252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12253 | for as_dir in $gcc_cv_tool_dirs | |
12254 | do | |
12255 | IFS=$as_save_IFS | |
12256 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12257 | for ac_exec_ext in '' $ac_executable_extensions; do |
12258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12259 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12261 | break 2 |
12262 | fi | |
12263 | done | |
cd9a469c | 12264 | done |
12265 | IFS=$as_save_IFS | |
b30fcfae | 12266 | |
c47832b1 | 12267 | ;; |
12268 | esac | |
12269 | fi | |
b30fcfae | 12270 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
c47832b1 | 12271 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12273 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
c47832b1 | 12274 | else |
cd9a469c | 12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12276 | $as_echo "no" >&6; } | |
c47832b1 | 12277 | fi |
12278 | ||
cd9a469c | 12279 | |
c47832b1 | 12280 | fi |
12281 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
95a05732 | 12282 | |
12283 | ||
12284 | if test -n "$RANLIB_FOR_TARGET"; then | |
12285 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12286 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12287 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12288 | fi | |
12289 | ||
12290 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12291 | for ncn_progname in ranlib; do | |
12292 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12293 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12295 | $as_echo_n "checking for $ac_word... " >&6; } | |
12296 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12297 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12298 | else |
12299 | if test -n "$RANLIB_FOR_TARGET"; then | |
12300 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12301 | else | |
12302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12303 | for as_dir in $PATH | |
12304 | do | |
12305 | IFS=$as_save_IFS | |
12306 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12307 | for ac_exec_ext in '' $ac_executable_extensions; do |
12308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12309 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12311 | break 2 |
12312 | fi | |
12313 | done | |
cd9a469c | 12314 | done |
12315 | IFS=$as_save_IFS | |
95a05732 | 12316 | |
12317 | fi | |
12318 | fi | |
12319 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12320 | if test -n "$RANLIB_FOR_TARGET"; then | |
cd9a469c | 12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12322 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
95a05732 | 12323 | else |
cd9a469c | 12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12325 | $as_echo "no" >&6; } | |
95a05732 | 12326 | fi |
12327 | ||
cd9a469c | 12328 | |
95a05732 | 12329 | done |
12330 | fi | |
12331 | ||
12332 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12333 | for ncn_progname in ranlib; do |
cd9a469c | 12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12335 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12336 | if test -x $with_build_time_tools/${ncn_progname}; then |
12337 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12339 | $as_echo "yes" >&6; } | |
c47832b1 | 12340 | break |
12341 | else | |
cd9a469c | 12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12343 | $as_echo "no" >&6; } | |
c47832b1 | 12344 | fi |
12345 | done | |
12346 | fi | |
12347 | ||
12348 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12349 | for ncn_progname in ranlib; do | |
12350 | if test -n "$ncn_target_tool_prefix"; then | |
12351 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
ae74ffb7 | 12352 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12354 | $as_echo_n "checking for $ac_word... " >&6; } | |
12355 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12356 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12357 | else |
ef8184c7 | 12358 | if test -n "$RANLIB_FOR_TARGET"; then |
12359 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12360 | else |
b30fcfae | 12361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12362 | for as_dir in $PATH | |
12363 | do | |
12364 | IFS=$as_save_IFS | |
12365 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12366 | for ac_exec_ext in '' $ac_executable_extensions; do |
12367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12368 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12370 | break 2 |
12371 | fi | |
12372 | done | |
cd9a469c | 12373 | done |
12374 | IFS=$as_save_IFS | |
b30fcfae | 12375 | |
bb612911 | 12376 | fi |
12377 | fi | |
b30fcfae | 12378 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
ef8184c7 | 12379 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12381 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12382 | else |
cd9a469c | 12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12384 | $as_echo "no" >&6; } | |
bb612911 | 12385 | fi |
12386 | ||
cd9a469c | 12387 | |
c47832b1 | 12388 | fi |
12389 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12390 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12391 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12393 | $as_echo_n "checking for $ac_word... " >&6; } | |
12394 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12395 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12396 | else |
768691b5 | 12397 | if test -n "$RANLIB_FOR_TARGET"; then |
12398 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12399 | else |
b30fcfae | 12400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12401 | for as_dir in $PATH | |
12402 | do | |
12403 | IFS=$as_save_IFS | |
12404 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12405 | for ac_exec_ext in '' $ac_executable_extensions; do |
12406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12407 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12409 | break 2 |
12410 | fi | |
12411 | done | |
cd9a469c | 12412 | done |
12413 | IFS=$as_save_IFS | |
b30fcfae | 12414 | |
bb612911 | 12415 | fi |
12416 | fi | |
b30fcfae | 12417 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
768691b5 | 12418 | if test -n "$RANLIB_FOR_TARGET"; then |
cd9a469c | 12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12420 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
bb612911 | 12421 | else |
cd9a469c | 12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12423 | $as_echo "no" >&6; } | |
bb612911 | 12424 | fi |
b30fcfae | 12425 | |
cd9a469c | 12426 | |
c47832b1 | 12427 | fi |
12428 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12429 | done | |
12430 | fi | |
b30fcfae | 12431 | |
c47832b1 | 12432 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12433 | set dummy ranlib | |
12434 | if test $build = $target ; then | |
12435 | RANLIB_FOR_TARGET="$2" | |
12436 | else | |
12437 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
bb612911 | 12438 | fi |
b7ef8464 | 12439 | else |
12440 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
c47832b1 | 12441 | fi |
768691b5 | 12442 | |
ab0da556 | 12443 | else |
12444 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
bb612911 | 12445 | fi |
12446 | ||
c47832b1 | 12447 | |
12448 | ||
12449 | ||
12450 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12451 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12453 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
ab0da556 | 12454 | if test -x $with_build_time_tools/strip; then |
12455 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12456 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
cd9a469c | 12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12458 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
ab0da556 | 12459 | else |
cd9a469c | 12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12461 | $as_echo "no" >&6; } | |
ab0da556 | 12462 | fi |
c47832b1 | 12463 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12464 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
b7ef8464 | 12465 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12466 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
c47832b1 | 12467 | fi |
12468 | fi | |
38d7211b | 12469 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12470 | # Extract the first word of "strip", so it can be a program name with args. |
12471 | set dummy strip; ac_word=$2 | |
cd9a469c | 12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12473 | $as_echo_n "checking for $ac_word... " >&6; } | |
12474 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12475 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12476 | else |
b30fcfae | 12477 | case $STRIP_FOR_TARGET in |
12478 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12479 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12480 | ;; | |
c47832b1 | 12481 | *) |
b30fcfae | 12482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12483 | for as_dir in $gcc_cv_tool_dirs | |
12484 | do | |
12485 | IFS=$as_save_IFS | |
12486 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12487 | for ac_exec_ext in '' $ac_executable_extensions; do |
12488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12489 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12491 | break 2 |
12492 | fi | |
12493 | done | |
cd9a469c | 12494 | done |
12495 | IFS=$as_save_IFS | |
b30fcfae | 12496 | |
c47832b1 | 12497 | ;; |
12498 | esac | |
12499 | fi | |
b30fcfae | 12500 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
c47832b1 | 12501 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12503 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
c47832b1 | 12504 | else |
cd9a469c | 12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12506 | $as_echo "no" >&6; } | |
c47832b1 | 12507 | fi |
12508 | ||
cd9a469c | 12509 | |
c47832b1 | 12510 | fi |
12511 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
95a05732 | 12512 | |
12513 | ||
12514 | if test -n "$STRIP_FOR_TARGET"; then | |
12515 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12516 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12517 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12518 | fi | |
12519 | ||
12520 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12521 | for ncn_progname in strip; do | |
12522 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12523 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12525 | $as_echo_n "checking for $ac_word... " >&6; } | |
12526 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12527 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12528 | else |
12529 | if test -n "$STRIP_FOR_TARGET"; then | |
12530 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12531 | else | |
12532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12533 | for as_dir in $PATH | |
12534 | do | |
12535 | IFS=$as_save_IFS | |
12536 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12537 | for ac_exec_ext in '' $ac_executable_extensions; do |
12538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12539 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12541 | break 2 |
12542 | fi | |
12543 | done | |
cd9a469c | 12544 | done |
12545 | IFS=$as_save_IFS | |
95a05732 | 12546 | |
12547 | fi | |
12548 | fi | |
12549 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12550 | if test -n "$STRIP_FOR_TARGET"; then | |
cd9a469c | 12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12552 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
95a05732 | 12553 | else |
cd9a469c | 12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12555 | $as_echo "no" >&6; } | |
95a05732 | 12556 | fi |
12557 | ||
cd9a469c | 12558 | |
95a05732 | 12559 | done |
12560 | fi | |
12561 | ||
12562 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12563 | for ncn_progname in strip; do |
cd9a469c | 12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12565 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12566 | if test -x $with_build_time_tools/${ncn_progname}; then |
12567 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12569 | $as_echo "yes" >&6; } | |
c47832b1 | 12570 | break |
12571 | else | |
cd9a469c | 12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12573 | $as_echo "no" >&6; } | |
c47832b1 | 12574 | fi |
12575 | done | |
12576 | fi | |
12577 | ||
12578 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12579 | for ncn_progname in strip; do | |
12580 | if test -n "$ncn_target_tool_prefix"; then | |
12581 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12582 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12584 | $as_echo_n "checking for $ac_word... " >&6; } | |
12585 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12586 | $as_echo_n "(cached) " >&6 | |
ae48753c | 12587 | else |
12588 | if test -n "$STRIP_FOR_TARGET"; then | |
b30fcfae | 12589 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
12590 | else | |
12591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12592 | for as_dir in $PATH | |
12593 | do | |
12594 | IFS=$as_save_IFS | |
12595 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12596 | for ac_exec_ext in '' $ac_executable_extensions; do |
12597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12598 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12600 | break 2 |
12601 | fi | |
12602 | done | |
cd9a469c | 12603 | done |
12604 | IFS=$as_save_IFS | |
b30fcfae | 12605 | |
9fec3fa8 | 12606 | fi |
12607 | fi | |
b30fcfae | 12608 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 12609 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12611 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 12612 | else |
cd9a469c | 12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12614 | $as_echo "no" >&6; } | |
9fec3fa8 | 12615 | fi |
12616 | ||
cd9a469c | 12617 | |
c47832b1 | 12618 | fi |
12619 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12620 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9fec3fa8 | 12621 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12623 | $as_echo_n "checking for $ac_word... " >&6; } | |
12624 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12625 | $as_echo_n "(cached) " >&6 | |
9fec3fa8 | 12626 | else |
12627 | if test -n "$STRIP_FOR_TARGET"; then | |
12628 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12629 | else | |
b30fcfae | 12630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12631 | for as_dir in $PATH | |
12632 | do | |
12633 | IFS=$as_save_IFS | |
12634 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12635 | for ac_exec_ext in '' $ac_executable_extensions; do |
12636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12637 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12639 | break 2 |
12640 | fi | |
12641 | done | |
cd9a469c | 12642 | done |
12643 | IFS=$as_save_IFS | |
b30fcfae | 12644 | |
9fec3fa8 | 12645 | fi |
12646 | fi | |
b30fcfae | 12647 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
9fec3fa8 | 12648 | if test -n "$STRIP_FOR_TARGET"; then |
cd9a469c | 12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12650 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9fec3fa8 | 12651 | else |
cd9a469c | 12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12653 | $as_echo "no" >&6; } | |
9fec3fa8 | 12654 | fi |
b30fcfae | 12655 | |
cd9a469c | 12656 | |
c47832b1 | 12657 | fi |
12658 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12659 | done | |
12660 | fi | |
b30fcfae | 12661 | |
9fec3fa8 | 12662 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12663 | set dummy strip | |
12664 | if test $build = $target ; then | |
12665 | STRIP_FOR_TARGET="$2" | |
12666 | else | |
12667 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12668 | fi | |
b7ef8464 | 12669 | else |
12670 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
9fec3fa8 | 12671 | fi |
12672 | ||
ab0da556 | 12673 | else |
12674 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
c47832b1 | 12675 | fi |
12676 | ||
12677 | ||
12678 | ||
12679 | ||
12680 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12681 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12683 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
ab0da556 | 12684 | if test -x $with_build_time_tools/windres; then |
12685 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12686 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
cd9a469c | 12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12688 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
ab0da556 | 12689 | else |
cd9a469c | 12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12691 | $as_echo "no" >&6; } | |
ab0da556 | 12692 | fi |
c47832b1 | 12693 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12694 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
b7ef8464 | 12695 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12696 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
c47832b1 | 12697 | fi |
12698 | fi | |
38d7211b | 12699 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
c47832b1 | 12700 | # Extract the first word of "windres", so it can be a program name with args. |
12701 | set dummy windres; ac_word=$2 | |
cd9a469c | 12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12703 | $as_echo_n "checking for $ac_word... " >&6; } | |
12704 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12705 | $as_echo_n "(cached) " >&6 | |
c47832b1 | 12706 | else |
b30fcfae | 12707 | case $WINDRES_FOR_TARGET in |
12708 | [\\/]* | ?:[\\/]*) | |
c47832b1 | 12709 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12710 | ;; | |
c47832b1 | 12711 | *) |
b30fcfae | 12712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12713 | for as_dir in $gcc_cv_tool_dirs | |
12714 | do | |
12715 | IFS=$as_save_IFS | |
12716 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12717 | for ac_exec_ext in '' $ac_executable_extensions; do |
12718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12719 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12721 | break 2 |
12722 | fi | |
12723 | done | |
cd9a469c | 12724 | done |
12725 | IFS=$as_save_IFS | |
b30fcfae | 12726 | |
c47832b1 | 12727 | ;; |
12728 | esac | |
12729 | fi | |
b30fcfae | 12730 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
c47832b1 | 12731 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12733 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
c47832b1 | 12734 | else |
cd9a469c | 12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12736 | $as_echo "no" >&6; } | |
c47832b1 | 12737 | fi |
12738 | ||
cd9a469c | 12739 | |
c47832b1 | 12740 | fi |
12741 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
95a05732 | 12742 | |
12743 | ||
12744 | if test -n "$WINDRES_FOR_TARGET"; then | |
12745 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12746 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12747 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12748 | fi | |
12749 | ||
12750 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12751 | for ncn_progname in windres; do | |
12752 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12753 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12755 | $as_echo_n "checking for $ac_word... " >&6; } | |
12756 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12757 | $as_echo_n "(cached) " >&6 | |
95a05732 | 12758 | else |
12759 | if test -n "$WINDRES_FOR_TARGET"; then | |
12760 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12761 | else | |
12762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12763 | for as_dir in $PATH | |
12764 | do | |
12765 | IFS=$as_save_IFS | |
12766 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12767 | for ac_exec_ext in '' $ac_executable_extensions; do |
12768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
95a05732 | 12769 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
95a05732 | 12771 | break 2 |
12772 | fi | |
12773 | done | |
cd9a469c | 12774 | done |
12775 | IFS=$as_save_IFS | |
95a05732 | 12776 | |
12777 | fi | |
12778 | fi | |
12779 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12780 | if test -n "$WINDRES_FOR_TARGET"; then | |
cd9a469c | 12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12782 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
95a05732 | 12783 | else |
cd9a469c | 12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12785 | $as_echo "no" >&6; } | |
95a05732 | 12786 | fi |
12787 | ||
cd9a469c | 12788 | |
95a05732 | 12789 | done |
12790 | fi | |
12791 | ||
12792 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
c47832b1 | 12793 | for ncn_progname in windres; do |
cd9a469c | 12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12795 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
ab0da556 | 12796 | if test -x $with_build_time_tools/${ncn_progname}; then |
12797 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12799 | $as_echo "yes" >&6; } | |
c47832b1 | 12800 | break |
12801 | else | |
cd9a469c | 12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12803 | $as_echo "no" >&6; } | |
c47832b1 | 12804 | fi |
12805 | done | |
12806 | fi | |
12807 | ||
12808 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12809 | for ncn_progname in windres; do | |
12810 | if test -n "$ncn_target_tool_prefix"; then | |
12811 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12812 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
cd9a469c | 12813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12814 | $as_echo_n "checking for $ac_word... " >&6; } | |
12815 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12816 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12817 | else |
ef8184c7 | 12818 | if test -n "$WINDRES_FOR_TARGET"; then |
12819 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12820 | else |
b30fcfae | 12821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12822 | for as_dir in $PATH | |
12823 | do | |
12824 | IFS=$as_save_IFS | |
12825 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12826 | for ac_exec_ext in '' $ac_executable_extensions; do |
12827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12828 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 12829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12830 | break 2 |
12831 | fi | |
12832 | done | |
cd9a469c | 12833 | done |
12834 | IFS=$as_save_IFS | |
b30fcfae | 12835 | |
bb612911 | 12836 | fi |
12837 | fi | |
b30fcfae | 12838 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
ef8184c7 | 12839 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12841 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 12842 | else |
cd9a469c | 12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12844 | $as_echo "no" >&6; } | |
bb612911 | 12845 | fi |
12846 | ||
cd9a469c | 12847 | |
c47832b1 | 12848 | fi |
12849 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12850 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
768691b5 | 12851 | set dummy ${ncn_progname}; ac_word=$2 |
cd9a469c | 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12853 | $as_echo_n "checking for $ac_word... " >&6; } | |
12854 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12855 | $as_echo_n "(cached) " >&6 | |
bb612911 | 12856 | else |
768691b5 | 12857 | if test -n "$WINDRES_FOR_TARGET"; then |
12858 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
bb612911 | 12859 | else |
b30fcfae | 12860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12861 | for as_dir in $PATH | |
12862 | do | |
12863 | IFS=$as_save_IFS | |
12864 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12865 | for ac_exec_ext in '' $ac_executable_extensions; do |
12866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b30fcfae | 12867 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
cd9a469c | 12868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b30fcfae | 12869 | break 2 |
12870 | fi | |
12871 | done | |
cd9a469c | 12872 | done |
12873 | IFS=$as_save_IFS | |
b30fcfae | 12874 | |
bb612911 | 12875 | fi |
12876 | fi | |
b30fcfae | 12877 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
768691b5 | 12878 | if test -n "$WINDRES_FOR_TARGET"; then |
cd9a469c | 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12880 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
bb612911 | 12881 | else |
cd9a469c | 12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12883 | $as_echo "no" >&6; } | |
bb612911 | 12884 | fi |
b30fcfae | 12885 | |
cd9a469c | 12886 | |
c47832b1 | 12887 | fi |
12888 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
12889 | done | |
12890 | fi | |
b30fcfae | 12891 | |
768691b5 | 12892 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
12893 | set dummy windres | |
12894 | if test $build = $target ; then | |
12895 | WINDRES_FOR_TARGET="$2" | |
bb612911 | 12896 | else |
768691b5 | 12897 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
bb612911 | 12898 | fi |
b7ef8464 | 12899 | else |
12900 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
bb612911 | 12901 | fi |
12902 | ||
ab0da556 | 12903 | else |
12904 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
c47832b1 | 12905 | fi |
12906 | ||
805e22b2 | 12907 | |
75d6a0a9 | 12908 | |
12909 | ||
12910 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12911 | if test -n "$with_build_time_tools"; then | |
cd9a469c | 12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
12913 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 12914 | if test -x $with_build_time_tools/windmc; then |
12915 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
12916 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
cd9a469c | 12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
12918 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 12919 | else |
cd9a469c | 12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12921 | $as_echo "no" >&6; } | |
75d6a0a9 | 12922 | fi |
12923 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12924 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
b7ef8464 | 12925 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
12926 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
75d6a0a9 | 12927 | fi |
12928 | fi | |
12929 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12930 | # Extract the first word of "windmc", so it can be a program name with args. | |
12931 | set dummy windmc; ac_word=$2 | |
cd9a469c | 12932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12933 | $as_echo_n "checking for $ac_word... " >&6; } | |
12934 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
12935 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 12936 | else |
12937 | case $WINDMC_FOR_TARGET in | |
12938 | [\\/]* | ?:[\\/]*) | |
12939 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
12940 | ;; | |
12941 | *) | |
12942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12943 | for as_dir in $gcc_cv_tool_dirs | |
12944 | do | |
12945 | IFS=$as_save_IFS | |
12946 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12947 | for ac_exec_ext in '' $ac_executable_extensions; do |
12948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 12949 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
cd9a469c | 12950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 12951 | break 2 |
12952 | fi | |
12953 | done | |
cd9a469c | 12954 | done |
12955 | IFS=$as_save_IFS | |
75d6a0a9 | 12956 | |
12957 | ;; | |
12958 | esac | |
12959 | fi | |
12960 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
75d6a0a9 | 12961 | if test -n "$WINDMC_FOR_TARGET"; then |
cd9a469c | 12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12963 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 12964 | else |
cd9a469c | 12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12966 | $as_echo "no" >&6; } | |
75d6a0a9 | 12967 | fi |
12968 | ||
cd9a469c | 12969 | |
75d6a0a9 | 12970 | fi |
12971 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12972 | ||
12973 | ||
12974 | if test -n "$WINDMC_FOR_TARGET"; then | |
12975 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12976 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12977 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12978 | fi | |
12979 | ||
12980 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12981 | for ncn_progname in windmc; do | |
12982 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12983 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12985 | $as_echo_n "checking for $ac_word... " >&6; } | |
12986 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12987 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 12988 | else |
12989 | if test -n "$WINDMC_FOR_TARGET"; then | |
12990 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
12991 | else | |
12992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12993 | for as_dir in $PATH | |
12994 | do | |
12995 | IFS=$as_save_IFS | |
12996 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12997 | for ac_exec_ext in '' $ac_executable_extensions; do |
12998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 12999 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13001 | break 2 |
13002 | fi | |
13003 | done | |
cd9a469c | 13004 | done |
13005 | IFS=$as_save_IFS | |
75d6a0a9 | 13006 | |
13007 | fi | |
13008 | fi | |
13009 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13010 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13012 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13013 | else |
cd9a469c | 13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13015 | $as_echo "no" >&6; } | |
75d6a0a9 | 13016 | fi |
13017 | ||
cd9a469c | 13018 | |
75d6a0a9 | 13019 | done |
13020 | fi | |
13021 | ||
13022 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13023 | for ncn_progname in windmc; do | |
cd9a469c | 13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13025 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
75d6a0a9 | 13026 | if test -x $with_build_time_tools/${ncn_progname}; then |
13027 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
cd9a469c | 13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13029 | $as_echo "yes" >&6; } | |
75d6a0a9 | 13030 | break |
13031 | else | |
cd9a469c | 13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13033 | $as_echo "no" >&6; } | |
75d6a0a9 | 13034 | fi |
13035 | done | |
13036 | fi | |
13037 | ||
13038 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13039 | for ncn_progname in windmc; do | |
13040 | if test -n "$ncn_target_tool_prefix"; then | |
13041 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13042 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
cd9a469c | 13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13044 | $as_echo_n "checking for $ac_word... " >&6; } | |
13045 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13046 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13047 | else |
13048 | if test -n "$WINDMC_FOR_TARGET"; then | |
13049 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13050 | else | |
13051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13052 | for as_dir in $PATH | |
13053 | do | |
13054 | IFS=$as_save_IFS | |
13055 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13056 | for ac_exec_ext in '' $ac_executable_extensions; do |
13057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13058 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
cd9a469c | 13059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13060 | break 2 |
13061 | fi | |
13062 | done | |
cd9a469c | 13063 | done |
13064 | IFS=$as_save_IFS | |
75d6a0a9 | 13065 | |
13066 | fi | |
13067 | fi | |
13068 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13069 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13071 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13072 | else |
cd9a469c | 13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13074 | $as_echo "no" >&6; } | |
75d6a0a9 | 13075 | fi |
13076 | ||
cd9a469c | 13077 | |
75d6a0a9 | 13078 | fi |
13079 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13080 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13081 | set dummy ${ncn_progname}; ac_word=$2 | |
cd9a469c | 13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13083 | $as_echo_n "checking for $ac_word... " >&6; } | |
13084 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13085 | $as_echo_n "(cached) " >&6 | |
75d6a0a9 | 13086 | else |
13087 | if test -n "$WINDMC_FOR_TARGET"; then | |
13088 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13089 | else | |
13090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13091 | for as_dir in $PATH | |
13092 | do | |
13093 | IFS=$as_save_IFS | |
13094 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13095 | for ac_exec_ext in '' $ac_executable_extensions; do |
13096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
75d6a0a9 | 13097 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
cd9a469c | 13098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
75d6a0a9 | 13099 | break 2 |
13100 | fi | |
13101 | done | |
cd9a469c | 13102 | done |
13103 | IFS=$as_save_IFS | |
75d6a0a9 | 13104 | |
13105 | fi | |
13106 | fi | |
13107 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13108 | if test -n "$WINDMC_FOR_TARGET"; then | |
cd9a469c | 13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13110 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
75d6a0a9 | 13111 | else |
cd9a469c | 13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13113 | $as_echo "no" >&6; } | |
75d6a0a9 | 13114 | fi |
13115 | ||
cd9a469c | 13116 | |
75d6a0a9 | 13117 | fi |
13118 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13119 | done | |
13120 | fi | |
13121 | ||
13122 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13123 | set dummy windmc | |
13124 | if test $build = $target ; then | |
13125 | WINDMC_FOR_TARGET="$2" | |
13126 | else | |
13127 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13128 | fi | |
b7ef8464 | 13129 | else |
13130 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
75d6a0a9 | 13131 | fi |
13132 | ||
13133 | else | |
13134 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13135 | fi | |
13136 | ||
13137 | ||
f5aebe3e | 13138 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13139 | ||
cd9a469c | 13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13141 | $as_echo_n "checking where to find the target ar... " >&6; } | |
f5aebe3e | 13142 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13143 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13144 | # We already found the complete path | |
a6c599b5 | 13145 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13147 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13148 | else |
13149 | # Canadian cross, just use what we found | |
cd9a469c | 13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13151 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13152 | fi |
f5aebe3e | 13153 | else |
13154 | ok=yes | |
13155 | case " ${configdirs} " in | |
13156 | *" binutils "*) ;; | |
13157 | *) ok=no ;; | |
13158 | esac | |
b30fcfae | 13159 | |
f5aebe3e | 13160 | if test $ok = yes; then |
13161 | # An in-tree tool is available and we can use it | |
13162 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
cd9a469c | 13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13164 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13165 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13166 | # We already found the complete path | |
a6c599b5 | 13167 | ac_dir=`dirname $AR_FOR_TARGET` |
cd9a469c | 13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13169 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13170 | elif test "x$target" = "x$host"; then |
13171 | # We can use an host tool | |
13172 | AR_FOR_TARGET='$(AR)' | |
cd9a469c | 13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13174 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13175 | else |
13176 | # We need a cross tool | |
cd9a469c | 13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13178 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13179 | fi |
13180 | fi | |
a83ffacf | 13181 | |
cd9a469c | 13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13183 | $as_echo_n "checking where to find the target as... " >&6; } | |
f5aebe3e | 13184 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13185 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13186 | # We already found the complete path | |
a6c599b5 | 13187 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13189 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13190 | else |
13191 | # Canadian cross, just use what we found | |
cd9a469c | 13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13193 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13194 | fi |
f5aebe3e | 13195 | else |
13196 | ok=yes | |
13197 | case " ${configdirs} " in | |
13198 | *" gas "*) ;; | |
13199 | *) ok=no ;; | |
13200 | esac | |
b30fcfae | 13201 | |
f5aebe3e | 13202 | if test $ok = yes; then |
13203 | # An in-tree tool is available and we can use it | |
13204 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
cd9a469c | 13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13206 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13207 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13208 | # We already found the complete path | |
a6c599b5 | 13209 | ac_dir=`dirname $AS_FOR_TARGET` |
cd9a469c | 13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13211 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13212 | elif test "x$target" = "x$host"; then |
13213 | # We can use an host tool | |
13214 | AS_FOR_TARGET='$(AS)' | |
cd9a469c | 13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13216 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13217 | else |
13218 | # We need a cross tool | |
cd9a469c | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13220 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13221 | fi |
13222 | fi | |
a83ffacf | 13223 | |
cd9a469c | 13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13225 | $as_echo_n "checking where to find the target cc... " >&6; } | |
f5aebe3e | 13226 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13227 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13228 | # We already found the complete path | |
a6c599b5 | 13229 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13231 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13232 | else |
13233 | # Canadian cross, just use what we found | |
cd9a469c | 13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13235 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13236 | fi |
f5aebe3e | 13237 | else |
13238 | ok=yes | |
13239 | case " ${configdirs} " in | |
13240 | *" gcc "*) ;; | |
13241 | *) ok=no ;; | |
13242 | esac | |
b30fcfae | 13243 | |
f5aebe3e | 13244 | if test $ok = yes; then |
13245 | # An in-tree tool is available and we can use it | |
13246 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13248 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13249 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13250 | # We already found the complete path | |
a6c599b5 | 13251 | ac_dir=`dirname $CC_FOR_TARGET` |
cd9a469c | 13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13253 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13254 | elif test "x$target" = "x$host"; then |
13255 | # We can use an host tool | |
13256 | CC_FOR_TARGET='$(CC)' | |
cd9a469c | 13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13258 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13259 | else |
13260 | # We need a cross tool | |
cd9a469c | 13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13262 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13263 | fi |
13264 | fi | |
a83ffacf | 13265 | |
cd9a469c | 13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13267 | $as_echo_n "checking where to find the target c++... " >&6; } | |
f5aebe3e | 13268 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13269 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13270 | # We already found the complete path | |
a6c599b5 | 13271 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13273 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13274 | else |
13275 | # Canadian cross, just use what we found | |
cd9a469c | 13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13277 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13278 | fi |
f5aebe3e | 13279 | else |
13280 | ok=yes | |
13281 | case " ${configdirs} " in | |
13282 | *" gcc "*) ;; | |
13283 | *) ok=no ;; | |
13284 | esac | |
13285 | case ,${enable_languages}, in | |
13286 | *,c++,*) ;; | |
13287 | *) ok=no ;; | |
13288 | esac | |
13289 | if test $ok = yes; then | |
13290 | # An in-tree tool is available and we can use it | |
174d231c | 13291 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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' |
cd9a469c | 13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13293 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13294 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13295 | # We already found the complete path | |
a6c599b5 | 13296 | ac_dir=`dirname $CXX_FOR_TARGET` |
cd9a469c | 13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13298 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13299 | elif test "x$target" = "x$host"; then |
13300 | # We can use an host tool | |
13301 | CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13303 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13304 | else |
13305 | # We need a cross tool | |
cd9a469c | 13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13307 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13308 | fi |
13309 | fi | |
a83ffacf | 13310 | |
cd9a469c | 13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13312 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
f5aebe3e | 13313 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13314 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13315 | # We already found the complete path | |
a6c599b5 | 13316 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13318 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13319 | else |
13320 | # Canadian cross, just use what we found | |
cd9a469c | 13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13322 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13323 | fi |
f5aebe3e | 13324 | else |
13325 | ok=yes | |
13326 | case " ${configdirs} " in | |
13327 | *" gcc "*) ;; | |
13328 | *) ok=no ;; | |
13329 | esac | |
13330 | case ,${enable_languages}, in | |
13331 | *,c++,*) ;; | |
13332 | *) ok=no ;; | |
13333 | esac | |
13334 | if test $ok = yes; then | |
13335 | # An in-tree tool is available and we can use it | |
13336 | 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' | |
cd9a469c | 13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13338 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13339 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13340 | # We already found the complete path | |
a6c599b5 | 13341 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
cd9a469c | 13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13343 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13344 | elif test "x$target" = "x$host"; then |
13345 | # We can use an host tool | |
13346 | RAW_CXX_FOR_TARGET='$(CXX)' | |
cd9a469c | 13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13348 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13349 | else |
13350 | # We need a cross tool | |
cd9a469c | 13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13352 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13353 | fi |
13354 | fi | |
a83ffacf | 13355 | |
cd9a469c | 13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13357 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
f5aebe3e | 13358 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13359 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13360 | # We already found the complete path | |
a6c599b5 | 13361 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13363 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13364 | else |
13365 | # Canadian cross, just use what we found | |
cd9a469c | 13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13367 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13368 | fi |
f5aebe3e | 13369 | else |
13370 | ok=yes | |
13371 | case " ${configdirs} " in | |
13372 | *" binutils "*) ;; | |
13373 | *) ok=no ;; | |
13374 | esac | |
b30fcfae | 13375 | |
f5aebe3e | 13376 | if test $ok = yes; then |
13377 | # An in-tree tool is available and we can use it | |
13378 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
cd9a469c | 13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13380 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13381 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13382 | # We already found the complete path | |
a6c599b5 | 13383 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
cd9a469c | 13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13385 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13386 | elif test "x$target" = "x$host"; then |
13387 | # We can use an host tool | |
13388 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
cd9a469c | 13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13390 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13391 | else |
13392 | # We need a cross tool | |
cd9a469c | 13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13394 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13395 | fi |
13396 | fi | |
a83ffacf | 13397 | |
cd9a469c | 13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13399 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
f5aebe3e | 13400 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13401 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13402 | # We already found the complete path | |
a6c599b5 | 13403 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13405 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13406 | else |
13407 | # Canadian cross, just use what we found | |
cd9a469c | 13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13409 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13410 | fi |
f5aebe3e | 13411 | else |
13412 | ok=yes | |
13413 | case " ${configdirs} " in | |
13414 | *" gcc "*) ;; | |
13415 | *) ok=no ;; | |
13416 | esac | |
b30fcfae | 13417 | |
f5aebe3e | 13418 | if test $ok = yes; then |
13419 | # An in-tree tool is available and we can use it | |
13420 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13422 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13423 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13424 | # We already found the complete path | |
a6c599b5 | 13425 | ac_dir=`dirname $GCC_FOR_TARGET` |
cd9a469c | 13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13427 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13428 | elif test "x$target" = "x$host"; then |
13429 | # We can use an host tool | |
13430 | GCC_FOR_TARGET='$()' | |
cd9a469c | 13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13432 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13433 | else |
13434 | # We need a cross tool | |
cd9a469c | 13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13436 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13437 | fi |
13438 | fi | |
a83ffacf | 13439 | |
cd9a469c | 13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13441 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
f5aebe3e | 13442 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13443 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13444 | # We already found the complete path | |
a6c599b5 | 13445 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13447 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13448 | else |
13449 | # Canadian cross, just use what we found | |
cd9a469c | 13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13451 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13452 | fi |
f5aebe3e | 13453 | else |
13454 | ok=yes | |
13455 | case " ${configdirs} " in | |
13456 | *" gcc "*) ;; | |
13457 | *) ok=no ;; | |
13458 | esac | |
13459 | case ,${enable_languages}, in | |
13460 | *,java,*) ;; | |
13461 | *) ok=no ;; | |
13462 | esac | |
13463 | if test $ok = yes; then | |
13464 | # An in-tree tool is available and we can use it | |
13465 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13467 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13468 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13469 | # We already found the complete path | |
a6c599b5 | 13470 | ac_dir=`dirname $GCJ_FOR_TARGET` |
cd9a469c | 13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13473 | elif test "x$target" = "x$host"; then |
13474 | # We can use an host tool | |
13475 | GCJ_FOR_TARGET='$(GCJ)' | |
cd9a469c | 13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13477 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13478 | else |
13479 | # We need a cross tool | |
cd9a469c | 13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13481 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13482 | fi |
13483 | fi | |
a83ffacf | 13484 | |
cd9a469c | 13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13486 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
f5aebe3e | 13487 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13488 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13489 | # We already found the complete path | |
a6c599b5 | 13490 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13492 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13493 | else |
13494 | # Canadian cross, just use what we found | |
cd9a469c | 13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13496 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13497 | fi |
f5aebe3e | 13498 | else |
13499 | ok=yes | |
13500 | case " ${configdirs} " in | |
13501 | *" gcc "*) ;; | |
13502 | *) ok=no ;; | |
13503 | esac | |
13504 | case ,${enable_languages}, in | |
13505 | *,fortran,*) ;; | |
13506 | *) ok=no ;; | |
13507 | esac | |
13508 | if test $ok = yes; then | |
13509 | # An in-tree tool is available and we can use it | |
13510 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
cd9a469c | 13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13512 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13513 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13514 | # We already found the complete path | |
a6c599b5 | 13515 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
cd9a469c | 13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13517 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13518 | elif test "x$target" = "x$host"; then |
13519 | # We can use an host tool | |
13520 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
cd9a469c | 13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13522 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13523 | else |
13524 | # We need a cross tool | |
cd9a469c | 13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13526 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13527 | fi |
13528 | fi | |
a83ffacf | 13529 | |
5ff5b630 | 13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13531 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13532 | if test "x${build}" != "x${host}" ; then | |
13533 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13534 | # We already found the complete path | |
13535 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13537 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13538 | else | |
13539 | # Canadian cross, just use what we found | |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13541 | $as_echo "pre-installed" >&6; } | |
13542 | fi | |
13543 | else | |
13544 | ok=yes | |
13545 | case " ${configdirs} " in | |
13546 | *" gcc "*) ;; | |
13547 | *) ok=no ;; | |
13548 | esac | |
13549 | case ,${enable_languages}, in | |
13550 | *,go,*) ;; | |
13551 | *) ok=no ;; | |
13552 | esac | |
13553 | if test $ok = yes; then | |
13554 | # An in-tree tool is available and we can use it | |
13555 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13557 | $as_echo "just compiled" >&6; } | |
13558 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13559 | # We already found the complete path | |
13560 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13562 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13563 | elif test "x$target" = "x$host"; then | |
13564 | # We can use an host tool | |
13565 | GOC_FOR_TARGET='$(GOC)' | |
13566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13567 | $as_echo "host tool" >&6; } | |
13568 | else | |
13569 | # We need a cross tool | |
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13571 | $as_echo "pre-installed" >&6; } | |
13572 | fi | |
13573 | fi | |
13574 | ||
cd9a469c | 13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13576 | $as_echo_n "checking where to find the target ld... " >&6; } | |
f5aebe3e | 13577 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13578 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13579 | # We already found the complete path | |
a6c599b5 | 13580 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13582 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13583 | else |
13584 | # Canadian cross, just use what we found | |
cd9a469c | 13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13586 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13587 | fi |
f5aebe3e | 13588 | else |
13589 | ok=yes | |
13590 | case " ${configdirs} " in | |
13591 | *" ld "*) ;; | |
13592 | *) ok=no ;; | |
13593 | esac | |
b30fcfae | 13594 | |
f5aebe3e | 13595 | if test $ok = yes; then |
13596 | # An in-tree tool is available and we can use it | |
13597 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
cd9a469c | 13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13599 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13600 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13601 | # We already found the complete path | |
a6c599b5 | 13602 | ac_dir=`dirname $LD_FOR_TARGET` |
cd9a469c | 13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13604 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13605 | elif test "x$target" = "x$host"; then |
13606 | # We can use an host tool | |
13607 | LD_FOR_TARGET='$(LD)' | |
cd9a469c | 13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13609 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13610 | else |
13611 | # We need a cross tool | |
cd9a469c | 13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13613 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13614 | fi |
13615 | fi | |
a83ffacf | 13616 | |
cd9a469c | 13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13618 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
f5aebe3e | 13619 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13620 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13621 | # We already found the complete path | |
a6c599b5 | 13622 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13624 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13625 | else |
13626 | # Canadian cross, just use what we found | |
cd9a469c | 13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13628 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13629 | fi |
f5aebe3e | 13630 | else |
c47832b1 | 13631 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13632 | # We already found the complete path | |
a6c599b5 | 13633 | ac_dir=`dirname $LIPO_FOR_TARGET` |
cd9a469c | 13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13635 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13636 | elif test "x$target" = "x$host"; then |
f5aebe3e | 13637 | # We can use an host tool |
13638 | LIPO_FOR_TARGET='$(LIPO)' | |
cd9a469c | 13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13640 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13641 | else |
13642 | # We need a cross tool | |
cd9a469c | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13644 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13645 | fi |
13646 | fi | |
a83ffacf | 13647 | |
cd9a469c | 13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13649 | $as_echo_n "checking where to find the target nm... " >&6; } | |
f5aebe3e | 13650 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13651 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13652 | # We already found the complete path | |
a6c599b5 | 13653 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13655 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13656 | else |
13657 | # Canadian cross, just use what we found | |
cd9a469c | 13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13659 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13660 | fi |
f5aebe3e | 13661 | else |
13662 | ok=yes | |
13663 | case " ${configdirs} " in | |
13664 | *" binutils "*) ;; | |
13665 | *) ok=no ;; | |
13666 | esac | |
b30fcfae | 13667 | |
f5aebe3e | 13668 | if test $ok = yes; then |
13669 | # An in-tree tool is available and we can use it | |
13670 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
cd9a469c | 13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13672 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13673 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13674 | # We already found the complete path | |
a6c599b5 | 13675 | ac_dir=`dirname $NM_FOR_TARGET` |
cd9a469c | 13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13677 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13678 | elif test "x$target" = "x$host"; then |
13679 | # We can use an host tool | |
13680 | NM_FOR_TARGET='$(NM)' | |
cd9a469c | 13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13682 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13683 | else |
13684 | # We need a cross tool | |
cd9a469c | 13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13686 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13687 | fi |
13688 | fi | |
a83ffacf | 13689 | |
cd9a469c | 13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13691 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
f5aebe3e | 13692 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13693 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13694 | # We already found the complete path | |
a6c599b5 | 13695 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13697 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13698 | else |
13699 | # Canadian cross, just use what we found | |
cd9a469c | 13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13701 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13702 | fi |
f5aebe3e | 13703 | else |
13704 | ok=yes | |
13705 | case " ${configdirs} " in | |
13706 | *" binutils "*) ;; | |
13707 | *) ok=no ;; | |
13708 | esac | |
b30fcfae | 13709 | |
f5aebe3e | 13710 | if test $ok = yes; then |
13711 | # An in-tree tool is available and we can use it | |
13712 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
cd9a469c | 13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13714 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13715 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13716 | # We already found the complete path | |
a6c599b5 | 13717 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
cd9a469c | 13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13719 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13720 | elif test "x$target" = "x$host"; then |
13721 | # We can use an host tool | |
13722 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
cd9a469c | 13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13724 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13725 | else |
13726 | # We need a cross tool | |
cd9a469c | 13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13728 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13729 | fi |
13730 | fi | |
a83ffacf | 13731 | |
cd9a469c | 13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13733 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
f5aebe3e | 13734 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13735 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13736 | # We already found the complete path | |
a6c599b5 | 13737 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13739 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13740 | else |
13741 | # Canadian cross, just use what we found | |
cd9a469c | 13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13743 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13744 | fi |
f5aebe3e | 13745 | else |
13746 | ok=yes | |
13747 | case " ${configdirs} " in | |
13748 | *" binutils "*) ;; | |
13749 | *) ok=no ;; | |
13750 | esac | |
b30fcfae | 13751 | |
f5aebe3e | 13752 | if test $ok = yes; then |
13753 | # An in-tree tool is available and we can use it | |
13754 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
cd9a469c | 13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13756 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13757 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13758 | # We already found the complete path | |
a6c599b5 | 13759 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
cd9a469c | 13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13761 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13762 | elif test "x$target" = "x$host"; then |
13763 | # We can use an host tool | |
13764 | RANLIB_FOR_TARGET='$(RANLIB)' | |
cd9a469c | 13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13766 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13767 | else |
13768 | # We need a cross tool | |
cd9a469c | 13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13770 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13771 | fi |
13772 | fi | |
a83ffacf | 13773 | |
cd9a469c | 13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13775 | $as_echo_n "checking where to find the target strip... " >&6; } | |
f5aebe3e | 13776 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13777 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13778 | # We already found the complete path | |
a6c599b5 | 13779 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13781 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13782 | else |
13783 | # Canadian cross, just use what we found | |
cd9a469c | 13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13785 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13786 | fi |
f5aebe3e | 13787 | else |
13788 | ok=yes | |
13789 | case " ${configdirs} " in | |
13790 | *" binutils "*) ;; | |
13791 | *) ok=no ;; | |
13792 | esac | |
b30fcfae | 13793 | |
f5aebe3e | 13794 | if test $ok = yes; then |
13795 | # An in-tree tool is available and we can use it | |
2b7a4d59 | 13796 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
cd9a469c | 13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13798 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13799 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13800 | # We already found the complete path | |
a6c599b5 | 13801 | ac_dir=`dirname $STRIP_FOR_TARGET` |
cd9a469c | 13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13803 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13804 | elif test "x$target" = "x$host"; then |
13805 | # We can use an host tool | |
13806 | STRIP_FOR_TARGET='$(STRIP)' | |
cd9a469c | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13808 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13809 | else |
13810 | # We need a cross tool | |
cd9a469c | 13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13812 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13813 | fi |
13814 | fi | |
a83ffacf | 13815 | |
cd9a469c | 13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13817 | $as_echo_n "checking where to find the target windres... " >&6; } | |
f5aebe3e | 13818 | if test "x${build}" != "x${host}" ; then |
c47832b1 | 13819 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13820 | # We already found the complete path | |
a6c599b5 | 13821 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13823 | $as_echo "pre-installed in $ac_dir" >&6; } | |
c47832b1 | 13824 | else |
13825 | # Canadian cross, just use what we found | |
cd9a469c | 13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13827 | $as_echo "pre-installed" >&6; } | |
c47832b1 | 13828 | fi |
f5aebe3e | 13829 | else |
13830 | ok=yes | |
13831 | case " ${configdirs} " in | |
13832 | *" binutils "*) ;; | |
13833 | *) ok=no ;; | |
13834 | esac | |
b30fcfae | 13835 | |
f5aebe3e | 13836 | if test $ok = yes; then |
13837 | # An in-tree tool is available and we can use it | |
13838 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
cd9a469c | 13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13840 | $as_echo "just compiled" >&6; } | |
c47832b1 | 13841 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13842 | # We already found the complete path | |
a6c599b5 | 13843 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
cd9a469c | 13844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13845 | $as_echo "pre-installed in $ac_dir" >&6; } | |
f5aebe3e | 13846 | elif test "x$target" = "x$host"; then |
13847 | # We can use an host tool | |
13848 | WINDRES_FOR_TARGET='$(WINDRES)' | |
cd9a469c | 13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13850 | $as_echo "host tool" >&6; } | |
f5aebe3e | 13851 | else |
13852 | # We need a cross tool | |
cd9a469c | 13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13854 | $as_echo "pre-installed" >&6; } | |
f5aebe3e | 13855 | fi |
71ab34df | 13856 | fi |
49aae208 | 13857 | |
cd9a469c | 13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
13859 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
75d6a0a9 | 13860 | if test "x${build}" != "x${host}" ; then |
13861 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
13862 | # We already found the complete path | |
13863 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13865 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 13866 | else |
13867 | # Canadian cross, just use what we found | |
cd9a469c | 13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13869 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 13870 | fi |
13871 | else | |
13872 | ok=yes | |
13873 | case " ${configdirs} " in | |
13874 | *" binutils "*) ;; | |
13875 | *) ok=no ;; | |
13876 | esac | |
13877 | ||
13878 | if test $ok = yes; then | |
13879 | # An in-tree tool is available and we can use it | |
13880 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
cd9a469c | 13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13882 | $as_echo "just compiled" >&6; } | |
75d6a0a9 | 13883 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
13884 | # We already found the complete path | |
13885 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
cd9a469c | 13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13887 | $as_echo "pre-installed in $ac_dir" >&6; } | |
75d6a0a9 | 13888 | elif test "x$target" = "x$host"; then |
13889 | # We can use an host tool | |
13890 | WINDMC_FOR_TARGET='$(WINDMC)' | |
cd9a469c | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13892 | $as_echo "host tool" >&6; } | |
75d6a0a9 | 13893 | else |
13894 | # We need a cross tool | |
cd9a469c | 13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13896 | $as_echo "pre-installed" >&6; } | |
75d6a0a9 | 13897 | fi |
13898 | fi | |
13899 | ||
49aae208 | 13900 | |
13901 | ||
f5aebe3e | 13902 | |
a83ffacf | 13903 | |
71ab34df | 13904 | # Certain tools may need extra flags. |
13905 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
13906 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
13907 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
13908 | ||
f5aebe3e | 13909 | # When building target libraries, except in a Canadian cross, we use |
13910 | # the same toolchain as the compiler we just built. | |
13911 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
13912 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
13913 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
13914 | if test $host = $build; then | |
13915 | case " $configdirs " in | |
13916 | *" gcc "*) | |
13917 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
13918 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
13919 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
13920 | ;; | |
13921 | esac | |
13922 | fi | |
13923 | ||
13924 | ||
13925 | ||
13926 | ||
13927 | ||
cd9a469c | 13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13929 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13930 | # Check whether --enable-maintainer-mode was given. | |
13931 | if test "${enable_maintainer_mode+set}" = set; then : | |
13932 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3290c0cf | 13933 | else |
13934 | USE_MAINTAINER_MODE=no | |
cd9a469c | 13935 | fi |
13936 | ||
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13938 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3290c0cf | 13939 | |
13940 | ||
13941 | if test "$USE_MAINTAINER_MODE" = yes; then | |
13942 | MAINTAINER_MODE_TRUE= | |
13943 | MAINTAINER_MODE_FALSE='#' | |
13944 | else | |
13945 | MAINTAINER_MODE_TRUE='#' | |
13946 | MAINTAINER_MODE_FALSE= | |
b30fcfae | 13947 | fi |
3290c0cf | 13948 | MAINT=$MAINTAINER_MODE_TRUE |
13949 | ||
2d64c2fd | 13950 | # --------------------- |
13951 | # GCC bootstrap support | |
13952 | # --------------------- | |
13953 | ||
13954 | # Stage specific cflags for build. | |
13955 | stage1_cflags="-g" | |
13956 | case $build in | |
13957 | vax-*-*) | |
13958 | case ${GCC} in | |
13959 | yes) stage1_cflags="-g -Wa,-J" ;; | |
13960 | *) stage1_cflags="-g -J" ;; | |
13961 | esac ;; | |
2d64c2fd | 13962 | esac |
13963 | ||
f508ba97 | 13964 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
7ab76cec | 13965 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
f508ba97 | 13966 | saved_CFLAGS="$CFLAGS" |
13967 | ||
13968 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
13969 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
cd9a469c | 13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
13971 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
13972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b30fcfae | 13973 | /* end confdefs.h. */ |
13974 | ||
505abe0c | 13975 | #if (__GNUC__ < 3) \ |
13976 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
13977 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
13978 | #error http://gcc.gnu.org/PR29382 | |
13979 | #endif | |
13980 | ||
b30fcfae | 13981 | int |
13982 | main () | |
13983 | { | |
13984 | ||
13985 | ; | |
13986 | return 0; | |
13987 | } | |
13988 | _ACEOF | |
cd9a469c | 13989 | if ac_fn_c_try_compile "$LINENO"; then : |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13991 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
b30fcfae | 13992 | else |
cd9a469c | 13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13994 | $as_echo "no" >&6; } | |
b30fcfae | 13995 | fi |
cd9a469c | 13996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f508ba97 | 13997 | |
13998 | CFLAGS="$saved_CFLAGS" | |
13999 | fi | |
14000 | ||
14001 | ||
2d64c2fd | 14002 | |
39f34cfc | 14003 | # Enable --enable-checking in stage1 of the compiler. |
cd9a469c | 14004 | # Check whether --enable-stage1-checking was given. |
14005 | if test "${enable_stage1_checking+set}" = set; then : | |
14006 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
39f34cfc | 14007 | else |
f6be6a96 | 14008 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
f03e0ae4 | 14009 | stage1_checking=--enable-checking=yes,types |
39f34cfc | 14010 | else |
f6be6a96 | 14011 | stage1_checking=--enable-checking=$enable_checking,types |
39f34cfc | 14012 | fi |
cd9a469c | 14013 | fi |
39f34cfc | 14014 | |
14015 | ||
5084f823 | 14016 | |
cd9a469c | 14017 | # Enable -Werror in bootstrap stage2 and later. |
14018 | # Check whether --enable-werror was given. | |
14019 | if test "${enable_werror+set}" = set; then : | |
14020 | enableval=$enable_werror; | |
2d64c2fd | 14021 | else |
dd979235 | 14022 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2d64c2fd | 14023 | enable_werror=yes |
dc914c6d | 14024 | else |
14025 | enable_werror=no | |
14026 | fi | |
cd9a469c | 14027 | fi |
14028 | ||
c0c5068d | 14029 | case ${enable_werror} in |
14030 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14031 | *) stage2_werror_flag="" ;; | |
2d64c2fd | 14032 | esac |
14033 | ||
14034 | ||
ef3c41c7 | 14035 | # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass |
14036 | # --enable-build-with-cxx after stage1. | |
14037 | if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
14038 | POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx | |
14039 | else | |
14040 | POSTSTAGE1_CONFIGURE_FLAGS= | |
14041 | fi | |
14042 | ||
14043 | ||
6fe86052 | 14044 | # Specify what files to not compare during bootstrap. |
14045 | ||
14046 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14047 | case "$target" in | |
14048 | hppa*64*-*-hpux*) ;; | |
14049 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14050 | esac | |
eea1ae23 | 14051 | case " $configdirs " in |
14052 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
14053 | esac | |
6fe86052 | 14054 | |
14055 | ||
cd9a469c | 14056 | ac_config_files="$ac_config_files Makefile" |
14057 | ||
b30fcfae | 14058 | cat >confcache <<\_ACEOF |
71ab34df | 14059 | # This file is a shell script that caches the results of configure |
14060 | # tests run on this system so they can be shared between configure | |
b30fcfae | 14061 | # scripts and configure runs, see configure's option --config-cache. |
14062 | # It is not useful on other systems. If it contains results you don't | |
14063 | # want to keep, you may remove or edit it. | |
71ab34df | 14064 | # |
b30fcfae | 14065 | # config.status only pays attention to the cache file if you give it |
14066 | # the --recheck option to rerun configure. | |
71ab34df | 14067 | # |
b30fcfae | 14068 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14069 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14070 | # following values. | |
14071 | ||
14072 | _ACEOF | |
14073 | ||
71ab34df | 14074 | # The following way of writing the cache mishandles newlines in values, |
14075 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 14076 | # So, we kill variables containing newlines. |
71ab34df | 14077 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14078 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 14079 | ( |
14080 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14081 | eval ac_val=\$$ac_var | |
14082 | case $ac_val in #( | |
14083 | *${as_nl}*) | |
14084 | case $ac_var in #( | |
14085 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14086 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14087 | esac | |
14088 | case $ac_var in #( | |
14089 | _ | IFS | as_nl) ;; #( | |
14090 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14091 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14092 | esac ;; | |
14093 | esac | |
14094 | done | |
14095 | ||
b30fcfae | 14096 | (set) 2>&1 | |
cd9a469c | 14097 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14098 | *${as_nl}ac_space=\ *) | |
14099 | # `set' does not quote correctly, so add quotes: double-quote | |
14100 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b30fcfae | 14101 | sed -n \ |
14102 | "s/'/'\\\\''/g; | |
14103 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 14104 | ;; #( |
b30fcfae | 14105 | *) |
14106 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 14107 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b30fcfae | 14108 | ;; |
cd9a469c | 14109 | esac | |
14110 | sort | |
14111 | ) | | |
b30fcfae | 14112 | sed ' |
cd9a469c | 14113 | /^ac_cv_env_/b end |
b30fcfae | 14114 | t clear |
cd9a469c | 14115 | :clear |
b30fcfae | 14116 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14117 | t end | |
cd9a469c | 14118 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14119 | :end' >>confcache | |
14120 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14121 | if test -w "$cache_file"; then | |
14122 | test "x$cache_file" != "x/dev/null" && | |
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14124 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b30fcfae | 14125 | cat confcache >$cache_file |
71ab34df | 14126 | else |
cd9a469c | 14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14128 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
71ab34df | 14129 | fi |
805e22b2 | 14130 | fi |
71ab34df | 14131 | rm -f confcache |
a8298541 | 14132 | |
71ab34df | 14133 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14134 | # Let make expand exec_prefix. | |
14135 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
92424a17 | 14136 | |
71ab34df | 14137 | # Transform confdefs.h into DEFS. |
14138 | # Protect against shell expansion while executing Makefile rules. | |
14139 | # Protect against Makefile macro expansion. | |
b30fcfae | 14140 | # |
14141 | # If the first sed substitution is executed (which looks for macros that | |
cd9a469c | 14142 | # take arguments), then branch to the quote section. Otherwise, |
b30fcfae | 14143 | # look for a macro that doesn't take arguments. |
cd9a469c | 14144 | ac_script=' |
14145 | :mline | |
14146 | /\\$/{ | |
14147 | N | |
14148 | s,\\\n,, | |
14149 | b mline | |
14150 | } | |
b30fcfae | 14151 | t clear |
cd9a469c | 14152 | :clear |
14153 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
b30fcfae | 14154 | t quote |
cd9a469c | 14155 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
b30fcfae | 14156 | t quote |
cd9a469c | 14157 | b any |
14158 | :quote | |
14159 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14160 | s/\[/\\&/g | |
14161 | s/\]/\\&/g | |
14162 | s/\$/$$/g | |
14163 | H | |
14164 | :any | |
14165 | ${ | |
14166 | g | |
14167 | s/^\n// | |
14168 | s/\n/ /g | |
14169 | p | |
14170 | } | |
14171 | ' | |
14172 | DEFS=`sed -n "$ac_script" confdefs.h` | |
b30fcfae | 14173 | |
14174 | ||
14175 | ac_libobjs= | |
14176 | ac_ltlibobjs= | |
14177 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14178 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 14179 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14180 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14181 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14182 | # will be set to the directory where LIBOBJS objects are built. | |
14183 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14184 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b30fcfae | 14185 | done |
14186 | LIBOBJS=$ac_libobjs | |
a4af6a58 | 14187 | |
b30fcfae | 14188 | LTLIBOBJS=$ac_ltlibobjs |
a83ffacf | 14189 | |
ae48753c | 14190 | |
b30fcfae | 14191 | |
14192 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 14193 | ac_write_fail=0 |
b30fcfae | 14194 | ac_clean_files_save=$ac_clean_files |
14195 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14197 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14198 | as_write_fail=0 | |
14199 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b30fcfae | 14200 | #! $SHELL |
14201 | # Generated by $as_me. | |
71ab34df | 14202 | # Run this file to recreate the current configuration. |
71ab34df | 14203 | # Compiler output produced by configure, useful for debugging |
b30fcfae | 14204 | # configure, is in config.log if it exists. |
a83ffacf | 14205 | |
b30fcfae | 14206 | debug=false |
14207 | ac_cs_recheck=false | |
14208 | ac_cs_silent=false | |
b30fcfae | 14209 | |
cd9a469c | 14210 | SHELL=\${CONFIG_SHELL-$SHELL} |
14211 | export SHELL | |
14212 | _ASEOF | |
14213 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14214 | ## -------------------- ## | |
14215 | ## M4sh Initialization. ## | |
14216 | ## -------------------- ## | |
14217 | ||
14218 | # Be more Bourne compatible | |
14219 | DUALCASE=1; export DUALCASE # for MKS sh | |
14220 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b30fcfae | 14221 | emulate sh |
14222 | NULLCMD=: | |
cd9a469c | 14223 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b30fcfae | 14224 | # is contrary to our usage. Disable this feature. |
14225 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 14226 | setopt NO_GLOB_SUBST |
14227 | else | |
14228 | case `(set -o) 2>/dev/null` in #( | |
14229 | *posix*) : | |
14230 | set -o posix ;; #( | |
14231 | *) : | |
14232 | ;; | |
14233 | esac | |
b30fcfae | 14234 | fi |
b30fcfae | 14235 | |
cd9a469c | 14236 | |
14237 | as_nl=' | |
14238 | ' | |
14239 | export as_nl | |
14240 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14241 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14242 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14243 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14244 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14245 | # but without wasting forks for bash or zsh. | |
14246 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14247 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14248 | as_echo='print -r --' | |
14249 | as_echo_n='print -rn --' | |
14250 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14251 | as_echo='printf %s\n' | |
14252 | as_echo_n='printf %s' | |
14253 | else | |
14254 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14255 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14256 | as_echo_n='/usr/ucb/echo -n' | |
14257 | else | |
14258 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14259 | as_echo_n_body='eval | |
14260 | arg=$1; | |
14261 | case $arg in #( | |
14262 | *"$as_nl"*) | |
14263 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14264 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14265 | esac; | |
14266 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14267 | ' | |
14268 | export as_echo_n_body | |
14269 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14270 | fi | |
14271 | export as_echo_body | |
14272 | as_echo='sh -c $as_echo_body as_echo' | |
b30fcfae | 14273 | fi |
14274 | ||
cd9a469c | 14275 | # The user is always right. |
14276 | if test "${PATH_SEPARATOR+set}" != set; then | |
14277 | PATH_SEPARATOR=: | |
14278 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14279 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14280 | PATH_SEPARATOR=';' | |
14281 | } | |
14282 | fi | |
14283 | ||
14284 | ||
14285 | # IFS | |
14286 | # We need space, tab and new line, in precisely that order. Quoting is | |
14287 | # there to prevent editors from complaining about space-tab. | |
14288 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14289 | # splitting by setting IFS to empty value.) | |
14290 | IFS=" "" $as_nl" | |
14291 | ||
14292 | # Find who we are. Look in the path if we contain no directory separator. | |
14293 | case $0 in #(( | |
14294 | *[\\/]* ) as_myself=$0 ;; | |
14295 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14296 | for as_dir in $PATH | |
14297 | do | |
14298 | IFS=$as_save_IFS | |
14299 | test -z "$as_dir" && as_dir=. | |
14300 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14301 | done | |
14302 | IFS=$as_save_IFS | |
14303 | ||
14304 | ;; | |
14305 | esac | |
14306 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14307 | # in which case we are not to be found in the path. | |
14308 | if test "x$as_myself" = x; then | |
14309 | as_myself=$0 | |
14310 | fi | |
14311 | if test ! -f "$as_myself"; then | |
14312 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14313 | exit 1 | |
14314 | fi | |
b30fcfae | 14315 | |
cd9a469c | 14316 | # Unset variables that we do not need and which cause bugs (e.g. in |
14317 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14318 | # suppresses any "Segmentation fault" message there. '((' could | |
14319 | # trigger a bug in pdksh 5.2.14. | |
14320 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14321 | do eval test x\${$as_var+set} = xset \ | |
14322 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14323 | done | |
b30fcfae | 14324 | PS1='$ ' |
14325 | PS2='> ' | |
14326 | PS4='+ ' | |
14327 | ||
14328 | # NLS nuisances. | |
cd9a469c | 14329 | LC_ALL=C |
14330 | export LC_ALL | |
14331 | LANGUAGE=C | |
14332 | export LANGUAGE | |
14333 | ||
14334 | # CDPATH. | |
14335 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14336 | ||
14337 | ||
14338 | # as_fn_error ERROR [LINENO LOG_FD] | |
14339 | # --------------------------------- | |
14340 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14341 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14342 | # script with status $?, using 1 if that was 0. | |
14343 | as_fn_error () | |
14344 | { | |
14345 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14346 | if test "$3"; then | |
14347 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14348 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b30fcfae | 14349 | fi |
cd9a469c | 14350 | $as_echo "$as_me: error: $1" >&2 |
14351 | as_fn_exit $as_status | |
14352 | } # as_fn_error | |
14353 | ||
14354 | ||
14355 | # as_fn_set_status STATUS | |
14356 | # ----------------------- | |
14357 | # Set $? to STATUS, without forking. | |
14358 | as_fn_set_status () | |
14359 | { | |
14360 | return $1 | |
14361 | } # as_fn_set_status | |
14362 | ||
14363 | # as_fn_exit STATUS | |
14364 | # ----------------- | |
14365 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14366 | as_fn_exit () | |
14367 | { | |
14368 | set +e | |
14369 | as_fn_set_status $1 | |
14370 | exit $1 | |
14371 | } # as_fn_exit | |
14372 | ||
14373 | # as_fn_unset VAR | |
14374 | # --------------- | |
14375 | # Portably unset VAR. | |
14376 | as_fn_unset () | |
14377 | { | |
14378 | { eval $1=; unset $1;} | |
14379 | } | |
14380 | as_unset=as_fn_unset | |
14381 | # as_fn_append VAR VALUE | |
14382 | # ---------------------- | |
14383 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14384 | # advantage of any shell optimizations that allow amortized linear growth over | |
14385 | # repeated appends, instead of the typical quadratic growth present in naive | |
14386 | # implementations. | |
14387 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14388 | eval 'as_fn_append () | |
14389 | { | |
14390 | eval $1+=\$2 | |
14391 | }' | |
14392 | else | |
14393 | as_fn_append () | |
14394 | { | |
14395 | eval $1=\$$1\$2 | |
14396 | } | |
14397 | fi # as_fn_append | |
14398 | ||
14399 | # as_fn_arith ARG... | |
14400 | # ------------------ | |
14401 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14402 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14403 | # must be portable across $(()) and expr. | |
14404 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14405 | eval 'as_fn_arith () | |
14406 | { | |
14407 | as_val=$(( $* )) | |
14408 | }' | |
14409 | else | |
14410 | as_fn_arith () | |
14411 | { | |
14412 | as_val=`expr "$@" || test $? -eq 1` | |
14413 | } | |
14414 | fi # as_fn_arith | |
14415 | ||
b30fcfae | 14416 | |
cd9a469c | 14417 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14418 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b30fcfae | 14419 | as_expr=expr |
14420 | else | |
14421 | as_expr=false | |
14422 | fi | |
14423 | ||
cd9a469c | 14424 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b30fcfae | 14425 | as_basename=basename |
14426 | else | |
14427 | as_basename=false | |
14428 | fi | |
14429 | ||
cd9a469c | 14430 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14431 | as_dirname=dirname | |
14432 | else | |
14433 | as_dirname=false | |
14434 | fi | |
b30fcfae | 14435 | |
cd9a469c | 14436 | as_me=`$as_basename -- "$0" || |
b30fcfae | 14437 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14438 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 14439 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14440 | $as_echo X/"$0" | | |
14441 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14442 | s//\1/ | |
14443 | q | |
14444 | } | |
14445 | /^X\/\(\/\/\)$/{ | |
14446 | s//\1/ | |
14447 | q | |
14448 | } | |
14449 | /^X\/\(\/\).*/{ | |
14450 | s//\1/ | |
14451 | q | |
14452 | } | |
14453 | s/.*/./; q'` | |
5084f823 | 14454 | |
5084f823 | 14455 | # Avoid depending upon Character Ranges. |
14456 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14457 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14458 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14459 | as_cr_digits='0123456789' | |
14460 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14461 | ||
cd9a469c | 14462 | ECHO_C= ECHO_N= ECHO_T= |
14463 | case `echo -n x` in #((((( | |
14464 | -n*) | |
14465 | case `echo 'xy\c'` in | |
14466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14467 | xy) ECHO_C='\c';; | |
14468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14469 | ECHO_T=' ';; | |
14470 | esac;; | |
14471 | *) | |
14472 | ECHO_N='-n';; | |
b30fcfae | 14473 | esac |
14474 | ||
cd9a469c | 14475 | rm -f conf$$ conf$$.exe conf$$.file |
14476 | if test -d conf$$.dir; then | |
14477 | rm -f conf$$.dir/conf$$.file | |
b30fcfae | 14478 | else |
cd9a469c | 14479 | rm -f conf$$.dir |
14480 | mkdir conf$$.dir 2>/dev/null | |
b30fcfae | 14481 | fi |
cd9a469c | 14482 | if (echo >conf$$.file) 2>/dev/null; then |
14483 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5084f823 | 14484 | as_ln_s='ln -s' |
cd9a469c | 14485 | # ... but there are two gotchas: |
14486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14488 | # In both cases, we have to default to `cp -p'. | |
14489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14490 | as_ln_s='cp -p' | |
14491 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14492 | as_ln_s=ln | |
14493 | else | |
14494 | as_ln_s='cp -p' | |
5084f823 | 14495 | fi |
b30fcfae | 14496 | else |
14497 | as_ln_s='cp -p' | |
14498 | fi | |
cd9a469c | 14499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14500 | rmdir conf$$.dir 2>/dev/null | |
14501 | ||
14502 | ||
14503 | # as_fn_mkdir_p | |
14504 | # ------------- | |
14505 | # Create "$as_dir" as a directory, including parents if necessary. | |
14506 | as_fn_mkdir_p () | |
14507 | { | |
14508 | ||
14509 | case $as_dir in #( | |
14510 | -*) as_dir=./$as_dir;; | |
14511 | esac | |
14512 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14513 | as_dirs= | |
14514 | while :; do | |
14515 | case $as_dir in #( | |
14516 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14517 | *) as_qdir=$as_dir;; | |
14518 | esac | |
14519 | as_dirs="'$as_qdir' $as_dirs" | |
14520 | as_dir=`$as_dirname -- "$as_dir" || | |
14521 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14522 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14523 | X"$as_dir" : 'X\(//\)$' \| \ | |
14524 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14525 | $as_echo X"$as_dir" | | |
14526 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14527 | s//\1/ | |
14528 | q | |
14529 | } | |
14530 | /^X\(\/\/\)[^/].*/{ | |
14531 | s//\1/ | |
14532 | q | |
14533 | } | |
14534 | /^X\(\/\/\)$/{ | |
14535 | s//\1/ | |
14536 | q | |
14537 | } | |
14538 | /^X\(\/\).*/{ | |
14539 | s//\1/ | |
14540 | q | |
14541 | } | |
14542 | s/.*/./; q'` | |
14543 | test -d "$as_dir" && break | |
14544 | done | |
14545 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14546 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14547 | ||
b30fcfae | 14548 | |
cd9a469c | 14549 | } # as_fn_mkdir_p |
b30fcfae | 14550 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 14551 | as_mkdir_p='mkdir -p "$as_dir"' |
b30fcfae | 14552 | else |
14553 | test -d ./-p && rmdir ./-p | |
14554 | as_mkdir_p=false | |
14555 | fi | |
14556 | ||
cd9a469c | 14557 | if test -x / >/dev/null 2>&1; then |
14558 | as_test_x='test -x' | |
14559 | else | |
14560 | if ls -dL / >/dev/null 2>&1; then | |
14561 | as_ls_L_option=L | |
14562 | else | |
14563 | as_ls_L_option= | |
14564 | fi | |
14565 | as_test_x=' | |
14566 | eval sh -c '\'' | |
14567 | if test -d "$1"; then | |
14568 | test -d "$1/."; | |
14569 | else | |
14570 | case $1 in #( | |
14571 | -*)set "./$1";; | |
14572 | esac; | |
14573 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14574 | ???[sx]*):;;*)false;;esac;fi | |
14575 | '\'' sh | |
14576 | ' | |
14577 | fi | |
14578 | as_executable_p=$as_test_x | |
b30fcfae | 14579 | |
14580 | # Sed expression to map a string onto a valid CPP name. | |
14581 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14582 | ||
14583 | # Sed expression to map a string onto a valid variable name. | |
14584 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14585 | ||
14586 | ||
b30fcfae | 14587 | exec 6>&1 |
cd9a469c | 14588 | ## ----------------------------------- ## |
14589 | ## Main body of $CONFIG_STATUS script. ## | |
14590 | ## ----------------------------------- ## | |
14591 | _ASEOF | |
14592 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14593 | ||
14594 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14595 | # Save the log message, to keep $0 and so on meaningful, and to | |
b30fcfae | 14596 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 14597 | # values after options handling. |
14598 | ac_log=" | |
b30fcfae | 14599 | This file was extended by $as_me, which was |
cd9a469c | 14600 | generated by GNU Autoconf 2.64. Invocation command line was |
b30fcfae | 14601 | |
14602 | CONFIG_FILES = $CONFIG_FILES | |
14603 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14604 | CONFIG_LINKS = $CONFIG_LINKS | |
14605 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14606 | $ $0 $@ | |
14607 | ||
cd9a469c | 14608 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14609 | " | |
14610 | ||
b30fcfae | 14611 | _ACEOF |
14612 | ||
cd9a469c | 14613 | case $ac_config_files in *" |
14614 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14615 | esac | |
b30fcfae | 14616 | |
5084f823 | 14617 | |
5084f823 | 14618 | |
cd9a469c | 14619 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14620 | # Files that config.status was made for. | |
14621 | config_files="$ac_config_files" | |
b30fcfae | 14622 | |
cd9a469c | 14623 | _ACEOF |
5084f823 | 14624 | |
cd9a469c | 14625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 14626 | ac_cs_usage="\ |
cd9a469c | 14627 | \`$as_me' instantiates files and other configuration actions |
14628 | from templates according to the current configuration. Unless the files | |
14629 | and actions are specified as TAGs, all are instantiated by default. | |
b30fcfae | 14630 | |
cd9a469c | 14631 | Usage: $0 [OPTION]... [TAG]... |
b30fcfae | 14632 | |
14633 | -h, --help print this help, then exit | |
cd9a469c | 14634 | -V, --version print version number and configuration settings, then exit |
14635 | -q, --quiet, --silent | |
14636 | do not print progress messages | |
b30fcfae | 14637 | -d, --debug don't remove temporary files |
14638 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 14639 | --file=FILE[:TEMPLATE] |
14640 | instantiate the configuration file FILE | |
b30fcfae | 14641 | |
14642 | Configuration files: | |
14643 | $config_files | |
14644 | ||
cd9a469c | 14645 | Report bugs to the package provider." |
5084f823 | 14646 | |
cd9a469c | 14647 | _ACEOF |
14648 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b30fcfae | 14649 | ac_cs_version="\\ |
14650 | config.status | |
cd9a469c | 14651 | configured by $0, generated by GNU Autoconf 2.64, |
14652 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b30fcfae | 14653 | |
cd9a469c | 14654 | Copyright (C) 2009 Free Software Foundation, Inc. |
b30fcfae | 14655 | This config.status script is free software; the Free Software Foundation |
14656 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 14657 | |
14658 | ac_pwd='$ac_pwd' | |
14659 | srcdir='$srcdir' | |
14660 | INSTALL='$INSTALL' | |
b181f265 | 14661 | AWK='$AWK' |
cd9a469c | 14662 | test -n "\$AWK" || AWK=awk |
b30fcfae | 14663 | _ACEOF |
14664 | ||
cd9a469c | 14665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14666 | # The default lists apply if the user does not specify any file. | |
b30fcfae | 14667 | ac_need_defaults=: |
14668 | while test $# != 0 | |
b1660f25 | 14669 | do |
b30fcfae | 14670 | case $1 in |
14671 | --*=*) | |
cd9a469c | 14672 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14673 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b30fcfae | 14674 | ac_shift=: |
14675 | ;; | |
cd9a469c | 14676 | *) |
b30fcfae | 14677 | ac_option=$1 |
14678 | ac_optarg=$2 | |
14679 | ac_shift=shift | |
14680 | ;; | |
b30fcfae | 14681 | esac |
14682 | ||
14683 | case $ac_option in | |
14684 | # Handling of the options. | |
71ab34df | 14685 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b30fcfae | 14686 | ac_cs_recheck=: ;; |
cd9a469c | 14687 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14688 | $as_echo "$ac_cs_version"; exit ;; | |
14689 | --debug | --debu | --deb | --de | --d | -d ) | |
b30fcfae | 14690 | debug=: ;; |
14691 | --file | --fil | --fi | --f ) | |
14692 | $ac_shift | |
cd9a469c | 14693 | case $ac_optarg in |
14694 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14695 | esac | |
14696 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5084f823 | 14697 | ac_need_defaults=false;; |
cd9a469c | 14698 | --he | --h | --help | --hel | -h ) |
14699 | $as_echo "$ac_cs_usage"; exit ;; | |
b30fcfae | 14700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14701 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14702 | ac_cs_silent=: ;; | |
14703 | ||
14704 | # This is an error. | |
cd9a469c | 14705 | -*) as_fn_error "unrecognized option: \`$1' |
14706 | Try \`$0 --help' for more information." ;; | |
b30fcfae | 14707 | |
cd9a469c | 14708 | *) as_fn_append ac_config_targets " $1" |
14709 | ac_need_defaults=false ;; | |
b30fcfae | 14710 | |
a83ffacf | 14711 | esac |
b30fcfae | 14712 | shift |
a83ffacf | 14713 | done |
14714 | ||
b30fcfae | 14715 | ac_configure_extra_args= |
a83ffacf | 14716 | |
b30fcfae | 14717 | if $ac_cs_silent; then |
14718 | exec 6>/dev/null | |
14719 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14720 | fi | |
a83ffacf | 14721 | |
b30fcfae | 14722 | _ACEOF |
cd9a469c | 14723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b30fcfae | 14724 | if \$ac_cs_recheck; then |
cd9a469c | 14725 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14726 | shift | |
14727 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14728 | CONFIG_SHELL='$SHELL' | |
14729 | export CONFIG_SHELL | |
14730 | exec "\$@" | |
b30fcfae | 14731 | fi |
14732 | ||
14733 | _ACEOF | |
cd9a469c | 14734 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14735 | exec 5>>config.log | |
14736 | { | |
14737 | echo | |
14738 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14739 | ## Running $as_me. ## | |
14740 | _ASBOX | |
14741 | $as_echo "$ac_log" | |
14742 | } >&5 | |
b30fcfae | 14743 | |
cd9a469c | 14744 | _ACEOF |
14745 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8bb79148 | 14746 | # |
14747 | # INIT-COMMANDS | |
14748 | # | |
14749 | extrasub_build="$extrasub_build" | |
14750 | extrasub_host="$extrasub_host" | |
14751 | extrasub_target="$extrasub_target" | |
14752 | ||
cd9a469c | 14753 | _ACEOF |
b30fcfae | 14754 | |
cd9a469c | 14755 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
570af75a | 14756 | |
cd9a469c | 14757 | # Handling of arguments. |
b30fcfae | 14758 | for ac_config_target in $ac_config_targets |
14759 | do | |
cd9a469c | 14760 | case $ac_config_target in |
14761 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14762 | ||
14763 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
b30fcfae | 14764 | esac |
14765 | done | |
14766 | ||
cd9a469c | 14767 | |
b30fcfae | 14768 | # If the user did not use the arguments to specify the items to instantiate, |
14769 | # then the envvar interface is used. Set only those that are not. | |
14770 | # We use the long form for the default assignment because of an extremely | |
14771 | # bizarre bug on SunOS 4.1.3. | |
14772 | if $ac_need_defaults; then | |
14773 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14774 | fi | |
14775 | ||
14776 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 14777 | # simply because there is no reason against having it here, and in addition, |
b30fcfae | 14778 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 14779 | # Hook for its removal unless debugging. |
14780 | # Note that there is a small window in which the directory will not be cleaned: | |
14781 | # after its creation but before its name has been assigned to `$tmp'. | |
b30fcfae | 14782 | $debug || |
14783 | { | |
cd9a469c | 14784 | tmp= |
14785 | trap 'exit_status=$? | |
14786 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14787 | ' 0 | |
14788 | trap 'as_fn_exit 1' 1 2 13 15 | |
b30fcfae | 14789 | } |
b30fcfae | 14790 | # Create a (secure) tmp directory for tmp files. |
14791 | ||
14792 | { | |
cd9a469c | 14793 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b30fcfae | 14794 | test -n "$tmp" && test -d "$tmp" |
14795 | } || | |
14796 | { | |
cd9a469c | 14797 | tmp=./conf$$-$RANDOM |
14798 | (umask 077 && mkdir "$tmp") | |
14799 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14800 | ||
14801 | # Set up the scripts for CONFIG_FILES section. | |
14802 | # No need to generate them if there are no CONFIG_FILES. | |
14803 | # This happens for instance with `./config.status config.h'. | |
14804 | if test -n "$CONFIG_FILES"; then | |
14805 | ||
14806 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14807 | ac_cs_awk_getline=: | |
14808 | ac_cs_awk_pipe_init= | |
14809 | ac_cs_awk_read_file=' | |
14810 | while ((getline aline < (F[key])) > 0) | |
14811 | print(aline) | |
14812 | close(F[key])' | |
14813 | ac_cs_awk_pipe_fini= | |
14814 | else | |
14815 | ac_cs_awk_getline=false | |
14816 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14817 | ac_cs_awk_read_file=' | |
14818 | print "|#_!!_#|" | |
14819 | print "cat " F[key] " &&" | |
14820 | '$ac_cs_awk_pipe_init | |
14821 | # The final `:' finishes the AND list. | |
14822 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14823 | fi | |
14824 | ac_cr=`echo X | tr X '\015'` | |
14825 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14826 | # But we know of no other shell where ac_cr would be empty at this | |
14827 | # point, so we can use a bashism as a fallback. | |
14828 | if test "x$ac_cr" = x; then | |
14829 | eval ac_cr=\$\'\\r\' | |
14830 | fi | |
14831 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14832 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14833 | ac_cs_awk_cr='\r' | |
14834 | else | |
14835 | ac_cs_awk_cr=$ac_cr | |
14836 | fi | |
14837 | ||
14838 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14839 | _ACEOF | |
14840 | ||
14841 | # Create commands to substitute file output variables. | |
b30fcfae | 14842 | { |
cd9a469c | 14843 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14844 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14845 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14846 | echo "_ACAWK" && | |
14847 | echo "_ACEOF" | |
14848 | } >conf$$files.sh && | |
14849 | . ./conf$$files.sh || | |
14850 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14851 | rm -f conf$$files.sh | |
b30fcfae | 14852 | |
cd9a469c | 14853 | { |
14854 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14855 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14856 | echo "_ACEOF" | |
14857 | } >conf$$subs.sh || | |
14858 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14859 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14860 | ac_delim='%!_!# ' | |
14861 | for ac_last_try in false false false false false :; do | |
14862 | . ./conf$$subs.sh || | |
14863 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14864 | ||
14865 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14866 | if test $ac_delim_n = $ac_delim_num; then | |
14867 | break | |
14868 | elif $ac_last_try; then | |
14869 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14870 | else | |
14871 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14872 | fi | |
14873 | done | |
14874 | rm -f conf$$subs.sh | |
14875 | ||
14876 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14877 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5084f823 | 14878 | _ACEOF |
cd9a469c | 14879 | sed -n ' |
14880 | h | |
14881 | s/^/S["/; s/!.*/"]=/ | |
14882 | p | |
14883 | g | |
14884 | s/^[^!]*!// | |
14885 | :repl | |
14886 | t repl | |
14887 | s/'"$ac_delim"'$// | |
14888 | t delim | |
14889 | :nl | |
14890 | h | |
14891 | s/\(.\{148\}\).*/\1/ | |
14892 | t more1 | |
14893 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14894 | p | |
14895 | n | |
14896 | b repl | |
14897 | :more1 | |
14898 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14899 | p | |
14900 | g | |
14901 | s/.\{148\}// | |
14902 | t nl | |
14903 | :delim | |
14904 | h | |
14905 | s/\(.\{148\}\).*/\1/ | |
14906 | t more2 | |
14907 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14908 | p | |
14909 | b | |
14910 | :more2 | |
14911 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14912 | p | |
14913 | g | |
14914 | s/.\{148\}// | |
14915 | t delim | |
14916 | ' <conf$$subs.awk | sed ' | |
14917 | /^[^""]/{ | |
14918 | N | |
14919 | s/\n// | |
14920 | } | |
14921 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14922 | rm -f conf$$subs.awk | |
14923 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14924 | _ACAWK | |
14925 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14926 | for (key in S) S_is_set[key] = 1 | |
14927 | FS = "\a" | |
14928 | \$ac_cs_awk_pipe_init | |
14929 | } | |
14930 | { | |
14931 | line = $ 0 | |
14932 | nfields = split(line, field, "@") | |
14933 | substed = 0 | |
14934 | len = length(field[1]) | |
14935 | for (i = 2; i < nfields; i++) { | |
14936 | key = field[i] | |
14937 | keylen = length(key) | |
14938 | if (S_is_set[key]) { | |
14939 | value = S[key] | |
14940 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14941 | len += length(value) + length(field[++i]) | |
14942 | substed = 1 | |
14943 | } else | |
14944 | len += 1 + keylen | |
14945 | } | |
14946 | if (nfields == 3 && !substed) { | |
14947 | key = field[2] | |
14948 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14949 | \$ac_cs_awk_read_file | |
14950 | next | |
14951 | } | |
14952 | } | |
14953 | print line | |
14954 | } | |
14955 | \$ac_cs_awk_pipe_fini | |
14956 | _ACAWK | |
14957 | _ACEOF | |
14958 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14959 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14960 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14961 | else | |
14962 | cat | |
14963 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14964 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
14965 | _ACEOF | |
14966 | ||
14967 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14968 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14969 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14970 | # (actually we leave an empty line to preserve line numbers). | |
14971 | if test "x$srcdir" = x.; then | |
14972 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14973 | s/:*\$(srcdir):*/:/ | |
14974 | s/:*\${srcdir}:*/:/ | |
14975 | s/:*@srcdir@:*/:/ | |
14976 | s/^\([^=]*=[ ]*\):*/\1/ | |
14977 | s/:*$// | |
14978 | s/^[^=]*=[ ]*$// | |
14979 | }' | |
14980 | fi | |
5084f823 | 14981 | |
cd9a469c | 14982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14983 | fi # test -n "$CONFIG_FILES" | |
5084f823 | 14984 | |
b30fcfae | 14985 | |
cd9a469c | 14986 | eval set X " :F $CONFIG_FILES " |
14987 | shift | |
14988 | for ac_tag | |
14989 | do | |
14990 | case $ac_tag in | |
14991 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14992 | esac | |
14993 | case $ac_mode$ac_tag in | |
14994 | :[FHL]*:*);; | |
14995 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14996 | :[FH]-) ac_tag=-:-;; | |
14997 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14998 | esac | |
14999 | ac_save_IFS=$IFS | |
15000 | IFS=: | |
15001 | set x $ac_tag | |
15002 | IFS=$ac_save_IFS | |
15003 | shift | |
15004 | ac_file=$1 | |
15005 | shift | |
a8298541 | 15006 | |
cd9a469c | 15007 | case $ac_mode in |
15008 | :L) ac_source=$1;; | |
15009 | :[FH]) | |
15010 | ac_file_inputs= | |
15011 | for ac_f | |
15012 | do | |
15013 | case $ac_f in | |
15014 | -) ac_f="$tmp/stdin";; | |
15015 | *) # Look for the file first in the build tree, then in the source tree | |
15016 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15017 | # because $ac_f cannot contain `:'. | |
15018 | test -f "$ac_f" || | |
15019 | case $ac_f in | |
15020 | [\\/$]*) false;; | |
15021 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15022 | esac || | |
15023 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15024 | esac | |
15025 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15026 | as_fn_append ac_file_inputs " '$ac_f'" | |
15027 | done | |
b30fcfae | 15028 | |
cd9a469c | 15029 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15030 | # use $as_me), people would be surprised to read: | |
15031 | # /* config.h. Generated by config.status. */ | |
15032 | configure_input='Generated from '` | |
15033 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15034 | `' by configure.' | |
15035 | if test x"$ac_file" != x-; then | |
15036 | configure_input="$ac_file. $configure_input" | |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15038 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5084f823 | 15039 | fi |
cd9a469c | 15040 | # Neutralize special characters interpreted by sed in replacement strings. |
15041 | case $configure_input in #( | |
15042 | *\&* | *\|* | *\\* ) | |
15043 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15044 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15045 | *) ac_sed_conf_input=$configure_input;; | |
15046 | esac | |
570af75a | 15047 | |
cd9a469c | 15048 | case $ac_tag in |
15049 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15050 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15051 | esac | |
15052 | ;; | |
570af75a | 15053 | esac |
15054 | ||
cd9a469c | 15055 | ac_dir=`$as_dirname -- "$ac_file" || |
b30fcfae | 15056 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15057 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15058 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 15059 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15060 | $as_echo X"$ac_file" | | |
15061 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15062 | s//\1/ | |
15063 | q | |
15064 | } | |
15065 | /^X\(\/\/\)[^/].*/{ | |
15066 | s//\1/ | |
15067 | q | |
15068 | } | |
15069 | /^X\(\/\/\)$/{ | |
15070 | s//\1/ | |
15071 | q | |
15072 | } | |
15073 | /^X\(\/\).*/{ | |
15074 | s//\1/ | |
15075 | q | |
15076 | } | |
15077 | s/.*/./; q'` | |
15078 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b30fcfae | 15079 | ac_builddir=. |
a83ffacf | 15080 | |
cd9a469c | 15081 | case "$ac_dir" in |
15082 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15083 | *) | |
15084 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15085 | # A ".." for each directory in $ac_dir_suffix. | |
15086 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15087 | case $ac_top_builddir_sub in | |
15088 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15089 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15090 | esac ;; | |
15091 | esac | |
15092 | ac_abs_top_builddir=$ac_pwd | |
15093 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15094 | # for backward compatibility: | |
15095 | ac_top_builddir=$ac_top_build_prefix | |
b30fcfae | 15096 | |
15097 | case $srcdir in | |
cd9a469c | 15098 | .) # We are building in place. |
b30fcfae | 15099 | ac_srcdir=. |
cd9a469c | 15100 | ac_top_srcdir=$ac_top_builddir_sub |
15101 | ac_abs_top_srcdir=$ac_pwd ;; | |
15102 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b30fcfae | 15103 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 15104 | ac_top_srcdir=$srcdir |
15105 | ac_abs_top_srcdir=$srcdir ;; | |
15106 | *) # Relative name. | |
15107 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15108 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15109 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b30fcfae | 15110 | esac |
cd9a469c | 15111 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b1660f25 | 15112 | |
a83ffacf | 15113 | |
cd9a469c | 15114 | case $ac_mode in |
15115 | :F) | |
15116 | # | |
15117 | # CONFIG_FILE | |
15118 | # | |
b30fcfae | 15119 | |
15120 | case $INSTALL in | |
15121 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 15122 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
71ab34df | 15123 | esac |
cd9a469c | 15124 | _ACEOF |
570af75a | 15125 | |
cd9a469c | 15126 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15127 | # If the template does not know about datarootdir, expand it. | |
15128 | # FIXME: This hack should be removed a few years after 2.60. | |
15129 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15130 | ac_sed_dataroot=' | |
15131 | /datarootdir/ { | |
15132 | p | |
15133 | q | |
15134 | } | |
15135 | /@datadir@/p | |
15136 | /@docdir@/p | |
15137 | /@infodir@/p | |
15138 | /@localedir@/p | |
15139 | /@mandir@/p' | |
15140 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15141 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15142 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15144 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
570af75a | 15145 | _ACEOF |
cd9a469c | 15146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15147 | ac_datarootdir_hack=' | |
15148 | s&@datadir@&$datadir&g | |
15149 | s&@docdir@&$docdir&g | |
15150 | s&@infodir@&$infodir&g | |
15151 | s&@localedir@&$localedir&g | |
15152 | s&@mandir@&$mandir&g | |
15153 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15154 | esac | |
15155 | _ACEOF | |
15156 | ||
15157 | # Neutralize VPATH when `$srcdir' = `.'. | |
15158 | # Shell code in configure.ac might set extrasub. | |
15159 | # FIXME: do we really want to maintain this feature? | |
15160 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15161 | ac_sed_extra="$ac_vpsub | |
b30fcfae | 15162 | $extrasub |
15163 | _ACEOF | |
cd9a469c | 15164 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b30fcfae | 15165 | :t |
15166 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 15167 | s|@configure_input@|$ac_sed_conf_input|;t t |
15168 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15169 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15170 | s&@srcdir@&$ac_srcdir&;t t | |
15171 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15172 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15173 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15174 | s&@builddir@&$ac_builddir&;t t | |
15175 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15176 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15177 | s&@INSTALL@&$ac_INSTALL&;t t | |
15178 | $ac_datarootdir_hack | |
15179 | " | |
15180 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15181 | if $ac_cs_awk_getline; then | |
15182 | $AWK -f "$tmp/subs.awk" | |
15183 | else | |
15184 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15185 | fi >$tmp/out \ | |
15186 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15187 | ||
15188 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15189 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15190 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15192 | which seems to be undefined. Please make sure it is defined." >&5 | |
15193 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15194 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15195 | ||
15196 | rm -f "$tmp/stdin" | |
15197 | case $ac_file in | |
15198 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15199 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15200 | esac \ | |
15201 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15202 | ;; | |
570af75a | 15203 | |
570af75a | 15204 | |
a8298541 | 15205 | |
cd9a469c | 15206 | esac |
15207 | ||
8bb79148 | 15208 | |
15209 | case $ac_file$ac_mode in | |
15210 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15211 | sed "$extrasub_host" | | |
15212 | sed "$extrasub_target" > mf$$ | |
15213 | mv -f mf$$ Makefile ;; | |
15214 | ||
15215 | esac | |
cd9a469c | 15216 | done # for ac_tag |
15217 | ||
15218 | ||
15219 | as_fn_exit 0 | |
b30fcfae | 15220 | _ACEOF |
b30fcfae | 15221 | ac_clean_files=$ac_clean_files_save |
15222 | ||
cd9a469c | 15223 | test $ac_write_fail = 0 || |
15224 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15225 | ||
b30fcfae | 15226 | |
15227 | # configure is writing to config.log, and then calls config.status. | |
15228 | # config.status does its own redirection, appending to config.log. | |
15229 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15230 | # by configure, so config.status won't be able to write to it; its | |
15231 | # output is simply discarded. So we exec the FD to /dev/null, | |
15232 | # effectively closing config.log, so it can be properly (re)opened and | |
15233 | # appended to by config.status. When coming back to configure, we | |
15234 | # need to make the FD available again. | |
15235 | if test "$no_create" != yes; then | |
15236 | ac_cs_success=: | |
15237 | ac_config_status_args= | |
15238 | test "$silent" = yes && | |
15239 | ac_config_status_args="$ac_config_status_args --quiet" | |
15240 | exec 5>/dev/null | |
15241 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15242 | exec 5>>config.log | |
15243 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15244 | # would make configure fail if this is the last instruction. | |
cd9a469c | 15245 | $ac_cs_success || as_fn_exit $? |
15246 | fi | |
15247 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15249 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b30fcfae | 15250 | fi |
a8298541 | 15251 |