]>
Commit | Line | Data |
---|---|---|
fa958513 DJ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0. |
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. | |
fa958513 | 8 | # |
fa958513 DJ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
fa958513 | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
fa958513 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fa958513 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
fa958513 | 31 | fi |
fa958513 | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
fa958513 | 50 | else |
5213506e RW |
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 | } | |
fa958513 DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
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 | |
fa958513 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
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'\" && | |
569dc494 RO |
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" | |
5213506e RW |
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 | |
fa958513 | 184 | do |
5213506e RW |
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." | |
fa958513 | 228 | else |
5213506e RW |
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." | |
fa958513 | 233 | fi |
5213506e RW |
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 | |
263 | ||
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 | |
fa958513 | 372 | |
5213506e RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fa958513 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
5213506e | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fa958513 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
5213506e RW |
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 | |
fa958513 | 391 | |
5213506e | 392 | as_me=`$as_basename -- "$0" || |
fa958513 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
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'` | |
fa958513 | 410 | |
d6efbf5a DJ |
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 | |
14e8fc8b | 417 | |
fa958513 | 418 | |
5213506e RW |
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 | | |
fa958513 | 428 | sed ' |
5213506e RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
fa958513 | 433 | N |
5213506e RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fa958513 | 436 | t loop |
5213506e | 437 | s/-\n.*// |
fa958513 | 438 | ' >$as_me.lineno && |
5213506e RW |
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; } | |
fa958513 DJ |
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 | |
5213506e RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
fa958513 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
5213506e RW |
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';; | |
fa958513 DJ |
461 | esac |
462 | ||
5213506e RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
fa958513 | 466 | else |
5213506e RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
fa958513 | 469 | fi |
5213506e RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6efbf5a | 472 | as_ln_s='ln -s' |
5213506e RW |
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' | |
d6efbf5a | 483 | fi |
fa958513 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
5213506e RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
fa958513 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
5213506e | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
fa958513 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
5213506e RW |
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 | |
fa958513 DJ |
519 | |
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 | ||
5213506e | 527 | exec 7<&0 </dev/null 6>&1 |
fa958513 DJ |
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 | ||
fa958513 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
537 | ac_default_prefix=/usr/local | |
5213506e | 538 | ac_clean_files= |
fa958513 | 539 | ac_config_libobj_dir=. |
5213506e | 540 | LIBOBJS= |
fa958513 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
d6efbf5a | 545 | |
fa958513 DJ |
546 | # Identity of this package. |
547 | PACKAGE_NAME='GNU C Runtime Library' | |
548 | PACKAGE_TARNAME='libgcc' | |
549 | PACKAGE_VERSION='1.0' | |
550 | PACKAGE_STRING='GNU C Runtime Library 1.0' | |
551 | PACKAGE_BUGREPORT='' | |
5213506e | 552 | PACKAGE_URL='http://www.gnu.org/software/libgcc/' |
fa958513 DJ |
553 | |
554 | ac_unique_file="static-object.mk" | |
07ba94b9 | 555 | ac_includes_default='/* none */' |
5213506e RW |
556 | ac_subst_vars='LTLIBOBJS |
557 | LIBOBJS | |
558 | asm_hidden_op | |
559 | extra_parts | |
ca24c5ad | 560 | cpu_type |
1183dc2c | 561 | thread_header |
852b75ed RO |
562 | tm_defines |
563 | tm_file | |
5213506e | 564 | tmake_file |
aca0b0b3 | 565 | sfp_machine_header |
368fabd5 | 566 | set_use_emutls |
5213506e RW |
567 | set_have_cc_tls |
568 | vis_hide | |
598a1586 | 569 | force_explicit_eh_registry |
5213506e RW |
570 | fixed_point |
571 | enable_decimal_float | |
572 | decimal_float | |
569dc494 RO |
573 | long_double_type_size |
574 | double_type_size | |
5213506e RW |
575 | CPP |
576 | OBJEXT | |
577 | EXEEXT | |
578 | ac_ct_CC | |
579 | CPPFLAGS | |
580 | LDFLAGS | |
581 | CFLAGS | |
582 | CC | |
583 | LN_S | |
584 | STRIP | |
585 | RANLIB | |
586 | NM | |
587 | LIPO | |
588 | AR | |
58c741a6 DK |
589 | toolexeclibdir |
590 | toolexecdir | |
5213506e RW |
591 | target_subdir |
592 | host_subdir | |
593 | build_subdir | |
594 | build_libsubdir | |
58c741a6 | 595 | target_noncanonical |
5213506e | 596 | host_noncanonical |
f9989b51 RO |
597 | AWK |
598 | INSTALL_DATA | |
599 | INSTALL_SCRIPT | |
600 | INSTALL_PROGRAM | |
601 | MAINT | |
602 | slibdir | |
603 | PICFLAG | |
5213506e RW |
604 | host_os |
605 | host_vendor | |
606 | host_cpu | |
607 | host | |
608 | build_os | |
609 | build_vendor | |
610 | build_cpu | |
611 | build | |
2077db1b | 612 | enable_vtable_verify |
5213506e RW |
613 | enable_shared |
614 | libgcc_topdir | |
615 | target_alias | |
616 | host_alias | |
617 | build_alias | |
618 | LIBS | |
619 | ECHO_T | |
620 | ECHO_N | |
621 | ECHO_C | |
622 | DEFS | |
623 | mandir | |
624 | localedir | |
625 | libdir | |
626 | psdir | |
627 | pdfdir | |
628 | dvidir | |
629 | htmldir | |
630 | infodir | |
631 | docdir | |
632 | oldincludedir | |
633 | includedir | |
634 | localstatedir | |
635 | sharedstatedir | |
636 | sysconfdir | |
637 | datadir | |
638 | datarootdir | |
639 | libexecdir | |
640 | sbindir | |
641 | bindir | |
642 | program_transform_name | |
643 | prefix | |
644 | exec_prefix | |
645 | PACKAGE_URL | |
646 | PACKAGE_BUGREPORT | |
647 | PACKAGE_STRING | |
648 | PACKAGE_VERSION | |
649 | PACKAGE_TARNAME | |
650 | PACKAGE_NAME | |
651 | PATH_SEPARATOR | |
652 | SHELL' | |
fa958513 | 653 | ac_subst_files='' |
5213506e RW |
654 | ac_user_opts=' |
655 | enable_option_checking | |
656 | with_target_subdir | |
657 | with_cross_host | |
658 | with_ld | |
659 | enable_shared | |
2077db1b | 660 | enable_vtable_verify |
5213506e RW |
661 | enable_version_specific_runtime_libs |
662 | with_slibdir | |
663 | enable_maintainer_mode | |
664 | with_build_libsubdir | |
665 | enable_decimal_float | |
201cdb74 | 666 | with_system_libunwind |
b040f2be | 667 | enable_sjlj_exceptions |
598a1586 | 668 | enable_explicit_exception_frame_registration |
5213506e RW |
669 | enable_tls |
670 | ' | |
671 | ac_precious_vars='build_alias | |
672 | host_alias | |
673 | target_alias | |
674 | CC | |
675 | CFLAGS | |
676 | LDFLAGS | |
677 | LIBS | |
678 | CPPFLAGS | |
679 | CPP' | |
680 | ||
fa958513 DJ |
681 | |
682 | # Initialize some variables set by options. | |
683 | ac_init_help= | |
684 | ac_init_version=false | |
5213506e RW |
685 | ac_unrecognized_opts= |
686 | ac_unrecognized_sep= | |
fa958513 DJ |
687 | # The variables have the same names as the options, with |
688 | # dashes changed to underlines. | |
689 | cache_file=/dev/null | |
690 | exec_prefix=NONE | |
691 | no_create= | |
692 | no_recursion= | |
693 | prefix=NONE | |
694 | program_prefix=NONE | |
695 | program_suffix=NONE | |
696 | program_transform_name=s,x,x, | |
697 | silent= | |
698 | site= | |
699 | srcdir= | |
700 | verbose= | |
701 | x_includes=NONE | |
702 | x_libraries=NONE | |
703 | ||
704 | # Installation directory options. | |
705 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
706 | # and all the variables that are supposed to be based on exec_prefix | |
707 | # by default will actually change. | |
708 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 709 | # (The list follows the same order as the GNU Coding Standards.) |
fa958513 DJ |
710 | bindir='${exec_prefix}/bin' |
711 | sbindir='${exec_prefix}/sbin' | |
712 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
713 | datarootdir='${prefix}/share' |
714 | datadir='${datarootdir}' | |
fa958513 DJ |
715 | sysconfdir='${prefix}/etc' |
716 | sharedstatedir='${prefix}/com' | |
717 | localstatedir='${prefix}/var' | |
fa958513 DJ |
718 | includedir='${prefix}/include' |
719 | oldincludedir='/usr/include' | |
5213506e RW |
720 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
721 | infodir='${datarootdir}/info' | |
722 | htmldir='${docdir}' | |
723 | dvidir='${docdir}' | |
724 | pdfdir='${docdir}' | |
725 | psdir='${docdir}' | |
726 | libdir='${exec_prefix}/lib' | |
727 | localedir='${datarootdir}/locale' | |
728 | mandir='${datarootdir}/man' | |
fa958513 DJ |
729 | |
730 | ac_prev= | |
5213506e | 731 | ac_dashdash= |
fa958513 DJ |
732 | for ac_option |
733 | do | |
734 | # If the previous option needs an argument, assign it. | |
735 | if test -n "$ac_prev"; then | |
5213506e | 736 | eval $ac_prev=\$ac_option |
fa958513 DJ |
737 | ac_prev= |
738 | continue | |
739 | fi | |
740 | ||
5213506e RW |
741 | case $ac_option in |
742 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
743 | *) ac_optarg=yes ;; | |
744 | esac | |
fa958513 DJ |
745 | |
746 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
747 | ||
5213506e RW |
748 | case $ac_dashdash$ac_option in |
749 | --) | |
750 | ac_dashdash=yes ;; | |
fa958513 DJ |
751 | |
752 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
753 | ac_prev=bindir ;; | |
754 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
755 | bindir=$ac_optarg ;; | |
756 | ||
757 | -build | --build | --buil | --bui | --bu) | |
758 | ac_prev=build_alias ;; | |
759 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
760 | build_alias=$ac_optarg ;; | |
761 | ||
762 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
763 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
764 | ac_prev=cache_file ;; | |
765 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
766 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
767 | cache_file=$ac_optarg ;; | |
768 | ||
769 | --config-cache | -C) | |
770 | cache_file=config.cache ;; | |
771 | ||
5213506e | 772 | -datadir | --datadir | --datadi | --datad) |
fa958513 | 773 | ac_prev=datadir ;; |
5213506e | 774 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fa958513 DJ |
775 | datadir=$ac_optarg ;; |
776 | ||
5213506e RW |
777 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
778 | | --dataroo | --dataro | --datar) | |
779 | ac_prev=datarootdir ;; | |
780 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
781 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
782 | datarootdir=$ac_optarg ;; | |
783 | ||
fa958513 | 784 | -disable-* | --disable-*) |
5213506e | 785 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
fa958513 | 786 | # Reject names that are not valid shell variable names. |
5213506e RW |
787 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
788 | as_fn_error "invalid feature name: $ac_useropt" | |
789 | ac_useropt_orig=$ac_useropt | |
790 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
791 | case $ac_user_opts in | |
792 | *" | |
793 | "enable_$ac_useropt" | |
794 | "*) ;; | |
795 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
796 | ac_unrecognized_sep=', ';; | |
797 | esac | |
798 | eval enable_$ac_useropt=no ;; | |
799 | ||
800 | -docdir | --docdir | --docdi | --doc | --do) | |
801 | ac_prev=docdir ;; | |
802 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
803 | docdir=$ac_optarg ;; | |
804 | ||
805 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
806 | ac_prev=dvidir ;; | |
807 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
808 | dvidir=$ac_optarg ;; | |
fa958513 DJ |
809 | |
810 | -enable-* | --enable-*) | |
5213506e | 811 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
fa958513 | 812 | # Reject names that are not valid shell variable names. |
5213506e RW |
813 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
814 | as_fn_error "invalid feature name: $ac_useropt" | |
815 | ac_useropt_orig=$ac_useropt | |
816 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
817 | case $ac_user_opts in | |
818 | *" | |
819 | "enable_$ac_useropt" | |
820 | "*) ;; | |
821 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
822 | ac_unrecognized_sep=', ';; | |
d6efbf5a | 823 | esac |
5213506e | 824 | eval enable_$ac_useropt=\$ac_optarg ;; |
fa958513 DJ |
825 | |
826 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
827 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
828 | | --exec | --exe | --ex) | |
829 | ac_prev=exec_prefix ;; | |
830 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
831 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
832 | | --exec=* | --exe=* | --ex=*) | |
833 | exec_prefix=$ac_optarg ;; | |
834 | ||
835 | -gas | --gas | --ga | --g) | |
836 | # Obsolete; use --with-gas. | |
837 | with_gas=yes ;; | |
838 | ||
839 | -help | --help | --hel | --he | -h) | |
840 | ac_init_help=long ;; | |
841 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
842 | ac_init_help=recursive ;; | |
843 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
844 | ac_init_help=short ;; | |
845 | ||
846 | -host | --host | --hos | --ho) | |
847 | ac_prev=host_alias ;; | |
848 | -host=* | --host=* | --hos=* | --ho=*) | |
849 | host_alias=$ac_optarg ;; | |
850 | ||
5213506e RW |
851 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
852 | ac_prev=htmldir ;; | |
853 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
854 | | --ht=*) | |
855 | htmldir=$ac_optarg ;; | |
856 | ||
fa958513 DJ |
857 | -includedir | --includedir | --includedi | --included | --include \ |
858 | | --includ | --inclu | --incl | --inc) | |
859 | ac_prev=includedir ;; | |
860 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
861 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
862 | includedir=$ac_optarg ;; | |
863 | ||
864 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
865 | ac_prev=infodir ;; | |
866 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
867 | infodir=$ac_optarg ;; | |
868 | ||
869 | -libdir | --libdir | --libdi | --libd) | |
870 | ac_prev=libdir ;; | |
871 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
872 | libdir=$ac_optarg ;; | |
873 | ||
874 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
875 | | --libexe | --libex | --libe) | |
876 | ac_prev=libexecdir ;; | |
877 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
878 | | --libexe=* | --libex=* | --libe=*) | |
879 | libexecdir=$ac_optarg ;; | |
880 | ||
5213506e RW |
881 | -localedir | --localedir | --localedi | --localed | --locale) |
882 | ac_prev=localedir ;; | |
883 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
884 | localedir=$ac_optarg ;; | |
885 | ||
fa958513 | 886 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 887 | | --localstate | --localstat | --localsta | --localst | --locals) |
fa958513 DJ |
888 | ac_prev=localstatedir ;; |
889 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 890 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fa958513 DJ |
891 | localstatedir=$ac_optarg ;; |
892 | ||
893 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
894 | ac_prev=mandir ;; | |
895 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
896 | mandir=$ac_optarg ;; | |
897 | ||
898 | -nfp | --nfp | --nf) | |
899 | # Obsolete; use --without-fp. | |
900 | with_fp=no ;; | |
901 | ||
902 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
903 | | --no-cr | --no-c | -n) | |
904 | no_create=yes ;; | |
905 | ||
906 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
907 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
908 | no_recursion=yes ;; | |
909 | ||
910 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
911 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
912 | | --oldin | --oldi | --old | --ol | --o) | |
913 | ac_prev=oldincludedir ;; | |
914 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
915 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
916 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
917 | oldincludedir=$ac_optarg ;; | |
918 | ||
919 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
920 | ac_prev=prefix ;; | |
921 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
922 | prefix=$ac_optarg ;; | |
923 | ||
924 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
925 | | --program-pre | --program-pr | --program-p) | |
926 | ac_prev=program_prefix ;; | |
927 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
928 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
929 | program_prefix=$ac_optarg ;; | |
930 | ||
931 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
932 | | --program-suf | --program-su | --program-s) | |
933 | ac_prev=program_suffix ;; | |
934 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
935 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
936 | program_suffix=$ac_optarg ;; | |
937 | ||
938 | -program-transform-name | --program-transform-name \ | |
939 | | --program-transform-nam | --program-transform-na \ | |
940 | | --program-transform-n | --program-transform- \ | |
941 | | --program-transform | --program-transfor \ | |
942 | | --program-transfo | --program-transf \ | |
943 | | --program-trans | --program-tran \ | |
944 | | --progr-tra | --program-tr | --program-t) | |
945 | ac_prev=program_transform_name ;; | |
946 | -program-transform-name=* | --program-transform-name=* \ | |
947 | | --program-transform-nam=* | --program-transform-na=* \ | |
948 | | --program-transform-n=* | --program-transform-=* \ | |
949 | | --program-transform=* | --program-transfor=* \ | |
950 | | --program-transfo=* | --program-transf=* \ | |
951 | | --program-trans=* | --program-tran=* \ | |
952 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
953 | program_transform_name=$ac_optarg ;; | |
954 | ||
5213506e RW |
955 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
956 | ac_prev=pdfdir ;; | |
957 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
958 | pdfdir=$ac_optarg ;; | |
959 | ||
960 | -psdir | --psdir | --psdi | --psd | --ps) | |
961 | ac_prev=psdir ;; | |
962 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
963 | psdir=$ac_optarg ;; | |
964 | ||
fa958513 DJ |
965 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
966 | | -silent | --silent | --silen | --sile | --sil) | |
967 | silent=yes ;; | |
968 | ||
969 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
970 | ac_prev=sbindir ;; | |
971 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
972 | | --sbi=* | --sb=*) | |
973 | sbindir=$ac_optarg ;; | |
974 | ||
975 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
976 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
977 | | --sharedst | --shareds | --shared | --share | --shar \ | |
978 | | --sha | --sh) | |
979 | ac_prev=sharedstatedir ;; | |
980 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
981 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
982 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
983 | | --sha=* | --sh=*) | |
984 | sharedstatedir=$ac_optarg ;; | |
985 | ||
986 | -site | --site | --sit) | |
987 | ac_prev=site ;; | |
988 | -site=* | --site=* | --sit=*) | |
989 | site=$ac_optarg ;; | |
990 | ||
991 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
992 | ac_prev=srcdir ;; | |
993 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
994 | srcdir=$ac_optarg ;; | |
995 | ||
996 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
997 | | --syscon | --sysco | --sysc | --sys | --sy) | |
998 | ac_prev=sysconfdir ;; | |
999 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1000 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1001 | sysconfdir=$ac_optarg ;; | |
1002 | ||
1003 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1004 | ac_prev=target_alias ;; | |
1005 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1006 | target_alias=$ac_optarg ;; | |
1007 | ||
1008 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1009 | verbose=yes ;; | |
1010 | ||
1011 | -version | --version | --versio | --versi | --vers | -V) | |
1012 | ac_init_version=: ;; | |
1013 | ||
1014 | -with-* | --with-*) | |
5213506e | 1015 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
fa958513 | 1016 | # Reject names that are not valid shell variable names. |
5213506e RW |
1017 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1018 | as_fn_error "invalid package name: $ac_useropt" | |
1019 | ac_useropt_orig=$ac_useropt | |
1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1021 | case $ac_user_opts in | |
1022 | *" | |
1023 | "with_$ac_useropt" | |
1024 | "*) ;; | |
1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1026 | ac_unrecognized_sep=', ';; | |
d6efbf5a | 1027 | esac |
5213506e | 1028 | eval with_$ac_useropt=\$ac_optarg ;; |
fa958513 DJ |
1029 | |
1030 | -without-* | --without-*) | |
5213506e | 1031 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
fa958513 | 1032 | # Reject names that are not valid shell variable names. |
5213506e RW |
1033 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1034 | as_fn_error "invalid package name: $ac_useropt" | |
1035 | ac_useropt_orig=$ac_useropt | |
1036 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1037 | case $ac_user_opts in | |
1038 | *" | |
1039 | "with_$ac_useropt" | |
1040 | "*) ;; | |
1041 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1042 | ac_unrecognized_sep=', ';; | |
1043 | esac | |
1044 | eval with_$ac_useropt=no ;; | |
fa958513 DJ |
1045 | |
1046 | --x) | |
1047 | # Obsolete; use --with-x. | |
1048 | with_x=yes ;; | |
1049 | ||
1050 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1051 | | --x-incl | --x-inc | --x-in | --x-i) | |
1052 | ac_prev=x_includes ;; | |
1053 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1054 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1055 | x_includes=$ac_optarg ;; | |
1056 | ||
1057 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1058 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1059 | ac_prev=x_libraries ;; | |
1060 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1061 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1062 | x_libraries=$ac_optarg ;; | |
1063 | ||
5213506e RW |
1064 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1065 | Try \`$0 --help' for more information." | |
fa958513 DJ |
1066 | ;; |
1067 | ||
1068 | *=*) | |
1069 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1070 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1071 | case $ac_envvar in #( |
1072 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1073 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1074 | esac | |
1075 | eval $ac_envvar=\$ac_optarg | |
fa958513 DJ |
1076 | export $ac_envvar ;; |
1077 | ||
1078 | *) | |
1079 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1080 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
fa958513 | 1081 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1082 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
fa958513 DJ |
1083 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1084 | ;; | |
1085 | ||
1086 | esac | |
1087 | done | |
1088 | ||
1089 | if test -n "$ac_prev"; then | |
1090 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5213506e | 1091 | as_fn_error "missing argument to $ac_option" |
fa958513 DJ |
1092 | fi |
1093 | ||
5213506e RW |
1094 | if test -n "$ac_unrecognized_opts"; then |
1095 | case $enable_option_checking in | |
1096 | no) ;; | |
1097 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1098 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
d6efbf5a | 1099 | esac |
5213506e | 1100 | fi |
d6efbf5a | 1101 | |
5213506e RW |
1102 | # Check all directory arguments for consistency. |
1103 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1104 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1105 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1106 | libdir localedir mandir | |
d6efbf5a | 1107 | do |
5213506e RW |
1108 | eval ac_val=\$$ac_var |
1109 | # Remove trailing slashes. | |
1110 | case $ac_val in | |
1111 | */ ) | |
1112 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1113 | eval $ac_var=\$ac_val;; | |
1114 | esac | |
1115 | # Be sure to have absolute directory names. | |
d6efbf5a | 1116 | case $ac_val in |
5213506e RW |
1117 | [\\/$]* | ?:[\\/]* ) continue;; |
1118 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fa958513 | 1119 | esac |
5213506e | 1120 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
fa958513 DJ |
1121 | done |
1122 | ||
1123 | # There might be people who depend on the old broken behavior: `$host' | |
1124 | # used to hold the argument of --host etc. | |
1125 | # FIXME: To remove some day. | |
1126 | build=$build_alias | |
1127 | host=$host_alias | |
1128 | target=$target_alias | |
1129 | ||
1130 | # FIXME: To remove some day. | |
1131 | if test "x$host_alias" != x; then | |
1132 | if test "x$build_alias" = x; then | |
1133 | cross_compiling=maybe | |
5213506e | 1134 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
fa958513 DJ |
1135 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1136 | elif test "x$build_alias" != "x$host_alias"; then | |
1137 | cross_compiling=yes | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | ac_tool_prefix= | |
1142 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1143 | ||
1144 | test "$silent" = yes && exec 6>/dev/null | |
1145 | ||
1146 | ||
5213506e RW |
1147 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1148 | ac_ls_di=`ls -di .` && | |
1149 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1150 | as_fn_error "working directory cannot be determined" | |
1151 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1152 | as_fn_error "pwd does not report name of working directory" | |
1153 | ||
1154 | ||
fa958513 DJ |
1155 | # Find the source files, if location was not specified. |
1156 | if test -z "$srcdir"; then | |
1157 | ac_srcdir_defaulted=yes | |
5213506e RW |
1158 | # Try the directory containing this script, then the parent directory. |
1159 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1160 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1161 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1162 | X"$as_myself" : 'X\(//\)$' \| \ | |
1163 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1164 | $as_echo X"$as_myself" | | |
1165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1166 | s//\1/ | |
1167 | q | |
1168 | } | |
1169 | /^X\(\/\/\)[^/].*/{ | |
1170 | s//\1/ | |
1171 | q | |
1172 | } | |
1173 | /^X\(\/\/\)$/{ | |
1174 | s//\1/ | |
1175 | q | |
1176 | } | |
1177 | /^X\(\/\).*/{ | |
1178 | s//\1/ | |
1179 | q | |
1180 | } | |
1181 | s/.*/./; q'` | |
fa958513 | 1182 | srcdir=$ac_confdir |
5213506e | 1183 | if test ! -r "$srcdir/$ac_unique_file"; then |
fa958513 DJ |
1184 | srcdir=.. |
1185 | fi | |
1186 | else | |
1187 | ac_srcdir_defaulted=no | |
1188 | fi | |
5213506e RW |
1189 | if test ! -r "$srcdir/$ac_unique_file"; then |
1190 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1191 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1192 | fi | |
1193 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1194 | ac_abs_confdir=`( | |
1195 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1196 | pwd)` | |
1197 | # When building in place, set srcdir=. | |
1198 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1199 | srcdir=. | |
1200 | fi | |
1201 | # Remove unnecessary trailing slashes from srcdir. | |
1202 | # Double slashes in file names in object file debugging info | |
1203 | # mess up M-x gdb in Emacs. | |
1204 | case $srcdir in | |
1205 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1206 | esac | |
1207 | for ac_var in $ac_precious_vars; do | |
1208 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1209 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1210 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1211 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1212 | done | |
14e8fc8b | 1213 | |
fa958513 DJ |
1214 | # |
1215 | # Report the --help message. | |
1216 | # | |
1217 | if test "$ac_init_help" = "long"; then | |
1218 | # Omit some internal or obsolete options to make the list less imposing. | |
1219 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1220 | cat <<_ACEOF | |
1221 | \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems. | |
1222 | ||
1223 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1224 | ||
1225 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1226 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1227 | ||
1228 | Defaults for the options are specified in brackets. | |
1229 | ||
1230 | Configuration: | |
1231 | -h, --help display this help and exit | |
1232 | --help=short display options specific to this package | |
1233 | --help=recursive display the short help of all the included packages | |
1234 | -V, --version display version information and exit | |
1235 | -q, --quiet, --silent do not print \`checking...' messages | |
1236 | --cache-file=FILE cache test results in FILE [disabled] | |
1237 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1238 | -n, --no-create do not create output files | |
1239 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1240 | ||
fa958513 DJ |
1241 | Installation directories: |
1242 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1243 | [$ac_default_prefix] |
fa958513 | 1244 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1245 | [PREFIX] |
fa958513 DJ |
1246 | |
1247 | By default, \`make install' will install all the files in | |
1248 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1249 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1250 | for instance \`--prefix=\$HOME'. | |
1251 | ||
1252 | For better control, use the options below. | |
1253 | ||
1254 | Fine tuning of the installation directories: | |
5213506e RW |
1255 | --bindir=DIR user executables [EPREFIX/bin] |
1256 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1257 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1258 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1259 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1260 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1261 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1262 | --includedir=DIR C header files [PREFIX/include] | |
1263 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1264 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1265 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1266 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1267 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1268 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1269 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc] | |
1270 | --htmldir=DIR html documentation [DOCDIR] | |
1271 | --dvidir=DIR dvi documentation [DOCDIR] | |
1272 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1273 | --psdir=DIR ps documentation [DOCDIR] | |
fa958513 DJ |
1274 | _ACEOF |
1275 | ||
1276 | cat <<\_ACEOF | |
1277 | ||
1278 | System types: | |
1279 | --build=BUILD configure for building on BUILD [guessed] | |
1280 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | case $ac_init_help in | |
1286 | short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";; | |
1287 | esac | |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
5213506e | 1291 | --disable-option-checking ignore unrecognized --enable/--with options |
fa958513 DJ |
1292 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1293 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1294 | --disable-shared don't provide a shared libgcc | |
2077db1b | 1295 | --enable-vtable-verify Enable vtable verification feature |
d6efbf5a | 1296 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
6efbd53f RW |
1297 | --enable-maintainer-mode |
1298 | enable make rules and dependencies not useful (and | |
1299 | sometimes confusing) to the casual installer | |
79b87c74 MM |
1300 | --enable-decimal-float={no,yes,bid,dpd} |
1301 | enable decimal float extension to C. Selecting 'bid' | |
1302 | or 'dpd' choses which decimal floating point format | |
1303 | to use | |
b040f2be RO |
1304 | --enable-sjlj-exceptions |
1305 | force use of builtin_setjmp for exceptions | |
598a1586 HPN |
1306 | --enable-explicit-exception-frame-registration |
1307 | register exception tables explicitly at module | |
1308 | start, for use e.g. for compatibility with | |
1309 | installations without PT_GNU_EH_FRAME support | |
6f461e76 | 1310 | --enable-tls Use thread-local storage [default=yes] |
fa958513 DJ |
1311 | |
1312 | Optional Packages: | |
1313 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1314 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1315 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1316 | --with-cross-host=HOST Configuring with a cross compiler | |
1317 | --with-ld arrange to use the specified ld (full pathname) | |
1318 | --with-slibdir=DIR shared libraries in DIR LIBDIR | |
14e8fc8b | 1319 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
201cdb74 | 1320 | --with-system-libunwind use installed libunwind |
fa958513 DJ |
1321 | |
1322 | Some influential environment variables: | |
1323 | CC C compiler command | |
1324 | CFLAGS C compiler flags | |
1325 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1326 | nonstandard directory <lib dir> | |
5213506e RW |
1327 | LIBS libraries to pass to the linker, e.g. -l<library> |
1328 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1329 | you have headers in a nonstandard directory <include dir> | |
fa958513 DJ |
1330 | CPP C preprocessor |
1331 | ||
1332 | Use these variables to override the choices made by `configure' or to help | |
1333 | it to find libraries and programs with nonstandard names/locations. | |
1334 | ||
5213506e RW |
1335 | Report bugs to the package provider. |
1336 | GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. | |
1337 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
fa958513 | 1338 | _ACEOF |
5213506e | 1339 | ac_status=$? |
fa958513 DJ |
1340 | fi |
1341 | ||
1342 | if test "$ac_init_help" = "recursive"; then | |
1343 | # If there are subdirs, report their specific --help. | |
fa958513 | 1344 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1345 | test -d "$ac_dir" || |
1346 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1347 | continue | |
fa958513 DJ |
1348 | ac_builddir=. |
1349 | ||
5213506e RW |
1350 | case "$ac_dir" in |
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1352 | *) | |
1353 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1354 | # A ".." for each directory in $ac_dir_suffix. | |
1355 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1356 | case $ac_top_builddir_sub in | |
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1359 | esac ;; | |
1360 | esac | |
1361 | ac_abs_top_builddir=$ac_pwd | |
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1363 | # for backward compatibility: | |
1364 | ac_top_builddir=$ac_top_build_prefix | |
fa958513 DJ |
1365 | |
1366 | case $srcdir in | |
5213506e | 1367 | .) # We are building in place. |
fa958513 | 1368 | ac_srcdir=. |
5213506e RW |
1369 | ac_top_srcdir=$ac_top_builddir_sub |
1370 | ac_abs_top_srcdir=$ac_pwd ;; | |
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fa958513 | 1372 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1373 | ac_top_srcdir=$srcdir |
1374 | ac_abs_top_srcdir=$srcdir ;; | |
1375 | *) # Relative name. | |
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fa958513 | 1379 | esac |
5213506e RW |
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1381 | ||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1383 | # Check for guested configure. | |
1384 | if test -f "$ac_srcdir/configure.gnu"; then | |
1385 | echo && | |
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1387 | elif test -f "$ac_srcdir/configure"; then | |
1388 | echo && | |
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fa958513 | 1390 | else |
5213506e RW |
1391 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1392 | fi || ac_status=$? | |
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fa958513 DJ |
1394 | done |
1395 | fi | |
1396 | ||
5213506e | 1397 | test -n "$ac_init_help" && exit $ac_status |
fa958513 DJ |
1398 | if $ac_init_version; then |
1399 | cat <<\_ACEOF | |
1400 | GNU C Runtime Library configure 1.0 | |
5213506e | 1401 | generated by GNU Autoconf 2.64 |
fa958513 | 1402 | |
5213506e | 1403 | Copyright (C) 2009 Free Software Foundation, Inc. |
fa958513 DJ |
1404 | This configure script is free software; the Free Software Foundation |
1405 | gives unlimited permission to copy, distribute and modify it. | |
1406 | _ACEOF | |
5213506e | 1407 | exit |
fa958513 | 1408 | fi |
5213506e RW |
1409 | |
1410 | ## ------------------------ ## | |
1411 | ## Autoconf initialization. ## | |
1412 | ## ------------------------ ## | |
1413 | ||
1414 | # ac_fn_c_try_compile LINENO | |
1415 | # -------------------------- | |
1416 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1417 | ac_fn_c_try_compile () | |
1418 | { | |
1419 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1420 | rm -f conftest.$ac_objext | |
1421 | if { { ac_try="$ac_compile" | |
1422 | case "(($ac_try" in | |
1423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1424 | *) ac_try_echo=$ac_try;; | |
1425 | esac | |
1426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1427 | $as_echo "$ac_try_echo"; } >&5 | |
1428 | (eval "$ac_compile") 2>conftest.err | |
1429 | ac_status=$? | |
1430 | if test -s conftest.err; then | |
1431 | grep -v '^ *+' conftest.err >conftest.er1 | |
1432 | cat conftest.er1 >&5 | |
1433 | mv -f conftest.er1 conftest.err | |
1434 | fi | |
1435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1436 | test $ac_status = 0; } && { | |
1437 | test -z "$ac_c_werror_flag" || | |
1438 | test ! -s conftest.err | |
1439 | } && test -s conftest.$ac_objext; then : | |
1440 | ac_retval=0 | |
1441 | else | |
1442 | $as_echo "$as_me: failed program was:" >&5 | |
1443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1444 | ||
1445 | ac_retval=1 | |
1446 | fi | |
1447 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1448 | return $ac_retval | |
1449 | ||
1450 | } # ac_fn_c_try_compile | |
1451 | ||
1452 | # ac_fn_c_try_cpp LINENO | |
1453 | # ---------------------- | |
1454 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1455 | ac_fn_c_try_cpp () | |
1456 | { | |
1457 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1458 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1459 | case "(($ac_try" in | |
1460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1461 | *) ac_try_echo=$ac_try;; | |
1462 | esac | |
1463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1464 | $as_echo "$ac_try_echo"; } >&5 | |
1465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1466 | ac_status=$? | |
1467 | if test -s conftest.err; then | |
1468 | grep -v '^ *+' conftest.err >conftest.er1 | |
1469 | cat conftest.er1 >&5 | |
1470 | mv -f conftest.er1 conftest.err | |
1471 | fi | |
1472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1473 | test $ac_status = 0; } >/dev/null && { | |
1474 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1475 | test ! -s conftest.err | |
1476 | }; then : | |
1477 | ac_retval=0 | |
1478 | else | |
1479 | $as_echo "$as_me: failed program was:" >&5 | |
1480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1481 | ||
1482 | ac_retval=1 | |
1483 | fi | |
1484 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1485 | return $ac_retval | |
1486 | ||
1487 | } # ac_fn_c_try_cpp | |
569dc494 RO |
1488 | |
1489 | # ac_fn_c_try_run LINENO | |
1490 | # ---------------------- | |
1491 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1492 | # that executables *can* be run. | |
1493 | ac_fn_c_try_run () | |
1494 | { | |
1495 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1496 | if { { ac_try="$ac_link" | |
1497 | case "(($ac_try" in | |
1498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1499 | *) ac_try_echo=$ac_try;; | |
1500 | esac | |
1501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1502 | $as_echo "$ac_try_echo"; } >&5 | |
1503 | (eval "$ac_link") 2>&5 | |
1504 | ac_status=$? | |
1505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1506 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1507 | { { case "(($ac_try" in | |
1508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1509 | *) ac_try_echo=$ac_try;; | |
1510 | esac | |
1511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1512 | $as_echo "$ac_try_echo"; } >&5 | |
1513 | (eval "$ac_try") 2>&5 | |
1514 | ac_status=$? | |
1515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1516 | test $ac_status = 0; }; }; then : | |
1517 | ac_retval=0 | |
1518 | else | |
1519 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1520 | $as_echo "$as_me: failed program was:" >&5 | |
1521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1522 | ||
1523 | ac_retval=$ac_status | |
1524 | fi | |
1525 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1526 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1527 | return $ac_retval | |
1528 | ||
1529 | } # ac_fn_c_try_run | |
1530 | ||
1531 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1532 | # -------------------------------------------- | |
1533 | # Tries to find the compile-time value of EXPR in a program that includes | |
1534 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1535 | # computed | |
1536 | ac_fn_c_compute_int () | |
1537 | { | |
1538 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1539 | if test "$cross_compiling" = yes; then | |
1540 | # Depending upon the size, compute the lo and hi bounds. | |
1541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1542 | /* end confdefs.h. */ | |
1543 | $4 | |
1544 | int | |
1545 | main () | |
1546 | { | |
1547 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1548 | test_array [0] = 0 | |
1549 | ||
1550 | ; | |
1551 | return 0; | |
1552 | } | |
1553 | _ACEOF | |
1554 | if ac_fn_c_try_compile "$LINENO"; then : | |
1555 | ac_lo=0 ac_mid=0 | |
1556 | while :; do | |
1557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1558 | /* end confdefs.h. */ | |
1559 | $4 | |
1560 | int | |
1561 | main () | |
1562 | { | |
1563 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1564 | test_array [0] = 0 | |
1565 | ||
1566 | ; | |
1567 | return 0; | |
1568 | } | |
1569 | _ACEOF | |
1570 | if ac_fn_c_try_compile "$LINENO"; then : | |
1571 | ac_hi=$ac_mid; break | |
1572 | else | |
1573 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1574 | if test $ac_lo -le $ac_mid; then | |
1575 | ac_lo= ac_hi= | |
1576 | break | |
1577 | fi | |
1578 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1579 | fi | |
1580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1581 | done | |
1582 | else | |
1583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1584 | /* end confdefs.h. */ | |
1585 | $4 | |
1586 | int | |
1587 | main () | |
1588 | { | |
1589 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1590 | test_array [0] = 0 | |
1591 | ||
1592 | ; | |
1593 | return 0; | |
1594 | } | |
1595 | _ACEOF | |
1596 | if ac_fn_c_try_compile "$LINENO"; then : | |
1597 | ac_hi=-1 ac_mid=-1 | |
1598 | while :; do | |
1599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1600 | /* end confdefs.h. */ | |
1601 | $4 | |
1602 | int | |
1603 | main () | |
1604 | { | |
1605 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1606 | test_array [0] = 0 | |
1607 | ||
1608 | ; | |
1609 | return 0; | |
1610 | } | |
1611 | _ACEOF | |
1612 | if ac_fn_c_try_compile "$LINENO"; then : | |
1613 | ac_lo=$ac_mid; break | |
1614 | else | |
1615 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1616 | if test $ac_mid -le $ac_hi; then | |
1617 | ac_lo= ac_hi= | |
1618 | break | |
1619 | fi | |
1620 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1621 | fi | |
1622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1623 | done | |
1624 | else | |
1625 | ac_lo= ac_hi= | |
1626 | fi | |
1627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1628 | fi | |
1629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1630 | # Binary search between lo and hi bounds. | |
1631 | while test "x$ac_lo" != "x$ac_hi"; do | |
1632 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1634 | /* end confdefs.h. */ | |
1635 | $4 | |
1636 | int | |
1637 | main () | |
1638 | { | |
1639 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1640 | test_array [0] = 0 | |
1641 | ||
1642 | ; | |
1643 | return 0; | |
1644 | } | |
1645 | _ACEOF | |
1646 | if ac_fn_c_try_compile "$LINENO"; then : | |
1647 | ac_hi=$ac_mid | |
1648 | else | |
1649 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1650 | fi | |
1651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1652 | done | |
1653 | case $ac_lo in #(( | |
1654 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1655 | '') ac_retval=1 ;; | |
1656 | esac | |
1657 | else | |
1658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1659 | /* end confdefs.h. */ | |
1660 | $4 | |
1661 | static long int longval () { return $2; } | |
1662 | static unsigned long int ulongval () { return $2; } | |
1663 | #include <stdio.h> | |
1664 | #include <stdlib.h> | |
1665 | int | |
1666 | main () | |
1667 | { | |
1668 | ||
1669 | FILE *f = fopen ("conftest.val", "w"); | |
1670 | if (! f) | |
1671 | return 1; | |
1672 | if (($2) < 0) | |
1673 | { | |
1674 | long int i = longval (); | |
1675 | if (i != ($2)) | |
1676 | return 1; | |
1677 | fprintf (f, "%ld", i); | |
1678 | } | |
1679 | else | |
1680 | { | |
1681 | unsigned long int i = ulongval (); | |
1682 | if (i != ($2)) | |
1683 | return 1; | |
1684 | fprintf (f, "%lu", i); | |
1685 | } | |
1686 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1687 | on some platforms. */ | |
1688 | return ferror (f) || fclose (f) != 0; | |
1689 | ||
1690 | ; | |
1691 | return 0; | |
1692 | } | |
1693 | _ACEOF | |
1694 | if ac_fn_c_try_run "$LINENO"; then : | |
1695 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
1696 | else | |
1697 | ac_retval=1 | |
1698 | fi | |
1699 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1700 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1701 | rm -f conftest.val | |
1702 | ||
1703 | fi | |
1704 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1705 | return $ac_retval | |
1706 | ||
1707 | } # ac_fn_c_compute_int | |
5213506e | 1708 | cat >config.log <<_ACEOF |
fa958513 DJ |
1709 | This file contains any messages produced by compilers while |
1710 | running configure, to aid debugging if configure makes a mistake. | |
1711 | ||
1712 | It was created by GNU C Runtime Library $as_me 1.0, which was | |
5213506e | 1713 | generated by GNU Autoconf 2.64. Invocation command line was |
fa958513 DJ |
1714 | |
1715 | $ $0 $@ | |
1716 | ||
1717 | _ACEOF | |
5213506e | 1718 | exec 5>>config.log |
fa958513 DJ |
1719 | { |
1720 | cat <<_ASUNAME | |
1721 | ## --------- ## | |
1722 | ## Platform. ## | |
1723 | ## --------- ## | |
1724 | ||
1725 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1726 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1727 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1728 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1729 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1730 | ||
1731 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1732 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1733 | ||
1734 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1735 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1736 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1737 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
fa958513 DJ |
1738 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1739 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1740 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1741 | ||
1742 | _ASUNAME | |
1743 | ||
1744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1745 | for as_dir in $PATH | |
1746 | do | |
1747 | IFS=$as_save_IFS | |
1748 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1749 | $as_echo "PATH: $as_dir" |
1750 | done | |
1751 | IFS=$as_save_IFS | |
fa958513 DJ |
1752 | |
1753 | } >&5 | |
1754 | ||
1755 | cat >&5 <<_ACEOF | |
1756 | ||
1757 | ||
1758 | ## ----------- ## | |
1759 | ## Core tests. ## | |
1760 | ## ----------- ## | |
1761 | ||
1762 | _ACEOF | |
1763 | ||
1764 | ||
1765 | # Keep a trace of the command line. | |
1766 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1767 | # Strip out --silent because we don't want to record it for future runs. | |
1768 | # Also quote any args containing shell meta-characters. | |
1769 | # Make two passes to allow for proper duplicate-argument suppression. | |
1770 | ac_configure_args= | |
1771 | ac_configure_args0= | |
1772 | ac_configure_args1= | |
fa958513 DJ |
1773 | ac_must_keep_next=false |
1774 | for ac_pass in 1 2 | |
1775 | do | |
1776 | for ac_arg | |
1777 | do | |
1778 | case $ac_arg in | |
1779 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1780 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1781 | | -silent | --silent | --silen | --sile | --sil) | |
1782 | continue ;; | |
5213506e RW |
1783 | *\'*) |
1784 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
fa958513 DJ |
1785 | esac |
1786 | case $ac_pass in | |
5213506e | 1787 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
fa958513 | 1788 | 2) |
5213506e | 1789 | as_fn_append ac_configure_args1 " '$ac_arg'" |
fa958513 DJ |
1790 | if test $ac_must_keep_next = true; then |
1791 | ac_must_keep_next=false # Got value, back to normal. | |
1792 | else | |
1793 | case $ac_arg in | |
1794 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1795 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1796 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1797 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1798 | case "$ac_configure_args0 " in | |
1799 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1800 | esac | |
1801 | ;; | |
1802 | -* ) ac_must_keep_next=true ;; | |
1803 | esac | |
1804 | fi | |
5213506e | 1805 | as_fn_append ac_configure_args " '$ac_arg'" |
fa958513 DJ |
1806 | ;; |
1807 | esac | |
1808 | done | |
1809 | done | |
5213506e RW |
1810 | { ac_configure_args0=; unset ac_configure_args0;} |
1811 | { ac_configure_args1=; unset ac_configure_args1;} | |
fa958513 DJ |
1812 | |
1813 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1814 | # config.log. We remove comments because anyway the quotes in there | |
1815 | # would cause problems or look ugly. | |
5213506e RW |
1816 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1817 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
fa958513 DJ |
1818 | trap 'exit_status=$? |
1819 | # Save into config.log some information that might help in debugging. | |
1820 | { | |
1821 | echo | |
1822 | ||
1823 | cat <<\_ASBOX | |
1824 | ## ---------------- ## | |
1825 | ## Cache variables. ## | |
1826 | ## ---------------- ## | |
1827 | _ASBOX | |
1828 | echo | |
1829 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1830 | ( |
1831 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1832 | eval ac_val=\$$ac_var | |
1833 | case $ac_val in #( | |
1834 | *${as_nl}*) | |
1835 | case $ac_var in #( | |
1836 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1837 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1838 | esac | |
1839 | case $ac_var in #( | |
1840 | _ | IFS | as_nl) ;; #( | |
1841 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1842 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1843 | esac ;; | |
1844 | esac | |
1845 | done | |
fa958513 | 1846 | (set) 2>&1 | |
5213506e RW |
1847 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1848 | *${as_nl}ac_space=\ *) | |
fa958513 | 1849 | sed -n \ |
5213506e RW |
1850 | "s/'\''/'\''\\\\'\'''\''/g; |
1851 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1852 | ;; #( | |
fa958513 | 1853 | *) |
5213506e | 1854 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fa958513 | 1855 | ;; |
5213506e RW |
1856 | esac | |
1857 | sort | |
1858 | ) | |
fa958513 DJ |
1859 | echo |
1860 | ||
1861 | cat <<\_ASBOX | |
1862 | ## ----------------- ## | |
1863 | ## Output variables. ## | |
1864 | ## ----------------- ## | |
1865 | _ASBOX | |
1866 | echo | |
1867 | for ac_var in $ac_subst_vars | |
1868 | do | |
5213506e RW |
1869 | eval ac_val=\$$ac_var |
1870 | case $ac_val in | |
1871 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1872 | esac | |
1873 | $as_echo "$ac_var='\''$ac_val'\''" | |
fa958513 DJ |
1874 | done | sort |
1875 | echo | |
1876 | ||
1877 | if test -n "$ac_subst_files"; then | |
1878 | cat <<\_ASBOX | |
5213506e RW |
1879 | ## ------------------- ## |
1880 | ## File substitutions. ## | |
1881 | ## ------------------- ## | |
fa958513 DJ |
1882 | _ASBOX |
1883 | echo | |
1884 | for ac_var in $ac_subst_files | |
1885 | do | |
5213506e RW |
1886 | eval ac_val=\$$ac_var |
1887 | case $ac_val in | |
1888 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1889 | esac | |
1890 | $as_echo "$ac_var='\''$ac_val'\''" | |
fa958513 DJ |
1891 | done | sort |
1892 | echo | |
1893 | fi | |
1894 | ||
1895 | if test -s confdefs.h; then | |
1896 | cat <<\_ASBOX | |
1897 | ## ----------- ## | |
1898 | ## confdefs.h. ## | |
1899 | ## ----------- ## | |
1900 | _ASBOX | |
1901 | echo | |
5213506e | 1902 | cat confdefs.h |
fa958513 DJ |
1903 | echo |
1904 | fi | |
1905 | test "$ac_signal" != 0 && | |
5213506e RW |
1906 | $as_echo "$as_me: caught signal $ac_signal" |
1907 | $as_echo "$as_me: exit $exit_status" | |
fa958513 | 1908 | } >&5 |
5213506e RW |
1909 | rm -f core *.core core.conftest.* && |
1910 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
fa958513 | 1911 | exit $exit_status |
5213506e | 1912 | ' 0 |
fa958513 | 1913 | for ac_signal in 1 2 13 15; do |
5213506e | 1914 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
fa958513 DJ |
1915 | done |
1916 | ac_signal=0 | |
1917 | ||
1918 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
1919 | rm -f -r conftest* confdefs.h |
1920 | ||
1921 | $as_echo "/* confdefs.h */" > confdefs.h | |
fa958513 DJ |
1922 | |
1923 | # Predefined preprocessor variables. | |
1924 | ||
1925 | cat >>confdefs.h <<_ACEOF | |
1926 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1927 | _ACEOF | |
1928 | ||
fa958513 DJ |
1929 | cat >>confdefs.h <<_ACEOF |
1930 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1931 | _ACEOF | |
1932 | ||
fa958513 DJ |
1933 | cat >>confdefs.h <<_ACEOF |
1934 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1935 | _ACEOF | |
1936 | ||
fa958513 DJ |
1937 | cat >>confdefs.h <<_ACEOF |
1938 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1939 | _ACEOF | |
1940 | ||
fa958513 DJ |
1941 | cat >>confdefs.h <<_ACEOF |
1942 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1943 | _ACEOF | |
1944 | ||
5213506e RW |
1945 | cat >>confdefs.h <<_ACEOF |
1946 | #define PACKAGE_URL "$PACKAGE_URL" | |
1947 | _ACEOF | |
1948 | ||
fa958513 DJ |
1949 | |
1950 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
1951 | # Prefer an explicitly selected file to automatically selected ones. |
1952 | ac_site_file1=NONE | |
1953 | ac_site_file2=NONE | |
1954 | if test -n "$CONFIG_SITE"; then | |
1955 | ac_site_file1=$CONFIG_SITE | |
1956 | elif test "x$prefix" != xNONE; then | |
1957 | ac_site_file1=$prefix/share/config.site | |
1958 | ac_site_file2=$prefix/etc/config.site | |
1959 | else | |
1960 | ac_site_file1=$ac_default_prefix/share/config.site | |
1961 | ac_site_file2=$ac_default_prefix/etc/config.site | |
fa958513 | 1962 | fi |
5213506e RW |
1963 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1964 | do | |
1965 | test "x$ac_site_file" = xNONE && continue | |
fa958513 | 1966 | if test -r "$ac_site_file"; then |
5213506e RW |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1968 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
fa958513 DJ |
1969 | sed 's/^/| /' "$ac_site_file" >&5 |
1970 | . "$ac_site_file" | |
1971 | fi | |
1972 | done | |
1973 | ||
1974 | if test -r "$cache_file"; then | |
1975 | # Some versions of bash will fail to source /dev/null (special | |
1976 | # files actually), so we avoid doing that. | |
1977 | if test -f "$cache_file"; then | |
5213506e RW |
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1979 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
fa958513 | 1980 | case $cache_file in |
5213506e RW |
1981 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1982 | *) . "./$cache_file";; | |
fa958513 DJ |
1983 | esac |
1984 | fi | |
1985 | else | |
5213506e RW |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1987 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
fa958513 DJ |
1988 | >$cache_file |
1989 | fi | |
1990 | ||
1991 | # Check that the precious variables saved in the cache have kept the same | |
1992 | # value. | |
1993 | ac_cache_corrupted=false | |
5213506e | 1994 | for ac_var in $ac_precious_vars; do |
fa958513 DJ |
1995 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1996 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
1997 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1998 | eval ac_new_val=\$ac_env_${ac_var}_value | |
fa958513 DJ |
1999 | case $ac_old_set,$ac_new_set in |
2000 | set,) | |
5213506e RW |
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2002 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
fa958513 DJ |
2003 | ac_cache_corrupted=: ;; |
2004 | ,set) | |
5213506e RW |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2006 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
fa958513 DJ |
2007 | ac_cache_corrupted=: ;; |
2008 | ,);; | |
2009 | *) | |
2010 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2011 | # differences in whitespace do not lead to failure. |
2012 | ac_old_val_w=`echo x $ac_old_val` | |
2013 | ac_new_val_w=`echo x $ac_new_val` | |
2014 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2016 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2017 | ac_cache_corrupted=: | |
2018 | else | |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2020 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2021 | eval $ac_var=\$ac_old_val | |
2022 | fi | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2024 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2026 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
fa958513 DJ |
2027 | fi;; |
2028 | esac | |
2029 | # Pass precious variables to config.status. | |
2030 | if test "$ac_new_set" = set; then | |
2031 | case $ac_new_val in | |
5213506e | 2032 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
fa958513 DJ |
2033 | *) ac_arg=$ac_var=$ac_new_val ;; |
2034 | esac | |
2035 | case " $ac_configure_args " in | |
2036 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2037 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
fa958513 DJ |
2038 | esac |
2039 | fi | |
2040 | done | |
2041 | if $ac_cache_corrupted; then | |
5213506e RW |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2043 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2045 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2046 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
fa958513 | 2047 | fi |
5213506e RW |
2048 | ## -------------------- ## |
2049 | ## Main body of script. ## | |
2050 | ## -------------------- ## | |
fa958513 | 2051 | |
d6efbf5a DJ |
2052 | ac_ext=c |
2053 | ac_cpp='$CPP $CPPFLAGS' | |
2054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2057 | ||
fa958513 DJ |
2058 | |
2059 | ||
2060 | ||
2061 | ||
2062 | ||
2063 | ||
07ba94b9 AP |
2064 | # The libgcc should not depend on any header files |
2065 | ||
2066 | ||
fa958513 | 2067 | |
5213506e RW |
2068 | # Check whether --with-target-subdir was given. |
2069 | if test "${with_target_subdir+set}" = set; then : | |
2070 | withval=$with_target_subdir; | |
2071 | fi | |
fa958513 DJ |
2072 | |
2073 | ||
5213506e RW |
2074 | # Check whether --with-cross-host was given. |
2075 | if test "${with_cross_host+set}" = set; then : | |
2076 | withval=$with_cross_host; | |
2077 | fi | |
fa958513 DJ |
2078 | |
2079 | ||
5213506e RW |
2080 | # Check whether --with-ld was given. |
2081 | if test "${with_ld+set}" = set; then : | |
2082 | withval=$with_ld; | |
2083 | fi | |
fa958513 DJ |
2084 | |
2085 | ||
fa958513 DJ |
2086 | if test "${srcdir}" = "."; then |
2087 | if test -n "${with_build_subdir}"; then | |
2088 | libgcc_topdir="${srcdir}/../.." | |
2089 | with_target_subdir= | |
2090 | elif test -z "${with_target_subdir}"; then | |
2091 | libgcc_topdir="${srcdir}/.." | |
2092 | else | |
2093 | if test "${with_target_subdir}" != "."; then | |
2094 | libgcc_topdir="${srcdir}/${with_multisrctop}../.." | |
2095 | else | |
2096 | libgcc_topdir="${srcdir}/${with_multisrctop}.." | |
2097 | fi | |
2098 | fi | |
2099 | else | |
2100 | libgcc_topdir="${srcdir}/.." | |
2101 | fi | |
2102 | ||
2103 | ac_aux_dir= | |
5213506e RW |
2104 | for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do |
2105 | for ac_t in install-sh install.sh shtool; do | |
2106 | if test -f "$ac_dir/$ac_t"; then | |
2107 | ac_aux_dir=$ac_dir | |
2108 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2109 | break 2 | |
2110 | fi | |
2111 | done | |
fa958513 DJ |
2112 | done |
2113 | if test -z "$ac_aux_dir"; then | |
5213506e | 2114 | as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5 |
fa958513 | 2115 | fi |
5213506e RW |
2116 | |
2117 | # These three variables are undocumented and unsupported, | |
2118 | # and are intended to be withdrawn in a future Autoconf release. | |
2119 | # They can cause serious problems if a builder's source tree is in a directory | |
2120 | # whose full name contains unusual characters. | |
2121 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2122 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2123 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
fa958513 | 2124 | |
fa958513 | 2125 | |
aca06c90 RO |
2126 | ac_config_headers="$ac_config_headers auto-target.h:config.in" |
2127 | ||
d6efbf5a | 2128 | |
5213506e RW |
2129 | # Check whether --enable-shared was given. |
2130 | if test "${enable_shared+set}" = set; then : | |
2131 | enableval=$enable_shared; | |
fa958513 DJ |
2132 | case $enable_shared in |
2133 | yes | no) ;; | |
2134 | *) | |
2135 | enable_shared=no | |
2136 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2137 | for pkg in $enableval; do | |
2138 | if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then | |
2139 | enable_shared=yes | |
2140 | fi | |
2141 | done | |
2142 | IFS="$ac_save_ifs" | |
2143 | ;; | |
2144 | esac | |
2145 | ||
2146 | else | |
2147 | enable_shared=yes | |
5213506e RW |
2148 | fi |
2149 | ||
d6efbf5a DJ |
2150 | |
2151 | ||
2077db1b CT |
2152 | # Check whether --enable-vtable-verify was given. |
2153 | if test "${enable_vtable_verify+set}" = set; then : | |
2154 | enableval=$enable_vtable_verify; case "$enableval" in | |
2155 | yes) enable_vtable_verify=yes ;; | |
2156 | no) enable_vtable_verify=no ;; | |
2157 | *) enable_vtable_verify=no;; | |
2158 | esac | |
2159 | else | |
2160 | enable_vtable_verify=no | |
2161 | fi | |
2162 | ||
2163 | ||
2164 | ||
f9989b51 RO |
2165 | # Make sure we can run config.sub. |
2166 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2167 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2168 | ||
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2170 | $as_echo_n "checking build system type... " >&6; } | |
2171 | if test "${ac_cv_build+set}" = set; then : | |
2172 | $as_echo_n "(cached) " >&6 | |
2173 | else | |
2174 | ac_build_alias=$build_alias | |
2175 | test "x$ac_build_alias" = x && | |
2176 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2177 | test "x$ac_build_alias" = x && | |
2178 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2179 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2180 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2181 | ||
2182 | fi | |
2183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2184 | $as_echo "$ac_cv_build" >&6; } | |
2185 | case $ac_cv_build in | |
2186 | *-*-*) ;; | |
2187 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2188 | esac | |
2189 | build=$ac_cv_build | |
2190 | ac_save_IFS=$IFS; IFS='-' | |
2191 | set x $ac_cv_build | |
2192 | shift | |
2193 | build_cpu=$1 | |
2194 | build_vendor=$2 | |
2195 | shift; shift | |
2196 | # Remember, the first character of IFS is used to create $*, | |
2197 | # except with old shells: | |
2198 | build_os=$* | |
2199 | IFS=$ac_save_IFS | |
2200 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2201 | ||
2202 | ||
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2204 | $as_echo_n "checking host system type... " >&6; } | |
2205 | if test "${ac_cv_host+set}" = set; then : | |
2206 | $as_echo_n "(cached) " >&6 | |
2207 | else | |
2208 | if test "x$host_alias" = x; then | |
2209 | ac_cv_host=$ac_cv_build | |
2210 | else | |
2211 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2212 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2213 | fi | |
2214 | ||
2215 | fi | |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2217 | $as_echo "$ac_cv_host" >&6; } | |
2218 | case $ac_cv_host in | |
2219 | *-*-*) ;; | |
2220 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2221 | esac | |
2222 | host=$ac_cv_host | |
2223 | ac_save_IFS=$IFS; IFS='-' | |
2224 | set x $ac_cv_host | |
2225 | shift | |
2226 | host_cpu=$1 | |
2227 | host_vendor=$2 | |
2228 | shift; shift | |
2229 | # Remember, the first character of IFS is used to create $*, | |
2230 | # except with old shells: | |
2231 | host_os=$* | |
2232 | IFS=$ac_save_IFS | |
2233 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2234 | ||
2235 | ||
2236 | ||
2237 | ||
5d1c8e77 | 2238 | |
f9989b51 RO |
2239 | |
2240 | case "${host}" in | |
2241 | # PIC is the default on some targets or must not be used. | |
2242 | *-*-darwin*) | |
2243 | # PIC is the default on this platform | |
2244 | # Common symbols not allowed in MH_DYLIB files | |
2245 | PICFLAG=-fno-common | |
2246 | ;; | |
2247 | alpha*-dec-osf5*) | |
2248 | # PIC is the default. | |
2249 | ;; | |
2250 | hppa*64*-*-hpux*) | |
2251 | # PIC is the default for 64-bit PA HP-UX. | |
2252 | ;; | |
e9fd8c19 KT |
2253 | i[34567]86-*-cygwin* | x86_64-*-cygwin*) |
2254 | ;; | |
2255 | i[34567]86-*-mingw* | x86_64-*-mingw*) | |
f9989b51 | 2256 | ;; |
daecebc8 | 2257 | i[34567]86-*-interix[3-9]*) |
f9989b51 RO |
2258 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
2259 | # Instead, we relocate shared libraries at runtime. | |
2260 | ;; | |
5d1c8e77 | 2261 | i[34567]86-*-nto-qnx*) |
f9989b51 RO |
2262 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
2263 | # it will coredump. | |
2264 | PICFLAG='-fPIC -shared' | |
2265 | ;; | |
5d1c8e77 | 2266 | i[34567]86-pc-msdosdjgpp*) |
f9989b51 RO |
2267 | # DJGPP does not support shared libraries at all. |
2268 | ;; | |
2269 | ia64*-*-hpux*) | |
2270 | # On IA64 HP-UX, PIC is the default but the pic flag | |
2271 | # sets the default TLS model and affects inlining. | |
f9989b51 RO |
2272 | PICFLAG=-fPIC |
2273 | ;; | |
2274 | mips-sgi-irix6*) | |
2275 | # PIC is the default. | |
2276 | ;; | |
2277 | rs6000-ibm-aix* | powerpc-ibm-aix*) | |
2278 | # All AIX code is PIC. | |
2279 | ;; | |
2280 | ||
2281 | # Some targets support both -fPIC and -fpic, but prefer the latter. | |
2282 | # FIXME: Why? | |
5d1c8e77 | 2283 | i[34567]86-*-* | x86_64-*-*) |
f9989b51 RO |
2284 | PICFLAG=-fpic |
2285 | ;; | |
f9989b51 | 2286 | # FIXME: Override -fPIC default in libgcc only? |
5d1c8e77 | 2287 | sh-*-linux* | sh[2346lbe]*-*-linux*) |
f9989b51 RO |
2288 | PICFLAG=-fpic |
2289 | ;; | |
2290 | # FIXME: Simplify to sh*-*-netbsd*? | |
2291 | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ | |
2292 | sh64-*-netbsd* | sh64l*-*-netbsd*) | |
2293 | PICFLAG=-fpic | |
2294 | ;; | |
f9989b51 RO |
2295 | # Default to -fPIC unless specified otherwise. |
2296 | *) | |
2297 | PICFLAG=-fPIC | |
2298 | ;; | |
2299 | esac | |
2300 | ||
5d1c8e77 RO |
2301 | # If the user explicitly uses -fpic/-fPIC, keep that. |
2302 | case "${CFLAGS}" in | |
2303 | *-fpic*) | |
2304 | PICFLAG=-fpic | |
2305 | ;; | |
2306 | *-fPIC*) | |
2307 | PICFLAG=-fPIC | |
2308 | ;; | |
2309 | esac | |
2310 | ||
f9989b51 RO |
2311 | |
2312 | ||
5213506e RW |
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2314 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2315 | # Check whether --enable-version-specific-runtime-libs was given. | |
2316 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2317 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
d6efbf5a DJ |
2318 | yes) version_specific_libs=yes ;; |
2319 | no) version_specific_libs=no ;; | |
5213506e | 2320 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
d6efbf5a DJ |
2321 | esac |
2322 | else | |
2323 | version_specific_libs=no | |
5213506e RW |
2324 | fi |
2325 | ||
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2327 | $as_echo "$version_specific_libs" >&6; } | |
fa958513 | 2328 | |
14e8fc8b | 2329 | |
5213506e RW |
2330 | # Check whether --with-slibdir was given. |
2331 | if test "${with_slibdir+set}" = set; then : | |
2332 | withval=$with_slibdir; slibdir="$with_slibdir" | |
fa958513 | 2333 | else |
d6efbf5a | 2334 | if test "${version_specific_libs}" = yes; then |
fa958513 | 2335 | slibdir='$(libsubdir)' |
d6efbf5a DJ |
2336 | elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then |
2337 | slibdir='$(exec_prefix)/$(host_noncanonical)/lib' | |
fa958513 DJ |
2338 | else |
2339 | slibdir='$(libdir)' | |
2340 | fi | |
5213506e RW |
2341 | fi |
2342 | ||
fa958513 DJ |
2343 | |
2344 | ||
6efbd53f RW |
2345 | # Command-line options. |
2346 | # Very limited version of AC_MAINTAINER_MODE. | |
5213506e RW |
2347 | # Check whether --enable-maintainer-mode was given. |
2348 | if test "${enable_maintainer_mode+set}" = set; then : | |
2349 | enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in | |
6efbd53f RW |
2350 | yes) MAINT='' ;; |
2351 | no) MAINT='#' ;; | |
5213506e | 2352 | *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;; |
6efbd53f RW |
2353 | esac |
2354 | maintainer_mode=${enableval} | |
2355 | else | |
2356 | MAINT='#' | |
5213506e RW |
2357 | fi |
2358 | ||
6efbd53f | 2359 | |
fa958513 DJ |
2360 | # Find a good install program. We prefer a C program (faster), |
2361 | # so one script is as good as another. But avoid the broken or | |
2362 | # incompatible versions: | |
2363 | # SysV /etc/install, /usr/sbin/install | |
2364 | # SunOS /usr/etc/install | |
2365 | # IRIX /sbin/install | |
2366 | # AIX /bin/install | |
2367 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2368 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2369 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2370 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2371 | # OS/2's system install, which has a completely different semantic | |
2372 | # ./install, which can be erroneously created by make from ./install.sh. | |
5213506e RW |
2373 | # Reject install programs that cannot install multiple files. |
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2375 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
fa958513 | 2376 | if test -z "$INSTALL"; then |
5213506e RW |
2377 | if test "${ac_cv_path_install+set}" = set; then : |
2378 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2379 | else |
2380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2381 | for as_dir in $PATH | |
2382 | do | |
2383 | IFS=$as_save_IFS | |
2384 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2385 | # Account for people who put trailing slashes in PATH elements. |
2386 | case $as_dir/ in #(( | |
2387 | ./ | .// | /[cC]/* | \ | |
fa958513 | 2388 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2389 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
fa958513 DJ |
2390 | /usr/ucb/* ) ;; |
2391 | *) | |
2392 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2393 | # Don't use installbsd from OSF since it installs stuff as root | |
2394 | # by default. | |
2395 | for ac_prog in ginstall scoinst install; do | |
2396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2397 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
fa958513 DJ |
2398 | if test $ac_prog = install && |
2399 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2400 | # AIX install. It has an incompatible calling convention. | |
2401 | : | |
2402 | elif test $ac_prog = install && | |
2403 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2404 | # program-specific install script used by HP pwplus--don't use. | |
2405 | : | |
2406 | else | |
5213506e RW |
2407 | rm -rf conftest.one conftest.two conftest.dir |
2408 | echo one > conftest.one | |
2409 | echo two > conftest.two | |
2410 | mkdir conftest.dir | |
2411 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2412 | test -s conftest.one && test -s conftest.two && | |
2413 | test -s conftest.dir/conftest.one && | |
2414 | test -s conftest.dir/conftest.two | |
2415 | then | |
2416 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2417 | break 3 | |
2418 | fi | |
fa958513 DJ |
2419 | fi |
2420 | fi | |
2421 | done | |
2422 | done | |
2423 | ;; | |
2424 | esac | |
fa958513 | 2425 | |
5213506e RW |
2426 | done |
2427 | IFS=$as_save_IFS | |
2428 | ||
2429 | rm -rf conftest.one conftest.two conftest.dir | |
fa958513 DJ |
2430 | |
2431 | fi | |
2432 | if test "${ac_cv_path_install+set}" = set; then | |
2433 | INSTALL=$ac_cv_path_install | |
2434 | else | |
5213506e RW |
2435 | # As a last resort, use the slow shell script. Don't cache a |
2436 | # value for INSTALL within a source directory, because that will | |
fa958513 | 2437 | # break other packages using the cache if that directory is |
5213506e | 2438 | # removed, or if the value is a relative name. |
fa958513 DJ |
2439 | INSTALL=$ac_install_sh |
2440 | fi | |
2441 | fi | |
5213506e RW |
2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2443 | $as_echo "$INSTALL" >&6; } | |
fa958513 DJ |
2444 | |
2445 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2446 | # It thinks the first close brace ends the variable substitution. | |
2447 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2448 | ||
2449 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2450 | ||
2451 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2452 | ||
2453 | ||
2454 | for ac_prog in gawk mawk nawk awk | |
2455 | do | |
2456 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2457 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2459 | $as_echo_n "checking for $ac_word... " >&6; } | |
2460 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2461 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2462 | else |
2463 | if test -n "$AWK"; then | |
2464 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2465 | else | |
2466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2467 | for as_dir in $PATH | |
2468 | do | |
2469 | IFS=$as_save_IFS | |
2470 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2471 | for ac_exec_ext in '' $ac_executable_extensions; do |
2472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2473 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 2474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2475 | break 2 |
2476 | fi | |
2477 | done | |
5213506e RW |
2478 | done |
2479 | IFS=$as_save_IFS | |
fa958513 DJ |
2480 | |
2481 | fi | |
2482 | fi | |
2483 | AWK=$ac_cv_prog_AWK | |
2484 | if test -n "$AWK"; then | |
5213506e RW |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2486 | $as_echo "$AWK" >&6; } | |
fa958513 | 2487 | else |
5213506e RW |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2489 | $as_echo "no" >&6; } | |
fa958513 DJ |
2490 | fi |
2491 | ||
5213506e | 2492 | |
fa958513 DJ |
2493 | test -n "$AWK" && break |
2494 | done | |
2495 | ||
2496 | # We need awk; bail out if it's missing. | |
2497 | case ${AWK} in | |
5213506e | 2498 | "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;; |
fa958513 DJ |
2499 | esac |
2500 | ||
fa958513 DJ |
2501 | |
2502 | case ${build_alias} in | |
2503 | "") build_noncanonical=${build} ;; | |
2504 | *) build_noncanonical=${build_alias} ;; | |
2505 | esac | |
2506 | ||
2507 | case ${host_alias} in | |
2508 | "") host_noncanonical=${build_noncanonical} ;; | |
2509 | *) host_noncanonical=${host_alias} ;; | |
2510 | esac | |
2511 | ||
2512 | ||
2513 | ||
14e8fc8b PB |
2514 | case ${target_alias} in |
2515 | "") target_noncanonical=${host_noncanonical} ;; | |
2516 | *) target_noncanonical=${target_alias} ;; | |
2517 | esac | |
2518 | ||
2519 | ||
58c741a6 DK |
2520 | |
2521 | ||
14e8fc8b PB |
2522 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2523 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2524 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2525 | # However, they still use the build modules, because the corresponding | |
2526 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2527 | # finishes. So: | |
2528 | # - build_subdir is where we find build modules, and never changes. | |
2529 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2530 | ||
2531 | # Prefix 'build-' so this never conflicts with target_subdir. | |
2532 | build_subdir="build-${build_noncanonical}" | |
2533 | ||
5213506e RW |
2534 | # Check whether --with-build-libsubdir was given. |
2535 | if test "${with_build_libsubdir+set}" = set; then : | |
2536 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
14e8fc8b PB |
2537 | else |
2538 | build_libsubdir="$build_subdir" | |
5213506e RW |
2539 | fi |
2540 | ||
14e8fc8b PB |
2541 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2542 | if ( test $srcdir = . && test -d gcc ) \ | |
2543 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2544 | host_subdir="host-${host_noncanonical}" | |
2545 | else | |
2546 | host_subdir=. | |
2547 | fi | |
2548 | # No prefix. | |
2549 | target_subdir=${target_noncanonical} | |
2550 | ||
fa958513 | 2551 | |
58c741a6 DK |
2552 | # Calculate toolexeclibdir |
2553 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2554 | case ${version_specific_libs} in | |
2555 | yes) | |
2556 | # Need the gcc compiler version to know where to install libraries | |
2557 | # and header files if --enable-version-specific-runtime-libs option | |
2558 | # is selected. | |
2559 | toolexecdir='$(libdir)/gcc/$(target_noncanonical)' | |
2560 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
2561 | ;; | |
2562 | no) | |
2563 | if test -n "$with_cross_host" && | |
2564 | test x"$with_cross_host" != x"no"; then | |
2565 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2566 | toolexecdir='$(exec_prefix)/$(target_noncanonical)' | |
2567 | toolexeclibdir='$(toolexecdir)/lib' | |
2568 | else | |
2569 | toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' | |
2570 | toolexeclibdir='$(libdir)' | |
2571 | fi | |
2572 | multi_os_directory=`$CC -print-multi-os-directory` | |
2573 | case $multi_os_directory in | |
2574 | .) ;; # Avoid trailing /. | |
2575 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2576 | esac | |
2577 | ;; | |
2578 | esac | |
2579 | ||
2580 | ||
2581 | ||
fa958513 DJ |
2582 | if test -n "$ac_tool_prefix"; then |
2583 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
2584 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2586 | $as_echo_n "checking for $ac_word... " >&6; } | |
2587 | if test "${ac_cv_prog_AR+set}" = set; then : | |
2588 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2589 | else |
2590 | if test -n "$AR"; then | |
2591 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2592 | else | |
2593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2594 | for as_dir in $PATH | |
2595 | do | |
2596 | IFS=$as_save_IFS | |
2597 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2598 | for ac_exec_ext in '' $ac_executable_extensions; do |
2599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2600 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 2601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2602 | break 2 |
2603 | fi | |
2604 | done | |
5213506e RW |
2605 | done |
2606 | IFS=$as_save_IFS | |
fa958513 DJ |
2607 | |
2608 | fi | |
2609 | fi | |
2610 | AR=$ac_cv_prog_AR | |
2611 | if test -n "$AR"; then | |
5213506e RW |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
2613 | $as_echo "$AR" >&6; } | |
fa958513 | 2614 | else |
5213506e RW |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2616 | $as_echo "no" >&6; } | |
fa958513 DJ |
2617 | fi |
2618 | ||
5213506e | 2619 | |
fa958513 DJ |
2620 | fi |
2621 | if test -z "$ac_cv_prog_AR"; then | |
2622 | ac_ct_AR=$AR | |
2623 | # Extract the first word of "ar", so it can be a program name with args. | |
2624 | set dummy ar; ac_word=$2 | |
5213506e RW |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2626 | $as_echo_n "checking for $ac_word... " >&6; } | |
2627 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
2628 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2629 | else |
2630 | if test -n "$ac_ct_AR"; then | |
2631 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
2632 | else | |
2633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2634 | for as_dir in $PATH | |
2635 | do | |
2636 | IFS=$as_save_IFS | |
2637 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2638 | for ac_exec_ext in '' $ac_executable_extensions; do |
2639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2640 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 2641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2642 | break 2 |
2643 | fi | |
2644 | done | |
5213506e RW |
2645 | done |
2646 | IFS=$as_save_IFS | |
fa958513 DJ |
2647 | |
2648 | fi | |
2649 | fi | |
2650 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
2651 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
2653 | $as_echo "$ac_ct_AR" >&6; } | |
fa958513 | 2654 | else |
5213506e RW |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2656 | $as_echo "no" >&6; } | |
fa958513 DJ |
2657 | fi |
2658 | ||
5213506e RW |
2659 | if test "x$ac_ct_AR" = x; then |
2660 | AR="" | |
2661 | else | |
2662 | case $cross_compiling:$ac_tool_warned in | |
2663 | yes:) | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2666 | ac_tool_warned=yes ;; | |
2667 | esac | |
2668 | AR=$ac_ct_AR | |
2669 | fi | |
fa958513 DJ |
2670 | else |
2671 | AR="$ac_cv_prog_AR" | |
2672 | fi | |
2673 | ||
2674 | if test -n "$ac_tool_prefix"; then | |
2675 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
2676 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2678 | $as_echo_n "checking for $ac_word... " >&6; } | |
2679 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
2680 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2681 | else |
2682 | if test -n "$LIPO"; then | |
2683 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
2684 | else | |
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2686 | for as_dir in $PATH | |
2687 | do | |
2688 | IFS=$as_save_IFS | |
2689 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2690 | for ac_exec_ext in '' $ac_executable_extensions; do |
2691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2692 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 2693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2694 | break 2 |
2695 | fi | |
2696 | done | |
5213506e RW |
2697 | done |
2698 | IFS=$as_save_IFS | |
fa958513 DJ |
2699 | |
2700 | fi | |
2701 | fi | |
2702 | LIPO=$ac_cv_prog_LIPO | |
2703 | if test -n "$LIPO"; then | |
5213506e RW |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
2705 | $as_echo "$LIPO" >&6; } | |
fa958513 | 2706 | else |
5213506e RW |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2708 | $as_echo "no" >&6; } | |
fa958513 DJ |
2709 | fi |
2710 | ||
5213506e | 2711 | |
fa958513 DJ |
2712 | fi |
2713 | if test -z "$ac_cv_prog_LIPO"; then | |
2714 | ac_ct_LIPO=$LIPO | |
2715 | # Extract the first word of "lipo", so it can be a program name with args. | |
2716 | set dummy lipo; ac_word=$2 | |
5213506e RW |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2718 | $as_echo_n "checking for $ac_word... " >&6; } | |
2719 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
2720 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2721 | else |
2722 | if test -n "$ac_ct_LIPO"; then | |
2723 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
2724 | else | |
2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2726 | for as_dir in $PATH | |
2727 | do | |
2728 | IFS=$as_save_IFS | |
2729 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2730 | for ac_exec_ext in '' $ac_executable_extensions; do |
2731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2732 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 2733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2734 | break 2 |
2735 | fi | |
2736 | done | |
5213506e RW |
2737 | done |
2738 | IFS=$as_save_IFS | |
fa958513 | 2739 | |
fa958513 DJ |
2740 | fi |
2741 | fi | |
2742 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
2743 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
2745 | $as_echo "$ac_ct_LIPO" >&6; } | |
fa958513 | 2746 | else |
5213506e RW |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2748 | $as_echo "no" >&6; } | |
fa958513 DJ |
2749 | fi |
2750 | ||
5213506e RW |
2751 | if test "x$ac_ct_LIPO" = x; then |
2752 | LIPO=":" | |
2753 | else | |
2754 | case $cross_compiling:$ac_tool_warned in | |
2755 | yes:) | |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2758 | ac_tool_warned=yes ;; | |
2759 | esac | |
2760 | LIPO=$ac_ct_LIPO | |
2761 | fi | |
fa958513 DJ |
2762 | else |
2763 | LIPO="$ac_cv_prog_LIPO" | |
2764 | fi | |
2765 | ||
2766 | if test -n "$ac_tool_prefix"; then | |
2767 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
2768 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
5213506e RW |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2770 | $as_echo_n "checking for $ac_word... " >&6; } | |
2771 | if test "${ac_cv_prog_NM+set}" = set; then : | |
2772 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2773 | else |
2774 | if test -n "$NM"; then | |
2775 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
2776 | else | |
2777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2778 | for as_dir in $PATH | |
2779 | do | |
2780 | IFS=$as_save_IFS | |
2781 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2782 | for ac_exec_ext in '' $ac_executable_extensions; do |
2783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2784 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
5213506e | 2785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2786 | break 2 |
2787 | fi | |
2788 | done | |
5213506e RW |
2789 | done |
2790 | IFS=$as_save_IFS | |
fa958513 DJ |
2791 | |
2792 | fi | |
2793 | fi | |
2794 | NM=$ac_cv_prog_NM | |
2795 | if test -n "$NM"; then | |
5213506e RW |
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
2797 | $as_echo "$NM" >&6; } | |
fa958513 | 2798 | else |
5213506e RW |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2800 | $as_echo "no" >&6; } | |
fa958513 DJ |
2801 | fi |
2802 | ||
5213506e | 2803 | |
fa958513 DJ |
2804 | fi |
2805 | if test -z "$ac_cv_prog_NM"; then | |
2806 | ac_ct_NM=$NM | |
2807 | # Extract the first word of "nm", so it can be a program name with args. | |
2808 | set dummy nm; ac_word=$2 | |
5213506e RW |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2810 | $as_echo_n "checking for $ac_word... " >&6; } | |
2811 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
2812 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2813 | else |
2814 | if test -n "$ac_ct_NM"; then | |
2815 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
2816 | else | |
2817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2818 | for as_dir in $PATH | |
2819 | do | |
2820 | IFS=$as_save_IFS | |
2821 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2822 | for ac_exec_ext in '' $ac_executable_extensions; do |
2823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2824 | ac_cv_prog_ac_ct_NM="nm" |
5213506e | 2825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2826 | break 2 |
2827 | fi | |
2828 | done | |
5213506e RW |
2829 | done |
2830 | IFS=$as_save_IFS | |
fa958513 DJ |
2831 | |
2832 | fi | |
2833 | fi | |
2834 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
2835 | if test -n "$ac_ct_NM"; then | |
5213506e RW |
2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
2837 | $as_echo "$ac_ct_NM" >&6; } | |
fa958513 | 2838 | else |
5213506e RW |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2840 | $as_echo "no" >&6; } | |
fa958513 DJ |
2841 | fi |
2842 | ||
5213506e RW |
2843 | if test "x$ac_ct_NM" = x; then |
2844 | NM="" | |
2845 | else | |
2846 | case $cross_compiling:$ac_tool_warned in | |
2847 | yes:) | |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2850 | ac_tool_warned=yes ;; | |
2851 | esac | |
2852 | NM=$ac_ct_NM | |
2853 | fi | |
fa958513 DJ |
2854 | else |
2855 | NM="$ac_cv_prog_NM" | |
2856 | fi | |
2857 | ||
2858 | if test -n "$ac_tool_prefix"; then | |
2859 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2860 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2862 | $as_echo_n "checking for $ac_word... " >&6; } | |
2863 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
2864 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2865 | else |
2866 | if test -n "$RANLIB"; then | |
2867 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2868 | else | |
2869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2870 | for as_dir in $PATH | |
2871 | do | |
2872 | IFS=$as_save_IFS | |
2873 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2874 | for ac_exec_ext in '' $ac_executable_extensions; do |
2875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2876 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 2877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2878 | break 2 |
2879 | fi | |
2880 | done | |
5213506e RW |
2881 | done |
2882 | IFS=$as_save_IFS | |
fa958513 DJ |
2883 | |
2884 | fi | |
2885 | fi | |
2886 | RANLIB=$ac_cv_prog_RANLIB | |
2887 | if test -n "$RANLIB"; then | |
5213506e RW |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
2889 | $as_echo "$RANLIB" >&6; } | |
fa958513 | 2890 | else |
5213506e RW |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2892 | $as_echo "no" >&6; } | |
fa958513 DJ |
2893 | fi |
2894 | ||
5213506e | 2895 | |
fa958513 DJ |
2896 | fi |
2897 | if test -z "$ac_cv_prog_RANLIB"; then | |
2898 | ac_ct_RANLIB=$RANLIB | |
2899 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2900 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2902 | $as_echo_n "checking for $ac_word... " >&6; } | |
2903 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
2904 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2905 | else |
2906 | if test -n "$ac_ct_RANLIB"; then | |
2907 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2908 | else | |
2909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2910 | for as_dir in $PATH | |
2911 | do | |
2912 | IFS=$as_save_IFS | |
2913 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2914 | for ac_exec_ext in '' $ac_executable_extensions; do |
2915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2916 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 2917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2918 | break 2 |
2919 | fi | |
2920 | done | |
5213506e RW |
2921 | done |
2922 | IFS=$as_save_IFS | |
fa958513 | 2923 | |
fa958513 DJ |
2924 | fi |
2925 | fi | |
2926 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2927 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
2929 | $as_echo "$ac_ct_RANLIB" >&6; } | |
fa958513 | 2930 | else |
5213506e RW |
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2932 | $as_echo "no" >&6; } | |
fa958513 DJ |
2933 | fi |
2934 | ||
5213506e RW |
2935 | if test "x$ac_ct_RANLIB" = x; then |
2936 | RANLIB=":" | |
2937 | else | |
2938 | case $cross_compiling:$ac_tool_warned in | |
2939 | yes:) | |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2941 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2942 | ac_tool_warned=yes ;; | |
2943 | esac | |
2944 | RANLIB=$ac_ct_RANLIB | |
2945 | fi | |
fa958513 DJ |
2946 | else |
2947 | RANLIB="$ac_cv_prog_RANLIB" | |
2948 | fi | |
2949 | ||
2950 | if test -n "$ac_tool_prefix"; then | |
2951 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2952 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2954 | $as_echo_n "checking for $ac_word... " >&6; } | |
2955 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2956 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2957 | else |
2958 | if test -n "$STRIP"; then | |
2959 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2960 | else | |
2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2962 | for as_dir in $PATH | |
2963 | do | |
2964 | IFS=$as_save_IFS | |
2965 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2966 | for ac_exec_ext in '' $ac_executable_extensions; do |
2967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2968 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2970 | break 2 |
2971 | fi | |
2972 | done | |
5213506e RW |
2973 | done |
2974 | IFS=$as_save_IFS | |
fa958513 DJ |
2975 | |
2976 | fi | |
2977 | fi | |
2978 | STRIP=$ac_cv_prog_STRIP | |
2979 | if test -n "$STRIP"; then | |
5213506e RW |
2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2981 | $as_echo "$STRIP" >&6; } | |
fa958513 | 2982 | else |
5213506e RW |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2984 | $as_echo "no" >&6; } | |
fa958513 DJ |
2985 | fi |
2986 | ||
5213506e | 2987 | |
fa958513 DJ |
2988 | fi |
2989 | if test -z "$ac_cv_prog_STRIP"; then | |
2990 | ac_ct_STRIP=$STRIP | |
2991 | # Extract the first word of "strip", so it can be a program name with args. | |
2992 | set dummy strip; ac_word=$2 | |
5213506e RW |
2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2994 | $as_echo_n "checking for $ac_word... " >&6; } | |
2995 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2996 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2997 | else |
2998 | if test -n "$ac_ct_STRIP"; then | |
2999 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3000 | else | |
3001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3002 | for as_dir in $PATH | |
3003 | do | |
3004 | IFS=$as_save_IFS | |
3005 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3006 | for ac_exec_ext in '' $ac_executable_extensions; do |
3007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 3008 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 3009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3010 | break 2 |
3011 | fi | |
3012 | done | |
5213506e RW |
3013 | done |
3014 | IFS=$as_save_IFS | |
fa958513 | 3015 | |
fa958513 DJ |
3016 | fi |
3017 | fi | |
3018 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3019 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
3021 | $as_echo "$ac_ct_STRIP" >&6; } | |
fa958513 | 3022 | else |
5213506e RW |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3024 | $as_echo "no" >&6; } | |
fa958513 DJ |
3025 | fi |
3026 | ||
5213506e RW |
3027 | if test "x$ac_ct_STRIP" = x; then |
3028 | STRIP=":" | |
3029 | else | |
3030 | case $cross_compiling:$ac_tool_warned in | |
3031 | yes:) | |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3034 | ac_tool_warned=yes ;; | |
3035 | esac | |
3036 | STRIP=$ac_ct_STRIP | |
3037 | fi | |
fa958513 DJ |
3038 | else |
3039 | STRIP="$ac_cv_prog_STRIP" | |
3040 | fi | |
3041 | ||
5213506e RW |
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
3043 | $as_echo_n "checking whether ln -s works... " >&6; } | |
fa958513 DJ |
3044 | LN_S=$as_ln_s |
3045 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3047 | $as_echo "yes" >&6; } | |
fa958513 | 3048 | else |
5213506e RW |
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
3050 | $as_echo "no, using $LN_S" >&6; } | |
fa958513 DJ |
3051 | fi |
3052 | ||
3053 | ||
3054 | ||
3055 | ac_ext=c | |
3056 | ac_cpp='$CPP $CPPFLAGS' | |
3057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3060 | if test -n "$ac_tool_prefix"; then | |
3061 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3062 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3064 | $as_echo_n "checking for $ac_word... " >&6; } | |
3065 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3066 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3067 | else |
3068 | if test -n "$CC"; then | |
3069 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3070 | else | |
3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3072 | for as_dir in $PATH | |
3073 | do | |
3074 | IFS=$as_save_IFS | |
3075 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3076 | for ac_exec_ext in '' $ac_executable_extensions; do |
3077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 3078 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3080 | break 2 |
3081 | fi | |
3082 | done | |
5213506e RW |
3083 | done |
3084 | IFS=$as_save_IFS | |
fa958513 DJ |
3085 | |
3086 | fi | |
3087 | fi | |
3088 | CC=$ac_cv_prog_CC | |
3089 | if test -n "$CC"; then | |
5213506e RW |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3091 | $as_echo "$CC" >&6; } | |
fa958513 | 3092 | else |
5213506e RW |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3094 | $as_echo "no" >&6; } | |
fa958513 DJ |
3095 | fi |
3096 | ||
5213506e | 3097 | |
fa958513 DJ |
3098 | fi |
3099 | if test -z "$ac_cv_prog_CC"; then | |
3100 | ac_ct_CC=$CC | |
3101 | # Extract the first word of "gcc", so it can be a program name with args. | |
3102 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3104 | $as_echo_n "checking for $ac_word... " >&6; } | |
3105 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3106 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3107 | else |
3108 | if test -n "$ac_ct_CC"; then | |
3109 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3110 | else | |
3111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3112 | for as_dir in $PATH | |
3113 | do | |
3114 | IFS=$as_save_IFS | |
3115 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3116 | for ac_exec_ext in '' $ac_executable_extensions; do |
3117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 3118 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3120 | break 2 |
3121 | fi | |
3122 | done | |
5213506e RW |
3123 | done |
3124 | IFS=$as_save_IFS | |
fa958513 DJ |
3125 | |
3126 | fi | |
3127 | fi | |
3128 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3129 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3131 | $as_echo "$ac_ct_CC" >&6; } | |
fa958513 | 3132 | else |
5213506e RW |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3134 | $as_echo "no" >&6; } | |
fa958513 DJ |
3135 | fi |
3136 | ||
5213506e RW |
3137 | if test "x$ac_ct_CC" = x; then |
3138 | CC="" | |
3139 | else | |
3140 | case $cross_compiling:$ac_tool_warned in | |
3141 | yes:) | |
3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3143 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3144 | ac_tool_warned=yes ;; | |
3145 | esac | |
3146 | CC=$ac_ct_CC | |
3147 | fi | |
fa958513 DJ |
3148 | else |
3149 | CC="$ac_cv_prog_CC" | |
3150 | fi | |
3151 | ||
3152 | if test -z "$CC"; then | |
5213506e RW |
3153 | if test -n "$ac_tool_prefix"; then |
3154 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
fa958513 | 3155 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3157 | $as_echo_n "checking for $ac_word... " >&6; } | |
3158 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3159 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3160 | else |
3161 | if test -n "$CC"; then | |
3162 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3163 | else | |
3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3165 | for as_dir in $PATH | |
3166 | do | |
3167 | IFS=$as_save_IFS | |
3168 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3169 | for ac_exec_ext in '' $ac_executable_extensions; do |
3170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 3171 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3173 | break 2 |
3174 | fi | |
3175 | done | |
5213506e RW |
3176 | done |
3177 | IFS=$as_save_IFS | |
fa958513 DJ |
3178 | |
3179 | fi | |
3180 | fi | |
3181 | CC=$ac_cv_prog_CC | |
3182 | if test -n "$CC"; then | |
5213506e RW |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3184 | $as_echo "$CC" >&6; } | |
d6efbf5a | 3185 | else |
5213506e RW |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3187 | $as_echo "no" >&6; } | |
d6efbf5a DJ |
3188 | fi |
3189 | ||
d6efbf5a | 3190 | |
5213506e | 3191 | fi |
fa958513 DJ |
3192 | fi |
3193 | if test -z "$CC"; then | |
3194 | # Extract the first word of "cc", so it can be a program name with args. | |
3195 | set dummy cc; ac_word=$2 | |
5213506e RW |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3197 | $as_echo_n "checking for $ac_word... " >&6; } | |
3198 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3199 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3200 | else |
3201 | if test -n "$CC"; then | |
3202 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3203 | else | |
3204 | ac_prog_rejected=no | |
3205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3206 | for as_dir in $PATH | |
3207 | do | |
3208 | IFS=$as_save_IFS | |
3209 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3210 | for ac_exec_ext in '' $ac_executable_extensions; do |
3211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 DJ |
3212 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3213 | ac_prog_rejected=yes | |
3214 | continue | |
3215 | fi | |
3216 | ac_cv_prog_CC="cc" | |
5213506e | 3217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3218 | break 2 |
3219 | fi | |
3220 | done | |
5213506e RW |
3221 | done |
3222 | IFS=$as_save_IFS | |
fa958513 DJ |
3223 | |
3224 | if test $ac_prog_rejected = yes; then | |
3225 | # We found a bogon in the path, so make sure we never use it. | |
3226 | set dummy $ac_cv_prog_CC | |
3227 | shift | |
3228 | if test $# != 0; then | |
3229 | # We chose a different compiler from the bogus one. | |
3230 | # However, it has the same basename, so the bogon will be chosen | |
3231 | # first if we set CC to just the basename; use the full file name. | |
3232 | shift | |
3233 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3234 | fi | |
3235 | fi | |
3236 | fi | |
3237 | fi | |
3238 | CC=$ac_cv_prog_CC | |
3239 | if test -n "$CC"; then | |
5213506e RW |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3241 | $as_echo "$CC" >&6; } | |
fa958513 | 3242 | else |
5213506e RW |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3244 | $as_echo "no" >&6; } | |
fa958513 DJ |
3245 | fi |
3246 | ||
5213506e | 3247 | |
fa958513 DJ |
3248 | fi |
3249 | if test -z "$CC"; then | |
3250 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3251 | for ac_prog in cl.exe |
fa958513 DJ |
3252 | do |
3253 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3254 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3256 | $as_echo_n "checking for $ac_word... " >&6; } | |
3257 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3258 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3259 | else |
3260 | if test -n "$CC"; then | |
3261 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3262 | else | |
3263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3264 | for as_dir in $PATH | |
3265 | do | |
3266 | IFS=$as_save_IFS | |
3267 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3268 | for ac_exec_ext in '' $ac_executable_extensions; do |
3269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 3270 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3272 | break 2 |
3273 | fi | |
3274 | done | |
5213506e RW |
3275 | done |
3276 | IFS=$as_save_IFS | |
fa958513 DJ |
3277 | |
3278 | fi | |
3279 | fi | |
3280 | CC=$ac_cv_prog_CC | |
3281 | if test -n "$CC"; then | |
5213506e RW |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3283 | $as_echo "$CC" >&6; } | |
fa958513 | 3284 | else |
5213506e RW |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3286 | $as_echo "no" >&6; } | |
fa958513 DJ |
3287 | fi |
3288 | ||
5213506e | 3289 | |
fa958513 DJ |
3290 | test -n "$CC" && break |
3291 | done | |
3292 | fi | |
3293 | if test -z "$CC"; then | |
3294 | ac_ct_CC=$CC | |
5213506e | 3295 | for ac_prog in cl.exe |
fa958513 DJ |
3296 | do |
3297 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3298 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3300 | $as_echo_n "checking for $ac_word... " >&6; } | |
3301 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3302 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3303 | else |
3304 | if test -n "$ac_ct_CC"; then | |
3305 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3306 | else | |
3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3308 | for as_dir in $PATH | |
3309 | do | |
3310 | IFS=$as_save_IFS | |
3311 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3312 | for ac_exec_ext in '' $ac_executable_extensions; do |
3313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 3314 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3316 | break 2 |
3317 | fi | |
3318 | done | |
5213506e RW |
3319 | done |
3320 | IFS=$as_save_IFS | |
fa958513 DJ |
3321 | |
3322 | fi | |
3323 | fi | |
3324 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3325 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3327 | $as_echo "$ac_ct_CC" >&6; } | |
fa958513 | 3328 | else |
5213506e RW |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3330 | $as_echo "no" >&6; } | |
fa958513 DJ |
3331 | fi |
3332 | ||
5213506e | 3333 | |
fa958513 DJ |
3334 | test -n "$ac_ct_CC" && break |
3335 | done | |
3336 | ||
5213506e RW |
3337 | if test "x$ac_ct_CC" = x; then |
3338 | CC="" | |
3339 | else | |
3340 | case $cross_compiling:$ac_tool_warned in | |
3341 | yes:) | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3344 | ac_tool_warned=yes ;; | |
3345 | esac | |
3346 | CC=$ac_ct_CC | |
3347 | fi | |
fa958513 DJ |
3348 | fi |
3349 | ||
3350 | fi | |
3351 | ||
3352 | ||
5213506e RW |
3353 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3354 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3355 | as_fn_error "no acceptable C compiler found in \$PATH | |
3356 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 DJ |
3357 | |
3358 | # Provide some information about the compiler. | |
5213506e RW |
3359 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3360 | set X $ac_compile | |
3361 | ac_compiler=$2 | |
3362 | for ac_option in --version -v -V -qversion; do | |
3363 | { { ac_try="$ac_compiler $ac_option >&5" | |
3364 | case "(($ac_try" in | |
3365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3366 | *) ac_try_echo=$ac_try;; | |
3367 | esac | |
3368 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3369 | $as_echo "$ac_try_echo"; } >&5 | |
3370 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
fa958513 | 3371 | ac_status=$? |
5213506e RW |
3372 | if test -s conftest.err; then |
3373 | sed '10a\ | |
3374 | ... rest of stderr output deleted ... | |
3375 | 10q' conftest.err >conftest.er1 | |
3376 | cat conftest.er1 >&5 | |
3377 | rm -f conftest.er1 conftest.err | |
3378 | fi | |
3379 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3380 | test $ac_status = 0; } | |
3381 | done | |
fa958513 | 3382 | |
5213506e | 3383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3384 | /* end confdefs.h. */ |
3385 | ||
3386 | int | |
3387 | main () | |
3388 | { | |
3389 | ||
3390 | ; | |
3391 | return 0; | |
3392 | } | |
3393 | _ACEOF | |
3394 | # FIXME: Cleanup? | |
5213506e | 3395 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
fa958513 DJ |
3396 | (eval $ac_link) 2>&5 |
3397 | ac_status=$? | |
5213506e RW |
3398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3399 | test $ac_status = 0; }; then : | |
fa958513 DJ |
3400 | gcc_no_link=no |
3401 | else | |
3402 | gcc_no_link=yes | |
3403 | fi | |
fa958513 DJ |
3404 | if test x$gcc_no_link = xyes; then |
3405 | # Setting cross_compile will disable run tests; it will | |
3406 | # also disable AC_CHECK_FILE but that's generally | |
3407 | # correct if we can't link. | |
3408 | cross_compiling=yes | |
3409 | EXEEXT= | |
3410 | else | |
5213506e | 3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3412 | /* end confdefs.h. */ |
3413 | ||
3414 | int | |
3415 | main () | |
3416 | { | |
3417 | ||
3418 | ; | |
3419 | return 0; | |
3420 | } | |
3421 | _ACEOF | |
3422 | ac_clean_files_save=$ac_clean_files | |
5213506e | 3423 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
fa958513 DJ |
3424 | # Try to create an executable without -o first, disregard a.out. |
3425 | # It will help us diagnose broken compilers, and finding out an intuition | |
3426 | # of exeext. | |
5213506e RW |
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3428 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3429 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3430 | ||
3431 | # The possible output files: | |
3432 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3433 | ||
3434 | ac_rmfiles= | |
3435 | for ac_file in $ac_files | |
3436 | do | |
3437 | case $ac_file in | |
3438 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3439 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3440 | esac | |
3441 | done | |
3442 | rm -f $ac_rmfiles | |
3443 | ||
3444 | if { { ac_try="$ac_link_default" | |
3445 | case "(($ac_try" in | |
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3447 | *) ac_try_echo=$ac_try;; | |
3448 | esac | |
3449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3450 | $as_echo "$ac_try_echo"; } >&5 | |
3451 | (eval "$ac_link_default") 2>&5 | |
fa958513 | 3452 | ac_status=$? |
5213506e RW |
3453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3454 | test $ac_status = 0; }; then : | |
3455 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3456 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3457 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3458 | # so that the user can short-circuit this test for compilers unknown to | |
3459 | # Autoconf. | |
3460 | for ac_file in $ac_files '' | |
fa958513 DJ |
3461 | do |
3462 | test -f "$ac_file" || continue | |
3463 | case $ac_file in | |
5213506e | 3464 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
fa958513 DJ |
3465 | ;; |
3466 | [ab].out ) | |
3467 | # We found the default executable, but exeext='' is most | |
3468 | # certainly right. | |
3469 | break;; | |
3470 | *.* ) | |
5213506e RW |
3471 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3472 | then :; else | |
3473 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3474 | fi | |
3475 | # We set ac_cv_exeext here because the later test for it is not | |
3476 | # safe: cross compilers may not add the suffix if given an `-o' | |
3477 | # argument, so we may need to know it at that point already. | |
3478 | # Even if this section looks crufty: it has the advantage of | |
3479 | # actually working. | |
fa958513 DJ |
3480 | break;; |
3481 | * ) | |
3482 | break;; | |
3483 | esac | |
3484 | done | |
5213506e RW |
3485 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3486 | ||
fa958513 | 3487 | else |
5213506e RW |
3488 | ac_file='' |
3489 | fi | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3491 | $as_echo "$ac_file" >&6; } | |
3492 | if test -z "$ac_file"; then : | |
3493 | $as_echo "$as_me: failed program was:" >&5 | |
fa958513 DJ |
3494 | sed 's/^/| /' conftest.$ac_ext >&5 |
3495 | ||
5213506e RW |
3496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3498 | { as_fn_set_status 77 | |
3499 | as_fn_error "C compiler cannot create executables | |
3500 | See \`config.log' for more details." "$LINENO" 5; }; } | |
fa958513 | 3501 | fi |
fa958513 | 3502 | ac_exeext=$ac_cv_exeext |
fa958513 | 3503 | |
5213506e | 3504 | # Check that the compiler produces executables we can run. If not, either |
fa958513 | 3505 | # the compiler is broken, or we cross compile. |
5213506e RW |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3507 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
fa958513 DJ |
3508 | # If not cross compiling, check that we can run a simple program. |
3509 | if test "$cross_compiling" != yes; then | |
3510 | if { ac_try='./$ac_file' | |
5213506e RW |
3511 | { { case "(($ac_try" in |
3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3513 | *) ac_try_echo=$ac_try;; | |
3514 | esac | |
3515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3516 | $as_echo "$ac_try_echo"; } >&5 | |
3517 | (eval "$ac_try") 2>&5 | |
fa958513 | 3518 | ac_status=$? |
5213506e RW |
3519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3520 | test $ac_status = 0; }; }; then | |
fa958513 DJ |
3521 | cross_compiling=no |
3522 | else | |
3523 | if test "$cross_compiling" = maybe; then | |
3524 | cross_compiling=yes | |
3525 | else | |
5213506e RW |
3526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3528 | as_fn_error "cannot run C compiled programs. | |
fa958513 | 3529 | If you meant to cross compile, use \`--host'. |
5213506e | 3530 | See \`config.log' for more details." "$LINENO" 5; } |
fa958513 DJ |
3531 | fi |
3532 | fi | |
3533 | fi | |
5213506e RW |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3535 | $as_echo "yes" >&6; } | |
fa958513 | 3536 | |
5213506e | 3537 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
fa958513 | 3538 | ac_clean_files=$ac_clean_files_save |
5213506e | 3539 | # Check that the compiler produces executables we can run. If not, either |
fa958513 | 3540 | # the compiler is broken, or we cross compile. |
5213506e RW |
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3542 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3544 | $as_echo "$cross_compiling" >&6; } | |
3545 | ||
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3547 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3548 | if { { ac_try="$ac_link" | |
3549 | case "(($ac_try" in | |
3550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3551 | *) ac_try_echo=$ac_try;; | |
3552 | esac | |
3553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3554 | $as_echo "$ac_try_echo"; } >&5 | |
3555 | (eval "$ac_link") 2>&5 | |
fa958513 | 3556 | ac_status=$? |
5213506e RW |
3557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3558 | test $ac_status = 0; }; then : | |
fa958513 DJ |
3559 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3560 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3561 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3562 | # `rm'. | |
3563 | for ac_file in conftest.exe conftest conftest.*; do | |
3564 | test -f "$ac_file" || continue | |
3565 | case $ac_file in | |
5213506e | 3566 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
fa958513 | 3567 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
fa958513 DJ |
3568 | break;; |
3569 | * ) break;; | |
3570 | esac | |
3571 | done | |
3572 | else | |
5213506e RW |
3573 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3575 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3576 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 | 3577 | fi |
fa958513 | 3578 | rm -f conftest$ac_cv_exeext |
5213506e RW |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3580 | $as_echo "$ac_cv_exeext" >&6; } | |
fa958513 DJ |
3581 | |
3582 | rm -f conftest.$ac_ext | |
3583 | EXEEXT=$ac_cv_exeext | |
3584 | ac_exeext=$EXEEXT | |
3585 | fi | |
5213506e RW |
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3587 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3588 | if test "${ac_cv_objext+set}" = set; then : | |
3589 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3590 | else |
5213506e | 3591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3592 | /* end confdefs.h. */ |
3593 | ||
3594 | int | |
3595 | main () | |
3596 | { | |
3597 | ||
3598 | ; | |
3599 | return 0; | |
3600 | } | |
3601 | _ACEOF | |
3602 | rm -f conftest.o conftest.obj | |
5213506e RW |
3603 | if { { ac_try="$ac_compile" |
3604 | case "(($ac_try" in | |
3605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3606 | *) ac_try_echo=$ac_try;; | |
3607 | esac | |
3608 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3609 | $as_echo "$ac_try_echo"; } >&5 | |
3610 | (eval "$ac_compile") 2>&5 | |
fa958513 | 3611 | ac_status=$? |
5213506e RW |
3612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3613 | test $ac_status = 0; }; then : | |
3614 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3615 | test -f "$ac_file" || continue; | |
fa958513 | 3616 | case $ac_file in |
5213506e | 3617 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
fa958513 DJ |
3618 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3619 | break;; | |
3620 | esac | |
3621 | done | |
3622 | else | |
5213506e | 3623 | $as_echo "$as_me: failed program was:" >&5 |
fa958513 DJ |
3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
3625 | ||
5213506e RW |
3626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3627 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3628 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3629 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 | 3630 | fi |
fa958513 DJ |
3631 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3632 | fi | |
5213506e RW |
3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3634 | $as_echo "$ac_cv_objext" >&6; } | |
fa958513 DJ |
3635 | OBJEXT=$ac_cv_objext |
3636 | ac_objext=$OBJEXT | |
5213506e RW |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3638 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3639 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3640 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3641 | else |
5213506e | 3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3643 | /* end confdefs.h. */ |
3644 | ||
3645 | int | |
3646 | main () | |
3647 | { | |
3648 | #ifndef __GNUC__ | |
3649 | choke me | |
3650 | #endif | |
3651 | ||
3652 | ; | |
3653 | return 0; | |
3654 | } | |
3655 | _ACEOF | |
5213506e | 3656 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3657 | ac_compiler_gnu=yes |
3658 | else | |
5213506e | 3659 | ac_compiler_gnu=no |
fa958513 | 3660 | fi |
5213506e | 3661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 DJ |
3662 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3663 | ||
3664 | fi | |
5213506e RW |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3666 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3667 | if test $ac_compiler_gnu = yes; then | |
3668 | GCC=yes | |
3669 | else | |
3670 | GCC= | |
3671 | fi | |
fa958513 DJ |
3672 | ac_test_CFLAGS=${CFLAGS+set} |
3673 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3675 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3676 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3677 | $as_echo_n "(cached) " >&6 | |
3678 | else | |
3679 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3680 | ac_c_werror_flag=yes | |
3681 | ac_cv_prog_cc_g=no | |
3682 | CFLAGS="-g" | |
3683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fa958513 DJ |
3684 | /* end confdefs.h. */ |
3685 | ||
3686 | int | |
3687 | main () | |
3688 | { | |
3689 | ||
3690 | ; | |
3691 | return 0; | |
3692 | } | |
3693 | _ACEOF | |
5213506e | 3694 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3695 | ac_cv_prog_cc_g=yes |
3696 | else | |
5213506e RW |
3697 | CFLAGS="" |
3698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3699 | /* end confdefs.h. */ | |
3700 | ||
3701 | int | |
3702 | main () | |
3703 | { | |
3704 | ||
3705 | ; | |
3706 | return 0; | |
3707 | } | |
3708 | _ACEOF | |
3709 | if ac_fn_c_try_compile "$LINENO"; then : | |
3710 | ||
3711 | else | |
3712 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3713 | CFLAGS="-g" | |
3714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3715 | /* end confdefs.h. */ | |
3716 | ||
3717 | int | |
3718 | main () | |
3719 | { | |
fa958513 | 3720 | |
5213506e RW |
3721 | ; |
3722 | return 0; | |
3723 | } | |
3724 | _ACEOF | |
3725 | if ac_fn_c_try_compile "$LINENO"; then : | |
3726 | ac_cv_prog_cc_g=yes | |
3727 | fi | |
3728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fa958513 | 3729 | fi |
5213506e | 3730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 | 3731 | fi |
5213506e RW |
3732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3733 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3734 | fi | |
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3736 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
fa958513 DJ |
3737 | if test "$ac_test_CFLAGS" = set; then |
3738 | CFLAGS=$ac_save_CFLAGS | |
3739 | elif test $ac_cv_prog_cc_g = yes; then | |
3740 | if test "$GCC" = yes; then | |
3741 | CFLAGS="-g -O2" | |
3742 | else | |
3743 | CFLAGS="-g" | |
3744 | fi | |
3745 | else | |
3746 | if test "$GCC" = yes; then | |
3747 | CFLAGS="-O2" | |
3748 | else | |
3749 | CFLAGS= | |
3750 | fi | |
3751 | fi | |
5213506e RW |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3753 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3754 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3755 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3756 | else |
5213506e | 3757 | ac_cv_prog_cc_c89=no |
fa958513 | 3758 | ac_save_CC=$CC |
5213506e | 3759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3760 | /* end confdefs.h. */ |
3761 | #include <stdarg.h> | |
3762 | #include <stdio.h> | |
3763 | #include <sys/types.h> | |
3764 | #include <sys/stat.h> | |
3765 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3766 | struct buf { int x; }; | |
3767 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3768 | static char *e (p, i) | |
3769 | char **p; | |
3770 | int i; | |
3771 | { | |
3772 | return p[i]; | |
3773 | } | |
3774 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3775 | { | |
3776 | char *s; | |
3777 | va_list v; | |
3778 | va_start (v,p); | |
3779 | s = g (p, va_arg (v,int)); | |
3780 | va_end (v); | |
3781 | return s; | |
3782 | } | |
3783 | ||
3784 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3785 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3786 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 3787 | as 'x'. The following induces an error, until -std is added to get |
fa958513 DJ |
3788 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3789 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 3790 | that's true only with -std. */ |
fa958513 DJ |
3791 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3792 | ||
5213506e RW |
3793 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3794 | inside strings and character constants. */ | |
3795 | #define FOO(x) 'x' | |
3796 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3797 | ||
fa958513 DJ |
3798 | int test (int i, double x); |
3799 | struct s1 {int (*f) (int a);}; | |
3800 | struct s2 {int (*f) (double a);}; | |
3801 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3802 | int argc; | |
3803 | char **argv; | |
3804 | int | |
3805 | main () | |
3806 | { | |
3807 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3808 | ; | |
3809 | return 0; | |
3810 | } | |
3811 | _ACEOF | |
5213506e RW |
3812 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3813 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
fa958513 DJ |
3814 | do |
3815 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
3816 | if ac_fn_c_try_compile "$LINENO"; then : |
3817 | ac_cv_prog_cc_c89=$ac_arg | |
fa958513 | 3818 | fi |
5213506e RW |
3819 | rm -f core conftest.err conftest.$ac_objext |
3820 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
fa958513 | 3821 | done |
5213506e | 3822 | rm -f conftest.$ac_ext |
fa958513 DJ |
3823 | CC=$ac_save_CC |
3824 | ||
3825 | fi | |
5213506e RW |
3826 | # AC_CACHE_VAL |
3827 | case "x$ac_cv_prog_cc_c89" in | |
3828 | x) | |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3830 | $as_echo "none needed" >&6; } ;; | |
3831 | xno) | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3833 | $as_echo "unsupported" >&6; } ;; | |
fa958513 | 3834 | *) |
5213506e RW |
3835 | CC="$CC $ac_cv_prog_cc_c89" |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3837 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
fa958513 | 3838 | esac |
5213506e | 3839 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
fa958513 | 3840 | |
d6efbf5a | 3841 | fi |
d6efbf5a | 3842 | |
fa958513 DJ |
3843 | ac_ext=c |
3844 | ac_cpp='$CPP $CPPFLAGS' | |
3845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3848 | ||
3849 | ac_ext=c | |
3850 | ac_cpp='$CPP $CPPFLAGS' | |
3851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3855 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
fa958513 DJ |
3856 | # On Suns, sometimes $CPP names a directory. |
3857 | if test -n "$CPP" && test -d "$CPP"; then | |
3858 | CPP= | |
3859 | fi | |
3860 | if test -z "$CPP"; then | |
5213506e RW |
3861 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3862 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3863 | else |
3864 | # Double quotes because CPP needs to be expanded | |
3865 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3866 | do | |
3867 | ac_preproc_ok=false | |
3868 | for ac_c_preproc_warn_flag in '' yes | |
3869 | do | |
3870 | # Use a header file that comes with gcc, so configuring glibc | |
3871 | # with a fresh cross-compiler works. | |
3872 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3873 | # <limits.h> exists even on freestanding compilers. | |
3874 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3875 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3877 | /* end confdefs.h. */ |
3878 | #ifdef __STDC__ | |
3879 | # include <limits.h> | |
3880 | #else | |
3881 | # include <assert.h> | |
3882 | #endif | |
3883 | Syntax error | |
3884 | _ACEOF | |
5213506e | 3885 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 | 3886 | |
5213506e | 3887 | else |
fa958513 DJ |
3888 | # Broken: fails on valid input. |
3889 | continue | |
3890 | fi | |
3891 | rm -f conftest.err conftest.$ac_ext | |
3892 | ||
5213506e | 3893 | # OK, works on sane cases. Now check whether nonexistent headers |
fa958513 | 3894 | # can be detected and how. |
5213506e | 3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3896 | /* end confdefs.h. */ |
3897 | #include <ac_nonexistent.h> | |
3898 | _ACEOF | |
5213506e | 3899 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 DJ |
3900 | # Broken: success on invalid input. |
3901 | continue | |
3902 | else | |
fa958513 DJ |
3903 | # Passes both tests. |
3904 | ac_preproc_ok=: | |
3905 | break | |
3906 | fi | |
3907 | rm -f conftest.err conftest.$ac_ext | |
3908 | ||
3909 | done | |
3910 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3911 | rm -f conftest.err conftest.$ac_ext | |
5213506e | 3912 | if $ac_preproc_ok; then : |
fa958513 DJ |
3913 | break |
3914 | fi | |
3915 | ||
3916 | done | |
3917 | ac_cv_prog_CPP=$CPP | |
3918 | ||
3919 | fi | |
3920 | CPP=$ac_cv_prog_CPP | |
3921 | else | |
3922 | ac_cv_prog_CPP=$CPP | |
3923 | fi | |
5213506e RW |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3925 | $as_echo "$CPP" >&6; } | |
fa958513 DJ |
3926 | ac_preproc_ok=false |
3927 | for ac_c_preproc_warn_flag in '' yes | |
3928 | do | |
3929 | # Use a header file that comes with gcc, so configuring glibc | |
3930 | # with a fresh cross-compiler works. | |
3931 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3932 | # <limits.h> exists even on freestanding compilers. | |
3933 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3934 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3936 | /* end confdefs.h. */ |
3937 | #ifdef __STDC__ | |
3938 | # include <limits.h> | |
3939 | #else | |
3940 | # include <assert.h> | |
3941 | #endif | |
3942 | Syntax error | |
3943 | _ACEOF | |
5213506e | 3944 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 | 3945 | |
5213506e | 3946 | else |
fa958513 DJ |
3947 | # Broken: fails on valid input. |
3948 | continue | |
3949 | fi | |
3950 | rm -f conftest.err conftest.$ac_ext | |
3951 | ||
5213506e | 3952 | # OK, works on sane cases. Now check whether nonexistent headers |
fa958513 | 3953 | # can be detected and how. |
5213506e | 3954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3955 | /* end confdefs.h. */ |
3956 | #include <ac_nonexistent.h> | |
3957 | _ACEOF | |
5213506e | 3958 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 DJ |
3959 | # Broken: success on invalid input. |
3960 | continue | |
3961 | else | |
fa958513 DJ |
3962 | # Passes both tests. |
3963 | ac_preproc_ok=: | |
3964 | break | |
3965 | fi | |
3966 | rm -f conftest.err conftest.$ac_ext | |
3967 | ||
3968 | done | |
3969 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3970 | rm -f conftest.err conftest.$ac_ext | |
5213506e RW |
3971 | if $ac_preproc_ok; then : |
3972 | ||
fa958513 | 3973 | else |
5213506e RW |
3974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3976 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3977 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 DJ |
3978 | fi |
3979 | ||
3980 | ac_ext=c | |
3981 | ac_cpp='$CPP $CPPFLAGS' | |
3982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3985 | ||
3986 | ||
3987 | ac_c_preproc_warn_flag=yes | |
3988 | ||
fa958513 | 3989 | |
569dc494 | 3990 | |
569dc494 RO |
3991 | # The cast to long int works around a bug in the HP C Compiler |
3992 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
3993 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
3994 | # This bug is HP SR number 8606223364. | |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | |
3996 | $as_echo_n "checking size of double... " >&6; } | |
3997 | if test "${ac_cv_sizeof_double+set}" = set; then : | |
3998 | $as_echo_n "(cached) " >&6 | |
3999 | else | |
4000 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | |
4001 | ||
4002 | else | |
4003 | if test "$ac_cv_type_double" = yes; then | |
4004 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4006 | { as_fn_set_status 77 | |
4007 | as_fn_error "cannot compute sizeof (double) | |
4008 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4009 | else | |
4010 | ac_cv_sizeof_double=0 | |
4011 | fi | |
4012 | fi | |
4013 | ||
4014 | fi | |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | |
4016 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
4017 | ||
4018 | ||
4019 | ||
4020 | cat >>confdefs.h <<_ACEOF | |
4021 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
4022 | _ACEOF | |
4023 | ||
4024 | ||
4025 | # The cast to long int works around a bug in the HP C Compiler | |
4026 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4027 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4028 | # This bug is HP SR number 8606223364. | |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | |
4030 | $as_echo_n "checking size of long double... " >&6; } | |
4031 | if test "${ac_cv_sizeof_long_double+set}" = set; then : | |
4032 | $as_echo_n "(cached) " >&6 | |
4033 | else | |
4034 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : | |
4035 | ||
4036 | else | |
4037 | if test "$ac_cv_type_long_double" = yes; then | |
4038 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4040 | { as_fn_set_status 77 | |
4041 | as_fn_error "cannot compute sizeof (long double) | |
4042 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4043 | else | |
4044 | ac_cv_sizeof_long_double=0 | |
4045 | fi | |
4046 | fi | |
4047 | ||
4048 | fi | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | |
4050 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | |
4051 | ||
4052 | ||
4053 | ||
4054 | cat >>confdefs.h <<_ACEOF | |
4055 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | |
4056 | _ACEOF | |
4057 | ||
4058 | ||
4059 | as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val | |
4060 | as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val | |
4061 | ||
4062 | ||
4063 | ||
4064 | # Check for decimal float support. | |
5213506e RW |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5 |
4066 | $as_echo_n "checking whether decimal floating point is supported... " >&6; } | |
4067 | if test "${libgcc_cv_dfp+set}" = set; then : | |
4068 | $as_echo_n "(cached) " >&6 | |
fa958513 | 4069 | else |
5213506e RW |
4070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4071 | /* end confdefs.h. */ | |
ac088ba1 BRF |
4072 | |
4073 | #include <fenv.h> | |
4074 | ||
4075 | int | |
4076 | main () | |
4077 | { | |
4078 | ||
fa958513 | 4079 | _Decimal32 x; |
ac088ba1 BRF |
4080 | int fe_except = |
4081 | FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT; | |
4082 | ||
4083 | ; | |
4084 | return 0; | |
4085 | } | |
fa958513 | 4086 | _ACEOF |
5213506e | 4087 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
4088 | libgcc_cv_dfp=yes |
4089 | else | |
5213506e | 4090 | libgcc_cv_dfp=no |
fa958513 | 4091 | fi |
5213506e | 4092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 | 4093 | fi |
5213506e RW |
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5 |
4095 | $as_echo "$libgcc_cv_dfp" >&6; } | |
fa958513 DJ |
4096 | decimal_float=$libgcc_cv_dfp |
4097 | ||
4098 | ||
f4dae9fc | 4099 | |
5213506e RW |
4100 | # Check whether --enable-decimal-float was given. |
4101 | if test "${enable_decimal_float+set}" = set; then : | |
4102 | enableval=$enable_decimal_float; | |
79b87c74 | 4103 | case $enable_decimal_float in |
cc0ae0ca | 4104 | yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; |
5213506e RW |
4105 | *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float. |
4106 | Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; | |
79b87c74 MM |
4107 | esac |
4108 | ||
4109 | else | |
4110 | ||
96fccd0d | 4111 | case $host in |
996b42ef | 4112 | powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ |
460277e0 | 4113 | i?86*-*-gnu* | \ |
b93cf342 | 4114 | i?86*-*-mingw* | x86_64*-*-mingw* | \ |
e9fd8c19 | 4115 | i?86*-*-cygwin* | x86_64*-*-cygwin*) |
79b87c74 MM |
4116 | enable_decimal_float=yes |
4117 | ;; | |
4118 | *) | |
84f47d20 AS |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 |
4120 | $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} | |
79b87c74 MM |
4121 | enable_decimal_float=no |
4122 | ;; | |
4123 | esac | |
4124 | ||
5213506e RW |
4125 | fi |
4126 | ||
79b87c74 MM |
4127 | |
4128 | # x86's use BID format instead of DPD | |
f4dae9fc AK |
4129 | case x$enable_decimal_float in |
4130 | xyes) | |
4131 | case $host in | |
4132 | i?86*-*-* | x86_64*-*-*) | |
4133 | enable_decimal_float=bid | |
4134 | ;; | |
4135 | *) | |
4136 | enable_decimal_float=dpd | |
4137 | ;; | |
4138 | esac | |
cc0ae0ca | 4139 | default_decimal_float=$enable_decimal_float |
f4dae9fc AK |
4140 | ;; |
4141 | xno) | |
4142 | # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper | |
4143 | # dependency on libdecnumber. | |
cc0ae0ca | 4144 | default_decimal_float=dpd |
f4dae9fc AK |
4145 | ;; |
4146 | esac | |
4147 | ||
4148 | ||
79b87c74 MM |
4149 | |
4150 | ||
8d2a9e0e | 4151 | # Check for fixed-point support. |
5213506e RW |
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5 |
4153 | $as_echo_n "checking whether fixed-point is supported... " >&6; } | |
4154 | if test "${libgcc_cv_fixed_point+set}" = set; then : | |
4155 | $as_echo_n "(cached) " >&6 | |
8d2a9e0e | 4156 | else |
5213506e RW |
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4158 | /* end confdefs.h. */ | |
8d2a9e0e CF |
4159 | _Sat _Fract x; |
4160 | _ACEOF | |
5213506e | 4161 | if ac_fn_c_try_compile "$LINENO"; then : |
8d2a9e0e CF |
4162 | libgcc_cv_fixed_point=yes |
4163 | else | |
5213506e | 4164 | libgcc_cv_fixed_point=no |
8d2a9e0e | 4165 | fi |
5213506e | 4166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d2a9e0e | 4167 | fi |
5213506e RW |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5 |
4169 | $as_echo "$libgcc_cv_fixed_point" >&6; } | |
8d2a9e0e CF |
4170 | fixed_point=$libgcc_cv_fixed_point |
4171 | ||
4172 | ||
201cdb74 RO |
4173 | # For platforms with the unwind ABI which includes an unwind library, |
4174 | # libunwind, we can choose to use the system libunwind. | |
4175 | # config.gcc also contains tests of with_system_libunwind. | |
4176 | ||
4177 | ||
4178 | # Check whether --with-system-libunwind was given. | |
4179 | if test "${with_system_libunwind+set}" = set; then : | |
4180 | withval=$with_system_libunwind; | |
4181 | fi | |
4182 | ||
4183 | # If system-libunwind was not specifically set, pick a default setting. | |
4184 | if test x$with_system_libunwind = x; then | |
4185 | case ${target} in | |
4186 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
4187 | *) with_system_libunwind=no ;; | |
4188 | esac | |
4189 | fi | |
4190 | # Based on system-libunwind and target, do we have ipinfo? | |
4191 | if test x$with_system_libunwind = xyes; then | |
4192 | case ${target} in | |
4193 | ia64-*-*) have_unwind_getipinfo=no ;; | |
4194 | *) have_unwind_getipinfo=yes ;; | |
4195 | esac | |
4196 | else | |
4197 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
4198 | ||
4199 | case ${target} in | |
4200 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
4201 | *) have_unwind_getipinfo=yes ;; | |
4202 | esac | |
4203 | ||
4204 | fi | |
4205 | ||
4206 | if test x$have_unwind_getipinfo = xyes; then | |
4207 | ||
4208 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
4209 | ||
4210 | fi | |
4211 | ||
4212 | ||
b040f2be RO |
4213 | # The sjlj test is almost duplicated here and in libgo/configure.ac (for C), |
4214 | # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and | |
4215 | # libobjc/configure.ac (for Objective-C). | |
4216 | # FIXME: This should be centralized in config/sjlj.m4. | |
4217 | # Check whether --enable-sjlj-exceptions was given. | |
4218 | if test "${enable_sjlj_exceptions+set}" = set; then : | |
4219 | enableval=$enable_sjlj_exceptions; case "$enableval" in | |
4220 | yes|no|auto) ;; | |
4221 | *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;; | |
4222 | esac | |
4223 | else | |
4224 | enable_sjlj_exceptions=auto | |
4225 | fi | |
4226 | ||
4227 | ||
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5 | |
4229 | $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; } | |
4230 | if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then : | |
4231 | $as_echo_n "(cached) " >&6 | |
4232 | else | |
4233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4234 | /* end confdefs.h. */ | |
4235 | ||
4236 | void bar (); | |
4237 | void clean (int *); | |
4238 | void foo () | |
4239 | { | |
4240 | int i __attribute__ ((cleanup (clean))); | |
4241 | bar(); | |
4242 | } | |
4243 | ||
4244 | _ACEOF | |
4245 | CFLAGS_hold=$CFLAGS | |
4246 | CFLAGS="--save-temps -fexceptions" | |
4247 | libgcc_cv_lib_sjlj_exceptions=unknown | |
4248 | if ac_fn_c_try_compile; then : | |
4249 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then | |
4250 | libgcc_cv_lib_sjlj_exceptions=yes | |
4251 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then | |
4252 | libgcc_cv_lib_sjlj_exceptions=no | |
4253 | fi | |
4254 | fi | |
4255 | CFLAGS=$CFLAGS_hold | |
4256 | rm -f conftest* | |
4257 | ||
4258 | fi | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5 | |
4260 | $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; } | |
4261 | ||
4262 | if test "$enable_sjlj_exceptions" = "auto"; then | |
4263 | enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions | |
4264 | fi | |
4265 | ||
4266 | case $enable_sjlj_exceptions in | |
4267 | yes) | |
4268 | ||
4269 | $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h | |
4270 | ||
4271 | ;; | |
4272 | no) | |
4273 | ;; | |
4274 | *) | |
4275 | as_fn_error "unable to detect exception model" "$LINENO" 5 | |
4276 | ;; | |
4277 | esac | |
4278 | ||
598a1586 HPN |
4279 | # Check whether --enable-explicit-exception-frame-registration was given. |
4280 | if test "${enable_explicit_exception_frame_registration+set}" = set; then : | |
4281 | enableval=$enable_explicit_exception_frame_registration; | |
4282 | force_explicit_eh_registry= | |
4283 | if test "$enable_explicit_exception_frame_registration" = yes; then | |
4284 | if test "$enable_sjlj_exceptions" = yes; then | |
4285 | as_fn_error "Can't enable both of --enable-sjlj-exceptions | |
4286 | and --enable-explicit-exception-frame-registration" "$LINENO" 5 | |
4287 | fi | |
4288 | force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS | |
4289 | fi | |
4290 | ||
4291 | fi | |
4292 | ||
4293 | ||
4294 | ||
ca24c5ad RO |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4296 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4297 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
4298 | $as_echo_n "(cached) " >&6 | |
4299 | else | |
4300 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
4301 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
4302 | acl_cv_prog_gnu_ld=yes | |
4303 | else | |
4304 | acl_cv_prog_gnu_ld=no | |
4305 | fi | |
4306 | fi | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
4308 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
4309 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
4310 | ||
4311 | ||
ee33b5f0 RO |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5 |
4313 | $as_echo_n "checking for thread model used by GCC... " >&6; } | |
4314 | target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5 | |
4316 | $as_echo "$target_thread_file" >&6; } | |
4317 | ||
b6110d6d ILT |
4318 | # Check for assembler CFI support. |
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5 | |
4320 | $as_echo_n "checking whether assembler supports CFI directives... " >&6; } | |
4321 | if test "${libgcc_cv_cfi+set}" = set; then : | |
4322 | $as_echo_n "(cached) " >&6 | |
4323 | else | |
4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4325 | /* end confdefs.h. */ | |
6dace308 ILT |
4326 | asm("\n\ |
4327 | .text\n\ | |
4328 | .cfi_startproc\n\ | |
4329 | .cfi_personality 0, symbol\n\ | |
4330 | .cfi_endproc"); | |
b6110d6d ILT |
4331 | _ACEOF |
4332 | if ac_fn_c_try_compile "$LINENO"; then : | |
4333 | libgcc_cv_cfi=yes | |
4334 | else | |
4335 | libgcc_cv_cfi=no | |
4336 | fi | |
4337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4338 | fi | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5 | |
4340 | $as_echo "$libgcc_cv_cfi" >&6; } | |
4341 | ||
1ea0a651 RS |
4342 | # Check 32bit or 64bit. In the case of MIPS, this really determines the |
4343 | # word size rather than the address size. | |
1bb6f778 | 4344 | cat > conftest.c <<EOF |
1ea0a651 RS |
4345 | #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \ |
4346 | || defined(__mips64) | |
ff473280 L |
4347 | host_address=64 |
4348 | #else | |
4349 | host_address=32 | |
4350 | #endif | |
4351 | EOF | |
1bb6f778 DM |
4352 | eval `${CC-cc} -E conftest.c | grep host_address=` |
4353 | rm -f conftest.c | |
ff473280 | 4354 | |
1c51d688 RS |
4355 | case ${host} in |
4356 | mips*-*-*) | |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5 | |
4358 | $as_echo_n "checking whether the target is hard-float... " >&6; } | |
4359 | if test "${libgcc_cv_mips_hard_float+set}" = set; then : | |
4360 | $as_echo_n "(cached) " >&6 | |
4361 | else | |
4362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4363 | /* end confdefs.h. */ | |
4364 | #ifndef __mips_hard_float | |
4365 | #error FOO | |
4366 | #endif | |
4367 | _ACEOF | |
4368 | if ac_fn_c_try_compile "$LINENO"; then : | |
4369 | libgcc_cv_mips_hard_float=yes | |
4370 | else | |
4371 | libgcc_cv_mips_hard_float=no | |
4372 | fi | |
4373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4374 | fi | |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5 | |
4376 | $as_echo "$libgcc_cv_mips_hard_float" >&6; } | |
4377 | esac | |
4378 | ||
fa958513 DJ |
4379 | # Collect host-machine-specific information. |
4380 | . ${srcdir}/config.host | |
4381 | ||
19523300 RO |
4382 | # Check if Solaris/x86 linker supports ZERO terminator unwind entries. |
4383 | # This is after config.host so we can augment tmake_file. | |
4384 | # Link with -nostartfiles -nodefaultlibs since neither are present while | |
4385 | # building libgcc. | |
4386 | case ${host} in | |
fbdd5d87 | 4387 | i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
19523300 RO |
4388 | cat > conftest.s <<EOF |
4389 | .section .eh_frame,"a",@unwind | |
4390 | .zero 4 | |
4391 | .section .jcr,"aw",@progbits | |
4392 | .zero 8 | |
4393 | EOF | |
4394 | if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5' | |
5213506e | 4395 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
19523300 RO |
4396 | (eval $ac_try) 2>&5 |
4397 | ac_status=$? | |
5213506e RW |
4398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4399 | test $ac_status = 0; }; }; then | |
4a8bb046 | 4400 | tmake_file="${tmake_file} i386/t-crtstuff" |
19523300 RO |
4401 | fi |
4402 | ;; | |
4403 | esac | |
4404 | ||
fa958513 DJ |
4405 | # Check for visibility support. This is after config.host so that |
4406 | # we can check for asm_hidden_op. | |
5213506e RW |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5 |
4408 | $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; } | |
4409 | if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then : | |
4410 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
4411 | else |
4412 | ||
4413 | echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c | |
4414 | libgcc_cv_hidden_visibility_attribute=no | |
4415 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
5213506e | 4416 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
fa958513 DJ |
4417 | (eval $ac_try) 2>&5 |
4418 | ac_status=$? | |
5213506e RW |
4419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4420 | test $ac_status = 0; }; }; then | |
fa958513 DJ |
4421 | if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then |
4422 | libgcc_cv_hidden_visibility_attribute=yes | |
4423 | fi | |
4424 | fi | |
4425 | rm -f conftest.* | |
4426 | ||
4427 | fi | |
5213506e RW |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5 |
4429 | $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; } | |
fa958513 DJ |
4430 | |
4431 | if test $libgcc_cv_hidden_visibility_attribute = yes; then | |
4432 | vis_hide='-fvisibility=hidden -DHIDE_EXPORTS' | |
4433 | else | |
4434 | vis_hide= | |
4435 | fi | |
4436 | ||
4437 | ||
6f461e76 | 4438 | # See if we have thread-local storage. We can only test assembler |
d8c9d391 | 4439 | # since link-time and run-time tests require the newly built |
6f461e76 L |
4440 | # gcc, which can't be used to build executable due to that libgcc |
4441 | # is yet to be built here. | |
4442 | ||
5213506e RW |
4443 | # Check whether --enable-tls was given. |
4444 | if test "${enable_tls+set}" = set; then : | |
4445 | enableval=$enable_tls; | |
6f461e76 L |
4446 | case "$enableval" in |
4447 | yes|no) ;; | |
5213506e | 4448 | *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
6f461e76 L |
4449 | esac |
4450 | ||
4451 | else | |
4452 | enable_tls=yes | |
5213506e | 4453 | fi |
6f461e76 | 4454 | |
5213506e RW |
4455 | |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5 | |
4457 | $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; } | |
4458 | if test "${gcc_cv_have_cc_tls+set}" = set; then : | |
4459 | $as_echo_n "(cached) " >&6 | |
6f461e76 L |
4460 | else |
4461 | ||
5213506e RW |
4462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4463 | /* end confdefs.h. */ | |
6f461e76 L |
4464 | __thread int a; int b; int main() { return a = b; } |
4465 | _ACEOF | |
5213506e | 4466 | if ac_fn_c_try_compile "$LINENO"; then : |
b4e9c2c6 | 4467 | gcc_cv_have_cc_tls=yes |
6f461e76 | 4468 | else |
5213506e | 4469 | gcc_cv_have_cc_tls=no |
6f461e76 | 4470 | fi |
5213506e | 4471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6f461e76 L |
4472 | |
4473 | fi | |
5213506e RW |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5 |
4475 | $as_echo "$gcc_cv_have_cc_tls" >&6; } | |
22867d02 | 4476 | set_have_cc_tls= |
b4e9c2c6 | 4477 | if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then |
6f461e76 L |
4478 | set_have_cc_tls="-DHAVE_CC_TLS" |
4479 | fi | |
4480 | ||
4481 | ||
368fabd5 JH |
4482 | # See if we have emulated thread-local storage. |
4483 | ||
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 | |
4485 | $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } | |
4486 | if test "${gcc_cv_use_emutls+set}" = set; then : | |
4487 | $as_echo_n "(cached) " >&6 | |
4488 | else | |
4489 | ||
4490 | gcc_cv_use_emutls=no | |
4491 | echo '__thread int a; int b; int main() { return a = b; }' > conftest.c | |
4492 | if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' | |
4493 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
4494 | (eval $ac_try) 2>&5 | |
4495 | ac_status=$? | |
4496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4497 | test $ac_status = 0; }; }; then | |
4498 | if grep __emutls_get_address conftest.s > /dev/null; then | |
4499 | gcc_cv_use_emutls=yes | |
4500 | fi | |
4501 | fi | |
4502 | rm -f conftest.* | |
4503 | ||
4504 | fi | |
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 | |
4506 | $as_echo "$gcc_cv_use_emutls" >&6; } | |
4507 | if test "$gcc_cv_use_emutls" = "yes" ; then | |
4508 | ||
4509 | $as_echo "#define USE_EMUTLS 1" >>confdefs.h | |
4510 | ||
4511 | fi | |
4512 | set_use_emutls= | |
4513 | if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then | |
4514 | set_use_emutls="-DUSE_EMUTLS" | |
4515 | fi | |
4516 | ||
4517 | ||
aca06c90 RO |
4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5 |
4519 | $as_echo_n "checking for init priority support... " >&6; } | |
4520 | if test "${libgcc_cv_init_priority+set}" = set; then : | |
4521 | $as_echo_n "(cached) " >&6 | |
4522 | else | |
4523 | ||
4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4525 | /* end confdefs.h. */ | |
4526 | ||
4527 | int | |
4528 | main () | |
4529 | { | |
4530 | void ip (void) __attribute__ ((constructor (1))); | |
4531 | ; | |
4532 | return 0; | |
4533 | } | |
4534 | _ACEOF | |
4535 | if ac_fn_c_try_compile "$LINENO"; then : | |
4536 | libgcc_cv_init_priority=yes | |
4537 | else | |
4538 | libgcc_cv_init_priority=no | |
4539 | fi | |
4540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4541 | fi | |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5 | |
4543 | $as_echo "$libgcc_cv_init_priority" >&6; } | |
4544 | if test $libgcc_cv_init_priority = yes; then | |
4545 | ||
4546 | $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h | |
4547 | ||
4548 | fi | |
4549 | ||
aca0b0b3 RO |
4550 | # Conditionalize the sfp-machine.h header for this target machine. |
4551 | if test -z "${sfp_machine_header}"; then | |
4552 | sfp_machine_header=$cpu_type/sfp-machine.h | |
4553 | if test -f ${srcdir}/config/${sfp_machine_header}; then | |
4554 | : | |
4555 | else | |
4556 | sfp_machine_header=no-sfp-machine.h | |
4557 | fi | |
4558 | fi | |
4559 | ||
4560 | ||
fa958513 DJ |
4561 | # Conditionalize the makefile for this target machine. |
4562 | tmake_file_= | |
4563 | for f in ${tmake_file} | |
4564 | do | |
4565 | if test -f ${srcdir}/config/$f | |
4566 | then | |
4567 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
4568 | fi | |
4569 | done | |
4570 | tmake_file="${tmake_file_}" | |
4571 | ||
4572 | ||
852b75ed RO |
4573 | # Likewise export definitions for libgcc_tm.h |
4574 | tm_file_= | |
4575 | for f in ${tm_file} | |
4576 | do | |
4577 | tm_file_="${tm_file_} \$(srcdir)/config/$f" | |
4578 | done | |
4579 | tm_file="${tm_file_}" | |
4580 | ||
4581 | ||
4582 | ||
5d1c8e77 | 4583 | # Map from thread model to thread header. |
1183dc2c | 4584 | |
5d1c8e77 RO |
4585 | case $target_thread_file in |
4586 | aix) thread_header=config/rs6000/gthr-aix.h ;; | |
4587 | dce) thread_header=config/pa/gthr-dce.h ;; | |
4588 | lynx) thread_header=config/gthr-lynx.h ;; | |
4589 | mipssde) thread_header=config/mips/gthr-mipssde.h ;; | |
9fbcc75d | 4590 | posix) thread_header=gthr-posix.h ;; |
5d1c8e77 RO |
4591 | rtems) thread_header=config/gthr-rtems.h ;; |
4592 | single) thread_header=gthr-single.h ;; | |
4593 | tpf) thread_header=config/s390/gthr-tpf.h ;; | |
4594 | vxworks) thread_header=config/gthr-vxworks.h ;; | |
4595 | win32) thread_header=config/i386/gthr-win32.h ;; | |
4596 | esac | |
4597 | ||
1183dc2c PC |
4598 | |
4599 | ||
fa958513 DJ |
4600 | # Substitute configuration variables |
4601 | ||
4602 | ||
4603 | ||
10e48e39 RO |
4604 | ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack" |
4605 | ||
201cdb74 RO |
4606 | ac_config_links="$ac_config_links unwind.h:$unwind_header" |
4607 | ||
58cd1d70 RO |
4608 | ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header" |
4609 | ||
aca0b0b3 RO |
4610 | ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header" |
4611 | ||
5d1c8e77 RO |
4612 | ac_config_links="$ac_config_links gthr-default.h:$thread_header" |
4613 | ||
ca24c5ad | 4614 | |
fa958513 | 4615 | # We need multilib support. |
5213506e | 4616 | ac_config_files="$ac_config_files Makefile" |
fa958513 | 4617 | |
5213506e | 4618 | ac_config_commands="$ac_config_commands default" |
fa958513 DJ |
4619 | |
4620 | cat >confcache <<\_ACEOF | |
4621 | # This file is a shell script that caches the results of configure | |
4622 | # tests run on this system so they can be shared between configure | |
4623 | # scripts and configure runs, see configure's option --config-cache. | |
4624 | # It is not useful on other systems. If it contains results you don't | |
4625 | # want to keep, you may remove or edit it. | |
4626 | # | |
4627 | # config.status only pays attention to the cache file if you give it | |
4628 | # the --recheck option to rerun configure. | |
4629 | # | |
4630 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4631 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4632 | # following values. | |
4633 | ||
4634 | _ACEOF | |
4635 | ||
4636 | # The following way of writing the cache mishandles newlines in values, | |
4637 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 4638 | # So, we kill variables containing newlines. |
fa958513 DJ |
4639 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4640 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
4641 | ( |
4642 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4643 | eval ac_val=\$$ac_var | |
4644 | case $ac_val in #( | |
4645 | *${as_nl}*) | |
4646 | case $ac_var in #( | |
4647 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4648 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4649 | esac | |
4650 | case $ac_var in #( | |
4651 | _ | IFS | as_nl) ;; #( | |
4652 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4653 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4654 | esac ;; | |
4655 | esac | |
4656 | done | |
4657 | ||
fa958513 | 4658 | (set) 2>&1 | |
5213506e RW |
4659 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4660 | *${as_nl}ac_space=\ *) | |
4661 | # `set' does not quote correctly, so add quotes: double-quote | |
4662 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
fa958513 DJ |
4663 | sed -n \ |
4664 | "s/'/'\\\\''/g; | |
4665 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 4666 | ;; #( |
fa958513 DJ |
4667 | *) |
4668 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 4669 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fa958513 | 4670 | ;; |
5213506e RW |
4671 | esac | |
4672 | sort | |
4673 | ) | | |
fa958513 | 4674 | sed ' |
5213506e | 4675 | /^ac_cv_env_/b end |
fa958513 | 4676 | t clear |
5213506e | 4677 | :clear |
fa958513 DJ |
4678 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4679 | t end | |
5213506e RW |
4680 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4681 | :end' >>confcache | |
4682 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4683 | if test -w "$cache_file"; then | |
4684 | test "x$cache_file" != "x/dev/null" && | |
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
4686 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
fa958513 DJ |
4687 | cat confcache >$cache_file |
4688 | else | |
5213506e RW |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4690 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
fa958513 DJ |
4691 | fi |
4692 | fi | |
4693 | rm -f confcache | |
4694 | ||
4695 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4696 | # Let make expand exec_prefix. | |
4697 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4698 | ||
aca06c90 | 4699 | DEFS=-DHAVE_CONFIG_H |
fa958513 DJ |
4700 | |
4701 | ac_libobjs= | |
4702 | ac_ltlibobjs= | |
4703 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
4704 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
4705 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4706 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4707 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4708 | # will be set to the directory where LIBOBJS objects are built. | |
4709 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4710 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
fa958513 DJ |
4711 | done |
4712 | LIBOBJS=$ac_libobjs | |
4713 | ||
4714 | LTLIBOBJS=$ac_ltlibobjs | |
4715 | ||
4716 | ||
4717 | ||
4718 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 4719 | ac_write_fail=0 |
fa958513 DJ |
4720 | ac_clean_files_save=$ac_clean_files |
4721 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4723 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4724 | as_write_fail=0 | |
4725 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
fa958513 DJ |
4726 | #! $SHELL |
4727 | # Generated by $as_me. | |
4728 | # Run this file to recreate the current configuration. | |
4729 | # Compiler output produced by configure, useful for debugging | |
4730 | # configure, is in config.log if it exists. | |
4731 | ||
4732 | debug=false | |
4733 | ac_cs_recheck=false | |
4734 | ac_cs_silent=false | |
fa958513 | 4735 | |
5213506e RW |
4736 | SHELL=\${CONFIG_SHELL-$SHELL} |
4737 | export SHELL | |
4738 | _ASEOF | |
4739 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4740 | ## -------------------- ## | |
4741 | ## M4sh Initialization. ## | |
4742 | ## -------------------- ## | |
4743 | ||
4744 | # Be more Bourne compatible | |
4745 | DUALCASE=1; export DUALCASE # for MKS sh | |
4746 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
fa958513 DJ |
4747 | emulate sh |
4748 | NULLCMD=: | |
5213506e | 4749 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fa958513 DJ |
4750 | # is contrary to our usage. Disable this feature. |
4751 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
4752 | setopt NO_GLOB_SUBST |
4753 | else | |
4754 | case `(set -o) 2>/dev/null` in #( | |
4755 | *posix*) : | |
4756 | set -o posix ;; #( | |
4757 | *) : | |
4758 | ;; | |
4759 | esac | |
fa958513 | 4760 | fi |
fa958513 | 4761 | |
5213506e RW |
4762 | |
4763 | as_nl=' | |
4764 | ' | |
4765 | export as_nl | |
4766 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4767 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4768 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4769 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4770 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4771 | # but without wasting forks for bash or zsh. | |
4772 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4773 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4774 | as_echo='print -r --' | |
4775 | as_echo_n='print -rn --' | |
4776 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4777 | as_echo='printf %s\n' | |
4778 | as_echo_n='printf %s' | |
fa958513 | 4779 | else |
5213506e RW |
4780 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
4781 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4782 | as_echo_n='/usr/ucb/echo -n' | |
4783 | else | |
4784 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4785 | as_echo_n_body='eval | |
4786 | arg=$1; | |
4787 | case $arg in #( | |
4788 | *"$as_nl"*) | |
4789 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4790 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4791 | esac; | |
4792 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4793 | ' | |
4794 | export as_echo_n_body | |
4795 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4796 | fi | |
4797 | export as_echo_body | |
4798 | as_echo='sh -c $as_echo_body as_echo' | |
4799 | fi | |
4800 | ||
4801 | # The user is always right. | |
4802 | if test "${PATH_SEPARATOR+set}" != set; then | |
4803 | PATH_SEPARATOR=: | |
4804 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4805 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4806 | PATH_SEPARATOR=';' | |
4807 | } | |
fa958513 DJ |
4808 | fi |
4809 | ||
4810 | ||
5213506e RW |
4811 | # IFS |
4812 | # We need space, tab and new line, in precisely that order. Quoting is | |
4813 | # there to prevent editors from complaining about space-tab. | |
4814 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4815 | # splitting by setting IFS to empty value.) | |
4816 | IFS=" "" $as_nl" | |
4817 | ||
4818 | # Find who we are. Look in the path if we contain no directory separator. | |
4819 | case $0 in #(( | |
4820 | *[\\/]* ) as_myself=$0 ;; | |
4821 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4822 | for as_dir in $PATH | |
4823 | do | |
4824 | IFS=$as_save_IFS | |
4825 | test -z "$as_dir" && as_dir=. | |
4826 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4827 | done | |
4828 | IFS=$as_save_IFS | |
4829 | ||
4830 | ;; | |
4831 | esac | |
4832 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4833 | # in which case we are not to be found in the path. | |
4834 | if test "x$as_myself" = x; then | |
4835 | as_myself=$0 | |
4836 | fi | |
4837 | if test ! -f "$as_myself"; then | |
4838 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4839 | exit 1 | |
4840 | fi | |
4841 | ||
4842 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4843 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4844 | # suppresses any "Segmentation fault" message there. '((' could | |
4845 | # trigger a bug in pdksh 5.2.14. | |
4846 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4847 | do eval test x\${$as_var+set} = xset \ | |
4848 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4849 | done | |
fa958513 DJ |
4850 | PS1='$ ' |
4851 | PS2='> ' | |
4852 | PS4='+ ' | |
4853 | ||
4854 | # NLS nuisances. | |
5213506e RW |
4855 | LC_ALL=C |
4856 | export LC_ALL | |
4857 | LANGUAGE=C | |
4858 | export LANGUAGE | |
4859 | ||
4860 | # CDPATH. | |
4861 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4862 | ||
4863 | ||
4864 | # as_fn_error ERROR [LINENO LOG_FD] | |
4865 | # --------------------------------- | |
4866 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4867 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4868 | # script with status $?, using 1 if that was 0. | |
4869 | as_fn_error () | |
4870 | { | |
4871 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
4872 | if test "$3"; then | |
4873 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4874 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
fa958513 | 4875 | fi |
5213506e RW |
4876 | $as_echo "$as_me: error: $1" >&2 |
4877 | as_fn_exit $as_status | |
4878 | } # as_fn_error | |
4879 | ||
fa958513 | 4880 | |
5213506e RW |
4881 | # as_fn_set_status STATUS |
4882 | # ----------------------- | |
4883 | # Set $? to STATUS, without forking. | |
4884 | as_fn_set_status () | |
4885 | { | |
4886 | return $1 | |
4887 | } # as_fn_set_status | |
4888 | ||
4889 | # as_fn_exit STATUS | |
4890 | # ----------------- | |
4891 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4892 | as_fn_exit () | |
4893 | { | |
4894 | set +e | |
4895 | as_fn_set_status $1 | |
4896 | exit $1 | |
4897 | } # as_fn_exit | |
4898 | ||
4899 | # as_fn_unset VAR | |
4900 | # --------------- | |
4901 | # Portably unset VAR. | |
4902 | as_fn_unset () | |
4903 | { | |
4904 | { eval $1=; unset $1;} | |
4905 | } | |
4906 | as_unset=as_fn_unset | |
4907 | # as_fn_append VAR VALUE | |
4908 | # ---------------------- | |
4909 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4910 | # advantage of any shell optimizations that allow amortized linear growth over | |
4911 | # repeated appends, instead of the typical quadratic growth present in naive | |
4912 | # implementations. | |
4913 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4914 | eval 'as_fn_append () | |
4915 | { | |
4916 | eval $1+=\$2 | |
4917 | }' | |
4918 | else | |
4919 | as_fn_append () | |
4920 | { | |
4921 | eval $1=\$$1\$2 | |
4922 | } | |
4923 | fi # as_fn_append | |
4924 | ||
4925 | # as_fn_arith ARG... | |
4926 | # ------------------ | |
4927 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4928 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4929 | # must be portable across $(()) and expr. | |
4930 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4931 | eval 'as_fn_arith () | |
4932 | { | |
4933 | as_val=$(( $* )) | |
4934 | }' | |
4935 | else | |
4936 | as_fn_arith () | |
4937 | { | |
4938 | as_val=`expr "$@" || test $? -eq 1` | |
4939 | } | |
4940 | fi # as_fn_arith | |
4941 | ||
4942 | ||
4943 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
4944 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fa958513 DJ |
4945 | as_expr=expr |
4946 | else | |
4947 | as_expr=false | |
4948 | fi | |
4949 | ||
5213506e | 4950 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fa958513 DJ |
4951 | as_basename=basename |
4952 | else | |
4953 | as_basename=false | |
4954 | fi | |
4955 | ||
5213506e RW |
4956 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
4957 | as_dirname=dirname | |
4958 | else | |
4959 | as_dirname=false | |
4960 | fi | |
fa958513 | 4961 | |
5213506e | 4962 | as_me=`$as_basename -- "$0" || |
fa958513 DJ |
4963 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4964 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
4965 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4966 | $as_echo X/"$0" | | |
4967 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4968 | s//\1/ | |
4969 | q | |
4970 | } | |
4971 | /^X\/\(\/\/\)$/{ | |
4972 | s//\1/ | |
4973 | q | |
4974 | } | |
4975 | /^X\/\(\/\).*/{ | |
4976 | s//\1/ | |
4977 | q | |
4978 | } | |
4979 | s/.*/./; q'` | |
fa958513 | 4980 | |
d6efbf5a DJ |
4981 | # Avoid depending upon Character Ranges. |
4982 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4983 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4984 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4985 | as_cr_digits='0123456789' | |
4986 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
fa958513 | 4987 | |
5213506e RW |
4988 | ECHO_C= ECHO_N= ECHO_T= |
4989 | case `echo -n x` in #((((( | |
4990 | -n*) | |
4991 | case `echo 'xy\c'` in | |
4992 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4993 | xy) ECHO_C='\c';; | |
4994 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4995 | ECHO_T=' ';; | |
4996 | esac;; | |
4997 | *) | |
4998 | ECHO_N='-n';; | |
fa958513 DJ |
4999 | esac |
5000 | ||
5213506e RW |
5001 | rm -f conf$$ conf$$.exe conf$$.file |
5002 | if test -d conf$$.dir; then | |
5003 | rm -f conf$$.dir/conf$$.file | |
fa958513 | 5004 | else |
5213506e RW |
5005 | rm -f conf$$.dir |
5006 | mkdir conf$$.dir 2>/dev/null | |
fa958513 | 5007 | fi |
5213506e RW |
5008 | if (echo >conf$$.file) 2>/dev/null; then |
5009 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6efbf5a | 5010 | as_ln_s='ln -s' |
5213506e RW |
5011 | # ... but there are two gotchas: |
5012 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
5013 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
5014 | # In both cases, we have to default to `cp -p'. | |
5015 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
5016 | as_ln_s='cp -p' | |
5017 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
5018 | as_ln_s=ln | |
5019 | else | |
5020 | as_ln_s='cp -p' | |
d6efbf5a | 5021 | fi |
fa958513 DJ |
5022 | else |
5023 | as_ln_s='cp -p' | |
5024 | fi | |
5213506e RW |
5025 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
5026 | rmdir conf$$.dir 2>/dev/null | |
5027 | ||
5028 | ||
5029 | # as_fn_mkdir_p | |
5030 | # ------------- | |
5031 | # Create "$as_dir" as a directory, including parents if necessary. | |
5032 | as_fn_mkdir_p () | |
5033 | { | |
5034 | ||
5035 | case $as_dir in #( | |
5036 | -*) as_dir=./$as_dir;; | |
5037 | esac | |
5038 | test -d "$as_dir" || eval $as_mkdir_p || { | |
5039 | as_dirs= | |
5040 | while :; do | |
5041 | case $as_dir in #( | |
5042 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
5043 | *) as_qdir=$as_dir;; | |
5044 | esac | |
5045 | as_dirs="'$as_qdir' $as_dirs" | |
5046 | as_dir=`$as_dirname -- "$as_dir" || | |
5047 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5048 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5049 | X"$as_dir" : 'X\(//\)$' \| \ | |
5050 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
5051 | $as_echo X"$as_dir" | | |
5052 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5053 | s//\1/ | |
5054 | q | |
5055 | } | |
5056 | /^X\(\/\/\)[^/].*/{ | |
5057 | s//\1/ | |
5058 | q | |
5059 | } | |
5060 | /^X\(\/\/\)$/{ | |
5061 | s//\1/ | |
5062 | q | |
5063 | } | |
5064 | /^X\(\/\).*/{ | |
5065 | s//\1/ | |
5066 | q | |
5067 | } | |
5068 | s/.*/./; q'` | |
5069 | test -d "$as_dir" && break | |
5070 | done | |
5071 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5072 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
fa958513 | 5073 | |
5213506e RW |
5074 | |
5075 | } # as_fn_mkdir_p | |
fa958513 | 5076 | if mkdir -p . 2>/dev/null; then |
5213506e | 5077 | as_mkdir_p='mkdir -p "$as_dir"' |
fa958513 DJ |
5078 | else |
5079 | test -d ./-p && rmdir ./-p | |
5080 | as_mkdir_p=false | |
5081 | fi | |
5082 | ||
5213506e RW |
5083 | if test -x / >/dev/null 2>&1; then |
5084 | as_test_x='test -x' | |
5085 | else | |
5086 | if ls -dL / >/dev/null 2>&1; then | |
5087 | as_ls_L_option=L | |
5088 | else | |
5089 | as_ls_L_option= | |
5090 | fi | |
5091 | as_test_x=' | |
5092 | eval sh -c '\'' | |
5093 | if test -d "$1"; then | |
5094 | test -d "$1/."; | |
5095 | else | |
5096 | case $1 in #( | |
5097 | -*)set "./$1";; | |
5098 | esac; | |
5099 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
5100 | ???[sx]*):;;*)false;;esac;fi | |
5101 | '\'' sh | |
5102 | ' | |
5103 | fi | |
5104 | as_executable_p=$as_test_x | |
fa958513 DJ |
5105 | |
5106 | # Sed expression to map a string onto a valid CPP name. | |
5107 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
5108 | ||
5109 | # Sed expression to map a string onto a valid variable name. | |
5110 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
5111 | ||
5112 | ||
fa958513 | 5113 | exec 6>&1 |
5213506e RW |
5114 | ## ----------------------------------- ## |
5115 | ## Main body of $CONFIG_STATUS script. ## | |
5116 | ## ----------------------------------- ## | |
5117 | _ASEOF | |
5118 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
5119 | ||
5120 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5121 | # Save the log message, to keep $0 and so on meaningful, and to | |
fa958513 | 5122 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
5123 | # values after options handling. |
5124 | ac_log=" | |
fa958513 | 5125 | This file was extended by GNU C Runtime Library $as_me 1.0, which was |
5213506e | 5126 | generated by GNU Autoconf 2.64. Invocation command line was |
fa958513 DJ |
5127 | |
5128 | CONFIG_FILES = $CONFIG_FILES | |
5129 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5130 | CONFIG_LINKS = $CONFIG_LINKS | |
5131 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5132 | $ $0 $@ | |
5133 | ||
5213506e RW |
5134 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
5135 | " | |
5136 | ||
fa958513 DJ |
5137 | _ACEOF |
5138 | ||
5213506e RW |
5139 | case $ac_config_files in *" |
5140 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
5141 | esac | |
fa958513 | 5142 | |
aca06c90 RO |
5143 | case $ac_config_headers in *" |
5144 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
5145 | esac | |
d6efbf5a | 5146 | |
d6efbf5a | 5147 | |
5213506e RW |
5148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5149 | # Files that config.status was made for. | |
5150 | config_files="$ac_config_files" | |
aca06c90 | 5151 | config_headers="$ac_config_headers" |
58cd1d70 | 5152 | config_links="$ac_config_links" |
5213506e | 5153 | config_commands="$ac_config_commands" |
fa958513 | 5154 | |
5213506e | 5155 | _ACEOF |
d6efbf5a | 5156 | |
5213506e | 5157 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fa958513 | 5158 | ac_cs_usage="\ |
5213506e RW |
5159 | \`$as_me' instantiates files and other configuration actions |
5160 | from templates according to the current configuration. Unless the files | |
5161 | and actions are specified as TAGs, all are instantiated by default. | |
fa958513 | 5162 | |
5213506e | 5163 | Usage: $0 [OPTION]... [TAG]... |
fa958513 DJ |
5164 | |
5165 | -h, --help print this help, then exit | |
5213506e RW |
5166 | -V, --version print version number and configuration settings, then exit |
5167 | -q, --quiet, --silent | |
5168 | do not print progress messages | |
fa958513 DJ |
5169 | -d, --debug don't remove temporary files |
5170 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
5171 | --file=FILE[:TEMPLATE] |
5172 | instantiate the configuration file FILE | |
aca06c90 RO |
5173 | --header=FILE[:TEMPLATE] |
5174 | instantiate the configuration header FILE | |
fa958513 DJ |
5175 | |
5176 | Configuration files: | |
5177 | $config_files | |
5178 | ||
aca06c90 RO |
5179 | Configuration headers: |
5180 | $config_headers | |
5181 | ||
58cd1d70 RO |
5182 | Configuration links: |
5183 | $config_links | |
5184 | ||
fa958513 DJ |
5185 | Configuration commands: |
5186 | $config_commands | |
5187 | ||
5213506e RW |
5188 | Report bugs to the package provider. |
5189 | GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. | |
5190 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
d6efbf5a | 5191 | |
5213506e RW |
5192 | _ACEOF |
5193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fa958513 DJ |
5194 | ac_cs_version="\\ |
5195 | GNU C Runtime Library config.status 1.0 | |
5213506e RW |
5196 | configured by $0, generated by GNU Autoconf 2.64, |
5197 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
fa958513 | 5198 | |
5213506e | 5199 | Copyright (C) 2009 Free Software Foundation, Inc. |
fa958513 DJ |
5200 | This config.status script is free software; the Free Software Foundation |
5201 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
5202 | |
5203 | ac_pwd='$ac_pwd' | |
5204 | srcdir='$srcdir' | |
5205 | INSTALL='$INSTALL' | |
5206 | AWK='$AWK' | |
5207 | test -n "\$AWK" || AWK=awk | |
fa958513 DJ |
5208 | _ACEOF |
5209 | ||
5213506e RW |
5210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5211 | # The default lists apply if the user does not specify any file. | |
fa958513 DJ |
5212 | ac_need_defaults=: |
5213 | while test $# != 0 | |
5214 | do | |
5215 | case $1 in | |
5216 | --*=*) | |
5213506e RW |
5217 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
5218 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fa958513 DJ |
5219 | ac_shift=: |
5220 | ;; | |
5213506e | 5221 | *) |
fa958513 DJ |
5222 | ac_option=$1 |
5223 | ac_optarg=$2 | |
5224 | ac_shift=shift | |
5225 | ;; | |
fa958513 DJ |
5226 | esac |
5227 | ||
5228 | case $ac_option in | |
5229 | # Handling of the options. | |
fa958513 DJ |
5230 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5231 | ac_cs_recheck=: ;; | |
5213506e RW |
5232 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
5233 | $as_echo "$ac_cs_version"; exit ;; | |
5234 | --debug | --debu | --deb | --de | --d | -d ) | |
fa958513 DJ |
5235 | debug=: ;; |
5236 | --file | --fil | --fi | --f ) | |
5237 | $ac_shift | |
5213506e RW |
5238 | case $ac_optarg in |
5239 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5240 | esac | |
5241 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
d6efbf5a | 5242 | ac_need_defaults=false;; |
aca06c90 RO |
5243 | --header | --heade | --head | --hea ) |
5244 | $ac_shift | |
5245 | case $ac_optarg in | |
5246 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5247 | esac | |
5248 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
5249 | ac_need_defaults=false;; | |
5250 | --he | --h) | |
5251 | # Conflict between --help and --header | |
5252 | as_fn_error "ambiguous option: \`$1' | |
5253 | Try \`$0 --help' for more information.";; | |
5254 | --help | --hel | -h ) | |
5213506e | 5255 | $as_echo "$ac_cs_usage"; exit ;; |
fa958513 DJ |
5256 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5257 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5258 | ac_cs_silent=: ;; | |
5259 | ||
5260 | # This is an error. | |
5213506e RW |
5261 | -*) as_fn_error "unrecognized option: \`$1' |
5262 | Try \`$0 --help' for more information." ;; | |
fa958513 | 5263 | |
5213506e RW |
5264 | *) as_fn_append ac_config_targets " $1" |
5265 | ac_need_defaults=false ;; | |
fa958513 DJ |
5266 | |
5267 | esac | |
5268 | shift | |
5269 | done | |
5270 | ||
5271 | ac_configure_extra_args= | |
5272 | ||
5273 | if $ac_cs_silent; then | |
5274 | exec 6>/dev/null | |
5275 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5276 | fi | |
5277 | ||
5278 | _ACEOF | |
5213506e | 5279 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fa958513 | 5280 | if \$ac_cs_recheck; then |
5213506e RW |
5281 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5282 | shift | |
5283 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
5284 | CONFIG_SHELL='$SHELL' | |
5285 | export CONFIG_SHELL | |
5286 | exec "\$@" | |
fa958513 DJ |
5287 | fi |
5288 | ||
5289 | _ACEOF | |
5213506e RW |
5290 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5291 | exec 5>>config.log | |
5292 | { | |
5293 | echo | |
5294 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5295 | ## Running $as_me. ## | |
5296 | _ASBOX | |
5297 | $as_echo "$ac_log" | |
5298 | } >&5 | |
fa958513 | 5299 | |
5213506e RW |
5300 | _ACEOF |
5301 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fa958513 | 5302 | # |
5213506e | 5303 | # INIT-COMMANDS |
fa958513 | 5304 | # |
fa958513 DJ |
5305 | srcdir=${srcdir} |
5306 | host=${host} | |
fa958513 DJ |
5307 | with_target_subdir=${with_target_subdir} |
5308 | with_multisubdir=${with_multisubdir} | |
5309 | ac_configure_args="--enable-multilib ${ac_configure_args}" | |
5310 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
5311 | libgcc_topdir=${libgcc_topdir} | |
5312 | CC="${CC}" | |
5313 | ||
5314 | ||
5315 | _ACEOF | |
5316 | ||
5213506e | 5317 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14e8fc8b | 5318 | |
5213506e | 5319 | # Handling of arguments. |
fa958513 DJ |
5320 | for ac_config_target in $ac_config_targets |
5321 | do | |
5213506e | 5322 | case $ac_config_target in |
aca06c90 | 5323 | "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;; |
10e48e39 | 5324 | "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;; |
201cdb74 | 5325 | "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;; |
58cd1d70 | 5326 | "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;; |
aca0b0b3 | 5327 | "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;; |
5d1c8e77 | 5328 | "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;; |
5213506e RW |
5329 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
5330 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
5331 | ||
5332 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
fa958513 DJ |
5333 | esac |
5334 | done | |
5335 | ||
5213506e | 5336 | |
fa958513 DJ |
5337 | # If the user did not use the arguments to specify the items to instantiate, |
5338 | # then the envvar interface is used. Set only those that are not. | |
5339 | # We use the long form for the default assignment because of an extremely | |
5340 | # bizarre bug on SunOS 4.1.3. | |
5341 | if $ac_need_defaults; then | |
5342 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
aca06c90 | 5343 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
58cd1d70 | 5344 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
fa958513 DJ |
5345 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
5346 | fi | |
5347 | ||
5348 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 5349 | # simply because there is no reason against having it here, and in addition, |
fa958513 | 5350 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
5351 | # Hook for its removal unless debugging. |
5352 | # Note that there is a small window in which the directory will not be cleaned: | |
5353 | # after its creation but before its name has been assigned to `$tmp'. | |
fa958513 DJ |
5354 | $debug || |
5355 | { | |
5213506e RW |
5356 | tmp= |
5357 | trap 'exit_status=$? | |
5358 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
5359 | ' 0 | |
5360 | trap 'as_fn_exit 1' 1 2 13 15 | |
fa958513 | 5361 | } |
fa958513 DJ |
5362 | # Create a (secure) tmp directory for tmp files. |
5363 | ||
5364 | { | |
5213506e | 5365 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
fa958513 DJ |
5366 | test -n "$tmp" && test -d "$tmp" |
5367 | } || | |
5368 | { | |
5213506e RW |
5369 | tmp=./conf$$-$RANDOM |
5370 | (umask 077 && mkdir "$tmp") | |
5371 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
5372 | ||
5373 | # Set up the scripts for CONFIG_FILES section. | |
5374 | # No need to generate them if there are no CONFIG_FILES. | |
5375 | # This happens for instance with `./config.status config.h'. | |
5376 | if test -n "$CONFIG_FILES"; then | |
5377 | ||
5378 | ||
5379 | ac_cr=`echo X | tr X '\015'` | |
5380 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
5381 | # But we know of no other shell where ac_cr would be empty at this | |
5382 | # point, so we can use a bashism as a fallback. | |
5383 | if test "x$ac_cr" = x; then | |
5384 | eval ac_cr=\$\'\\r\' | |
5385 | fi | |
5386 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
5387 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5388 | ac_cs_awk_cr='\r' | |
5389 | else | |
5390 | ac_cs_awk_cr=$ac_cr | |
5391 | fi | |
5392 | ||
5393 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
5394 | _ACEOF | |
5395 | ||
5396 | ||
5397 | { | |
5398 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
5399 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
5400 | echo "_ACEOF" | |
5401 | } >conf$$subs.sh || | |
5402 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5403 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
5404 | ac_delim='%!_!# ' | |
5405 | for ac_last_try in false false false false false :; do | |
5406 | . ./conf$$subs.sh || | |
5407 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5408 | ||
5409 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
5410 | if test $ac_delim_n = $ac_delim_num; then | |
5411 | break | |
5412 | elif $ac_last_try; then | |
5413 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
5414 | else | |
5415 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5416 | fi | |
5417 | done | |
5418 | rm -f conf$$subs.sh | |
5419 | ||
5420 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5421 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
5422 | _ACEOF | |
5423 | sed -n ' | |
5424 | h | |
5425 | s/^/S["/; s/!.*/"]=/ | |
5426 | p | |
5427 | g | |
5428 | s/^[^!]*!// | |
5429 | :repl | |
5430 | t repl | |
5431 | s/'"$ac_delim"'$// | |
5432 | t delim | |
5433 | :nl | |
5434 | h | |
5435 | s/\(.\{148\}\).*/\1/ | |
5436 | t more1 | |
5437 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
5438 | p | |
5439 | n | |
5440 | b repl | |
5441 | :more1 | |
5442 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5443 | p | |
5444 | g | |
5445 | s/.\{148\}// | |
5446 | t nl | |
5447 | :delim | |
5448 | h | |
5449 | s/\(.\{148\}\).*/\1/ | |
5450 | t more2 | |
5451 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
5452 | p | |
5453 | b | |
5454 | :more2 | |
5455 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5456 | p | |
5457 | g | |
5458 | s/.\{148\}// | |
5459 | t delim | |
5460 | ' <conf$$subs.awk | sed ' | |
5461 | /^[^""]/{ | |
5462 | N | |
5463 | s/\n// | |
5464 | } | |
5465 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
5466 | rm -f conf$$subs.awk | |
5467 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5468 | _ACAWK | |
5469 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
5470 | for (key in S) S_is_set[key] = 1 | |
5471 | FS = "\a" | |
5472 | ||
5473 | } | |
fa958513 | 5474 | { |
5213506e RW |
5475 | line = $ 0 |
5476 | nfields = split(line, field, "@") | |
5477 | substed = 0 | |
5478 | len = length(field[1]) | |
5479 | for (i = 2; i < nfields; i++) { | |
5480 | key = field[i] | |
5481 | keylen = length(key) | |
5482 | if (S_is_set[key]) { | |
5483 | value = S[key] | |
5484 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
5485 | len += length(value) + length(field[++i]) | |
5486 | substed = 1 | |
5487 | } else | |
5488 | len += 1 + keylen | |
5489 | } | |
5490 | ||
5491 | print line | |
fa958513 DJ |
5492 | } |
5493 | ||
5213506e RW |
5494 | _ACAWK |
5495 | _ACEOF | |
5496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5497 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
5498 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
5499 | else | |
5500 | cat | |
5501 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
5502 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
d6efbf5a DJ |
5503 | _ACEOF |
5504 | ||
5213506e RW |
5505 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
5506 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
5507 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5508 | # (actually we leave an empty line to preserve line numbers). | |
5509 | if test "x$srcdir" = x.; then | |
5510 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
5511 | s/:*\$(srcdir):*/:/ | |
5512 | s/:*\${srcdir}:*/:/ | |
5513 | s/:*@srcdir@:*/:/ | |
5514 | s/^\([^=]*=[ ]*\):*/\1/ | |
5515 | s/:*$// | |
5516 | s/^[^=]*=[ ]*$// | |
5517 | }' | |
5518 | fi | |
d6efbf5a | 5519 | |
5213506e RW |
5520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5521 | fi # test -n "$CONFIG_FILES" | |
fa958513 | 5522 | |
aca06c90 RO |
5523 | # Set up the scripts for CONFIG_HEADERS section. |
5524 | # No need to generate them if there are no CONFIG_HEADERS. | |
5525 | # This happens for instance with `./config.status Makefile'. | |
5526 | if test -n "$CONFIG_HEADERS"; then | |
5527 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
5528 | BEGIN { | |
5529 | _ACEOF | |
5530 | ||
5531 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
5532 | # here-document in config.status, that substitutes the proper values into | |
5533 | # config.h.in to produce config.h. | |
5534 | ||
5535 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
5536 | # handling of long lines. | |
5537 | ac_delim='%!_!# ' | |
5538 | for ac_last_try in false false :; do | |
5539 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
5540 | if test -z "$ac_t"; then | |
5541 | break | |
5542 | elif $ac_last_try; then | |
5543 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
5544 | else | |
5545 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5546 | fi | |
5547 | done | |
fa958513 | 5548 | |
aca06c90 RO |
5549 | # For the awk script, D is an array of macro values keyed by name, |
5550 | # likewise P contains macro parameters if any. Preserve backslash | |
5551 | # newline sequences. | |
5552 | ||
5553 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
5554 | sed -n ' | |
5555 | s/.\{148\}/&'"$ac_delim"'/g | |
5556 | t rset | |
5557 | :rset | |
5558 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
5559 | t def | |
5560 | d | |
5561 | :def | |
5562 | s/\\$// | |
5563 | t bsnl | |
5564 | s/["\\]/\\&/g | |
5565 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5566 | D["\1"]=" \3"/p | |
5567 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
5568 | d | |
5569 | :bsnl | |
5570 | s/["\\]/\\&/g | |
5571 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5572 | D["\1"]=" \3\\\\\\n"\\/p | |
5573 | t cont | |
5574 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
5575 | t cont | |
5576 | d | |
5577 | :cont | |
5578 | n | |
5579 | s/.\{148\}/&'"$ac_delim"'/g | |
5580 | t clear | |
5581 | :clear | |
5582 | s/\\$// | |
5583 | t bsnlc | |
5584 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
5585 | d | |
5586 | :bsnlc | |
5587 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
5588 | b cont | |
5589 | ' <confdefs.h | sed ' | |
5590 | s/'"$ac_delim"'/"\\\ | |
5591 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
5592 | ||
5593 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5594 | for (key in D) D_is_set[key] = 1 | |
5595 | FS = "\a" | |
5596 | } | |
5597 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
5598 | line = \$ 0 | |
5599 | split(line, arg, " ") | |
5600 | if (arg[1] == "#") { | |
5601 | defundef = arg[2] | |
5602 | mac1 = arg[3] | |
5603 | } else { | |
5604 | defundef = substr(arg[1], 2) | |
5605 | mac1 = arg[2] | |
5606 | } | |
5607 | split(mac1, mac2, "(") #) | |
5608 | macro = mac2[1] | |
5609 | prefix = substr(line, 1, index(line, defundef) - 1) | |
5610 | if (D_is_set[macro]) { | |
5611 | # Preserve the white space surrounding the "#". | |
5612 | print prefix "define", macro P[macro] D[macro] | |
5613 | next | |
5614 | } else { | |
5615 | # Replace #undef with comments. This is necessary, for example, | |
5616 | # in the case of _POSIX_SOURCE, which is predefined and required | |
5617 | # on some systems where configure will not decide to define it. | |
5618 | if (defundef == "undef") { | |
5619 | print "/*", prefix defundef, macro, "*/" | |
5620 | next | |
5621 | } | |
5622 | } | |
5623 | } | |
5624 | { print } | |
5625 | _ACAWK | |
5626 | _ACEOF | |
5627 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5628 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
5629 | fi # test -n "$CONFIG_HEADERS" | |
5630 | ||
5631 | ||
5632 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" | |
5213506e RW |
5633 | shift |
5634 | for ac_tag | |
5635 | do | |
5636 | case $ac_tag in | |
5637 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
5638 | esac | |
5639 | case $ac_mode$ac_tag in | |
5640 | :[FHL]*:*);; | |
5641 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
5642 | :[FH]-) ac_tag=-:-;; | |
5643 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
5644 | esac | |
5645 | ac_save_IFS=$IFS | |
5646 | IFS=: | |
5647 | set x $ac_tag | |
5648 | IFS=$ac_save_IFS | |
5649 | shift | |
5650 | ac_file=$1 | |
5651 | shift | |
fa958513 | 5652 | |
5213506e RW |
5653 | case $ac_mode in |
5654 | :L) ac_source=$1;; | |
5655 | :[FH]) | |
5656 | ac_file_inputs= | |
5657 | for ac_f | |
5658 | do | |
5659 | case $ac_f in | |
5660 | -) ac_f="$tmp/stdin";; | |
5661 | *) # Look for the file first in the build tree, then in the source tree | |
5662 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5663 | # because $ac_f cannot contain `:'. | |
5664 | test -f "$ac_f" || | |
5665 | case $ac_f in | |
5666 | [\\/$]*) false;; | |
5667 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5668 | esac || | |
5669 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
5670 | esac | |
5671 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5672 | as_fn_append ac_file_inputs " '$ac_f'" | |
5673 | done | |
5674 | ||
5675 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5676 | # use $as_me), people would be surprised to read: | |
5677 | # /* config.h. Generated by config.status. */ | |
5678 | configure_input='Generated from '` | |
5679 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5680 | `' by configure.' | |
5681 | if test x"$ac_file" != x-; then | |
5682 | configure_input="$ac_file. $configure_input" | |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5684 | $as_echo "$as_me: creating $ac_file" >&6;} | |
d6efbf5a | 5685 | fi |
5213506e RW |
5686 | # Neutralize special characters interpreted by sed in replacement strings. |
5687 | case $configure_input in #( | |
5688 | *\&* | *\|* | *\\* ) | |
5689 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5690 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5691 | *) ac_sed_conf_input=$configure_input;; | |
5692 | esac | |
14e8fc8b | 5693 | |
5213506e RW |
5694 | case $ac_tag in |
5695 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
5696 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
5697 | esac | |
5698 | ;; | |
14e8fc8b PB |
5699 | esac |
5700 | ||
5213506e | 5701 | ac_dir=`$as_dirname -- "$ac_file" || |
fa958513 DJ |
5702 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5703 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5704 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
5705 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5706 | $as_echo X"$ac_file" | | |
5707 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5708 | s//\1/ | |
5709 | q | |
5710 | } | |
5711 | /^X\(\/\/\)[^/].*/{ | |
5712 | s//\1/ | |
5713 | q | |
5714 | } | |
5715 | /^X\(\/\/\)$/{ | |
5716 | s//\1/ | |
5717 | q | |
5718 | } | |
5719 | /^X\(\/\).*/{ | |
5720 | s//\1/ | |
5721 | q | |
5722 | } | |
5723 | s/.*/./; q'` | |
5724 | as_dir="$ac_dir"; as_fn_mkdir_p | |
fa958513 DJ |
5725 | ac_builddir=. |
5726 | ||
5213506e RW |
5727 | case "$ac_dir" in |
5728 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5729 | *) | |
5730 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5731 | # A ".." for each directory in $ac_dir_suffix. | |
5732 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5733 | case $ac_top_builddir_sub in | |
5734 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5735 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5736 | esac ;; | |
5737 | esac | |
5738 | ac_abs_top_builddir=$ac_pwd | |
5739 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5740 | # for backward compatibility: | |
5741 | ac_top_builddir=$ac_top_build_prefix | |
fa958513 DJ |
5742 | |
5743 | case $srcdir in | |
5213506e | 5744 | .) # We are building in place. |
fa958513 | 5745 | ac_srcdir=. |
5213506e RW |
5746 | ac_top_srcdir=$ac_top_builddir_sub |
5747 | ac_abs_top_srcdir=$ac_pwd ;; | |
5748 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fa958513 | 5749 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
5750 | ac_top_srcdir=$srcdir |
5751 | ac_abs_top_srcdir=$srcdir ;; | |
5752 | *) # Relative name. | |
5753 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5754 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5755 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fa958513 | 5756 | esac |
5213506e | 5757 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fa958513 | 5758 | |
fa958513 | 5759 | |
5213506e RW |
5760 | case $ac_mode in |
5761 | :F) | |
5762 | # | |
5763 | # CONFIG_FILE | |
5764 | # | |
fa958513 DJ |
5765 | |
5766 | case $INSTALL in | |
5767 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 5768 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fa958513 | 5769 | esac |
5213506e | 5770 | _ACEOF |
14e8fc8b | 5771 | |
5213506e RW |
5772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5773 | # If the template does not know about datarootdir, expand it. | |
5774 | # FIXME: This hack should be removed a few years after 2.60. | |
5775 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5776 | ac_sed_dataroot=' | |
5777 | /datarootdir/ { | |
5778 | p | |
5779 | q | |
5780 | } | |
5781 | /@datadir@/p | |
5782 | /@docdir@/p | |
5783 | /@infodir@/p | |
5784 | /@localedir@/p | |
5785 | /@mandir@/p' | |
5786 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5787 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5788 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5790 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5791 | _ACEOF | |
5792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5793 | ac_datarootdir_hack=' | |
5794 | s&@datadir@&$datadir&g | |
5795 | s&@docdir@&$docdir&g | |
5796 | s&@infodir@&$infodir&g | |
5797 | s&@localedir@&$localedir&g | |
5798 | s&@mandir@&$mandir&g | |
5799 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5800 | esac | |
fa958513 | 5801 | _ACEOF |
5213506e RW |
5802 | |
5803 | # Neutralize VPATH when `$srcdir' = `.'. | |
5804 | # Shell code in configure.ac might set extrasub. | |
5805 | # FIXME: do we really want to maintain this feature? | |
5806 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5807 | ac_sed_extra="$ac_vpsub | |
fa958513 DJ |
5808 | $extrasub |
5809 | _ACEOF | |
5213506e | 5810 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fa958513 DJ |
5811 | :t |
5812 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
5813 | s|@configure_input@|$ac_sed_conf_input|;t t |
5814 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5815 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5816 | s&@srcdir@&$ac_srcdir&;t t | |
5817 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5818 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5819 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5820 | s&@builddir@&$ac_builddir&;t t | |
5821 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5822 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5823 | s&@INSTALL@&$ac_INSTALL&;t t | |
5824 | $ac_datarootdir_hack | |
5825 | " | |
5826 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
5827 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5828 | ||
5829 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
5830 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
5831 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5833 | which seems to be undefined. Please make sure it is defined." >&5 | |
5834 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5835 | which seems to be undefined. Please make sure it is defined." >&2;} | |
5836 | ||
5837 | rm -f "$tmp/stdin" | |
5838 | case $ac_file in | |
5839 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
5840 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
5841 | esac \ | |
5842 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5843 | ;; | |
aca06c90 RO |
5844 | :H) |
5845 | # | |
5846 | # CONFIG_HEADER | |
5847 | # | |
5848 | if test x"$ac_file" != x-; then | |
5849 | { | |
5850 | $as_echo "/* $configure_input */" \ | |
5851 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
5852 | } >"$tmp/config.h" \ | |
5853 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5854 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5856 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5857 | else | |
5858 | rm -f "$ac_file" | |
5859 | mv "$tmp/config.h" "$ac_file" \ | |
5860 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
5861 | fi | |
5862 | else | |
5863 | $as_echo "/* $configure_input */" \ | |
5864 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
5865 | || as_fn_error "could not create -" "$LINENO" 5 | |
5866 | fi | |
5867 | ;; | |
58cd1d70 RO |
5868 | :L) |
5869 | # | |
5870 | # CONFIG_LINK | |
5871 | # | |
5872 | ||
5873 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then | |
5874 | : | |
5875 | else | |
5876 | # Prefer the file from the source tree if names are identical. | |
5877 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then | |
5878 | ac_source=$srcdir/$ac_source | |
5879 | fi | |
d6efbf5a | 5880 | |
58cd1d70 RO |
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
5882 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} | |
5883 | ||
5884 | if test ! -r "$ac_source"; then | |
5885 | as_fn_error "$ac_source: file not found" "$LINENO" 5 | |
5886 | fi | |
5887 | rm -f "$ac_file" | |
5888 | ||
5889 | # Try a relative symlink, then a hard link, then a copy. | |
5890 | case $srcdir in | |
5891 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; | |
5892 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; | |
5893 | esac | |
5894 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || | |
5895 | ln "$ac_source" "$ac_file" 2>/dev/null || | |
5896 | cp -p "$ac_source" "$ac_file" || | |
5897 | as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 | |
5898 | fi | |
5899 | ;; | |
5213506e RW |
5900 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
5901 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
5902 | ;; | |
5903 | esac | |
d6efbf5a DJ |
5904 | |
5905 | ||
5213506e RW |
5906 | case $ac_file$ac_mode in |
5907 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
fa958513 DJ |
5908 | if test -n "$CONFIG_FILES"; then |
5909 | # FIXME: We shouldn't need to set ac_file | |
5910 | ac_file=Makefile | |
5911 | . ${libgcc_topdir}/config-ml.in | |
5912 | fi ;; | |
5213506e | 5913 | |
fa958513 | 5914 | esac |
5213506e | 5915 | done # for ac_tag |
fa958513 | 5916 | |
fa958513 | 5917 | |
5213506e | 5918 | as_fn_exit 0 |
fa958513 | 5919 | _ACEOF |
fa958513 DJ |
5920 | ac_clean_files=$ac_clean_files_save |
5921 | ||
5213506e RW |
5922 | test $ac_write_fail = 0 || |
5923 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
5924 | ||
fa958513 DJ |
5925 | |
5926 | # configure is writing to config.log, and then calls config.status. | |
5927 | # config.status does its own redirection, appending to config.log. | |
5928 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5929 | # by configure, so config.status won't be able to write to it; its | |
5930 | # output is simply discarded. So we exec the FD to /dev/null, | |
5931 | # effectively closing config.log, so it can be properly (re)opened and | |
5932 | # appended to by config.status. When coming back to configure, we | |
5933 | # need to make the FD available again. | |
5934 | if test "$no_create" != yes; then | |
5935 | ac_cs_success=: | |
5936 | ac_config_status_args= | |
5937 | test "$silent" = yes && | |
5938 | ac_config_status_args="$ac_config_status_args --quiet" | |
5939 | exec 5>/dev/null | |
5940 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5941 | exec 5>>config.log | |
5942 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5943 | # would make configure fail if this is the last instruction. | |
5213506e RW |
5944 | $ac_cs_success || as_fn_exit $? |
5945 | fi | |
5946 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5948 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
fa958513 DJ |
5949 | fi |
5950 |