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