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