1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.60.
|
---|
4 | #
|
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
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+"$@"}'='"$@"'
|
---|
20 | setopt NO_GLOB_SUBST
|
---|
21 | else
|
---|
22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
---|
23 | fi
|
---|
24 | BIN_SH=xpg4; export BIN_SH # for Tru64
|
---|
25 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
26 |
|
---|
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 |
|
---|
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 |
|
---|
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 |
|
---|
90 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
91 | for as_var in ENV MAIL MAILPATH
|
---|
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
93 | done
|
---|
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
|
---|
107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
108 | fi
|
---|
109 | done
|
---|
110 |
|
---|
111 | # Required to use basename.
|
---|
112 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
114 | as_expr=expr
|
---|
115 | else
|
---|
116 | as_expr=false
|
---|
117 | fi
|
---|
118 |
|
---|
119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
120 | as_basename=basename
|
---|
121 | else
|
---|
122 | as_basename=false
|
---|
123 | fi
|
---|
124 |
|
---|
125 |
|
---|
126 | # Name of the executable.
|
---|
127 | as_me=`$as_basename -- "$0" ||
|
---|
128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
129 | X"$0" : 'X\(//\)$' \| \
|
---|
130 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
131 | echo X/"$0" |
|
---|
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'`
|
---|
145 |
|
---|
146 | # CDPATH.
|
---|
147 | $as_unset CDPATH
|
---|
148 |
|
---|
149 |
|
---|
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
|
---|
155 | fi
|
---|
156 |
|
---|
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 | }
|
---|
173 |
|
---|
174 | exitcode=0
|
---|
175 | if as_func_success; then
|
---|
176 | :
|
---|
177 | else
|
---|
178 | exitcode=1
|
---|
179 | echo as_func_success failed.
|
---|
180 | fi
|
---|
181 |
|
---|
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=
|
---|
217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
219 | do
|
---|
220 | IFS=$as_save_IFS
|
---|
221 | test -z "$as_dir" && as_dir=.
|
---|
222 | case $as_dir in
|
---|
223 | /*)
|
---|
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 | (
|
---|
322 | as_lineno_1=$LINENO
|
---|
323 | as_lineno_2=$LINENO
|
---|
324 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
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" || {
|
---|
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
|
---|
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.
|
---|
429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
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 |
|
---|
436 | sed '
|
---|
437 | s/[$]LINENO.*/&-/
|
---|
438 | t lineno
|
---|
439 | b
|
---|
440 | :lineno
|
---|
441 | N
|
---|
442 | :loop
|
---|
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
444 | t loop
|
---|
445 | s/-\n.*//
|
---|
446 | ' >$as_me.lineno &&
|
---|
447 | chmod +x "$as_me.lineno" ||
|
---|
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
|
---|
453 | # original and so on. Autoconf is especially sensitive to this).
|
---|
454 | . "./$as_me.lineno"
|
---|
455 | # Exit status is that of the last command.
|
---|
456 | exit
|
---|
457 | }
|
---|
458 |
|
---|
459 |
|
---|
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';;
|
---|
475 | esac
|
---|
476 |
|
---|
477 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
479 | as_expr=expr
|
---|
480 | else
|
---|
481 | as_expr=false
|
---|
482 | fi
|
---|
483 |
|
---|
484 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
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
|
---|
491 | echo >conf$$.file
|
---|
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
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 ||
|
---|
499 | as_ln_s='cp -p'
|
---|
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
|
---|
505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
506 | rmdir conf$$.dir 2>/dev/null
|
---|
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
|
---|
514 |
|
---|
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
|
---|
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 |
|
---|
536 |
|
---|
537 | exec 7<&0 </dev/null 6>&1
|
---|
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 |
|
---|
544 | #
|
---|
545 | # Initializations.
|
---|
546 | #
|
---|
547 | ac_default_prefix=/usr/local
|
---|
548 | ac_clean_files=
|
---|
549 | ac_config_libobj_dir=.
|
---|
550 | LIBOBJS=
|
---|
551 | cross_compiling=no
|
---|
552 | subdirs=
|
---|
553 | MFLAGS=
|
---|
554 | MAKEFLAGS=
|
---|
555 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
556 |
|
---|
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="lzfP.h"
|
---|
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>
|
---|
593 | #endif
|
---|
594 | #if HAVE_STDINT_H
|
---|
595 | # include <stdint.h>
|
---|
596 | #endif
|
---|
597 | #if HAVE_UNISTD_H
|
---|
598 | # include <unistd.h>
|
---|
599 | #endif"
|
---|
600 |
|
---|
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 | RANLIB
|
---|
646 | INSTALL_PROGRAM
|
---|
647 | INSTALL_SCRIPT
|
---|
648 | INSTALL_DATA
|
---|
649 | CPP
|
---|
650 | GREP
|
---|
651 | EGREP
|
---|
652 | LIBOBJS
|
---|
653 | LTLIBOBJS'
|
---|
654 | ac_subst_files=''
|
---|
655 | ac_precious_vars='build_alias
|
---|
656 | host_alias
|
---|
657 | target_alias
|
---|
658 | CC
|
---|
659 | CFLAGS
|
---|
660 | LDFLAGS
|
---|
661 | CPPFLAGS
|
---|
662 | CPP'
|
---|
663 |
|
---|
664 |
|
---|
665 | # Initialize some variables set by options.
|
---|
666 | ac_init_help=
|
---|
667 | ac_init_version=false
|
---|
668 | # The variables have the same names as the options, with
|
---|
669 | # dashes changed to underlines.
|
---|
670 | cache_file=/dev/null
|
---|
671 | exec_prefix=NONE
|
---|
672 | no_create=
|
---|
673 | no_recursion=
|
---|
674 | prefix=NONE
|
---|
675 | program_prefix=NONE
|
---|
676 | program_suffix=NONE
|
---|
677 | program_transform_name=s,x,x,
|
---|
678 | silent=
|
---|
679 | site=
|
---|
680 | srcdir=
|
---|
681 | verbose=
|
---|
682 | x_includes=NONE
|
---|
683 | x_libraries=NONE
|
---|
684 |
|
---|
685 | # Installation directory options.
|
---|
686 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
687 | # and all the variables that are supposed to be based on exec_prefix
|
---|
688 | # by default will actually change.
|
---|
689 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
690 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
691 | bindir='${exec_prefix}/bin'
|
---|
692 | sbindir='${exec_prefix}/sbin'
|
---|
693 | libexecdir='${exec_prefix}/libexec'
|
---|
694 | datarootdir='${prefix}/share'
|
---|
695 | datadir='${datarootdir}'
|
---|
696 | sysconfdir='${prefix}/etc'
|
---|
697 | sharedstatedir='${prefix}/com'
|
---|
698 | localstatedir='${prefix}/var'
|
---|
699 | includedir='${prefix}/include'
|
---|
700 | oldincludedir='/usr/include'
|
---|
701 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
702 | infodir='${datarootdir}/info'
|
---|
703 | htmldir='${docdir}'
|
---|
704 | dvidir='${docdir}'
|
---|
705 | pdfdir='${docdir}'
|
---|
706 | psdir='${docdir}'
|
---|
707 | libdir='${exec_prefix}/lib'
|
---|
708 | localedir='${datarootdir}/locale'
|
---|
709 | mandir='${datarootdir}/man'
|
---|
710 |
|
---|
711 | ac_prev=
|
---|
712 | ac_dashdash=
|
---|
713 | for ac_option
|
---|
714 | do
|
---|
715 | # If the previous option needs an argument, assign it.
|
---|
716 | if test -n "$ac_prev"; then
|
---|
717 | eval $ac_prev=\$ac_option
|
---|
718 | ac_prev=
|
---|
719 | continue
|
---|
720 | fi
|
---|
721 |
|
---|
722 | case $ac_option in
|
---|
723 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
724 | *) ac_optarg=yes ;;
|
---|
725 | esac
|
---|
726 |
|
---|
727 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
728 |
|
---|
729 | case $ac_dashdash$ac_option in
|
---|
730 | --)
|
---|
731 | ac_dashdash=yes ;;
|
---|
732 |
|
---|
733 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
734 | ac_prev=bindir ;;
|
---|
735 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
736 | bindir=$ac_optarg ;;
|
---|
737 |
|
---|
738 | -build | --build | --buil | --bui | --bu)
|
---|
739 | ac_prev=build_alias ;;
|
---|
740 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
741 | build_alias=$ac_optarg ;;
|
---|
742 |
|
---|
743 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
744 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
745 | ac_prev=cache_file ;;
|
---|
746 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
747 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
748 | cache_file=$ac_optarg ;;
|
---|
749 |
|
---|
750 | --config-cache | -C)
|
---|
751 | cache_file=config.cache ;;
|
---|
752 |
|
---|
753 | -datadir | --datadir | --datadi | --datad)
|
---|
754 | ac_prev=datadir ;;
|
---|
755 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
756 | datadir=$ac_optarg ;;
|
---|
757 |
|
---|
758 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
759 | | --dataroo | --dataro | --datar)
|
---|
760 | ac_prev=datarootdir ;;
|
---|
761 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
762 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
763 | datarootdir=$ac_optarg ;;
|
---|
764 |
|
---|
765 | -disable-* | --disable-*)
|
---|
766 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
767 | # Reject names that are not valid shell variable names.
|
---|
768 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
769 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
770 | { (exit 1); exit 1; }; }
|
---|
771 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
772 | eval enable_$ac_feature=no ;;
|
---|
773 |
|
---|
774 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
775 | ac_prev=docdir ;;
|
---|
776 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
777 | docdir=$ac_optarg ;;
|
---|
778 |
|
---|
779 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
780 | ac_prev=dvidir ;;
|
---|
781 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
782 | dvidir=$ac_optarg ;;
|
---|
783 |
|
---|
784 | -enable-* | --enable-*)
|
---|
785 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
786 | # Reject names that are not valid shell variable names.
|
---|
787 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
788 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
789 | { (exit 1); exit 1; }; }
|
---|
790 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
791 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
792 |
|
---|
793 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
794 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
795 | | --exec | --exe | --ex)
|
---|
796 | ac_prev=exec_prefix ;;
|
---|
797 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
798 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
799 | | --exec=* | --exe=* | --ex=*)
|
---|
800 | exec_prefix=$ac_optarg ;;
|
---|
801 |
|
---|
802 | -gas | --gas | --ga | --g)
|
---|
803 | # Obsolete; use --with-gas.
|
---|
804 | with_gas=yes ;;
|
---|
805 |
|
---|
806 | -help | --help | --hel | --he | -h)
|
---|
807 | ac_init_help=long ;;
|
---|
808 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
809 | ac_init_help=recursive ;;
|
---|
810 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
811 | ac_init_help=short ;;
|
---|
812 |
|
---|
813 | -host | --host | --hos | --ho)
|
---|
814 | ac_prev=host_alias ;;
|
---|
815 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
816 | host_alias=$ac_optarg ;;
|
---|
817 |
|
---|
818 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
819 | ac_prev=htmldir ;;
|
---|
820 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
821 | | --ht=*)
|
---|
822 | htmldir=$ac_optarg ;;
|
---|
823 |
|
---|
824 | -includedir | --includedir | --includedi | --included | --include \
|
---|
825 | | --includ | --inclu | --incl | --inc)
|
---|
826 | ac_prev=includedir ;;
|
---|
827 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
828 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
829 | includedir=$ac_optarg ;;
|
---|
830 |
|
---|
831 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
832 | ac_prev=infodir ;;
|
---|
833 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
834 | infodir=$ac_optarg ;;
|
---|
835 |
|
---|
836 | -libdir | --libdir | --libdi | --libd)
|
---|
837 | ac_prev=libdir ;;
|
---|
838 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
839 | libdir=$ac_optarg ;;
|
---|
840 |
|
---|
841 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
842 | | --libexe | --libex | --libe)
|
---|
843 | ac_prev=libexecdir ;;
|
---|
844 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
845 | | --libexe=* | --libex=* | --libe=*)
|
---|
846 | libexecdir=$ac_optarg ;;
|
---|
847 |
|
---|
848 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
849 | ac_prev=localedir ;;
|
---|
850 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
851 | localedir=$ac_optarg ;;
|
---|
852 |
|
---|
853 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
854 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
855 | ac_prev=localstatedir ;;
|
---|
856 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
857 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
858 | localstatedir=$ac_optarg ;;
|
---|
859 |
|
---|
860 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
861 | ac_prev=mandir ;;
|
---|
862 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
863 | mandir=$ac_optarg ;;
|
---|
864 |
|
---|
865 | -nfp | --nfp | --nf)
|
---|
866 | # Obsolete; use --without-fp.
|
---|
867 | with_fp=no ;;
|
---|
868 |
|
---|
869 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
870 | | --no-cr | --no-c | -n)
|
---|
871 | no_create=yes ;;
|
---|
872 |
|
---|
873 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
874 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
875 | no_recursion=yes ;;
|
---|
876 |
|
---|
877 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
878 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
879 | | --oldin | --oldi | --old | --ol | --o)
|
---|
880 | ac_prev=oldincludedir ;;
|
---|
881 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
882 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
883 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
884 | oldincludedir=$ac_optarg ;;
|
---|
885 |
|
---|
886 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
887 | ac_prev=prefix ;;
|
---|
888 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
889 | prefix=$ac_optarg ;;
|
---|
890 |
|
---|
891 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
892 | | --program-pre | --program-pr | --program-p)
|
---|
893 | ac_prev=program_prefix ;;
|
---|
894 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
895 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
896 | program_prefix=$ac_optarg ;;
|
---|
897 |
|
---|
898 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
899 | | --program-suf | --program-su | --program-s)
|
---|
900 | ac_prev=program_suffix ;;
|
---|
901 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
902 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
903 | program_suffix=$ac_optarg ;;
|
---|
904 |
|
---|
905 | -program-transform-name | --program-transform-name \
|
---|
906 | | --program-transform-nam | --program-transform-na \
|
---|
907 | | --program-transform-n | --program-transform- \
|
---|
908 | | --program-transform | --program-transfor \
|
---|
909 | | --program-transfo | --program-transf \
|
---|
910 | | --program-trans | --program-tran \
|
---|
911 | | --progr-tra | --program-tr | --program-t)
|
---|
912 | ac_prev=program_transform_name ;;
|
---|
913 | -program-transform-name=* | --program-transform-name=* \
|
---|
914 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
915 | | --program-transform-n=* | --program-transform-=* \
|
---|
916 | | --program-transform=* | --program-transfor=* \
|
---|
917 | | --program-transfo=* | --program-transf=* \
|
---|
918 | | --program-trans=* | --program-tran=* \
|
---|
919 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
920 | program_transform_name=$ac_optarg ;;
|
---|
921 |
|
---|
922 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
923 | ac_prev=pdfdir ;;
|
---|
924 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
925 | pdfdir=$ac_optarg ;;
|
---|
926 |
|
---|
927 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
928 | ac_prev=psdir ;;
|
---|
929 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
930 | psdir=$ac_optarg ;;
|
---|
931 |
|
---|
932 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
933 | | -silent | --silent | --silen | --sile | --sil)
|
---|
934 | silent=yes ;;
|
---|
935 |
|
---|
936 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
937 | ac_prev=sbindir ;;
|
---|
938 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
939 | | --sbi=* | --sb=*)
|
---|
940 | sbindir=$ac_optarg ;;
|
---|
941 |
|
---|
942 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
943 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
944 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
945 | | --sha | --sh)
|
---|
946 | ac_prev=sharedstatedir ;;
|
---|
947 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
948 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
949 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
950 | | --sha=* | --sh=*)
|
---|
951 | sharedstatedir=$ac_optarg ;;
|
---|
952 |
|
---|
953 | -site | --site | --sit)
|
---|
954 | ac_prev=site ;;
|
---|
955 | -site=* | --site=* | --sit=*)
|
---|
956 | site=$ac_optarg ;;
|
---|
957 |
|
---|
958 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
959 | ac_prev=srcdir ;;
|
---|
960 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
961 | srcdir=$ac_optarg ;;
|
---|
962 |
|
---|
963 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
964 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
965 | ac_prev=sysconfdir ;;
|
---|
966 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
967 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
968 | sysconfdir=$ac_optarg ;;
|
---|
969 |
|
---|
970 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
971 | ac_prev=target_alias ;;
|
---|
972 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
973 | target_alias=$ac_optarg ;;
|
---|
974 |
|
---|
975 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
976 | verbose=yes ;;
|
---|
977 |
|
---|
978 | -version | --version | --versio | --versi | --vers | -V)
|
---|
979 | ac_init_version=: ;;
|
---|
980 |
|
---|
981 | -with-* | --with-*)
|
---|
982 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
983 | # Reject names that are not valid shell variable names.
|
---|
984 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
985 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
986 | { (exit 1); exit 1; }; }
|
---|
987 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
988 | eval with_$ac_package=\$ac_optarg ;;
|
---|
989 |
|
---|
990 | -without-* | --without-*)
|
---|
991 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
992 | # Reject names that are not valid shell variable names.
|
---|
993 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
994 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
995 | { (exit 1); exit 1; }; }
|
---|
996 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
997 | eval with_$ac_package=no ;;
|
---|
998 |
|
---|
999 | --x)
|
---|
1000 | # Obsolete; use --with-x.
|
---|
1001 | with_x=yes ;;
|
---|
1002 |
|
---|
1003 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1004 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1005 | ac_prev=x_includes ;;
|
---|
1006 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1007 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1008 | x_includes=$ac_optarg ;;
|
---|
1009 |
|
---|
1010 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1011 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1012 | ac_prev=x_libraries ;;
|
---|
1013 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1014 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1015 | x_libraries=$ac_optarg ;;
|
---|
1016 |
|
---|
1017 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
1018 | Try \`$0 --help' for more information." >&2
|
---|
1019 | { (exit 1); exit 1; }; }
|
---|
1020 | ;;
|
---|
1021 |
|
---|
1022 | *=*)
|
---|
1023 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1024 | # Reject names that are not valid shell variable names.
|
---|
1025 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
1026 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
1027 | { (exit 1); exit 1; }; }
|
---|
1028 | eval $ac_envvar=\$ac_optarg
|
---|
1029 | export $ac_envvar ;;
|
---|
1030 |
|
---|
1031 | *)
|
---|
1032 | # FIXME: should be removed in autoconf 3.0.
|
---|
1033 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1034 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1035 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1036 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1037 | ;;
|
---|
1038 |
|
---|
1039 | esac
|
---|
1040 | done
|
---|
1041 |
|
---|
1042 | if test -n "$ac_prev"; then
|
---|
1043 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1044 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
1045 | { (exit 1); exit 1; }; }
|
---|
1046 | fi
|
---|
1047 |
|
---|
1048 | # Be sure to have absolute directory names.
|
---|
1049 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1050 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1051 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1052 | libdir localedir mandir
|
---|
1053 | do
|
---|
1054 | eval ac_val=\$$ac_var
|
---|
1055 | case $ac_val in
|
---|
1056 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1057 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1058 | esac
|
---|
1059 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
1060 | { (exit 1); exit 1; }; }
|
---|
1061 | done
|
---|
1062 |
|
---|
1063 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1064 | # used to hold the argument of --host etc.
|
---|
1065 | # FIXME: To remove some day.
|
---|
1066 | build=$build_alias
|
---|
1067 | host=$host_alias
|
---|
1068 | target=$target_alias
|
---|
1069 |
|
---|
1070 | # FIXME: To remove some day.
|
---|
1071 | if test "x$host_alias" != x; then
|
---|
1072 | if test "x$build_alias" = x; then
|
---|
1073 | cross_compiling=maybe
|
---|
1074 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
1075 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
1076 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1077 | cross_compiling=yes
|
---|
1078 | fi
|
---|
1079 | fi
|
---|
1080 |
|
---|
1081 | ac_tool_prefix=
|
---|
1082 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1083 |
|
---|
1084 | test "$silent" = yes && exec 6>/dev/null
|
---|
1085 |
|
---|
1086 |
|
---|
1087 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1088 | ac_ls_di=`ls -di .` &&
|
---|
1089 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1090 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
1091 | { (exit 1); exit 1; }; }
|
---|
1092 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1093 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
1094 | { (exit 1); exit 1; }; }
|
---|
1095 |
|
---|
1096 |
|
---|
1097 | # Find the source files, if location was not specified.
|
---|
1098 | if test -z "$srcdir"; then
|
---|
1099 | ac_srcdir_defaulted=yes
|
---|
1100 | # Try the directory containing this script, then the parent directory.
|
---|
1101 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
1102 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1103 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
1104 | X"$0" : 'X\(//\)$' \| \
|
---|
1105 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1106 | echo X"$0" |
|
---|
1107 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1108 | s//\1/
|
---|
1109 | q
|
---|
1110 | }
|
---|
1111 | /^X\(\/\/\)[^/].*/{
|
---|
1112 | s//\1/
|
---|
1113 | q
|
---|
1114 | }
|
---|
1115 | /^X\(\/\/\)$/{
|
---|
1116 | s//\1/
|
---|
1117 | q
|
---|
1118 | }
|
---|
1119 | /^X\(\/\).*/{
|
---|
1120 | s//\1/
|
---|
1121 | q
|
---|
1122 | }
|
---|
1123 | s/.*/./; q'`
|
---|
1124 | srcdir=$ac_confdir
|
---|
1125 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1126 | srcdir=..
|
---|
1127 | fi
|
---|
1128 | else
|
---|
1129 | ac_srcdir_defaulted=no
|
---|
1130 | fi
|
---|
1131 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1132 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1133 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
1134 | { (exit 1); exit 1; }; }
|
---|
1135 | fi
|
---|
1136 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1137 | ac_abs_confdir=`(
|
---|
1138 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
1139 | { (exit 1); exit 1; }; }
|
---|
1140 | pwd)`
|
---|
1141 | # When building in place, set srcdir=.
|
---|
1142 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1143 | srcdir=.
|
---|
1144 | fi
|
---|
1145 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1146 | # Double slashes in file names in object file debugging info
|
---|
1147 | # mess up M-x gdb in Emacs.
|
---|
1148 | case $srcdir in
|
---|
1149 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1150 | esac
|
---|
1151 | for ac_var in $ac_precious_vars; do
|
---|
1152 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1153 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1154 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1155 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1156 | done
|
---|
1157 |
|
---|
1158 | #
|
---|
1159 | # Report the --help message.
|
---|
1160 | #
|
---|
1161 | if test "$ac_init_help" = "long"; then
|
---|
1162 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1163 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1164 | cat <<_ACEOF
|
---|
1165 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1166 |
|
---|
1167 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1168 |
|
---|
1169 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1170 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1171 |
|
---|
1172 | Defaults for the options are specified in brackets.
|
---|
1173 |
|
---|
1174 | Configuration:
|
---|
1175 | -h, --help display this help and exit
|
---|
1176 | --help=short display options specific to this package
|
---|
1177 | --help=recursive display the short help of all the included packages
|
---|
1178 | -V, --version display version information and exit
|
---|
1179 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
1180 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1181 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1182 | -n, --no-create do not create output files
|
---|
1183 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1184 |
|
---|
1185 | Installation directories:
|
---|
1186 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1187 | [$ac_default_prefix]
|
---|
1188 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1189 | [PREFIX]
|
---|
1190 |
|
---|
1191 | By default, \`make install' will install all the files in
|
---|
1192 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1193 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1194 | for instance \`--prefix=\$HOME'.
|
---|
1195 |
|
---|
1196 | For better control, use the options below.
|
---|
1197 |
|
---|
1198 | Fine tuning of the installation directories:
|
---|
1199 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1200 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1201 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1202 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1203 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1204 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1205 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1206 | --includedir=DIR C header files [PREFIX/include]
|
---|
1207 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1208 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1209 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1210 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1211 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1212 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1213 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1214 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1215 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1216 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1217 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1218 | _ACEOF
|
---|
1219 |
|
---|
1220 | cat <<\_ACEOF
|
---|
1221 | _ACEOF
|
---|
1222 | fi
|
---|
1223 |
|
---|
1224 | if test -n "$ac_init_help"; then
|
---|
1225 |
|
---|
1226 | cat <<\_ACEOF
|
---|
1227 |
|
---|
1228 | Optional Features:
|
---|
1229 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1230 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1231 | --disable-largefile omit support for large files
|
---|
1232 |
|
---|
1233 | Some influential environment variables:
|
---|
1234 | CC C compiler command
|
---|
1235 | CFLAGS C compiler flags
|
---|
1236 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1237 | nonstandard directory <lib dir>
|
---|
1238 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
1239 | you have headers in a nonstandard directory <include dir>
|
---|
1240 | CPP C preprocessor
|
---|
1241 |
|
---|
1242 | Use these variables to override the choices made by `configure' or to help
|
---|
1243 | it to find libraries and programs with nonstandard names/locations.
|
---|
1244 |
|
---|
1245 | _ACEOF
|
---|
1246 | ac_status=$?
|
---|
1247 | fi
|
---|
1248 |
|
---|
1249 | if test "$ac_init_help" = "recursive"; then
|
---|
1250 | # If there are subdirs, report their specific --help.
|
---|
1251 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1252 | test -d "$ac_dir" || continue
|
---|
1253 | ac_builddir=.
|
---|
1254 |
|
---|
1255 | case "$ac_dir" in
|
---|
1256 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1257 | *)
|
---|
1258 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
1259 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1260 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
1261 | case $ac_top_builddir_sub in
|
---|
1262 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1263 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1264 | esac ;;
|
---|
1265 | esac
|
---|
1266 | ac_abs_top_builddir=$ac_pwd
|
---|
1267 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1268 | # for backward compatibility:
|
---|
1269 | ac_top_builddir=$ac_top_build_prefix
|
---|
1270 |
|
---|
1271 | case $srcdir in
|
---|
1272 | .) # We are building in place.
|
---|
1273 | ac_srcdir=.
|
---|
1274 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1275 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1276 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1277 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1278 | ac_top_srcdir=$srcdir
|
---|
1279 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1280 | *) # Relative name.
|
---|
1281 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1282 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1283 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1284 | esac
|
---|
1285 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1286 |
|
---|
1287 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1288 | # Check for guested configure.
|
---|
1289 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1290 | echo &&
|
---|
1291 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1292 | elif test -f "$ac_srcdir/configure"; then
|
---|
1293 | echo &&
|
---|
1294 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1295 | else
|
---|
1296 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1297 | fi || ac_status=$?
|
---|
1298 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1299 | done
|
---|
1300 | fi
|
---|
1301 |
|
---|
1302 | test -n "$ac_init_help" && exit $ac_status
|
---|
1303 | if $ac_init_version; then
|
---|
1304 | cat <<\_ACEOF
|
---|
1305 | configure
|
---|
1306 | generated by GNU Autoconf 2.60
|
---|
1307 |
|
---|
1308 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
1309 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
1310 | This configure script is free software; the Free Software Foundation
|
---|
1311 | gives unlimited permission to copy, distribute and modify it.
|
---|
1312 | _ACEOF
|
---|
1313 | exit
|
---|
1314 | fi
|
---|
1315 | cat >config.log <<_ACEOF
|
---|
1316 | This file contains any messages produced by compilers while
|
---|
1317 | running configure, to aid debugging if configure makes a mistake.
|
---|
1318 |
|
---|
1319 | It was created by $as_me, which was
|
---|
1320 | generated by GNU Autoconf 2.60. Invocation command line was
|
---|
1321 |
|
---|
1322 | $ $0 $@
|
---|
1323 |
|
---|
1324 | _ACEOF
|
---|
1325 | exec 5>>config.log
|
---|
1326 | {
|
---|
1327 | cat <<_ASUNAME
|
---|
1328 | ## --------- ##
|
---|
1329 | ## Platform. ##
|
---|
1330 | ## --------- ##
|
---|
1331 |
|
---|
1332 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1333 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1334 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1335 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1336 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1337 |
|
---|
1338 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1339 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1340 |
|
---|
1341 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1342 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1343 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1344 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1345 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1346 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1347 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1348 |
|
---|
1349 | _ASUNAME
|
---|
1350 |
|
---|
1351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1352 | for as_dir in $PATH
|
---|
1353 | do
|
---|
1354 | IFS=$as_save_IFS
|
---|
1355 | test -z "$as_dir" && as_dir=.
|
---|
1356 | echo "PATH: $as_dir"
|
---|
1357 | done
|
---|
1358 | IFS=$as_save_IFS
|
---|
1359 |
|
---|
1360 | } >&5
|
---|
1361 |
|
---|
1362 | cat >&5 <<_ACEOF
|
---|
1363 |
|
---|
1364 |
|
---|
1365 | ## ----------- ##
|
---|
1366 | ## Core tests. ##
|
---|
1367 | ## ----------- ##
|
---|
1368 |
|
---|
1369 | _ACEOF
|
---|
1370 |
|
---|
1371 |
|
---|
1372 | # Keep a trace of the command line.
|
---|
1373 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1374 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1375 | # Also quote any args containing shell meta-characters.
|
---|
1376 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1377 | ac_configure_args=
|
---|
1378 | ac_configure_args0=
|
---|
1379 | ac_configure_args1=
|
---|
1380 | ac_must_keep_next=false
|
---|
1381 | for ac_pass in 1 2
|
---|
1382 | do
|
---|
1383 | for ac_arg
|
---|
1384 | do
|
---|
1385 | case $ac_arg in
|
---|
1386 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1387 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1388 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1389 | continue ;;
|
---|
1390 | *\'*)
|
---|
1391 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1392 | esac
|
---|
1393 | case $ac_pass in
|
---|
1394 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1395 | 2)
|
---|
1396 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1397 | if test $ac_must_keep_next = true; then
|
---|
1398 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1399 | else
|
---|
1400 | case $ac_arg in
|
---|
1401 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1402 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1403 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1404 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1405 | case "$ac_configure_args0 " in
|
---|
1406 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1407 | esac
|
---|
1408 | ;;
|
---|
1409 | -* ) ac_must_keep_next=true ;;
|
---|
1410 | esac
|
---|
1411 | fi
|
---|
1412 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
1413 | ;;
|
---|
1414 | esac
|
---|
1415 | done
|
---|
1416 | done
|
---|
1417 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1418 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1419 |
|
---|
1420 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1421 | # config.log. We remove comments because anyway the quotes in there
|
---|
1422 | # would cause problems or look ugly.
|
---|
1423 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
1424 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
1425 | trap 'exit_status=$?
|
---|
1426 | # Save into config.log some information that might help in debugging.
|
---|
1427 | {
|
---|
1428 | echo
|
---|
1429 |
|
---|
1430 | cat <<\_ASBOX
|
---|
1431 | ## ---------------- ##
|
---|
1432 | ## Cache variables. ##
|
---|
1433 | ## ---------------- ##
|
---|
1434 | _ASBOX
|
---|
1435 | echo
|
---|
1436 | # The following way of writing the cache mishandles newlines in values,
|
---|
1437 | (
|
---|
1438 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
1439 | eval ac_val=\$$ac_var
|
---|
1440 | case $ac_val in #(
|
---|
1441 | *${as_nl}*)
|
---|
1442 | case $ac_var in #(
|
---|
1443 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
1444 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
1445 | esac
|
---|
1446 | case $ac_var in #(
|
---|
1447 | _ | IFS | as_nl) ;; #(
|
---|
1448 | *) $as_unset $ac_var ;;
|
---|
1449 | esac ;;
|
---|
1450 | esac
|
---|
1451 | done
|
---|
1452 | (set) 2>&1 |
|
---|
1453 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
1454 | *${as_nl}ac_space=\ *)
|
---|
1455 | sed -n \
|
---|
1456 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
1457 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
1458 | ;; #(
|
---|
1459 | *)
|
---|
1460 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
1461 | ;;
|
---|
1462 | esac |
|
---|
1463 | sort
|
---|
1464 | )
|
---|
1465 | echo
|
---|
1466 |
|
---|
1467 | cat <<\_ASBOX
|
---|
1468 | ## ----------------- ##
|
---|
1469 | ## Output variables. ##
|
---|
1470 | ## ----------------- ##
|
---|
1471 | _ASBOX
|
---|
1472 | echo
|
---|
1473 | for ac_var in $ac_subst_vars
|
---|
1474 | do
|
---|
1475 | eval ac_val=\$$ac_var
|
---|
1476 | case $ac_val in
|
---|
1477 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1478 | esac
|
---|
1479 | echo "$ac_var='\''$ac_val'\''"
|
---|
1480 | done | sort
|
---|
1481 | echo
|
---|
1482 |
|
---|
1483 | if test -n "$ac_subst_files"; then
|
---|
1484 | cat <<\_ASBOX
|
---|
1485 | ## ------------------- ##
|
---|
1486 | ## File substitutions. ##
|
---|
1487 | ## ------------------- ##
|
---|
1488 | _ASBOX
|
---|
1489 | echo
|
---|
1490 | for ac_var in $ac_subst_files
|
---|
1491 | do
|
---|
1492 | eval ac_val=\$$ac_var
|
---|
1493 | case $ac_val in
|
---|
1494 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1495 | esac
|
---|
1496 | echo "$ac_var='\''$ac_val'\''"
|
---|
1497 | done | sort
|
---|
1498 | echo
|
---|
1499 | fi
|
---|
1500 |
|
---|
1501 | if test -s confdefs.h; then
|
---|
1502 | cat <<\_ASBOX
|
---|
1503 | ## ----------- ##
|
---|
1504 | ## confdefs.h. ##
|
---|
1505 | ## ----------- ##
|
---|
1506 | _ASBOX
|
---|
1507 | echo
|
---|
1508 | cat confdefs.h
|
---|
1509 | echo
|
---|
1510 | fi
|
---|
1511 | test "$ac_signal" != 0 &&
|
---|
1512 | echo "$as_me: caught signal $ac_signal"
|
---|
1513 | echo "$as_me: exit $exit_status"
|
---|
1514 | } >&5
|
---|
1515 | rm -f core *.core core.conftest.* &&
|
---|
1516 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1517 | exit $exit_status
|
---|
1518 | ' 0
|
---|
1519 | for ac_signal in 1 2 13 15; do
|
---|
1520 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1521 | done
|
---|
1522 | ac_signal=0
|
---|
1523 |
|
---|
1524 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1525 | rm -f -r conftest* confdefs.h
|
---|
1526 |
|
---|
1527 | # Predefined preprocessor variables.
|
---|
1528 |
|
---|
1529 | cat >>confdefs.h <<_ACEOF
|
---|
1530 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1531 | _ACEOF
|
---|
1532 |
|
---|
1533 |
|
---|
1534 | cat >>confdefs.h <<_ACEOF
|
---|
1535 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1536 | _ACEOF
|
---|
1537 |
|
---|
1538 |
|
---|
1539 | cat >>confdefs.h <<_ACEOF
|
---|
1540 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1541 | _ACEOF
|
---|
1542 |
|
---|
1543 |
|
---|
1544 | cat >>confdefs.h <<_ACEOF
|
---|
1545 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1546 | _ACEOF
|
---|
1547 |
|
---|
1548 |
|
---|
1549 | cat >>confdefs.h <<_ACEOF
|
---|
1550 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1551 | _ACEOF
|
---|
1552 |
|
---|
1553 |
|
---|
1554 | # Let the site file select an alternate cache file if it wants to.
|
---|
1555 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1556 | if test -n "$CONFIG_SITE"; then
|
---|
1557 | set x "$CONFIG_SITE"
|
---|
1558 | elif test "x$prefix" != xNONE; then
|
---|
1559 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
1560 | else
|
---|
1561 | set x "$ac_default_prefix/share/config.site" \
|
---|
1562 | "$ac_default_prefix/etc/config.site"
|
---|
1563 | fi
|
---|
1564 | shift
|
---|
1565 | for ac_site_file
|
---|
1566 | do
|
---|
1567 | if test -r "$ac_site_file"; then
|
---|
1568 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1569 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1570 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1571 | . "$ac_site_file"
|
---|
1572 | fi
|
---|
1573 | done
|
---|
1574 |
|
---|
1575 | if test -r "$cache_file"; then
|
---|
1576 | # Some versions of bash will fail to source /dev/null (special
|
---|
1577 | # files actually), so we avoid doing that.
|
---|
1578 | if test -f "$cache_file"; then
|
---|
1579 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1580 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1581 | case $cache_file in
|
---|
1582 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
1583 | *) . "./$cache_file";;
|
---|
1584 | esac
|
---|
1585 | fi
|
---|
1586 | else
|
---|
1587 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1588 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1589 | >$cache_file
|
---|
1590 | fi
|
---|
1591 |
|
---|
1592 | # Check that the precious variables saved in the cache have kept the same
|
---|
1593 | # value.
|
---|
1594 | ac_cache_corrupted=false
|
---|
1595 | for ac_var in $ac_precious_vars; do
|
---|
1596 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1597 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1598 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
1599 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
1600 | case $ac_old_set,$ac_new_set in
|
---|
1601 | set,)
|
---|
1602 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1603 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1604 | ac_cache_corrupted=: ;;
|
---|
1605 | ,set)
|
---|
1606 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1607 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1608 | ac_cache_corrupted=: ;;
|
---|
1609 | ,);;
|
---|
1610 | *)
|
---|
1611 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1612 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1613 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1614 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1615 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1616 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1617 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1618 | ac_cache_corrupted=:
|
---|
1619 | fi;;
|
---|
1620 | esac
|
---|
1621 | # Pass precious variables to config.status.
|
---|
1622 | if test "$ac_new_set" = set; then
|
---|
1623 | case $ac_new_val in
|
---|
1624 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1625 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1626 | esac
|
---|
1627 | case " $ac_configure_args " in
|
---|
1628 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1629 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1630 | esac
|
---|
1631 | fi
|
---|
1632 | done
|
---|
1633 | if $ac_cache_corrupted; then
|
---|
1634 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1635 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1636 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1637 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1638 | { (exit 1); exit 1; }; }
|
---|
1639 | fi
|
---|
1640 |
|
---|
1641 |
|
---|
1642 |
|
---|
1643 |
|
---|
1644 |
|
---|
1645 |
|
---|
1646 |
|
---|
1647 |
|
---|
1648 |
|
---|
1649 |
|
---|
1650 |
|
---|
1651 |
|
---|
1652 |
|
---|
1653 |
|
---|
1654 |
|
---|
1655 |
|
---|
1656 |
|
---|
1657 | ac_ext=c
|
---|
1658 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1662 |
|
---|
1663 |
|
---|
1664 |
|
---|
1665 |
|
---|
1666 | ac_config_headers="$ac_config_headers config.h"
|
---|
1667 |
|
---|
1668 |
|
---|
1669 |
|
---|
1670 | cat >>confdefs.h <<\_ACEOF
|
---|
1671 | #define _GNU_SOURCE 1
|
---|
1672 | _ACEOF
|
---|
1673 |
|
---|
1674 |
|
---|
1675 | ac_ext=c
|
---|
1676 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1680 | if test -n "$ac_tool_prefix"; then
|
---|
1681 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1682 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1683 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1685 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1687 | else
|
---|
1688 | if test -n "$CC"; then
|
---|
1689 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1690 | else
|
---|
1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1692 | for as_dir in $PATH
|
---|
1693 | do
|
---|
1694 | IFS=$as_save_IFS
|
---|
1695 | test -z "$as_dir" && as_dir=.
|
---|
1696 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1698 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1700 | break 2
|
---|
1701 | fi
|
---|
1702 | done
|
---|
1703 | done
|
---|
1704 | IFS=$as_save_IFS
|
---|
1705 |
|
---|
1706 | fi
|
---|
1707 | fi
|
---|
1708 | CC=$ac_cv_prog_CC
|
---|
1709 | if test -n "$CC"; then
|
---|
1710 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1711 | echo "${ECHO_T}$CC" >&6; }
|
---|
1712 | else
|
---|
1713 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1714 | echo "${ECHO_T}no" >&6; }
|
---|
1715 | fi
|
---|
1716 |
|
---|
1717 |
|
---|
1718 | fi
|
---|
1719 | if test -z "$ac_cv_prog_CC"; then
|
---|
1720 | ac_ct_CC=$CC
|
---|
1721 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1722 | set dummy gcc; ac_word=$2
|
---|
1723 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1725 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1726 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1727 | else
|
---|
1728 | if test -n "$ac_ct_CC"; then
|
---|
1729 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1730 | else
|
---|
1731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1732 | for as_dir in $PATH
|
---|
1733 | do
|
---|
1734 | IFS=$as_save_IFS
|
---|
1735 | test -z "$as_dir" && as_dir=.
|
---|
1736 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1738 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1740 | break 2
|
---|
1741 | fi
|
---|
1742 | done
|
---|
1743 | done
|
---|
1744 | IFS=$as_save_IFS
|
---|
1745 |
|
---|
1746 | fi
|
---|
1747 | fi
|
---|
1748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1749 | if test -n "$ac_ct_CC"; then
|
---|
1750 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1751 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
1752 | else
|
---|
1753 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1754 | echo "${ECHO_T}no" >&6; }
|
---|
1755 | fi
|
---|
1756 |
|
---|
1757 | if test "x$ac_ct_CC" = x; then
|
---|
1758 | CC=""
|
---|
1759 | else
|
---|
1760 | case $cross_compiling:$ac_tool_warned in
|
---|
1761 | yes:)
|
---|
1762 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
1763 | whose name does not start with the host triplet. If you think this
|
---|
1764 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
1765 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
1766 | whose name does not start with the host triplet. If you think this
|
---|
1767 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
1768 | ac_tool_warned=yes ;;
|
---|
1769 | esac
|
---|
1770 | CC=$ac_ct_CC
|
---|
1771 | fi
|
---|
1772 | else
|
---|
1773 | CC="$ac_cv_prog_CC"
|
---|
1774 | fi
|
---|
1775 |
|
---|
1776 | if test -z "$CC"; then
|
---|
1777 | if test -n "$ac_tool_prefix"; then
|
---|
1778 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1779 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1780 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1782 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1783 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1784 | else
|
---|
1785 | if test -n "$CC"; then
|
---|
1786 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1787 | else
|
---|
1788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1789 | for as_dir in $PATH
|
---|
1790 | do
|
---|
1791 | IFS=$as_save_IFS
|
---|
1792 | test -z "$as_dir" && as_dir=.
|
---|
1793 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1795 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1797 | break 2
|
---|
1798 | fi
|
---|
1799 | done
|
---|
1800 | done
|
---|
1801 | IFS=$as_save_IFS
|
---|
1802 |
|
---|
1803 | fi
|
---|
1804 | fi
|
---|
1805 | CC=$ac_cv_prog_CC
|
---|
1806 | if test -n "$CC"; then
|
---|
1807 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1808 | echo "${ECHO_T}$CC" >&6; }
|
---|
1809 | else
|
---|
1810 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1811 | echo "${ECHO_T}no" >&6; }
|
---|
1812 | fi
|
---|
1813 |
|
---|
1814 |
|
---|
1815 | fi
|
---|
1816 | fi
|
---|
1817 | if test -z "$CC"; then
|
---|
1818 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1819 | set dummy cc; ac_word=$2
|
---|
1820 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1822 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1823 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1824 | else
|
---|
1825 | if test -n "$CC"; then
|
---|
1826 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1827 | else
|
---|
1828 | ac_prog_rejected=no
|
---|
1829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1830 | for as_dir in $PATH
|
---|
1831 | do
|
---|
1832 | IFS=$as_save_IFS
|
---|
1833 | test -z "$as_dir" && as_dir=.
|
---|
1834 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1836 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1837 | ac_prog_rejected=yes
|
---|
1838 | continue
|
---|
1839 | fi
|
---|
1840 | ac_cv_prog_CC="cc"
|
---|
1841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1842 | break 2
|
---|
1843 | fi
|
---|
1844 | done
|
---|
1845 | done
|
---|
1846 | IFS=$as_save_IFS
|
---|
1847 |
|
---|
1848 | if test $ac_prog_rejected = yes; then
|
---|
1849 | # We found a bogon in the path, so make sure we never use it.
|
---|
1850 | set dummy $ac_cv_prog_CC
|
---|
1851 | shift
|
---|
1852 | if test $# != 0; then
|
---|
1853 | # We chose a different compiler from the bogus one.
|
---|
1854 | # However, it has the same basename, so the bogon will be chosen
|
---|
1855 | # first if we set CC to just the basename; use the full file name.
|
---|
1856 | shift
|
---|
1857 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1858 | fi
|
---|
1859 | fi
|
---|
1860 | fi
|
---|
1861 | fi
|
---|
1862 | CC=$ac_cv_prog_CC
|
---|
1863 | if test -n "$CC"; then
|
---|
1864 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1865 | echo "${ECHO_T}$CC" >&6; }
|
---|
1866 | else
|
---|
1867 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1868 | echo "${ECHO_T}no" >&6; }
|
---|
1869 | fi
|
---|
1870 |
|
---|
1871 |
|
---|
1872 | fi
|
---|
1873 | if test -z "$CC"; then
|
---|
1874 | if test -n "$ac_tool_prefix"; then
|
---|
1875 | for ac_prog in cl.exe
|
---|
1876 | do
|
---|
1877 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1878 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1879 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1881 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1882 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1883 | else
|
---|
1884 | if test -n "$CC"; then
|
---|
1885 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1886 | else
|
---|
1887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1888 | for as_dir in $PATH
|
---|
1889 | do
|
---|
1890 | IFS=$as_save_IFS
|
---|
1891 | test -z "$as_dir" && as_dir=.
|
---|
1892 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1894 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1896 | break 2
|
---|
1897 | fi
|
---|
1898 | done
|
---|
1899 | done
|
---|
1900 | IFS=$as_save_IFS
|
---|
1901 |
|
---|
1902 | fi
|
---|
1903 | fi
|
---|
1904 | CC=$ac_cv_prog_CC
|
---|
1905 | if test -n "$CC"; then
|
---|
1906 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1907 | echo "${ECHO_T}$CC" >&6; }
|
---|
1908 | else
|
---|
1909 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1910 | echo "${ECHO_T}no" >&6; }
|
---|
1911 | fi
|
---|
1912 |
|
---|
1913 |
|
---|
1914 | test -n "$CC" && break
|
---|
1915 | done
|
---|
1916 | fi
|
---|
1917 | if test -z "$CC"; then
|
---|
1918 | ac_ct_CC=$CC
|
---|
1919 | for ac_prog in cl.exe
|
---|
1920 | do
|
---|
1921 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1922 | set dummy $ac_prog; ac_word=$2
|
---|
1923 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1925 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1927 | else
|
---|
1928 | if test -n "$ac_ct_CC"; then
|
---|
1929 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1930 | else
|
---|
1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1932 | for as_dir in $PATH
|
---|
1933 | do
|
---|
1934 | IFS=$as_save_IFS
|
---|
1935 | test -z "$as_dir" && as_dir=.
|
---|
1936 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1938 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1940 | break 2
|
---|
1941 | fi
|
---|
1942 | done
|
---|
1943 | done
|
---|
1944 | IFS=$as_save_IFS
|
---|
1945 |
|
---|
1946 | fi
|
---|
1947 | fi
|
---|
1948 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1949 | if test -n "$ac_ct_CC"; then
|
---|
1950 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1951 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
1952 | else
|
---|
1953 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1954 | echo "${ECHO_T}no" >&6; }
|
---|
1955 | fi
|
---|
1956 |
|
---|
1957 |
|
---|
1958 | test -n "$ac_ct_CC" && break
|
---|
1959 | done
|
---|
1960 |
|
---|
1961 | if test "x$ac_ct_CC" = x; then
|
---|
1962 | CC=""
|
---|
1963 | else
|
---|
1964 | case $cross_compiling:$ac_tool_warned in
|
---|
1965 | yes:)
|
---|
1966 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
1967 | whose name does not start with the host triplet. If you think this
|
---|
1968 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
1969 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
1970 | whose name does not start with the host triplet. If you think this
|
---|
1971 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
1972 | ac_tool_warned=yes ;;
|
---|
1973 | esac
|
---|
1974 | CC=$ac_ct_CC
|
---|
1975 | fi
|
---|
1976 | fi
|
---|
1977 |
|
---|
1978 | fi
|
---|
1979 |
|
---|
1980 |
|
---|
1981 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1982 | See \`config.log' for more details." >&5
|
---|
1983 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1984 | See \`config.log' for more details." >&2;}
|
---|
1985 | { (exit 1); exit 1; }; }
|
---|
1986 |
|
---|
1987 | # Provide some information about the compiler.
|
---|
1988 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
1989 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1990 | { (ac_try="$ac_compiler --version >&5"
|
---|
1991 | case "(($ac_try" in
|
---|
1992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1993 | *) ac_try_echo=$ac_try;;
|
---|
1994 | esac
|
---|
1995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
1996 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
1997 | ac_status=$?
|
---|
1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1999 | (exit $ac_status); }
|
---|
2000 | { (ac_try="$ac_compiler -v >&5"
|
---|
2001 | case "(($ac_try" in
|
---|
2002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2003 | *) ac_try_echo=$ac_try;;
|
---|
2004 | esac
|
---|
2005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2006 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
2007 | ac_status=$?
|
---|
2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2009 | (exit $ac_status); }
|
---|
2010 | { (ac_try="$ac_compiler -V >&5"
|
---|
2011 | case "(($ac_try" in
|
---|
2012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2013 | *) ac_try_echo=$ac_try;;
|
---|
2014 | esac
|
---|
2015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2016 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
2017 | ac_status=$?
|
---|
2018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2019 | (exit $ac_status); }
|
---|
2020 |
|
---|
2021 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2022 | /* confdefs.h. */
|
---|
2023 | _ACEOF
|
---|
2024 | cat confdefs.h >>conftest.$ac_ext
|
---|
2025 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2026 | /* end confdefs.h. */
|
---|
2027 |
|
---|
2028 | int
|
---|
2029 | main ()
|
---|
2030 | {
|
---|
2031 |
|
---|
2032 | ;
|
---|
2033 | return 0;
|
---|
2034 | }
|
---|
2035 | _ACEOF
|
---|
2036 | ac_clean_files_save=$ac_clean_files
|
---|
2037 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2038 | # Try to create an executable without -o first, disregard a.out.
|
---|
2039 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2040 | # of exeext.
|
---|
2041 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
2042 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
---|
2043 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2044 | #
|
---|
2045 | # List of possible output files, starting from the most likely.
|
---|
2046 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
2047 | # only as a last resort. b.out is created by i960 compilers.
|
---|
2048 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
2049 | #
|
---|
2050 | # The IRIX 6 linker writes into existing files which may not be
|
---|
2051 | # executable, retaining their permissions. Remove them first so a
|
---|
2052 | # subsequent execution test works.
|
---|
2053 | ac_rmfiles=
|
---|
2054 | for ac_file in $ac_files
|
---|
2055 | do
|
---|
2056 | case $ac_file in
|
---|
2057 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2058 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2059 | esac
|
---|
2060 | done
|
---|
2061 | rm -f $ac_rmfiles
|
---|
2062 |
|
---|
2063 | if { (ac_try="$ac_link_default"
|
---|
2064 | case "(($ac_try" in
|
---|
2065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2066 | *) ac_try_echo=$ac_try;;
|
---|
2067 | esac
|
---|
2068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2069 | (eval "$ac_link_default") 2>&5
|
---|
2070 | ac_status=$?
|
---|
2071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2072 | (exit $ac_status); }; then
|
---|
2073 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2074 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2075 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2076 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2077 | # Autoconf.
|
---|
2078 | for ac_file in $ac_files
|
---|
2079 | do
|
---|
2080 | test -f "$ac_file" || continue
|
---|
2081 | case $ac_file in
|
---|
2082 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
2083 | ;;
|
---|
2084 | [ab].out )
|
---|
2085 | # We found the default executable, but exeext='' is most
|
---|
2086 | # certainly right.
|
---|
2087 | break;;
|
---|
2088 | *.* )
|
---|
2089 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2090 | then :; else
|
---|
2091 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2092 | fi
|
---|
2093 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2094 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2095 | # argument, so we may need to know it at that point already.
|
---|
2096 | # Even if this section looks crufty: it has the advantage of
|
---|
2097 | # actually working.
|
---|
2098 | break;;
|
---|
2099 | * )
|
---|
2100 | break;;
|
---|
2101 | esac
|
---|
2102 | done
|
---|
2103 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2104 |
|
---|
2105 | else
|
---|
2106 | echo "$as_me: failed program was:" >&5
|
---|
2107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2108 |
|
---|
2109 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
2110 | See \`config.log' for more details." >&5
|
---|
2111 | echo "$as_me: error: C compiler cannot create executables
|
---|
2112 | See \`config.log' for more details." >&2;}
|
---|
2113 | { (exit 77); exit 77; }; }
|
---|
2114 | fi
|
---|
2115 |
|
---|
2116 | ac_exeext=$ac_cv_exeext
|
---|
2117 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2118 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
2119 |
|
---|
2120 | # Check that the compiler produces executables we can run. If not, either
|
---|
2121 | # the compiler is broken, or we cross compile.
|
---|
2122 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
2123 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
---|
2124 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2125 | # If not cross compiling, check that we can run a simple program.
|
---|
2126 | if test "$cross_compiling" != yes; then
|
---|
2127 | if { ac_try='./$ac_file'
|
---|
2128 | { (case "(($ac_try" in
|
---|
2129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2130 | *) ac_try_echo=$ac_try;;
|
---|
2131 | esac
|
---|
2132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2133 | (eval "$ac_try") 2>&5
|
---|
2134 | ac_status=$?
|
---|
2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2136 | (exit $ac_status); }; }; then
|
---|
2137 | cross_compiling=no
|
---|
2138 | else
|
---|
2139 | if test "$cross_compiling" = maybe; then
|
---|
2140 | cross_compiling=yes
|
---|
2141 | else
|
---|
2142 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
2143 | If you meant to cross compile, use \`--host'.
|
---|
2144 | See \`config.log' for more details." >&5
|
---|
2145 | echo "$as_me: error: cannot run C compiled programs.
|
---|
2146 | If you meant to cross compile, use \`--host'.
|
---|
2147 | See \`config.log' for more details." >&2;}
|
---|
2148 | { (exit 1); exit 1; }; }
|
---|
2149 | fi
|
---|
2150 | fi
|
---|
2151 | fi
|
---|
2152 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
2153 | echo "${ECHO_T}yes" >&6; }
|
---|
2154 |
|
---|
2155 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2156 | ac_clean_files=$ac_clean_files_save
|
---|
2157 | # Check that the compiler produces executables we can run. If not, either
|
---|
2158 | # the compiler is broken, or we cross compile.
|
---|
2159 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2160 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
2161 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2162 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
2163 |
|
---|
2164 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2165 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
2166 | if { (ac_try="$ac_link"
|
---|
2167 | case "(($ac_try" in
|
---|
2168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2169 | *) ac_try_echo=$ac_try;;
|
---|
2170 | esac
|
---|
2171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2172 | (eval "$ac_link") 2>&5
|
---|
2173 | ac_status=$?
|
---|
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2175 | (exit $ac_status); }; then
|
---|
2176 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2177 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2178 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2179 | # `rm'.
|
---|
2180 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2181 | test -f "$ac_file" || continue
|
---|
2182 | case $ac_file in
|
---|
2183 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2184 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2185 | break;;
|
---|
2186 | * ) break;;
|
---|
2187 | esac
|
---|
2188 | done
|
---|
2189 | else
|
---|
2190 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2191 | See \`config.log' for more details." >&5
|
---|
2192 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2193 | See \`config.log' for more details." >&2;}
|
---|
2194 | { (exit 1); exit 1; }; }
|
---|
2195 | fi
|
---|
2196 |
|
---|
2197 | rm -f conftest$ac_cv_exeext
|
---|
2198 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2199 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
2200 |
|
---|
2201 | rm -f conftest.$ac_ext
|
---|
2202 | EXEEXT=$ac_cv_exeext
|
---|
2203 | ac_exeext=$EXEEXT
|
---|
2204 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2205 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
2206 | if test "${ac_cv_objext+set}" = set; then
|
---|
2207 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2208 | else
|
---|
2209 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2210 | /* confdefs.h. */
|
---|
2211 | _ACEOF
|
---|
2212 | cat confdefs.h >>conftest.$ac_ext
|
---|
2213 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2214 | /* end confdefs.h. */
|
---|
2215 |
|
---|
2216 | int
|
---|
2217 | main ()
|
---|
2218 | {
|
---|
2219 |
|
---|
2220 | ;
|
---|
2221 | return 0;
|
---|
2222 | }
|
---|
2223 | _ACEOF
|
---|
2224 | rm -f conftest.o conftest.obj
|
---|
2225 | if { (ac_try="$ac_compile"
|
---|
2226 | case "(($ac_try" in
|
---|
2227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2228 | *) ac_try_echo=$ac_try;;
|
---|
2229 | esac
|
---|
2230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2231 | (eval "$ac_compile") 2>&5
|
---|
2232 | ac_status=$?
|
---|
2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2234 | (exit $ac_status); }; then
|
---|
2235 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2236 | test -f "$ac_file" || continue;
|
---|
2237 | case $ac_file in
|
---|
2238 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
2239 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2240 | break;;
|
---|
2241 | esac
|
---|
2242 | done
|
---|
2243 | else
|
---|
2244 | echo "$as_me: failed program was:" >&5
|
---|
2245 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2246 |
|
---|
2247 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2248 | See \`config.log' for more details." >&5
|
---|
2249 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2250 | See \`config.log' for more details." >&2;}
|
---|
2251 | { (exit 1); exit 1; }; }
|
---|
2252 | fi
|
---|
2253 |
|
---|
2254 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2255 | fi
|
---|
2256 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2257 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
2258 | OBJEXT=$ac_cv_objext
|
---|
2259 | ac_objext=$OBJEXT
|
---|
2260 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2261 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
2262 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2264 | else
|
---|
2265 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2266 | /* confdefs.h. */
|
---|
2267 | _ACEOF
|
---|
2268 | cat confdefs.h >>conftest.$ac_ext
|
---|
2269 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2270 | /* end confdefs.h. */
|
---|
2271 |
|
---|
2272 | int
|
---|
2273 | main ()
|
---|
2274 | {
|
---|
2275 | #ifndef __GNUC__
|
---|
2276 | choke me
|
---|
2277 | #endif
|
---|
2278 |
|
---|
2279 | ;
|
---|
2280 | return 0;
|
---|
2281 | }
|
---|
2282 | _ACEOF
|
---|
2283 | rm -f conftest.$ac_objext
|
---|
2284 | if { (ac_try="$ac_compile"
|
---|
2285 | case "(($ac_try" in
|
---|
2286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2287 | *) ac_try_echo=$ac_try;;
|
---|
2288 | esac
|
---|
2289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2290 | (eval "$ac_compile") 2>conftest.er1
|
---|
2291 | ac_status=$?
|
---|
2292 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2293 | rm -f conftest.er1
|
---|
2294 | cat conftest.err >&5
|
---|
2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2296 | (exit $ac_status); } &&
|
---|
2297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2298 | { (case "(($ac_try" in
|
---|
2299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2300 | *) ac_try_echo=$ac_try;;
|
---|
2301 | esac
|
---|
2302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2303 | (eval "$ac_try") 2>&5
|
---|
2304 | ac_status=$?
|
---|
2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2306 | (exit $ac_status); }; } &&
|
---|
2307 | { ac_try='test -s conftest.$ac_objext'
|
---|
2308 | { (case "(($ac_try" in
|
---|
2309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2310 | *) ac_try_echo=$ac_try;;
|
---|
2311 | esac
|
---|
2312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2313 | (eval "$ac_try") 2>&5
|
---|
2314 | ac_status=$?
|
---|
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2316 | (exit $ac_status); }; }; then
|
---|
2317 | ac_compiler_gnu=yes
|
---|
2318 | else
|
---|
2319 | echo "$as_me: failed program was:" >&5
|
---|
2320 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2321 |
|
---|
2322 | ac_compiler_gnu=no
|
---|
2323 | fi
|
---|
2324 |
|
---|
2325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2326 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2327 |
|
---|
2328 | fi
|
---|
2329 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2330 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
2331 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2332 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2333 | ac_save_CFLAGS=$CFLAGS
|
---|
2334 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2335 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
2336 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2337 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2338 | else
|
---|
2339 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
2340 | ac_c_werror_flag=yes
|
---|
2341 | ac_cv_prog_cc_g=no
|
---|
2342 | CFLAGS="-g"
|
---|
2343 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2344 | /* confdefs.h. */
|
---|
2345 | _ACEOF
|
---|
2346 | cat confdefs.h >>conftest.$ac_ext
|
---|
2347 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2348 | /* end confdefs.h. */
|
---|
2349 |
|
---|
2350 | int
|
---|
2351 | main ()
|
---|
2352 | {
|
---|
2353 |
|
---|
2354 | ;
|
---|
2355 | return 0;
|
---|
2356 | }
|
---|
2357 | _ACEOF
|
---|
2358 | rm -f conftest.$ac_objext
|
---|
2359 | if { (ac_try="$ac_compile"
|
---|
2360 | case "(($ac_try" in
|
---|
2361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2362 | *) ac_try_echo=$ac_try;;
|
---|
2363 | esac
|
---|
2364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2365 | (eval "$ac_compile") 2>conftest.er1
|
---|
2366 | ac_status=$?
|
---|
2367 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2368 | rm -f conftest.er1
|
---|
2369 | cat conftest.err >&5
|
---|
2370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2371 | (exit $ac_status); } &&
|
---|
2372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2373 | { (case "(($ac_try" in
|
---|
2374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2375 | *) ac_try_echo=$ac_try;;
|
---|
2376 | esac
|
---|
2377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2378 | (eval "$ac_try") 2>&5
|
---|
2379 | ac_status=$?
|
---|
2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2381 | (exit $ac_status); }; } &&
|
---|
2382 | { ac_try='test -s conftest.$ac_objext'
|
---|
2383 | { (case "(($ac_try" in
|
---|
2384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2385 | *) ac_try_echo=$ac_try;;
|
---|
2386 | esac
|
---|
2387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2388 | (eval "$ac_try") 2>&5
|
---|
2389 | ac_status=$?
|
---|
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2391 | (exit $ac_status); }; }; then
|
---|
2392 | ac_cv_prog_cc_g=yes
|
---|
2393 | else
|
---|
2394 | echo "$as_me: failed program was:" >&5
|
---|
2395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2396 |
|
---|
2397 | CFLAGS=""
|
---|
2398 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2399 | /* confdefs.h. */
|
---|
2400 | _ACEOF
|
---|
2401 | cat confdefs.h >>conftest.$ac_ext
|
---|
2402 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2403 | /* end confdefs.h. */
|
---|
2404 |
|
---|
2405 | int
|
---|
2406 | main ()
|
---|
2407 | {
|
---|
2408 |
|
---|
2409 | ;
|
---|
2410 | return 0;
|
---|
2411 | }
|
---|
2412 | _ACEOF
|
---|
2413 | rm -f conftest.$ac_objext
|
---|
2414 | if { (ac_try="$ac_compile"
|
---|
2415 | case "(($ac_try" in
|
---|
2416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2417 | *) ac_try_echo=$ac_try;;
|
---|
2418 | esac
|
---|
2419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2420 | (eval "$ac_compile") 2>conftest.er1
|
---|
2421 | ac_status=$?
|
---|
2422 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2423 | rm -f conftest.er1
|
---|
2424 | cat conftest.err >&5
|
---|
2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2426 | (exit $ac_status); } &&
|
---|
2427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2428 | { (case "(($ac_try" in
|
---|
2429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2430 | *) ac_try_echo=$ac_try;;
|
---|
2431 | esac
|
---|
2432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2433 | (eval "$ac_try") 2>&5
|
---|
2434 | ac_status=$?
|
---|
2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2436 | (exit $ac_status); }; } &&
|
---|
2437 | { ac_try='test -s conftest.$ac_objext'
|
---|
2438 | { (case "(($ac_try" in
|
---|
2439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2440 | *) ac_try_echo=$ac_try;;
|
---|
2441 | esac
|
---|
2442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2443 | (eval "$ac_try") 2>&5
|
---|
2444 | ac_status=$?
|
---|
2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2446 | (exit $ac_status); }; }; then
|
---|
2447 | :
|
---|
2448 | else
|
---|
2449 | echo "$as_me: failed program was:" >&5
|
---|
2450 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2451 |
|
---|
2452 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2453 | CFLAGS="-g"
|
---|
2454 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2455 | /* confdefs.h. */
|
---|
2456 | _ACEOF
|
---|
2457 | cat confdefs.h >>conftest.$ac_ext
|
---|
2458 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2459 | /* end confdefs.h. */
|
---|
2460 |
|
---|
2461 | int
|
---|
2462 | main ()
|
---|
2463 | {
|
---|
2464 |
|
---|
2465 | ;
|
---|
2466 | return 0;
|
---|
2467 | }
|
---|
2468 | _ACEOF
|
---|
2469 | rm -f conftest.$ac_objext
|
---|
2470 | if { (ac_try="$ac_compile"
|
---|
2471 | case "(($ac_try" in
|
---|
2472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2473 | *) ac_try_echo=$ac_try;;
|
---|
2474 | esac
|
---|
2475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2476 | (eval "$ac_compile") 2>conftest.er1
|
---|
2477 | ac_status=$?
|
---|
2478 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2479 | rm -f conftest.er1
|
---|
2480 | cat conftest.err >&5
|
---|
2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2482 | (exit $ac_status); } &&
|
---|
2483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2484 | { (case "(($ac_try" in
|
---|
2485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2486 | *) ac_try_echo=$ac_try;;
|
---|
2487 | esac
|
---|
2488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2489 | (eval "$ac_try") 2>&5
|
---|
2490 | ac_status=$?
|
---|
2491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2492 | (exit $ac_status); }; } &&
|
---|
2493 | { ac_try='test -s conftest.$ac_objext'
|
---|
2494 | { (case "(($ac_try" in
|
---|
2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2496 | *) ac_try_echo=$ac_try;;
|
---|
2497 | esac
|
---|
2498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2499 | (eval "$ac_try") 2>&5
|
---|
2500 | ac_status=$?
|
---|
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2502 | (exit $ac_status); }; }; then
|
---|
2503 | ac_cv_prog_cc_g=yes
|
---|
2504 | else
|
---|
2505 | echo "$as_me: failed program was:" >&5
|
---|
2506 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2507 |
|
---|
2508 |
|
---|
2509 | fi
|
---|
2510 |
|
---|
2511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2512 | fi
|
---|
2513 |
|
---|
2514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2515 | fi
|
---|
2516 |
|
---|
2517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2518 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2519 | fi
|
---|
2520 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2521 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
2522 | if test "$ac_test_CFLAGS" = set; then
|
---|
2523 | CFLAGS=$ac_save_CFLAGS
|
---|
2524 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2525 | if test "$GCC" = yes; then
|
---|
2526 | CFLAGS="-g -O2"
|
---|
2527 | else
|
---|
2528 | CFLAGS="-g"
|
---|
2529 | fi
|
---|
2530 | else
|
---|
2531 | if test "$GCC" = yes; then
|
---|
2532 | CFLAGS="-O2"
|
---|
2533 | else
|
---|
2534 | CFLAGS=
|
---|
2535 | fi
|
---|
2536 | fi
|
---|
2537 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
2538 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
2539 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
2540 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2541 | else
|
---|
2542 | ac_cv_prog_cc_c89=no
|
---|
2543 | ac_save_CC=$CC
|
---|
2544 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2545 | /* confdefs.h. */
|
---|
2546 | _ACEOF
|
---|
2547 | cat confdefs.h >>conftest.$ac_ext
|
---|
2548 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2549 | /* end confdefs.h. */
|
---|
2550 | #include <stdarg.h>
|
---|
2551 | #include <stdio.h>
|
---|
2552 | #include <sys/types.h>
|
---|
2553 | #include <sys/stat.h>
|
---|
2554 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2555 | struct buf { int x; };
|
---|
2556 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2557 | static char *e (p, i)
|
---|
2558 | char **p;
|
---|
2559 | int i;
|
---|
2560 | {
|
---|
2561 | return p[i];
|
---|
2562 | }
|
---|
2563 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2564 | {
|
---|
2565 | char *s;
|
---|
2566 | va_list v;
|
---|
2567 | va_start (v,p);
|
---|
2568 | s = g (p, va_arg (v,int));
|
---|
2569 | va_end (v);
|
---|
2570 | return s;
|
---|
2571 | }
|
---|
2572 |
|
---|
2573 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2574 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2575 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2576 | as 'x'. The following induces an error, until -std is added to get
|
---|
2577 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2578 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2579 | that's true only with -std. */
|
---|
2580 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2581 |
|
---|
2582 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
2583 | inside strings and character constants. */
|
---|
2584 | #define FOO(x) 'x'
|
---|
2585 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
2586 |
|
---|
2587 | int test (int i, double x);
|
---|
2588 | struct s1 {int (*f) (int a);};
|
---|
2589 | struct s2 {int (*f) (double a);};
|
---|
2590 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2591 | int argc;
|
---|
2592 | char **argv;
|
---|
2593 | int
|
---|
2594 | main ()
|
---|
2595 | {
|
---|
2596 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2597 | ;
|
---|
2598 | return 0;
|
---|
2599 | }
|
---|
2600 | _ACEOF
|
---|
2601 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
2602 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2603 | do
|
---|
2604 | CC="$ac_save_CC $ac_arg"
|
---|
2605 | rm -f conftest.$ac_objext
|
---|
2606 | if { (ac_try="$ac_compile"
|
---|
2607 | case "(($ac_try" in
|
---|
2608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2609 | *) ac_try_echo=$ac_try;;
|
---|
2610 | esac
|
---|
2611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2612 | (eval "$ac_compile") 2>conftest.er1
|
---|
2613 | ac_status=$?
|
---|
2614 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2615 | rm -f conftest.er1
|
---|
2616 | cat conftest.err >&5
|
---|
2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2618 | (exit $ac_status); } &&
|
---|
2619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2620 | { (case "(($ac_try" in
|
---|
2621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2622 | *) ac_try_echo=$ac_try;;
|
---|
2623 | esac
|
---|
2624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2625 | (eval "$ac_try") 2>&5
|
---|
2626 | ac_status=$?
|
---|
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2628 | (exit $ac_status); }; } &&
|
---|
2629 | { ac_try='test -s conftest.$ac_objext'
|
---|
2630 | { (case "(($ac_try" in
|
---|
2631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2632 | *) ac_try_echo=$ac_try;;
|
---|
2633 | esac
|
---|
2634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2635 | (eval "$ac_try") 2>&5
|
---|
2636 | ac_status=$?
|
---|
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2638 | (exit $ac_status); }; }; then
|
---|
2639 | ac_cv_prog_cc_c89=$ac_arg
|
---|
2640 | else
|
---|
2641 | echo "$as_me: failed program was:" >&5
|
---|
2642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2643 |
|
---|
2644 |
|
---|
2645 | fi
|
---|
2646 |
|
---|
2647 | rm -f core conftest.err conftest.$ac_objext
|
---|
2648 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
2649 | done
|
---|
2650 | rm -f conftest.$ac_ext
|
---|
2651 | CC=$ac_save_CC
|
---|
2652 |
|
---|
2653 | fi
|
---|
2654 | # AC_CACHE_VAL
|
---|
2655 | case "x$ac_cv_prog_cc_c89" in
|
---|
2656 | x)
|
---|
2657 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2658 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
2659 | xno)
|
---|
2660 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
2661 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
2662 | *)
|
---|
2663 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
2664 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
2665 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
2666 | esac
|
---|
2667 |
|
---|
2668 |
|
---|
2669 | ac_ext=c
|
---|
2670 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2674 |
|
---|
2675 |
|
---|
2676 | # Check whether --enable-largefile was given.
|
---|
2677 | if test "${enable_largefile+set}" = set; then
|
---|
2678 | enableval=$enable_largefile;
|
---|
2679 | fi
|
---|
2680 |
|
---|
2681 | if test "$enable_largefile" != no; then
|
---|
2682 |
|
---|
2683 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
---|
2684 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
|
---|
2685 | if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
---|
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2687 | else
|
---|
2688 | ac_cv_sys_largefile_CC=no
|
---|
2689 | if test "$GCC" != yes; then
|
---|
2690 | ac_save_CC=$CC
|
---|
2691 | while :; do
|
---|
2692 | # IRIX 6.2 and later do not support large files by default,
|
---|
2693 | # so use the C compiler's -n32 option if that helps.
|
---|
2694 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2695 | /* confdefs.h. */
|
---|
2696 | _ACEOF
|
---|
2697 | cat confdefs.h >>conftest.$ac_ext
|
---|
2698 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2699 | /* end confdefs.h. */
|
---|
2700 | #include <sys/types.h>
|
---|
2701 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
2702 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
2703 | since some C++ compilers masquerading as C compilers
|
---|
2704 | incorrectly reject 9223372036854775807. */
|
---|
2705 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
2706 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
2707 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
2708 | ? 1 : -1];
|
---|
2709 | int
|
---|
2710 | main ()
|
---|
2711 | {
|
---|
2712 |
|
---|
2713 | ;
|
---|
2714 | return 0;
|
---|
2715 | }
|
---|
2716 | _ACEOF
|
---|
2717 | rm -f conftest.$ac_objext
|
---|
2718 | if { (ac_try="$ac_compile"
|
---|
2719 | case "(($ac_try" in
|
---|
2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2721 | *) ac_try_echo=$ac_try;;
|
---|
2722 | esac
|
---|
2723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2724 | (eval "$ac_compile") 2>conftest.er1
|
---|
2725 | ac_status=$?
|
---|
2726 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2727 | rm -f conftest.er1
|
---|
2728 | cat conftest.err >&5
|
---|
2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2730 | (exit $ac_status); } &&
|
---|
2731 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2732 | { (case "(($ac_try" in
|
---|
2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2734 | *) ac_try_echo=$ac_try;;
|
---|
2735 | esac
|
---|
2736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2737 | (eval "$ac_try") 2>&5
|
---|
2738 | ac_status=$?
|
---|
2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2740 | (exit $ac_status); }; } &&
|
---|
2741 | { ac_try='test -s conftest.$ac_objext'
|
---|
2742 | { (case "(($ac_try" in
|
---|
2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2744 | *) ac_try_echo=$ac_try;;
|
---|
2745 | esac
|
---|
2746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2747 | (eval "$ac_try") 2>&5
|
---|
2748 | ac_status=$?
|
---|
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2750 | (exit $ac_status); }; }; then
|
---|
2751 | break
|
---|
2752 | else
|
---|
2753 | echo "$as_me: failed program was:" >&5
|
---|
2754 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2755 |
|
---|
2756 |
|
---|
2757 | fi
|
---|
2758 |
|
---|
2759 | rm -f core conftest.err conftest.$ac_objext
|
---|
2760 | CC="$CC -n32"
|
---|
2761 | rm -f conftest.$ac_objext
|
---|
2762 | if { (ac_try="$ac_compile"
|
---|
2763 | case "(($ac_try" in
|
---|
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2765 | *) ac_try_echo=$ac_try;;
|
---|
2766 | esac
|
---|
2767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2768 | (eval "$ac_compile") 2>conftest.er1
|
---|
2769 | ac_status=$?
|
---|
2770 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2771 | rm -f conftest.er1
|
---|
2772 | cat conftest.err >&5
|
---|
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2774 | (exit $ac_status); } &&
|
---|
2775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2776 | { (case "(($ac_try" in
|
---|
2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2778 | *) ac_try_echo=$ac_try;;
|
---|
2779 | esac
|
---|
2780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2781 | (eval "$ac_try") 2>&5
|
---|
2782 | ac_status=$?
|
---|
2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2784 | (exit $ac_status); }; } &&
|
---|
2785 | { ac_try='test -s conftest.$ac_objext'
|
---|
2786 | { (case "(($ac_try" in
|
---|
2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2788 | *) ac_try_echo=$ac_try;;
|
---|
2789 | esac
|
---|
2790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2791 | (eval "$ac_try") 2>&5
|
---|
2792 | ac_status=$?
|
---|
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2794 | (exit $ac_status); }; }; then
|
---|
2795 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
2796 | else
|
---|
2797 | echo "$as_me: failed program was:" >&5
|
---|
2798 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2799 |
|
---|
2800 |
|
---|
2801 | fi
|
---|
2802 |
|
---|
2803 | rm -f core conftest.err conftest.$ac_objext
|
---|
2804 | break
|
---|
2805 | done
|
---|
2806 | CC=$ac_save_CC
|
---|
2807 | rm -f conftest.$ac_ext
|
---|
2808 | fi
|
---|
2809 | fi
|
---|
2810 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
---|
2811 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
|
---|
2812 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
2813 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
2814 | fi
|
---|
2815 |
|
---|
2816 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
2817 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
|
---|
2818 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
---|
2819 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2820 | else
|
---|
2821 | while :; do
|
---|
2822 | ac_cv_sys_file_offset_bits=no
|
---|
2823 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2824 | /* confdefs.h. */
|
---|
2825 | _ACEOF
|
---|
2826 | cat confdefs.h >>conftest.$ac_ext
|
---|
2827 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2828 | /* end confdefs.h. */
|
---|
2829 | #include <sys/types.h>
|
---|
2830 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
2831 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
2832 | since some C++ compilers masquerading as C compilers
|
---|
2833 | incorrectly reject 9223372036854775807. */
|
---|
2834 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
2835 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
2836 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
2837 | ? 1 : -1];
|
---|
2838 | int
|
---|
2839 | main ()
|
---|
2840 | {
|
---|
2841 |
|
---|
2842 | ;
|
---|
2843 | return 0;
|
---|
2844 | }
|
---|
2845 | _ACEOF
|
---|
2846 | rm -f conftest.$ac_objext
|
---|
2847 | if { (ac_try="$ac_compile"
|
---|
2848 | case "(($ac_try" in
|
---|
2849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2850 | *) ac_try_echo=$ac_try;;
|
---|
2851 | esac
|
---|
2852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2853 | (eval "$ac_compile") 2>conftest.er1
|
---|
2854 | ac_status=$?
|
---|
2855 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2856 | rm -f conftest.er1
|
---|
2857 | cat conftest.err >&5
|
---|
2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2859 | (exit $ac_status); } &&
|
---|
2860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2861 | { (case "(($ac_try" in
|
---|
2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2863 | *) ac_try_echo=$ac_try;;
|
---|
2864 | esac
|
---|
2865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2866 | (eval "$ac_try") 2>&5
|
---|
2867 | ac_status=$?
|
---|
2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2869 | (exit $ac_status); }; } &&
|
---|
2870 | { ac_try='test -s conftest.$ac_objext'
|
---|
2871 | { (case "(($ac_try" in
|
---|
2872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2873 | *) ac_try_echo=$ac_try;;
|
---|
2874 | esac
|
---|
2875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2876 | (eval "$ac_try") 2>&5
|
---|
2877 | ac_status=$?
|
---|
2878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2879 | (exit $ac_status); }; }; then
|
---|
2880 | break
|
---|
2881 | else
|
---|
2882 | echo "$as_me: failed program was:" >&5
|
---|
2883 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2884 |
|
---|
2885 |
|
---|
2886 | fi
|
---|
2887 |
|
---|
2888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2889 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2890 | /* confdefs.h. */
|
---|
2891 | _ACEOF
|
---|
2892 | cat confdefs.h >>conftest.$ac_ext
|
---|
2893 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2894 | /* end confdefs.h. */
|
---|
2895 | #define _FILE_OFFSET_BITS 64
|
---|
2896 | #include <sys/types.h>
|
---|
2897 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
2898 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
2899 | since some C++ compilers masquerading as C compilers
|
---|
2900 | incorrectly reject 9223372036854775807. */
|
---|
2901 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
2902 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
2903 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
2904 | ? 1 : -1];
|
---|
2905 | int
|
---|
2906 | main ()
|
---|
2907 | {
|
---|
2908 |
|
---|
2909 | ;
|
---|
2910 | return 0;
|
---|
2911 | }
|
---|
2912 | _ACEOF
|
---|
2913 | rm -f conftest.$ac_objext
|
---|
2914 | if { (ac_try="$ac_compile"
|
---|
2915 | case "(($ac_try" in
|
---|
2916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2917 | *) ac_try_echo=$ac_try;;
|
---|
2918 | esac
|
---|
2919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2920 | (eval "$ac_compile") 2>conftest.er1
|
---|
2921 | ac_status=$?
|
---|
2922 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2923 | rm -f conftest.er1
|
---|
2924 | cat conftest.err >&5
|
---|
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2926 | (exit $ac_status); } &&
|
---|
2927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
2928 | { (case "(($ac_try" in
|
---|
2929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2930 | *) ac_try_echo=$ac_try;;
|
---|
2931 | esac
|
---|
2932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2933 | (eval "$ac_try") 2>&5
|
---|
2934 | ac_status=$?
|
---|
2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2936 | (exit $ac_status); }; } &&
|
---|
2937 | { ac_try='test -s conftest.$ac_objext'
|
---|
2938 | { (case "(($ac_try" in
|
---|
2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2940 | *) ac_try_echo=$ac_try;;
|
---|
2941 | esac
|
---|
2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2943 | (eval "$ac_try") 2>&5
|
---|
2944 | ac_status=$?
|
---|
2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2946 | (exit $ac_status); }; }; then
|
---|
2947 | ac_cv_sys_file_offset_bits=64; break
|
---|
2948 | else
|
---|
2949 | echo "$as_me: failed program was:" >&5
|
---|
2950 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2951 |
|
---|
2952 |
|
---|
2953 | fi
|
---|
2954 |
|
---|
2955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2956 | break
|
---|
2957 | done
|
---|
2958 | fi
|
---|
2959 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
2960 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
|
---|
2961 | if test "$ac_cv_sys_file_offset_bits" != no; then
|
---|
2962 |
|
---|
2963 | cat >>confdefs.h <<_ACEOF
|
---|
2964 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
2965 | _ACEOF
|
---|
2966 |
|
---|
2967 | fi
|
---|
2968 | rm -f conftest*
|
---|
2969 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
---|
2970 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
|
---|
2971 | if test "${ac_cv_sys_large_files+set}" = set; then
|
---|
2972 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2973 | else
|
---|
2974 | while :; do
|
---|
2975 | ac_cv_sys_large_files=no
|
---|
2976 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2977 | /* confdefs.h. */
|
---|
2978 | _ACEOF
|
---|
2979 | cat confdefs.h >>conftest.$ac_ext
|
---|
2980 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2981 | /* end confdefs.h. */
|
---|
2982 | #include <sys/types.h>
|
---|
2983 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
2984 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
2985 | since some C++ compilers masquerading as C compilers
|
---|
2986 | incorrectly reject 9223372036854775807. */
|
---|
2987 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
2988 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
2989 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
2990 | ? 1 : -1];
|
---|
2991 | int
|
---|
2992 | main ()
|
---|
2993 | {
|
---|
2994 |
|
---|
2995 | ;
|
---|
2996 | return 0;
|
---|
2997 | }
|
---|
2998 | _ACEOF
|
---|
2999 | rm -f conftest.$ac_objext
|
---|
3000 | if { (ac_try="$ac_compile"
|
---|
3001 | case "(($ac_try" in
|
---|
3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3003 | *) ac_try_echo=$ac_try;;
|
---|
3004 | esac
|
---|
3005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3006 | (eval "$ac_compile") 2>conftest.er1
|
---|
3007 | ac_status=$?
|
---|
3008 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3009 | rm -f conftest.er1
|
---|
3010 | cat conftest.err >&5
|
---|
3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3012 | (exit $ac_status); } &&
|
---|
3013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3014 | { (case "(($ac_try" in
|
---|
3015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3016 | *) ac_try_echo=$ac_try;;
|
---|
3017 | esac
|
---|
3018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3019 | (eval "$ac_try") 2>&5
|
---|
3020 | ac_status=$?
|
---|
3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3022 | (exit $ac_status); }; } &&
|
---|
3023 | { ac_try='test -s conftest.$ac_objext'
|
---|
3024 | { (case "(($ac_try" in
|
---|
3025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3026 | *) ac_try_echo=$ac_try;;
|
---|
3027 | esac
|
---|
3028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3029 | (eval "$ac_try") 2>&5
|
---|
3030 | ac_status=$?
|
---|
3031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3032 | (exit $ac_status); }; }; then
|
---|
3033 | break
|
---|
3034 | else
|
---|
3035 | echo "$as_me: failed program was:" >&5
|
---|
3036 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3037 |
|
---|
3038 |
|
---|
3039 | fi
|
---|
3040 |
|
---|
3041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3042 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3043 | /* confdefs.h. */
|
---|
3044 | _ACEOF
|
---|
3045 | cat confdefs.h >>conftest.$ac_ext
|
---|
3046 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3047 | /* end confdefs.h. */
|
---|
3048 | #define _LARGE_FILES 1
|
---|
3049 | #include <sys/types.h>
|
---|
3050 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
3051 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
3052 | since some C++ compilers masquerading as C compilers
|
---|
3053 | incorrectly reject 9223372036854775807. */
|
---|
3054 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
3055 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
3056 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
3057 | ? 1 : -1];
|
---|
3058 | int
|
---|
3059 | main ()
|
---|
3060 | {
|
---|
3061 |
|
---|
3062 | ;
|
---|
3063 | return 0;
|
---|
3064 | }
|
---|
3065 | _ACEOF
|
---|
3066 | rm -f conftest.$ac_objext
|
---|
3067 | if { (ac_try="$ac_compile"
|
---|
3068 | case "(($ac_try" in
|
---|
3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3070 | *) ac_try_echo=$ac_try;;
|
---|
3071 | esac
|
---|
3072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3073 | (eval "$ac_compile") 2>conftest.er1
|
---|
3074 | ac_status=$?
|
---|
3075 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3076 | rm -f conftest.er1
|
---|
3077 | cat conftest.err >&5
|
---|
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3079 | (exit $ac_status); } &&
|
---|
3080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3081 | { (case "(($ac_try" in
|
---|
3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3083 | *) ac_try_echo=$ac_try;;
|
---|
3084 | esac
|
---|
3085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3086 | (eval "$ac_try") 2>&5
|
---|
3087 | ac_status=$?
|
---|
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3089 | (exit $ac_status); }; } &&
|
---|
3090 | { ac_try='test -s conftest.$ac_objext'
|
---|
3091 | { (case "(($ac_try" in
|
---|
3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3093 | *) ac_try_echo=$ac_try;;
|
---|
3094 | esac
|
---|
3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3096 | (eval "$ac_try") 2>&5
|
---|
3097 | ac_status=$?
|
---|
3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3099 | (exit $ac_status); }; }; then
|
---|
3100 | ac_cv_sys_large_files=1; break
|
---|
3101 | else
|
---|
3102 | echo "$as_me: failed program was:" >&5
|
---|
3103 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3104 |
|
---|
3105 |
|
---|
3106 | fi
|
---|
3107 |
|
---|
3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3109 | break
|
---|
3110 | done
|
---|
3111 | fi
|
---|
3112 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
---|
3113 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
|
---|
3114 | if test "$ac_cv_sys_large_files" != no; then
|
---|
3115 |
|
---|
3116 | cat >>confdefs.h <<_ACEOF
|
---|
3117 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
3118 | _ACEOF
|
---|
3119 |
|
---|
3120 | fi
|
---|
3121 | rm -f conftest*
|
---|
3122 | fi
|
---|
3123 |
|
---|
3124 | ac_ext=c
|
---|
3125 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3129 | if test -n "$ac_tool_prefix"; then
|
---|
3130 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3131 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3132 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3134 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3135 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3136 | else
|
---|
3137 | if test -n "$CC"; then
|
---|
3138 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3139 | else
|
---|
3140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3141 | for as_dir in $PATH
|
---|
3142 | do
|
---|
3143 | IFS=$as_save_IFS
|
---|
3144 | test -z "$as_dir" && as_dir=.
|
---|
3145 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3147 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3149 | break 2
|
---|
3150 | fi
|
---|
3151 | done
|
---|
3152 | done
|
---|
3153 | IFS=$as_save_IFS
|
---|
3154 |
|
---|
3155 | fi
|
---|
3156 | fi
|
---|
3157 | CC=$ac_cv_prog_CC
|
---|
3158 | if test -n "$CC"; then
|
---|
3159 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3160 | echo "${ECHO_T}$CC" >&6; }
|
---|
3161 | else
|
---|
3162 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3163 | echo "${ECHO_T}no" >&6; }
|
---|
3164 | fi
|
---|
3165 |
|
---|
3166 |
|
---|
3167 | fi
|
---|
3168 | if test -z "$ac_cv_prog_CC"; then
|
---|
3169 | ac_ct_CC=$CC
|
---|
3170 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3171 | set dummy gcc; ac_word=$2
|
---|
3172 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3174 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
3175 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3176 | else
|
---|
3177 | if test -n "$ac_ct_CC"; then
|
---|
3178 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3179 | else
|
---|
3180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3181 | for as_dir in $PATH
|
---|
3182 | do
|
---|
3183 | IFS=$as_save_IFS
|
---|
3184 | test -z "$as_dir" && as_dir=.
|
---|
3185 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3187 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3189 | break 2
|
---|
3190 | fi
|
---|
3191 | done
|
---|
3192 | done
|
---|
3193 | IFS=$as_save_IFS
|
---|
3194 |
|
---|
3195 | fi
|
---|
3196 | fi
|
---|
3197 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3198 | if test -n "$ac_ct_CC"; then
|
---|
3199 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
3200 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
3201 | else
|
---|
3202 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3203 | echo "${ECHO_T}no" >&6; }
|
---|
3204 | fi
|
---|
3205 |
|
---|
3206 | if test "x$ac_ct_CC" = x; then
|
---|
3207 | CC=""
|
---|
3208 | else
|
---|
3209 | case $cross_compiling:$ac_tool_warned in
|
---|
3210 | yes:)
|
---|
3211 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3212 | whose name does not start with the host triplet. If you think this
|
---|
3213 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
3214 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3215 | whose name does not start with the host triplet. If you think this
|
---|
3216 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
3217 | ac_tool_warned=yes ;;
|
---|
3218 | esac
|
---|
3219 | CC=$ac_ct_CC
|
---|
3220 | fi
|
---|
3221 | else
|
---|
3222 | CC="$ac_cv_prog_CC"
|
---|
3223 | fi
|
---|
3224 |
|
---|
3225 | if test -z "$CC"; then
|
---|
3226 | if test -n "$ac_tool_prefix"; then
|
---|
3227 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3228 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3229 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3231 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3232 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3233 | else
|
---|
3234 | if test -n "$CC"; then
|
---|
3235 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3236 | else
|
---|
3237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3238 | for as_dir in $PATH
|
---|
3239 | do
|
---|
3240 | IFS=$as_save_IFS
|
---|
3241 | test -z "$as_dir" && as_dir=.
|
---|
3242 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3244 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3246 | break 2
|
---|
3247 | fi
|
---|
3248 | done
|
---|
3249 | done
|
---|
3250 | IFS=$as_save_IFS
|
---|
3251 |
|
---|
3252 | fi
|
---|
3253 | fi
|
---|
3254 | CC=$ac_cv_prog_CC
|
---|
3255 | if test -n "$CC"; then
|
---|
3256 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3257 | echo "${ECHO_T}$CC" >&6; }
|
---|
3258 | else
|
---|
3259 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3260 | echo "${ECHO_T}no" >&6; }
|
---|
3261 | fi
|
---|
3262 |
|
---|
3263 |
|
---|
3264 | fi
|
---|
3265 | fi
|
---|
3266 | if test -z "$CC"; then
|
---|
3267 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3268 | set dummy cc; ac_word=$2
|
---|
3269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3271 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3272 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3273 | else
|
---|
3274 | if test -n "$CC"; then
|
---|
3275 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3276 | else
|
---|
3277 | ac_prog_rejected=no
|
---|
3278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3279 | for as_dir in $PATH
|
---|
3280 | do
|
---|
3281 | IFS=$as_save_IFS
|
---|
3282 | test -z "$as_dir" && as_dir=.
|
---|
3283 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3285 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3286 | ac_prog_rejected=yes
|
---|
3287 | continue
|
---|
3288 | fi
|
---|
3289 | ac_cv_prog_CC="cc"
|
---|
3290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3291 | break 2
|
---|
3292 | fi
|
---|
3293 | done
|
---|
3294 | done
|
---|
3295 | IFS=$as_save_IFS
|
---|
3296 |
|
---|
3297 | if test $ac_prog_rejected = yes; then
|
---|
3298 | # We found a bogon in the path, so make sure we never use it.
|
---|
3299 | set dummy $ac_cv_prog_CC
|
---|
3300 | shift
|
---|
3301 | if test $# != 0; then
|
---|
3302 | # We chose a different compiler from the bogus one.
|
---|
3303 | # However, it has the same basename, so the bogon will be chosen
|
---|
3304 | # first if we set CC to just the basename; use the full file name.
|
---|
3305 | shift
|
---|
3306 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3307 | fi
|
---|
3308 | fi
|
---|
3309 | fi
|
---|
3310 | fi
|
---|
3311 | CC=$ac_cv_prog_CC
|
---|
3312 | if test -n "$CC"; then
|
---|
3313 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3314 | echo "${ECHO_T}$CC" >&6; }
|
---|
3315 | else
|
---|
3316 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3317 | echo "${ECHO_T}no" >&6; }
|
---|
3318 | fi
|
---|
3319 |
|
---|
3320 |
|
---|
3321 | fi
|
---|
3322 | if test -z "$CC"; then
|
---|
3323 | if test -n "$ac_tool_prefix"; then
|
---|
3324 | for ac_prog in cl.exe
|
---|
3325 | do
|
---|
3326 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3327 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3328 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3330 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
3331 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3332 | else
|
---|
3333 | if test -n "$CC"; then
|
---|
3334 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3335 | else
|
---|
3336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3337 | for as_dir in $PATH
|
---|
3338 | do
|
---|
3339 | IFS=$as_save_IFS
|
---|
3340 | test -z "$as_dir" && as_dir=.
|
---|
3341 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3343 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3345 | break 2
|
---|
3346 | fi
|
---|
3347 | done
|
---|
3348 | done
|
---|
3349 | IFS=$as_save_IFS
|
---|
3350 |
|
---|
3351 | fi
|
---|
3352 | fi
|
---|
3353 | CC=$ac_cv_prog_CC
|
---|
3354 | if test -n "$CC"; then
|
---|
3355 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
3356 | echo "${ECHO_T}$CC" >&6; }
|
---|
3357 | else
|
---|
3358 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3359 | echo "${ECHO_T}no" >&6; }
|
---|
3360 | fi
|
---|
3361 |
|
---|
3362 |
|
---|
3363 | test -n "$CC" && break
|
---|
3364 | done
|
---|
3365 | fi
|
---|
3366 | if test -z "$CC"; then
|
---|
3367 | ac_ct_CC=$CC
|
---|
3368 | for ac_prog in cl.exe
|
---|
3369 | do
|
---|
3370 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3371 | set dummy $ac_prog; ac_word=$2
|
---|
3372 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3374 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
3375 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3376 | else
|
---|
3377 | if test -n "$ac_ct_CC"; then
|
---|
3378 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3379 | else
|
---|
3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3381 | for as_dir in $PATH
|
---|
3382 | do
|
---|
3383 | IFS=$as_save_IFS
|
---|
3384 | test -z "$as_dir" && as_dir=.
|
---|
3385 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3387 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3389 | break 2
|
---|
3390 | fi
|
---|
3391 | done
|
---|
3392 | done
|
---|
3393 | IFS=$as_save_IFS
|
---|
3394 |
|
---|
3395 | fi
|
---|
3396 | fi
|
---|
3397 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3398 | if test -n "$ac_ct_CC"; then
|
---|
3399 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
3400 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
3401 | else
|
---|
3402 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3403 | echo "${ECHO_T}no" >&6; }
|
---|
3404 | fi
|
---|
3405 |
|
---|
3406 |
|
---|
3407 | test -n "$ac_ct_CC" && break
|
---|
3408 | done
|
---|
3409 |
|
---|
3410 | if test "x$ac_ct_CC" = x; then
|
---|
3411 | CC=""
|
---|
3412 | else
|
---|
3413 | case $cross_compiling:$ac_tool_warned in
|
---|
3414 | yes:)
|
---|
3415 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3416 | whose name does not start with the host triplet. If you think this
|
---|
3417 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
3418 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3419 | whose name does not start with the host triplet. If you think this
|
---|
3420 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
3421 | ac_tool_warned=yes ;;
|
---|
3422 | esac
|
---|
3423 | CC=$ac_ct_CC
|
---|
3424 | fi
|
---|
3425 | fi
|
---|
3426 |
|
---|
3427 | fi
|
---|
3428 |
|
---|
3429 |
|
---|
3430 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
3431 | See \`config.log' for more details." >&5
|
---|
3432 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
3433 | See \`config.log' for more details." >&2;}
|
---|
3434 | { (exit 1); exit 1; }; }
|
---|
3435 |
|
---|
3436 | # Provide some information about the compiler.
|
---|
3437 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
3438 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
3439 | { (ac_try="$ac_compiler --version >&5"
|
---|
3440 | case "(($ac_try" in
|
---|
3441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3442 | *) ac_try_echo=$ac_try;;
|
---|
3443 | esac
|
---|
3444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3445 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
3446 | ac_status=$?
|
---|
3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3448 | (exit $ac_status); }
|
---|
3449 | { (ac_try="$ac_compiler -v >&5"
|
---|
3450 | case "(($ac_try" in
|
---|
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3452 | *) ac_try_echo=$ac_try;;
|
---|
3453 | esac
|
---|
3454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3455 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
3456 | ac_status=$?
|
---|
3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3458 | (exit $ac_status); }
|
---|
3459 | { (ac_try="$ac_compiler -V >&5"
|
---|
3460 | case "(($ac_try" in
|
---|
3461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3462 | *) ac_try_echo=$ac_try;;
|
---|
3463 | esac
|
---|
3464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3465 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
3466 | ac_status=$?
|
---|
3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3468 | (exit $ac_status); }
|
---|
3469 |
|
---|
3470 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
3471 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
3472 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
3473 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3474 | else
|
---|
3475 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3476 | /* confdefs.h. */
|
---|
3477 | _ACEOF
|
---|
3478 | cat confdefs.h >>conftest.$ac_ext
|
---|
3479 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3480 | /* end confdefs.h. */
|
---|
3481 |
|
---|
3482 | int
|
---|
3483 | main ()
|
---|
3484 | {
|
---|
3485 | #ifndef __GNUC__
|
---|
3486 | choke me
|
---|
3487 | #endif
|
---|
3488 |
|
---|
3489 | ;
|
---|
3490 | return 0;
|
---|
3491 | }
|
---|
3492 | _ACEOF
|
---|
3493 | rm -f conftest.$ac_objext
|
---|
3494 | if { (ac_try="$ac_compile"
|
---|
3495 | case "(($ac_try" in
|
---|
3496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3497 | *) ac_try_echo=$ac_try;;
|
---|
3498 | esac
|
---|
3499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3500 | (eval "$ac_compile") 2>conftest.er1
|
---|
3501 | ac_status=$?
|
---|
3502 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3503 | rm -f conftest.er1
|
---|
3504 | cat conftest.err >&5
|
---|
3505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3506 | (exit $ac_status); } &&
|
---|
3507 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3508 | { (case "(($ac_try" in
|
---|
3509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3510 | *) ac_try_echo=$ac_try;;
|
---|
3511 | esac
|
---|
3512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3513 | (eval "$ac_try") 2>&5
|
---|
3514 | ac_status=$?
|
---|
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3516 | (exit $ac_status); }; } &&
|
---|
3517 | { ac_try='test -s conftest.$ac_objext'
|
---|
3518 | { (case "(($ac_try" in
|
---|
3519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3520 | *) ac_try_echo=$ac_try;;
|
---|
3521 | esac
|
---|
3522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3523 | (eval "$ac_try") 2>&5
|
---|
3524 | ac_status=$?
|
---|
3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3526 | (exit $ac_status); }; }; then
|
---|
3527 | ac_compiler_gnu=yes
|
---|
3528 | else
|
---|
3529 | echo "$as_me: failed program was:" >&5
|
---|
3530 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3531 |
|
---|
3532 | ac_compiler_gnu=no
|
---|
3533 | fi
|
---|
3534 |
|
---|
3535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3536 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3537 |
|
---|
3538 | fi
|
---|
3539 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3540 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
3541 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
3542 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3543 | ac_save_CFLAGS=$CFLAGS
|
---|
3544 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
3545 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
3546 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
3547 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3548 | else
|
---|
3549 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3550 | ac_c_werror_flag=yes
|
---|
3551 | ac_cv_prog_cc_g=no
|
---|
3552 | CFLAGS="-g"
|
---|
3553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3554 | /* confdefs.h. */
|
---|
3555 | _ACEOF
|
---|
3556 | cat confdefs.h >>conftest.$ac_ext
|
---|
3557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3558 | /* end confdefs.h. */
|
---|
3559 |
|
---|
3560 | int
|
---|
3561 | main ()
|
---|
3562 | {
|
---|
3563 |
|
---|
3564 | ;
|
---|
3565 | return 0;
|
---|
3566 | }
|
---|
3567 | _ACEOF
|
---|
3568 | rm -f conftest.$ac_objext
|
---|
3569 | if { (ac_try="$ac_compile"
|
---|
3570 | case "(($ac_try" in
|
---|
3571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3572 | *) ac_try_echo=$ac_try;;
|
---|
3573 | esac
|
---|
3574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3575 | (eval "$ac_compile") 2>conftest.er1
|
---|
3576 | ac_status=$?
|
---|
3577 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3578 | rm -f conftest.er1
|
---|
3579 | cat conftest.err >&5
|
---|
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3581 | (exit $ac_status); } &&
|
---|
3582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3583 | { (case "(($ac_try" in
|
---|
3584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3585 | *) ac_try_echo=$ac_try;;
|
---|
3586 | esac
|
---|
3587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3588 | (eval "$ac_try") 2>&5
|
---|
3589 | ac_status=$?
|
---|
3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3591 | (exit $ac_status); }; } &&
|
---|
3592 | { ac_try='test -s conftest.$ac_objext'
|
---|
3593 | { (case "(($ac_try" in
|
---|
3594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3595 | *) ac_try_echo=$ac_try;;
|
---|
3596 | esac
|
---|
3597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3598 | (eval "$ac_try") 2>&5
|
---|
3599 | ac_status=$?
|
---|
3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3601 | (exit $ac_status); }; }; then
|
---|
3602 | ac_cv_prog_cc_g=yes
|
---|
3603 | else
|
---|
3604 | echo "$as_me: failed program was:" >&5
|
---|
3605 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3606 |
|
---|
3607 | CFLAGS=""
|
---|
3608 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3609 | /* confdefs.h. */
|
---|
3610 | _ACEOF
|
---|
3611 | cat confdefs.h >>conftest.$ac_ext
|
---|
3612 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3613 | /* end confdefs.h. */
|
---|
3614 |
|
---|
3615 | int
|
---|
3616 | main ()
|
---|
3617 | {
|
---|
3618 |
|
---|
3619 | ;
|
---|
3620 | return 0;
|
---|
3621 | }
|
---|
3622 | _ACEOF
|
---|
3623 | rm -f conftest.$ac_objext
|
---|
3624 | if { (ac_try="$ac_compile"
|
---|
3625 | case "(($ac_try" in
|
---|
3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3627 | *) ac_try_echo=$ac_try;;
|
---|
3628 | esac
|
---|
3629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3630 | (eval "$ac_compile") 2>conftest.er1
|
---|
3631 | ac_status=$?
|
---|
3632 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3633 | rm -f conftest.er1
|
---|
3634 | cat conftest.err >&5
|
---|
3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3636 | (exit $ac_status); } &&
|
---|
3637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3638 | { (case "(($ac_try" in
|
---|
3639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3640 | *) ac_try_echo=$ac_try;;
|
---|
3641 | esac
|
---|
3642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3643 | (eval "$ac_try") 2>&5
|
---|
3644 | ac_status=$?
|
---|
3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3646 | (exit $ac_status); }; } &&
|
---|
3647 | { ac_try='test -s conftest.$ac_objext'
|
---|
3648 | { (case "(($ac_try" in
|
---|
3649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3650 | *) ac_try_echo=$ac_try;;
|
---|
3651 | esac
|
---|
3652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3653 | (eval "$ac_try") 2>&5
|
---|
3654 | ac_status=$?
|
---|
3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3656 | (exit $ac_status); }; }; then
|
---|
3657 | :
|
---|
3658 | else
|
---|
3659 | echo "$as_me: failed program was:" >&5
|
---|
3660 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3661 |
|
---|
3662 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3663 | CFLAGS="-g"
|
---|
3664 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3665 | /* confdefs.h. */
|
---|
3666 | _ACEOF
|
---|
3667 | cat confdefs.h >>conftest.$ac_ext
|
---|
3668 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3669 | /* end confdefs.h. */
|
---|
3670 |
|
---|
3671 | int
|
---|
3672 | main ()
|
---|
3673 | {
|
---|
3674 |
|
---|
3675 | ;
|
---|
3676 | return 0;
|
---|
3677 | }
|
---|
3678 | _ACEOF
|
---|
3679 | rm -f conftest.$ac_objext
|
---|
3680 | if { (ac_try="$ac_compile"
|
---|
3681 | case "(($ac_try" in
|
---|
3682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3683 | *) ac_try_echo=$ac_try;;
|
---|
3684 | esac
|
---|
3685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3686 | (eval "$ac_compile") 2>conftest.er1
|
---|
3687 | ac_status=$?
|
---|
3688 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3689 | rm -f conftest.er1
|
---|
3690 | cat conftest.err >&5
|
---|
3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3692 | (exit $ac_status); } &&
|
---|
3693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3694 | { (case "(($ac_try" in
|
---|
3695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3696 | *) ac_try_echo=$ac_try;;
|
---|
3697 | esac
|
---|
3698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3699 | (eval "$ac_try") 2>&5
|
---|
3700 | ac_status=$?
|
---|
3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3702 | (exit $ac_status); }; } &&
|
---|
3703 | { ac_try='test -s conftest.$ac_objext'
|
---|
3704 | { (case "(($ac_try" in
|
---|
3705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3706 | *) ac_try_echo=$ac_try;;
|
---|
3707 | esac
|
---|
3708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3709 | (eval "$ac_try") 2>&5
|
---|
3710 | ac_status=$?
|
---|
3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3712 | (exit $ac_status); }; }; then
|
---|
3713 | ac_cv_prog_cc_g=yes
|
---|
3714 | else
|
---|
3715 | echo "$as_me: failed program was:" >&5
|
---|
3716 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3717 |
|
---|
3718 |
|
---|
3719 | fi
|
---|
3720 |
|
---|
3721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3722 | fi
|
---|
3723 |
|
---|
3724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3725 | fi
|
---|
3726 |
|
---|
3727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3728 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3729 | fi
|
---|
3730 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
3731 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
3732 | if test "$ac_test_CFLAGS" = set; then
|
---|
3733 | CFLAGS=$ac_save_CFLAGS
|
---|
3734 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3735 | if test "$GCC" = yes; then
|
---|
3736 | CFLAGS="-g -O2"
|
---|
3737 | else
|
---|
3738 | CFLAGS="-g"
|
---|
3739 | fi
|
---|
3740 | else
|
---|
3741 | if test "$GCC" = yes; then
|
---|
3742 | CFLAGS="-O2"
|
---|
3743 | else
|
---|
3744 | CFLAGS=
|
---|
3745 | fi
|
---|
3746 | fi
|
---|
3747 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
3748 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
3749 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
3750 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3751 | else
|
---|
3752 | ac_cv_prog_cc_c89=no
|
---|
3753 | ac_save_CC=$CC
|
---|
3754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3755 | /* confdefs.h. */
|
---|
3756 | _ACEOF
|
---|
3757 | cat confdefs.h >>conftest.$ac_ext
|
---|
3758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3759 | /* end confdefs.h. */
|
---|
3760 | #include <stdarg.h>
|
---|
3761 | #include <stdio.h>
|
---|
3762 | #include <sys/types.h>
|
---|
3763 | #include <sys/stat.h>
|
---|
3764 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3765 | struct buf { int x; };
|
---|
3766 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3767 | static char *e (p, i)
|
---|
3768 | char **p;
|
---|
3769 | int i;
|
---|
3770 | {
|
---|
3771 | return p[i];
|
---|
3772 | }
|
---|
3773 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3774 | {
|
---|
3775 | char *s;
|
---|
3776 | va_list v;
|
---|
3777 | va_start (v,p);
|
---|
3778 | s = g (p, va_arg (v,int));
|
---|
3779 | va_end (v);
|
---|
3780 | return s;
|
---|
3781 | }
|
---|
3782 |
|
---|
3783 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3784 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3785 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3786 | as 'x'. The following induces an error, until -std is added to get
|
---|
3787 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3788 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3789 | that's true only with -std. */
|
---|
3790 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3791 |
|
---|
3792 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3793 | inside strings and character constants. */
|
---|
3794 | #define FOO(x) 'x'
|
---|
3795 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3796 |
|
---|
3797 | int test (int i, double x);
|
---|
3798 | struct s1 {int (*f) (int a);};
|
---|
3799 | struct s2 {int (*f) (double a);};
|
---|
3800 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3801 | int argc;
|
---|
3802 | char **argv;
|
---|
3803 | int
|
---|
3804 | main ()
|
---|
3805 | {
|
---|
3806 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3807 | ;
|
---|
3808 | return 0;
|
---|
3809 | }
|
---|
3810 | _ACEOF
|
---|
3811 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3812 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3813 | do
|
---|
3814 | CC="$ac_save_CC $ac_arg"
|
---|
3815 | rm -f conftest.$ac_objext
|
---|
3816 | if { (ac_try="$ac_compile"
|
---|
3817 | case "(($ac_try" in
|
---|
3818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3819 | *) ac_try_echo=$ac_try;;
|
---|
3820 | esac
|
---|
3821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3822 | (eval "$ac_compile") 2>conftest.er1
|
---|
3823 | ac_status=$?
|
---|
3824 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3825 | rm -f conftest.er1
|
---|
3826 | cat conftest.err >&5
|
---|
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3828 | (exit $ac_status); } &&
|
---|
3829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
3830 | { (case "(($ac_try" in
|
---|
3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3832 | *) ac_try_echo=$ac_try;;
|
---|
3833 | esac
|
---|
3834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3835 | (eval "$ac_try") 2>&5
|
---|
3836 | ac_status=$?
|
---|
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3838 | (exit $ac_status); }; } &&
|
---|
3839 | { ac_try='test -s conftest.$ac_objext'
|
---|
3840 | { (case "(($ac_try" in
|
---|
3841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3842 | *) ac_try_echo=$ac_try;;
|
---|
3843 | esac
|
---|
3844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3845 | (eval "$ac_try") 2>&5
|
---|
3846 | ac_status=$?
|
---|
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3848 | (exit $ac_status); }; }; then
|
---|
3849 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3850 | else
|
---|
3851 | echo "$as_me: failed program was:" >&5
|
---|
3852 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3853 |
|
---|
3854 |
|
---|
3855 | fi
|
---|
3856 |
|
---|
3857 | rm -f core conftest.err conftest.$ac_objext
|
---|
3858 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3859 | done
|
---|
3860 | rm -f conftest.$ac_ext
|
---|
3861 | CC=$ac_save_CC
|
---|
3862 |
|
---|
3863 | fi
|
---|
3864 | # AC_CACHE_VAL
|
---|
3865 | case "x$ac_cv_prog_cc_c89" in
|
---|
3866 | x)
|
---|
3867 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
3868 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
3869 | xno)
|
---|
3870 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
3871 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
3872 | *)
|
---|
3873 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3874 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
3875 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3876 | esac
|
---|
3877 |
|
---|
3878 |
|
---|
3879 | ac_ext=c
|
---|
3880 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3884 |
|
---|
3885 | if test -n "$ac_tool_prefix"; then
|
---|
3886 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3887 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3890 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3891 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3892 | else
|
---|
3893 | if test -n "$RANLIB"; then
|
---|
3894 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3895 | else
|
---|
3896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3897 | for as_dir in $PATH
|
---|
3898 | do
|
---|
3899 | IFS=$as_save_IFS
|
---|
3900 | test -z "$as_dir" && as_dir=.
|
---|
3901 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3903 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3905 | break 2
|
---|
3906 | fi
|
---|
3907 | done
|
---|
3908 | done
|
---|
3909 | IFS=$as_save_IFS
|
---|
3910 |
|
---|
3911 | fi
|
---|
3912 | fi
|
---|
3913 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3914 | if test -n "$RANLIB"; then
|
---|
3915 | { echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3916 | echo "${ECHO_T}$RANLIB" >&6; }
|
---|
3917 | else
|
---|
3918 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3919 | echo "${ECHO_T}no" >&6; }
|
---|
3920 | fi
|
---|
3921 |
|
---|
3922 |
|
---|
3923 | fi
|
---|
3924 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3925 | ac_ct_RANLIB=$RANLIB
|
---|
3926 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3927 | set dummy ranlib; ac_word=$2
|
---|
3928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
3930 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3931 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3932 | else
|
---|
3933 | if test -n "$ac_ct_RANLIB"; then
|
---|
3934 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3935 | else
|
---|
3936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3937 | for as_dir in $PATH
|
---|
3938 | do
|
---|
3939 | IFS=$as_save_IFS
|
---|
3940 | test -z "$as_dir" && as_dir=.
|
---|
3941 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3943 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3945 | break 2
|
---|
3946 | fi
|
---|
3947 | done
|
---|
3948 | done
|
---|
3949 | IFS=$as_save_IFS
|
---|
3950 |
|
---|
3951 | fi
|
---|
3952 | fi
|
---|
3953 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3954 | if test -n "$ac_ct_RANLIB"; then
|
---|
3955 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3956 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
---|
3957 | else
|
---|
3958 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3959 | echo "${ECHO_T}no" >&6; }
|
---|
3960 | fi
|
---|
3961 |
|
---|
3962 | if test "x$ac_ct_RANLIB" = x; then
|
---|
3963 | RANLIB=":"
|
---|
3964 | else
|
---|
3965 | case $cross_compiling:$ac_tool_warned in
|
---|
3966 | yes:)
|
---|
3967 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3968 | whose name does not start with the host triplet. If you think this
|
---|
3969 | configuration is useful to you, please write to autoconf@gnu.org." >&5
|
---|
3970 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
3971 | whose name does not start with the host triplet. If you think this
|
---|
3972 | configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
---|
3973 | ac_tool_warned=yes ;;
|
---|
3974 | esac
|
---|
3975 | RANLIB=$ac_ct_RANLIB
|
---|
3976 | fi
|
---|
3977 | else
|
---|
3978 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3979 | fi
|
---|
3980 |
|
---|
3981 | ac_aux_dir=
|
---|
3982 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
3983 | if test -f "$ac_dir/install-sh"; then
|
---|
3984 | ac_aux_dir=$ac_dir
|
---|
3985 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
3986 | break
|
---|
3987 | elif test -f "$ac_dir/install.sh"; then
|
---|
3988 | ac_aux_dir=$ac_dir
|
---|
3989 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
3990 | break
|
---|
3991 | elif test -f "$ac_dir/shtool"; then
|
---|
3992 | ac_aux_dir=$ac_dir
|
---|
3993 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
3994 | break
|
---|
3995 | fi
|
---|
3996 | done
|
---|
3997 | if test -z "$ac_aux_dir"; then
|
---|
3998 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
3999 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
4000 | { (exit 1); exit 1; }; }
|
---|
4001 | fi
|
---|
4002 |
|
---|
4003 | # These three variables are undocumented and unsupported,
|
---|
4004 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
4005 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
4006 | # whose full name contains unusual characters.
|
---|
4007 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
4008 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
4009 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
4010 |
|
---|
4011 |
|
---|
4012 | # Find a good install program. We prefer a C program (faster),
|
---|
4013 | # so one script is as good as another. But avoid the broken or
|
---|
4014 | # incompatible versions:
|
---|
4015 | # SysV /etc/install, /usr/sbin/install
|
---|
4016 | # SunOS /usr/etc/install
|
---|
4017 | # IRIX /sbin/install
|
---|
4018 | # AIX /bin/install
|
---|
4019 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
4020 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4021 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4022 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4023 | # OS/2's system install, which has a completely different semantic
|
---|
4024 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4025 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
4026 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
4027 | if test -z "$INSTALL"; then
|
---|
4028 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4029 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4030 | else
|
---|
4031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4032 | for as_dir in $PATH
|
---|
4033 | do
|
---|
4034 | IFS=$as_save_IFS
|
---|
4035 | test -z "$as_dir" && as_dir=.
|
---|
4036 | # Account for people who put trailing slashes in PATH elements.
|
---|
4037 | case $as_dir/ in
|
---|
4038 | ./ | .// | /cC/* | \
|
---|
4039 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
4040 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
4041 | /usr/ucb/* ) ;;
|
---|
4042 | *)
|
---|
4043 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4044 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4045 | # by default.
|
---|
4046 | for ac_prog in ginstall scoinst install; do
|
---|
4047 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4048 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
4049 | if test $ac_prog = install &&
|
---|
4050 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4051 | # AIX install. It has an incompatible calling convention.
|
---|
4052 | :
|
---|
4053 | elif test $ac_prog = install &&
|
---|
4054 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4055 | # program-specific install script used by HP pwplus--don't use.
|
---|
4056 | :
|
---|
4057 | else
|
---|
4058 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
4059 | break 3
|
---|
4060 | fi
|
---|
4061 | fi
|
---|
4062 | done
|
---|
4063 | done
|
---|
4064 | ;;
|
---|
4065 | esac
|
---|
4066 | done
|
---|
4067 | IFS=$as_save_IFS
|
---|
4068 |
|
---|
4069 |
|
---|
4070 | fi
|
---|
4071 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4072 | INSTALL=$ac_cv_path_install
|
---|
4073 | else
|
---|
4074 | # As a last resort, use the slow shell script. Don't cache a
|
---|
4075 | # value for INSTALL within a source directory, because that will
|
---|
4076 | # break other packages using the cache if that directory is
|
---|
4077 | # removed, or if the value is a relative name.
|
---|
4078 | INSTALL=$ac_install_sh
|
---|
4079 | fi
|
---|
4080 | fi
|
---|
4081 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
4082 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
4083 |
|
---|
4084 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4085 | # It thinks the first close brace ends the variable substitution.
|
---|
4086 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4087 |
|
---|
4088 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
4089 |
|
---|
4090 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4091 |
|
---|
4092 | ac_ext=c
|
---|
4093 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4097 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
4098 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
4099 | # On Suns, sometimes $CPP names a directory.
|
---|
4100 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4101 | CPP=
|
---|
4102 | fi
|
---|
4103 | if test -z "$CPP"; then
|
---|
4104 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4106 | else
|
---|
4107 | # Double quotes because CPP needs to be expanded
|
---|
4108 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4109 | do
|
---|
4110 | ac_preproc_ok=false
|
---|
4111 | for ac_c_preproc_warn_flag in '' yes
|
---|
4112 | do
|
---|
4113 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4114 | # with a fresh cross-compiler works.
|
---|
4115 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4116 | # <limits.h> exists even on freestanding compilers.
|
---|
4117 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4118 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4119 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4120 | /* confdefs.h. */
|
---|
4121 | _ACEOF
|
---|
4122 | cat confdefs.h >>conftest.$ac_ext
|
---|
4123 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4124 | /* end confdefs.h. */
|
---|
4125 | #ifdef __STDC__
|
---|
4126 | # include <limits.h>
|
---|
4127 | #else
|
---|
4128 | # include <assert.h>
|
---|
4129 | #endif
|
---|
4130 | Syntax error
|
---|
4131 | _ACEOF
|
---|
4132 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4133 | case "(($ac_try" in
|
---|
4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4135 | *) ac_try_echo=$ac_try;;
|
---|
4136 | esac
|
---|
4137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4139 | ac_status=$?
|
---|
4140 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4141 | rm -f conftest.er1
|
---|
4142 | cat conftest.err >&5
|
---|
4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4144 | (exit $ac_status); } >/dev/null; then
|
---|
4145 | if test -s conftest.err; then
|
---|
4146 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4148 | else
|
---|
4149 | ac_cpp_err=
|
---|
4150 | fi
|
---|
4151 | else
|
---|
4152 | ac_cpp_err=yes
|
---|
4153 | fi
|
---|
4154 | if test -z "$ac_cpp_err"; then
|
---|
4155 | :
|
---|
4156 | else
|
---|
4157 | echo "$as_me: failed program was:" >&5
|
---|
4158 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4159 |
|
---|
4160 | # Broken: fails on valid input.
|
---|
4161 | continue
|
---|
4162 | fi
|
---|
4163 |
|
---|
4164 | rm -f conftest.err conftest.$ac_ext
|
---|
4165 |
|
---|
4166 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4167 | # can be detected and how.
|
---|
4168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4169 | /* confdefs.h. */
|
---|
4170 | _ACEOF
|
---|
4171 | cat confdefs.h >>conftest.$ac_ext
|
---|
4172 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4173 | /* end confdefs.h. */
|
---|
4174 | #include <ac_nonexistent.h>
|
---|
4175 | _ACEOF
|
---|
4176 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4177 | case "(($ac_try" in
|
---|
4178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4179 | *) ac_try_echo=$ac_try;;
|
---|
4180 | esac
|
---|
4181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4182 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4183 | ac_status=$?
|
---|
4184 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4185 | rm -f conftest.er1
|
---|
4186 | cat conftest.err >&5
|
---|
4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4188 | (exit $ac_status); } >/dev/null; then
|
---|
4189 | if test -s conftest.err; then
|
---|
4190 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4191 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4192 | else
|
---|
4193 | ac_cpp_err=
|
---|
4194 | fi
|
---|
4195 | else
|
---|
4196 | ac_cpp_err=yes
|
---|
4197 | fi
|
---|
4198 | if test -z "$ac_cpp_err"; then
|
---|
4199 | # Broken: success on invalid input.
|
---|
4200 | continue
|
---|
4201 | else
|
---|
4202 | echo "$as_me: failed program was:" >&5
|
---|
4203 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4204 |
|
---|
4205 | # Passes both tests.
|
---|
4206 | ac_preproc_ok=:
|
---|
4207 | break
|
---|
4208 | fi
|
---|
4209 |
|
---|
4210 | rm -f conftest.err conftest.$ac_ext
|
---|
4211 |
|
---|
4212 | done
|
---|
4213 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4214 | rm -f conftest.err conftest.$ac_ext
|
---|
4215 | if $ac_preproc_ok; then
|
---|
4216 | break
|
---|
4217 | fi
|
---|
4218 |
|
---|
4219 | done
|
---|
4220 | ac_cv_prog_CPP=$CPP
|
---|
4221 |
|
---|
4222 | fi
|
---|
4223 | CPP=$ac_cv_prog_CPP
|
---|
4224 | else
|
---|
4225 | ac_cv_prog_CPP=$CPP
|
---|
4226 | fi
|
---|
4227 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
4228 | echo "${ECHO_T}$CPP" >&6; }
|
---|
4229 | ac_preproc_ok=false
|
---|
4230 | for ac_c_preproc_warn_flag in '' yes
|
---|
4231 | do
|
---|
4232 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4233 | # with a fresh cross-compiler works.
|
---|
4234 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4235 | # <limits.h> exists even on freestanding compilers.
|
---|
4236 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4237 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4238 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4239 | /* confdefs.h. */
|
---|
4240 | _ACEOF
|
---|
4241 | cat confdefs.h >>conftest.$ac_ext
|
---|
4242 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4243 | /* end confdefs.h. */
|
---|
4244 | #ifdef __STDC__
|
---|
4245 | # include <limits.h>
|
---|
4246 | #else
|
---|
4247 | # include <assert.h>
|
---|
4248 | #endif
|
---|
4249 | Syntax error
|
---|
4250 | _ACEOF
|
---|
4251 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
4252 | case "(($ac_try" in
|
---|
4253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4254 | *) ac_try_echo=$ac_try;;
|
---|
4255 | esac
|
---|
4256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4258 | ac_status=$?
|
---|
4259 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4260 | rm -f conftest.er1
|
---|
4261 | cat conftest.err >&5
|
---|
4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4263 | (exit $ac_status); } >/dev/null; then
|
---|
4264 | if test -s conftest.err; then
|
---|
4265 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4267 | else
|
---|
4268 | ac_cpp_err=
|
---|
4269 | fi
|
---|
4270 | else
|
---|
4271 | ac_cpp_err=yes
|
---|
4272 | fi
|
---|
4273 | if test -z "$ac_cpp_err"; then
|
---|
4274 | :
|
---|
4275 | else
|
---|
4276 | echo "$as_me: failed program was:" >&5
|
---|
4277 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4278 |
|
---|
4279 | # Broken: fails on valid input.
|
---|
4280 | continue
|
---|
4281 | fi
|
---|
4282 |
|
---|
4283 | rm -f conftest.err conftest.$ac_ext
|
---|
4284 |
|
---|
4285 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4286 | # can be detected and how.
|
---|
4287 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4288 | /* confdefs.h. */
|
---|
4289 | _ACEOF
|
---|
4290 | cat confdefs.h >>conftest.$ac_ext
|
---|
4291 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4292 | /* end confdefs.h. */
|
---|
4293 | #include <ac_nonexistent.h>
|
---|
4294 | _ACEOF
|
---|
4295 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
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_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
4302 | ac_status=$?
|
---|
4303 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4304 | rm -f conftest.er1
|
---|
4305 | cat conftest.err >&5
|
---|
4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4307 | (exit $ac_status); } >/dev/null; then
|
---|
4308 | if test -s conftest.err; then
|
---|
4309 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4311 | else
|
---|
4312 | ac_cpp_err=
|
---|
4313 | fi
|
---|
4314 | else
|
---|
4315 | ac_cpp_err=yes
|
---|
4316 | fi
|
---|
4317 | if test -z "$ac_cpp_err"; then
|
---|
4318 | # Broken: success on invalid input.
|
---|
4319 | continue
|
---|
4320 | else
|
---|
4321 | echo "$as_me: failed program was:" >&5
|
---|
4322 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4323 |
|
---|
4324 | # Passes both tests.
|
---|
4325 | ac_preproc_ok=:
|
---|
4326 | break
|
---|
4327 | fi
|
---|
4328 |
|
---|
4329 | rm -f conftest.err conftest.$ac_ext
|
---|
4330 |
|
---|
4331 | done
|
---|
4332 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4333 | rm -f conftest.err conftest.$ac_ext
|
---|
4334 | if $ac_preproc_ok; then
|
---|
4335 | :
|
---|
4336 | else
|
---|
4337 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
4338 | See \`config.log' for more details." >&5
|
---|
4339 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
4340 | See \`config.log' for more details." >&2;}
|
---|
4341 | { (exit 1); exit 1; }; }
|
---|
4342 | fi
|
---|
4343 |
|
---|
4344 | ac_ext=c
|
---|
4345 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4349 |
|
---|
4350 |
|
---|
4351 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
4352 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
4353 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
4354 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4355 | else
|
---|
4356 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
4357 | if test -z "$GREP"; then
|
---|
4358 | set dummy grep ggrep; ac_prog_name=$2
|
---|
4359 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4361 | else
|
---|
4362 | ac_path_GREP_found=false
|
---|
4363 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4365 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4366 | do
|
---|
4367 | IFS=$as_save_IFS
|
---|
4368 | test -z "$as_dir" && as_dir=.
|
---|
4369 | for ac_prog in grep ggrep; do
|
---|
4370 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4371 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4372 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
|
---|
4373 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4374 | # Check for GNU $ac_path_GREP
|
---|
4375 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4376 | *GNU*)
|
---|
4377 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4378 | *)
|
---|
4379 | ac_count=0
|
---|
4380 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
4381 | while :
|
---|
4382 | do
|
---|
4383 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4384 | mv "conftest.tmp" "conftest.in"
|
---|
4385 | cp "conftest.in" "conftest.nl"
|
---|
4386 | echo 'GREP' >> "conftest.nl"
|
---|
4387 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4388 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4389 | ac_count=`expr $ac_count + 1`
|
---|
4390 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4391 | # Best one so far, save it but keep looking for a better one
|
---|
4392 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4393 | ac_path_GREP_max=$ac_count
|
---|
4394 | fi
|
---|
4395 | # 10*(2^10) chars as input seems more than enough
|
---|
4396 | test $ac_count -gt 10 && break
|
---|
4397 | done
|
---|
4398 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4399 | esac
|
---|
4400 |
|
---|
4401 |
|
---|
4402 | $ac_path_GREP_found && break 3
|
---|
4403 | done
|
---|
4404 | done
|
---|
4405 |
|
---|
4406 | done
|
---|
4407 | IFS=$as_save_IFS
|
---|
4408 |
|
---|
4409 |
|
---|
4410 | fi
|
---|
4411 |
|
---|
4412 | GREP="$ac_cv_path_GREP"
|
---|
4413 | if test -z "$GREP"; then
|
---|
4414 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
4415 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
4416 | { (exit 1); exit 1; }; }
|
---|
4417 | fi
|
---|
4418 |
|
---|
4419 | else
|
---|
4420 | ac_cv_path_GREP=$GREP
|
---|
4421 | fi
|
---|
4422 |
|
---|
4423 |
|
---|
4424 | fi
|
---|
4425 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
4426 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
4427 | GREP="$ac_cv_path_GREP"
|
---|
4428 |
|
---|
4429 |
|
---|
4430 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
4431 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
4432 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
4433 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4434 | else
|
---|
4435 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4436 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4437 | else
|
---|
4438 | # Extract the first word of "egrep" to use in msg output
|
---|
4439 | if test -z "$EGREP"; then
|
---|
4440 | set dummy egrep; ac_prog_name=$2
|
---|
4441 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
4442 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4443 | else
|
---|
4444 | ac_path_EGREP_found=false
|
---|
4445 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4447 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4448 | do
|
---|
4449 | IFS=$as_save_IFS
|
---|
4450 | test -z "$as_dir" && as_dir=.
|
---|
4451 | for ac_prog in egrep; do
|
---|
4452 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4453 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4454 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
|
---|
4455 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4456 | # Check for GNU $ac_path_EGREP
|
---|
4457 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4458 | *GNU*)
|
---|
4459 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4460 | *)
|
---|
4461 | ac_count=0
|
---|
4462 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
4463 | while :
|
---|
4464 | do
|
---|
4465 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4466 | mv "conftest.tmp" "conftest.in"
|
---|
4467 | cp "conftest.in" "conftest.nl"
|
---|
4468 | echo 'EGREP' >> "conftest.nl"
|
---|
4469 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4470 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4471 | ac_count=`expr $ac_count + 1`
|
---|
4472 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4473 | # Best one so far, save it but keep looking for a better one
|
---|
4474 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4475 | ac_path_EGREP_max=$ac_count
|
---|
4476 | fi
|
---|
4477 | # 10*(2^10) chars as input seems more than enough
|
---|
4478 | test $ac_count -gt 10 && break
|
---|
4479 | done
|
---|
4480 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4481 | esac
|
---|
4482 |
|
---|
4483 |
|
---|
4484 | $ac_path_EGREP_found && break 3
|
---|
4485 | done
|
---|
4486 | done
|
---|
4487 |
|
---|
4488 | done
|
---|
4489 | IFS=$as_save_IFS
|
---|
4490 |
|
---|
4491 |
|
---|
4492 | fi
|
---|
4493 |
|
---|
4494 | EGREP="$ac_cv_path_EGREP"
|
---|
4495 | if test -z "$EGREP"; then
|
---|
4496 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
4497 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
4498 | { (exit 1); exit 1; }; }
|
---|
4499 | fi
|
---|
4500 |
|
---|
4501 | else
|
---|
4502 | ac_cv_path_EGREP=$EGREP
|
---|
4503 | fi
|
---|
4504 |
|
---|
4505 |
|
---|
4506 | fi
|
---|
4507 | fi
|
---|
4508 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
4509 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
4510 | EGREP="$ac_cv_path_EGREP"
|
---|
4511 |
|
---|
4512 |
|
---|
4513 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
4514 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
4515 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
4516 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4517 | else
|
---|
4518 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4519 | /* confdefs.h. */
|
---|
4520 | _ACEOF
|
---|
4521 | cat confdefs.h >>conftest.$ac_ext
|
---|
4522 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4523 | /* end confdefs.h. */
|
---|
4524 | #include <stdlib.h>
|
---|
4525 | #include <stdarg.h>
|
---|
4526 | #include <string.h>
|
---|
4527 | #include <float.h>
|
---|
4528 |
|
---|
4529 | int
|
---|
4530 | main ()
|
---|
4531 | {
|
---|
4532 |
|
---|
4533 | ;
|
---|
4534 | return 0;
|
---|
4535 | }
|
---|
4536 | _ACEOF
|
---|
4537 | rm -f conftest.$ac_objext
|
---|
4538 | if { (ac_try="$ac_compile"
|
---|
4539 | case "(($ac_try" in
|
---|
4540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4541 | *) ac_try_echo=$ac_try;;
|
---|
4542 | esac
|
---|
4543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4544 | (eval "$ac_compile") 2>conftest.er1
|
---|
4545 | ac_status=$?
|
---|
4546 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4547 | rm -f conftest.er1
|
---|
4548 | cat conftest.err >&5
|
---|
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4550 | (exit $ac_status); } &&
|
---|
4551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
4552 | { (case "(($ac_try" in
|
---|
4553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4554 | *) ac_try_echo=$ac_try;;
|
---|
4555 | esac
|
---|
4556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4557 | (eval "$ac_try") 2>&5
|
---|
4558 | ac_status=$?
|
---|
4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4560 | (exit $ac_status); }; } &&
|
---|
4561 | { ac_try='test -s conftest.$ac_objext'
|
---|
4562 | { (case "(($ac_try" in
|
---|
4563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4564 | *) ac_try_echo=$ac_try;;
|
---|
4565 | esac
|
---|
4566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4567 | (eval "$ac_try") 2>&5
|
---|
4568 | ac_status=$?
|
---|
4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4570 | (exit $ac_status); }; }; then
|
---|
4571 | ac_cv_header_stdc=yes
|
---|
4572 | else
|
---|
4573 | echo "$as_me: failed program was:" >&5
|
---|
4574 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4575 |
|
---|
4576 | ac_cv_header_stdc=no
|
---|
4577 | fi
|
---|
4578 |
|
---|
4579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4580 |
|
---|
4581 | if test $ac_cv_header_stdc = yes; then
|
---|
4582 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4583 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4584 | /* confdefs.h. */
|
---|
4585 | _ACEOF
|
---|
4586 | cat confdefs.h >>conftest.$ac_ext
|
---|
4587 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4588 | /* end confdefs.h. */
|
---|
4589 | #include <string.h>
|
---|
4590 |
|
---|
4591 | _ACEOF
|
---|
4592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4593 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
4594 | :
|
---|
4595 | else
|
---|
4596 | ac_cv_header_stdc=no
|
---|
4597 | fi
|
---|
4598 | rm -f conftest*
|
---|
4599 |
|
---|
4600 | fi
|
---|
4601 |
|
---|
4602 | if test $ac_cv_header_stdc = yes; then
|
---|
4603 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4605 | /* confdefs.h. */
|
---|
4606 | _ACEOF
|
---|
4607 | cat confdefs.h >>conftest.$ac_ext
|
---|
4608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4609 | /* end confdefs.h. */
|
---|
4610 | #include <stdlib.h>
|
---|
4611 |
|
---|
4612 | _ACEOF
|
---|
4613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4614 | $EGREP "free" >/dev/null 2>&1; then
|
---|
4615 | :
|
---|
4616 | else
|
---|
4617 | ac_cv_header_stdc=no
|
---|
4618 | fi
|
---|
4619 | rm -f conftest*
|
---|
4620 |
|
---|
4621 | fi
|
---|
4622 |
|
---|
4623 | if test $ac_cv_header_stdc = yes; then
|
---|
4624 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4625 | if test "$cross_compiling" = yes; then
|
---|
4626 | :
|
---|
4627 | else
|
---|
4628 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4629 | /* confdefs.h. */
|
---|
4630 | _ACEOF
|
---|
4631 | cat confdefs.h >>conftest.$ac_ext
|
---|
4632 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4633 | /* end confdefs.h. */
|
---|
4634 | #include <ctype.h>
|
---|
4635 | #include <stdlib.h>
|
---|
4636 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4637 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4638 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4639 | #else
|
---|
4640 | # define ISLOWER(c) \
|
---|
4641 | (('a' <= (c) && (c) <= 'i') \
|
---|
4642 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4643 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4644 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4645 | #endif
|
---|
4646 |
|
---|
4647 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4648 | int
|
---|
4649 | main ()
|
---|
4650 | {
|
---|
4651 | int i;
|
---|
4652 | for (i = 0; i < 256; i++)
|
---|
4653 | if (XOR (islower (i), ISLOWER (i))
|
---|
4654 | || toupper (i) != TOUPPER (i))
|
---|
4655 | return 2;
|
---|
4656 | return 0;
|
---|
4657 | }
|
---|
4658 | _ACEOF
|
---|
4659 | rm -f conftest$ac_exeext
|
---|
4660 | if { (ac_try="$ac_link"
|
---|
4661 | case "(($ac_try" in
|
---|
4662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4663 | *) ac_try_echo=$ac_try;;
|
---|
4664 | esac
|
---|
4665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4666 | (eval "$ac_link") 2>&5
|
---|
4667 | ac_status=$?
|
---|
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
4670 | { (case "(($ac_try" in
|
---|
4671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4672 | *) ac_try_echo=$ac_try;;
|
---|
4673 | esac
|
---|
4674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4675 | (eval "$ac_try") 2>&5
|
---|
4676 | ac_status=$?
|
---|
4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4678 | (exit $ac_status); }; }; then
|
---|
4679 | :
|
---|
4680 | else
|
---|
4681 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
4682 | echo "$as_me: failed program was:" >&5
|
---|
4683 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4684 |
|
---|
4685 | ( exit $ac_status )
|
---|
4686 | ac_cv_header_stdc=no
|
---|
4687 | fi
|
---|
4688 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
4689 | fi
|
---|
4690 |
|
---|
4691 |
|
---|
4692 | fi
|
---|
4693 | fi
|
---|
4694 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
4695 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
4696 | if test $ac_cv_header_stdc = yes; then
|
---|
4697 |
|
---|
4698 | cat >>confdefs.h <<\_ACEOF
|
---|
4699 | #define STDC_HEADERS 1
|
---|
4700 | _ACEOF
|
---|
4701 |
|
---|
4702 | fi
|
---|
4703 |
|
---|
4704 |
|
---|
4705 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4706 |
|
---|
4707 |
|
---|
4708 |
|
---|
4709 |
|
---|
4710 |
|
---|
4711 |
|
---|
4712 |
|
---|
4713 |
|
---|
4714 |
|
---|
4715 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4716 | inttypes.h stdint.h unistd.h
|
---|
4717 | do
|
---|
4718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
4721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
4722 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4723 | else
|
---|
4724 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4725 | /* confdefs.h. */
|
---|
4726 | _ACEOF
|
---|
4727 | cat confdefs.h >>conftest.$ac_ext
|
---|
4728 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4729 | /* end confdefs.h. */
|
---|
4730 | $ac_includes_default
|
---|
4731 |
|
---|
4732 | #include <$ac_header>
|
---|
4733 | _ACEOF
|
---|
4734 | rm -f conftest.$ac_objext
|
---|
4735 | if { (ac_try="$ac_compile"
|
---|
4736 | case "(($ac_try" in
|
---|
4737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4738 | *) ac_try_echo=$ac_try;;
|
---|
4739 | esac
|
---|
4740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4741 | (eval "$ac_compile") 2>conftest.er1
|
---|
4742 | ac_status=$?
|
---|
4743 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4744 | rm -f conftest.er1
|
---|
4745 | cat conftest.err >&5
|
---|
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4747 | (exit $ac_status); } &&
|
---|
4748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
4749 | { (case "(($ac_try" in
|
---|
4750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4751 | *) ac_try_echo=$ac_try;;
|
---|
4752 | esac
|
---|
4753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4754 | (eval "$ac_try") 2>&5
|
---|
4755 | ac_status=$?
|
---|
4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4757 | (exit $ac_status); }; } &&
|
---|
4758 | { ac_try='test -s conftest.$ac_objext'
|
---|
4759 | { (case "(($ac_try" in
|
---|
4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4761 | *) ac_try_echo=$ac_try;;
|
---|
4762 | esac
|
---|
4763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4764 | (eval "$ac_try") 2>&5
|
---|
4765 | ac_status=$?
|
---|
4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4767 | (exit $ac_status); }; }; then
|
---|
4768 | eval "$as_ac_Header=yes"
|
---|
4769 | else
|
---|
4770 | echo "$as_me: failed program was:" >&5
|
---|
4771 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4772 |
|
---|
4773 | eval "$as_ac_Header=no"
|
---|
4774 | fi
|
---|
4775 |
|
---|
4776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4777 | fi
|
---|
4778 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
4779 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
4780 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
4781 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4782 | cat >>confdefs.h <<_ACEOF
|
---|
4783 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4784 | _ACEOF
|
---|
4785 |
|
---|
4786 | fi
|
---|
4787 |
|
---|
4788 | done
|
---|
4789 |
|
---|
4790 |
|
---|
4791 | { echo "$as_me:$LINENO: checking for short" >&5
|
---|
4792 | echo $ECHO_N "checking for short... $ECHO_C" >&6; }
|
---|
4793 | if test "${ac_cv_type_short+set}" = set; then
|
---|
4794 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4795 | else
|
---|
4796 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4797 | /* confdefs.h. */
|
---|
4798 | _ACEOF
|
---|
4799 | cat confdefs.h >>conftest.$ac_ext
|
---|
4800 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4801 | /* end confdefs.h. */
|
---|
4802 | $ac_includes_default
|
---|
4803 | typedef short ac__type_new_;
|
---|
4804 | int
|
---|
4805 | main ()
|
---|
4806 | {
|
---|
4807 | if ((ac__type_new_ *) 0)
|
---|
4808 | return 0;
|
---|
4809 | if (sizeof (ac__type_new_))
|
---|
4810 | return 0;
|
---|
4811 | ;
|
---|
4812 | return 0;
|
---|
4813 | }
|
---|
4814 | _ACEOF
|
---|
4815 | rm -f conftest.$ac_objext
|
---|
4816 | if { (ac_try="$ac_compile"
|
---|
4817 | case "(($ac_try" in
|
---|
4818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4819 | *) ac_try_echo=$ac_try;;
|
---|
4820 | esac
|
---|
4821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4822 | (eval "$ac_compile") 2>conftest.er1
|
---|
4823 | ac_status=$?
|
---|
4824 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4825 | rm -f conftest.er1
|
---|
4826 | cat conftest.err >&5
|
---|
4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4828 | (exit $ac_status); } &&
|
---|
4829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
4830 | { (case "(($ac_try" in
|
---|
4831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4832 | *) ac_try_echo=$ac_try;;
|
---|
4833 | esac
|
---|
4834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4835 | (eval "$ac_try") 2>&5
|
---|
4836 | ac_status=$?
|
---|
4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4838 | (exit $ac_status); }; } &&
|
---|
4839 | { ac_try='test -s conftest.$ac_objext'
|
---|
4840 | { (case "(($ac_try" in
|
---|
4841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4842 | *) ac_try_echo=$ac_try;;
|
---|
4843 | esac
|
---|
4844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4845 | (eval "$ac_try") 2>&5
|
---|
4846 | ac_status=$?
|
---|
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4848 | (exit $ac_status); }; }; then
|
---|
4849 | ac_cv_type_short=yes
|
---|
4850 | else
|
---|
4851 | echo "$as_me: failed program was:" >&5
|
---|
4852 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4853 |
|
---|
4854 | ac_cv_type_short=no
|
---|
4855 | fi
|
---|
4856 |
|
---|
4857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4858 | fi
|
---|
4859 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
|
---|
4860 | echo "${ECHO_T}$ac_cv_type_short" >&6; }
|
---|
4861 |
|
---|
4862 | { echo "$as_me:$LINENO: checking size of short" >&5
|
---|
4863 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
|
---|
4864 | if test "${ac_cv_sizeof_short+set}" = set; then
|
---|
4865 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4866 | else
|
---|
4867 | if test "$ac_cv_type_short" = yes; then
|
---|
4868 | # The cast to long int works around a bug in the HP C Compiler
|
---|
4869 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
4870 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
4871 | # This bug is HP SR number 8606223364.
|
---|
4872 | if test "$cross_compiling" = yes; then
|
---|
4873 | # Depending upon the size, compute the lo and hi bounds.
|
---|
4874 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4875 | /* confdefs.h. */
|
---|
4876 | _ACEOF
|
---|
4877 | cat confdefs.h >>conftest.$ac_ext
|
---|
4878 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4879 | /* end confdefs.h. */
|
---|
4880 | $ac_includes_default
|
---|
4881 | typedef short ac__type_sizeof_;
|
---|
4882 | int
|
---|
4883 | main ()
|
---|
4884 | {
|
---|
4885 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
---|
4886 | test_array [0] = 0
|
---|
4887 |
|
---|
4888 | ;
|
---|
4889 | return 0;
|
---|
4890 | }
|
---|
4891 | _ACEOF
|
---|
4892 | rm -f conftest.$ac_objext
|
---|
4893 | if { (ac_try="$ac_compile"
|
---|
4894 | case "(($ac_try" in
|
---|
4895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4896 | *) ac_try_echo=$ac_try;;
|
---|
4897 | esac
|
---|
4898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4899 | (eval "$ac_compile") 2>conftest.er1
|
---|
4900 | ac_status=$?
|
---|
4901 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4902 | rm -f conftest.er1
|
---|
4903 | cat conftest.err >&5
|
---|
4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4905 | (exit $ac_status); } &&
|
---|
4906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
4907 | { (case "(($ac_try" in
|
---|
4908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4909 | *) ac_try_echo=$ac_try;;
|
---|
4910 | esac
|
---|
4911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4912 | (eval "$ac_try") 2>&5
|
---|
4913 | ac_status=$?
|
---|
4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4915 | (exit $ac_status); }; } &&
|
---|
4916 | { ac_try='test -s conftest.$ac_objext'
|
---|
4917 | { (case "(($ac_try" in
|
---|
4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4919 | *) ac_try_echo=$ac_try;;
|
---|
4920 | esac
|
---|
4921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4922 | (eval "$ac_try") 2>&5
|
---|
4923 | ac_status=$?
|
---|
4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4925 | (exit $ac_status); }; }; then
|
---|
4926 | ac_lo=0 ac_mid=0
|
---|
4927 | while :; do
|
---|
4928 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4929 | /* confdefs.h. */
|
---|
4930 | _ACEOF
|
---|
4931 | cat confdefs.h >>conftest.$ac_ext
|
---|
4932 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4933 | /* end confdefs.h. */
|
---|
4934 | $ac_includes_default
|
---|
4935 | typedef short ac__type_sizeof_;
|
---|
4936 | int
|
---|
4937 | main ()
|
---|
4938 | {
|
---|
4939 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
4940 | test_array [0] = 0
|
---|
4941 |
|
---|
4942 | ;
|
---|
4943 | return 0;
|
---|
4944 | }
|
---|
4945 | _ACEOF
|
---|
4946 | rm -f conftest.$ac_objext
|
---|
4947 | if { (ac_try="$ac_compile"
|
---|
4948 | case "(($ac_try" in
|
---|
4949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4950 | *) ac_try_echo=$ac_try;;
|
---|
4951 | esac
|
---|
4952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4953 | (eval "$ac_compile") 2>conftest.er1
|
---|
4954 | ac_status=$?
|
---|
4955 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4956 | rm -f conftest.er1
|
---|
4957 | cat conftest.err >&5
|
---|
4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4959 | (exit $ac_status); } &&
|
---|
4960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
4961 | { (case "(($ac_try" in
|
---|
4962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4963 | *) ac_try_echo=$ac_try;;
|
---|
4964 | esac
|
---|
4965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4966 | (eval "$ac_try") 2>&5
|
---|
4967 | ac_status=$?
|
---|
4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4969 | (exit $ac_status); }; } &&
|
---|
4970 | { ac_try='test -s conftest.$ac_objext'
|
---|
4971 | { (case "(($ac_try" in
|
---|
4972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4973 | *) ac_try_echo=$ac_try;;
|
---|
4974 | esac
|
---|
4975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4976 | (eval "$ac_try") 2>&5
|
---|
4977 | ac_status=$?
|
---|
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4979 | (exit $ac_status); }; }; then
|
---|
4980 | ac_hi=$ac_mid; break
|
---|
4981 | else
|
---|
4982 | echo "$as_me: failed program was:" >&5
|
---|
4983 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4984 |
|
---|
4985 | ac_lo=`expr $ac_mid + 1`
|
---|
4986 | if test $ac_lo -le $ac_mid; then
|
---|
4987 | ac_lo= ac_hi=
|
---|
4988 | break
|
---|
4989 | fi
|
---|
4990 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
4991 | fi
|
---|
4992 |
|
---|
4993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4994 | done
|
---|
4995 | else
|
---|
4996 | echo "$as_me: failed program was:" >&5
|
---|
4997 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4998 |
|
---|
4999 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5000 | /* confdefs.h. */
|
---|
5001 | _ACEOF
|
---|
5002 | cat confdefs.h >>conftest.$ac_ext
|
---|
5003 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5004 | /* end confdefs.h. */
|
---|
5005 | $ac_includes_default
|
---|
5006 | typedef short ac__type_sizeof_;
|
---|
5007 | int
|
---|
5008 | main ()
|
---|
5009 | {
|
---|
5010 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
---|
5011 | test_array [0] = 0
|
---|
5012 |
|
---|
5013 | ;
|
---|
5014 | return 0;
|
---|
5015 | }
|
---|
5016 | _ACEOF
|
---|
5017 | rm -f conftest.$ac_objext
|
---|
5018 | if { (ac_try="$ac_compile"
|
---|
5019 | case "(($ac_try" in
|
---|
5020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5021 | *) ac_try_echo=$ac_try;;
|
---|
5022 | esac
|
---|
5023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5024 | (eval "$ac_compile") 2>conftest.er1
|
---|
5025 | ac_status=$?
|
---|
5026 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5027 | rm -f conftest.er1
|
---|
5028 | cat conftest.err >&5
|
---|
5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5030 | (exit $ac_status); } &&
|
---|
5031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5032 | { (case "(($ac_try" in
|
---|
5033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5034 | *) ac_try_echo=$ac_try;;
|
---|
5035 | esac
|
---|
5036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5037 | (eval "$ac_try") 2>&5
|
---|
5038 | ac_status=$?
|
---|
5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5040 | (exit $ac_status); }; } &&
|
---|
5041 | { ac_try='test -s conftest.$ac_objext'
|
---|
5042 | { (case "(($ac_try" in
|
---|
5043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5044 | *) ac_try_echo=$ac_try;;
|
---|
5045 | esac
|
---|
5046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5047 | (eval "$ac_try") 2>&5
|
---|
5048 | ac_status=$?
|
---|
5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5050 | (exit $ac_status); }; }; then
|
---|
5051 | ac_hi=-1 ac_mid=-1
|
---|
5052 | while :; do
|
---|
5053 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5054 | /* confdefs.h. */
|
---|
5055 | _ACEOF
|
---|
5056 | cat confdefs.h >>conftest.$ac_ext
|
---|
5057 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5058 | /* end confdefs.h. */
|
---|
5059 | $ac_includes_default
|
---|
5060 | typedef short ac__type_sizeof_;
|
---|
5061 | int
|
---|
5062 | main ()
|
---|
5063 | {
|
---|
5064 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
---|
5065 | test_array [0] = 0
|
---|
5066 |
|
---|
5067 | ;
|
---|
5068 | return 0;
|
---|
5069 | }
|
---|
5070 | _ACEOF
|
---|
5071 | rm -f conftest.$ac_objext
|
---|
5072 | if { (ac_try="$ac_compile"
|
---|
5073 | case "(($ac_try" in
|
---|
5074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5075 | *) ac_try_echo=$ac_try;;
|
---|
5076 | esac
|
---|
5077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5078 | (eval "$ac_compile") 2>conftest.er1
|
---|
5079 | ac_status=$?
|
---|
5080 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5081 | rm -f conftest.er1
|
---|
5082 | cat conftest.err >&5
|
---|
5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5084 | (exit $ac_status); } &&
|
---|
5085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5086 | { (case "(($ac_try" in
|
---|
5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5088 | *) ac_try_echo=$ac_try;;
|
---|
5089 | esac
|
---|
5090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5091 | (eval "$ac_try") 2>&5
|
---|
5092 | ac_status=$?
|
---|
5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5094 | (exit $ac_status); }; } &&
|
---|
5095 | { ac_try='test -s conftest.$ac_objext'
|
---|
5096 | { (case "(($ac_try" in
|
---|
5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5098 | *) ac_try_echo=$ac_try;;
|
---|
5099 | esac
|
---|
5100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5101 | (eval "$ac_try") 2>&5
|
---|
5102 | ac_status=$?
|
---|
5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5104 | (exit $ac_status); }; }; then
|
---|
5105 | ac_lo=$ac_mid; break
|
---|
5106 | else
|
---|
5107 | echo "$as_me: failed program was:" >&5
|
---|
5108 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5109 |
|
---|
5110 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
5111 | if test $ac_mid -le $ac_hi; then
|
---|
5112 | ac_lo= ac_hi=
|
---|
5113 | break
|
---|
5114 | fi
|
---|
5115 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
5116 | fi
|
---|
5117 |
|
---|
5118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5119 | done
|
---|
5120 | else
|
---|
5121 | echo "$as_me: failed program was:" >&5
|
---|
5122 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5123 |
|
---|
5124 | ac_lo= ac_hi=
|
---|
5125 | fi
|
---|
5126 |
|
---|
5127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5128 | fi
|
---|
5129 |
|
---|
5130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5131 | # Binary search between lo and hi bounds.
|
---|
5132 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
5133 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
5134 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5135 | /* confdefs.h. */
|
---|
5136 | _ACEOF
|
---|
5137 | cat confdefs.h >>conftest.$ac_ext
|
---|
5138 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5139 | /* end confdefs.h. */
|
---|
5140 | $ac_includes_default
|
---|
5141 | typedef short ac__type_sizeof_;
|
---|
5142 | int
|
---|
5143 | main ()
|
---|
5144 | {
|
---|
5145 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
5146 | test_array [0] = 0
|
---|
5147 |
|
---|
5148 | ;
|
---|
5149 | return 0;
|
---|
5150 | }
|
---|
5151 | _ACEOF
|
---|
5152 | rm -f conftest.$ac_objext
|
---|
5153 | if { (ac_try="$ac_compile"
|
---|
5154 | case "(($ac_try" in
|
---|
5155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5156 | *) ac_try_echo=$ac_try;;
|
---|
5157 | esac
|
---|
5158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5159 | (eval "$ac_compile") 2>conftest.er1
|
---|
5160 | ac_status=$?
|
---|
5161 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5162 | rm -f conftest.er1
|
---|
5163 | cat conftest.err >&5
|
---|
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5165 | (exit $ac_status); } &&
|
---|
5166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5167 | { (case "(($ac_try" in
|
---|
5168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5169 | *) ac_try_echo=$ac_try;;
|
---|
5170 | esac
|
---|
5171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5172 | (eval "$ac_try") 2>&5
|
---|
5173 | ac_status=$?
|
---|
5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5175 | (exit $ac_status); }; } &&
|
---|
5176 | { ac_try='test -s conftest.$ac_objext'
|
---|
5177 | { (case "(($ac_try" in
|
---|
5178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5179 | *) ac_try_echo=$ac_try;;
|
---|
5180 | esac
|
---|
5181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5182 | (eval "$ac_try") 2>&5
|
---|
5183 | ac_status=$?
|
---|
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5185 | (exit $ac_status); }; }; then
|
---|
5186 | ac_hi=$ac_mid
|
---|
5187 | else
|
---|
5188 | echo "$as_me: failed program was:" >&5
|
---|
5189 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5190 |
|
---|
5191 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
5192 | fi
|
---|
5193 |
|
---|
5194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5195 | done
|
---|
5196 | case $ac_lo in
|
---|
5197 | ?*) ac_cv_sizeof_short=$ac_lo;;
|
---|
5198 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
---|
5199 | See \`config.log' for more details." >&5
|
---|
5200 | echo "$as_me: error: cannot compute sizeof (short)
|
---|
5201 | See \`config.log' for more details." >&2;}
|
---|
5202 | { (exit 77); exit 77; }; } ;;
|
---|
5203 | esac
|
---|
5204 | else
|
---|
5205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5206 | /* confdefs.h. */
|
---|
5207 | _ACEOF
|
---|
5208 | cat confdefs.h >>conftest.$ac_ext
|
---|
5209 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5210 | /* end confdefs.h. */
|
---|
5211 | $ac_includes_default
|
---|
5212 | typedef short ac__type_sizeof_;
|
---|
5213 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
5214 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
5215 | #include <stdio.h>
|
---|
5216 | #include <stdlib.h>
|
---|
5217 | int
|
---|
5218 | main ()
|
---|
5219 | {
|
---|
5220 |
|
---|
5221 | FILE *f = fopen ("conftest.val", "w");
|
---|
5222 | if (! f)
|
---|
5223 | return 1;
|
---|
5224 | if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
---|
5225 | {
|
---|
5226 | long int i = longval ();
|
---|
5227 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
5228 | return 1;
|
---|
5229 | fprintf (f, "%ld\n", i);
|
---|
5230 | }
|
---|
5231 | else
|
---|
5232 | {
|
---|
5233 | unsigned long int i = ulongval ();
|
---|
5234 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
5235 | return 1;
|
---|
5236 | fprintf (f, "%lu\n", i);
|
---|
5237 | }
|
---|
5238 | return ferror (f) || fclose (f) != 0;
|
---|
5239 |
|
---|
5240 | ;
|
---|
5241 | return 0;
|
---|
5242 | }
|
---|
5243 | _ACEOF
|
---|
5244 | rm -f conftest$ac_exeext
|
---|
5245 | if { (ac_try="$ac_link"
|
---|
5246 | case "(($ac_try" in
|
---|
5247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5248 | *) ac_try_echo=$ac_try;;
|
---|
5249 | esac
|
---|
5250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5251 | (eval "$ac_link") 2>&5
|
---|
5252 | ac_status=$?
|
---|
5253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5255 | { (case "(($ac_try" in
|
---|
5256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5257 | *) ac_try_echo=$ac_try;;
|
---|
5258 | esac
|
---|
5259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5260 | (eval "$ac_try") 2>&5
|
---|
5261 | ac_status=$?
|
---|
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5263 | (exit $ac_status); }; }; then
|
---|
5264 | ac_cv_sizeof_short=`cat conftest.val`
|
---|
5265 | else
|
---|
5266 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5267 | echo "$as_me: failed program was:" >&5
|
---|
5268 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5269 |
|
---|
5270 | ( exit $ac_status )
|
---|
5271 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
|
---|
5272 | See \`config.log' for more details." >&5
|
---|
5273 | echo "$as_me: error: cannot compute sizeof (short)
|
---|
5274 | See \`config.log' for more details." >&2;}
|
---|
5275 | { (exit 77); exit 77; }; }
|
---|
5276 | fi
|
---|
5277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5278 | fi
|
---|
5279 | rm -f conftest.val
|
---|
5280 | else
|
---|
5281 | ac_cv_sizeof_short=0
|
---|
5282 | fi
|
---|
5283 | fi
|
---|
5284 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
|
---|
5285 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
|
---|
5286 | cat >>confdefs.h <<_ACEOF
|
---|
5287 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
---|
5288 | _ACEOF
|
---|
5289 |
|
---|
5290 |
|
---|
5291 | { echo "$as_me:$LINENO: checking for int" >&5
|
---|
5292 | echo $ECHO_N "checking for int... $ECHO_C" >&6; }
|
---|
5293 | if test "${ac_cv_type_int+set}" = set; then
|
---|
5294 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5295 | else
|
---|
5296 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5297 | /* confdefs.h. */
|
---|
5298 | _ACEOF
|
---|
5299 | cat confdefs.h >>conftest.$ac_ext
|
---|
5300 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5301 | /* end confdefs.h. */
|
---|
5302 | $ac_includes_default
|
---|
5303 | typedef int ac__type_new_;
|
---|
5304 | int
|
---|
5305 | main ()
|
---|
5306 | {
|
---|
5307 | if ((ac__type_new_ *) 0)
|
---|
5308 | return 0;
|
---|
5309 | if (sizeof (ac__type_new_))
|
---|
5310 | return 0;
|
---|
5311 | ;
|
---|
5312 | return 0;
|
---|
5313 | }
|
---|
5314 | _ACEOF
|
---|
5315 | rm -f conftest.$ac_objext
|
---|
5316 | if { (ac_try="$ac_compile"
|
---|
5317 | case "(($ac_try" in
|
---|
5318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5319 | *) ac_try_echo=$ac_try;;
|
---|
5320 | esac
|
---|
5321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5322 | (eval "$ac_compile") 2>conftest.er1
|
---|
5323 | ac_status=$?
|
---|
5324 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5325 | rm -f conftest.er1
|
---|
5326 | cat conftest.err >&5
|
---|
5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5328 | (exit $ac_status); } &&
|
---|
5329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5330 | { (case "(($ac_try" in
|
---|
5331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5332 | *) ac_try_echo=$ac_try;;
|
---|
5333 | esac
|
---|
5334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5335 | (eval "$ac_try") 2>&5
|
---|
5336 | ac_status=$?
|
---|
5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5338 | (exit $ac_status); }; } &&
|
---|
5339 | { ac_try='test -s conftest.$ac_objext'
|
---|
5340 | { (case "(($ac_try" in
|
---|
5341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5342 | *) ac_try_echo=$ac_try;;
|
---|
5343 | esac
|
---|
5344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5345 | (eval "$ac_try") 2>&5
|
---|
5346 | ac_status=$?
|
---|
5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5348 | (exit $ac_status); }; }; then
|
---|
5349 | ac_cv_type_int=yes
|
---|
5350 | else
|
---|
5351 | echo "$as_me: failed program was:" >&5
|
---|
5352 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5353 |
|
---|
5354 | ac_cv_type_int=no
|
---|
5355 | fi
|
---|
5356 |
|
---|
5357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5358 | fi
|
---|
5359 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
|
---|
5360 | echo "${ECHO_T}$ac_cv_type_int" >&6; }
|
---|
5361 |
|
---|
5362 | { echo "$as_me:$LINENO: checking size of int" >&5
|
---|
5363 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
|
---|
5364 | if test "${ac_cv_sizeof_int+set}" = set; then
|
---|
5365 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5366 | else
|
---|
5367 | if test "$ac_cv_type_int" = yes; then
|
---|
5368 | # The cast to long int works around a bug in the HP C Compiler
|
---|
5369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
5370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
5371 | # This bug is HP SR number 8606223364.
|
---|
5372 | if test "$cross_compiling" = yes; then
|
---|
5373 | # Depending upon the size, compute the lo and hi bounds.
|
---|
5374 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5375 | /* confdefs.h. */
|
---|
5376 | _ACEOF
|
---|
5377 | cat confdefs.h >>conftest.$ac_ext
|
---|
5378 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5379 | /* end confdefs.h. */
|
---|
5380 | $ac_includes_default
|
---|
5381 | typedef int ac__type_sizeof_;
|
---|
5382 | int
|
---|
5383 | main ()
|
---|
5384 | {
|
---|
5385 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
---|
5386 | test_array [0] = 0
|
---|
5387 |
|
---|
5388 | ;
|
---|
5389 | return 0;
|
---|
5390 | }
|
---|
5391 | _ACEOF
|
---|
5392 | rm -f conftest.$ac_objext
|
---|
5393 | if { (ac_try="$ac_compile"
|
---|
5394 | case "(($ac_try" in
|
---|
5395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5396 | *) ac_try_echo=$ac_try;;
|
---|
5397 | esac
|
---|
5398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5399 | (eval "$ac_compile") 2>conftest.er1
|
---|
5400 | ac_status=$?
|
---|
5401 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5402 | rm -f conftest.er1
|
---|
5403 | cat conftest.err >&5
|
---|
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5405 | (exit $ac_status); } &&
|
---|
5406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5407 | { (case "(($ac_try" in
|
---|
5408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5409 | *) ac_try_echo=$ac_try;;
|
---|
5410 | esac
|
---|
5411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5412 | (eval "$ac_try") 2>&5
|
---|
5413 | ac_status=$?
|
---|
5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5415 | (exit $ac_status); }; } &&
|
---|
5416 | { ac_try='test -s conftest.$ac_objext'
|
---|
5417 | { (case "(($ac_try" in
|
---|
5418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5419 | *) ac_try_echo=$ac_try;;
|
---|
5420 | esac
|
---|
5421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5422 | (eval "$ac_try") 2>&5
|
---|
5423 | ac_status=$?
|
---|
5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5425 | (exit $ac_status); }; }; then
|
---|
5426 | ac_lo=0 ac_mid=0
|
---|
5427 | while :; do
|
---|
5428 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5429 | /* confdefs.h. */
|
---|
5430 | _ACEOF
|
---|
5431 | cat confdefs.h >>conftest.$ac_ext
|
---|
5432 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5433 | /* end confdefs.h. */
|
---|
5434 | $ac_includes_default
|
---|
5435 | typedef int ac__type_sizeof_;
|
---|
5436 | int
|
---|
5437 | main ()
|
---|
5438 | {
|
---|
5439 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
5440 | test_array [0] = 0
|
---|
5441 |
|
---|
5442 | ;
|
---|
5443 | return 0;
|
---|
5444 | }
|
---|
5445 | _ACEOF
|
---|
5446 | rm -f conftest.$ac_objext
|
---|
5447 | if { (ac_try="$ac_compile"
|
---|
5448 | case "(($ac_try" in
|
---|
5449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5450 | *) ac_try_echo=$ac_try;;
|
---|
5451 | esac
|
---|
5452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5453 | (eval "$ac_compile") 2>conftest.er1
|
---|
5454 | ac_status=$?
|
---|
5455 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5456 | rm -f conftest.er1
|
---|
5457 | cat conftest.err >&5
|
---|
5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5459 | (exit $ac_status); } &&
|
---|
5460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5461 | { (case "(($ac_try" in
|
---|
5462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5463 | *) ac_try_echo=$ac_try;;
|
---|
5464 | esac
|
---|
5465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5466 | (eval "$ac_try") 2>&5
|
---|
5467 | ac_status=$?
|
---|
5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5469 | (exit $ac_status); }; } &&
|
---|
5470 | { ac_try='test -s conftest.$ac_objext'
|
---|
5471 | { (case "(($ac_try" in
|
---|
5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5473 | *) ac_try_echo=$ac_try;;
|
---|
5474 | esac
|
---|
5475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5476 | (eval "$ac_try") 2>&5
|
---|
5477 | ac_status=$?
|
---|
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5479 | (exit $ac_status); }; }; then
|
---|
5480 | ac_hi=$ac_mid; break
|
---|
5481 | else
|
---|
5482 | echo "$as_me: failed program was:" >&5
|
---|
5483 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5484 |
|
---|
5485 | ac_lo=`expr $ac_mid + 1`
|
---|
5486 | if test $ac_lo -le $ac_mid; then
|
---|
5487 | ac_lo= ac_hi=
|
---|
5488 | break
|
---|
5489 | fi
|
---|
5490 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
5491 | fi
|
---|
5492 |
|
---|
5493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5494 | done
|
---|
5495 | else
|
---|
5496 | echo "$as_me: failed program was:" >&5
|
---|
5497 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5498 |
|
---|
5499 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5500 | /* confdefs.h. */
|
---|
5501 | _ACEOF
|
---|
5502 | cat confdefs.h >>conftest.$ac_ext
|
---|
5503 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5504 | /* end confdefs.h. */
|
---|
5505 | $ac_includes_default
|
---|
5506 | typedef int ac__type_sizeof_;
|
---|
5507 | int
|
---|
5508 | main ()
|
---|
5509 | {
|
---|
5510 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
---|
5511 | test_array [0] = 0
|
---|
5512 |
|
---|
5513 | ;
|
---|
5514 | return 0;
|
---|
5515 | }
|
---|
5516 | _ACEOF
|
---|
5517 | rm -f conftest.$ac_objext
|
---|
5518 | if { (ac_try="$ac_compile"
|
---|
5519 | case "(($ac_try" in
|
---|
5520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5521 | *) ac_try_echo=$ac_try;;
|
---|
5522 | esac
|
---|
5523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5524 | (eval "$ac_compile") 2>conftest.er1
|
---|
5525 | ac_status=$?
|
---|
5526 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5527 | rm -f conftest.er1
|
---|
5528 | cat conftest.err >&5
|
---|
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5530 | (exit $ac_status); } &&
|
---|
5531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5532 | { (case "(($ac_try" in
|
---|
5533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5534 | *) ac_try_echo=$ac_try;;
|
---|
5535 | esac
|
---|
5536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5537 | (eval "$ac_try") 2>&5
|
---|
5538 | ac_status=$?
|
---|
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5540 | (exit $ac_status); }; } &&
|
---|
5541 | { ac_try='test -s conftest.$ac_objext'
|
---|
5542 | { (case "(($ac_try" in
|
---|
5543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5544 | *) ac_try_echo=$ac_try;;
|
---|
5545 | esac
|
---|
5546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5547 | (eval "$ac_try") 2>&5
|
---|
5548 | ac_status=$?
|
---|
5549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5550 | (exit $ac_status); }; }; then
|
---|
5551 | ac_hi=-1 ac_mid=-1
|
---|
5552 | while :; do
|
---|
5553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5554 | /* confdefs.h. */
|
---|
5555 | _ACEOF
|
---|
5556 | cat confdefs.h >>conftest.$ac_ext
|
---|
5557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5558 | /* end confdefs.h. */
|
---|
5559 | $ac_includes_default
|
---|
5560 | typedef int ac__type_sizeof_;
|
---|
5561 | int
|
---|
5562 | main ()
|
---|
5563 | {
|
---|
5564 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
---|
5565 | test_array [0] = 0
|
---|
5566 |
|
---|
5567 | ;
|
---|
5568 | return 0;
|
---|
5569 | }
|
---|
5570 | _ACEOF
|
---|
5571 | rm -f conftest.$ac_objext
|
---|
5572 | if { (ac_try="$ac_compile"
|
---|
5573 | case "(($ac_try" in
|
---|
5574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5575 | *) ac_try_echo=$ac_try;;
|
---|
5576 | esac
|
---|
5577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5578 | (eval "$ac_compile") 2>conftest.er1
|
---|
5579 | ac_status=$?
|
---|
5580 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5581 | rm -f conftest.er1
|
---|
5582 | cat conftest.err >&5
|
---|
5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5584 | (exit $ac_status); } &&
|
---|
5585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5586 | { (case "(($ac_try" in
|
---|
5587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5588 | *) ac_try_echo=$ac_try;;
|
---|
5589 | esac
|
---|
5590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5591 | (eval "$ac_try") 2>&5
|
---|
5592 | ac_status=$?
|
---|
5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5594 | (exit $ac_status); }; } &&
|
---|
5595 | { ac_try='test -s conftest.$ac_objext'
|
---|
5596 | { (case "(($ac_try" in
|
---|
5597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5598 | *) ac_try_echo=$ac_try;;
|
---|
5599 | esac
|
---|
5600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5601 | (eval "$ac_try") 2>&5
|
---|
5602 | ac_status=$?
|
---|
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5604 | (exit $ac_status); }; }; then
|
---|
5605 | ac_lo=$ac_mid; break
|
---|
5606 | else
|
---|
5607 | echo "$as_me: failed program was:" >&5
|
---|
5608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5609 |
|
---|
5610 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
5611 | if test $ac_mid -le $ac_hi; then
|
---|
5612 | ac_lo= ac_hi=
|
---|
5613 | break
|
---|
5614 | fi
|
---|
5615 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
5616 | fi
|
---|
5617 |
|
---|
5618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5619 | done
|
---|
5620 | else
|
---|
5621 | echo "$as_me: failed program was:" >&5
|
---|
5622 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5623 |
|
---|
5624 | ac_lo= ac_hi=
|
---|
5625 | fi
|
---|
5626 |
|
---|
5627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5628 | fi
|
---|
5629 |
|
---|
5630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5631 | # Binary search between lo and hi bounds.
|
---|
5632 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
5633 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
5634 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5635 | /* confdefs.h. */
|
---|
5636 | _ACEOF
|
---|
5637 | cat confdefs.h >>conftest.$ac_ext
|
---|
5638 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5639 | /* end confdefs.h. */
|
---|
5640 | $ac_includes_default
|
---|
5641 | typedef int ac__type_sizeof_;
|
---|
5642 | int
|
---|
5643 | main ()
|
---|
5644 | {
|
---|
5645 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
5646 | test_array [0] = 0
|
---|
5647 |
|
---|
5648 | ;
|
---|
5649 | return 0;
|
---|
5650 | }
|
---|
5651 | _ACEOF
|
---|
5652 | rm -f conftest.$ac_objext
|
---|
5653 | if { (ac_try="$ac_compile"
|
---|
5654 | case "(($ac_try" in
|
---|
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5656 | *) ac_try_echo=$ac_try;;
|
---|
5657 | esac
|
---|
5658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5659 | (eval "$ac_compile") 2>conftest.er1
|
---|
5660 | ac_status=$?
|
---|
5661 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5662 | rm -f conftest.er1
|
---|
5663 | cat conftest.err >&5
|
---|
5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5665 | (exit $ac_status); } &&
|
---|
5666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5667 | { (case "(($ac_try" in
|
---|
5668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5669 | *) ac_try_echo=$ac_try;;
|
---|
5670 | esac
|
---|
5671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5672 | (eval "$ac_try") 2>&5
|
---|
5673 | ac_status=$?
|
---|
5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5675 | (exit $ac_status); }; } &&
|
---|
5676 | { ac_try='test -s conftest.$ac_objext'
|
---|
5677 | { (case "(($ac_try" in
|
---|
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5679 | *) ac_try_echo=$ac_try;;
|
---|
5680 | esac
|
---|
5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5682 | (eval "$ac_try") 2>&5
|
---|
5683 | ac_status=$?
|
---|
5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5685 | (exit $ac_status); }; }; then
|
---|
5686 | ac_hi=$ac_mid
|
---|
5687 | else
|
---|
5688 | echo "$as_me: failed program was:" >&5
|
---|
5689 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5690 |
|
---|
5691 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
5692 | fi
|
---|
5693 |
|
---|
5694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5695 | done
|
---|
5696 | case $ac_lo in
|
---|
5697 | ?*) ac_cv_sizeof_int=$ac_lo;;
|
---|
5698 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
---|
5699 | See \`config.log' for more details." >&5
|
---|
5700 | echo "$as_me: error: cannot compute sizeof (int)
|
---|
5701 | See \`config.log' for more details." >&2;}
|
---|
5702 | { (exit 77); exit 77; }; } ;;
|
---|
5703 | esac
|
---|
5704 | else
|
---|
5705 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5706 | /* confdefs.h. */
|
---|
5707 | _ACEOF
|
---|
5708 | cat confdefs.h >>conftest.$ac_ext
|
---|
5709 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5710 | /* end confdefs.h. */
|
---|
5711 | $ac_includes_default
|
---|
5712 | typedef int ac__type_sizeof_;
|
---|
5713 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
5714 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
5715 | #include <stdio.h>
|
---|
5716 | #include <stdlib.h>
|
---|
5717 | int
|
---|
5718 | main ()
|
---|
5719 | {
|
---|
5720 |
|
---|
5721 | FILE *f = fopen ("conftest.val", "w");
|
---|
5722 | if (! f)
|
---|
5723 | return 1;
|
---|
5724 | if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
---|
5725 | {
|
---|
5726 | long int i = longval ();
|
---|
5727 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
5728 | return 1;
|
---|
5729 | fprintf (f, "%ld\n", i);
|
---|
5730 | }
|
---|
5731 | else
|
---|
5732 | {
|
---|
5733 | unsigned long int i = ulongval ();
|
---|
5734 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
5735 | return 1;
|
---|
5736 | fprintf (f, "%lu\n", i);
|
---|
5737 | }
|
---|
5738 | return ferror (f) || fclose (f) != 0;
|
---|
5739 |
|
---|
5740 | ;
|
---|
5741 | return 0;
|
---|
5742 | }
|
---|
5743 | _ACEOF
|
---|
5744 | rm -f conftest$ac_exeext
|
---|
5745 | if { (ac_try="$ac_link"
|
---|
5746 | case "(($ac_try" in
|
---|
5747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5748 | *) ac_try_echo=$ac_try;;
|
---|
5749 | esac
|
---|
5750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5751 | (eval "$ac_link") 2>&5
|
---|
5752 | ac_status=$?
|
---|
5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5755 | { (case "(($ac_try" in
|
---|
5756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5757 | *) ac_try_echo=$ac_try;;
|
---|
5758 | esac
|
---|
5759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5760 | (eval "$ac_try") 2>&5
|
---|
5761 | ac_status=$?
|
---|
5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5763 | (exit $ac_status); }; }; then
|
---|
5764 | ac_cv_sizeof_int=`cat conftest.val`
|
---|
5765 | else
|
---|
5766 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5767 | echo "$as_me: failed program was:" >&5
|
---|
5768 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5769 |
|
---|
5770 | ( exit $ac_status )
|
---|
5771 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
|
---|
5772 | See \`config.log' for more details." >&5
|
---|
5773 | echo "$as_me: error: cannot compute sizeof (int)
|
---|
5774 | See \`config.log' for more details." >&2;}
|
---|
5775 | { (exit 77); exit 77; }; }
|
---|
5776 | fi
|
---|
5777 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5778 | fi
|
---|
5779 | rm -f conftest.val
|
---|
5780 | else
|
---|
5781 | ac_cv_sizeof_int=0
|
---|
5782 | fi
|
---|
5783 | fi
|
---|
5784 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
|
---|
5785 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
|
---|
5786 | cat >>confdefs.h <<_ACEOF
|
---|
5787 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
5788 | _ACEOF
|
---|
5789 |
|
---|
5790 |
|
---|
5791 | { echo "$as_me:$LINENO: checking for long" >&5
|
---|
5792 | echo $ECHO_N "checking for long... $ECHO_C" >&6; }
|
---|
5793 | if test "${ac_cv_type_long+set}" = set; then
|
---|
5794 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5795 | else
|
---|
5796 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5797 | /* confdefs.h. */
|
---|
5798 | _ACEOF
|
---|
5799 | cat confdefs.h >>conftest.$ac_ext
|
---|
5800 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5801 | /* end confdefs.h. */
|
---|
5802 | $ac_includes_default
|
---|
5803 | typedef long ac__type_new_;
|
---|
5804 | int
|
---|
5805 | main ()
|
---|
5806 | {
|
---|
5807 | if ((ac__type_new_ *) 0)
|
---|
5808 | return 0;
|
---|
5809 | if (sizeof (ac__type_new_))
|
---|
5810 | return 0;
|
---|
5811 | ;
|
---|
5812 | return 0;
|
---|
5813 | }
|
---|
5814 | _ACEOF
|
---|
5815 | rm -f conftest.$ac_objext
|
---|
5816 | if { (ac_try="$ac_compile"
|
---|
5817 | case "(($ac_try" in
|
---|
5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5819 | *) ac_try_echo=$ac_try;;
|
---|
5820 | esac
|
---|
5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5822 | (eval "$ac_compile") 2>conftest.er1
|
---|
5823 | ac_status=$?
|
---|
5824 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5825 | rm -f conftest.er1
|
---|
5826 | cat conftest.err >&5
|
---|
5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5828 | (exit $ac_status); } &&
|
---|
5829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5830 | { (case "(($ac_try" in
|
---|
5831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5832 | *) ac_try_echo=$ac_try;;
|
---|
5833 | esac
|
---|
5834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5835 | (eval "$ac_try") 2>&5
|
---|
5836 | ac_status=$?
|
---|
5837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5838 | (exit $ac_status); }; } &&
|
---|
5839 | { ac_try='test -s conftest.$ac_objext'
|
---|
5840 | { (case "(($ac_try" in
|
---|
5841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5842 | *) ac_try_echo=$ac_try;;
|
---|
5843 | esac
|
---|
5844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5845 | (eval "$ac_try") 2>&5
|
---|
5846 | ac_status=$?
|
---|
5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5848 | (exit $ac_status); }; }; then
|
---|
5849 | ac_cv_type_long=yes
|
---|
5850 | else
|
---|
5851 | echo "$as_me: failed program was:" >&5
|
---|
5852 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5853 |
|
---|
5854 | ac_cv_type_long=no
|
---|
5855 | fi
|
---|
5856 |
|
---|
5857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5858 | fi
|
---|
5859 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
|
---|
5860 | echo "${ECHO_T}$ac_cv_type_long" >&6; }
|
---|
5861 |
|
---|
5862 | { echo "$as_me:$LINENO: checking size of long" >&5
|
---|
5863 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
|
---|
5864 | if test "${ac_cv_sizeof_long+set}" = set; then
|
---|
5865 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5866 | else
|
---|
5867 | if test "$ac_cv_type_long" = yes; then
|
---|
5868 | # The cast to long int works around a bug in the HP C Compiler
|
---|
5869 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
5870 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
5871 | # This bug is HP SR number 8606223364.
|
---|
5872 | if test "$cross_compiling" = yes; then
|
---|
5873 | # Depending upon the size, compute the lo and hi bounds.
|
---|
5874 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5875 | /* confdefs.h. */
|
---|
5876 | _ACEOF
|
---|
5877 | cat confdefs.h >>conftest.$ac_ext
|
---|
5878 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5879 | /* end confdefs.h. */
|
---|
5880 | $ac_includes_default
|
---|
5881 | typedef long ac__type_sizeof_;
|
---|
5882 | int
|
---|
5883 | main ()
|
---|
5884 | {
|
---|
5885 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
|
---|
5886 | test_array [0] = 0
|
---|
5887 |
|
---|
5888 | ;
|
---|
5889 | return 0;
|
---|
5890 | }
|
---|
5891 | _ACEOF
|
---|
5892 | rm -f conftest.$ac_objext
|
---|
5893 | if { (ac_try="$ac_compile"
|
---|
5894 | case "(($ac_try" in
|
---|
5895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5896 | *) ac_try_echo=$ac_try;;
|
---|
5897 | esac
|
---|
5898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5899 | (eval "$ac_compile") 2>conftest.er1
|
---|
5900 | ac_status=$?
|
---|
5901 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5902 | rm -f conftest.er1
|
---|
5903 | cat conftest.err >&5
|
---|
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5905 | (exit $ac_status); } &&
|
---|
5906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5907 | { (case "(($ac_try" in
|
---|
5908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5909 | *) ac_try_echo=$ac_try;;
|
---|
5910 | esac
|
---|
5911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5912 | (eval "$ac_try") 2>&5
|
---|
5913 | ac_status=$?
|
---|
5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5915 | (exit $ac_status); }; } &&
|
---|
5916 | { ac_try='test -s conftest.$ac_objext'
|
---|
5917 | { (case "(($ac_try" in
|
---|
5918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5919 | *) ac_try_echo=$ac_try;;
|
---|
5920 | esac
|
---|
5921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5922 | (eval "$ac_try") 2>&5
|
---|
5923 | ac_status=$?
|
---|
5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5925 | (exit $ac_status); }; }; then
|
---|
5926 | ac_lo=0 ac_mid=0
|
---|
5927 | while :; do
|
---|
5928 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5929 | /* confdefs.h. */
|
---|
5930 | _ACEOF
|
---|
5931 | cat confdefs.h >>conftest.$ac_ext
|
---|
5932 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5933 | /* end confdefs.h. */
|
---|
5934 | $ac_includes_default
|
---|
5935 | typedef long ac__type_sizeof_;
|
---|
5936 | int
|
---|
5937 | main ()
|
---|
5938 | {
|
---|
5939 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
5940 | test_array [0] = 0
|
---|
5941 |
|
---|
5942 | ;
|
---|
5943 | return 0;
|
---|
5944 | }
|
---|
5945 | _ACEOF
|
---|
5946 | rm -f conftest.$ac_objext
|
---|
5947 | if { (ac_try="$ac_compile"
|
---|
5948 | case "(($ac_try" in
|
---|
5949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5950 | *) ac_try_echo=$ac_try;;
|
---|
5951 | esac
|
---|
5952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5953 | (eval "$ac_compile") 2>conftest.er1
|
---|
5954 | ac_status=$?
|
---|
5955 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5956 | rm -f conftest.er1
|
---|
5957 | cat conftest.err >&5
|
---|
5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5959 | (exit $ac_status); } &&
|
---|
5960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
5961 | { (case "(($ac_try" in
|
---|
5962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5963 | *) ac_try_echo=$ac_try;;
|
---|
5964 | esac
|
---|
5965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5966 | (eval "$ac_try") 2>&5
|
---|
5967 | ac_status=$?
|
---|
5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5969 | (exit $ac_status); }; } &&
|
---|
5970 | { ac_try='test -s conftest.$ac_objext'
|
---|
5971 | { (case "(($ac_try" in
|
---|
5972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5973 | *) ac_try_echo=$ac_try;;
|
---|
5974 | esac
|
---|
5975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5976 | (eval "$ac_try") 2>&5
|
---|
5977 | ac_status=$?
|
---|
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5979 | (exit $ac_status); }; }; then
|
---|
5980 | ac_hi=$ac_mid; break
|
---|
5981 | else
|
---|
5982 | echo "$as_me: failed program was:" >&5
|
---|
5983 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5984 |
|
---|
5985 | ac_lo=`expr $ac_mid + 1`
|
---|
5986 | if test $ac_lo -le $ac_mid; then
|
---|
5987 | ac_lo= ac_hi=
|
---|
5988 | break
|
---|
5989 | fi
|
---|
5990 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
5991 | fi
|
---|
5992 |
|
---|
5993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5994 | done
|
---|
5995 | else
|
---|
5996 | echo "$as_me: failed program was:" >&5
|
---|
5997 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5998 |
|
---|
5999 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6000 | /* confdefs.h. */
|
---|
6001 | _ACEOF
|
---|
6002 | cat confdefs.h >>conftest.$ac_ext
|
---|
6003 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6004 | /* end confdefs.h. */
|
---|
6005 | $ac_includes_default
|
---|
6006 | typedef long ac__type_sizeof_;
|
---|
6007 | int
|
---|
6008 | main ()
|
---|
6009 | {
|
---|
6010 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
|
---|
6011 | test_array [0] = 0
|
---|
6012 |
|
---|
6013 | ;
|
---|
6014 | return 0;
|
---|
6015 | }
|
---|
6016 | _ACEOF
|
---|
6017 | rm -f conftest.$ac_objext
|
---|
6018 | if { (ac_try="$ac_compile"
|
---|
6019 | case "(($ac_try" in
|
---|
6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6021 | *) ac_try_echo=$ac_try;;
|
---|
6022 | esac
|
---|
6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6024 | (eval "$ac_compile") 2>conftest.er1
|
---|
6025 | ac_status=$?
|
---|
6026 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6027 | rm -f conftest.er1
|
---|
6028 | cat conftest.err >&5
|
---|
6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6030 | (exit $ac_status); } &&
|
---|
6031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6032 | { (case "(($ac_try" in
|
---|
6033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6034 | *) ac_try_echo=$ac_try;;
|
---|
6035 | esac
|
---|
6036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6037 | (eval "$ac_try") 2>&5
|
---|
6038 | ac_status=$?
|
---|
6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6040 | (exit $ac_status); }; } &&
|
---|
6041 | { ac_try='test -s conftest.$ac_objext'
|
---|
6042 | { (case "(($ac_try" in
|
---|
6043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6044 | *) ac_try_echo=$ac_try;;
|
---|
6045 | esac
|
---|
6046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6047 | (eval "$ac_try") 2>&5
|
---|
6048 | ac_status=$?
|
---|
6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6050 | (exit $ac_status); }; }; then
|
---|
6051 | ac_hi=-1 ac_mid=-1
|
---|
6052 | while :; do
|
---|
6053 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6054 | /* confdefs.h. */
|
---|
6055 | _ACEOF
|
---|
6056 | cat confdefs.h >>conftest.$ac_ext
|
---|
6057 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6058 | /* end confdefs.h. */
|
---|
6059 | $ac_includes_default
|
---|
6060 | typedef long ac__type_sizeof_;
|
---|
6061 | int
|
---|
6062 | main ()
|
---|
6063 | {
|
---|
6064 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
|
---|
6065 | test_array [0] = 0
|
---|
6066 |
|
---|
6067 | ;
|
---|
6068 | return 0;
|
---|
6069 | }
|
---|
6070 | _ACEOF
|
---|
6071 | rm -f conftest.$ac_objext
|
---|
6072 | if { (ac_try="$ac_compile"
|
---|
6073 | case "(($ac_try" in
|
---|
6074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6075 | *) ac_try_echo=$ac_try;;
|
---|
6076 | esac
|
---|
6077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6078 | (eval "$ac_compile") 2>conftest.er1
|
---|
6079 | ac_status=$?
|
---|
6080 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6081 | rm -f conftest.er1
|
---|
6082 | cat conftest.err >&5
|
---|
6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6084 | (exit $ac_status); } &&
|
---|
6085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6086 | { (case "(($ac_try" in
|
---|
6087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6088 | *) ac_try_echo=$ac_try;;
|
---|
6089 | esac
|
---|
6090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6091 | (eval "$ac_try") 2>&5
|
---|
6092 | ac_status=$?
|
---|
6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6094 | (exit $ac_status); }; } &&
|
---|
6095 | { ac_try='test -s conftest.$ac_objext'
|
---|
6096 | { (case "(($ac_try" in
|
---|
6097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6098 | *) ac_try_echo=$ac_try;;
|
---|
6099 | esac
|
---|
6100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6101 | (eval "$ac_try") 2>&5
|
---|
6102 | ac_status=$?
|
---|
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6104 | (exit $ac_status); }; }; then
|
---|
6105 | ac_lo=$ac_mid; break
|
---|
6106 | else
|
---|
6107 | echo "$as_me: failed program was:" >&5
|
---|
6108 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6109 |
|
---|
6110 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
6111 | if test $ac_mid -le $ac_hi; then
|
---|
6112 | ac_lo= ac_hi=
|
---|
6113 | break
|
---|
6114 | fi
|
---|
6115 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
6116 | fi
|
---|
6117 |
|
---|
6118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6119 | done
|
---|
6120 | else
|
---|
6121 | echo "$as_me: failed program was:" >&5
|
---|
6122 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6123 |
|
---|
6124 | ac_lo= ac_hi=
|
---|
6125 | fi
|
---|
6126 |
|
---|
6127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6128 | fi
|
---|
6129 |
|
---|
6130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6131 | # Binary search between lo and hi bounds.
|
---|
6132 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
6133 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
6134 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6135 | /* confdefs.h. */
|
---|
6136 | _ACEOF
|
---|
6137 | cat confdefs.h >>conftest.$ac_ext
|
---|
6138 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6139 | /* end confdefs.h. */
|
---|
6140 | $ac_includes_default
|
---|
6141 | typedef long ac__type_sizeof_;
|
---|
6142 | int
|
---|
6143 | main ()
|
---|
6144 | {
|
---|
6145 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
|
---|
6146 | test_array [0] = 0
|
---|
6147 |
|
---|
6148 | ;
|
---|
6149 | return 0;
|
---|
6150 | }
|
---|
6151 | _ACEOF
|
---|
6152 | rm -f conftest.$ac_objext
|
---|
6153 | if { (ac_try="$ac_compile"
|
---|
6154 | case "(($ac_try" in
|
---|
6155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6156 | *) ac_try_echo=$ac_try;;
|
---|
6157 | esac
|
---|
6158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6159 | (eval "$ac_compile") 2>conftest.er1
|
---|
6160 | ac_status=$?
|
---|
6161 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6162 | rm -f conftest.er1
|
---|
6163 | cat conftest.err >&5
|
---|
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6165 | (exit $ac_status); } &&
|
---|
6166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6167 | { (case "(($ac_try" in
|
---|
6168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6169 | *) ac_try_echo=$ac_try;;
|
---|
6170 | esac
|
---|
6171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6172 | (eval "$ac_try") 2>&5
|
---|
6173 | ac_status=$?
|
---|
6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6175 | (exit $ac_status); }; } &&
|
---|
6176 | { ac_try='test -s conftest.$ac_objext'
|
---|
6177 | { (case "(($ac_try" in
|
---|
6178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6179 | *) ac_try_echo=$ac_try;;
|
---|
6180 | esac
|
---|
6181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6182 | (eval "$ac_try") 2>&5
|
---|
6183 | ac_status=$?
|
---|
6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6185 | (exit $ac_status); }; }; then
|
---|
6186 | ac_hi=$ac_mid
|
---|
6187 | else
|
---|
6188 | echo "$as_me: failed program was:" >&5
|
---|
6189 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6190 |
|
---|
6191 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
6192 | fi
|
---|
6193 |
|
---|
6194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6195 | done
|
---|
6196 | case $ac_lo in
|
---|
6197 | ?*) ac_cv_sizeof_long=$ac_lo;;
|
---|
6198 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
---|
6199 | See \`config.log' for more details." >&5
|
---|
6200 | echo "$as_me: error: cannot compute sizeof (long)
|
---|
6201 | See \`config.log' for more details." >&2;}
|
---|
6202 | { (exit 77); exit 77; }; } ;;
|
---|
6203 | esac
|
---|
6204 | else
|
---|
6205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6206 | /* confdefs.h. */
|
---|
6207 | _ACEOF
|
---|
6208 | cat confdefs.h >>conftest.$ac_ext
|
---|
6209 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6210 | /* end confdefs.h. */
|
---|
6211 | $ac_includes_default
|
---|
6212 | typedef long ac__type_sizeof_;
|
---|
6213 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
6214 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
|
---|
6215 | #include <stdio.h>
|
---|
6216 | #include <stdlib.h>
|
---|
6217 | int
|
---|
6218 | main ()
|
---|
6219 | {
|
---|
6220 |
|
---|
6221 | FILE *f = fopen ("conftest.val", "w");
|
---|
6222 | if (! f)
|
---|
6223 | return 1;
|
---|
6224 | if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|
---|
6225 | {
|
---|
6226 | long int i = longval ();
|
---|
6227 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
6228 | return 1;
|
---|
6229 | fprintf (f, "%ld\n", i);
|
---|
6230 | }
|
---|
6231 | else
|
---|
6232 | {
|
---|
6233 | unsigned long int i = ulongval ();
|
---|
6234 | if (i != ((long int) (sizeof (ac__type_sizeof_))))
|
---|
6235 | return 1;
|
---|
6236 | fprintf (f, "%lu\n", i);
|
---|
6237 | }
|
---|
6238 | return ferror (f) || fclose (f) != 0;
|
---|
6239 |
|
---|
6240 | ;
|
---|
6241 | return 0;
|
---|
6242 | }
|
---|
6243 | _ACEOF
|
---|
6244 | rm -f conftest$ac_exeext
|
---|
6245 | if { (ac_try="$ac_link"
|
---|
6246 | case "(($ac_try" in
|
---|
6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6248 | *) ac_try_echo=$ac_try;;
|
---|
6249 | esac
|
---|
6250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6251 | (eval "$ac_link") 2>&5
|
---|
6252 | ac_status=$?
|
---|
6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
6255 | { (case "(($ac_try" in
|
---|
6256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6257 | *) ac_try_echo=$ac_try;;
|
---|
6258 | esac
|
---|
6259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6260 | (eval "$ac_try") 2>&5
|
---|
6261 | ac_status=$?
|
---|
6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6263 | (exit $ac_status); }; }; then
|
---|
6264 | ac_cv_sizeof_long=`cat conftest.val`
|
---|
6265 | else
|
---|
6266 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
6267 | echo "$as_me: failed program was:" >&5
|
---|
6268 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6269 |
|
---|
6270 | ( exit $ac_status )
|
---|
6271 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
|
---|
6272 | See \`config.log' for more details." >&5
|
---|
6273 | echo "$as_me: error: cannot compute sizeof (long)
|
---|
6274 | See \`config.log' for more details." >&2;}
|
---|
6275 | { (exit 77); exit 77; }; }
|
---|
6276 | fi
|
---|
6277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
6278 | fi
|
---|
6279 | rm -f conftest.val
|
---|
6280 | else
|
---|
6281 | ac_cv_sizeof_long=0
|
---|
6282 | fi
|
---|
6283 | fi
|
---|
6284 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
|
---|
6285 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
|
---|
6286 | cat >>confdefs.h <<_ACEOF
|
---|
6287 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
6288 | _ACEOF
|
---|
6289 |
|
---|
6290 |
|
---|
6291 |
|
---|
6292 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
6293 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
---|
6294 | if test "${ac_cv_c_const+set}" = set; then
|
---|
6295 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6296 | else
|
---|
6297 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6298 | /* confdefs.h. */
|
---|
6299 | _ACEOF
|
---|
6300 | cat confdefs.h >>conftest.$ac_ext
|
---|
6301 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6302 | /* end confdefs.h. */
|
---|
6303 |
|
---|
6304 | int
|
---|
6305 | main ()
|
---|
6306 | {
|
---|
6307 | /* FIXME: Include the comments suggested by Paul. */
|
---|
6308 | #ifndef __cplusplus
|
---|
6309 | /* Ultrix mips cc rejects this. */
|
---|
6310 | typedef int charset[2];
|
---|
6311 | const charset x;
|
---|
6312 | /* SunOS 4.1.1 cc rejects this. */
|
---|
6313 | char const *const *ccp;
|
---|
6314 | char **p;
|
---|
6315 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
6316 | struct point {int x, y;};
|
---|
6317 | static struct point const zero = {0,0};
|
---|
6318 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
6319 | It does not let you subtract one const X* pointer from another in
|
---|
6320 | an arm of an if-expression whose if-part is not a constant
|
---|
6321 | expression */
|
---|
6322 | const char *g = "string";
|
---|
6323 | ccp = &g + (g ? g-g : 0);
|
---|
6324 | /* HPUX 7.0 cc rejects these. */
|
---|
6325 | ++ccp;
|
---|
6326 | p = (char**) ccp;
|
---|
6327 | ccp = (char const *const *) p;
|
---|
6328 | { /* SCO 3.2v4 cc rejects this. */
|
---|
6329 | char *t;
|
---|
6330 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
6331 |
|
---|
6332 | *t++ = 0;
|
---|
6333 | if (s) return 0;
|
---|
6334 | }
|
---|
6335 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
6336 | int x[] = {25, 17};
|
---|
6337 | const int *foo = &x[0];
|
---|
6338 | ++foo;
|
---|
6339 | }
|
---|
6340 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
6341 | typedef const int *iptr;
|
---|
6342 | iptr p = 0;
|
---|
6343 | ++p;
|
---|
6344 | }
|
---|
6345 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
6346 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
6347 | struct s { int j; const int *ap[3]; };
|
---|
6348 | struct s *b; b->j = 5;
|
---|
6349 | }
|
---|
6350 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
6351 | const int foo = 10;
|
---|
6352 | if (!foo) return 0;
|
---|
6353 | }
|
---|
6354 | return !x[0] && !zero.x;
|
---|
6355 | #endif
|
---|
6356 |
|
---|
6357 | ;
|
---|
6358 | return 0;
|
---|
6359 | }
|
---|
6360 | _ACEOF
|
---|
6361 | rm -f conftest.$ac_objext
|
---|
6362 | if { (ac_try="$ac_compile"
|
---|
6363 | case "(($ac_try" in
|
---|
6364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6365 | *) ac_try_echo=$ac_try;;
|
---|
6366 | esac
|
---|
6367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6368 | (eval "$ac_compile") 2>conftest.er1
|
---|
6369 | ac_status=$?
|
---|
6370 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6371 | rm -f conftest.er1
|
---|
6372 | cat conftest.err >&5
|
---|
6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6374 | (exit $ac_status); } &&
|
---|
6375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6376 | { (case "(($ac_try" in
|
---|
6377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6378 | *) ac_try_echo=$ac_try;;
|
---|
6379 | esac
|
---|
6380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6381 | (eval "$ac_try") 2>&5
|
---|
6382 | ac_status=$?
|
---|
6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6384 | (exit $ac_status); }; } &&
|
---|
6385 | { ac_try='test -s conftest.$ac_objext'
|
---|
6386 | { (case "(($ac_try" in
|
---|
6387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6388 | *) ac_try_echo=$ac_try;;
|
---|
6389 | esac
|
---|
6390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6391 | (eval "$ac_try") 2>&5
|
---|
6392 | ac_status=$?
|
---|
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6394 | (exit $ac_status); }; }; then
|
---|
6395 | ac_cv_c_const=yes
|
---|
6396 | else
|
---|
6397 | echo "$as_me: failed program was:" >&5
|
---|
6398 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6399 |
|
---|
6400 | ac_cv_c_const=no
|
---|
6401 | fi
|
---|
6402 |
|
---|
6403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6404 | fi
|
---|
6405 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
6406 | echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
---|
6407 | if test $ac_cv_c_const = no; then
|
---|
6408 |
|
---|
6409 | cat >>confdefs.h <<\_ACEOF
|
---|
6410 | #define const
|
---|
6411 | _ACEOF
|
---|
6412 |
|
---|
6413 | fi
|
---|
6414 |
|
---|
6415 | { echo "$as_me:$LINENO: checking for inline" >&5
|
---|
6416 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
|
---|
6417 | if test "${ac_cv_c_inline+set}" = set; then
|
---|
6418 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6419 | else
|
---|
6420 | ac_cv_c_inline=no
|
---|
6421 | for ac_kw in inline __inline__ __inline; do
|
---|
6422 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6423 | /* confdefs.h. */
|
---|
6424 | _ACEOF
|
---|
6425 | cat confdefs.h >>conftest.$ac_ext
|
---|
6426 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6427 | /* end confdefs.h. */
|
---|
6428 | #ifndef __cplusplus
|
---|
6429 | typedef int foo_t;
|
---|
6430 | static $ac_kw foo_t static_foo () {return 0; }
|
---|
6431 | $ac_kw foo_t foo () {return 0; }
|
---|
6432 | #endif
|
---|
6433 |
|
---|
6434 | _ACEOF
|
---|
6435 | rm -f conftest.$ac_objext
|
---|
6436 | if { (ac_try="$ac_compile"
|
---|
6437 | case "(($ac_try" in
|
---|
6438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6439 | *) ac_try_echo=$ac_try;;
|
---|
6440 | esac
|
---|
6441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6442 | (eval "$ac_compile") 2>conftest.er1
|
---|
6443 | ac_status=$?
|
---|
6444 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6445 | rm -f conftest.er1
|
---|
6446 | cat conftest.err >&5
|
---|
6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6448 | (exit $ac_status); } &&
|
---|
6449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6450 | { (case "(($ac_try" in
|
---|
6451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6452 | *) ac_try_echo=$ac_try;;
|
---|
6453 | esac
|
---|
6454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6455 | (eval "$ac_try") 2>&5
|
---|
6456 | ac_status=$?
|
---|
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6458 | (exit $ac_status); }; } &&
|
---|
6459 | { ac_try='test -s conftest.$ac_objext'
|
---|
6460 | { (case "(($ac_try" in
|
---|
6461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6462 | *) ac_try_echo=$ac_try;;
|
---|
6463 | esac
|
---|
6464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6465 | (eval "$ac_try") 2>&5
|
---|
6466 | ac_status=$?
|
---|
6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6468 | (exit $ac_status); }; }; then
|
---|
6469 | ac_cv_c_inline=$ac_kw
|
---|
6470 | else
|
---|
6471 | echo "$as_me: failed program was:" >&5
|
---|
6472 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6473 |
|
---|
6474 |
|
---|
6475 | fi
|
---|
6476 |
|
---|
6477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6478 | test "$ac_cv_c_inline" != no && break
|
---|
6479 | done
|
---|
6480 |
|
---|
6481 | fi
|
---|
6482 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
|
---|
6483 | echo "${ECHO_T}$ac_cv_c_inline" >&6; }
|
---|
6484 |
|
---|
6485 |
|
---|
6486 | case $ac_cv_c_inline in
|
---|
6487 | inline | yes) ;;
|
---|
6488 | *)
|
---|
6489 | case $ac_cv_c_inline in
|
---|
6490 | no) ac_val=;;
|
---|
6491 | *) ac_val=$ac_cv_c_inline;;
|
---|
6492 | esac
|
---|
6493 | cat >>confdefs.h <<_ACEOF
|
---|
6494 | #ifndef __cplusplus
|
---|
6495 | #define inline $ac_val
|
---|
6496 | #endif
|
---|
6497 | _ACEOF
|
---|
6498 | ;;
|
---|
6499 | esac
|
---|
6500 |
|
---|
6501 |
|
---|
6502 | for ac_header in getopt.h
|
---|
6503 | do
|
---|
6504 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
6505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6506 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
6507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
6508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6509 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6510 | fi
|
---|
6511 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
6512 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6513 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6514 | else
|
---|
6515 | # Is the header compilable?
|
---|
6516 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
6517 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
6518 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6519 | /* confdefs.h. */
|
---|
6520 | _ACEOF
|
---|
6521 | cat confdefs.h >>conftest.$ac_ext
|
---|
6522 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6523 | /* end confdefs.h. */
|
---|
6524 | $ac_includes_default
|
---|
6525 | #include <$ac_header>
|
---|
6526 | _ACEOF
|
---|
6527 | rm -f conftest.$ac_objext
|
---|
6528 | if { (ac_try="$ac_compile"
|
---|
6529 | case "(($ac_try" in
|
---|
6530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6531 | *) ac_try_echo=$ac_try;;
|
---|
6532 | esac
|
---|
6533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6534 | (eval "$ac_compile") 2>conftest.er1
|
---|
6535 | ac_status=$?
|
---|
6536 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6537 | rm -f conftest.er1
|
---|
6538 | cat conftest.err >&5
|
---|
6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6540 | (exit $ac_status); } &&
|
---|
6541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6542 | { (case "(($ac_try" in
|
---|
6543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6544 | *) ac_try_echo=$ac_try;;
|
---|
6545 | esac
|
---|
6546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6547 | (eval "$ac_try") 2>&5
|
---|
6548 | ac_status=$?
|
---|
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6550 | (exit $ac_status); }; } &&
|
---|
6551 | { ac_try='test -s conftest.$ac_objext'
|
---|
6552 | { (case "(($ac_try" in
|
---|
6553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6554 | *) ac_try_echo=$ac_try;;
|
---|
6555 | esac
|
---|
6556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6557 | (eval "$ac_try") 2>&5
|
---|
6558 | ac_status=$?
|
---|
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6560 | (exit $ac_status); }; }; then
|
---|
6561 | ac_header_compiler=yes
|
---|
6562 | else
|
---|
6563 | echo "$as_me: failed program was:" >&5
|
---|
6564 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6565 |
|
---|
6566 | ac_header_compiler=no
|
---|
6567 | fi
|
---|
6568 |
|
---|
6569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6570 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6571 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
6572 |
|
---|
6573 | # Is the header present?
|
---|
6574 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
6575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
6576 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6577 | /* confdefs.h. */
|
---|
6578 | _ACEOF
|
---|
6579 | cat confdefs.h >>conftest.$ac_ext
|
---|
6580 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6581 | /* end confdefs.h. */
|
---|
6582 | #include <$ac_header>
|
---|
6583 | _ACEOF
|
---|
6584 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
6585 | case "(($ac_try" in
|
---|
6586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6587 | *) ac_try_echo=$ac_try;;
|
---|
6588 | esac
|
---|
6589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
6591 | ac_status=$?
|
---|
6592 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6593 | rm -f conftest.er1
|
---|
6594 | cat conftest.err >&5
|
---|
6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6596 | (exit $ac_status); } >/dev/null; then
|
---|
6597 | if test -s conftest.err; then
|
---|
6598 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
6599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
6600 | else
|
---|
6601 | ac_cpp_err=
|
---|
6602 | fi
|
---|
6603 | else
|
---|
6604 | ac_cpp_err=yes
|
---|
6605 | fi
|
---|
6606 | if test -z "$ac_cpp_err"; then
|
---|
6607 | ac_header_preproc=yes
|
---|
6608 | else
|
---|
6609 | echo "$as_me: failed program was:" >&5
|
---|
6610 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6611 |
|
---|
6612 | ac_header_preproc=no
|
---|
6613 | fi
|
---|
6614 |
|
---|
6615 | rm -f conftest.err conftest.$ac_ext
|
---|
6616 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6617 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
6618 |
|
---|
6619 | # So? What about this header?
|
---|
6620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6621 | yes:no: )
|
---|
6622 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6623 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
6625 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
6626 | ac_header_preproc=yes
|
---|
6627 | ;;
|
---|
6628 | no:yes:* )
|
---|
6629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
6630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
6631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
6632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
6633 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
6634 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
6635 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6636 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
6638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
6639 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
6640 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
6641 |
|
---|
6642 | ;;
|
---|
6643 | esac
|
---|
6644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
6645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
6646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6647 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6648 | else
|
---|
6649 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
6650 | fi
|
---|
6651 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
6652 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6653 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6654 |
|
---|
6655 | fi
|
---|
6656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
6657 | cat >>confdefs.h <<_ACEOF
|
---|
6658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
6659 | _ACEOF
|
---|
6660 |
|
---|
6661 | fi
|
---|
6662 |
|
---|
6663 | done
|
---|
6664 |
|
---|
6665 |
|
---|
6666 | for ac_func in getopt_long
|
---|
6667 | do
|
---|
6668 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6669 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6670 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
6671 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
6672 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6673 | else
|
---|
6674 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6675 | /* confdefs.h. */
|
---|
6676 | _ACEOF
|
---|
6677 | cat confdefs.h >>conftest.$ac_ext
|
---|
6678 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6679 | /* end confdefs.h. */
|
---|
6680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6682 | #define $ac_func innocuous_$ac_func
|
---|
6683 |
|
---|
6684 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6685 | which can conflict with char $ac_func (); below.
|
---|
6686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6687 | <limits.h> exists even on freestanding compilers. */
|
---|
6688 |
|
---|
6689 | #ifdef __STDC__
|
---|
6690 | # include <limits.h>
|
---|
6691 | #else
|
---|
6692 | # include <assert.h>
|
---|
6693 | #endif
|
---|
6694 |
|
---|
6695 | #undef $ac_func
|
---|
6696 |
|
---|
6697 | /* Override any GCC internal prototype to avoid an error.
|
---|
6698 | Use char because int might match the return type of a GCC
|
---|
6699 | builtin and then its argument prototype would still apply. */
|
---|
6700 | #ifdef __cplusplus
|
---|
6701 | extern "C"
|
---|
6702 | #endif
|
---|
6703 | char $ac_func ();
|
---|
6704 | /* The GNU C library defines this for functions which it implements
|
---|
6705 | to always fail with ENOSYS. Some functions are actually named
|
---|
6706 | something starting with __ and the normal name is an alias. */
|
---|
6707 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
6708 | choke me
|
---|
6709 | #endif
|
---|
6710 |
|
---|
6711 | int
|
---|
6712 | main ()
|
---|
6713 | {
|
---|
6714 | return $ac_func ();
|
---|
6715 | ;
|
---|
6716 | return 0;
|
---|
6717 | }
|
---|
6718 | _ACEOF
|
---|
6719 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6720 | if { (ac_try="$ac_link"
|
---|
6721 | case "(($ac_try" in
|
---|
6722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6723 | *) ac_try_echo=$ac_try;;
|
---|
6724 | esac
|
---|
6725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6726 | (eval "$ac_link") 2>conftest.er1
|
---|
6727 | ac_status=$?
|
---|
6728 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6729 | rm -f conftest.er1
|
---|
6730 | cat conftest.err >&5
|
---|
6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6732 | (exit $ac_status); } &&
|
---|
6733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
|
---|
6734 | { (case "(($ac_try" in
|
---|
6735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6736 | *) ac_try_echo=$ac_try;;
|
---|
6737 | esac
|
---|
6738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6739 | (eval "$ac_try") 2>&5
|
---|
6740 | ac_status=$?
|
---|
6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6742 | (exit $ac_status); }; } &&
|
---|
6743 | { ac_try='test -s conftest$ac_exeext'
|
---|
6744 | { (case "(($ac_try" in
|
---|
6745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6746 | *) ac_try_echo=$ac_try;;
|
---|
6747 | esac
|
---|
6748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6749 | (eval "$ac_try") 2>&5
|
---|
6750 | ac_status=$?
|
---|
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6752 | (exit $ac_status); }; }; then
|
---|
6753 | eval "$as_ac_var=yes"
|
---|
6754 | else
|
---|
6755 | echo "$as_me: failed program was:" >&5
|
---|
6756 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6757 |
|
---|
6758 | eval "$as_ac_var=no"
|
---|
6759 | fi
|
---|
6760 |
|
---|
6761 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6762 | conftest$ac_exeext conftest.$ac_ext
|
---|
6763 | fi
|
---|
6764 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
6765 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
6766 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
6767 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6768 | cat >>confdefs.h <<_ACEOF
|
---|
6769 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6770 | _ACEOF
|
---|
6771 |
|
---|
6772 | fi
|
---|
6773 | done
|
---|
6774 |
|
---|
6775 |
|
---|
6776 | if test "$GCC" = yes; then
|
---|
6777 | CFLAGS="$CFLAGS -O3 -funroll-all-loops"
|
---|
6778 | else
|
---|
6779 | { echo "$as_me:$LINENO: result: no gcc" >&5
|
---|
6780 | echo "${ECHO_T}no gcc" >&6; }
|
---|
6781 | fi
|
---|
6782 |
|
---|
6783 | ac_config_files="$ac_config_files Makefile"
|
---|
6784 |
|
---|
6785 | cat >confcache <<\_ACEOF
|
---|
6786 | # This file is a shell script that caches the results of configure
|
---|
6787 | # tests run on this system so they can be shared between configure
|
---|
6788 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6789 | # It is not useful on other systems. If it contains results you don't
|
---|
6790 | # want to keep, you may remove or edit it.
|
---|
6791 | #
|
---|
6792 | # config.status only pays attention to the cache file if you give it
|
---|
6793 | # the --recheck option to rerun configure.
|
---|
6794 | #
|
---|
6795 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6796 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6797 | # following values.
|
---|
6798 |
|
---|
6799 | _ACEOF
|
---|
6800 |
|
---|
6801 | # The following way of writing the cache mishandles newlines in values,
|
---|
6802 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6803 | # So, we kill variables containing newlines.
|
---|
6804 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6805 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6806 | (
|
---|
6807 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6808 | eval ac_val=\$$ac_var
|
---|
6809 | case $ac_val in #(
|
---|
6810 | *${as_nl}*)
|
---|
6811 | case $ac_var in #(
|
---|
6812 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
6813 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
6814 | esac
|
---|
6815 | case $ac_var in #(
|
---|
6816 | _ | IFS | as_nl) ;; #(
|
---|
6817 | *) $as_unset $ac_var ;;
|
---|
6818 | esac ;;
|
---|
6819 | esac
|
---|
6820 | done
|
---|
6821 |
|
---|
6822 | (set) 2>&1 |
|
---|
6823 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6824 | *${as_nl}ac_space=\ *)
|
---|
6825 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
6826 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
6827 | sed -n \
|
---|
6828 | "s/'/'\\\\''/g;
|
---|
6829 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6830 | ;; #(
|
---|
6831 | *)
|
---|
6832 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6833 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6834 | ;;
|
---|
6835 | esac |
|
---|
6836 | sort
|
---|
6837 | ) |
|
---|
6838 | sed '
|
---|
6839 | /^ac_cv_env_/b end
|
---|
6840 | t clear
|
---|
6841 | :clear
|
---|
6842 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6843 | t end
|
---|
6844 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6845 | :end' >>confcache
|
---|
6846 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6847 | if test -w "$cache_file"; then
|
---|
6848 | test "x$cache_file" != "x/dev/null" &&
|
---|
6849 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
6850 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6851 | cat confcache >$cache_file
|
---|
6852 | else
|
---|
6853 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
6854 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6855 | fi
|
---|
6856 | fi
|
---|
6857 | rm -f confcache
|
---|
6858 |
|
---|
6859 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6860 | # Let make expand exec_prefix.
|
---|
6861 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6862 |
|
---|
6863 | DEFS=-DHAVE_CONFIG_H
|
---|
6864 |
|
---|
6865 | ac_libobjs=
|
---|
6866 | ac_ltlibobjs=
|
---|
6867 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6868 | # 1. Remove the extension, and $U if already installed.
|
---|
6869 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6870 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
6871 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6872 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6873 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6874 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6875 | done
|
---|
6876 | LIBOBJS=$ac_libobjs
|
---|
6877 |
|
---|
6878 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6879 |
|
---|
6880 |
|
---|
6881 |
|
---|
6882 | : ${CONFIG_STATUS=./config.status}
|
---|
6883 | ac_clean_files_save=$ac_clean_files
|
---|
6884 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6885 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
6886 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6887 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
6888 | #! $SHELL
|
---|
6889 | # Generated by $as_me.
|
---|
6890 | # Run this file to recreate the current configuration.
|
---|
6891 | # Compiler output produced by configure, useful for debugging
|
---|
6892 | # configure, is in config.log if it exists.
|
---|
6893 |
|
---|
6894 | debug=false
|
---|
6895 | ac_cs_recheck=false
|
---|
6896 | ac_cs_silent=false
|
---|
6897 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6898 | _ACEOF
|
---|
6899 |
|
---|
6900 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
6901 | ## --------------------- ##
|
---|
6902 | ## M4sh Initialization. ##
|
---|
6903 | ## --------------------- ##
|
---|
6904 |
|
---|
6905 | # Be Bourne compatible
|
---|
6906 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
6907 | emulate sh
|
---|
6908 | NULLCMD=:
|
---|
6909 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
6910 | # is contrary to our usage. Disable this feature.
|
---|
6911 | alias -g '${1+"$@"}'='"$@"'
|
---|
6912 | setopt NO_GLOB_SUBST
|
---|
6913 | else
|
---|
6914 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
|
---|
6915 | fi
|
---|
6916 | BIN_SH=xpg4; export BIN_SH # for Tru64
|
---|
6917 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6918 |
|
---|
6919 |
|
---|
6920 | # PATH needs CR
|
---|
6921 | # Avoid depending upon Character Ranges.
|
---|
6922 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
6923 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
6924 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
6925 | as_cr_digits='0123456789'
|
---|
6926 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
6927 |
|
---|
6928 | # The user is always right.
|
---|
6929 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6930 | echo "#! /bin/sh" >conf$$.sh
|
---|
6931 | echo "exit 0" >>conf$$.sh
|
---|
6932 | chmod +x conf$$.sh
|
---|
6933 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
6934 | PATH_SEPARATOR=';'
|
---|
6935 | else
|
---|
6936 | PATH_SEPARATOR=:
|
---|
6937 | fi
|
---|
6938 | rm -f conf$$.sh
|
---|
6939 | fi
|
---|
6940 |
|
---|
6941 | # Support unset when possible.
|
---|
6942 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
6943 | as_unset=unset
|
---|
6944 | else
|
---|
6945 | as_unset=false
|
---|
6946 | fi
|
---|
6947 |
|
---|
6948 |
|
---|
6949 | # IFS
|
---|
6950 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6951 | # there to prevent editors from complaining about space-tab.
|
---|
6952 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6953 | # splitting by setting IFS to empty value.)
|
---|
6954 | as_nl='
|
---|
6955 | '
|
---|
6956 | IFS=" "" $as_nl"
|
---|
6957 |
|
---|
6958 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6959 | case $0 in
|
---|
6960 | *[\\/]* ) as_myself=$0 ;;
|
---|
6961 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6962 | for as_dir in $PATH
|
---|
6963 | do
|
---|
6964 | IFS=$as_save_IFS
|
---|
6965 | test -z "$as_dir" && as_dir=.
|
---|
6966 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6967 | done
|
---|
6968 | IFS=$as_save_IFS
|
---|
6969 |
|
---|
6970 | ;;
|
---|
6971 | esac
|
---|
6972 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6973 | # in which case we are not to be found in the path.
|
---|
6974 | if test "x$as_myself" = x; then
|
---|
6975 | as_myself=$0
|
---|
6976 | fi
|
---|
6977 | if test ! -f "$as_myself"; then
|
---|
6978 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6979 | { (exit 1); exit 1; }
|
---|
6980 | fi
|
---|
6981 |
|
---|
6982 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
6983 | for as_var in ENV MAIL MAILPATH
|
---|
6984 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
6985 | done
|
---|
6986 | PS1='$ '
|
---|
6987 | PS2='> '
|
---|
6988 | PS4='+ '
|
---|
6989 |
|
---|
6990 | # NLS nuisances.
|
---|
6991 | for as_var in \
|
---|
6992 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
6993 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
6994 | LC_TELEPHONE LC_TIME
|
---|
6995 | do
|
---|
6996 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
6997 | eval $as_var=C; export $as_var
|
---|
6998 | else
|
---|
6999 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
7000 | fi
|
---|
7001 | done
|
---|
7002 |
|
---|
7003 | # Required to use basename.
|
---|
7004 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
7005 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
7006 | as_expr=expr
|
---|
7007 | else
|
---|
7008 | as_expr=false
|
---|
7009 | fi
|
---|
7010 |
|
---|
7011 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
7012 | as_basename=basename
|
---|
7013 | else
|
---|
7014 | as_basename=false
|
---|
7015 | fi
|
---|
7016 |
|
---|
7017 |
|
---|
7018 | # Name of the executable.
|
---|
7019 | as_me=`$as_basename -- "$0" ||
|
---|
7020 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7021 | X"$0" : 'X\(//\)$' \| \
|
---|
7022 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7023 | echo X/"$0" |
|
---|
7024 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
7025 | s//\1/
|
---|
7026 | q
|
---|
7027 | }
|
---|
7028 | /^X\/\(\/\/\)$/{
|
---|
7029 | s//\1/
|
---|
7030 | q
|
---|
7031 | }
|
---|
7032 | /^X\/\(\/\).*/{
|
---|
7033 | s//\1/
|
---|
7034 | q
|
---|
7035 | }
|
---|
7036 | s/.*/./; q'`
|
---|
7037 |
|
---|
7038 | # CDPATH.
|
---|
7039 | $as_unset CDPATH
|
---|
7040 |
|
---|
7041 |
|
---|
7042 |
|
---|
7043 | as_lineno_1=$LINENO
|
---|
7044 | as_lineno_2=$LINENO
|
---|
7045 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7046 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
7047 |
|
---|
7048 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
7049 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
7050 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
7051 | # does the real work. The second script uses 'N' to pair each
|
---|
7052 | # line-number line with the line containing $LINENO, and appends
|
---|
7053 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
7054 | # case at line end.
|
---|
7055 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
7056 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
7057 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
7058 | sed -n '
|
---|
7059 | p
|
---|
7060 | /[$]LINENO/=
|
---|
7061 | ' <$as_myself |
|
---|
7062 | sed '
|
---|
7063 | s/[$]LINENO.*/&-/
|
---|
7064 | t lineno
|
---|
7065 | b
|
---|
7066 | :lineno
|
---|
7067 | N
|
---|
7068 | :loop
|
---|
7069 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
7070 | t loop
|
---|
7071 | s/-\n.*//
|
---|
7072 | ' >$as_me.lineno &&
|
---|
7073 | chmod +x "$as_me.lineno" ||
|
---|
7074 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
7075 | { (exit 1); exit 1; }; }
|
---|
7076 |
|
---|
7077 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
7078 | # (the dirname of $[0] is not the place where we might find the
|
---|
7079 | # original and so on. Autoconf is especially sensitive to this).
|
---|
7080 | . "./$as_me.lineno"
|
---|
7081 | # Exit status is that of the last command.
|
---|
7082 | exit
|
---|
7083 | }
|
---|
7084 |
|
---|
7085 |
|
---|
7086 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
7087 | as_dirname=dirname
|
---|
7088 | else
|
---|
7089 | as_dirname=false
|
---|
7090 | fi
|
---|
7091 |
|
---|
7092 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7093 | case `echo -n x` in
|
---|
7094 | -n*)
|
---|
7095 | case `echo 'x\c'` in
|
---|
7096 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7097 | *) ECHO_C='\c';;
|
---|
7098 | esac;;
|
---|
7099 | *)
|
---|
7100 | ECHO_N='-n';;
|
---|
7101 | esac
|
---|
7102 |
|
---|
7103 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
7104 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
7105 | as_expr=expr
|
---|
7106 | else
|
---|
7107 | as_expr=false
|
---|
7108 | fi
|
---|
7109 |
|
---|
7110 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7111 | if test -d conf$$.dir; then
|
---|
7112 | rm -f conf$$.dir/conf$$.file
|
---|
7113 | else
|
---|
7114 | rm -f conf$$.dir
|
---|
7115 | mkdir conf$$.dir
|
---|
7116 | fi
|
---|
7117 | echo >conf$$.file
|
---|
7118 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7119 | as_ln_s='ln -s'
|
---|
7120 | # ... but there are two gotchas:
|
---|
7121 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7122 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7123 | # In both cases, we have to default to `cp -p'.
|
---|
7124 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7125 | as_ln_s='cp -p'
|
---|
7126 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7127 | as_ln_s=ln
|
---|
7128 | else
|
---|
7129 | as_ln_s='cp -p'
|
---|
7130 | fi
|
---|
7131 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7132 | rmdir conf$$.dir 2>/dev/null
|
---|
7133 |
|
---|
7134 | if mkdir -p . 2>/dev/null; then
|
---|
7135 | as_mkdir_p=:
|
---|
7136 | else
|
---|
7137 | test -d ./-p && rmdir ./-p
|
---|
7138 | as_mkdir_p=false
|
---|
7139 | fi
|
---|
7140 |
|
---|
7141 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as
|
---|
7142 | # systems may use methods other than mode bits to determine executability.
|
---|
7143 | cat >conf$$.file <<_ASEOF
|
---|
7144 | #! /bin/sh
|
---|
7145 | exit 0
|
---|
7146 | _ASEOF
|
---|
7147 | chmod +x conf$$.file
|
---|
7148 | if test -x conf$$.file >/dev/null 2>&1; then
|
---|
7149 | as_executable_p="test -x"
|
---|
7150 | else
|
---|
7151 | as_executable_p=:
|
---|
7152 | fi
|
---|
7153 | rm -f conf$$.file
|
---|
7154 |
|
---|
7155 | # Sed expression to map a string onto a valid CPP name.
|
---|
7156 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7157 |
|
---|
7158 | # Sed expression to map a string onto a valid variable name.
|
---|
7159 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7160 |
|
---|
7161 |
|
---|
7162 | exec 6>&1
|
---|
7163 |
|
---|
7164 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
7165 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7166 | # values after options handling.
|
---|
7167 | ac_log="
|
---|
7168 | This file was extended by $as_me, which was
|
---|
7169 | generated by GNU Autoconf 2.60. Invocation command line was
|
---|
7170 |
|
---|
7171 | CONFIG_FILES = $CONFIG_FILES
|
---|
7172 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7173 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7174 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7175 | $ $0 $@
|
---|
7176 |
|
---|
7177 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7178 | "
|
---|
7179 |
|
---|
7180 | _ACEOF
|
---|
7181 |
|
---|
7182 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7183 | # Files that config.status was made for.
|
---|
7184 | config_files="$ac_config_files"
|
---|
7185 | config_headers="$ac_config_headers"
|
---|
7186 |
|
---|
7187 | _ACEOF
|
---|
7188 |
|
---|
7189 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7190 | ac_cs_usage="\
|
---|
7191 | \`$as_me' instantiates files from templates according to the
|
---|
7192 | current configuration.
|
---|
7193 |
|
---|
7194 | Usage: $0 [OPTIONS] [FILE]...
|
---|
7195 |
|
---|
7196 | -h, --help print this help, then exit
|
---|
7197 | -V, --version print version number, then exit
|
---|
7198 | -q, --quiet do not print progress messages
|
---|
7199 | -d, --debug don't remove temporary files
|
---|
7200 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7201 | --file=FILE[:TEMPLATE]
|
---|
7202 | instantiate the configuration file FILE
|
---|
7203 | --header=FILE[:TEMPLATE]
|
---|
7204 | instantiate the configuration header FILE
|
---|
7205 |
|
---|
7206 | Configuration files:
|
---|
7207 | $config_files
|
---|
7208 |
|
---|
7209 | Configuration headers:
|
---|
7210 | $config_headers
|
---|
7211 |
|
---|
7212 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
7213 |
|
---|
7214 | _ACEOF
|
---|
7215 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7216 | ac_cs_version="\\
|
---|
7217 | config.status
|
---|
7218 | configured by $0, generated by GNU Autoconf 2.60,
|
---|
7219 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
7220 |
|
---|
7221 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
7222 | This config.status script is free software; the Free Software Foundation
|
---|
7223 | gives unlimited permission to copy, distribute and modify it."
|
---|
7224 |
|
---|
7225 | ac_pwd='$ac_pwd'
|
---|
7226 | srcdir='$srcdir'
|
---|
7227 | INSTALL='$INSTALL'
|
---|
7228 | _ACEOF
|
---|
7229 |
|
---|
7230 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7231 | # If no file are specified by the user, then we need to provide default
|
---|
7232 | # value. By we need to know if files were specified by the user.
|
---|
7233 | ac_need_defaults=:
|
---|
7234 | while test $# != 0
|
---|
7235 | do
|
---|
7236 | case $1 in
|
---|
7237 | --*=*)
|
---|
7238 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7239 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7240 | ac_shift=:
|
---|
7241 | ;;
|
---|
7242 | *)
|
---|
7243 | ac_option=$1
|
---|
7244 | ac_optarg=$2
|
---|
7245 | ac_shift=shift
|
---|
7246 | ;;
|
---|
7247 | esac
|
---|
7248 |
|
---|
7249 | case $ac_option in
|
---|
7250 | # Handling of the options.
|
---|
7251 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7252 | ac_cs_recheck=: ;;
|
---|
7253 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7254 | echo "$ac_cs_version"; exit ;;
|
---|
7255 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7256 | debug=: ;;
|
---|
7257 | --file | --fil | --fi | --f )
|
---|
7258 | $ac_shift
|
---|
7259 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
7260 | ac_need_defaults=false;;
|
---|
7261 | --header | --heade | --head | --hea )
|
---|
7262 | $ac_shift
|
---|
7263 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
7264 | ac_need_defaults=false;;
|
---|
7265 | --he | --h)
|
---|
7266 | # Conflict between --help and --header
|
---|
7267 | { echo "$as_me: error: ambiguous option: $1
|
---|
7268 | Try \`$0 --help' for more information." >&2
|
---|
7269 | { (exit 1); exit 1; }; };;
|
---|
7270 | --help | --hel | -h )
|
---|
7271 | echo "$ac_cs_usage"; exit ;;
|
---|
7272 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7273 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7274 | ac_cs_silent=: ;;
|
---|
7275 |
|
---|
7276 | # This is an error.
|
---|
7277 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
7278 | Try \`$0 --help' for more information." >&2
|
---|
7279 | { (exit 1); exit 1; }; } ;;
|
---|
7280 |
|
---|
7281 | *) ac_config_targets="$ac_config_targets $1"
|
---|
7282 | ac_need_defaults=false ;;
|
---|
7283 |
|
---|
7284 | esac
|
---|
7285 | shift
|
---|
7286 | done
|
---|
7287 |
|
---|
7288 | ac_configure_extra_args=
|
---|
7289 |
|
---|
7290 | if $ac_cs_silent; then
|
---|
7291 | exec 6>/dev/null
|
---|
7292 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7293 | fi
|
---|
7294 |
|
---|
7295 | _ACEOF
|
---|
7296 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7297 | if \$ac_cs_recheck; then
|
---|
7298 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
7299 | CONFIG_SHELL=$SHELL
|
---|
7300 | export CONFIG_SHELL
|
---|
7301 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7302 | fi
|
---|
7303 |
|
---|
7304 | _ACEOF
|
---|
7305 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7306 | exec 5>>config.log
|
---|
7307 | {
|
---|
7308 | echo
|
---|
7309 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7310 | ## Running $as_me. ##
|
---|
7311 | _ASBOX
|
---|
7312 | echo "$ac_log"
|
---|
7313 | } >&5
|
---|
7314 |
|
---|
7315 | _ACEOF
|
---|
7316 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7317 | _ACEOF
|
---|
7318 |
|
---|
7319 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7320 |
|
---|
7321 | # Handling of arguments.
|
---|
7322 | for ac_config_target in $ac_config_targets
|
---|
7323 | do
|
---|
7324 | case $ac_config_target in
|
---|
7325 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7326 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7327 |
|
---|
7328 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
7329 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
7330 | { (exit 1); exit 1; }; };;
|
---|
7331 | esac
|
---|
7332 | done
|
---|
7333 |
|
---|
7334 |
|
---|
7335 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7336 | # then the envvar interface is used. Set only those that are not.
|
---|
7337 | # We use the long form for the default assignment because of an extremely
|
---|
7338 | # bizarre bug on SunOS 4.1.3.
|
---|
7339 | if $ac_need_defaults; then
|
---|
7340 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7341 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7342 | fi
|
---|
7343 |
|
---|
7344 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7345 | # simply because there is no reason against having it here, and in addition,
|
---|
7346 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7347 | # Hook for its removal unless debugging.
|
---|
7348 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7349 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7350 | $debug ||
|
---|
7351 | {
|
---|
7352 | tmp=
|
---|
7353 | trap 'exit_status=$?
|
---|
7354 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
7355 | ' 0
|
---|
7356 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
7357 | }
|
---|
7358 | # Create a (secure) tmp directory for tmp files.
|
---|
7359 |
|
---|
7360 | {
|
---|
7361 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7362 | test -n "$tmp" && test -d "$tmp"
|
---|
7363 | } ||
|
---|
7364 | {
|
---|
7365 | tmp=./conf$$-$RANDOM
|
---|
7366 | (umask 077 && mkdir "$tmp")
|
---|
7367 | } ||
|
---|
7368 | {
|
---|
7369 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
7370 | { (exit 1); exit 1; }
|
---|
7371 | }
|
---|
7372 |
|
---|
7373 | #
|
---|
7374 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
7375 | #
|
---|
7376 |
|
---|
7377 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
7378 | # This happens for instance when ./config.status config.h
|
---|
7379 | if test -n "$CONFIG_FILES"; then
|
---|
7380 |
|
---|
7381 | _ACEOF
|
---|
7382 |
|
---|
7383 |
|
---|
7384 |
|
---|
7385 | ac_delim='%!_!# '
|
---|
7386 | for ac_last_try in false false false false false :; do
|
---|
7387 | cat >conf$$subs.sed <<_ACEOF
|
---|
7388 | SHELL!$SHELL$ac_delim
|
---|
7389 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
7390 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
7391 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
7392 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
7393 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
7394 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
7395 | exec_prefix!$exec_prefix$ac_delim
|
---|
7396 | prefix!$prefix$ac_delim
|
---|
7397 | program_transform_name!$program_transform_name$ac_delim
|
---|
7398 | bindir!$bindir$ac_delim
|
---|
7399 | sbindir!$sbindir$ac_delim
|
---|
7400 | libexecdir!$libexecdir$ac_delim
|
---|
7401 | datarootdir!$datarootdir$ac_delim
|
---|
7402 | datadir!$datadir$ac_delim
|
---|
7403 | sysconfdir!$sysconfdir$ac_delim
|
---|
7404 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
7405 | localstatedir!$localstatedir$ac_delim
|
---|
7406 | includedir!$includedir$ac_delim
|
---|
7407 | oldincludedir!$oldincludedir$ac_delim
|
---|
7408 | docdir!$docdir$ac_delim
|
---|
7409 | infodir!$infodir$ac_delim
|
---|
7410 | htmldir!$htmldir$ac_delim
|
---|
7411 | dvidir!$dvidir$ac_delim
|
---|
7412 | pdfdir!$pdfdir$ac_delim
|
---|
7413 | psdir!$psdir$ac_delim
|
---|
7414 | libdir!$libdir$ac_delim
|
---|
7415 | localedir!$localedir$ac_delim
|
---|
7416 | mandir!$mandir$ac_delim
|
---|
7417 | DEFS!$DEFS$ac_delim
|
---|
7418 | ECHO_C!$ECHO_C$ac_delim
|
---|
7419 | ECHO_N!$ECHO_N$ac_delim
|
---|
7420 | ECHO_T!$ECHO_T$ac_delim
|
---|
7421 | LIBS!$LIBS$ac_delim
|
---|
7422 | build_alias!$build_alias$ac_delim
|
---|
7423 | host_alias!$host_alias$ac_delim
|
---|
7424 | target_alias!$target_alias$ac_delim
|
---|
7425 | CC!$CC$ac_delim
|
---|
7426 | CFLAGS!$CFLAGS$ac_delim
|
---|
7427 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
7428 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
7429 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
7430 | EXEEXT!$EXEEXT$ac_delim
|
---|
7431 | OBJEXT!$OBJEXT$ac_delim
|
---|
7432 | RANLIB!$RANLIB$ac_delim
|
---|
7433 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
7434 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
7435 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
7436 | CPP!$CPP$ac_delim
|
---|
7437 | GREP!$GREP$ac_delim
|
---|
7438 | EGREP!$EGREP$ac_delim
|
---|
7439 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
7440 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
7441 | _ACEOF
|
---|
7442 |
|
---|
7443 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
|
---|
7444 | break
|
---|
7445 | elif $ac_last_try; then
|
---|
7446 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
7447 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
7448 | { (exit 1); exit 1; }; }
|
---|
7449 | else
|
---|
7450 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7451 | fi
|
---|
7452 | done
|
---|
7453 |
|
---|
7454 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
7455 | if test -n "$ac_eof"; then
|
---|
7456 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
7457 | ac_eof=`expr $ac_eof + 1`
|
---|
7458 | fi
|
---|
7459 |
|
---|
7460 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7461 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
7462 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
---|
7463 | _ACEOF
|
---|
7464 | sed '
|
---|
7465 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
7466 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
7467 | :n
|
---|
7468 | t n
|
---|
7469 | s/'"$ac_delim"'$/,g/; t
|
---|
7470 | s/$/\\/; p
|
---|
7471 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
7472 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
7473 | rm -f conf$$subs.sed
|
---|
7474 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7475 | :end
|
---|
7476 | s/|#_!!_#|//g
|
---|
7477 | CEOF$ac_eof
|
---|
7478 | _ACEOF
|
---|
7479 |
|
---|
7480 |
|
---|
7481 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7482 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7483 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7484 | # (actually we leave an empty line to preserve line numbers).
|
---|
7485 | if test "x$srcdir" = x.; then
|
---|
7486 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7487 | s/:*\$(srcdir):*/:/
|
---|
7488 | s/:*\${srcdir}:*/:/
|
---|
7489 | s/:*@srcdir@:*/:/
|
---|
7490 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
7491 | s/:*$//
|
---|
7492 | s/^[^=]*=[ ]*$//
|
---|
7493 | }'
|
---|
7494 | fi
|
---|
7495 |
|
---|
7496 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7497 | fi # test -n "$CONFIG_FILES"
|
---|
7498 |
|
---|
7499 |
|
---|
7500 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
---|
7501 | do
|
---|
7502 | case $ac_tag in
|
---|
7503 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7504 | esac
|
---|
7505 | case $ac_mode$ac_tag in
|
---|
7506 | :[FHL]*:*);;
|
---|
7507 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
7508 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
7509 | { (exit 1); exit 1; }; };;
|
---|
7510 | :[FH]-) ac_tag=-:-;;
|
---|
7511 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7512 | esac
|
---|
7513 | ac_save_IFS=$IFS
|
---|
7514 | IFS=:
|
---|
7515 | set x $ac_tag
|
---|
7516 | IFS=$ac_save_IFS
|
---|
7517 | shift
|
---|
7518 | ac_file=$1
|
---|
7519 | shift
|
---|
7520 |
|
---|
7521 | case $ac_mode in
|
---|
7522 | :L) ac_source=$1;;
|
---|
7523 | :[FH])
|
---|
7524 | ac_file_inputs=
|
---|
7525 | for ac_f
|
---|
7526 | do
|
---|
7527 | case $ac_f in
|
---|
7528 | -) ac_f="$tmp/stdin";;
|
---|
7529 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7530 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7531 | # because $ac_f cannot contain `:'.
|
---|
7532 | test -f "$ac_f" ||
|
---|
7533 | case $ac_f in
|
---|
7534 | [\\/$]*) false;;
|
---|
7535 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7536 | esac ||
|
---|
7537 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
7538 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
7539 | { (exit 1); exit 1; }; };;
|
---|
7540 | esac
|
---|
7541 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
7542 | done
|
---|
7543 |
|
---|
7544 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7545 | # use $as_me), people would be surprised to read:
|
---|
7546 | # /* config.h. Generated by config.status. */
|
---|
7547 | configure_input="Generated from "`IFS=:
|
---|
7548 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
7549 | if test x"$ac_file" != x-; then
|
---|
7550 | configure_input="$ac_file. $configure_input"
|
---|
7551 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
7552 | echo "$as_me: creating $ac_file" >&6;}
|
---|
7553 | fi
|
---|
7554 |
|
---|
7555 | case $ac_tag in
|
---|
7556 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
7557 | esac
|
---|
7558 | ;;
|
---|
7559 | esac
|
---|
7560 |
|
---|
7561 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7562 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7563 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7564 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7565 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7566 | echo X"$ac_file" |
|
---|
7567 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7568 | s//\1/
|
---|
7569 | q
|
---|
7570 | }
|
---|
7571 | /^X\(\/\/\)[^/].*/{
|
---|
7572 | s//\1/
|
---|
7573 | q
|
---|
7574 | }
|
---|
7575 | /^X\(\/\/\)$/{
|
---|
7576 | s//\1/
|
---|
7577 | q
|
---|
7578 | }
|
---|
7579 | /^X\(\/\).*/{
|
---|
7580 | s//\1/
|
---|
7581 | q
|
---|
7582 | }
|
---|
7583 | s/.*/./; q'`
|
---|
7584 | { as_dir="$ac_dir"
|
---|
7585 | case $as_dir in #(
|
---|
7586 | -*) as_dir=./$as_dir;;
|
---|
7587 | esac
|
---|
7588 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
7589 | as_dirs=
|
---|
7590 | while :; do
|
---|
7591 | case $as_dir in #(
|
---|
7592 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
7593 | *) as_qdir=$as_dir;;
|
---|
7594 | esac
|
---|
7595 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7596 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7597 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7598 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7599 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7600 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7601 | echo X"$as_dir" |
|
---|
7602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7603 | s//\1/
|
---|
7604 | q
|
---|
7605 | }
|
---|
7606 | /^X\(\/\/\)[^/].*/{
|
---|
7607 | s//\1/
|
---|
7608 | q
|
---|
7609 | }
|
---|
7610 | /^X\(\/\/\)$/{
|
---|
7611 | s//\1/
|
---|
7612 | q
|
---|
7613 | }
|
---|
7614 | /^X\(\/\).*/{
|
---|
7615 | s//\1/
|
---|
7616 | q
|
---|
7617 | }
|
---|
7618 | s/.*/./; q'`
|
---|
7619 | test -d "$as_dir" && break
|
---|
7620 | done
|
---|
7621 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7622 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
7623 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
7624 | { (exit 1); exit 1; }; }; }
|
---|
7625 | ac_builddir=.
|
---|
7626 |
|
---|
7627 | case "$ac_dir" in
|
---|
7628 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7629 | *)
|
---|
7630 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
7631 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7632 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
7633 | case $ac_top_builddir_sub in
|
---|
7634 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7635 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7636 | esac ;;
|
---|
7637 | esac
|
---|
7638 | ac_abs_top_builddir=$ac_pwd
|
---|
7639 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7640 | # for backward compatibility:
|
---|
7641 | ac_top_builddir=$ac_top_build_prefix
|
---|
7642 |
|
---|
7643 | case $srcdir in
|
---|
7644 | .) # We are building in place.
|
---|
7645 | ac_srcdir=.
|
---|
7646 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7647 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7648 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7649 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7650 | ac_top_srcdir=$srcdir
|
---|
7651 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7652 | *) # Relative name.
|
---|
7653 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7654 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7655 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7656 | esac
|
---|
7657 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7658 |
|
---|
7659 |
|
---|
7660 | case $ac_mode in
|
---|
7661 | :F)
|
---|
7662 | #
|
---|
7663 | # CONFIG_FILE
|
---|
7664 | #
|
---|
7665 |
|
---|
7666 | case $INSTALL in
|
---|
7667 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7668 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7669 | esac
|
---|
7670 | _ACEOF
|
---|
7671 |
|
---|
7672 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7673 | # If the template does not know about datarootdir, expand it.
|
---|
7674 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7675 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7676 |
|
---|
7677 | case `sed -n '/datarootdir/ {
|
---|
7678 | p
|
---|
7679 | q
|
---|
7680 | }
|
---|
7681 | /@datadir@/p
|
---|
7682 | /@docdir@/p
|
---|
7683 | /@infodir@/p
|
---|
7684 | /@localedir@/p
|
---|
7685 | /@mandir@/p
|
---|
7686 | ' $ac_file_inputs` in
|
---|
7687 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7688 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7689 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7690 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7691 | _ACEOF
|
---|
7692 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7693 | ac_datarootdir_hack='
|
---|
7694 | s&@datadir@&$datadir&g
|
---|
7695 | s&@docdir@&$docdir&g
|
---|
7696 | s&@infodir@&$infodir&g
|
---|
7697 | s&@localedir@&$localedir&g
|
---|
7698 | s&@mandir@&$mandir&g
|
---|
7699 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7700 | esac
|
---|
7701 | _ACEOF
|
---|
7702 |
|
---|
7703 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7704 | # Shell code in configure.ac might set extrasub.
|
---|
7705 | # FIXME: do we really want to maintain this feature?
|
---|
7706 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7707 | sed "$ac_vpsub
|
---|
7708 | $extrasub
|
---|
7709 | _ACEOF
|
---|
7710 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7711 | :t
|
---|
7712 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7713 | s&@configure_input@&$configure_input&;t t
|
---|
7714 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7715 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7716 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7717 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7718 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7719 | s&@builddir@&$ac_builddir&;t t
|
---|
7720 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7721 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7722 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7723 | $ac_datarootdir_hack
|
---|
7724 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
|
---|
7725 |
|
---|
7726 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7727 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
7728 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
7729 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7730 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
7731 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7732 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
7733 |
|
---|
7734 | rm -f "$tmp/stdin"
|
---|
7735 | case $ac_file in
|
---|
7736 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
7737 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
7738 | esac
|
---|
7739 | ;;
|
---|
7740 | :H)
|
---|
7741 | #
|
---|
7742 | # CONFIG_HEADER
|
---|
7743 | #
|
---|
7744 | _ACEOF
|
---|
7745 |
|
---|
7746 | # Transform confdefs.h into a sed script `conftest.defines', that
|
---|
7747 | # substitutes the proper values into config.h.in to produce config.h.
|
---|
7748 | rm -f conftest.defines conftest.tail
|
---|
7749 | # First, append a space to every undef/define line, to ease matching.
|
---|
7750 | echo 's/$/ /' >conftest.defines
|
---|
7751 | # Then, protect against being on the right side of a sed subst, or in
|
---|
7752 | # an unquoted here document, in config.status. If some macros were
|
---|
7753 | # called several times there might be several #defines for the same
|
---|
7754 | # symbol, which is useless. But do not sort them, since the last
|
---|
7755 | # AC_DEFINE must be honored.
|
---|
7756 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7757 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
---|
7758 | # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
---|
7759 | # PARAMS is the parameter list in the macro definition--in most cases, it's
|
---|
7760 | # just an empty string.
|
---|
7761 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
---|
7762 | ac_dB='\\)[ (].*,\\1define\\2'
|
---|
7763 | ac_dC=' '
|
---|
7764 | ac_dD=' ,'
|
---|
7765 |
|
---|
7766 | uniq confdefs.h |
|
---|
7767 | sed -n '
|
---|
7768 | t rset
|
---|
7769 | :rset
|
---|
7770 | s/^[ ]*#[ ]*define[ ][ ]*//
|
---|
7771 | t ok
|
---|
7772 | d
|
---|
7773 | :ok
|
---|
7774 | s/[\\&,]/\\&/g
|
---|
7775 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
---|
7776 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
---|
7777 | ' >>conftest.defines
|
---|
7778 |
|
---|
7779 | # Remove the space that was appended to ease matching.
|
---|
7780 | # Then replace #undef with comments. This is necessary, for
|
---|
7781 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7782 | # on some systems where configure will not decide to define it.
|
---|
7783 | # (The regexp can be short, since the line contains either #define or #undef.)
|
---|
7784 | echo 's/ $//
|
---|
7785 | s,^[ #]*u.*,/* & */,' >>conftest.defines
|
---|
7786 |
|
---|
7787 | # Break up conftest.defines:
|
---|
7788 | ac_max_sed_lines=50
|
---|
7789 |
|
---|
7790 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
---|
7791 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
---|
7792 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
---|
7793 | # et cetera.
|
---|
7794 | ac_in='$ac_file_inputs'
|
---|
7795 | ac_out='"$tmp/out1"'
|
---|
7796 | ac_nxt='"$tmp/out2"'
|
---|
7797 |
|
---|
7798 | while :
|
---|
7799 | do
|
---|
7800 | # Write a here document:
|
---|
7801 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7802 | # First, check the format of the line:
|
---|
7803 | cat >"\$tmp/defines.sed" <<\\CEOF
|
---|
7804 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
---|
7805 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
---|
7806 | b
|
---|
7807 | :def
|
---|
7808 | _ACEOF
|
---|
7809 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
7810 | echo 'CEOF
|
---|
7811 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
---|
7812 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
---|
7813 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
---|
7814 | grep . conftest.tail >/dev/null || break
|
---|
7815 | rm -f conftest.defines
|
---|
7816 | mv conftest.tail conftest.defines
|
---|
7817 | done
|
---|
7818 | rm -f conftest.defines conftest.tail
|
---|
7819 |
|
---|
7820 | echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
---|
7821 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7822 | if test x"$ac_file" != x-; then
|
---|
7823 | echo "/* $configure_input */" >"$tmp/config.h"
|
---|
7824 | cat "$ac_result" >>"$tmp/config.h"
|
---|
7825 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
---|
7826 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
7827 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7828 | else
|
---|
7829 | rm -f $ac_file
|
---|
7830 | mv "$tmp/config.h" $ac_file
|
---|
7831 | fi
|
---|
7832 | else
|
---|
7833 | echo "/* $configure_input */"
|
---|
7834 | cat "$ac_result"
|
---|
7835 | fi
|
---|
7836 | rm -f "$tmp/out12"
|
---|
7837 | ;;
|
---|
7838 |
|
---|
7839 |
|
---|
7840 | esac
|
---|
7841 |
|
---|
7842 | done # for ac_tag
|
---|
7843 |
|
---|
7844 |
|
---|
7845 | { (exit 0); exit 0; }
|
---|
7846 | _ACEOF
|
---|
7847 | chmod +x $CONFIG_STATUS
|
---|
7848 | ac_clean_files=$ac_clean_files_save
|
---|
7849 |
|
---|
7850 |
|
---|
7851 | # configure is writing to config.log, and then calls config.status.
|
---|
7852 | # config.status does its own redirection, appending to config.log.
|
---|
7853 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7854 | # by configure, so config.status won't be able to write to it; its
|
---|
7855 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7856 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7857 | # appended to by config.status. When coming back to configure, we
|
---|
7858 | # need to make the FD available again.
|
---|
7859 | if test "$no_create" != yes; then
|
---|
7860 | ac_cs_success=:
|
---|
7861 | ac_config_status_args=
|
---|
7862 | test "$silent" = yes &&
|
---|
7863 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7864 | exec 5>/dev/null
|
---|
7865 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7866 | exec 5>>config.log
|
---|
7867 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7868 | # would make configure fail if this is the last instruction.
|
---|
7869 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
7870 | fi
|
---|
7871 |
|
---|