1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.63. |
---|
4 | # |
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible |
---|
14 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | setopt NO_GLOB_SUBST |
---|
22 | else |
---|
23 | case `(set -o) 2>/dev/null` in |
---|
24 | *posix*) set -o posix ;; |
---|
25 | esac |
---|
26 | |
---|
27 | fi |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | # PATH needs CR |
---|
33 | # Avoid depending upon Character Ranges. |
---|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
37 | as_cr_digits='0123456789' |
---|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
39 | |
---|
40 | as_nl=' |
---|
41 | ' |
---|
42 | export as_nl |
---|
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
48 | as_echo='printf %s\n' |
---|
49 | as_echo_n='printf %s' |
---|
50 | else |
---|
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
53 | as_echo_n='/usr/ucb/echo -n' |
---|
54 | else |
---|
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
56 | as_echo_n_body='eval |
---|
57 | arg=$1; |
---|
58 | case $arg in |
---|
59 | *"$as_nl"*) |
---|
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
62 | esac; |
---|
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
64 | ' |
---|
65 | export as_echo_n_body |
---|
66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
67 | fi |
---|
68 | export as_echo_body |
---|
69 | as_echo='sh -c $as_echo_body as_echo' |
---|
70 | fi |
---|
71 | |
---|
72 | # The user is always right. |
---|
73 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
74 | PATH_SEPARATOR=: |
---|
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
77 | PATH_SEPARATOR=';' |
---|
78 | } |
---|
79 | fi |
---|
80 | |
---|
81 | # Support unset when possible. |
---|
82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
83 | as_unset=unset |
---|
84 | else |
---|
85 | as_unset=false |
---|
86 | fi |
---|
87 | |
---|
88 | |
---|
89 | # IFS |
---|
90 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
91 | # there to prevent editors from complaining about space-tab. |
---|
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
93 | # splitting by setting IFS to empty value.) |
---|
94 | IFS=" "" $as_nl" |
---|
95 | |
---|
96 | # Find who we are. Look in the path if we contain no directory separator. |
---|
97 | case $0 in |
---|
98 | *[\\/]* ) as_myself=$0 ;; |
---|
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
100 | for as_dir in $PATH |
---|
101 | do |
---|
102 | IFS=$as_save_IFS |
---|
103 | test -z "$as_dir" && as_dir=. |
---|
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
105 | done |
---|
106 | IFS=$as_save_IFS |
---|
107 | |
---|
108 | ;; |
---|
109 | esac |
---|
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
111 | # in which case we are not to be found in the path. |
---|
112 | if test "x$as_myself" = x; then |
---|
113 | as_myself=$0 |
---|
114 | fi |
---|
115 | if test ! -f "$as_myself"; then |
---|
116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
117 | { (exit 1); exit 1; } |
---|
118 | fi |
---|
119 | |
---|
120 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
121 | for as_var in ENV MAIL MAILPATH |
---|
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # Required to use basename. |
---|
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
137 | as_expr=expr |
---|
138 | else |
---|
139 | as_expr=false |
---|
140 | fi |
---|
141 | |
---|
142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
143 | as_basename=basename |
---|
144 | else |
---|
145 | as_basename=false |
---|
146 | fi |
---|
147 | |
---|
148 | |
---|
149 | # Name of the executable. |
---|
150 | as_me=`$as_basename -- "$0" || |
---|
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
152 | X"$0" : 'X\(//\)$' \| \ |
---|
153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
154 | $as_echo X/"$0" | |
---|
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
156 | s//\1/ |
---|
157 | q |
---|
158 | } |
---|
159 | /^X\/\(\/\/\)$/{ |
---|
160 | s//\1/ |
---|
161 | q |
---|
162 | } |
---|
163 | /^X\/\(\/\).*/{ |
---|
164 | s//\1/ |
---|
165 | q |
---|
166 | } |
---|
167 | s/.*/./; q'` |
---|
168 | |
---|
169 | # CDPATH. |
---|
170 | $as_unset CDPATH |
---|
171 | |
---|
172 | |
---|
173 | if test "x$CONFIG_SHELL" = x; then |
---|
174 | if (eval ":") 2>/dev/null; then |
---|
175 | as_have_required=yes |
---|
176 | else |
---|
177 | as_have_required=no |
---|
178 | fi |
---|
179 | |
---|
180 | if test $as_have_required = yes && (eval ": |
---|
181 | (as_func_return () { |
---|
182 | (exit \$1) |
---|
183 | } |
---|
184 | as_func_success () { |
---|
185 | as_func_return 0 |
---|
186 | } |
---|
187 | as_func_failure () { |
---|
188 | as_func_return 1 |
---|
189 | } |
---|
190 | as_func_ret_success () { |
---|
191 | return 0 |
---|
192 | } |
---|
193 | as_func_ret_failure () { |
---|
194 | return 1 |
---|
195 | } |
---|
196 | |
---|
197 | exitcode=0 |
---|
198 | if as_func_success; then |
---|
199 | : |
---|
200 | else |
---|
201 | exitcode=1 |
---|
202 | echo as_func_success failed. |
---|
203 | fi |
---|
204 | |
---|
205 | if as_func_failure; then |
---|
206 | exitcode=1 |
---|
207 | echo as_func_failure succeeded. |
---|
208 | fi |
---|
209 | |
---|
210 | if as_func_ret_success; then |
---|
211 | : |
---|
212 | else |
---|
213 | exitcode=1 |
---|
214 | echo as_func_ret_success failed. |
---|
215 | fi |
---|
216 | |
---|
217 | if as_func_ret_failure; then |
---|
218 | exitcode=1 |
---|
219 | echo as_func_ret_failure succeeded. |
---|
220 | fi |
---|
221 | |
---|
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
223 | : |
---|
224 | else |
---|
225 | exitcode=1 |
---|
226 | echo positional parameters were not saved. |
---|
227 | fi |
---|
228 | |
---|
229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
230 | |
---|
231 | ( |
---|
232 | as_lineno_1=\$LINENO |
---|
233 | as_lineno_2=\$LINENO |
---|
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
236 | ") 2> /dev/null; then |
---|
237 | : |
---|
238 | else |
---|
239 | as_candidate_shells= |
---|
240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
242 | do |
---|
243 | IFS=$as_save_IFS |
---|
244 | test -z "$as_dir" && as_dir=. |
---|
245 | case $as_dir in |
---|
246 | /*) |
---|
247 | for as_base in sh bash ksh sh5; do |
---|
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
249 | done;; |
---|
250 | esac |
---|
251 | done |
---|
252 | IFS=$as_save_IFS |
---|
253 | |
---|
254 | |
---|
255 | for as_shell in $as_candidate_shells $SHELL; do |
---|
256 | # Try only shells that exist, to save several forks. |
---|
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
260 | emulate sh |
---|
261 | NULLCMD=: |
---|
262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
263 | # is contrary to our usage. Disable this feature. |
---|
264 | alias -g '${1+"$@"}'='"$@"' |
---|
265 | setopt NO_GLOB_SUBST |
---|
266 | else |
---|
267 | case `(set -o) 2>/dev/null` in |
---|
268 | *posix*) set -o posix ;; |
---|
269 | esac |
---|
270 | |
---|
271 | fi |
---|
272 | |
---|
273 | |
---|
274 | : |
---|
275 | _ASEOF |
---|
276 | }; then |
---|
277 | CONFIG_SHELL=$as_shell |
---|
278 | as_have_required=yes |
---|
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
281 | emulate sh |
---|
282 | NULLCMD=: |
---|
283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
284 | # is contrary to our usage. Disable this feature. |
---|
285 | alias -g '${1+"$@"}'='"$@"' |
---|
286 | setopt NO_GLOB_SUBST |
---|
287 | else |
---|
288 | case `(set -o) 2>/dev/null` in |
---|
289 | *posix*) set -o posix ;; |
---|
290 | esac |
---|
291 | |
---|
292 | fi |
---|
293 | |
---|
294 | |
---|
295 | : |
---|
296 | (as_func_return () { |
---|
297 | (exit $1) |
---|
298 | } |
---|
299 | as_func_success () { |
---|
300 | as_func_return 0 |
---|
301 | } |
---|
302 | as_func_failure () { |
---|
303 | as_func_return 1 |
---|
304 | } |
---|
305 | as_func_ret_success () { |
---|
306 | return 0 |
---|
307 | } |
---|
308 | as_func_ret_failure () { |
---|
309 | return 1 |
---|
310 | } |
---|
311 | |
---|
312 | exitcode=0 |
---|
313 | if as_func_success; then |
---|
314 | : |
---|
315 | else |
---|
316 | exitcode=1 |
---|
317 | echo as_func_success failed. |
---|
318 | fi |
---|
319 | |
---|
320 | if as_func_failure; then |
---|
321 | exitcode=1 |
---|
322 | echo as_func_failure succeeded. |
---|
323 | fi |
---|
324 | |
---|
325 | if as_func_ret_success; then |
---|
326 | : |
---|
327 | else |
---|
328 | exitcode=1 |
---|
329 | echo as_func_ret_success failed. |
---|
330 | fi |
---|
331 | |
---|
332 | if as_func_ret_failure; then |
---|
333 | exitcode=1 |
---|
334 | echo as_func_ret_failure succeeded. |
---|
335 | fi |
---|
336 | |
---|
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
338 | : |
---|
339 | else |
---|
340 | exitcode=1 |
---|
341 | echo positional parameters were not saved. |
---|
342 | fi |
---|
343 | |
---|
344 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
345 | |
---|
346 | ( |
---|
347 | as_lineno_1=$LINENO |
---|
348 | as_lineno_2=$LINENO |
---|
349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
351 | |
---|
352 | _ASEOF |
---|
353 | }; then |
---|
354 | break |
---|
355 | fi |
---|
356 | |
---|
357 | fi |
---|
358 | |
---|
359 | done |
---|
360 | |
---|
361 | if test "x$CONFIG_SHELL" != x; then |
---|
362 | for as_var in BASH_ENV ENV |
---|
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
364 | done |
---|
365 | export CONFIG_SHELL |
---|
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
367 | fi |
---|
368 | |
---|
369 | |
---|
370 | if test $as_have_required = no; then |
---|
371 | echo This script requires a shell more modern than all the |
---|
372 | echo shells that I found on your system. Please install a |
---|
373 | echo modern shell, or manually run the script under such a |
---|
374 | echo shell if you do have one. |
---|
375 | { (exit 1); exit 1; } |
---|
376 | fi |
---|
377 | |
---|
378 | |
---|
379 | fi |
---|
380 | |
---|
381 | fi |
---|
382 | |
---|
383 | |
---|
384 | |
---|
385 | (eval "as_func_return () { |
---|
386 | (exit \$1) |
---|
387 | } |
---|
388 | as_func_success () { |
---|
389 | as_func_return 0 |
---|
390 | } |
---|
391 | as_func_failure () { |
---|
392 | as_func_return 1 |
---|
393 | } |
---|
394 | as_func_ret_success () { |
---|
395 | return 0 |
---|
396 | } |
---|
397 | as_func_ret_failure () { |
---|
398 | return 1 |
---|
399 | } |
---|
400 | |
---|
401 | exitcode=0 |
---|
402 | if as_func_success; then |
---|
403 | : |
---|
404 | else |
---|
405 | exitcode=1 |
---|
406 | echo as_func_success failed. |
---|
407 | fi |
---|
408 | |
---|
409 | if as_func_failure; then |
---|
410 | exitcode=1 |
---|
411 | echo as_func_failure succeeded. |
---|
412 | fi |
---|
413 | |
---|
414 | if as_func_ret_success; then |
---|
415 | : |
---|
416 | else |
---|
417 | exitcode=1 |
---|
418 | echo as_func_ret_success failed. |
---|
419 | fi |
---|
420 | |
---|
421 | if as_func_ret_failure; then |
---|
422 | exitcode=1 |
---|
423 | echo as_func_ret_failure succeeded. |
---|
424 | fi |
---|
425 | |
---|
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
427 | : |
---|
428 | else |
---|
429 | exitcode=1 |
---|
430 | echo positional parameters were not saved. |
---|
431 | fi |
---|
432 | |
---|
433 | test \$exitcode = 0") || { |
---|
434 | echo No shell found that supports shell functions. |
---|
435 | echo Please tell bug-autoconf@gnu.org about your system, |
---|
436 | echo including any error possibly output before this message. |
---|
437 | echo This can help us improve future autoconf versions. |
---|
438 | echo Configuration will now proceed without shell functions. |
---|
439 | } |
---|
440 | |
---|
441 | |
---|
442 | |
---|
443 | as_lineno_1=$LINENO |
---|
444 | as_lineno_2=$LINENO |
---|
445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
447 | |
---|
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
449 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
450 | # line-number line after each line using $LINENO; the second 'sed' |
---|
451 | # does the real work. The second script uses 'N' to pair each |
---|
452 | # line-number line with the line containing $LINENO, and appends |
---|
453 | # trailing '-' during substitution so that $LINENO is not a special |
---|
454 | # case at line end. |
---|
455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
458 | sed -n ' |
---|
459 | p |
---|
460 | /[$]LINENO/= |
---|
461 | ' <$as_myself | |
---|
462 | sed ' |
---|
463 | s/[$]LINENO.*/&-/ |
---|
464 | t lineno |
---|
465 | b |
---|
466 | :lineno |
---|
467 | N |
---|
468 | :loop |
---|
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
470 | t loop |
---|
471 | s/-\n.*// |
---|
472 | ' >$as_me.lineno && |
---|
473 | chmod +x "$as_me.lineno" || |
---|
474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
475 | { (exit 1); exit 1; }; } |
---|
476 | |
---|
477 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
478 | # (the dirname of $[0] is not the place where we might find the |
---|
479 | # original and so on. Autoconf is especially sensitive to this). |
---|
480 | . "./$as_me.lineno" |
---|
481 | # Exit status is that of the last command. |
---|
482 | exit |
---|
483 | } |
---|
484 | |
---|
485 | |
---|
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
487 | as_dirname=dirname |
---|
488 | else |
---|
489 | as_dirname=false |
---|
490 | fi |
---|
491 | |
---|
492 | ECHO_C= ECHO_N= ECHO_T= |
---|
493 | case `echo -n x` in |
---|
494 | -n*) |
---|
495 | case `echo 'x\c'` in |
---|
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
497 | *) ECHO_C='\c';; |
---|
498 | esac;; |
---|
499 | *) |
---|
500 | ECHO_N='-n';; |
---|
501 | esac |
---|
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
504 | as_expr=expr |
---|
505 | else |
---|
506 | as_expr=false |
---|
507 | fi |
---|
508 | |
---|
509 | rm -f conf$$ conf$$.exe conf$$.file |
---|
510 | if test -d conf$$.dir; then |
---|
511 | rm -f conf$$.dir/conf$$.file |
---|
512 | else |
---|
513 | rm -f conf$$.dir |
---|
514 | mkdir conf$$.dir 2>/dev/null |
---|
515 | fi |
---|
516 | if (echo >conf$$.file) 2>/dev/null; then |
---|
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
518 | as_ln_s='ln -s' |
---|
519 | # ... but there are two gotchas: |
---|
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
522 | # In both cases, we have to default to `cp -p'. |
---|
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
524 | as_ln_s='cp -p' |
---|
525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
526 | as_ln_s=ln |
---|
527 | else |
---|
528 | as_ln_s='cp -p' |
---|
529 | fi |
---|
530 | else |
---|
531 | as_ln_s='cp -p' |
---|
532 | fi |
---|
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
534 | rmdir conf$$.dir 2>/dev/null |
---|
535 | |
---|
536 | if mkdir -p . 2>/dev/null; then |
---|
537 | as_mkdir_p=: |
---|
538 | else |
---|
539 | test -d ./-p && rmdir ./-p |
---|
540 | as_mkdir_p=false |
---|
541 | fi |
---|
542 | |
---|
543 | if test -x / >/dev/null 2>&1; then |
---|
544 | as_test_x='test -x' |
---|
545 | else |
---|
546 | if ls -dL / >/dev/null 2>&1; then |
---|
547 | as_ls_L_option=L |
---|
548 | else |
---|
549 | as_ls_L_option= |
---|
550 | fi |
---|
551 | as_test_x=' |
---|
552 | eval sh -c '\'' |
---|
553 | if test -d "$1"; then |
---|
554 | test -d "$1/."; |
---|
555 | else |
---|
556 | case $1 in |
---|
557 | -*)set "./$1";; |
---|
558 | esac; |
---|
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
560 | ???[sx]*):;;*)false;;esac;fi |
---|
561 | '\'' sh |
---|
562 | ' |
---|
563 | fi |
---|
564 | as_executable_p=$as_test_x |
---|
565 | |
---|
566 | # Sed expression to map a string onto a valid CPP name. |
---|
567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
568 | |
---|
569 | # Sed expression to map a string onto a valid variable name. |
---|
570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
571 | |
---|
572 | |
---|
573 | |
---|
574 | exec 7<&0 </dev/null 6>&1 |
---|
575 | |
---|
576 | # Name of the host. |
---|
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
578 | # so uname gets run too. |
---|
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
580 | |
---|
581 | # |
---|
582 | # Initializations. |
---|
583 | # |
---|
584 | ac_default_prefix=/usr/local |
---|
585 | ac_clean_files= |
---|
586 | ac_config_libobj_dir=. |
---|
587 | LIBOBJS= |
---|
588 | cross_compiling=no |
---|
589 | subdirs= |
---|
590 | MFLAGS= |
---|
591 | MAKEFLAGS= |
---|
592 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
593 | |
---|
594 | # Identity of this package. |
---|
595 | PACKAGE_NAME= |
---|
596 | PACKAGE_TARNAME= |
---|
597 | PACKAGE_VERSION= |
---|
598 | PACKAGE_STRING= |
---|
599 | PACKAGE_BUGREPORT= |
---|
600 | |
---|
601 | ac_unique_file="src/cmd/cmd.h" |
---|
602 | # Factoring default headers for most tests. |
---|
603 | ac_includes_default="\ |
---|
604 | #include <stdio.h> |
---|
605 | #ifdef HAVE_SYS_TYPES_H |
---|
606 | # include <sys/types.h> |
---|
607 | #endif |
---|
608 | #ifdef HAVE_SYS_STAT_H |
---|
609 | # include <sys/stat.h> |
---|
610 | #endif |
---|
611 | #ifdef STDC_HEADERS |
---|
612 | # include <stdlib.h> |
---|
613 | # include <stddef.h> |
---|
614 | #else |
---|
615 | # ifdef HAVE_STDLIB_H |
---|
616 | # include <stdlib.h> |
---|
617 | # endif |
---|
618 | #endif |
---|
619 | #ifdef HAVE_STRING_H |
---|
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
621 | # include <memory.h> |
---|
622 | # endif |
---|
623 | # include <string.h> |
---|
624 | #endif |
---|
625 | #ifdef HAVE_STRINGS_H |
---|
626 | # include <strings.h> |
---|
627 | #endif |
---|
628 | #ifdef HAVE_INTTYPES_H |
---|
629 | # include <inttypes.h> |
---|
630 | #endif |
---|
631 | #ifdef HAVE_STDINT_H |
---|
632 | # include <stdint.h> |
---|
633 | #endif |
---|
634 | #ifdef HAVE_UNISTD_H |
---|
635 | # include <unistd.h> |
---|
636 | #endif" |
---|
637 | |
---|
638 | ac_subst_vars='LTLIBOBJS |
---|
639 | AWK |
---|
640 | LIBOBJS |
---|
641 | LIBDIRS |
---|
642 | EGREP |
---|
643 | GREP |
---|
644 | CPP |
---|
645 | YFLAGS |
---|
646 | YACC |
---|
647 | LEXLIB |
---|
648 | LEX_OUTPUT_ROOT |
---|
649 | LEX |
---|
650 | PLINKER |
---|
651 | LINKER |
---|
652 | INSTALL_DATA |
---|
653 | INSTALL_SCRIPT |
---|
654 | INSTALL_PROGRAM |
---|
655 | OBJEXT |
---|
656 | EXEEXT |
---|
657 | ac_ct_CC |
---|
658 | CPPFLAGS |
---|
659 | LDFLAGS |
---|
660 | CFLAGS |
---|
661 | CC |
---|
662 | target_os |
---|
663 | target_vendor |
---|
664 | target_cpu |
---|
665 | target |
---|
666 | host_os |
---|
667 | host_vendor |
---|
668 | host_cpu |
---|
669 | host |
---|
670 | build_os |
---|
671 | build_vendor |
---|
672 | build_cpu |
---|
673 | build |
---|
674 | RANLIB |
---|
675 | AR |
---|
676 | SHARPSAT |
---|
677 | ZCHAFF |
---|
678 | BDDLIB |
---|
679 | local_srcdir |
---|
680 | vislibdir |
---|
681 | gluincdir |
---|
682 | glulibdir |
---|
683 | target_alias |
---|
684 | host_alias |
---|
685 | build_alias |
---|
686 | LIBS |
---|
687 | ECHO_T |
---|
688 | ECHO_N |
---|
689 | ECHO_C |
---|
690 | DEFS |
---|
691 | mandir |
---|
692 | localedir |
---|
693 | libdir |
---|
694 | psdir |
---|
695 | pdfdir |
---|
696 | dvidir |
---|
697 | htmldir |
---|
698 | infodir |
---|
699 | docdir |
---|
700 | oldincludedir |
---|
701 | includedir |
---|
702 | localstatedir |
---|
703 | sharedstatedir |
---|
704 | sysconfdir |
---|
705 | datadir |
---|
706 | datarootdir |
---|
707 | libexecdir |
---|
708 | sbindir |
---|
709 | bindir |
---|
710 | program_transform_name |
---|
711 | prefix |
---|
712 | exec_prefix |
---|
713 | PACKAGE_BUGREPORT |
---|
714 | PACKAGE_STRING |
---|
715 | PACKAGE_VERSION |
---|
716 | PACKAGE_TARNAME |
---|
717 | PACKAGE_NAME |
---|
718 | PATH_SEPARATOR |
---|
719 | SHELL' |
---|
720 | ac_subst_files='' |
---|
721 | ac_user_opts=' |
---|
722 | enable_option_checking |
---|
723 | with_glu_libdir |
---|
724 | with_glu_incdir |
---|
725 | with_vis_libdir |
---|
726 | with_local_srcdir |
---|
727 | with_bdd |
---|
728 | enable_gcc |
---|
729 | enable_64 |
---|
730 | with_comp_mode |
---|
731 | ' |
---|
732 | ac_precious_vars='build_alias |
---|
733 | host_alias |
---|
734 | target_alias |
---|
735 | CC |
---|
736 | CFLAGS |
---|
737 | LDFLAGS |
---|
738 | LIBS |
---|
739 | CPPFLAGS |
---|
740 | YACC |
---|
741 | YFLAGS |
---|
742 | CPP' |
---|
743 | |
---|
744 | |
---|
745 | # Initialize some variables set by options. |
---|
746 | ac_init_help= |
---|
747 | ac_init_version=false |
---|
748 | ac_unrecognized_opts= |
---|
749 | ac_unrecognized_sep= |
---|
750 | # The variables have the same names as the options, with |
---|
751 | # dashes changed to underlines. |
---|
752 | cache_file=/dev/null |
---|
753 | exec_prefix=NONE |
---|
754 | no_create= |
---|
755 | no_recursion= |
---|
756 | prefix=NONE |
---|
757 | program_prefix=NONE |
---|
758 | program_suffix=NONE |
---|
759 | program_transform_name=s,x,x, |
---|
760 | silent= |
---|
761 | site= |
---|
762 | srcdir= |
---|
763 | verbose= |
---|
764 | x_includes=NONE |
---|
765 | x_libraries=NONE |
---|
766 | |
---|
767 | # Installation directory options. |
---|
768 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
769 | # and all the variables that are supposed to be based on exec_prefix |
---|
770 | # by default will actually change. |
---|
771 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
772 | # (The list follows the same order as the GNU Coding Standards.) |
---|
773 | bindir='${exec_prefix}/bin' |
---|
774 | sbindir='${exec_prefix}/sbin' |
---|
775 | libexecdir='${exec_prefix}/libexec' |
---|
776 | datarootdir='${prefix}/share' |
---|
777 | datadir='${datarootdir}' |
---|
778 | sysconfdir='${prefix}/etc' |
---|
779 | sharedstatedir='${prefix}/com' |
---|
780 | localstatedir='${prefix}/var' |
---|
781 | includedir='${prefix}/include' |
---|
782 | oldincludedir='/usr/include' |
---|
783 | docdir='${datarootdir}/doc/${PACKAGE}' |
---|
784 | infodir='${datarootdir}/info' |
---|
785 | htmldir='${docdir}' |
---|
786 | dvidir='${docdir}' |
---|
787 | pdfdir='${docdir}' |
---|
788 | psdir='${docdir}' |
---|
789 | libdir='${exec_prefix}/lib' |
---|
790 | localedir='${datarootdir}/locale' |
---|
791 | mandir='${datarootdir}/man' |
---|
792 | |
---|
793 | ac_prev= |
---|
794 | ac_dashdash= |
---|
795 | for ac_option |
---|
796 | do |
---|
797 | # If the previous option needs an argument, assign it. |
---|
798 | if test -n "$ac_prev"; then |
---|
799 | eval $ac_prev=\$ac_option |
---|
800 | ac_prev= |
---|
801 | continue |
---|
802 | fi |
---|
803 | |
---|
804 | case $ac_option in |
---|
805 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
806 | *) ac_optarg=yes ;; |
---|
807 | esac |
---|
808 | |
---|
809 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
810 | |
---|
811 | case $ac_dashdash$ac_option in |
---|
812 | --) |
---|
813 | ac_dashdash=yes ;; |
---|
814 | |
---|
815 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
816 | ac_prev=bindir ;; |
---|
817 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
818 | bindir=$ac_optarg ;; |
---|
819 | |
---|
820 | -build | --build | --buil | --bui | --bu) |
---|
821 | ac_prev=build_alias ;; |
---|
822 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
823 | build_alias=$ac_optarg ;; |
---|
824 | |
---|
825 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
826 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
827 | ac_prev=cache_file ;; |
---|
828 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
829 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
830 | cache_file=$ac_optarg ;; |
---|
831 | |
---|
832 | --config-cache | -C) |
---|
833 | cache_file=config.cache ;; |
---|
834 | |
---|
835 | -datadir | --datadir | --datadi | --datad) |
---|
836 | ac_prev=datadir ;; |
---|
837 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
838 | datadir=$ac_optarg ;; |
---|
839 | |
---|
840 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
841 | | --dataroo | --dataro | --datar) |
---|
842 | ac_prev=datarootdir ;; |
---|
843 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
844 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
845 | datarootdir=$ac_optarg ;; |
---|
846 | |
---|
847 | -disable-* | --disable-*) |
---|
848 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
849 | # Reject names that are not valid shell variable names. |
---|
850 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
851 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
---|
852 | { (exit 1); exit 1; }; } |
---|
853 | ac_useropt_orig=$ac_useropt |
---|
854 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
855 | case $ac_user_opts in |
---|
856 | *" |
---|
857 | "enable_$ac_useropt" |
---|
858 | "*) ;; |
---|
859 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
860 | ac_unrecognized_sep=', ';; |
---|
861 | esac |
---|
862 | eval enable_$ac_useropt=no ;; |
---|
863 | |
---|
864 | -docdir | --docdir | --docdi | --doc | --do) |
---|
865 | ac_prev=docdir ;; |
---|
866 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
867 | docdir=$ac_optarg ;; |
---|
868 | |
---|
869 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
870 | ac_prev=dvidir ;; |
---|
871 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
872 | dvidir=$ac_optarg ;; |
---|
873 | |
---|
874 | -enable-* | --enable-*) |
---|
875 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
876 | # Reject names that are not valid shell variable names. |
---|
877 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
878 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
---|
879 | { (exit 1); exit 1; }; } |
---|
880 | ac_useropt_orig=$ac_useropt |
---|
881 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
882 | case $ac_user_opts in |
---|
883 | *" |
---|
884 | "enable_$ac_useropt" |
---|
885 | "*) ;; |
---|
886 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
887 | ac_unrecognized_sep=', ';; |
---|
888 | esac |
---|
889 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
890 | |
---|
891 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
892 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
893 | | --exec | --exe | --ex) |
---|
894 | ac_prev=exec_prefix ;; |
---|
895 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
896 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
897 | | --exec=* | --exe=* | --ex=*) |
---|
898 | exec_prefix=$ac_optarg ;; |
---|
899 | |
---|
900 | -gas | --gas | --ga | --g) |
---|
901 | # Obsolete; use --with-gas. |
---|
902 | with_gas=yes ;; |
---|
903 | |
---|
904 | -help | --help | --hel | --he | -h) |
---|
905 | ac_init_help=long ;; |
---|
906 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
907 | ac_init_help=recursive ;; |
---|
908 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
909 | ac_init_help=short ;; |
---|
910 | |
---|
911 | -host | --host | --hos | --ho) |
---|
912 | ac_prev=host_alias ;; |
---|
913 | -host=* | --host=* | --hos=* | --ho=*) |
---|
914 | host_alias=$ac_optarg ;; |
---|
915 | |
---|
916 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
917 | ac_prev=htmldir ;; |
---|
918 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
919 | | --ht=*) |
---|
920 | htmldir=$ac_optarg ;; |
---|
921 | |
---|
922 | -includedir | --includedir | --includedi | --included | --include \ |
---|
923 | | --includ | --inclu | --incl | --inc) |
---|
924 | ac_prev=includedir ;; |
---|
925 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
926 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
927 | includedir=$ac_optarg ;; |
---|
928 | |
---|
929 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
930 | ac_prev=infodir ;; |
---|
931 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
932 | infodir=$ac_optarg ;; |
---|
933 | |
---|
934 | -libdir | --libdir | --libdi | --libd) |
---|
935 | ac_prev=libdir ;; |
---|
936 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
937 | libdir=$ac_optarg ;; |
---|
938 | |
---|
939 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
940 | | --libexe | --libex | --libe) |
---|
941 | ac_prev=libexecdir ;; |
---|
942 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
943 | | --libexe=* | --libex=* | --libe=*) |
---|
944 | libexecdir=$ac_optarg ;; |
---|
945 | |
---|
946 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
947 | ac_prev=localedir ;; |
---|
948 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
949 | localedir=$ac_optarg ;; |
---|
950 | |
---|
951 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
952 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
953 | ac_prev=localstatedir ;; |
---|
954 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
955 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
956 | localstatedir=$ac_optarg ;; |
---|
957 | |
---|
958 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
959 | ac_prev=mandir ;; |
---|
960 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
961 | mandir=$ac_optarg ;; |
---|
962 | |
---|
963 | -nfp | --nfp | --nf) |
---|
964 | # Obsolete; use --without-fp. |
---|
965 | with_fp=no ;; |
---|
966 | |
---|
967 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
968 | | --no-cr | --no-c | -n) |
---|
969 | no_create=yes ;; |
---|
970 | |
---|
971 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
972 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
973 | no_recursion=yes ;; |
---|
974 | |
---|
975 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
976 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
977 | | --oldin | --oldi | --old | --ol | --o) |
---|
978 | ac_prev=oldincludedir ;; |
---|
979 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
980 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
981 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
982 | oldincludedir=$ac_optarg ;; |
---|
983 | |
---|
984 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
985 | ac_prev=prefix ;; |
---|
986 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
987 | prefix=$ac_optarg ;; |
---|
988 | |
---|
989 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
990 | | --program-pre | --program-pr | --program-p) |
---|
991 | ac_prev=program_prefix ;; |
---|
992 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
993 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
994 | program_prefix=$ac_optarg ;; |
---|
995 | |
---|
996 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
997 | | --program-suf | --program-su | --program-s) |
---|
998 | ac_prev=program_suffix ;; |
---|
999 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1000 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1001 | program_suffix=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -program-transform-name | --program-transform-name \ |
---|
1004 | | --program-transform-nam | --program-transform-na \ |
---|
1005 | | --program-transform-n | --program-transform- \ |
---|
1006 | | --program-transform | --program-transfor \ |
---|
1007 | | --program-transfo | --program-transf \ |
---|
1008 | | --program-trans | --program-tran \ |
---|
1009 | | --progr-tra | --program-tr | --program-t) |
---|
1010 | ac_prev=program_transform_name ;; |
---|
1011 | -program-transform-name=* | --program-transform-name=* \ |
---|
1012 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1013 | | --program-transform-n=* | --program-transform-=* \ |
---|
1014 | | --program-transform=* | --program-transfor=* \ |
---|
1015 | | --program-transfo=* | --program-transf=* \ |
---|
1016 | | --program-trans=* | --program-tran=* \ |
---|
1017 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1018 | program_transform_name=$ac_optarg ;; |
---|
1019 | |
---|
1020 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1021 | ac_prev=pdfdir ;; |
---|
1022 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1023 | pdfdir=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1026 | ac_prev=psdir ;; |
---|
1027 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1028 | psdir=$ac_optarg ;; |
---|
1029 | |
---|
1030 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1031 | | -silent | --silent | --silen | --sile | --sil) |
---|
1032 | silent=yes ;; |
---|
1033 | |
---|
1034 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1035 | ac_prev=sbindir ;; |
---|
1036 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1037 | | --sbi=* | --sb=*) |
---|
1038 | sbindir=$ac_optarg ;; |
---|
1039 | |
---|
1040 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1041 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1042 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1043 | | --sha | --sh) |
---|
1044 | ac_prev=sharedstatedir ;; |
---|
1045 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1046 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1047 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1048 | | --sha=* | --sh=*) |
---|
1049 | sharedstatedir=$ac_optarg ;; |
---|
1050 | |
---|
1051 | -site | --site | --sit) |
---|
1052 | ac_prev=site ;; |
---|
1053 | -site=* | --site=* | --sit=*) |
---|
1054 | site=$ac_optarg ;; |
---|
1055 | |
---|
1056 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1057 | ac_prev=srcdir ;; |
---|
1058 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1059 | srcdir=$ac_optarg ;; |
---|
1060 | |
---|
1061 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1062 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1063 | ac_prev=sysconfdir ;; |
---|
1064 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1065 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1066 | sysconfdir=$ac_optarg ;; |
---|
1067 | |
---|
1068 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1069 | ac_prev=target_alias ;; |
---|
1070 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1071 | target_alias=$ac_optarg ;; |
---|
1072 | |
---|
1073 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1074 | verbose=yes ;; |
---|
1075 | |
---|
1076 | -version | --version | --versio | --versi | --vers | -V) |
---|
1077 | ac_init_version=: ;; |
---|
1078 | |
---|
1079 | -with-* | --with-*) |
---|
1080 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1081 | # Reject names that are not valid shell variable names. |
---|
1082 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1083 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
---|
1084 | { (exit 1); exit 1; }; } |
---|
1085 | ac_useropt_orig=$ac_useropt |
---|
1086 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1087 | case $ac_user_opts in |
---|
1088 | *" |
---|
1089 | "with_$ac_useropt" |
---|
1090 | "*) ;; |
---|
1091 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1092 | ac_unrecognized_sep=', ';; |
---|
1093 | esac |
---|
1094 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1095 | |
---|
1096 | -without-* | --without-*) |
---|
1097 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1098 | # Reject names that are not valid shell variable names. |
---|
1099 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1100 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
---|
1101 | { (exit 1); exit 1; }; } |
---|
1102 | ac_useropt_orig=$ac_useropt |
---|
1103 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1104 | case $ac_user_opts in |
---|
1105 | *" |
---|
1106 | "with_$ac_useropt" |
---|
1107 | "*) ;; |
---|
1108 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1109 | ac_unrecognized_sep=', ';; |
---|
1110 | esac |
---|
1111 | eval with_$ac_useropt=no ;; |
---|
1112 | |
---|
1113 | --x) |
---|
1114 | # Obsolete; use --with-x. |
---|
1115 | with_x=yes ;; |
---|
1116 | |
---|
1117 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1118 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1119 | ac_prev=x_includes ;; |
---|
1120 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1121 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1122 | x_includes=$ac_optarg ;; |
---|
1123 | |
---|
1124 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1125 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1126 | ac_prev=x_libraries ;; |
---|
1127 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1128 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1129 | x_libraries=$ac_optarg ;; |
---|
1130 | |
---|
1131 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
---|
1132 | Try \`$0 --help' for more information." >&2 |
---|
1133 | { (exit 1); exit 1; }; } |
---|
1134 | ;; |
---|
1135 | |
---|
1136 | *=*) |
---|
1137 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1138 | # Reject names that are not valid shell variable names. |
---|
1139 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
1140 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
1141 | { (exit 1); exit 1; }; } |
---|
1142 | eval $ac_envvar=\$ac_optarg |
---|
1143 | export $ac_envvar ;; |
---|
1144 | |
---|
1145 | *) |
---|
1146 | # FIXME: should be removed in autoconf 3.0. |
---|
1147 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1148 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1149 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1150 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1151 | ;; |
---|
1152 | |
---|
1153 | esac |
---|
1154 | done |
---|
1155 | |
---|
1156 | if test -n "$ac_prev"; then |
---|
1157 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1158 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
1159 | { (exit 1); exit 1; }; } |
---|
1160 | fi |
---|
1161 | |
---|
1162 | if test -n "$ac_unrecognized_opts"; then |
---|
1163 | case $enable_option_checking in |
---|
1164 | no) ;; |
---|
1165 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
---|
1166 | { (exit 1); exit 1; }; } ;; |
---|
1167 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1168 | esac |
---|
1169 | fi |
---|
1170 | |
---|
1171 | # Check all directory arguments for consistency. |
---|
1172 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1173 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1174 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1175 | libdir localedir mandir |
---|
1176 | do |
---|
1177 | eval ac_val=\$$ac_var |
---|
1178 | # Remove trailing slashes. |
---|
1179 | case $ac_val in |
---|
1180 | */ ) |
---|
1181 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1182 | eval $ac_var=\$ac_val;; |
---|
1183 | esac |
---|
1184 | # Be sure to have absolute directory names. |
---|
1185 | case $ac_val in |
---|
1186 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1187 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1188 | esac |
---|
1189 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
1190 | { (exit 1); exit 1; }; } |
---|
1191 | done |
---|
1192 | |
---|
1193 | # There might be people who depend on the old broken behavior: `$host' |
---|
1194 | # used to hold the argument of --host etc. |
---|
1195 | # FIXME: To remove some day. |
---|
1196 | build=$build_alias |
---|
1197 | host=$host_alias |
---|
1198 | target=$target_alias |
---|
1199 | |
---|
1200 | # FIXME: To remove some day. |
---|
1201 | if test "x$host_alias" != x; then |
---|
1202 | if test "x$build_alias" = x; then |
---|
1203 | cross_compiling=maybe |
---|
1204 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1205 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1206 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1207 | cross_compiling=yes |
---|
1208 | fi |
---|
1209 | fi |
---|
1210 | |
---|
1211 | ac_tool_prefix= |
---|
1212 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1213 | |
---|
1214 | test "$silent" = yes && exec 6>/dev/null |
---|
1215 | |
---|
1216 | |
---|
1217 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1218 | ac_ls_di=`ls -di .` && |
---|
1219 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1220 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
---|
1221 | { (exit 1); exit 1; }; } |
---|
1222 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1223 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
1224 | { (exit 1); exit 1; }; } |
---|
1225 | |
---|
1226 | |
---|
1227 | # Find the source files, if location was not specified. |
---|
1228 | if test -z "$srcdir"; then |
---|
1229 | ac_srcdir_defaulted=yes |
---|
1230 | # Try the directory containing this script, then the parent directory. |
---|
1231 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1232 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1233 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1234 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1235 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1236 | $as_echo X"$as_myself" | |
---|
1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1238 | s//\1/ |
---|
1239 | q |
---|
1240 | } |
---|
1241 | /^X\(\/\/\)[^/].*/{ |
---|
1242 | s//\1/ |
---|
1243 | q |
---|
1244 | } |
---|
1245 | /^X\(\/\/\)$/{ |
---|
1246 | s//\1/ |
---|
1247 | q |
---|
1248 | } |
---|
1249 | /^X\(\/\).*/{ |
---|
1250 | s//\1/ |
---|
1251 | q |
---|
1252 | } |
---|
1253 | s/.*/./; q'` |
---|
1254 | srcdir=$ac_confdir |
---|
1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1256 | srcdir=.. |
---|
1257 | fi |
---|
1258 | else |
---|
1259 | ac_srcdir_defaulted=no |
---|
1260 | fi |
---|
1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1263 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
1264 | { (exit 1); exit 1; }; } |
---|
1265 | fi |
---|
1266 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1267 | ac_abs_confdir=`( |
---|
1268 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
---|
1269 | { (exit 1); exit 1; }; } |
---|
1270 | pwd)` |
---|
1271 | # When building in place, set srcdir=. |
---|
1272 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1273 | srcdir=. |
---|
1274 | fi |
---|
1275 | # Remove unnecessary trailing slashes from srcdir. |
---|
1276 | # Double slashes in file names in object file debugging info |
---|
1277 | # mess up M-x gdb in Emacs. |
---|
1278 | case $srcdir in |
---|
1279 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1280 | esac |
---|
1281 | for ac_var in $ac_precious_vars; do |
---|
1282 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1283 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1284 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1285 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1286 | done |
---|
1287 | |
---|
1288 | # |
---|
1289 | # Report the --help message. |
---|
1290 | # |
---|
1291 | if test "$ac_init_help" = "long"; then |
---|
1292 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1293 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1294 | cat <<_ACEOF |
---|
1295 | \`configure' configures this package to adapt to many kinds of systems. |
---|
1296 | |
---|
1297 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1298 | |
---|
1299 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1300 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1301 | |
---|
1302 | Defaults for the options are specified in brackets. |
---|
1303 | |
---|
1304 | Configuration: |
---|
1305 | -h, --help display this help and exit |
---|
1306 | --help=short display options specific to this package |
---|
1307 | --help=recursive display the short help of all the included packages |
---|
1308 | -V, --version display version information and exit |
---|
1309 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1310 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1311 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1312 | -n, --no-create do not create output files |
---|
1313 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1314 | |
---|
1315 | Installation directories: |
---|
1316 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1317 | [$ac_default_prefix] |
---|
1318 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1319 | [PREFIX] |
---|
1320 | |
---|
1321 | By default, \`make install' will install all the files in |
---|
1322 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1323 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1324 | for instance \`--prefix=\$HOME'. |
---|
1325 | |
---|
1326 | For better control, use the options below. |
---|
1327 | |
---|
1328 | Fine tuning of the installation directories: |
---|
1329 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1330 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1331 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1332 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1333 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1334 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1335 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1336 | --includedir=DIR C header files [PREFIX/include] |
---|
1337 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1338 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1339 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1340 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1341 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1342 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1343 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
---|
1344 | --htmldir=DIR html documentation [DOCDIR] |
---|
1345 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1346 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1347 | --psdir=DIR ps documentation [DOCDIR] |
---|
1348 | _ACEOF |
---|
1349 | |
---|
1350 | cat <<\_ACEOF |
---|
1351 | |
---|
1352 | System types: |
---|
1353 | --build=BUILD configure for building on BUILD [guessed] |
---|
1354 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1355 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1356 | _ACEOF |
---|
1357 | fi |
---|
1358 | |
---|
1359 | if test -n "$ac_init_help"; then |
---|
1360 | |
---|
1361 | cat <<\_ACEOF |
---|
1362 | |
---|
1363 | Optional Features: |
---|
1364 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1365 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1366 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1367 | --enable-gcc Allow use of gcc if available |
---|
1368 | --enable-64 Use 64-bit pointers on 64-bit Alpha machines |
---|
1369 | |
---|
1370 | Optional Packages: |
---|
1371 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1372 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1373 | --with-glu-libdir=<libdir> Specify directories to search for the GLU library. |
---|
1374 | Expects to find <libdir>/libglu.a |
---|
1375 | --with-glu-incdir=<incdir> Specify directories to search for the GLU headers |
---|
1376 | --with-vis-libdir=<libdir> Specify directories to search for the VIS |
---|
1377 | and headers. Defaults to \".\". |
---|
1378 | Expects to find <libdir>/libvis.a |
---|
1379 | --with-local-srcdir=<srcdir> Specify the root directory to search for |
---|
1380 | source for packages (the PKGS list). |
---|
1381 | Expects to find, e.g., <srcdir>/tbl/tbl.c |
---|
1382 | --with-bdd=<bddPackage> Specify the BDD library to link against. |
---|
1383 | Defaults to --with-bdd=cu. |
---|
1384 | --with-comp-mode=<mode> Specify a special compilation mode: |
---|
1385 | optimize (the default): Produce optimized |
---|
1386 | code, with symbol table information |
---|
1387 | if supported on the platform/compiler, |
---|
1388 | and without asserts. |
---|
1389 | debug: Produce unoptimized code with symbol table |
---|
1390 | information and asserts enabled |
---|
1391 | purify: Unoptimized code linked with purify |
---|
1392 | quantify: Optimized code without asserts |
---|
1393 | linked with quantify |
---|
1394 | |
---|
1395 | Some influential environment variables: |
---|
1396 | CC C compiler command |
---|
1397 | CFLAGS C compiler flags |
---|
1398 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1399 | nonstandard directory <lib dir> |
---|
1400 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1401 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1402 | you have headers in a nonstandard directory <include dir> |
---|
1403 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
---|
1404 | the first program found out of: `bison -y', `byacc', `yacc'. |
---|
1405 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1406 | This script will default YFLAGS to the empty string to avoid a |
---|
1407 | default value of `-d' given by some make applications. |
---|
1408 | CPP C preprocessor |
---|
1409 | |
---|
1410 | Use these variables to override the choices made by `configure' or to help |
---|
1411 | it to find libraries and programs with nonstandard names/locations. |
---|
1412 | |
---|
1413 | _ACEOF |
---|
1414 | ac_status=$? |
---|
1415 | fi |
---|
1416 | |
---|
1417 | if test "$ac_init_help" = "recursive"; then |
---|
1418 | # If there are subdirs, report their specific --help. |
---|
1419 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1420 | test -d "$ac_dir" || |
---|
1421 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1422 | continue |
---|
1423 | ac_builddir=. |
---|
1424 | |
---|
1425 | case "$ac_dir" in |
---|
1426 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1427 | *) |
---|
1428 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1429 | # A ".." for each directory in $ac_dir_suffix. |
---|
1430 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1431 | case $ac_top_builddir_sub in |
---|
1432 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1433 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1434 | esac ;; |
---|
1435 | esac |
---|
1436 | ac_abs_top_builddir=$ac_pwd |
---|
1437 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1438 | # for backward compatibility: |
---|
1439 | ac_top_builddir=$ac_top_build_prefix |
---|
1440 | |
---|
1441 | case $srcdir in |
---|
1442 | .) # We are building in place. |
---|
1443 | ac_srcdir=. |
---|
1444 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1445 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1446 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1447 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1448 | ac_top_srcdir=$srcdir |
---|
1449 | ac_abs_top_srcdir=$srcdir ;; |
---|
1450 | *) # Relative name. |
---|
1451 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1452 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1453 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1454 | esac |
---|
1455 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1456 | |
---|
1457 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1458 | # Check for guested configure. |
---|
1459 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1460 | echo && |
---|
1461 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1462 | elif test -f "$ac_srcdir/configure"; then |
---|
1463 | echo && |
---|
1464 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1465 | else |
---|
1466 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1467 | fi || ac_status=$? |
---|
1468 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1469 | done |
---|
1470 | fi |
---|
1471 | |
---|
1472 | test -n "$ac_init_help" && exit $ac_status |
---|
1473 | if $ac_init_version; then |
---|
1474 | cat <<\_ACEOF |
---|
1475 | configure |
---|
1476 | generated by GNU Autoconf 2.63 |
---|
1477 | |
---|
1478 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
1479 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
---|
1480 | This configure script is free software; the Free Software Foundation |
---|
1481 | gives unlimited permission to copy, distribute and modify it. |
---|
1482 | _ACEOF |
---|
1483 | exit |
---|
1484 | fi |
---|
1485 | cat >config.log <<_ACEOF |
---|
1486 | This file contains any messages produced by compilers while |
---|
1487 | running configure, to aid debugging if configure makes a mistake. |
---|
1488 | |
---|
1489 | It was created by $as_me, which was |
---|
1490 | generated by GNU Autoconf 2.63. Invocation command line was |
---|
1491 | |
---|
1492 | $ $0 $@ |
---|
1493 | |
---|
1494 | _ACEOF |
---|
1495 | exec 5>>config.log |
---|
1496 | { |
---|
1497 | cat <<_ASUNAME |
---|
1498 | ## --------- ## |
---|
1499 | ## Platform. ## |
---|
1500 | ## --------- ## |
---|
1501 | |
---|
1502 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1503 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1504 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1505 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1506 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1507 | |
---|
1508 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1509 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1510 | |
---|
1511 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1512 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1513 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1514 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1515 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1516 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1517 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1518 | |
---|
1519 | _ASUNAME |
---|
1520 | |
---|
1521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1522 | for as_dir in $PATH |
---|
1523 | do |
---|
1524 | IFS=$as_save_IFS |
---|
1525 | test -z "$as_dir" && as_dir=. |
---|
1526 | $as_echo "PATH: $as_dir" |
---|
1527 | done |
---|
1528 | IFS=$as_save_IFS |
---|
1529 | |
---|
1530 | } >&5 |
---|
1531 | |
---|
1532 | cat >&5 <<_ACEOF |
---|
1533 | |
---|
1534 | |
---|
1535 | ## ----------- ## |
---|
1536 | ## Core tests. ## |
---|
1537 | ## ----------- ## |
---|
1538 | |
---|
1539 | _ACEOF |
---|
1540 | |
---|
1541 | |
---|
1542 | # Keep a trace of the command line. |
---|
1543 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1544 | # Strip out --silent because we don't want to record it for future runs. |
---|
1545 | # Also quote any args containing shell meta-characters. |
---|
1546 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1547 | ac_configure_args= |
---|
1548 | ac_configure_args0= |
---|
1549 | ac_configure_args1= |
---|
1550 | ac_must_keep_next=false |
---|
1551 | for ac_pass in 1 2 |
---|
1552 | do |
---|
1553 | for ac_arg |
---|
1554 | do |
---|
1555 | case $ac_arg in |
---|
1556 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1557 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1558 | | -silent | --silent | --silen | --sile | --sil) |
---|
1559 | continue ;; |
---|
1560 | *\'*) |
---|
1561 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1562 | esac |
---|
1563 | case $ac_pass in |
---|
1564 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1565 | 2) |
---|
1566 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1567 | if test $ac_must_keep_next = true; then |
---|
1568 | ac_must_keep_next=false # Got value, back to normal. |
---|
1569 | else |
---|
1570 | case $ac_arg in |
---|
1571 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1572 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1573 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1574 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1575 | case "$ac_configure_args0 " in |
---|
1576 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1577 | esac |
---|
1578 | ;; |
---|
1579 | -* ) ac_must_keep_next=true ;; |
---|
1580 | esac |
---|
1581 | fi |
---|
1582 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1583 | ;; |
---|
1584 | esac |
---|
1585 | done |
---|
1586 | done |
---|
1587 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1588 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1589 | |
---|
1590 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1591 | # config.log. We remove comments because anyway the quotes in there |
---|
1592 | # would cause problems or look ugly. |
---|
1593 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1594 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1595 | trap 'exit_status=$? |
---|
1596 | # Save into config.log some information that might help in debugging. |
---|
1597 | { |
---|
1598 | echo |
---|
1599 | |
---|
1600 | cat <<\_ASBOX |
---|
1601 | ## ---------------- ## |
---|
1602 | ## Cache variables. ## |
---|
1603 | ## ---------------- ## |
---|
1604 | _ASBOX |
---|
1605 | echo |
---|
1606 | # The following way of writing the cache mishandles newlines in values, |
---|
1607 | ( |
---|
1608 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1609 | eval ac_val=\$$ac_var |
---|
1610 | case $ac_val in #( |
---|
1611 | *${as_nl}*) |
---|
1612 | case $ac_var in #( |
---|
1613 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1614 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1615 | esac |
---|
1616 | case $ac_var in #( |
---|
1617 | _ | IFS | as_nl) ;; #( |
---|
1618 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1619 | *) $as_unset $ac_var ;; |
---|
1620 | esac ;; |
---|
1621 | esac |
---|
1622 | done |
---|
1623 | (set) 2>&1 | |
---|
1624 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1625 | *${as_nl}ac_space=\ *) |
---|
1626 | sed -n \ |
---|
1627 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1628 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1629 | ;; #( |
---|
1630 | *) |
---|
1631 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1632 | ;; |
---|
1633 | esac | |
---|
1634 | sort |
---|
1635 | ) |
---|
1636 | echo |
---|
1637 | |
---|
1638 | cat <<\_ASBOX |
---|
1639 | ## ----------------- ## |
---|
1640 | ## Output variables. ## |
---|
1641 | ## ----------------- ## |
---|
1642 | _ASBOX |
---|
1643 | echo |
---|
1644 | for ac_var in $ac_subst_vars |
---|
1645 | do |
---|
1646 | eval ac_val=\$$ac_var |
---|
1647 | case $ac_val in |
---|
1648 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1649 | esac |
---|
1650 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1651 | done | sort |
---|
1652 | echo |
---|
1653 | |
---|
1654 | if test -n "$ac_subst_files"; then |
---|
1655 | cat <<\_ASBOX |
---|
1656 | ## ------------------- ## |
---|
1657 | ## File substitutions. ## |
---|
1658 | ## ------------------- ## |
---|
1659 | _ASBOX |
---|
1660 | echo |
---|
1661 | for ac_var in $ac_subst_files |
---|
1662 | do |
---|
1663 | eval ac_val=\$$ac_var |
---|
1664 | case $ac_val in |
---|
1665 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1666 | esac |
---|
1667 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1668 | done | sort |
---|
1669 | echo |
---|
1670 | fi |
---|
1671 | |
---|
1672 | if test -s confdefs.h; then |
---|
1673 | cat <<\_ASBOX |
---|
1674 | ## ----------- ## |
---|
1675 | ## confdefs.h. ## |
---|
1676 | ## ----------- ## |
---|
1677 | _ASBOX |
---|
1678 | echo |
---|
1679 | cat confdefs.h |
---|
1680 | echo |
---|
1681 | fi |
---|
1682 | test "$ac_signal" != 0 && |
---|
1683 | $as_echo "$as_me: caught signal $ac_signal" |
---|
1684 | $as_echo "$as_me: exit $exit_status" |
---|
1685 | } >&5 |
---|
1686 | rm -f core *.core core.conftest.* && |
---|
1687 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1688 | exit $exit_status |
---|
1689 | ' 0 |
---|
1690 | for ac_signal in 1 2 13 15; do |
---|
1691 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1692 | done |
---|
1693 | ac_signal=0 |
---|
1694 | |
---|
1695 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1696 | rm -f -r conftest* confdefs.h |
---|
1697 | |
---|
1698 | # Predefined preprocessor variables. |
---|
1699 | |
---|
1700 | cat >>confdefs.h <<_ACEOF |
---|
1701 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1702 | _ACEOF |
---|
1703 | |
---|
1704 | |
---|
1705 | cat >>confdefs.h <<_ACEOF |
---|
1706 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1707 | _ACEOF |
---|
1708 | |
---|
1709 | |
---|
1710 | cat >>confdefs.h <<_ACEOF |
---|
1711 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1712 | _ACEOF |
---|
1713 | |
---|
1714 | |
---|
1715 | cat >>confdefs.h <<_ACEOF |
---|
1716 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1717 | _ACEOF |
---|
1718 | |
---|
1719 | |
---|
1720 | cat >>confdefs.h <<_ACEOF |
---|
1721 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1722 | _ACEOF |
---|
1723 | |
---|
1724 | |
---|
1725 | # Let the site file select an alternate cache file if it wants to. |
---|
1726 | # Prefer an explicitly selected file to automatically selected ones. |
---|
1727 | ac_site_file1=NONE |
---|
1728 | ac_site_file2=NONE |
---|
1729 | if test -n "$CONFIG_SITE"; then |
---|
1730 | ac_site_file1=$CONFIG_SITE |
---|
1731 | elif test "x$prefix" != xNONE; then |
---|
1732 | ac_site_file1=$prefix/share/config.site |
---|
1733 | ac_site_file2=$prefix/etc/config.site |
---|
1734 | else |
---|
1735 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
1736 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
1737 | fi |
---|
1738 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
1739 | do |
---|
1740 | test "x$ac_site_file" = xNONE && continue |
---|
1741 | if test -r "$ac_site_file"; then |
---|
1742 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1743 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1744 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1745 | . "$ac_site_file" |
---|
1746 | fi |
---|
1747 | done |
---|
1748 | |
---|
1749 | if test -r "$cache_file"; then |
---|
1750 | # Some versions of bash will fail to source /dev/null (special |
---|
1751 | # files actually), so we avoid doing that. |
---|
1752 | if test -f "$cache_file"; then |
---|
1753 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1754 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
1755 | case $cache_file in |
---|
1756 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1757 | *) . "./$cache_file";; |
---|
1758 | esac |
---|
1759 | fi |
---|
1760 | else |
---|
1761 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1762 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
1763 | >$cache_file |
---|
1764 | fi |
---|
1765 | |
---|
1766 | # Check that the precious variables saved in the cache have kept the same |
---|
1767 | # value. |
---|
1768 | ac_cache_corrupted=false |
---|
1769 | for ac_var in $ac_precious_vars; do |
---|
1770 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1771 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1772 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
1773 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
1774 | case $ac_old_set,$ac_new_set in |
---|
1775 | set,) |
---|
1776 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1777 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1778 | ac_cache_corrupted=: ;; |
---|
1779 | ,set) |
---|
1780 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1781 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1782 | ac_cache_corrupted=: ;; |
---|
1783 | ,);; |
---|
1784 | *) |
---|
1785 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1786 | # differences in whitespace do not lead to failure. |
---|
1787 | ac_old_val_w=`echo x $ac_old_val` |
---|
1788 | ac_new_val_w=`echo x $ac_new_val` |
---|
1789 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
1790 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1791 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1792 | ac_cache_corrupted=: |
---|
1793 | else |
---|
1794 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
1795 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
1796 | eval $ac_var=\$ac_old_val |
---|
1797 | fi |
---|
1798 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
---|
1799 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
1800 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
---|
1801 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
1802 | fi;; |
---|
1803 | esac |
---|
1804 | # Pass precious variables to config.status. |
---|
1805 | if test "$ac_new_set" = set; then |
---|
1806 | case $ac_new_val in |
---|
1807 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1808 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1809 | esac |
---|
1810 | case " $ac_configure_args " in |
---|
1811 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1812 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1813 | esac |
---|
1814 | fi |
---|
1815 | done |
---|
1816 | if $ac_cache_corrupted; then |
---|
1817 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
1818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
1819 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1820 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1821 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1822 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1823 | { (exit 1); exit 1; }; } |
---|
1824 | fi |
---|
1825 | |
---|
1826 | |
---|
1827 | |
---|
1828 | |
---|
1829 | |
---|
1830 | |
---|
1831 | |
---|
1832 | |
---|
1833 | |
---|
1834 | |
---|
1835 | |
---|
1836 | |
---|
1837 | |
---|
1838 | |
---|
1839 | |
---|
1840 | |
---|
1841 | |
---|
1842 | ac_ext=c |
---|
1843 | ac_cpp='$CPP $CPPFLAGS' |
---|
1844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1847 | |
---|
1848 | |
---|
1849 | |
---|
1850 | # Look for install.sh, config.guess, and config.sub in the "helpers" dir |
---|
1851 | ac_aux_dir= |
---|
1852 | for ac_dir in helpers "$srcdir"/helpers; do |
---|
1853 | if test -f "$ac_dir/install-sh"; then |
---|
1854 | ac_aux_dir=$ac_dir |
---|
1855 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1856 | break |
---|
1857 | elif test -f "$ac_dir/install.sh"; then |
---|
1858 | ac_aux_dir=$ac_dir |
---|
1859 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1860 | break |
---|
1861 | elif test -f "$ac_dir/shtool"; then |
---|
1862 | ac_aux_dir=$ac_dir |
---|
1863 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1864 | break |
---|
1865 | fi |
---|
1866 | done |
---|
1867 | if test -z "$ac_aux_dir"; then |
---|
1868 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers \"$srcdir\"/helpers" >&5 |
---|
1869 | $as_echo "$as_me: error: cannot find install-sh or install.sh in helpers \"$srcdir\"/helpers" >&2;} |
---|
1870 | { (exit 1); exit 1; }; } |
---|
1871 | fi |
---|
1872 | |
---|
1873 | # These three variables are undocumented and unsupported, |
---|
1874 | # and are intended to be withdrawn in a future Autoconf release. |
---|
1875 | # They can cause serious problems if a builder's source tree is in a directory |
---|
1876 | # whose full name contains unusual characters. |
---|
1877 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
1878 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
1879 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
1880 | |
---|
1881 | |
---|
1882 | |
---|
1883 | #---------------------------------------------------------------------- |
---|
1884 | |
---|
1885 | # Configuration options |
---|
1886 | #---------------------------------------------------------------------- |
---|
1887 | |
---|
1888 | # Give the configurer a chance to set the location of the GLU tree |
---|
1889 | |
---|
1890 | |
---|
1891 | |
---|
1892 | # Check whether --with-glu-libdir was given. |
---|
1893 | if test "${with_glu_libdir+set}" = set; then |
---|
1894 | withval=$with_glu_libdir; glulibdir=$withval |
---|
1895 | else |
---|
1896 | glulibdir="" |
---|
1897 | fi |
---|
1898 | |
---|
1899 | |
---|
1900 | |
---|
1901 | |
---|
1902 | # Check whether --with-glu-incdir was given. |
---|
1903 | if test "${with_glu_incdir+set}" = set; then |
---|
1904 | withval=$with_glu_incdir; gluincdir=$withval |
---|
1905 | else |
---|
1906 | gluincdir="" |
---|
1907 | fi |
---|
1908 | |
---|
1909 | |
---|
1910 | # Give the configurer a chance to set a different location for the VIS |
---|
1911 | # headers and library |
---|
1912 | |
---|
1913 | |
---|
1914 | |
---|
1915 | # Check whether --with-vis-libdir was given. |
---|
1916 | if test "${with_vis_libdir+set}" = set; then |
---|
1917 | withval=$with_vis_libdir; vislibdir=$withval |
---|
1918 | else |
---|
1919 | vislibdir="." |
---|
1920 | fi |
---|
1921 | |
---|
1922 | |
---|
1923 | # Give the configurer a chance to set a different location for the VIS |
---|
1924 | # source. When specified, "srcdir" points to "master" source, and |
---|
1925 | # "local_srcdir" points to the source under local development. |
---|
1926 | |
---|
1927 | |
---|
1928 | |
---|
1929 | # Check whether --with-local-srcdir was given. |
---|
1930 | if test "${with_local_srcdir+set}" = set; then |
---|
1931 | withval=$with_local_srcdir; local_srcdir=$withval |
---|
1932 | else |
---|
1933 | local_srcdir=$srcdir |
---|
1934 | fi |
---|
1935 | |
---|
1936 | |
---|
1937 | # Give the configurer a chance to set the BDD library |
---|
1938 | |
---|
1939 | |
---|
1940 | |
---|
1941 | # Check whether --with-bdd was given. |
---|
1942 | if test "${with_bdd+set}" = set; then |
---|
1943 | withval=$with_bdd; BDDLIB=$withval |
---|
1944 | else |
---|
1945 | BDDLIB=cu |
---|
1946 | fi |
---|
1947 | |
---|
1948 | |
---|
1949 | #---------------------------------------------------------------------- |
---|
1950 | # Checks for programs we need |
---|
1951 | #---------------------------------------------------------------------- |
---|
1952 | # Extract the first word of "zchaff", so it can be a program name with args. |
---|
1953 | set dummy zchaff; ac_word=$2 |
---|
1954 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1955 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
1956 | if test "${ac_cv_path_ZCHAFF+set}" = set; then |
---|
1957 | $as_echo_n "(cached) " >&6 |
---|
1958 | else |
---|
1959 | case $ZCHAFF in |
---|
1960 | [\\/]* | ?:[\\/]*) |
---|
1961 | ac_cv_path_ZCHAFF="$ZCHAFF" # Let the user override the test with a path. |
---|
1962 | ;; |
---|
1963 | *) |
---|
1964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1965 | for as_dir in $PATH |
---|
1966 | do |
---|
1967 | IFS=$as_save_IFS |
---|
1968 | test -z "$as_dir" && as_dir=. |
---|
1969 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
1971 | ac_cv_path_ZCHAFF="$as_dir/$ac_word$ac_exec_ext" |
---|
1972 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1973 | break 2 |
---|
1974 | fi |
---|
1975 | done |
---|
1976 | done |
---|
1977 | IFS=$as_save_IFS |
---|
1978 | |
---|
1979 | ;; |
---|
1980 | esac |
---|
1981 | fi |
---|
1982 | ZCHAFF=$ac_cv_path_ZCHAFF |
---|
1983 | if test -n "$ZCHAFF"; then |
---|
1984 | { $as_echo "$as_me:$LINENO: result: $ZCHAFF" >&5 |
---|
1985 | $as_echo "$ZCHAFF" >&6; } |
---|
1986 | else |
---|
1987 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
1988 | $as_echo "no" >&6; } |
---|
1989 | fi |
---|
1990 | |
---|
1991 | |
---|
1992 | # Extract the first word of "sharpSAT", so it can be a program name with args. |
---|
1993 | set dummy sharpSAT; ac_word=$2 |
---|
1994 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1995 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
1996 | if test "${ac_cv_path_SHARPSAT+set}" = set; then |
---|
1997 | $as_echo_n "(cached) " >&6 |
---|
1998 | else |
---|
1999 | case $SHARPSAT in |
---|
2000 | [\\/]* | ?:[\\/]*) |
---|
2001 | ac_cv_path_SHARPSAT="$SHARPSAT" # Let the user override the test with a path. |
---|
2002 | ;; |
---|
2003 | *) |
---|
2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2005 | for as_dir in $PATH |
---|
2006 | do |
---|
2007 | IFS=$as_save_IFS |
---|
2008 | test -z "$as_dir" && as_dir=. |
---|
2009 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2011 | ac_cv_path_SHARPSAT="$as_dir/$ac_word$ac_exec_ext" |
---|
2012 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2013 | break 2 |
---|
2014 | fi |
---|
2015 | done |
---|
2016 | done |
---|
2017 | IFS=$as_save_IFS |
---|
2018 | |
---|
2019 | ;; |
---|
2020 | esac |
---|
2021 | fi |
---|
2022 | SHARPSAT=$ac_cv_path_SHARPSAT |
---|
2023 | if test -n "$SHARPSAT"; then |
---|
2024 | { $as_echo "$as_me:$LINENO: result: $SHARPSAT" >&5 |
---|
2025 | $as_echo "$SHARPSAT" >&6; } |
---|
2026 | else |
---|
2027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2028 | $as_echo "no" >&6; } |
---|
2029 | fi |
---|
2030 | |
---|
2031 | |
---|
2032 | # Extract the first word of "ar", so it can be a program name with args. |
---|
2033 | set dummy ar; ac_word=$2 |
---|
2034 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2035 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2036 | if test "${ac_cv_path_AR+set}" = set; then |
---|
2037 | $as_echo_n "(cached) " >&6 |
---|
2038 | else |
---|
2039 | case $AR in |
---|
2040 | [\\/]* | ?:[\\/]*) |
---|
2041 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
2042 | ;; |
---|
2043 | *) |
---|
2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2045 | for as_dir in $PATH |
---|
2046 | do |
---|
2047 | IFS=$as_save_IFS |
---|
2048 | test -z "$as_dir" && as_dir=. |
---|
2049 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2051 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
2052 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2053 | break 2 |
---|
2054 | fi |
---|
2055 | done |
---|
2056 | done |
---|
2057 | IFS=$as_save_IFS |
---|
2058 | |
---|
2059 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
2060 | ;; |
---|
2061 | esac |
---|
2062 | fi |
---|
2063 | AR=$ac_cv_path_AR |
---|
2064 | if test -n "$AR"; then |
---|
2065 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
---|
2066 | $as_echo "$AR" >&6; } |
---|
2067 | else |
---|
2068 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2069 | $as_echo "no" >&6; } |
---|
2070 | fi |
---|
2071 | |
---|
2072 | |
---|
2073 | if test -n "$ac_tool_prefix"; then |
---|
2074 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2075 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2076 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2077 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2078 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2079 | $as_echo_n "(cached) " >&6 |
---|
2080 | else |
---|
2081 | if test -n "$RANLIB"; then |
---|
2082 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2083 | else |
---|
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2085 | for as_dir in $PATH |
---|
2086 | do |
---|
2087 | IFS=$as_save_IFS |
---|
2088 | test -z "$as_dir" && as_dir=. |
---|
2089 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2091 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2092 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2093 | break 2 |
---|
2094 | fi |
---|
2095 | done |
---|
2096 | done |
---|
2097 | IFS=$as_save_IFS |
---|
2098 | |
---|
2099 | fi |
---|
2100 | fi |
---|
2101 | RANLIB=$ac_cv_prog_RANLIB |
---|
2102 | if test -n "$RANLIB"; then |
---|
2103 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2104 | $as_echo "$RANLIB" >&6; } |
---|
2105 | else |
---|
2106 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2107 | $as_echo "no" >&6; } |
---|
2108 | fi |
---|
2109 | |
---|
2110 | |
---|
2111 | fi |
---|
2112 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2113 | ac_ct_RANLIB=$RANLIB |
---|
2114 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2115 | set dummy ranlib; ac_word=$2 |
---|
2116 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2117 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2118 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2119 | $as_echo_n "(cached) " >&6 |
---|
2120 | else |
---|
2121 | if test -n "$ac_ct_RANLIB"; then |
---|
2122 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2123 | else |
---|
2124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2125 | for as_dir in $PATH |
---|
2126 | do |
---|
2127 | IFS=$as_save_IFS |
---|
2128 | test -z "$as_dir" && as_dir=. |
---|
2129 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2131 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2132 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2133 | break 2 |
---|
2134 | fi |
---|
2135 | done |
---|
2136 | done |
---|
2137 | IFS=$as_save_IFS |
---|
2138 | |
---|
2139 | fi |
---|
2140 | fi |
---|
2141 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2142 | if test -n "$ac_ct_RANLIB"; then |
---|
2143 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2144 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2145 | else |
---|
2146 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2147 | $as_echo "no" >&6; } |
---|
2148 | fi |
---|
2149 | |
---|
2150 | if test "x$ac_ct_RANLIB" = x; then |
---|
2151 | RANLIB=":" |
---|
2152 | else |
---|
2153 | case $cross_compiling:$ac_tool_warned in |
---|
2154 | yes:) |
---|
2155 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2157 | ac_tool_warned=yes ;; |
---|
2158 | esac |
---|
2159 | RANLIB=$ac_ct_RANLIB |
---|
2160 | fi |
---|
2161 | else |
---|
2162 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2163 | fi |
---|
2164 | |
---|
2165 | |
---|
2166 | # Make sure we can run config.sub. |
---|
2167 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2168 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
---|
2169 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
---|
2170 | { (exit 1); exit 1; }; } |
---|
2171 | |
---|
2172 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
---|
2173 | $as_echo_n "checking build system type... " >&6; } |
---|
2174 | if test "${ac_cv_build+set}" = set; then |
---|
2175 | $as_echo_n "(cached) " >&6 |
---|
2176 | else |
---|
2177 | ac_build_alias=$build_alias |
---|
2178 | test "x$ac_build_alias" = x && |
---|
2179 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2180 | test "x$ac_build_alias" = x && |
---|
2181 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
2182 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
2183 | { (exit 1); exit 1; }; } |
---|
2184 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2185 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
---|
2186 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
---|
2187 | { (exit 1); exit 1; }; } |
---|
2188 | |
---|
2189 | fi |
---|
2190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
2191 | $as_echo "$ac_cv_build" >&6; } |
---|
2192 | case $ac_cv_build in |
---|
2193 | *-*-*) ;; |
---|
2194 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
---|
2195 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
---|
2196 | { (exit 1); exit 1; }; };; |
---|
2197 | esac |
---|
2198 | build=$ac_cv_build |
---|
2199 | ac_save_IFS=$IFS; IFS='-' |
---|
2200 | set x $ac_cv_build |
---|
2201 | shift |
---|
2202 | build_cpu=$1 |
---|
2203 | build_vendor=$2 |
---|
2204 | shift; shift |
---|
2205 | # Remember, the first character of IFS is used to create $*, |
---|
2206 | # except with old shells: |
---|
2207 | build_os=$* |
---|
2208 | IFS=$ac_save_IFS |
---|
2209 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2210 | |
---|
2211 | |
---|
2212 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
---|
2213 | $as_echo_n "checking host system type... " >&6; } |
---|
2214 | if test "${ac_cv_host+set}" = set; then |
---|
2215 | $as_echo_n "(cached) " >&6 |
---|
2216 | else |
---|
2217 | if test "x$host_alias" = x; then |
---|
2218 | ac_cv_host=$ac_cv_build |
---|
2219 | else |
---|
2220 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2221 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
---|
2222 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
---|
2223 | { (exit 1); exit 1; }; } |
---|
2224 | fi |
---|
2225 | |
---|
2226 | fi |
---|
2227 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
2228 | $as_echo "$ac_cv_host" >&6; } |
---|
2229 | case $ac_cv_host in |
---|
2230 | *-*-*) ;; |
---|
2231 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
---|
2232 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
---|
2233 | { (exit 1); exit 1; }; };; |
---|
2234 | esac |
---|
2235 | host=$ac_cv_host |
---|
2236 | ac_save_IFS=$IFS; IFS='-' |
---|
2237 | set x $ac_cv_host |
---|
2238 | shift |
---|
2239 | host_cpu=$1 |
---|
2240 | host_vendor=$2 |
---|
2241 | shift; shift |
---|
2242 | # Remember, the first character of IFS is used to create $*, |
---|
2243 | # except with old shells: |
---|
2244 | host_os=$* |
---|
2245 | IFS=$ac_save_IFS |
---|
2246 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2247 | |
---|
2248 | |
---|
2249 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
---|
2250 | $as_echo_n "checking target system type... " >&6; } |
---|
2251 | if test "${ac_cv_target+set}" = set; then |
---|
2252 | $as_echo_n "(cached) " >&6 |
---|
2253 | else |
---|
2254 | if test "x$target_alias" = x; then |
---|
2255 | ac_cv_target=$ac_cv_host |
---|
2256 | else |
---|
2257 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
2258 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
---|
2259 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
---|
2260 | { (exit 1); exit 1; }; } |
---|
2261 | fi |
---|
2262 | |
---|
2263 | fi |
---|
2264 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
2265 | $as_echo "$ac_cv_target" >&6; } |
---|
2266 | case $ac_cv_target in |
---|
2267 | *-*-*) ;; |
---|
2268 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
---|
2269 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} |
---|
2270 | { (exit 1); exit 1; }; };; |
---|
2271 | esac |
---|
2272 | target=$ac_cv_target |
---|
2273 | ac_save_IFS=$IFS; IFS='-' |
---|
2274 | set x $ac_cv_target |
---|
2275 | shift |
---|
2276 | target_cpu=$1 |
---|
2277 | target_vendor=$2 |
---|
2278 | shift; shift |
---|
2279 | # Remember, the first character of IFS is used to create $*, |
---|
2280 | # except with old shells: |
---|
2281 | target_os=$* |
---|
2282 | IFS=$ac_save_IFS |
---|
2283 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
2284 | |
---|
2285 | |
---|
2286 | # The aliases save the names the user supplied, while $host etc. |
---|
2287 | # will get canonicalized. |
---|
2288 | test -n "$target_alias" && |
---|
2289 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2290 | NONENONEs,x,x, && |
---|
2291 | program_prefix=${target_alias}- |
---|
2292 | |
---|
2293 | |
---|
2294 | # Determine the name of the C compiler we're going to use |
---|
2295 | |
---|
2296 | # Check whether --enable-gcc was given. |
---|
2297 | if test "${enable_gcc+set}" = set; then |
---|
2298 | enableval=$enable_gcc; gcc_ok=$enableval |
---|
2299 | else |
---|
2300 | gcc_ok=no |
---|
2301 | fi |
---|
2302 | |
---|
2303 | |
---|
2304 | # We cannot set CC=g++ directly because many configuration test programs |
---|
2305 | # do not compile with g++. Hence, when the user specifies --enable-gcc=g++, |
---|
2306 | # we set CC=gcc during configuration, and then CC=g++ at the end. |
---|
2307 | # The same applies to icpc and icc. |
---|
2308 | if test "$gcc_ok" != no; then |
---|
2309 | case "$gcc_ok" in |
---|
2310 | yes | g++) |
---|
2311 | CC=gcc ;; |
---|
2312 | icpc) |
---|
2313 | CC=icc ;; |
---|
2314 | *) |
---|
2315 | CC=$gcc_ok |
---|
2316 | esac |
---|
2317 | else |
---|
2318 | if test -z "$CC" ; then |
---|
2319 | # Balakrishna Kumthekar <kumtheka@colorado.edu> |
---|
2320 | # As we do not support cc on RS6000, Cygwin and SunOS. |
---|
2321 | case "$target" in |
---|
2322 | rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*) |
---|
2323 | CC=gcc ;; |
---|
2324 | *) |
---|
2325 | CC=cc ;; |
---|
2326 | esac |
---|
2327 | fi |
---|
2328 | fi |
---|
2329 | ac_ext=c |
---|
2330 | ac_cpp='$CPP $CPPFLAGS' |
---|
2331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2334 | if test -n "$ac_tool_prefix"; then |
---|
2335 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2336 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2337 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2338 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2339 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2340 | $as_echo_n "(cached) " >&6 |
---|
2341 | else |
---|
2342 | if test -n "$CC"; then |
---|
2343 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2344 | else |
---|
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2346 | for as_dir in $PATH |
---|
2347 | do |
---|
2348 | IFS=$as_save_IFS |
---|
2349 | test -z "$as_dir" && as_dir=. |
---|
2350 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2351 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2352 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2353 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2354 | break 2 |
---|
2355 | fi |
---|
2356 | done |
---|
2357 | done |
---|
2358 | IFS=$as_save_IFS |
---|
2359 | |
---|
2360 | fi |
---|
2361 | fi |
---|
2362 | CC=$ac_cv_prog_CC |
---|
2363 | if test -n "$CC"; then |
---|
2364 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2365 | $as_echo "$CC" >&6; } |
---|
2366 | else |
---|
2367 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2368 | $as_echo "no" >&6; } |
---|
2369 | fi |
---|
2370 | |
---|
2371 | |
---|
2372 | fi |
---|
2373 | if test -z "$ac_cv_prog_CC"; then |
---|
2374 | ac_ct_CC=$CC |
---|
2375 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2376 | set dummy gcc; ac_word=$2 |
---|
2377 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2378 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2379 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2380 | $as_echo_n "(cached) " >&6 |
---|
2381 | else |
---|
2382 | if test -n "$ac_ct_CC"; then |
---|
2383 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2384 | else |
---|
2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2386 | for as_dir in $PATH |
---|
2387 | do |
---|
2388 | IFS=$as_save_IFS |
---|
2389 | test -z "$as_dir" && as_dir=. |
---|
2390 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2392 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2393 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2394 | break 2 |
---|
2395 | fi |
---|
2396 | done |
---|
2397 | done |
---|
2398 | IFS=$as_save_IFS |
---|
2399 | |
---|
2400 | fi |
---|
2401 | fi |
---|
2402 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2403 | if test -n "$ac_ct_CC"; then |
---|
2404 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2405 | $as_echo "$ac_ct_CC" >&6; } |
---|
2406 | else |
---|
2407 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2408 | $as_echo "no" >&6; } |
---|
2409 | fi |
---|
2410 | |
---|
2411 | if test "x$ac_ct_CC" = x; then |
---|
2412 | CC="" |
---|
2413 | else |
---|
2414 | case $cross_compiling:$ac_tool_warned in |
---|
2415 | yes:) |
---|
2416 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2417 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2418 | ac_tool_warned=yes ;; |
---|
2419 | esac |
---|
2420 | CC=$ac_ct_CC |
---|
2421 | fi |
---|
2422 | else |
---|
2423 | CC="$ac_cv_prog_CC" |
---|
2424 | fi |
---|
2425 | |
---|
2426 | if test -z "$CC"; then |
---|
2427 | if test -n "$ac_tool_prefix"; then |
---|
2428 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2429 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2430 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2431 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2432 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2433 | $as_echo_n "(cached) " >&6 |
---|
2434 | else |
---|
2435 | if test -n "$CC"; then |
---|
2436 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2437 | else |
---|
2438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2439 | for as_dir in $PATH |
---|
2440 | do |
---|
2441 | IFS=$as_save_IFS |
---|
2442 | test -z "$as_dir" && as_dir=. |
---|
2443 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2445 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2446 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2447 | break 2 |
---|
2448 | fi |
---|
2449 | done |
---|
2450 | done |
---|
2451 | IFS=$as_save_IFS |
---|
2452 | |
---|
2453 | fi |
---|
2454 | fi |
---|
2455 | CC=$ac_cv_prog_CC |
---|
2456 | if test -n "$CC"; then |
---|
2457 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2458 | $as_echo "$CC" >&6; } |
---|
2459 | else |
---|
2460 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2461 | $as_echo "no" >&6; } |
---|
2462 | fi |
---|
2463 | |
---|
2464 | |
---|
2465 | fi |
---|
2466 | fi |
---|
2467 | if test -z "$CC"; then |
---|
2468 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2469 | set dummy cc; ac_word=$2 |
---|
2470 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2471 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2472 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2473 | $as_echo_n "(cached) " >&6 |
---|
2474 | else |
---|
2475 | if test -n "$CC"; then |
---|
2476 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2477 | else |
---|
2478 | ac_prog_rejected=no |
---|
2479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2480 | for as_dir in $PATH |
---|
2481 | do |
---|
2482 | IFS=$as_save_IFS |
---|
2483 | test -z "$as_dir" && as_dir=. |
---|
2484 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2486 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2487 | ac_prog_rejected=yes |
---|
2488 | continue |
---|
2489 | fi |
---|
2490 | ac_cv_prog_CC="cc" |
---|
2491 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2492 | break 2 |
---|
2493 | fi |
---|
2494 | done |
---|
2495 | done |
---|
2496 | IFS=$as_save_IFS |
---|
2497 | |
---|
2498 | if test $ac_prog_rejected = yes; then |
---|
2499 | # We found a bogon in the path, so make sure we never use it. |
---|
2500 | set dummy $ac_cv_prog_CC |
---|
2501 | shift |
---|
2502 | if test $# != 0; then |
---|
2503 | # We chose a different compiler from the bogus one. |
---|
2504 | # However, it has the same basename, so the bogon will be chosen |
---|
2505 | # first if we set CC to just the basename; use the full file name. |
---|
2506 | shift |
---|
2507 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2508 | fi |
---|
2509 | fi |
---|
2510 | fi |
---|
2511 | fi |
---|
2512 | CC=$ac_cv_prog_CC |
---|
2513 | if test -n "$CC"; then |
---|
2514 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2515 | $as_echo "$CC" >&6; } |
---|
2516 | else |
---|
2517 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2518 | $as_echo "no" >&6; } |
---|
2519 | fi |
---|
2520 | |
---|
2521 | |
---|
2522 | fi |
---|
2523 | if test -z "$CC"; then |
---|
2524 | if test -n "$ac_tool_prefix"; then |
---|
2525 | for ac_prog in cl.exe |
---|
2526 | do |
---|
2527 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2528 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2529 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2530 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2531 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2532 | $as_echo_n "(cached) " >&6 |
---|
2533 | else |
---|
2534 | if test -n "$CC"; then |
---|
2535 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2536 | else |
---|
2537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2538 | for as_dir in $PATH |
---|
2539 | do |
---|
2540 | IFS=$as_save_IFS |
---|
2541 | test -z "$as_dir" && as_dir=. |
---|
2542 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2544 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2545 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2546 | break 2 |
---|
2547 | fi |
---|
2548 | done |
---|
2549 | done |
---|
2550 | IFS=$as_save_IFS |
---|
2551 | |
---|
2552 | fi |
---|
2553 | fi |
---|
2554 | CC=$ac_cv_prog_CC |
---|
2555 | if test -n "$CC"; then |
---|
2556 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2557 | $as_echo "$CC" >&6; } |
---|
2558 | else |
---|
2559 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2560 | $as_echo "no" >&6; } |
---|
2561 | fi |
---|
2562 | |
---|
2563 | |
---|
2564 | test -n "$CC" && break |
---|
2565 | done |
---|
2566 | fi |
---|
2567 | if test -z "$CC"; then |
---|
2568 | ac_ct_CC=$CC |
---|
2569 | for ac_prog in cl.exe |
---|
2570 | do |
---|
2571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2572 | set dummy $ac_prog; ac_word=$2 |
---|
2573 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2574 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2575 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2576 | $as_echo_n "(cached) " >&6 |
---|
2577 | else |
---|
2578 | if test -n "$ac_ct_CC"; then |
---|
2579 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2580 | else |
---|
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2582 | for as_dir in $PATH |
---|
2583 | do |
---|
2584 | IFS=$as_save_IFS |
---|
2585 | test -z "$as_dir" && as_dir=. |
---|
2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2588 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2589 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2590 | break 2 |
---|
2591 | fi |
---|
2592 | done |
---|
2593 | done |
---|
2594 | IFS=$as_save_IFS |
---|
2595 | |
---|
2596 | fi |
---|
2597 | fi |
---|
2598 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2599 | if test -n "$ac_ct_CC"; then |
---|
2600 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2601 | $as_echo "$ac_ct_CC" >&6; } |
---|
2602 | else |
---|
2603 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
2604 | $as_echo "no" >&6; } |
---|
2605 | fi |
---|
2606 | |
---|
2607 | |
---|
2608 | test -n "$ac_ct_CC" && break |
---|
2609 | done |
---|
2610 | |
---|
2611 | if test "x$ac_ct_CC" = x; then |
---|
2612 | CC="" |
---|
2613 | else |
---|
2614 | case $cross_compiling:$ac_tool_warned in |
---|
2615 | yes:) |
---|
2616 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2617 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2618 | ac_tool_warned=yes ;; |
---|
2619 | esac |
---|
2620 | CC=$ac_ct_CC |
---|
2621 | fi |
---|
2622 | fi |
---|
2623 | |
---|
2624 | fi |
---|
2625 | |
---|
2626 | |
---|
2627 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2628 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2629 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2630 | See \`config.log' for more details." >&5 |
---|
2631 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2632 | See \`config.log' for more details." >&2;} |
---|
2633 | { (exit 1); exit 1; }; }; } |
---|
2634 | |
---|
2635 | # Provide some information about the compiler. |
---|
2636 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
2637 | set X $ac_compile |
---|
2638 | ac_compiler=$2 |
---|
2639 | { (ac_try="$ac_compiler --version >&5" |
---|
2640 | case "(($ac_try" in |
---|
2641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2642 | *) ac_try_echo=$ac_try;; |
---|
2643 | esac |
---|
2644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2645 | $as_echo "$ac_try_echo") >&5 |
---|
2646 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
2647 | ac_status=$? |
---|
2648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2649 | (exit $ac_status); } |
---|
2650 | { (ac_try="$ac_compiler -v >&5" |
---|
2651 | case "(($ac_try" in |
---|
2652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2653 | *) ac_try_echo=$ac_try;; |
---|
2654 | esac |
---|
2655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2656 | $as_echo "$ac_try_echo") >&5 |
---|
2657 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
2658 | ac_status=$? |
---|
2659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2660 | (exit $ac_status); } |
---|
2661 | { (ac_try="$ac_compiler -V >&5" |
---|
2662 | case "(($ac_try" in |
---|
2663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2664 | *) ac_try_echo=$ac_try;; |
---|
2665 | esac |
---|
2666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2667 | $as_echo "$ac_try_echo") >&5 |
---|
2668 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
2669 | ac_status=$? |
---|
2670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2671 | (exit $ac_status); } |
---|
2672 | |
---|
2673 | cat >conftest.$ac_ext <<_ACEOF |
---|
2674 | /* confdefs.h. */ |
---|
2675 | _ACEOF |
---|
2676 | cat confdefs.h >>conftest.$ac_ext |
---|
2677 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2678 | /* end confdefs.h. */ |
---|
2679 | |
---|
2680 | int |
---|
2681 | main () |
---|
2682 | { |
---|
2683 | |
---|
2684 | ; |
---|
2685 | return 0; |
---|
2686 | } |
---|
2687 | _ACEOF |
---|
2688 | ac_clean_files_save=$ac_clean_files |
---|
2689 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2690 | # Try to create an executable without -o first, disregard a.out. |
---|
2691 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2692 | # of exeext. |
---|
2693 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2694 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2695 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2696 | |
---|
2697 | # The possible output files: |
---|
2698 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2699 | |
---|
2700 | ac_rmfiles= |
---|
2701 | for ac_file in $ac_files |
---|
2702 | do |
---|
2703 | case $ac_file in |
---|
2704 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2705 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2706 | esac |
---|
2707 | done |
---|
2708 | rm -f $ac_rmfiles |
---|
2709 | |
---|
2710 | if { (ac_try="$ac_link_default" |
---|
2711 | case "(($ac_try" in |
---|
2712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2713 | *) ac_try_echo=$ac_try;; |
---|
2714 | esac |
---|
2715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2716 | $as_echo "$ac_try_echo") >&5 |
---|
2717 | (eval "$ac_link_default") 2>&5 |
---|
2718 | ac_status=$? |
---|
2719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2720 | (exit $ac_status); }; then |
---|
2721 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2722 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2723 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2724 | # so that the user can short-circuit this test for compilers unknown to |
---|
2725 | # Autoconf. |
---|
2726 | for ac_file in $ac_files '' |
---|
2727 | do |
---|
2728 | test -f "$ac_file" || continue |
---|
2729 | case $ac_file in |
---|
2730 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2731 | ;; |
---|
2732 | [ab].out ) |
---|
2733 | # We found the default executable, but exeext='' is most |
---|
2734 | # certainly right. |
---|
2735 | break;; |
---|
2736 | *.* ) |
---|
2737 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2738 | then :; else |
---|
2739 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2740 | fi |
---|
2741 | # We set ac_cv_exeext here because the later test for it is not |
---|
2742 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2743 | # argument, so we may need to know it at that point already. |
---|
2744 | # Even if this section looks crufty: it has the advantage of |
---|
2745 | # actually working. |
---|
2746 | break;; |
---|
2747 | * ) |
---|
2748 | break;; |
---|
2749 | esac |
---|
2750 | done |
---|
2751 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2752 | |
---|
2753 | else |
---|
2754 | ac_file='' |
---|
2755 | fi |
---|
2756 | |
---|
2757 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2758 | $as_echo "$ac_file" >&6; } |
---|
2759 | if test -z "$ac_file"; then |
---|
2760 | $as_echo "$as_me: failed program was:" >&5 |
---|
2761 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2762 | |
---|
2763 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2765 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2766 | See \`config.log' for more details." >&5 |
---|
2767 | $as_echo "$as_me: error: C compiler cannot create executables |
---|
2768 | See \`config.log' for more details." >&2;} |
---|
2769 | { (exit 77); exit 77; }; }; } |
---|
2770 | fi |
---|
2771 | |
---|
2772 | ac_exeext=$ac_cv_exeext |
---|
2773 | |
---|
2774 | # Check that the compiler produces executables we can run. If not, either |
---|
2775 | # the compiler is broken, or we cross compile. |
---|
2776 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2777 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2778 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2779 | # If not cross compiling, check that we can run a simple program. |
---|
2780 | if test "$cross_compiling" != yes; then |
---|
2781 | if { ac_try='./$ac_file' |
---|
2782 | { (case "(($ac_try" in |
---|
2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2784 | *) ac_try_echo=$ac_try;; |
---|
2785 | esac |
---|
2786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2787 | $as_echo "$ac_try_echo") >&5 |
---|
2788 | (eval "$ac_try") 2>&5 |
---|
2789 | ac_status=$? |
---|
2790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2791 | (exit $ac_status); }; }; then |
---|
2792 | cross_compiling=no |
---|
2793 | else |
---|
2794 | if test "$cross_compiling" = maybe; then |
---|
2795 | cross_compiling=yes |
---|
2796 | else |
---|
2797 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2798 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2799 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2800 | If you meant to cross compile, use \`--host'. |
---|
2801 | See \`config.log' for more details." >&5 |
---|
2802 | $as_echo "$as_me: error: cannot run C compiled programs. |
---|
2803 | If you meant to cross compile, use \`--host'. |
---|
2804 | See \`config.log' for more details." >&2;} |
---|
2805 | { (exit 1); exit 1; }; }; } |
---|
2806 | fi |
---|
2807 | fi |
---|
2808 | fi |
---|
2809 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
2810 | $as_echo "yes" >&6; } |
---|
2811 | |
---|
2812 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2813 | ac_clean_files=$ac_clean_files_save |
---|
2814 | # Check that the compiler produces executables we can run. If not, either |
---|
2815 | # the compiler is broken, or we cross compile. |
---|
2816 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2817 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2818 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2819 | $as_echo "$cross_compiling" >&6; } |
---|
2820 | |
---|
2821 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2822 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2823 | if { (ac_try="$ac_link" |
---|
2824 | case "(($ac_try" in |
---|
2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2826 | *) ac_try_echo=$ac_try;; |
---|
2827 | esac |
---|
2828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2829 | $as_echo "$ac_try_echo") >&5 |
---|
2830 | (eval "$ac_link") 2>&5 |
---|
2831 | ac_status=$? |
---|
2832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2833 | (exit $ac_status); }; then |
---|
2834 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2835 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2836 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2837 | # `rm'. |
---|
2838 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2839 | test -f "$ac_file" || continue |
---|
2840 | case $ac_file in |
---|
2841 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2842 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2843 | break;; |
---|
2844 | * ) break;; |
---|
2845 | esac |
---|
2846 | done |
---|
2847 | else |
---|
2848 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2850 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2851 | See \`config.log' for more details." >&5 |
---|
2852 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2853 | See \`config.log' for more details." >&2;} |
---|
2854 | { (exit 1); exit 1; }; }; } |
---|
2855 | fi |
---|
2856 | |
---|
2857 | rm -f conftest$ac_cv_exeext |
---|
2858 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2859 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2860 | |
---|
2861 | rm -f conftest.$ac_ext |
---|
2862 | EXEEXT=$ac_cv_exeext |
---|
2863 | ac_exeext=$EXEEXT |
---|
2864 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2865 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
2866 | if test "${ac_cv_objext+set}" = set; then |
---|
2867 | $as_echo_n "(cached) " >&6 |
---|
2868 | else |
---|
2869 | cat >conftest.$ac_ext <<_ACEOF |
---|
2870 | /* confdefs.h. */ |
---|
2871 | _ACEOF |
---|
2872 | cat confdefs.h >>conftest.$ac_ext |
---|
2873 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2874 | /* end confdefs.h. */ |
---|
2875 | |
---|
2876 | int |
---|
2877 | main () |
---|
2878 | { |
---|
2879 | |
---|
2880 | ; |
---|
2881 | return 0; |
---|
2882 | } |
---|
2883 | _ACEOF |
---|
2884 | rm -f conftest.o conftest.obj |
---|
2885 | if { (ac_try="$ac_compile" |
---|
2886 | case "(($ac_try" in |
---|
2887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2888 | *) ac_try_echo=$ac_try;; |
---|
2889 | esac |
---|
2890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2891 | $as_echo "$ac_try_echo") >&5 |
---|
2892 | (eval "$ac_compile") 2>&5 |
---|
2893 | ac_status=$? |
---|
2894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2895 | (exit $ac_status); }; then |
---|
2896 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2897 | test -f "$ac_file" || continue; |
---|
2898 | case $ac_file in |
---|
2899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
2900 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2901 | break;; |
---|
2902 | esac |
---|
2903 | done |
---|
2904 | else |
---|
2905 | $as_echo "$as_me: failed program was:" >&5 |
---|
2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2907 | |
---|
2908 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
2909 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2910 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2911 | See \`config.log' for more details." >&5 |
---|
2912 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2913 | See \`config.log' for more details." >&2;} |
---|
2914 | { (exit 1); exit 1; }; }; } |
---|
2915 | fi |
---|
2916 | |
---|
2917 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2918 | fi |
---|
2919 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2920 | $as_echo "$ac_cv_objext" >&6; } |
---|
2921 | OBJEXT=$ac_cv_objext |
---|
2922 | ac_objext=$OBJEXT |
---|
2923 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2924 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
2925 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2926 | $as_echo_n "(cached) " >&6 |
---|
2927 | else |
---|
2928 | cat >conftest.$ac_ext <<_ACEOF |
---|
2929 | /* confdefs.h. */ |
---|
2930 | _ACEOF |
---|
2931 | cat confdefs.h >>conftest.$ac_ext |
---|
2932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2933 | /* end confdefs.h. */ |
---|
2934 | |
---|
2935 | int |
---|
2936 | main () |
---|
2937 | { |
---|
2938 | #ifndef __GNUC__ |
---|
2939 | choke me |
---|
2940 | #endif |
---|
2941 | |
---|
2942 | ; |
---|
2943 | return 0; |
---|
2944 | } |
---|
2945 | _ACEOF |
---|
2946 | rm -f conftest.$ac_objext |
---|
2947 | if { (ac_try="$ac_compile" |
---|
2948 | case "(($ac_try" in |
---|
2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2950 | *) ac_try_echo=$ac_try;; |
---|
2951 | esac |
---|
2952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
2953 | $as_echo "$ac_try_echo") >&5 |
---|
2954 | (eval "$ac_compile") 2>conftest.er1 |
---|
2955 | ac_status=$? |
---|
2956 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2957 | rm -f conftest.er1 |
---|
2958 | cat conftest.err >&5 |
---|
2959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2960 | (exit $ac_status); } && { |
---|
2961 | test -z "$ac_c_werror_flag" || |
---|
2962 | test ! -s conftest.err |
---|
2963 | } && test -s conftest.$ac_objext; then |
---|
2964 | ac_compiler_gnu=yes |
---|
2965 | else |
---|
2966 | $as_echo "$as_me: failed program was:" >&5 |
---|
2967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2968 | |
---|
2969 | ac_compiler_gnu=no |
---|
2970 | fi |
---|
2971 | |
---|
2972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2973 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2974 | |
---|
2975 | fi |
---|
2976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2977 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
2978 | if test $ac_compiler_gnu = yes; then |
---|
2979 | GCC=yes |
---|
2980 | else |
---|
2981 | GCC= |
---|
2982 | fi |
---|
2983 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2984 | ac_save_CFLAGS=$CFLAGS |
---|
2985 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2986 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
2987 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2988 | $as_echo_n "(cached) " >&6 |
---|
2989 | else |
---|
2990 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
2991 | ac_c_werror_flag=yes |
---|
2992 | ac_cv_prog_cc_g=no |
---|
2993 | CFLAGS="-g" |
---|
2994 | cat >conftest.$ac_ext <<_ACEOF |
---|
2995 | /* confdefs.h. */ |
---|
2996 | _ACEOF |
---|
2997 | cat confdefs.h >>conftest.$ac_ext |
---|
2998 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2999 | /* end confdefs.h. */ |
---|
3000 | |
---|
3001 | int |
---|
3002 | main () |
---|
3003 | { |
---|
3004 | |
---|
3005 | ; |
---|
3006 | return 0; |
---|
3007 | } |
---|
3008 | _ACEOF |
---|
3009 | rm -f conftest.$ac_objext |
---|
3010 | if { (ac_try="$ac_compile" |
---|
3011 | case "(($ac_try" in |
---|
3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3013 | *) ac_try_echo=$ac_try;; |
---|
3014 | esac |
---|
3015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3016 | $as_echo "$ac_try_echo") >&5 |
---|
3017 | (eval "$ac_compile") 2>conftest.er1 |
---|
3018 | ac_status=$? |
---|
3019 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3020 | rm -f conftest.er1 |
---|
3021 | cat conftest.err >&5 |
---|
3022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3023 | (exit $ac_status); } && { |
---|
3024 | test -z "$ac_c_werror_flag" || |
---|
3025 | test ! -s conftest.err |
---|
3026 | } && test -s conftest.$ac_objext; then |
---|
3027 | ac_cv_prog_cc_g=yes |
---|
3028 | else |
---|
3029 | $as_echo "$as_me: failed program was:" >&5 |
---|
3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3031 | |
---|
3032 | CFLAGS="" |
---|
3033 | cat >conftest.$ac_ext <<_ACEOF |
---|
3034 | /* confdefs.h. */ |
---|
3035 | _ACEOF |
---|
3036 | cat confdefs.h >>conftest.$ac_ext |
---|
3037 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3038 | /* end confdefs.h. */ |
---|
3039 | |
---|
3040 | int |
---|
3041 | main () |
---|
3042 | { |
---|
3043 | |
---|
3044 | ; |
---|
3045 | return 0; |
---|
3046 | } |
---|
3047 | _ACEOF |
---|
3048 | rm -f conftest.$ac_objext |
---|
3049 | if { (ac_try="$ac_compile" |
---|
3050 | case "(($ac_try" in |
---|
3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3052 | *) ac_try_echo=$ac_try;; |
---|
3053 | esac |
---|
3054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3055 | $as_echo "$ac_try_echo") >&5 |
---|
3056 | (eval "$ac_compile") 2>conftest.er1 |
---|
3057 | ac_status=$? |
---|
3058 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3059 | rm -f conftest.er1 |
---|
3060 | cat conftest.err >&5 |
---|
3061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3062 | (exit $ac_status); } && { |
---|
3063 | test -z "$ac_c_werror_flag" || |
---|
3064 | test ! -s conftest.err |
---|
3065 | } && test -s conftest.$ac_objext; then |
---|
3066 | : |
---|
3067 | else |
---|
3068 | $as_echo "$as_me: failed program was:" >&5 |
---|
3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3070 | |
---|
3071 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3072 | CFLAGS="-g" |
---|
3073 | cat >conftest.$ac_ext <<_ACEOF |
---|
3074 | /* confdefs.h. */ |
---|
3075 | _ACEOF |
---|
3076 | cat confdefs.h >>conftest.$ac_ext |
---|
3077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3078 | /* end confdefs.h. */ |
---|
3079 | |
---|
3080 | int |
---|
3081 | main () |
---|
3082 | { |
---|
3083 | |
---|
3084 | ; |
---|
3085 | return 0; |
---|
3086 | } |
---|
3087 | _ACEOF |
---|
3088 | rm -f conftest.$ac_objext |
---|
3089 | if { (ac_try="$ac_compile" |
---|
3090 | case "(($ac_try" in |
---|
3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3092 | *) ac_try_echo=$ac_try;; |
---|
3093 | esac |
---|
3094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3095 | $as_echo "$ac_try_echo") >&5 |
---|
3096 | (eval "$ac_compile") 2>conftest.er1 |
---|
3097 | ac_status=$? |
---|
3098 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3099 | rm -f conftest.er1 |
---|
3100 | cat conftest.err >&5 |
---|
3101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3102 | (exit $ac_status); } && { |
---|
3103 | test -z "$ac_c_werror_flag" || |
---|
3104 | test ! -s conftest.err |
---|
3105 | } && test -s conftest.$ac_objext; then |
---|
3106 | ac_cv_prog_cc_g=yes |
---|
3107 | else |
---|
3108 | $as_echo "$as_me: failed program was:" >&5 |
---|
3109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3110 | |
---|
3111 | |
---|
3112 | fi |
---|
3113 | |
---|
3114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3115 | fi |
---|
3116 | |
---|
3117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3118 | fi |
---|
3119 | |
---|
3120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3121 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3122 | fi |
---|
3123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3124 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3125 | if test "$ac_test_CFLAGS" = set; then |
---|
3126 | CFLAGS=$ac_save_CFLAGS |
---|
3127 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3128 | if test "$GCC" = yes; then |
---|
3129 | CFLAGS="-g -O2" |
---|
3130 | else |
---|
3131 | CFLAGS="-g" |
---|
3132 | fi |
---|
3133 | else |
---|
3134 | if test "$GCC" = yes; then |
---|
3135 | CFLAGS="-O2" |
---|
3136 | else |
---|
3137 | CFLAGS= |
---|
3138 | fi |
---|
3139 | fi |
---|
3140 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
3141 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3142 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
3143 | $as_echo_n "(cached) " >&6 |
---|
3144 | else |
---|
3145 | ac_cv_prog_cc_c89=no |
---|
3146 | ac_save_CC=$CC |
---|
3147 | cat >conftest.$ac_ext <<_ACEOF |
---|
3148 | /* confdefs.h. */ |
---|
3149 | _ACEOF |
---|
3150 | cat confdefs.h >>conftest.$ac_ext |
---|
3151 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3152 | /* end confdefs.h. */ |
---|
3153 | #include <stdarg.h> |
---|
3154 | #include <stdio.h> |
---|
3155 | #include <sys/types.h> |
---|
3156 | #include <sys/stat.h> |
---|
3157 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3158 | struct buf { int x; }; |
---|
3159 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3160 | static char *e (p, i) |
---|
3161 | char **p; |
---|
3162 | int i; |
---|
3163 | { |
---|
3164 | return p[i]; |
---|
3165 | } |
---|
3166 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3167 | { |
---|
3168 | char *s; |
---|
3169 | va_list v; |
---|
3170 | va_start (v,p); |
---|
3171 | s = g (p, va_arg (v,int)); |
---|
3172 | va_end (v); |
---|
3173 | return s; |
---|
3174 | } |
---|
3175 | |
---|
3176 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3177 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3178 | These don't provoke an error unfortunately, instead are silently treated |
---|
3179 | as 'x'. The following induces an error, until -std is added to get |
---|
3180 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3181 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3182 | that's true only with -std. */ |
---|
3183 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3184 | |
---|
3185 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3186 | inside strings and character constants. */ |
---|
3187 | #define FOO(x) 'x' |
---|
3188 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3189 | |
---|
3190 | int test (int i, double x); |
---|
3191 | struct s1 {int (*f) (int a);}; |
---|
3192 | struct s2 {int (*f) (double a);}; |
---|
3193 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3194 | int argc; |
---|
3195 | char **argv; |
---|
3196 | int |
---|
3197 | main () |
---|
3198 | { |
---|
3199 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3200 | ; |
---|
3201 | return 0; |
---|
3202 | } |
---|
3203 | _ACEOF |
---|
3204 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3205 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3206 | do |
---|
3207 | CC="$ac_save_CC $ac_arg" |
---|
3208 | rm -f conftest.$ac_objext |
---|
3209 | if { (ac_try="$ac_compile" |
---|
3210 | case "(($ac_try" in |
---|
3211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3212 | *) ac_try_echo=$ac_try;; |
---|
3213 | esac |
---|
3214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3215 | $as_echo "$ac_try_echo") >&5 |
---|
3216 | (eval "$ac_compile") 2>conftest.er1 |
---|
3217 | ac_status=$? |
---|
3218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3219 | rm -f conftest.er1 |
---|
3220 | cat conftest.err >&5 |
---|
3221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3222 | (exit $ac_status); } && { |
---|
3223 | test -z "$ac_c_werror_flag" || |
---|
3224 | test ! -s conftest.err |
---|
3225 | } && test -s conftest.$ac_objext; then |
---|
3226 | ac_cv_prog_cc_c89=$ac_arg |
---|
3227 | else |
---|
3228 | $as_echo "$as_me: failed program was:" >&5 |
---|
3229 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3230 | |
---|
3231 | |
---|
3232 | fi |
---|
3233 | |
---|
3234 | rm -f core conftest.err conftest.$ac_objext |
---|
3235 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3236 | done |
---|
3237 | rm -f conftest.$ac_ext |
---|
3238 | CC=$ac_save_CC |
---|
3239 | |
---|
3240 | fi |
---|
3241 | # AC_CACHE_VAL |
---|
3242 | case "x$ac_cv_prog_cc_c89" in |
---|
3243 | x) |
---|
3244 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3245 | $as_echo "none needed" >&6; } ;; |
---|
3246 | xno) |
---|
3247 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
3248 | $as_echo "unsupported" >&6; } ;; |
---|
3249 | *) |
---|
3250 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3251 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
3252 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3253 | esac |
---|
3254 | |
---|
3255 | |
---|
3256 | ac_ext=c |
---|
3257 | ac_cpp='$CPP $CPPFLAGS' |
---|
3258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3261 | |
---|
3262 | |
---|
3263 | # Check whether --enable-64 was given. |
---|
3264 | if test "${enable_64+set}" = set; then |
---|
3265 | enableval=$enable_64; use_sixty_four=$enableval |
---|
3266 | else |
---|
3267 | use_sixty_four=no |
---|
3268 | fi |
---|
3269 | |
---|
3270 | |
---|
3271 | # Gcc does not support 32-bit pointers on the Alphas. |
---|
3272 | if test "$gcc_ok" != no; then |
---|
3273 | use_sixty_four=yes |
---|
3274 | fi |
---|
3275 | |
---|
3276 | |
---|
3277 | # Roderick Bloem (rbloem@colorado.edu): making a special case for |
---|
3278 | # ultrix install, since it's annoying about setting groupids. |
---|
3279 | case "$target" in |
---|
3280 | mips-dec-ultrix*) |
---|
3281 | INSTALL="helpers/install-sh -c" |
---|
3282 | INSTALL_PROGRAM="\${INSTALL}" |
---|
3283 | INSTALL_DATA="\${INSTALL} -m 644";; |
---|
3284 | |
---|
3285 | *) |
---|
3286 | # Find a good install program. We prefer a C program (faster), |
---|
3287 | # so one script is as good as another. But avoid the broken or |
---|
3288 | # incompatible versions: |
---|
3289 | # SysV /etc/install, /usr/sbin/install |
---|
3290 | # SunOS /usr/etc/install |
---|
3291 | # IRIX /sbin/install |
---|
3292 | # AIX /bin/install |
---|
3293 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3294 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3295 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3296 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3297 | # OS/2's system install, which has a completely different semantic |
---|
3298 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3299 | # Reject install programs that cannot install multiple files. |
---|
3300 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3301 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
3302 | if test -z "$INSTALL"; then |
---|
3303 | if test "${ac_cv_path_install+set}" = set; then |
---|
3304 | $as_echo_n "(cached) " >&6 |
---|
3305 | else |
---|
3306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3307 | for as_dir in $PATH |
---|
3308 | do |
---|
3309 | IFS=$as_save_IFS |
---|
3310 | test -z "$as_dir" && as_dir=. |
---|
3311 | # Account for people who put trailing slashes in PATH elements. |
---|
3312 | case $as_dir/ in |
---|
3313 | ./ | .// | /cC/* | \ |
---|
3314 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3315 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3316 | /usr/ucb/* ) ;; |
---|
3317 | *) |
---|
3318 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3319 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3320 | # by default. |
---|
3321 | for ac_prog in ginstall scoinst install; do |
---|
3322 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3323 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
3324 | if test $ac_prog = install && |
---|
3325 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3326 | # AIX install. It has an incompatible calling convention. |
---|
3327 | : |
---|
3328 | elif test $ac_prog = install && |
---|
3329 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3330 | # program-specific install script used by HP pwplus--don't use. |
---|
3331 | : |
---|
3332 | else |
---|
3333 | rm -rf conftest.one conftest.two conftest.dir |
---|
3334 | echo one > conftest.one |
---|
3335 | echo two > conftest.two |
---|
3336 | mkdir conftest.dir |
---|
3337 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
3338 | test -s conftest.one && test -s conftest.two && |
---|
3339 | test -s conftest.dir/conftest.one && |
---|
3340 | test -s conftest.dir/conftest.two |
---|
3341 | then |
---|
3342 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3343 | break 3 |
---|
3344 | fi |
---|
3345 | fi |
---|
3346 | fi |
---|
3347 | done |
---|
3348 | done |
---|
3349 | ;; |
---|
3350 | esac |
---|
3351 | |
---|
3352 | done |
---|
3353 | IFS=$as_save_IFS |
---|
3354 | |
---|
3355 | rm -rf conftest.one conftest.two conftest.dir |
---|
3356 | |
---|
3357 | fi |
---|
3358 | if test "${ac_cv_path_install+set}" = set; then |
---|
3359 | INSTALL=$ac_cv_path_install |
---|
3360 | else |
---|
3361 | # As a last resort, use the slow shell script. Don't cache a |
---|
3362 | # value for INSTALL within a source directory, because that will |
---|
3363 | # break other packages using the cache if that directory is |
---|
3364 | # removed, or if the value is a relative name. |
---|
3365 | INSTALL=$ac_install_sh |
---|
3366 | fi |
---|
3367 | fi |
---|
3368 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3369 | $as_echo "$INSTALL" >&6; } |
---|
3370 | |
---|
3371 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3372 | # It thinks the first close brace ends the variable substitution. |
---|
3373 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3374 | |
---|
3375 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3376 | |
---|
3377 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3378 | ;; |
---|
3379 | esac |
---|
3380 | |
---|
3381 | # Determine the compiler flags to use |
---|
3382 | |
---|
3383 | DEBUG_CFLAGS="-g" |
---|
3384 | DEBUG_LDFLAGS="" |
---|
3385 | |
---|
3386 | case "$target" in |
---|
3387 | |
---|
3388 | i686-pc-linux-gnu) |
---|
3389 | # Linux with Intel compiler |
---|
3390 | # -ansi: ANSI C conformance |
---|
3391 | # -ip: inter-procedural optimization |
---|
3392 | OPTIMIZE_CFLAGS="-g -O3 -ansi -ip" |
---|
3393 | ;; |
---|
3394 | |
---|
3395 | sparc-sun-solaris* | i386-pc-solaris*) |
---|
3396 | # Sparc and X86 Solaris: |
---|
3397 | # -xO3: Highest safe level of optimization |
---|
3398 | # -native: Optimize for the native processor (if supported) |
---|
3399 | # -dalign: Generate double-word load/store for performance |
---|
3400 | # (only for SPARC) |
---|
3401 | # and other arcane compilation flags. |
---|
3402 | if test "$GCC" = yes; then |
---|
3403 | OPTIMIZE_CFLAGS="-O" |
---|
3404 | else |
---|
3405 | case "$target" in |
---|
3406 | sparc-sun-solaris*) |
---|
3407 | ALIGN=" -dalign" ;; |
---|
3408 | *) |
---|
3409 | ALIGN="" ;; |
---|
3410 | esac |
---|
3411 | { $as_echo "$as_me:$LINENO: checking for -native" >&5 |
---|
3412 | $as_echo_n "checking for -native... " >&6; } |
---|
3413 | CFLAGS="-xO3 -native$ALIGN" |
---|
3414 | |
---|
3415 | if test "${ac_cv_have_native+set}" = set; then |
---|
3416 | $as_echo_n "(cached) " >&6 |
---|
3417 | else |
---|
3418 | if test "$cross_compiling" = yes; then |
---|
3419 | ac_cv_have_native=no |
---|
3420 | else |
---|
3421 | cat >conftest.$ac_ext <<_ACEOF |
---|
3422 | /* confdefs.h. */ |
---|
3423 | _ACEOF |
---|
3424 | cat confdefs.h >>conftest.$ac_ext |
---|
3425 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3426 | /* end confdefs.h. */ |
---|
3427 | |
---|
3428 | main(){exit(0);} |
---|
3429 | |
---|
3430 | _ACEOF |
---|
3431 | rm -f conftest$ac_exeext |
---|
3432 | if { (ac_try="$ac_link" |
---|
3433 | case "(($ac_try" in |
---|
3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3435 | *) ac_try_echo=$ac_try;; |
---|
3436 | esac |
---|
3437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3438 | $as_echo "$ac_try_echo") >&5 |
---|
3439 | (eval "$ac_link") 2>&5 |
---|
3440 | ac_status=$? |
---|
3441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3442 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3443 | { (case "(($ac_try" in |
---|
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3445 | *) ac_try_echo=$ac_try;; |
---|
3446 | esac |
---|
3447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3448 | $as_echo "$ac_try_echo") >&5 |
---|
3449 | (eval "$ac_try") 2>&5 |
---|
3450 | ac_status=$? |
---|
3451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3452 | (exit $ac_status); }; }; then |
---|
3453 | ac_cv_have_native=yes |
---|
3454 | else |
---|
3455 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
3456 | $as_echo "$as_me: failed program was:" >&5 |
---|
3457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3458 | |
---|
3459 | ( exit $ac_status ) |
---|
3460 | ac_cv_have_native=no |
---|
3461 | fi |
---|
3462 | rm -rf conftest.dSYM |
---|
3463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3464 | fi |
---|
3465 | |
---|
3466 | |
---|
3467 | fi |
---|
3468 | |
---|
3469 | if test $ac_cv_have_native = yes ; then |
---|
3470 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3471 | $as_echo "working" >&6; } |
---|
3472 | OPTIMIZE_CFLAGS="-xO3 -native$ALIGN" |
---|
3473 | else |
---|
3474 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
3475 | $as_echo "broken" >&6; } |
---|
3476 | { $as_echo "$as_me:$LINENO: checking for fallback optimization flags" >&5 |
---|
3477 | $as_echo_n "checking for fallback optimization flags... " >&6; } |
---|
3478 | CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
3479 | if test "${ac_cv_have_fallback+set}" = set; then |
---|
3480 | $as_echo_n "(cached) " >&6 |
---|
3481 | else |
---|
3482 | if test "$cross_compiling" = yes; then |
---|
3483 | ac_cv_have_fallback=no |
---|
3484 | else |
---|
3485 | cat >conftest.$ac_ext <<_ACEOF |
---|
3486 | /* confdefs.h. */ |
---|
3487 | _ACEOF |
---|
3488 | cat confdefs.h >>conftest.$ac_ext |
---|
3489 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3490 | /* end confdefs.h. */ |
---|
3491 | |
---|
3492 | main(){exit(0);} |
---|
3493 | |
---|
3494 | _ACEOF |
---|
3495 | rm -f conftest$ac_exeext |
---|
3496 | if { (ac_try="$ac_link" |
---|
3497 | case "(($ac_try" in |
---|
3498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3499 | *) ac_try_echo=$ac_try;; |
---|
3500 | esac |
---|
3501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3502 | $as_echo "$ac_try_echo") >&5 |
---|
3503 | (eval "$ac_link") 2>&5 |
---|
3504 | ac_status=$? |
---|
3505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3507 | { (case "(($ac_try" in |
---|
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3509 | *) ac_try_echo=$ac_try;; |
---|
3510 | esac |
---|
3511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3512 | $as_echo "$ac_try_echo") >&5 |
---|
3513 | (eval "$ac_try") 2>&5 |
---|
3514 | ac_status=$? |
---|
3515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3516 | (exit $ac_status); }; }; then |
---|
3517 | ac_cv_have_fallback=yes |
---|
3518 | else |
---|
3519 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
3520 | $as_echo "$as_me: failed program was:" >&5 |
---|
3521 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3522 | |
---|
3523 | ( exit $ac_status ) |
---|
3524 | ac_cv_have_fallback=no |
---|
3525 | fi |
---|
3526 | rm -rf conftest.dSYM |
---|
3527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3528 | fi |
---|
3529 | |
---|
3530 | |
---|
3531 | fi |
---|
3532 | |
---|
3533 | if test $ac_cv_have_fallback = yes ; then |
---|
3534 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3535 | $as_echo "working" >&6; } |
---|
3536 | OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
3537 | else |
---|
3538 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
3539 | $as_echo "broken" >&6; } |
---|
3540 | OPTIMIZE_CFLAGS="-O" |
---|
3541 | fi |
---|
3542 | fi |
---|
3543 | fi |
---|
3544 | ;; |
---|
3545 | |
---|
3546 | mips-dec-ultrix*) |
---|
3547 | # MIPS-based DECstations running Ultrix: |
---|
3548 | # -std1: Produce non-ANSI code warnings, and define __STDC__ |
---|
3549 | # -O: Use the global "ucode" optimizer |
---|
3550 | # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks |
---|
3551 | OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;; |
---|
3552 | |
---|
3553 | alpha-dec-osf*) |
---|
3554 | # DEC Alpha running OSF: |
---|
3555 | |
---|
3556 | # 64-bit mode: |
---|
3557 | # -g3: Produce symbol table information for optimized code |
---|
3558 | # -O4: Enable every optimization |
---|
3559 | # -std: Enforce the ANSI standard with extensions, define __STDC__ |
---|
3560 | # -ieee_with_no_inexact: Disable (potentially slow) signaling |
---|
3561 | # for inexact floating-point results |
---|
3562 | # -tune host: Tune instructions for the compilation host machine |
---|
3563 | OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host" |
---|
3564 | DEBUG_CFLAGS="-g -std -ieee_with_no_inexact" |
---|
3565 | |
---|
3566 | # -non_shared: Do not use shared libraries |
---|
3567 | # -om: Generate an OMAGIC file for the om optimizer |
---|
3568 | OPTIMIZE_LDFLAGS="-non_shared" |
---|
3569 | |
---|
3570 | if test "$use_sixty_four" = "no"; then |
---|
3571 | # 32-bit mode: |
---|
3572 | # -xtaso: Make the compiler respond to #pragma pointer_size directives |
---|
3573 | OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso" |
---|
3574 | DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso" |
---|
3575 | |
---|
3576 | # -taso: Load the executable into the lower 31-bit address space |
---|
3577 | OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso" |
---|
3578 | DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso" |
---|
3579 | |
---|
3580 | cat >>confdefs.h <<\_ACEOF |
---|
3581 | #define SIZEOF_VOID_P 4 |
---|
3582 | _ACEOF |
---|
3583 | |
---|
3584 | ac_sizeof_voidp=4 |
---|
3585 | fi |
---|
3586 | ;; |
---|
3587 | |
---|
3588 | hppa*-*-hpux*) |
---|
3589 | # HP running HPUX |
---|
3590 | # -Aa: Behave as an ANSI compiler |
---|
3591 | # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header |
---|
3592 | # files (e.g., this means sys/resource.h has struct rusage) |
---|
3593 | # +Onolimit: removes resource restrictions for optimization |
---|
3594 | OPTIMIZE_CFLAGS="-O -Aa +Onolimit -D_HPUX_SOURCE" |
---|
3595 | DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;; |
---|
3596 | |
---|
3597 | *) |
---|
3598 | # Other systems: |
---|
3599 | OPTIMIZE_CFLAGS="-O" ;; |
---|
3600 | |
---|
3601 | esac |
---|
3602 | |
---|
3603 | if test "$GCC" = yes; then |
---|
3604 | case "$target" in |
---|
3605 | i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32 | i386-*-freebsd*) |
---|
3606 | { $as_echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5 |
---|
3607 | $as_echo_n "checking for -mcpu and -malign compiler options... " >&6; } |
---|
3608 | CFLAGS="-g -O3 -mcpu=pentiumpro -malign-double" |
---|
3609 | cat >conftest.$ac_ext <<_ACEOF |
---|
3610 | /* confdefs.h. */ |
---|
3611 | _ACEOF |
---|
3612 | cat confdefs.h >>conftest.$ac_ext |
---|
3613 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3614 | /* end confdefs.h. */ |
---|
3615 | |
---|
3616 | int |
---|
3617 | main () |
---|
3618 | { |
---|
3619 | |
---|
3620 | ; |
---|
3621 | return 0; |
---|
3622 | } |
---|
3623 | _ACEOF |
---|
3624 | rm -f conftest.$ac_objext |
---|
3625 | if { (ac_try="$ac_compile" |
---|
3626 | case "(($ac_try" in |
---|
3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3628 | *) ac_try_echo=$ac_try;; |
---|
3629 | esac |
---|
3630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3631 | $as_echo "$ac_try_echo") >&5 |
---|
3632 | (eval "$ac_compile") 2>conftest.er1 |
---|
3633 | ac_status=$? |
---|
3634 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3635 | rm -f conftest.er1 |
---|
3636 | cat conftest.err >&5 |
---|
3637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3638 | (exit $ac_status); } && { |
---|
3639 | test -z "$ac_c_werror_flag" || |
---|
3640 | test ! -s conftest.err |
---|
3641 | } && test -s conftest.$ac_objext; then |
---|
3642 | ac_have_mcpu=yes |
---|
3643 | else |
---|
3644 | $as_echo "$as_me: failed program was:" >&5 |
---|
3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3646 | |
---|
3647 | ac_have_mcpu=no |
---|
3648 | fi |
---|
3649 | |
---|
3650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3651 | if test "$ac_have_mcpu" = yes; then |
---|
3652 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3653 | $as_echo "working" >&6; } |
---|
3654 | OPTIMIZE_CFLAGS="-g -O3 -mcpu=pentiumpro -malign-double" |
---|
3655 | else |
---|
3656 | { $as_echo "$as_me:$LINENO: result: broken" >&5 |
---|
3657 | $as_echo "broken" >&6; } |
---|
3658 | OPTIMIZE_CFLAGS="-g -O3" |
---|
3659 | fi |
---|
3660 | ;; |
---|
3661 | sparc-sun-solaris*) |
---|
3662 | { $as_echo "$as_me:$LINENO: checking for -mtune compiler option" >&5 |
---|
3663 | $as_echo_n "checking for -mtune compiler option... " >&6; } |
---|
3664 | CFLAGS="-g -O3 -mtune=ultrasparc" |
---|
3665 | cat >conftest.$ac_ext <<_ACEOF |
---|
3666 | /* confdefs.h. */ |
---|
3667 | _ACEOF |
---|
3668 | cat confdefs.h >>conftest.$ac_ext |
---|
3669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3670 | /* end confdefs.h. */ |
---|
3671 | |
---|
3672 | int |
---|
3673 | main () |
---|
3674 | { |
---|
3675 | |
---|
3676 | ; |
---|
3677 | return 0; |
---|
3678 | } |
---|
3679 | _ACEOF |
---|
3680 | rm -f conftest.$ac_objext |
---|
3681 | if { (ac_try="$ac_compile" |
---|
3682 | case "(($ac_try" in |
---|
3683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3684 | *) ac_try_echo=$ac_try;; |
---|
3685 | esac |
---|
3686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3687 | $as_echo "$ac_try_echo") >&5 |
---|
3688 | (eval "$ac_compile") 2>conftest.er1 |
---|
3689 | ac_status=$? |
---|
3690 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3691 | rm -f conftest.er1 |
---|
3692 | cat conftest.err >&5 |
---|
3693 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3694 | (exit $ac_status); } && { |
---|
3695 | test -z "$ac_c_werror_flag" || |
---|
3696 | test ! -s conftest.err |
---|
3697 | } && test -s conftest.$ac_objext; then |
---|
3698 | ac_have_mtune=yes |
---|
3699 | else |
---|
3700 | $as_echo "$as_me: failed program was:" >&5 |
---|
3701 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3702 | |
---|
3703 | ac_have_mtune=no |
---|
3704 | fi |
---|
3705 | |
---|
3706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3707 | if test "$ac_have_mtune" = yes; then |
---|
3708 | { $as_echo "$as_me:$LINENO: result: working" >&5 |
---|
3709 | $as_echo "working" >&6; } |
---|
3710 | OPTIMIZE_CFLAGS="-g -O3 -mtune=ultrasparc" |
---|
3711 | else |
---|
3712 | { $as_echo "$as_me:$LINENO: result: not working" >&5 |
---|
3713 | $as_echo "not working" >&6; } |
---|
3714 | OPTIMIZE_CFLAGS="-g -O3" |
---|
3715 | fi |
---|
3716 | ;; |
---|
3717 | *) |
---|
3718 | OPTIMIZE_CFLAGS="-g -O3" |
---|
3719 | ;; |
---|
3720 | esac |
---|
3721 | OPTIMIZE_LDFLAGS="" |
---|
3722 | DEBUG_CFLAGS="-g" |
---|
3723 | DEBUG_LDFLAGS="" |
---|
3724 | fi |
---|
3725 | |
---|
3726 | |
---|
3727 | # Check whether --with-comp-mode was given. |
---|
3728 | if test "${with_comp_mode+set}" = set; then |
---|
3729 | withval=$with_comp_mode; comp_mode=$withval |
---|
3730 | else |
---|
3731 | comp_mode=optimize |
---|
3732 | fi |
---|
3733 | |
---|
3734 | |
---|
3735 | |
---|
3736 | |
---|
3737 | LINKER="$CC" |
---|
3738 | |
---|
3739 | case "$comp_mode" in |
---|
3740 | debug) |
---|
3741 | CFLAGS="$DEBUG_CFLAGS" |
---|
3742 | LDFLAGS="$DEBUG_LDFLAGS" ;; |
---|
3743 | purify) |
---|
3744 | CFLAGS="$DEBUG_CFLAGS" |
---|
3745 | LDFLAGS="$DEBUG_LDFLAGS" |
---|
3746 | cat >>confdefs.h <<\_ACEOF |
---|
3747 | #define PURIFY 1 |
---|
3748 | _ACEOF |
---|
3749 | |
---|
3750 | LINKER="purify -cache-dir=/tmp $CC" |
---|
3751 | PLINKER="purify -log-file=./purify.log -cachedir=/tmp $CC" ;; |
---|
3752 | quantify) |
---|
3753 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
3754 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
3755 | cat >>confdefs.h <<\_ACEOF |
---|
3756 | #define QUANTIFY 1 |
---|
3757 | _ACEOF |
---|
3758 | |
---|
3759 | cat >>confdefs.h <<\_ACEOF |
---|
3760 | #define NDEBUG 1 |
---|
3761 | _ACEOF |
---|
3762 | |
---|
3763 | LINKER="quantify $CC" ;; |
---|
3764 | optimize | *) |
---|
3765 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
3766 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
3767 | cat >>confdefs.h <<\_ACEOF |
---|
3768 | #define NDEBUG 1 |
---|
3769 | _ACEOF |
---|
3770 | ;; |
---|
3771 | esac |
---|
3772 | |
---|
3773 | for ac_prog in flex lex |
---|
3774 | do |
---|
3775 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3776 | set dummy $ac_prog; ac_word=$2 |
---|
3777 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3778 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3779 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
3780 | $as_echo_n "(cached) " >&6 |
---|
3781 | else |
---|
3782 | if test -n "$LEX"; then |
---|
3783 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
3784 | else |
---|
3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3786 | for as_dir in $PATH |
---|
3787 | do |
---|
3788 | IFS=$as_save_IFS |
---|
3789 | test -z "$as_dir" && as_dir=. |
---|
3790 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3792 | ac_cv_prog_LEX="$ac_prog" |
---|
3793 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3794 | break 2 |
---|
3795 | fi |
---|
3796 | done |
---|
3797 | done |
---|
3798 | IFS=$as_save_IFS |
---|
3799 | |
---|
3800 | fi |
---|
3801 | fi |
---|
3802 | LEX=$ac_cv_prog_LEX |
---|
3803 | if test -n "$LEX"; then |
---|
3804 | { $as_echo "$as_me:$LINENO: result: $LEX" >&5 |
---|
3805 | $as_echo "$LEX" >&6; } |
---|
3806 | else |
---|
3807 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
3808 | $as_echo "no" >&6; } |
---|
3809 | fi |
---|
3810 | |
---|
3811 | |
---|
3812 | test -n "$LEX" && break |
---|
3813 | done |
---|
3814 | test -n "$LEX" || LEX=":" |
---|
3815 | |
---|
3816 | if test "x$LEX" != "x:"; then |
---|
3817 | cat >conftest.l <<_ACEOF |
---|
3818 | %% |
---|
3819 | a { ECHO; } |
---|
3820 | b { REJECT; } |
---|
3821 | c { yymore (); } |
---|
3822 | d { yyless (1); } |
---|
3823 | e { yyless (input () != 0); } |
---|
3824 | f { unput (yytext[0]); } |
---|
3825 | . { BEGIN INITIAL; } |
---|
3826 | %% |
---|
3827 | #ifdef YYTEXT_POINTER |
---|
3828 | extern char *yytext; |
---|
3829 | #endif |
---|
3830 | int |
---|
3831 | main (void) |
---|
3832 | { |
---|
3833 | return ! yylex () + ! yywrap (); |
---|
3834 | } |
---|
3835 | _ACEOF |
---|
3836 | { (ac_try="$LEX conftest.l" |
---|
3837 | case "(($ac_try" in |
---|
3838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3839 | *) ac_try_echo=$ac_try;; |
---|
3840 | esac |
---|
3841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3842 | $as_echo "$ac_try_echo") >&5 |
---|
3843 | (eval "$LEX conftest.l") 2>&5 |
---|
3844 | ac_status=$? |
---|
3845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3846 | (exit $ac_status); } |
---|
3847 | { $as_echo "$as_me:$LINENO: checking lex output file root" >&5 |
---|
3848 | $as_echo_n "checking lex output file root... " >&6; } |
---|
3849 | if test "${ac_cv_prog_lex_root+set}" = set; then |
---|
3850 | $as_echo_n "(cached) " >&6 |
---|
3851 | else |
---|
3852 | |
---|
3853 | if test -f lex.yy.c; then |
---|
3854 | ac_cv_prog_lex_root=lex.yy |
---|
3855 | elif test -f lexyy.c; then |
---|
3856 | ac_cv_prog_lex_root=lexyy |
---|
3857 | else |
---|
3858 | { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
---|
3859 | $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
---|
3860 | { (exit 1); exit 1; }; } |
---|
3861 | fi |
---|
3862 | fi |
---|
3863 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
---|
3864 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
3865 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
3866 | |
---|
3867 | if test -z "${LEXLIB+set}"; then |
---|
3868 | { $as_echo "$as_me:$LINENO: checking lex library" >&5 |
---|
3869 | $as_echo_n "checking lex library... " >&6; } |
---|
3870 | if test "${ac_cv_lib_lex+set}" = set; then |
---|
3871 | $as_echo_n "(cached) " >&6 |
---|
3872 | else |
---|
3873 | |
---|
3874 | ac_save_LIBS=$LIBS |
---|
3875 | ac_cv_lib_lex='none needed' |
---|
3876 | for ac_lib in '' -lfl -ll; do |
---|
3877 | LIBS="$ac_lib $ac_save_LIBS" |
---|
3878 | cat >conftest.$ac_ext <<_ACEOF |
---|
3879 | `cat $LEX_OUTPUT_ROOT.c` |
---|
3880 | _ACEOF |
---|
3881 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3882 | if { (ac_try="$ac_link" |
---|
3883 | case "(($ac_try" in |
---|
3884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3885 | *) ac_try_echo=$ac_try;; |
---|
3886 | esac |
---|
3887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3888 | $as_echo "$ac_try_echo") >&5 |
---|
3889 | (eval "$ac_link") 2>conftest.er1 |
---|
3890 | ac_status=$? |
---|
3891 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3892 | rm -f conftest.er1 |
---|
3893 | cat conftest.err >&5 |
---|
3894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3895 | (exit $ac_status); } && { |
---|
3896 | test -z "$ac_c_werror_flag" || |
---|
3897 | test ! -s conftest.err |
---|
3898 | } && test -s conftest$ac_exeext && { |
---|
3899 | test "$cross_compiling" = yes || |
---|
3900 | $as_test_x conftest$ac_exeext |
---|
3901 | }; then |
---|
3902 | ac_cv_lib_lex=$ac_lib |
---|
3903 | else |
---|
3904 | $as_echo "$as_me: failed program was:" >&5 |
---|
3905 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3906 | |
---|
3907 | |
---|
3908 | fi |
---|
3909 | |
---|
3910 | rm -rf conftest.dSYM |
---|
3911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
3912 | conftest$ac_exeext conftest.$ac_ext |
---|
3913 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
3914 | done |
---|
3915 | LIBS=$ac_save_LIBS |
---|
3916 | |
---|
3917 | fi |
---|
3918 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
---|
3919 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
3920 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
3921 | fi |
---|
3922 | |
---|
3923 | |
---|
3924 | { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
---|
3925 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
3926 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
---|
3927 | $as_echo_n "(cached) " >&6 |
---|
3928 | else |
---|
3929 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
3930 | # default is implementation-dependent. Figure out which it is, since |
---|
3931 | # not all implementations provide the %pointer and %array declarations. |
---|
3932 | ac_cv_prog_lex_yytext_pointer=no |
---|
3933 | ac_save_LIBS=$LIBS |
---|
3934 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
3935 | cat >conftest.$ac_ext <<_ACEOF |
---|
3936 | #define YYTEXT_POINTER 1 |
---|
3937 | `cat $LEX_OUTPUT_ROOT.c` |
---|
3938 | _ACEOF |
---|
3939 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3940 | if { (ac_try="$ac_link" |
---|
3941 | case "(($ac_try" in |
---|
3942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3943 | *) ac_try_echo=$ac_try;; |
---|
3944 | esac |
---|
3945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
3946 | $as_echo "$ac_try_echo") >&5 |
---|
3947 | (eval "$ac_link") 2>conftest.er1 |
---|
3948 | ac_status=$? |
---|
3949 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3950 | rm -f conftest.er1 |
---|
3951 | cat conftest.err >&5 |
---|
3952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3953 | (exit $ac_status); } && { |
---|
3954 | test -z "$ac_c_werror_flag" || |
---|
3955 | test ! -s conftest.err |
---|
3956 | } && test -s conftest$ac_exeext && { |
---|
3957 | test "$cross_compiling" = yes || |
---|
3958 | $as_test_x conftest$ac_exeext |
---|
3959 | }; then |
---|
3960 | ac_cv_prog_lex_yytext_pointer=yes |
---|
3961 | else |
---|
3962 | $as_echo "$as_me: failed program was:" >&5 |
---|
3963 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3964 | |
---|
3965 | |
---|
3966 | fi |
---|
3967 | |
---|
3968 | rm -rf conftest.dSYM |
---|
3969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
3970 | conftest$ac_exeext conftest.$ac_ext |
---|
3971 | LIBS=$ac_save_LIBS |
---|
3972 | |
---|
3973 | fi |
---|
3974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
3975 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
3976 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
3977 | |
---|
3978 | cat >>confdefs.h <<\_ACEOF |
---|
3979 | #define YYTEXT_POINTER 1 |
---|
3980 | _ACEOF |
---|
3981 | |
---|
3982 | fi |
---|
3983 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
3984 | |
---|
3985 | fi |
---|
3986 | { $as_echo "$as_me:$LINENO: checking if $LEX accepts the -o and -P options" >&5 |
---|
3987 | $as_echo_n "checking if $LEX accepts the -o and -P options... " >&6; } |
---|
3988 | |
---|
3989 | if test "${ac_cv_flex_accepts_op+set}" = set; then |
---|
3990 | $as_echo_n "(cached) " >&6 |
---|
3991 | else |
---|
3992 | ac_cv_flex_accepts_op=yes ; |
---|
3993 | echo "%%\ |
---|
3994 | %%" | $LEX -Ptest -o/dev/null >/dev/null 2>&1 || ac_cv_flex_accepts_op=no |
---|
3995 | fi |
---|
3996 | |
---|
3997 | if test $ac_cv_flex_accepts_op = yes ; then |
---|
3998 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
3999 | $as_echo "yes" >&6; } |
---|
4000 | else |
---|
4001 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
4002 | $as_echo "no" >&6; } |
---|
4003 | { $as_echo "$as_me:$LINENO: WARNING: You either need a newer version of flex, or need to modify |
---|
4004 | the defintion of LEX in the Makefile to point to a version that does |
---|
4005 | accept -p -t and -o." >&5 |
---|
4006 | $as_echo "$as_me: WARNING: You either need a newer version of flex, or need to modify |
---|
4007 | the defintion of LEX in the Makefile to point to a version that does |
---|
4008 | accept -p -t and -o." >&2;} |
---|
4009 | fi |
---|
4010 | |
---|
4011 | for ac_prog in 'bison -y' byacc |
---|
4012 | do |
---|
4013 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4014 | set dummy $ac_prog; ac_word=$2 |
---|
4015 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4016 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4017 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
4018 | $as_echo_n "(cached) " >&6 |
---|
4019 | else |
---|
4020 | if test -n "$YACC"; then |
---|
4021 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
4022 | else |
---|
4023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4024 | for as_dir in $PATH |
---|
4025 | do |
---|
4026 | IFS=$as_save_IFS |
---|
4027 | test -z "$as_dir" && as_dir=. |
---|
4028 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4030 | ac_cv_prog_YACC="$ac_prog" |
---|
4031 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4032 | break 2 |
---|
4033 | fi |
---|
4034 | done |
---|
4035 | done |
---|
4036 | IFS=$as_save_IFS |
---|
4037 | |
---|
4038 | fi |
---|
4039 | fi |
---|
4040 | YACC=$ac_cv_prog_YACC |
---|
4041 | if test -n "$YACC"; then |
---|
4042 | { $as_echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
4043 | $as_echo "$YACC" >&6; } |
---|
4044 | else |
---|
4045 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
4046 | $as_echo "no" >&6; } |
---|
4047 | fi |
---|
4048 | |
---|
4049 | |
---|
4050 | test -n "$YACC" && break |
---|
4051 | done |
---|
4052 | test -n "$YACC" || YACC="yacc" |
---|
4053 | |
---|
4054 | { $as_echo "$as_me:$LINENO: checking if $YACC accepts the -p, -t, and -o options" >&5 |
---|
4055 | $as_echo_n "checking if $YACC accepts the -p, -t, and -o options... " >&6; } |
---|
4056 | if test "${ac_cv_yacc_accepts_pto+set}" = set; then |
---|
4057 | $as_echo_n "(cached) " >&6 |
---|
4058 | else |
---|
4059 | ac_cv_yacc_accepts_pto=yes ; |
---|
4060 | echo "%token terminal\ |
---|
4061 | %%\ |
---|
4062 | nonterminal: terminal\ |
---|
4063 | %%" > config.in |
---|
4064 | $YACC -ptest -o /dev/null config.in >/dev/null 2>&1 || ac_cv_yacc_accepts_pto=no |
---|
4065 | rm -f config.in |
---|
4066 | fi |
---|
4067 | |
---|
4068 | if test $ac_cv_yacc_accepts_pto = yes ; then |
---|
4069 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
4070 | $as_echo "yes" >&6; } |
---|
4071 | else |
---|
4072 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
4073 | $as_echo "no" >&6; } |
---|
4074 | { $as_echo "$as_me:$LINENO: WARNING: You either need a newer version of bison, or need to modify |
---|
4075 | the defintion of YACC in the Makefile to point to a version that does |
---|
4076 | accept -p -t and -o." >&5 |
---|
4077 | $as_echo "$as_me: WARNING: You either need a newer version of bison, or need to modify |
---|
4078 | the defintion of YACC in the Makefile to point to a version that does |
---|
4079 | accept -p -t and -o." >&2;} |
---|
4080 | fi |
---|
4081 | |
---|
4082 | #---------------------------------------------------------------------- |
---|
4083 | # Checks for headers and libraries |
---|
4084 | #---------------------------------------------------------------------- |
---|
4085 | ac_ext=c |
---|
4086 | ac_cpp='$CPP $CPPFLAGS' |
---|
4087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4090 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
4091 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4092 | # On Suns, sometimes $CPP names a directory. |
---|
4093 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4094 | CPP= |
---|
4095 | fi |
---|
4096 | if test -z "$CPP"; then |
---|
4097 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
4098 | $as_echo_n "(cached) " >&6 |
---|
4099 | else |
---|
4100 | # Double quotes because CPP needs to be expanded |
---|
4101 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4102 | do |
---|
4103 | ac_preproc_ok=false |
---|
4104 | for ac_c_preproc_warn_flag in '' yes |
---|
4105 | do |
---|
4106 | # Use a header file that comes with gcc, so configuring glibc |
---|
4107 | # with a fresh cross-compiler works. |
---|
4108 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4109 | # <limits.h> exists even on freestanding compilers. |
---|
4110 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4111 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4112 | cat >conftest.$ac_ext <<_ACEOF |
---|
4113 | /* confdefs.h. */ |
---|
4114 | _ACEOF |
---|
4115 | cat confdefs.h >>conftest.$ac_ext |
---|
4116 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4117 | /* end confdefs.h. */ |
---|
4118 | #ifdef __STDC__ |
---|
4119 | # include <limits.h> |
---|
4120 | #else |
---|
4121 | # include <assert.h> |
---|
4122 | #endif |
---|
4123 | Syntax error |
---|
4124 | _ACEOF |
---|
4125 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4126 | case "(($ac_try" in |
---|
4127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4128 | *) ac_try_echo=$ac_try;; |
---|
4129 | esac |
---|
4130 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4131 | $as_echo "$ac_try_echo") >&5 |
---|
4132 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4133 | ac_status=$? |
---|
4134 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4135 | rm -f conftest.er1 |
---|
4136 | cat conftest.err >&5 |
---|
4137 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4138 | (exit $ac_status); } >/dev/null && { |
---|
4139 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4140 | test ! -s conftest.err |
---|
4141 | }; then |
---|
4142 | : |
---|
4143 | else |
---|
4144 | $as_echo "$as_me: failed program was:" >&5 |
---|
4145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4146 | |
---|
4147 | # Broken: fails on valid input. |
---|
4148 | continue |
---|
4149 | fi |
---|
4150 | |
---|
4151 | rm -f conftest.err conftest.$ac_ext |
---|
4152 | |
---|
4153 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4154 | # can be detected and how. |
---|
4155 | cat >conftest.$ac_ext <<_ACEOF |
---|
4156 | /* confdefs.h. */ |
---|
4157 | _ACEOF |
---|
4158 | cat confdefs.h >>conftest.$ac_ext |
---|
4159 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4160 | /* end confdefs.h. */ |
---|
4161 | #include <ac_nonexistent.h> |
---|
4162 | _ACEOF |
---|
4163 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4164 | case "(($ac_try" in |
---|
4165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4166 | *) ac_try_echo=$ac_try;; |
---|
4167 | esac |
---|
4168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4169 | $as_echo "$ac_try_echo") >&5 |
---|
4170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4171 | ac_status=$? |
---|
4172 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4173 | rm -f conftest.er1 |
---|
4174 | cat conftest.err >&5 |
---|
4175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4176 | (exit $ac_status); } >/dev/null && { |
---|
4177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4178 | test ! -s conftest.err |
---|
4179 | }; then |
---|
4180 | # Broken: success on invalid input. |
---|
4181 | continue |
---|
4182 | else |
---|
4183 | $as_echo "$as_me: failed program was:" >&5 |
---|
4184 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4185 | |
---|
4186 | # Passes both tests. |
---|
4187 | ac_preproc_ok=: |
---|
4188 | break |
---|
4189 | fi |
---|
4190 | |
---|
4191 | rm -f conftest.err conftest.$ac_ext |
---|
4192 | |
---|
4193 | done |
---|
4194 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4195 | rm -f conftest.err conftest.$ac_ext |
---|
4196 | if $ac_preproc_ok; then |
---|
4197 | break |
---|
4198 | fi |
---|
4199 | |
---|
4200 | done |
---|
4201 | ac_cv_prog_CPP=$CPP |
---|
4202 | |
---|
4203 | fi |
---|
4204 | CPP=$ac_cv_prog_CPP |
---|
4205 | else |
---|
4206 | ac_cv_prog_CPP=$CPP |
---|
4207 | fi |
---|
4208 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
4209 | $as_echo "$CPP" >&6; } |
---|
4210 | ac_preproc_ok=false |
---|
4211 | for ac_c_preproc_warn_flag in '' yes |
---|
4212 | do |
---|
4213 | # Use a header file that comes with gcc, so configuring glibc |
---|
4214 | # with a fresh cross-compiler works. |
---|
4215 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4216 | # <limits.h> exists even on freestanding compilers. |
---|
4217 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4218 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4219 | cat >conftest.$ac_ext <<_ACEOF |
---|
4220 | /* confdefs.h. */ |
---|
4221 | _ACEOF |
---|
4222 | cat confdefs.h >>conftest.$ac_ext |
---|
4223 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4224 | /* end confdefs.h. */ |
---|
4225 | #ifdef __STDC__ |
---|
4226 | # include <limits.h> |
---|
4227 | #else |
---|
4228 | # include <assert.h> |
---|
4229 | #endif |
---|
4230 | Syntax error |
---|
4231 | _ACEOF |
---|
4232 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4233 | case "(($ac_try" in |
---|
4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4235 | *) ac_try_echo=$ac_try;; |
---|
4236 | esac |
---|
4237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4238 | $as_echo "$ac_try_echo") >&5 |
---|
4239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4240 | ac_status=$? |
---|
4241 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4242 | rm -f conftest.er1 |
---|
4243 | cat conftest.err >&5 |
---|
4244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4245 | (exit $ac_status); } >/dev/null && { |
---|
4246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4247 | test ! -s conftest.err |
---|
4248 | }; then |
---|
4249 | : |
---|
4250 | else |
---|
4251 | $as_echo "$as_me: failed program was:" >&5 |
---|
4252 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4253 | |
---|
4254 | # Broken: fails on valid input. |
---|
4255 | continue |
---|
4256 | fi |
---|
4257 | |
---|
4258 | rm -f conftest.err conftest.$ac_ext |
---|
4259 | |
---|
4260 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4261 | # can be detected and how. |
---|
4262 | cat >conftest.$ac_ext <<_ACEOF |
---|
4263 | /* confdefs.h. */ |
---|
4264 | _ACEOF |
---|
4265 | cat confdefs.h >>conftest.$ac_ext |
---|
4266 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4267 | /* end confdefs.h. */ |
---|
4268 | #include <ac_nonexistent.h> |
---|
4269 | _ACEOF |
---|
4270 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4271 | case "(($ac_try" in |
---|
4272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4273 | *) ac_try_echo=$ac_try;; |
---|
4274 | esac |
---|
4275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4276 | $as_echo "$ac_try_echo") >&5 |
---|
4277 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4278 | ac_status=$? |
---|
4279 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4280 | rm -f conftest.er1 |
---|
4281 | cat conftest.err >&5 |
---|
4282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4283 | (exit $ac_status); } >/dev/null && { |
---|
4284 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4285 | test ! -s conftest.err |
---|
4286 | }; then |
---|
4287 | # Broken: success on invalid input. |
---|
4288 | continue |
---|
4289 | else |
---|
4290 | $as_echo "$as_me: failed program was:" >&5 |
---|
4291 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4292 | |
---|
4293 | # Passes both tests. |
---|
4294 | ac_preproc_ok=: |
---|
4295 | break |
---|
4296 | fi |
---|
4297 | |
---|
4298 | rm -f conftest.err conftest.$ac_ext |
---|
4299 | |
---|
4300 | done |
---|
4301 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4302 | rm -f conftest.err conftest.$ac_ext |
---|
4303 | if $ac_preproc_ok; then |
---|
4304 | : |
---|
4305 | else |
---|
4306 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
---|
4307 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4308 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
4309 | See \`config.log' for more details." >&5 |
---|
4310 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
4311 | See \`config.log' for more details." >&2;} |
---|
4312 | { (exit 1); exit 1; }; }; } |
---|
4313 | fi |
---|
4314 | |
---|
4315 | ac_ext=c |
---|
4316 | ac_cpp='$CPP $CPPFLAGS' |
---|
4317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4320 | |
---|
4321 | |
---|
4322 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
4323 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4324 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
4325 | $as_echo_n "(cached) " >&6 |
---|
4326 | else |
---|
4327 | if test -z "$GREP"; then |
---|
4328 | ac_path_GREP_found=false |
---|
4329 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4331 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4332 | do |
---|
4333 | IFS=$as_save_IFS |
---|
4334 | test -z "$as_dir" && as_dir=. |
---|
4335 | for ac_prog in grep ggrep; do |
---|
4336 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4337 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4338 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
4339 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4340 | # Check for GNU $ac_path_GREP |
---|
4341 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4342 | *GNU*) |
---|
4343 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4344 | *) |
---|
4345 | ac_count=0 |
---|
4346 | $as_echo_n 0123456789 >"conftest.in" |
---|
4347 | while : |
---|
4348 | do |
---|
4349 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4350 | mv "conftest.tmp" "conftest.in" |
---|
4351 | cp "conftest.in" "conftest.nl" |
---|
4352 | $as_echo 'GREP' >> "conftest.nl" |
---|
4353 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4354 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4355 | ac_count=`expr $ac_count + 1` |
---|
4356 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4357 | # Best one so far, save it but keep looking for a better one |
---|
4358 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4359 | ac_path_GREP_max=$ac_count |
---|
4360 | fi |
---|
4361 | # 10*(2^10) chars as input seems more than enough |
---|
4362 | test $ac_count -gt 10 && break |
---|
4363 | done |
---|
4364 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4365 | esac |
---|
4366 | |
---|
4367 | $ac_path_GREP_found && break 3 |
---|
4368 | done |
---|
4369 | done |
---|
4370 | done |
---|
4371 | IFS=$as_save_IFS |
---|
4372 | if test -z "$ac_cv_path_GREP"; then |
---|
4373 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
4374 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
4375 | { (exit 1); exit 1; }; } |
---|
4376 | fi |
---|
4377 | else |
---|
4378 | ac_cv_path_GREP=$GREP |
---|
4379 | fi |
---|
4380 | |
---|
4381 | fi |
---|
4382 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
4383 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4384 | GREP="$ac_cv_path_GREP" |
---|
4385 | |
---|
4386 | |
---|
4387 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
4388 | $as_echo_n "checking for egrep... " >&6; } |
---|
4389 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
4390 | $as_echo_n "(cached) " >&6 |
---|
4391 | else |
---|
4392 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4393 | then ac_cv_path_EGREP="$GREP -E" |
---|
4394 | else |
---|
4395 | if test -z "$EGREP"; then |
---|
4396 | ac_path_EGREP_found=false |
---|
4397 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4399 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4400 | do |
---|
4401 | IFS=$as_save_IFS |
---|
4402 | test -z "$as_dir" && as_dir=. |
---|
4403 | for ac_prog in egrep; do |
---|
4404 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4405 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4406 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
4407 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4408 | # Check for GNU $ac_path_EGREP |
---|
4409 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4410 | *GNU*) |
---|
4411 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4412 | *) |
---|
4413 | ac_count=0 |
---|
4414 | $as_echo_n 0123456789 >"conftest.in" |
---|
4415 | while : |
---|
4416 | do |
---|
4417 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4418 | mv "conftest.tmp" "conftest.in" |
---|
4419 | cp "conftest.in" "conftest.nl" |
---|
4420 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4421 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4422 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4423 | ac_count=`expr $ac_count + 1` |
---|
4424 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4425 | # Best one so far, save it but keep looking for a better one |
---|
4426 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4427 | ac_path_EGREP_max=$ac_count |
---|
4428 | fi |
---|
4429 | # 10*(2^10) chars as input seems more than enough |
---|
4430 | test $ac_count -gt 10 && break |
---|
4431 | done |
---|
4432 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4433 | esac |
---|
4434 | |
---|
4435 | $ac_path_EGREP_found && break 3 |
---|
4436 | done |
---|
4437 | done |
---|
4438 | done |
---|
4439 | IFS=$as_save_IFS |
---|
4440 | if test -z "$ac_cv_path_EGREP"; then |
---|
4441 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
4442 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
4443 | { (exit 1); exit 1; }; } |
---|
4444 | fi |
---|
4445 | else |
---|
4446 | ac_cv_path_EGREP=$EGREP |
---|
4447 | fi |
---|
4448 | |
---|
4449 | fi |
---|
4450 | fi |
---|
4451 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
4452 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4453 | EGREP="$ac_cv_path_EGREP" |
---|
4454 | |
---|
4455 | |
---|
4456 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
4457 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4458 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
4459 | $as_echo_n "(cached) " >&6 |
---|
4460 | else |
---|
4461 | cat >conftest.$ac_ext <<_ACEOF |
---|
4462 | /* confdefs.h. */ |
---|
4463 | _ACEOF |
---|
4464 | cat confdefs.h >>conftest.$ac_ext |
---|
4465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4466 | /* end confdefs.h. */ |
---|
4467 | #include <stdlib.h> |
---|
4468 | #include <stdarg.h> |
---|
4469 | #include <string.h> |
---|
4470 | #include <float.h> |
---|
4471 | |
---|
4472 | int |
---|
4473 | main () |
---|
4474 | { |
---|
4475 | |
---|
4476 | ; |
---|
4477 | return 0; |
---|
4478 | } |
---|
4479 | _ACEOF |
---|
4480 | rm -f conftest.$ac_objext |
---|
4481 | if { (ac_try="$ac_compile" |
---|
4482 | case "(($ac_try" in |
---|
4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4484 | *) ac_try_echo=$ac_try;; |
---|
4485 | esac |
---|
4486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4487 | $as_echo "$ac_try_echo") >&5 |
---|
4488 | (eval "$ac_compile") 2>conftest.er1 |
---|
4489 | ac_status=$? |
---|
4490 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4491 | rm -f conftest.er1 |
---|
4492 | cat conftest.err >&5 |
---|
4493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4494 | (exit $ac_status); } && { |
---|
4495 | test -z "$ac_c_werror_flag" || |
---|
4496 | test ! -s conftest.err |
---|
4497 | } && test -s conftest.$ac_objext; then |
---|
4498 | ac_cv_header_stdc=yes |
---|
4499 | else |
---|
4500 | $as_echo "$as_me: failed program was:" >&5 |
---|
4501 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4502 | |
---|
4503 | ac_cv_header_stdc=no |
---|
4504 | fi |
---|
4505 | |
---|
4506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4507 | |
---|
4508 | if test $ac_cv_header_stdc = yes; then |
---|
4509 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4510 | cat >conftest.$ac_ext <<_ACEOF |
---|
4511 | /* confdefs.h. */ |
---|
4512 | _ACEOF |
---|
4513 | cat confdefs.h >>conftest.$ac_ext |
---|
4514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4515 | /* end confdefs.h. */ |
---|
4516 | #include <string.h> |
---|
4517 | |
---|
4518 | _ACEOF |
---|
4519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4520 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4521 | : |
---|
4522 | else |
---|
4523 | ac_cv_header_stdc=no |
---|
4524 | fi |
---|
4525 | rm -f conftest* |
---|
4526 | |
---|
4527 | fi |
---|
4528 | |
---|
4529 | if test $ac_cv_header_stdc = yes; then |
---|
4530 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4531 | cat >conftest.$ac_ext <<_ACEOF |
---|
4532 | /* confdefs.h. */ |
---|
4533 | _ACEOF |
---|
4534 | cat confdefs.h >>conftest.$ac_ext |
---|
4535 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4536 | /* end confdefs.h. */ |
---|
4537 | #include <stdlib.h> |
---|
4538 | |
---|
4539 | _ACEOF |
---|
4540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4541 | $EGREP "free" >/dev/null 2>&1; then |
---|
4542 | : |
---|
4543 | else |
---|
4544 | ac_cv_header_stdc=no |
---|
4545 | fi |
---|
4546 | rm -f conftest* |
---|
4547 | |
---|
4548 | fi |
---|
4549 | |
---|
4550 | if test $ac_cv_header_stdc = yes; then |
---|
4551 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4552 | if test "$cross_compiling" = yes; then |
---|
4553 | : |
---|
4554 | else |
---|
4555 | cat >conftest.$ac_ext <<_ACEOF |
---|
4556 | /* confdefs.h. */ |
---|
4557 | _ACEOF |
---|
4558 | cat confdefs.h >>conftest.$ac_ext |
---|
4559 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4560 | /* end confdefs.h. */ |
---|
4561 | #include <ctype.h> |
---|
4562 | #include <stdlib.h> |
---|
4563 | #if ((' ' & 0x0FF) == 0x020) |
---|
4564 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4565 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4566 | #else |
---|
4567 | # define ISLOWER(c) \ |
---|
4568 | (('a' <= (c) && (c) <= 'i') \ |
---|
4569 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4570 | || ('s' <= (c) && (c) <= 'z')) |
---|
4571 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4572 | #endif |
---|
4573 | |
---|
4574 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4575 | int |
---|
4576 | main () |
---|
4577 | { |
---|
4578 | int i; |
---|
4579 | for (i = 0; i < 256; i++) |
---|
4580 | if (XOR (islower (i), ISLOWER (i)) |
---|
4581 | || toupper (i) != TOUPPER (i)) |
---|
4582 | return 2; |
---|
4583 | return 0; |
---|
4584 | } |
---|
4585 | _ACEOF |
---|
4586 | rm -f conftest$ac_exeext |
---|
4587 | if { (ac_try="$ac_link" |
---|
4588 | case "(($ac_try" in |
---|
4589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4590 | *) ac_try_echo=$ac_try;; |
---|
4591 | esac |
---|
4592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4593 | $as_echo "$ac_try_echo") >&5 |
---|
4594 | (eval "$ac_link") 2>&5 |
---|
4595 | ac_status=$? |
---|
4596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4597 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4598 | { (case "(($ac_try" in |
---|
4599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4600 | *) ac_try_echo=$ac_try;; |
---|
4601 | esac |
---|
4602 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4603 | $as_echo "$ac_try_echo") >&5 |
---|
4604 | (eval "$ac_try") 2>&5 |
---|
4605 | ac_status=$? |
---|
4606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4607 | (exit $ac_status); }; }; then |
---|
4608 | : |
---|
4609 | else |
---|
4610 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
4611 | $as_echo "$as_me: failed program was:" >&5 |
---|
4612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4613 | |
---|
4614 | ( exit $ac_status ) |
---|
4615 | ac_cv_header_stdc=no |
---|
4616 | fi |
---|
4617 | rm -rf conftest.dSYM |
---|
4618 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4619 | fi |
---|
4620 | |
---|
4621 | |
---|
4622 | fi |
---|
4623 | fi |
---|
4624 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4625 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4626 | if test $ac_cv_header_stdc = yes; then |
---|
4627 | |
---|
4628 | cat >>confdefs.h <<\_ACEOF |
---|
4629 | #define STDC_HEADERS 1 |
---|
4630 | _ACEOF |
---|
4631 | |
---|
4632 | fi |
---|
4633 | |
---|
4634 | |
---|
4635 | |
---|
4636 | |
---|
4637 | # add -lucb to LIBS and -L/usr/ucblib to LIBDIRS |
---|
4638 | # if there's a libucb.a available |
---|
4639 | # (Solaris needs this for signals) |
---|
4640 | |
---|
4641 | ac_save_ldflags="$LDFLAGS" |
---|
4642 | LDFLAGS=-L/usr/ucblib |
---|
4643 | { $as_echo "$as_me:$LINENO: checking for main in -lucb" >&5 |
---|
4644 | $as_echo_n "checking for main in -lucb... " >&6; } |
---|
4645 | if test "${ac_cv_lib_ucb_main+set}" = set; then |
---|
4646 | $as_echo_n "(cached) " >&6 |
---|
4647 | else |
---|
4648 | ac_check_lib_save_LIBS=$LIBS |
---|
4649 | LIBS="-lucb $LIBS" |
---|
4650 | cat >conftest.$ac_ext <<_ACEOF |
---|
4651 | /* confdefs.h. */ |
---|
4652 | _ACEOF |
---|
4653 | cat confdefs.h >>conftest.$ac_ext |
---|
4654 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4655 | /* end confdefs.h. */ |
---|
4656 | |
---|
4657 | |
---|
4658 | int |
---|
4659 | main () |
---|
4660 | { |
---|
4661 | return main (); |
---|
4662 | ; |
---|
4663 | return 0; |
---|
4664 | } |
---|
4665 | _ACEOF |
---|
4666 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4667 | if { (ac_try="$ac_link" |
---|
4668 | case "(($ac_try" in |
---|
4669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4670 | *) ac_try_echo=$ac_try;; |
---|
4671 | esac |
---|
4672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4673 | $as_echo "$ac_try_echo") >&5 |
---|
4674 | (eval "$ac_link") 2>conftest.er1 |
---|
4675 | ac_status=$? |
---|
4676 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4677 | rm -f conftest.er1 |
---|
4678 | cat conftest.err >&5 |
---|
4679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4680 | (exit $ac_status); } && { |
---|
4681 | test -z "$ac_c_werror_flag" || |
---|
4682 | test ! -s conftest.err |
---|
4683 | } && test -s conftest$ac_exeext && { |
---|
4684 | test "$cross_compiling" = yes || |
---|
4685 | $as_test_x conftest$ac_exeext |
---|
4686 | }; then |
---|
4687 | ac_cv_lib_ucb_main=yes |
---|
4688 | else |
---|
4689 | $as_echo "$as_me: failed program was:" >&5 |
---|
4690 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4691 | |
---|
4692 | ac_cv_lib_ucb_main=no |
---|
4693 | fi |
---|
4694 | |
---|
4695 | rm -rf conftest.dSYM |
---|
4696 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4697 | conftest$ac_exeext conftest.$ac_ext |
---|
4698 | LIBS=$ac_check_lib_save_LIBS |
---|
4699 | fi |
---|
4700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_main" >&5 |
---|
4701 | $as_echo "$ac_cv_lib_ucb_main" >&6; } |
---|
4702 | if test "x$ac_cv_lib_ucb_main" = x""yes; then |
---|
4703 | LIBDIRS="$LIBDIRS -L/usr/ucblib" |
---|
4704 | fi |
---|
4705 | |
---|
4706 | LDFLAGS="$ac_save_ldflags" |
---|
4707 | |
---|
4708 | # add -lbsd if there's a libbsd.a available |
---|
4709 | # (e.g., Linux needs this for bsd_ioctl) |
---|
4710 | |
---|
4711 | { $as_echo "$as_me:$LINENO: checking for main in -lbsd" >&5 |
---|
4712 | $as_echo_n "checking for main in -lbsd... " >&6; } |
---|
4713 | if test "${ac_cv_lib_bsd_main+set}" = set; then |
---|
4714 | $as_echo_n "(cached) " >&6 |
---|
4715 | else |
---|
4716 | ac_check_lib_save_LIBS=$LIBS |
---|
4717 | LIBS="-lbsd $LIBS" |
---|
4718 | cat >conftest.$ac_ext <<_ACEOF |
---|
4719 | /* confdefs.h. */ |
---|
4720 | _ACEOF |
---|
4721 | cat confdefs.h >>conftest.$ac_ext |
---|
4722 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4723 | /* end confdefs.h. */ |
---|
4724 | |
---|
4725 | |
---|
4726 | int |
---|
4727 | main () |
---|
4728 | { |
---|
4729 | return main (); |
---|
4730 | ; |
---|
4731 | return 0; |
---|
4732 | } |
---|
4733 | _ACEOF |
---|
4734 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4735 | if { (ac_try="$ac_link" |
---|
4736 | case "(($ac_try" in |
---|
4737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4738 | *) ac_try_echo=$ac_try;; |
---|
4739 | esac |
---|
4740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4741 | $as_echo "$ac_try_echo") >&5 |
---|
4742 | (eval "$ac_link") 2>conftest.er1 |
---|
4743 | ac_status=$? |
---|
4744 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4745 | rm -f conftest.er1 |
---|
4746 | cat conftest.err >&5 |
---|
4747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4748 | (exit $ac_status); } && { |
---|
4749 | test -z "$ac_c_werror_flag" || |
---|
4750 | test ! -s conftest.err |
---|
4751 | } && test -s conftest$ac_exeext && { |
---|
4752 | test "$cross_compiling" = yes || |
---|
4753 | $as_test_x conftest$ac_exeext |
---|
4754 | }; then |
---|
4755 | ac_cv_lib_bsd_main=yes |
---|
4756 | else |
---|
4757 | $as_echo "$as_me: failed program was:" >&5 |
---|
4758 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4759 | |
---|
4760 | ac_cv_lib_bsd_main=no |
---|
4761 | fi |
---|
4762 | |
---|
4763 | rm -rf conftest.dSYM |
---|
4764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4765 | conftest$ac_exeext conftest.$ac_ext |
---|
4766 | LIBS=$ac_check_lib_save_LIBS |
---|
4767 | fi |
---|
4768 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5 |
---|
4769 | $as_echo "$ac_cv_lib_bsd_main" >&6; } |
---|
4770 | if test "x$ac_cv_lib_bsd_main" = x""yes; then |
---|
4771 | cat >>confdefs.h <<_ACEOF |
---|
4772 | #define HAVE_LIBBSD 1 |
---|
4773 | _ACEOF |
---|
4774 | |
---|
4775 | LIBS="-lbsd $LIBS" |
---|
4776 | |
---|
4777 | fi |
---|
4778 | |
---|
4779 | |
---|
4780 | # Check if libreadline exists and the function readline can be used. |
---|
4781 | # This implies checking for the availability of libtermcap or of a |
---|
4782 | # suitable replacement. (We only look for libncurses.) |
---|
4783 | if test "${vis_cv_termcap_lib+set}" = set; then |
---|
4784 | $as_echo_n "(cached) " >&6 |
---|
4785 | else |
---|
4786 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
---|
4787 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } |
---|
4788 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
---|
4789 | $as_echo_n "(cached) " >&6 |
---|
4790 | else |
---|
4791 | ac_check_lib_save_LIBS=$LIBS |
---|
4792 | LIBS="-ltermcap $LIBS" |
---|
4793 | cat >conftest.$ac_ext <<_ACEOF |
---|
4794 | /* confdefs.h. */ |
---|
4795 | _ACEOF |
---|
4796 | cat confdefs.h >>conftest.$ac_ext |
---|
4797 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4798 | /* end confdefs.h. */ |
---|
4799 | |
---|
4800 | /* Override any GCC internal prototype to avoid an error. |
---|
4801 | Use char because int might match the return type of a GCC |
---|
4802 | builtin and then its argument prototype would still apply. */ |
---|
4803 | #ifdef __cplusplus |
---|
4804 | extern "C" |
---|
4805 | #endif |
---|
4806 | char tgetent (); |
---|
4807 | int |
---|
4808 | main () |
---|
4809 | { |
---|
4810 | return tgetent (); |
---|
4811 | ; |
---|
4812 | return 0; |
---|
4813 | } |
---|
4814 | _ACEOF |
---|
4815 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4816 | if { (ac_try="$ac_link" |
---|
4817 | case "(($ac_try" in |
---|
4818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4819 | *) ac_try_echo=$ac_try;; |
---|
4820 | esac |
---|
4821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4822 | $as_echo "$ac_try_echo") >&5 |
---|
4823 | (eval "$ac_link") 2>conftest.er1 |
---|
4824 | ac_status=$? |
---|
4825 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4826 | rm -f conftest.er1 |
---|
4827 | cat conftest.err >&5 |
---|
4828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4829 | (exit $ac_status); } && { |
---|
4830 | test -z "$ac_c_werror_flag" || |
---|
4831 | test ! -s conftest.err |
---|
4832 | } && test -s conftest$ac_exeext && { |
---|
4833 | test "$cross_compiling" = yes || |
---|
4834 | $as_test_x conftest$ac_exeext |
---|
4835 | }; then |
---|
4836 | ac_cv_lib_termcap_tgetent=yes |
---|
4837 | else |
---|
4838 | $as_echo "$as_me: failed program was:" >&5 |
---|
4839 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4840 | |
---|
4841 | ac_cv_lib_termcap_tgetent=no |
---|
4842 | fi |
---|
4843 | |
---|
4844 | rm -rf conftest.dSYM |
---|
4845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4846 | conftest$ac_exeext conftest.$ac_ext |
---|
4847 | LIBS=$ac_check_lib_save_LIBS |
---|
4848 | fi |
---|
4849 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
---|
4850 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } |
---|
4851 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then |
---|
4852 | vis_cv_termcap_lib=-ltermcap |
---|
4853 | else |
---|
4854 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
---|
4855 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } |
---|
4856 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
---|
4857 | $as_echo_n "(cached) " >&6 |
---|
4858 | else |
---|
4859 | ac_check_lib_save_LIBS=$LIBS |
---|
4860 | LIBS="-lncurses $LIBS" |
---|
4861 | cat >conftest.$ac_ext <<_ACEOF |
---|
4862 | /* confdefs.h. */ |
---|
4863 | _ACEOF |
---|
4864 | cat confdefs.h >>conftest.$ac_ext |
---|
4865 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4866 | /* end confdefs.h. */ |
---|
4867 | |
---|
4868 | /* Override any GCC internal prototype to avoid an error. |
---|
4869 | Use char because int might match the return type of a GCC |
---|
4870 | builtin and then its argument prototype would still apply. */ |
---|
4871 | #ifdef __cplusplus |
---|
4872 | extern "C" |
---|
4873 | #endif |
---|
4874 | char tgetent (); |
---|
4875 | int |
---|
4876 | main () |
---|
4877 | { |
---|
4878 | return tgetent (); |
---|
4879 | ; |
---|
4880 | return 0; |
---|
4881 | } |
---|
4882 | _ACEOF |
---|
4883 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4884 | if { (ac_try="$ac_link" |
---|
4885 | case "(($ac_try" in |
---|
4886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4887 | *) ac_try_echo=$ac_try;; |
---|
4888 | esac |
---|
4889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4890 | $as_echo "$ac_try_echo") >&5 |
---|
4891 | (eval "$ac_link") 2>conftest.er1 |
---|
4892 | ac_status=$? |
---|
4893 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4894 | rm -f conftest.er1 |
---|
4895 | cat conftest.err >&5 |
---|
4896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4897 | (exit $ac_status); } && { |
---|
4898 | test -z "$ac_c_werror_flag" || |
---|
4899 | test ! -s conftest.err |
---|
4900 | } && test -s conftest$ac_exeext && { |
---|
4901 | test "$cross_compiling" = yes || |
---|
4902 | $as_test_x conftest$ac_exeext |
---|
4903 | }; then |
---|
4904 | ac_cv_lib_ncurses_tgetent=yes |
---|
4905 | else |
---|
4906 | $as_echo "$as_me: failed program was:" >&5 |
---|
4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4908 | |
---|
4909 | ac_cv_lib_ncurses_tgetent=no |
---|
4910 | fi |
---|
4911 | |
---|
4912 | rm -rf conftest.dSYM |
---|
4913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4914 | conftest$ac_exeext conftest.$ac_ext |
---|
4915 | LIBS=$ac_check_lib_save_LIBS |
---|
4916 | fi |
---|
4917 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
---|
4918 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } |
---|
4919 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then |
---|
4920 | vis_cv_termcap_lib=-lncurses |
---|
4921 | else |
---|
4922 | bash_cv_termcap_lib=none |
---|
4923 | fi |
---|
4924 | |
---|
4925 | fi |
---|
4926 | |
---|
4927 | fi |
---|
4928 | |
---|
4929 | if test "$vis_cv_termcap_lib" != none; then |
---|
4930 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
---|
4931 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
---|
4932 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
---|
4933 | $as_echo_n "(cached) " >&6 |
---|
4934 | else |
---|
4935 | ac_check_lib_save_LIBS=$LIBS |
---|
4936 | LIBS="-lreadline $vis_cv_termcap_lib $LIBS" |
---|
4937 | cat >conftest.$ac_ext <<_ACEOF |
---|
4938 | /* confdefs.h. */ |
---|
4939 | _ACEOF |
---|
4940 | cat confdefs.h >>conftest.$ac_ext |
---|
4941 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4942 | /* end confdefs.h. */ |
---|
4943 | |
---|
4944 | /* Override any GCC internal prototype to avoid an error. |
---|
4945 | Use char because int might match the return type of a GCC |
---|
4946 | builtin and then its argument prototype would still apply. */ |
---|
4947 | #ifdef __cplusplus |
---|
4948 | extern "C" |
---|
4949 | #endif |
---|
4950 | char readline (); |
---|
4951 | int |
---|
4952 | main () |
---|
4953 | { |
---|
4954 | return readline (); |
---|
4955 | ; |
---|
4956 | return 0; |
---|
4957 | } |
---|
4958 | _ACEOF |
---|
4959 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4960 | if { (ac_try="$ac_link" |
---|
4961 | case "(($ac_try" in |
---|
4962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4963 | *) ac_try_echo=$ac_try;; |
---|
4964 | esac |
---|
4965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
4966 | $as_echo "$ac_try_echo") >&5 |
---|
4967 | (eval "$ac_link") 2>conftest.er1 |
---|
4968 | ac_status=$? |
---|
4969 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4970 | rm -f conftest.er1 |
---|
4971 | cat conftest.err >&5 |
---|
4972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4973 | (exit $ac_status); } && { |
---|
4974 | test -z "$ac_c_werror_flag" || |
---|
4975 | test ! -s conftest.err |
---|
4976 | } && test -s conftest$ac_exeext && { |
---|
4977 | test "$cross_compiling" = yes || |
---|
4978 | $as_test_x conftest$ac_exeext |
---|
4979 | }; then |
---|
4980 | ac_cv_lib_readline_readline=yes |
---|
4981 | else |
---|
4982 | $as_echo "$as_me: failed program was:" >&5 |
---|
4983 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4984 | |
---|
4985 | ac_cv_lib_readline_readline=no |
---|
4986 | fi |
---|
4987 | |
---|
4988 | rm -rf conftest.dSYM |
---|
4989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4990 | conftest$ac_exeext conftest.$ac_ext |
---|
4991 | LIBS=$ac_check_lib_save_LIBS |
---|
4992 | fi |
---|
4993 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
---|
4994 | $as_echo "$ac_cv_lib_readline_readline" >&6; } |
---|
4995 | if test "x$ac_cv_lib_readline_readline" = x""yes; then |
---|
4996 | ac_readline_flag=1 |
---|
4997 | else |
---|
4998 | ac_readline_flag=0 |
---|
4999 | fi |
---|
5000 | |
---|
5001 | if test $ac_readline_flag = 1 ; then |
---|
5002 | LIBS="$LIBS -lreadline $vis_cv_termcap_lib" ; cat >>confdefs.h <<\_ACEOF |
---|
5003 | #define HAVE_LIBREADLINE 1 |
---|
5004 | _ACEOF |
---|
5005 | |
---|
5006 | fi |
---|
5007 | fi |
---|
5008 | |
---|
5009 | # Check for the dirent header file, which is quite a mess |
---|
5010 | |
---|
5011 | |
---|
5012 | |
---|
5013 | |
---|
5014 | |
---|
5015 | ac_header_dirent=no |
---|
5016 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
5017 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
5018 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
5019 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
---|
5020 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5021 | $as_echo_n "(cached) " >&6 |
---|
5022 | else |
---|
5023 | cat >conftest.$ac_ext <<_ACEOF |
---|
5024 | /* confdefs.h. */ |
---|
5025 | _ACEOF |
---|
5026 | cat confdefs.h >>conftest.$ac_ext |
---|
5027 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5028 | /* end confdefs.h. */ |
---|
5029 | #include <sys/types.h> |
---|
5030 | #include <$ac_hdr> |
---|
5031 | |
---|
5032 | int |
---|
5033 | main () |
---|
5034 | { |
---|
5035 | if ((DIR *) 0) |
---|
5036 | return 0; |
---|
5037 | ; |
---|
5038 | return 0; |
---|
5039 | } |
---|
5040 | _ACEOF |
---|
5041 | rm -f conftest.$ac_objext |
---|
5042 | if { (ac_try="$ac_compile" |
---|
5043 | case "(($ac_try" in |
---|
5044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5045 | *) ac_try_echo=$ac_try;; |
---|
5046 | esac |
---|
5047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5048 | $as_echo "$ac_try_echo") >&5 |
---|
5049 | (eval "$ac_compile") 2>conftest.er1 |
---|
5050 | ac_status=$? |
---|
5051 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5052 | rm -f conftest.er1 |
---|
5053 | cat conftest.err >&5 |
---|
5054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5055 | (exit $ac_status); } && { |
---|
5056 | test -z "$ac_c_werror_flag" || |
---|
5057 | test ! -s conftest.err |
---|
5058 | } && test -s conftest.$ac_objext; then |
---|
5059 | eval "$as_ac_Header=yes" |
---|
5060 | else |
---|
5061 | $as_echo "$as_me: failed program was:" >&5 |
---|
5062 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5063 | |
---|
5064 | eval "$as_ac_Header=no" |
---|
5065 | fi |
---|
5066 | |
---|
5067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5068 | fi |
---|
5069 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
5070 | $as_echo "$as_val"'` |
---|
5071 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5072 | $as_echo "$ac_res" >&6; } |
---|
5073 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
5074 | $as_echo "$as_val"'` |
---|
5075 | if test "x$as_val" = x""yes; then |
---|
5076 | cat >>confdefs.h <<_ACEOF |
---|
5077 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
5078 | _ACEOF |
---|
5079 | |
---|
5080 | ac_header_dirent=$ac_hdr; break |
---|
5081 | fi |
---|
5082 | |
---|
5083 | done |
---|
5084 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
5085 | if test $ac_header_dirent = dirent.h; then |
---|
5086 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5087 | $as_echo_n "checking for library containing opendir... " >&6; } |
---|
5088 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5089 | $as_echo_n "(cached) " >&6 |
---|
5090 | else |
---|
5091 | ac_func_search_save_LIBS=$LIBS |
---|
5092 | cat >conftest.$ac_ext <<_ACEOF |
---|
5093 | /* confdefs.h. */ |
---|
5094 | _ACEOF |
---|
5095 | cat confdefs.h >>conftest.$ac_ext |
---|
5096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5097 | /* end confdefs.h. */ |
---|
5098 | |
---|
5099 | /* Override any GCC internal prototype to avoid an error. |
---|
5100 | Use char because int might match the return type of a GCC |
---|
5101 | builtin and then its argument prototype would still apply. */ |
---|
5102 | #ifdef __cplusplus |
---|
5103 | extern "C" |
---|
5104 | #endif |
---|
5105 | char opendir (); |
---|
5106 | int |
---|
5107 | main () |
---|
5108 | { |
---|
5109 | return opendir (); |
---|
5110 | ; |
---|
5111 | return 0; |
---|
5112 | } |
---|
5113 | _ACEOF |
---|
5114 | for ac_lib in '' dir; do |
---|
5115 | if test -z "$ac_lib"; then |
---|
5116 | ac_res="none required" |
---|
5117 | else |
---|
5118 | ac_res=-l$ac_lib |
---|
5119 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5120 | fi |
---|
5121 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5122 | if { (ac_try="$ac_link" |
---|
5123 | case "(($ac_try" in |
---|
5124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5125 | *) ac_try_echo=$ac_try;; |
---|
5126 | esac |
---|
5127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5128 | $as_echo "$ac_try_echo") >&5 |
---|
5129 | (eval "$ac_link") 2>conftest.er1 |
---|
5130 | ac_status=$? |
---|
5131 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5132 | rm -f conftest.er1 |
---|
5133 | cat conftest.err >&5 |
---|
5134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5135 | (exit $ac_status); } && { |
---|
5136 | test -z "$ac_c_werror_flag" || |
---|
5137 | test ! -s conftest.err |
---|
5138 | } && test -s conftest$ac_exeext && { |
---|
5139 | test "$cross_compiling" = yes || |
---|
5140 | $as_test_x conftest$ac_exeext |
---|
5141 | }; then |
---|
5142 | ac_cv_search_opendir=$ac_res |
---|
5143 | else |
---|
5144 | $as_echo "$as_me: failed program was:" >&5 |
---|
5145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5146 | |
---|
5147 | |
---|
5148 | fi |
---|
5149 | |
---|
5150 | rm -rf conftest.dSYM |
---|
5151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5152 | conftest$ac_exeext |
---|
5153 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5154 | break |
---|
5155 | fi |
---|
5156 | done |
---|
5157 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5158 | : |
---|
5159 | else |
---|
5160 | ac_cv_search_opendir=no |
---|
5161 | fi |
---|
5162 | rm conftest.$ac_ext |
---|
5163 | LIBS=$ac_func_search_save_LIBS |
---|
5164 | fi |
---|
5165 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5166 | $as_echo "$ac_cv_search_opendir" >&6; } |
---|
5167 | ac_res=$ac_cv_search_opendir |
---|
5168 | if test "$ac_res" != no; then |
---|
5169 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
5170 | |
---|
5171 | fi |
---|
5172 | |
---|
5173 | else |
---|
5174 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5175 | $as_echo_n "checking for library containing opendir... " >&6; } |
---|
5176 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5177 | $as_echo_n "(cached) " >&6 |
---|
5178 | else |
---|
5179 | ac_func_search_save_LIBS=$LIBS |
---|
5180 | cat >conftest.$ac_ext <<_ACEOF |
---|
5181 | /* confdefs.h. */ |
---|
5182 | _ACEOF |
---|
5183 | cat confdefs.h >>conftest.$ac_ext |
---|
5184 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5185 | /* end confdefs.h. */ |
---|
5186 | |
---|
5187 | /* Override any GCC internal prototype to avoid an error. |
---|
5188 | Use char because int might match the return type of a GCC |
---|
5189 | builtin and then its argument prototype would still apply. */ |
---|
5190 | #ifdef __cplusplus |
---|
5191 | extern "C" |
---|
5192 | #endif |
---|
5193 | char opendir (); |
---|
5194 | int |
---|
5195 | main () |
---|
5196 | { |
---|
5197 | return opendir (); |
---|
5198 | ; |
---|
5199 | return 0; |
---|
5200 | } |
---|
5201 | _ACEOF |
---|
5202 | for ac_lib in '' x; do |
---|
5203 | if test -z "$ac_lib"; then |
---|
5204 | ac_res="none required" |
---|
5205 | else |
---|
5206 | ac_res=-l$ac_lib |
---|
5207 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5208 | fi |
---|
5209 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5210 | if { (ac_try="$ac_link" |
---|
5211 | case "(($ac_try" in |
---|
5212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5213 | *) ac_try_echo=$ac_try;; |
---|
5214 | esac |
---|
5215 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5216 | $as_echo "$ac_try_echo") >&5 |
---|
5217 | (eval "$ac_link") 2>conftest.er1 |
---|
5218 | ac_status=$? |
---|
5219 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5220 | rm -f conftest.er1 |
---|
5221 | cat conftest.err >&5 |
---|
5222 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5223 | (exit $ac_status); } && { |
---|
5224 | test -z "$ac_c_werror_flag" || |
---|
5225 | test ! -s conftest.err |
---|
5226 | } && test -s conftest$ac_exeext && { |
---|
5227 | test "$cross_compiling" = yes || |
---|
5228 | $as_test_x conftest$ac_exeext |
---|
5229 | }; then |
---|
5230 | ac_cv_search_opendir=$ac_res |
---|
5231 | else |
---|
5232 | $as_echo "$as_me: failed program was:" >&5 |
---|
5233 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5234 | |
---|
5235 | |
---|
5236 | fi |
---|
5237 | |
---|
5238 | rm -rf conftest.dSYM |
---|
5239 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5240 | conftest$ac_exeext |
---|
5241 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5242 | break |
---|
5243 | fi |
---|
5244 | done |
---|
5245 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5246 | : |
---|
5247 | else |
---|
5248 | ac_cv_search_opendir=no |
---|
5249 | fi |
---|
5250 | rm conftest.$ac_ext |
---|
5251 | LIBS=$ac_func_search_save_LIBS |
---|
5252 | fi |
---|
5253 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5254 | $as_echo "$ac_cv_search_opendir" >&6; } |
---|
5255 | ac_res=$ac_cv_search_opendir |
---|
5256 | if test "$ac_res" != no; then |
---|
5257 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
5258 | |
---|
5259 | fi |
---|
5260 | |
---|
5261 | fi |
---|
5262 | |
---|
5263 | |
---|
5264 | # Check for these system header files |
---|
5265 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5266 | |
---|
5267 | |
---|
5268 | |
---|
5269 | |
---|
5270 | |
---|
5271 | |
---|
5272 | |
---|
5273 | |
---|
5274 | |
---|
5275 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5276 | inttypes.h stdint.h unistd.h |
---|
5277 | do |
---|
5278 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5279 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5280 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
5281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5282 | $as_echo_n "(cached) " >&6 |
---|
5283 | else |
---|
5284 | cat >conftest.$ac_ext <<_ACEOF |
---|
5285 | /* confdefs.h. */ |
---|
5286 | _ACEOF |
---|
5287 | cat confdefs.h >>conftest.$ac_ext |
---|
5288 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5289 | /* end confdefs.h. */ |
---|
5290 | $ac_includes_default |
---|
5291 | |
---|
5292 | #include <$ac_header> |
---|
5293 | _ACEOF |
---|
5294 | rm -f conftest.$ac_objext |
---|
5295 | if { (ac_try="$ac_compile" |
---|
5296 | case "(($ac_try" in |
---|
5297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5298 | *) ac_try_echo=$ac_try;; |
---|
5299 | esac |
---|
5300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5301 | $as_echo "$ac_try_echo") >&5 |
---|
5302 | (eval "$ac_compile") 2>conftest.er1 |
---|
5303 | ac_status=$? |
---|
5304 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5305 | rm -f conftest.er1 |
---|
5306 | cat conftest.err >&5 |
---|
5307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5308 | (exit $ac_status); } && { |
---|
5309 | test -z "$ac_c_werror_flag" || |
---|
5310 | test ! -s conftest.err |
---|
5311 | } && test -s conftest.$ac_objext; then |
---|
5312 | eval "$as_ac_Header=yes" |
---|
5313 | else |
---|
5314 | $as_echo "$as_me: failed program was:" >&5 |
---|
5315 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5316 | |
---|
5317 | eval "$as_ac_Header=no" |
---|
5318 | fi |
---|
5319 | |
---|
5320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5321 | fi |
---|
5322 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
5323 | $as_echo "$as_val"'` |
---|
5324 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5325 | $as_echo "$ac_res" >&6; } |
---|
5326 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
5327 | $as_echo "$as_val"'` |
---|
5328 | if test "x$as_val" = x""yes; then |
---|
5329 | cat >>confdefs.h <<_ACEOF |
---|
5330 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5331 | _ACEOF |
---|
5332 | |
---|
5333 | fi |
---|
5334 | |
---|
5335 | done |
---|
5336 | |
---|
5337 | |
---|
5338 | |
---|
5339 | |
---|
5340 | |
---|
5341 | |
---|
5342 | |
---|
5343 | |
---|
5344 | |
---|
5345 | for ac_header in sys/termios.h sys/ioctl.h sys/time.h signal.h sys/signal.h readline/readline.h readline/history.h |
---|
5346 | do |
---|
5347 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5349 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5350 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5352 | $as_echo_n "(cached) " >&6 |
---|
5353 | fi |
---|
5354 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
5355 | $as_echo "$as_val"'` |
---|
5356 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5357 | $as_echo "$ac_res" >&6; } |
---|
5358 | else |
---|
5359 | # Is the header compilable? |
---|
5360 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5361 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
5362 | cat >conftest.$ac_ext <<_ACEOF |
---|
5363 | /* confdefs.h. */ |
---|
5364 | _ACEOF |
---|
5365 | cat confdefs.h >>conftest.$ac_ext |
---|
5366 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5367 | /* end confdefs.h. */ |
---|
5368 | $ac_includes_default |
---|
5369 | #include <$ac_header> |
---|
5370 | _ACEOF |
---|
5371 | rm -f conftest.$ac_objext |
---|
5372 | if { (ac_try="$ac_compile" |
---|
5373 | case "(($ac_try" in |
---|
5374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5375 | *) ac_try_echo=$ac_try;; |
---|
5376 | esac |
---|
5377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5378 | $as_echo "$ac_try_echo") >&5 |
---|
5379 | (eval "$ac_compile") 2>conftest.er1 |
---|
5380 | ac_status=$? |
---|
5381 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5382 | rm -f conftest.er1 |
---|
5383 | cat conftest.err >&5 |
---|
5384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5385 | (exit $ac_status); } && { |
---|
5386 | test -z "$ac_c_werror_flag" || |
---|
5387 | test ! -s conftest.err |
---|
5388 | } && test -s conftest.$ac_objext; then |
---|
5389 | ac_header_compiler=yes |
---|
5390 | else |
---|
5391 | $as_echo "$as_me: failed program was:" >&5 |
---|
5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5393 | |
---|
5394 | ac_header_compiler=no |
---|
5395 | fi |
---|
5396 | |
---|
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5398 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5399 | $as_echo "$ac_header_compiler" >&6; } |
---|
5400 | |
---|
5401 | # Is the header present? |
---|
5402 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5403 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
5404 | cat >conftest.$ac_ext <<_ACEOF |
---|
5405 | /* confdefs.h. */ |
---|
5406 | _ACEOF |
---|
5407 | cat confdefs.h >>conftest.$ac_ext |
---|
5408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5409 | /* end confdefs.h. */ |
---|
5410 | #include <$ac_header> |
---|
5411 | _ACEOF |
---|
5412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5413 | case "(($ac_try" in |
---|
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5415 | *) ac_try_echo=$ac_try;; |
---|
5416 | esac |
---|
5417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5418 | $as_echo "$ac_try_echo") >&5 |
---|
5419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5420 | ac_status=$? |
---|
5421 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5422 | rm -f conftest.er1 |
---|
5423 | cat conftest.err >&5 |
---|
5424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5425 | (exit $ac_status); } >/dev/null && { |
---|
5426 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5427 | test ! -s conftest.err |
---|
5428 | }; then |
---|
5429 | ac_header_preproc=yes |
---|
5430 | else |
---|
5431 | $as_echo "$as_me: failed program was:" >&5 |
---|
5432 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5433 | |
---|
5434 | ac_header_preproc=no |
---|
5435 | fi |
---|
5436 | |
---|
5437 | rm -f conftest.err conftest.$ac_ext |
---|
5438 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5439 | $as_echo "$ac_header_preproc" >&6; } |
---|
5440 | |
---|
5441 | # So? What about this header? |
---|
5442 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5443 | yes:no: ) |
---|
5444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5445 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5447 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5448 | ac_header_preproc=yes |
---|
5449 | ;; |
---|
5450 | no:yes:* ) |
---|
5451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5452 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5454 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5456 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5458 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5460 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5462 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5463 | |
---|
5464 | ;; |
---|
5465 | esac |
---|
5466 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5467 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
5468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5469 | $as_echo_n "(cached) " >&6 |
---|
5470 | else |
---|
5471 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5472 | fi |
---|
5473 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
5474 | $as_echo "$as_val"'` |
---|
5475 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5476 | $as_echo "$ac_res" >&6; } |
---|
5477 | |
---|
5478 | fi |
---|
5479 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
5480 | $as_echo "$as_val"'` |
---|
5481 | if test "x$as_val" = x""yes; then |
---|
5482 | cat >>confdefs.h <<_ACEOF |
---|
5483 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5484 | _ACEOF |
---|
5485 | |
---|
5486 | fi |
---|
5487 | |
---|
5488 | done |
---|
5489 | |
---|
5490 | |
---|
5491 | # This is for Linux |
---|
5492 | |
---|
5493 | for ac_header in bsd/sgtty.h |
---|
5494 | do |
---|
5495 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5496 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5497 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5498 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
5499 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5500 | $as_echo_n "(cached) " >&6 |
---|
5501 | fi |
---|
5502 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
5503 | $as_echo "$as_val"'` |
---|
5504 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5505 | $as_echo "$ac_res" >&6; } |
---|
5506 | else |
---|
5507 | # Is the header compilable? |
---|
5508 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5509 | $as_echo_n "checking $ac_header usability... " >&6; } |
---|
5510 | cat >conftest.$ac_ext <<_ACEOF |
---|
5511 | /* confdefs.h. */ |
---|
5512 | _ACEOF |
---|
5513 | cat confdefs.h >>conftest.$ac_ext |
---|
5514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5515 | /* end confdefs.h. */ |
---|
5516 | $ac_includes_default |
---|
5517 | #include <$ac_header> |
---|
5518 | _ACEOF |
---|
5519 | rm -f conftest.$ac_objext |
---|
5520 | if { (ac_try="$ac_compile" |
---|
5521 | case "(($ac_try" in |
---|
5522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5523 | *) ac_try_echo=$ac_try;; |
---|
5524 | esac |
---|
5525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5526 | $as_echo "$ac_try_echo") >&5 |
---|
5527 | (eval "$ac_compile") 2>conftest.er1 |
---|
5528 | ac_status=$? |
---|
5529 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5530 | rm -f conftest.er1 |
---|
5531 | cat conftest.err >&5 |
---|
5532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5533 | (exit $ac_status); } && { |
---|
5534 | test -z "$ac_c_werror_flag" || |
---|
5535 | test ! -s conftest.err |
---|
5536 | } && test -s conftest.$ac_objext; then |
---|
5537 | ac_header_compiler=yes |
---|
5538 | else |
---|
5539 | $as_echo "$as_me: failed program was:" >&5 |
---|
5540 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5541 | |
---|
5542 | ac_header_compiler=no |
---|
5543 | fi |
---|
5544 | |
---|
5545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5546 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5547 | $as_echo "$ac_header_compiler" >&6; } |
---|
5548 | |
---|
5549 | # Is the header present? |
---|
5550 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5551 | $as_echo_n "checking $ac_header presence... " >&6; } |
---|
5552 | cat >conftest.$ac_ext <<_ACEOF |
---|
5553 | /* confdefs.h. */ |
---|
5554 | _ACEOF |
---|
5555 | cat confdefs.h >>conftest.$ac_ext |
---|
5556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5557 | /* end confdefs.h. */ |
---|
5558 | #include <$ac_header> |
---|
5559 | _ACEOF |
---|
5560 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5561 | case "(($ac_try" in |
---|
5562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5563 | *) ac_try_echo=$ac_try;; |
---|
5564 | esac |
---|
5565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5566 | $as_echo "$ac_try_echo") >&5 |
---|
5567 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5568 | ac_status=$? |
---|
5569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5570 | rm -f conftest.er1 |
---|
5571 | cat conftest.err >&5 |
---|
5572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5573 | (exit $ac_status); } >/dev/null && { |
---|
5574 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5575 | test ! -s conftest.err |
---|
5576 | }; then |
---|
5577 | ac_header_preproc=yes |
---|
5578 | else |
---|
5579 | $as_echo "$as_me: failed program was:" >&5 |
---|
5580 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5581 | |
---|
5582 | ac_header_preproc=no |
---|
5583 | fi |
---|
5584 | |
---|
5585 | rm -f conftest.err conftest.$ac_ext |
---|
5586 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5587 | $as_echo "$ac_header_preproc" >&6; } |
---|
5588 | |
---|
5589 | # So? What about this header? |
---|
5590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5591 | yes:no: ) |
---|
5592 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5593 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5594 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5595 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5596 | ac_header_preproc=yes |
---|
5597 | ;; |
---|
5598 | no:yes:* ) |
---|
5599 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5600 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5601 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5602 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5603 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5604 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5605 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5606 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5607 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5608 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5609 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5610 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5611 | |
---|
5612 | ;; |
---|
5613 | esac |
---|
5614 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5615 | $as_echo_n "checking for $ac_header... " >&6; } |
---|
5616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
5617 | $as_echo_n "(cached) " >&6 |
---|
5618 | else |
---|
5619 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5620 | fi |
---|
5621 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
---|
5622 | $as_echo "$as_val"'` |
---|
5623 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
5624 | $as_echo "$ac_res" >&6; } |
---|
5625 | |
---|
5626 | fi |
---|
5627 | as_val=`eval 'as_val=${'$as_ac_Header'} |
---|
5628 | $as_echo "$as_val"'` |
---|
5629 | if test "x$as_val" = x""yes; then |
---|
5630 | cat >>confdefs.h <<_ACEOF |
---|
5631 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5632 | _ACEOF |
---|
5633 | |
---|
5634 | fi |
---|
5635 | |
---|
5636 | done |
---|
5637 | |
---|
5638 | |
---|
5639 | # Some systems want both sys/ioctl.h and sys/termios.h, but others can |
---|
5640 | # only have one -- check for that |
---|
5641 | |
---|
5642 | { $as_echo "$as_me:$LINENO: checking whether sys/termios.h and sys/ioctl.h should both be included" >&5 |
---|
5643 | $as_echo_n "checking whether sys/termios.h and sys/ioctl.h should both be included... " >&6; } |
---|
5644 | |
---|
5645 | if test "${ac_cv_ioctl_with_termios+set}" = set; then |
---|
5646 | $as_echo_n "(cached) " >&6 |
---|
5647 | else |
---|
5648 | cat >conftest.$ac_ext <<_ACEOF |
---|
5649 | /* confdefs.h. */ |
---|
5650 | _ACEOF |
---|
5651 | cat confdefs.h >>conftest.$ac_ext |
---|
5652 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5653 | /* end confdefs.h. */ |
---|
5654 | |
---|
5655 | #include <sys/termios.h> |
---|
5656 | #include <sys/ioctl.h> |
---|
5657 | |
---|
5658 | _ACEOF |
---|
5659 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5660 | case "(($ac_try" in |
---|
5661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5662 | *) ac_try_echo=$ac_try;; |
---|
5663 | esac |
---|
5664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5665 | $as_echo "$ac_try_echo") >&5 |
---|
5666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5667 | ac_status=$? |
---|
5668 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5669 | rm -f conftest.er1 |
---|
5670 | cat conftest.err >&5 |
---|
5671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5672 | (exit $ac_status); } >/dev/null && { |
---|
5673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5674 | test ! -s conftest.err |
---|
5675 | }; then |
---|
5676 | ac_cv_ioctl_with_termios=1 |
---|
5677 | else |
---|
5678 | $as_echo "$as_me: failed program was:" >&5 |
---|
5679 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5680 | |
---|
5681 | ac_cv_ioctl_with_termios=0 |
---|
5682 | fi |
---|
5683 | |
---|
5684 | rm -f conftest.err conftest.$ac_ext |
---|
5685 | fi |
---|
5686 | |
---|
5687 | if test $ac_cv_ioctl_with_termios = 1 ; then |
---|
5688 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
5689 | $as_echo "yes" >&6; } ; cat >>confdefs.h <<\_ACEOF |
---|
5690 | #define IOCTL_WITH_TERMIOS 1 |
---|
5691 | _ACEOF |
---|
5692 | |
---|
5693 | else |
---|
5694 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
5695 | $as_echo "no" >&6; } |
---|
5696 | fi |
---|
5697 | |
---|
5698 | # cmdFile.c wants to be able to use TIOCGETC to do file completion, |
---|
5699 | # but some systems (e.g., HPUX) don't have this |
---|
5700 | # |
---|
5701 | |
---|
5702 | { $as_echo "$as_me:$LINENO: checking for TIOCGETC" >&5 |
---|
5703 | $as_echo_n "checking for TIOCGETC... " >&6; } |
---|
5704 | |
---|
5705 | if test "${ac_cv_have_ioctl_with_tiocgetc+set}" = set; then |
---|
5706 | $as_echo_n "(cached) " >&6 |
---|
5707 | else |
---|
5708 | if test $ac_cv_ioctl_with_termios = 1 ; then |
---|
5709 | cat >conftest.$ac_ext <<_ACEOF |
---|
5710 | /* confdefs.h. */ |
---|
5711 | _ACEOF |
---|
5712 | cat confdefs.h >>conftest.$ac_ext |
---|
5713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5714 | /* end confdefs.h. */ |
---|
5715 | #include <sys/termios.h> |
---|
5716 | #include <sys/ioctl.h> |
---|
5717 | #ifdef TIOCGETC |
---|
5718 | yes |
---|
5719 | #endif |
---|
5720 | _ACEOF |
---|
5721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5722 | $EGREP "yes" >/dev/null 2>&1; then |
---|
5723 | ac_cv_have_ioctl_with_tiocgetc=yes |
---|
5724 | else |
---|
5725 | ac_cv_have_ioctl_with_tiocgetc=no |
---|
5726 | fi |
---|
5727 | rm -f conftest* |
---|
5728 | |
---|
5729 | else |
---|
5730 | cat >conftest.$ac_ext <<_ACEOF |
---|
5731 | /* confdefs.h. */ |
---|
5732 | _ACEOF |
---|
5733 | cat confdefs.h >>conftest.$ac_ext |
---|
5734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5735 | /* end confdefs.h. */ |
---|
5736 | #include <sys/ioctl.h> |
---|
5737 | #ifdef TIOCGETC |
---|
5738 | yes |
---|
5739 | #endif |
---|
5740 | _ACEOF |
---|
5741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5742 | $EGREP "yes" >/dev/null 2>&1; then |
---|
5743 | ac_cv_have_ioctl_with_tiocgetc=yes |
---|
5744 | else |
---|
5745 | ac_cv_have_ioctl_with_tiocgetc=no |
---|
5746 | fi |
---|
5747 | rm -f conftest* |
---|
5748 | |
---|
5749 | fi |
---|
5750 | fi |
---|
5751 | |
---|
5752 | if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then |
---|
5753 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
---|
5754 | $as_echo "yes" >&6; } ; cat >>confdefs.h <<\_ACEOF |
---|
5755 | #define HAVE_IOCTL_WITH_TIOCGETC 1 |
---|
5756 | _ACEOF |
---|
5757 | |
---|
5758 | else |
---|
5759 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
5760 | $as_echo "no" >&6; } |
---|
5761 | fi |
---|
5762 | |
---|
5763 | # # cmdFile.c wants to turn off interrupts, but some systems don't |
---|
5764 | # # seem to know how to do that using TIOCLBIS |
---|
5765 | # # |
---|
5766 | # # This is probably fairly fragile, and it's probably cmdFile.c that should |
---|
5767 | # # be fixed |
---|
5768 | # # |
---|
5769 | # # This has been very unreliable (e.g., on Solaris), so the facility has |
---|
5770 | # # been turned off |
---|
5771 | # |
---|
5772 | # if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then |
---|
5773 | # |
---|
5774 | # AC_MSG_CHECKING(for TIOCLBIS) |
---|
5775 | # |
---|
5776 | # AC_CACHE_VAL(ac_cv_have_term_interrupts, |
---|
5777 | # [AC_EGREP_CPP(yes, |
---|
5778 | # [#include <sys/ioctl.h> |
---|
5779 | # #include <sys/termios.h> |
---|
5780 | # #ifdef TIOCLBIS |
---|
5781 | # yes |
---|
5782 | # #endif |
---|
5783 | # ], ac_cv_have_term_interrupts=1, |
---|
5784 | # ac_cv_have_term_interrupts=0 )]) |
---|
5785 | # |
---|
5786 | # if test $ac_cv_have_term_interrupts = 1 ; then |
---|
5787 | # AC_MSG_RESULT(yes) ; AC_DEFINE(HAVE_TERM_INTERRUPTS) |
---|
5788 | # else |
---|
5789 | # AC_MSG_RESULT(no) |
---|
5790 | # fi |
---|
5791 | # |
---|
5792 | # fi # ac_cv_have_ioctl_with_tiocgetc |
---|
5793 | |
---|
5794 | #---------------------------------------------------------------------- |
---|
5795 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5796 | #---------------------------------------------------------------------- |
---|
5797 | |
---|
5798 | # Check to see if the compiler understands "const" |
---|
5799 | # #define it empty otherwise |
---|
5800 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
5801 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
5802 | if test "${ac_cv_c_const+set}" = set; then |
---|
5803 | $as_echo_n "(cached) " >&6 |
---|
5804 | else |
---|
5805 | cat >conftest.$ac_ext <<_ACEOF |
---|
5806 | /* confdefs.h. */ |
---|
5807 | _ACEOF |
---|
5808 | cat confdefs.h >>conftest.$ac_ext |
---|
5809 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5810 | /* end confdefs.h. */ |
---|
5811 | |
---|
5812 | int |
---|
5813 | main () |
---|
5814 | { |
---|
5815 | /* FIXME: Include the comments suggested by Paul. */ |
---|
5816 | #ifndef __cplusplus |
---|
5817 | /* Ultrix mips cc rejects this. */ |
---|
5818 | typedef int charset[2]; |
---|
5819 | const charset cs; |
---|
5820 | /* SunOS 4.1.1 cc rejects this. */ |
---|
5821 | char const *const *pcpcc; |
---|
5822 | char **ppc; |
---|
5823 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
5824 | struct point {int x, y;}; |
---|
5825 | static struct point const zero = {0,0}; |
---|
5826 | /* AIX XL C 1.02.0.0 rejects this. |
---|
5827 | It does not let you subtract one const X* pointer from another in |
---|
5828 | an arm of an if-expression whose if-part is not a constant |
---|
5829 | expression */ |
---|
5830 | const char *g = "string"; |
---|
5831 | pcpcc = &g + (g ? g-g : 0); |
---|
5832 | /* HPUX 7.0 cc rejects these. */ |
---|
5833 | ++pcpcc; |
---|
5834 | ppc = (char**) pcpcc; |
---|
5835 | pcpcc = (char const *const *) ppc; |
---|
5836 | { /* SCO 3.2v4 cc rejects this. */ |
---|
5837 | char *t; |
---|
5838 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
5839 | |
---|
5840 | *t++ = 0; |
---|
5841 | if (s) return 0; |
---|
5842 | } |
---|
5843 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
5844 | int x[] = {25, 17}; |
---|
5845 | const int *foo = &x[0]; |
---|
5846 | ++foo; |
---|
5847 | } |
---|
5848 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
5849 | typedef const int *iptr; |
---|
5850 | iptr p = 0; |
---|
5851 | ++p; |
---|
5852 | } |
---|
5853 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
5854 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
5855 | struct s { int j; const int *ap[3]; }; |
---|
5856 | struct s *b; b->j = 5; |
---|
5857 | } |
---|
5858 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
5859 | const int foo = 10; |
---|
5860 | if (!foo) return 0; |
---|
5861 | } |
---|
5862 | return !cs[0] && !zero.x; |
---|
5863 | #endif |
---|
5864 | |
---|
5865 | ; |
---|
5866 | return 0; |
---|
5867 | } |
---|
5868 | _ACEOF |
---|
5869 | rm -f conftest.$ac_objext |
---|
5870 | if { (ac_try="$ac_compile" |
---|
5871 | case "(($ac_try" in |
---|
5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5873 | *) ac_try_echo=$ac_try;; |
---|
5874 | esac |
---|
5875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5876 | $as_echo "$ac_try_echo") >&5 |
---|
5877 | (eval "$ac_compile") 2>conftest.er1 |
---|
5878 | ac_status=$? |
---|
5879 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5880 | rm -f conftest.er1 |
---|
5881 | cat conftest.err >&5 |
---|
5882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5883 | (exit $ac_status); } && { |
---|
5884 | test -z "$ac_c_werror_flag" || |
---|
5885 | test ! -s conftest.err |
---|
5886 | } && test -s conftest.$ac_objext; then |
---|
5887 | ac_cv_c_const=yes |
---|
5888 | else |
---|
5889 | $as_echo "$as_me: failed program was:" >&5 |
---|
5890 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5891 | |
---|
5892 | ac_cv_c_const=no |
---|
5893 | fi |
---|
5894 | |
---|
5895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5896 | fi |
---|
5897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
5898 | $as_echo "$ac_cv_c_const" >&6; } |
---|
5899 | if test $ac_cv_c_const = no; then |
---|
5900 | |
---|
5901 | cat >>confdefs.h <<\_ACEOF |
---|
5902 | #define const /**/ |
---|
5903 | _ACEOF |
---|
5904 | |
---|
5905 | fi |
---|
5906 | |
---|
5907 | |
---|
5908 | # Sort out "time.h" nonsense |
---|
5909 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
5910 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
---|
5911 | if test "${ac_cv_header_time+set}" = set; then |
---|
5912 | $as_echo_n "(cached) " >&6 |
---|
5913 | else |
---|
5914 | cat >conftest.$ac_ext <<_ACEOF |
---|
5915 | /* confdefs.h. */ |
---|
5916 | _ACEOF |
---|
5917 | cat confdefs.h >>conftest.$ac_ext |
---|
5918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5919 | /* end confdefs.h. */ |
---|
5920 | #include <sys/types.h> |
---|
5921 | #include <sys/time.h> |
---|
5922 | #include <time.h> |
---|
5923 | |
---|
5924 | int |
---|
5925 | main () |
---|
5926 | { |
---|
5927 | if ((struct tm *) 0) |
---|
5928 | return 0; |
---|
5929 | ; |
---|
5930 | return 0; |
---|
5931 | } |
---|
5932 | _ACEOF |
---|
5933 | rm -f conftest.$ac_objext |
---|
5934 | if { (ac_try="$ac_compile" |
---|
5935 | case "(($ac_try" in |
---|
5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5937 | *) ac_try_echo=$ac_try;; |
---|
5938 | esac |
---|
5939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
5940 | $as_echo "$ac_try_echo") >&5 |
---|
5941 | (eval "$ac_compile") 2>conftest.er1 |
---|
5942 | ac_status=$? |
---|
5943 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5944 | rm -f conftest.er1 |
---|
5945 | cat conftest.err >&5 |
---|
5946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5947 | (exit $ac_status); } && { |
---|
5948 | test -z "$ac_c_werror_flag" || |
---|
5949 | test ! -s conftest.err |
---|
5950 | } && test -s conftest.$ac_objext; then |
---|
5951 | ac_cv_header_time=yes |
---|
5952 | else |
---|
5953 | $as_echo "$as_me: failed program was:" >&5 |
---|
5954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5955 | |
---|
5956 | ac_cv_header_time=no |
---|
5957 | fi |
---|
5958 | |
---|
5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5960 | fi |
---|
5961 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
5962 | $as_echo "$ac_cv_header_time" >&6; } |
---|
5963 | if test $ac_cv_header_time = yes; then |
---|
5964 | |
---|
5965 | cat >>confdefs.h <<\_ACEOF |
---|
5966 | #define TIME_WITH_SYS_TIME 1 |
---|
5967 | _ACEOF |
---|
5968 | |
---|
5969 | fi |
---|
5970 | |
---|
5971 | |
---|
5972 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
5973 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
---|
5974 | if test "${ac_cv_struct_tm+set}" = set; then |
---|
5975 | $as_echo_n "(cached) " >&6 |
---|
5976 | else |
---|
5977 | cat >conftest.$ac_ext <<_ACEOF |
---|
5978 | /* confdefs.h. */ |
---|
5979 | _ACEOF |
---|
5980 | cat confdefs.h >>conftest.$ac_ext |
---|
5981 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5982 | /* end confdefs.h. */ |
---|
5983 | #include <sys/types.h> |
---|
5984 | #include <time.h> |
---|
5985 | |
---|
5986 | int |
---|
5987 | main () |
---|
5988 | { |
---|
5989 | struct tm tm; |
---|
5990 | int *p = &tm.tm_sec; |
---|
5991 | return !p; |
---|
5992 | ; |
---|
5993 | return 0; |
---|
5994 | } |
---|
5995 | _ACEOF |
---|
5996 | rm -f conftest.$ac_objext |
---|
5997 | if { (ac_try="$ac_compile" |
---|
5998 | case "(($ac_try" in |
---|
5999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6000 | *) ac_try_echo=$ac_try;; |
---|
6001 | esac |
---|
6002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6003 | $as_echo "$ac_try_echo") >&5 |
---|
6004 | (eval "$ac_compile") 2>conftest.er1 |
---|
6005 | ac_status=$? |
---|
6006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6007 | rm -f conftest.er1 |
---|
6008 | cat conftest.err >&5 |
---|
6009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6010 | (exit $ac_status); } && { |
---|
6011 | test -z "$ac_c_werror_flag" || |
---|
6012 | test ! -s conftest.err |
---|
6013 | } && test -s conftest.$ac_objext; then |
---|
6014 | ac_cv_struct_tm=time.h |
---|
6015 | else |
---|
6016 | $as_echo "$as_me: failed program was:" >&5 |
---|
6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6018 | |
---|
6019 | ac_cv_struct_tm=sys/time.h |
---|
6020 | fi |
---|
6021 | |
---|
6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6023 | fi |
---|
6024 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
---|
6025 | $as_echo "$ac_cv_struct_tm" >&6; } |
---|
6026 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
6027 | |
---|
6028 | cat >>confdefs.h <<\_ACEOF |
---|
6029 | #define TM_IN_SYS_TIME 1 |
---|
6030 | _ACEOF |
---|
6031 | |
---|
6032 | fi |
---|
6033 | |
---|
6034 | |
---|
6035 | # Set RETSIGTYPE to the proper return type for a signal handler (void or int) |
---|
6036 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
6037 | $as_echo_n "checking return type of signal handlers... " >&6; } |
---|
6038 | if test "${ac_cv_type_signal+set}" = set; then |
---|
6039 | $as_echo_n "(cached) " >&6 |
---|
6040 | else |
---|
6041 | cat >conftest.$ac_ext <<_ACEOF |
---|
6042 | /* confdefs.h. */ |
---|
6043 | _ACEOF |
---|
6044 | cat confdefs.h >>conftest.$ac_ext |
---|
6045 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6046 | /* end confdefs.h. */ |
---|
6047 | #include <sys/types.h> |
---|
6048 | #include <signal.h> |
---|
6049 | |
---|
6050 | int |
---|
6051 | main () |
---|
6052 | { |
---|
6053 | return *(signal (0, 0)) (0) == 1; |
---|
6054 | ; |
---|
6055 | return 0; |
---|
6056 | } |
---|
6057 | _ACEOF |
---|
6058 | rm -f conftest.$ac_objext |
---|
6059 | if { (ac_try="$ac_compile" |
---|
6060 | case "(($ac_try" in |
---|
6061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6062 | *) ac_try_echo=$ac_try;; |
---|
6063 | esac |
---|
6064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6065 | $as_echo "$ac_try_echo") >&5 |
---|
6066 | (eval "$ac_compile") 2>conftest.er1 |
---|
6067 | ac_status=$? |
---|
6068 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6069 | rm -f conftest.er1 |
---|
6070 | cat conftest.err >&5 |
---|
6071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6072 | (exit $ac_status); } && { |
---|
6073 | test -z "$ac_c_werror_flag" || |
---|
6074 | test ! -s conftest.err |
---|
6075 | } && test -s conftest.$ac_objext; then |
---|
6076 | ac_cv_type_signal=int |
---|
6077 | else |
---|
6078 | $as_echo "$as_me: failed program was:" >&5 |
---|
6079 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6080 | |
---|
6081 | ac_cv_type_signal=void |
---|
6082 | fi |
---|
6083 | |
---|
6084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6085 | fi |
---|
6086 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
6087 | $as_echo "$ac_cv_type_signal" >&6; } |
---|
6088 | |
---|
6089 | cat >>confdefs.h <<_ACEOF |
---|
6090 | #define RETSIGTYPE $ac_cv_type_signal |
---|
6091 | _ACEOF |
---|
6092 | |
---|
6093 | |
---|
6094 | |
---|
6095 | # Roderick Bloem (rbloem@colorado.edu) : On Irix we need ttold |
---|
6096 | case "$target" in |
---|
6097 | mips-sgi-irix*) |
---|
6098 | cat >>confdefs.h <<\_ACEOF |
---|
6099 | #define NEED_TTOLD 1 |
---|
6100 | _ACEOF |
---|
6101 | ;; |
---|
6102 | esac |
---|
6103 | |
---|
6104 | #---------------------------------------------------------------------- |
---|
6105 | # Checks for library functions. |
---|
6106 | #---------------------------------------------------------------------- |
---|
6107 | |
---|
6108 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
6109 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
6110 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
---|
6111 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
6112 | $as_echo_n "(cached) " >&6 |
---|
6113 | else |
---|
6114 | ac_pattern="Autoconf.*'x'" |
---|
6115 | cat >conftest.$ac_ext <<_ACEOF |
---|
6116 | /* confdefs.h. */ |
---|
6117 | _ACEOF |
---|
6118 | cat confdefs.h >>conftest.$ac_ext |
---|
6119 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6120 | /* end confdefs.h. */ |
---|
6121 | #include <sgtty.h> |
---|
6122 | Autoconf TIOCGETP |
---|
6123 | _ACEOF |
---|
6124 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6125 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
6126 | ac_cv_prog_gcc_traditional=yes |
---|
6127 | else |
---|
6128 | ac_cv_prog_gcc_traditional=no |
---|
6129 | fi |
---|
6130 | rm -f conftest* |
---|
6131 | |
---|
6132 | |
---|
6133 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
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 | #include <termio.h> |
---|
6141 | Autoconf TCGETA |
---|
6142 | _ACEOF |
---|
6143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6144 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
6145 | ac_cv_prog_gcc_traditional=yes |
---|
6146 | fi |
---|
6147 | rm -f conftest* |
---|
6148 | |
---|
6149 | fi |
---|
6150 | fi |
---|
6151 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
6152 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
---|
6153 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
6154 | CC="$CC -traditional" |
---|
6155 | fi |
---|
6156 | fi |
---|
6157 | |
---|
6158 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
---|
6159 | $as_echo_n "checking for working memcmp... " >&6; } |
---|
6160 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
---|
6161 | $as_echo_n "(cached) " >&6 |
---|
6162 | else |
---|
6163 | if test "$cross_compiling" = yes; then |
---|
6164 | ac_cv_func_memcmp_working=no |
---|
6165 | else |
---|
6166 | cat >conftest.$ac_ext <<_ACEOF |
---|
6167 | /* confdefs.h. */ |
---|
6168 | _ACEOF |
---|
6169 | cat confdefs.h >>conftest.$ac_ext |
---|
6170 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6171 | /* end confdefs.h. */ |
---|
6172 | $ac_includes_default |
---|
6173 | int |
---|
6174 | main () |
---|
6175 | { |
---|
6176 | |
---|
6177 | /* Some versions of memcmp are not 8-bit clean. */ |
---|
6178 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
---|
6179 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
---|
6180 | return 1; |
---|
6181 | |
---|
6182 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
---|
6183 | or more and with at least one buffer not starting on a 4-byte boundary. |
---|
6184 | William Lewis provided this test program. */ |
---|
6185 | { |
---|
6186 | char foo[21]; |
---|
6187 | char bar[21]; |
---|
6188 | int i; |
---|
6189 | for (i = 0; i < 4; i++) |
---|
6190 | { |
---|
6191 | char *a = foo + i; |
---|
6192 | char *b = bar + i; |
---|
6193 | strcpy (a, "--------01111111"); |
---|
6194 | strcpy (b, "--------10000000"); |
---|
6195 | if (memcmp (a, b, 16) >= 0) |
---|
6196 | return 1; |
---|
6197 | } |
---|
6198 | return 0; |
---|
6199 | } |
---|
6200 | |
---|
6201 | ; |
---|
6202 | return 0; |
---|
6203 | } |
---|
6204 | _ACEOF |
---|
6205 | rm -f conftest$ac_exeext |
---|
6206 | if { (ac_try="$ac_link" |
---|
6207 | case "(($ac_try" in |
---|
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6209 | *) ac_try_echo=$ac_try;; |
---|
6210 | esac |
---|
6211 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6212 | $as_echo "$ac_try_echo") >&5 |
---|
6213 | (eval "$ac_link") 2>&5 |
---|
6214 | ac_status=$? |
---|
6215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6217 | { (case "(($ac_try" in |
---|
6218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6219 | *) ac_try_echo=$ac_try;; |
---|
6220 | esac |
---|
6221 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6222 | $as_echo "$ac_try_echo") >&5 |
---|
6223 | (eval "$ac_try") 2>&5 |
---|
6224 | ac_status=$? |
---|
6225 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6226 | (exit $ac_status); }; }; then |
---|
6227 | ac_cv_func_memcmp_working=yes |
---|
6228 | else |
---|
6229 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
6230 | $as_echo "$as_me: failed program was:" >&5 |
---|
6231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6232 | |
---|
6233 | ( exit $ac_status ) |
---|
6234 | ac_cv_func_memcmp_working=no |
---|
6235 | fi |
---|
6236 | rm -rf conftest.dSYM |
---|
6237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6238 | fi |
---|
6239 | |
---|
6240 | |
---|
6241 | fi |
---|
6242 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
---|
6243 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
---|
6244 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
---|
6245 | *" memcmp.$ac_objext "* ) ;; |
---|
6246 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
---|
6247 | ;; |
---|
6248 | esac |
---|
6249 | |
---|
6250 | |
---|
6251 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
6252 | $as_echo_n "checking return type of signal handlers... " >&6; } |
---|
6253 | if test "${ac_cv_type_signal+set}" = set; then |
---|
6254 | $as_echo_n "(cached) " >&6 |
---|
6255 | else |
---|
6256 | cat >conftest.$ac_ext <<_ACEOF |
---|
6257 | /* confdefs.h. */ |
---|
6258 | _ACEOF |
---|
6259 | cat confdefs.h >>conftest.$ac_ext |
---|
6260 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6261 | /* end confdefs.h. */ |
---|
6262 | #include <sys/types.h> |
---|
6263 | #include <signal.h> |
---|
6264 | |
---|
6265 | int |
---|
6266 | main () |
---|
6267 | { |
---|
6268 | return *(signal (0, 0)) (0) == 1; |
---|
6269 | ; |
---|
6270 | return 0; |
---|
6271 | } |
---|
6272 | _ACEOF |
---|
6273 | rm -f conftest.$ac_objext |
---|
6274 | if { (ac_try="$ac_compile" |
---|
6275 | case "(($ac_try" in |
---|
6276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6277 | *) ac_try_echo=$ac_try;; |
---|
6278 | esac |
---|
6279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6280 | $as_echo "$ac_try_echo") >&5 |
---|
6281 | (eval "$ac_compile") 2>conftest.er1 |
---|
6282 | ac_status=$? |
---|
6283 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6284 | rm -f conftest.er1 |
---|
6285 | cat conftest.err >&5 |
---|
6286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6287 | (exit $ac_status); } && { |
---|
6288 | test -z "$ac_c_werror_flag" || |
---|
6289 | test ! -s conftest.err |
---|
6290 | } && test -s conftest.$ac_objext; then |
---|
6291 | ac_cv_type_signal=int |
---|
6292 | else |
---|
6293 | $as_echo "$as_me: failed program was:" >&5 |
---|
6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6295 | |
---|
6296 | ac_cv_type_signal=void |
---|
6297 | fi |
---|
6298 | |
---|
6299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6300 | fi |
---|
6301 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
6302 | $as_echo "$ac_cv_type_signal" >&6; } |
---|
6303 | |
---|
6304 | cat >>confdefs.h <<_ACEOF |
---|
6305 | #define RETSIGTYPE $ac_cv_type_signal |
---|
6306 | _ACEOF |
---|
6307 | |
---|
6308 | |
---|
6309 | |
---|
6310 | |
---|
6311 | |
---|
6312 | |
---|
6313 | |
---|
6314 | |
---|
6315 | |
---|
6316 | |
---|
6317 | for ac_func in gettimeofday strchr strstr setvbuf getenv unlink mkstemp close |
---|
6318 | do |
---|
6319 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6320 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6321 | $as_echo_n "checking for $ac_func... " >&6; } |
---|
6322 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6323 | $as_echo_n "(cached) " >&6 |
---|
6324 | else |
---|
6325 | cat >conftest.$ac_ext <<_ACEOF |
---|
6326 | /* confdefs.h. */ |
---|
6327 | _ACEOF |
---|
6328 | cat confdefs.h >>conftest.$ac_ext |
---|
6329 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6330 | /* end confdefs.h. */ |
---|
6331 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
6332 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6333 | #define $ac_func innocuous_$ac_func |
---|
6334 | |
---|
6335 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6336 | which can conflict with char $ac_func (); below. |
---|
6337 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6338 | <limits.h> exists even on freestanding compilers. */ |
---|
6339 | |
---|
6340 | #ifdef __STDC__ |
---|
6341 | # include <limits.h> |
---|
6342 | #else |
---|
6343 | # include <assert.h> |
---|
6344 | #endif |
---|
6345 | |
---|
6346 | #undef $ac_func |
---|
6347 | |
---|
6348 | /* Override any GCC internal prototype to avoid an error. |
---|
6349 | Use char because int might match the return type of a GCC |
---|
6350 | builtin and then its argument prototype would still apply. */ |
---|
6351 | #ifdef __cplusplus |
---|
6352 | extern "C" |
---|
6353 | #endif |
---|
6354 | char $ac_func (); |
---|
6355 | /* The GNU C library defines this for functions which it implements |
---|
6356 | to always fail with ENOSYS. Some functions are actually named |
---|
6357 | something starting with __ and the normal name is an alias. */ |
---|
6358 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
6359 | choke me |
---|
6360 | #endif |
---|
6361 | |
---|
6362 | int |
---|
6363 | main () |
---|
6364 | { |
---|
6365 | return $ac_func (); |
---|
6366 | ; |
---|
6367 | return 0; |
---|
6368 | } |
---|
6369 | _ACEOF |
---|
6370 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6371 | if { (ac_try="$ac_link" |
---|
6372 | case "(($ac_try" in |
---|
6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6374 | *) ac_try_echo=$ac_try;; |
---|
6375 | esac |
---|
6376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
---|
6377 | $as_echo "$ac_try_echo") >&5 |
---|
6378 | (eval "$ac_link") 2>conftest.er1 |
---|
6379 | ac_status=$? |
---|
6380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6381 | rm -f conftest.er1 |
---|
6382 | cat conftest.err >&5 |
---|
6383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6384 | (exit $ac_status); } && { |
---|
6385 | test -z "$ac_c_werror_flag" || |
---|
6386 | test ! -s conftest.err |
---|
6387 | } && test -s conftest$ac_exeext && { |
---|
6388 | test "$cross_compiling" = yes || |
---|
6389 | $as_test_x conftest$ac_exeext |
---|
6390 | }; then |
---|
6391 | eval "$as_ac_var=yes" |
---|
6392 | else |
---|
6393 | $as_echo "$as_me: failed program was:" >&5 |
---|
6394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6395 | |
---|
6396 | eval "$as_ac_var=no" |
---|
6397 | fi |
---|
6398 | |
---|
6399 | rm -rf conftest.dSYM |
---|
6400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
6401 | conftest$ac_exeext conftest.$ac_ext |
---|
6402 | fi |
---|
6403 | ac_res=`eval 'as_val=${'$as_ac_var'} |
---|
6404 | $as_echo "$as_val"'` |
---|
6405 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6406 | $as_echo "$ac_res" >&6; } |
---|
6407 | as_val=`eval 'as_val=${'$as_ac_var'} |
---|
6408 | $as_echo "$as_val"'` |
---|
6409 | if test "x$as_val" = x""yes; then |
---|
6410 | cat >>confdefs.h <<_ACEOF |
---|
6411 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6412 | _ACEOF |
---|
6413 | |
---|
6414 | fi |
---|
6415 | done |
---|
6416 | |
---|
6417 | |
---|
6418 | #----------------------------------------------------------------------- |
---|
6419 | # Check for mawk, gawk, nawk, awk in that order |
---|
6420 | #----------------------------------------------------------------------- |
---|
6421 | for ac_prog in gawk mawk nawk awk |
---|
6422 | do |
---|
6423 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6424 | set dummy $ac_prog; ac_word=$2 |
---|
6425 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6426 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6427 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
6428 | $as_echo_n "(cached) " >&6 |
---|
6429 | else |
---|
6430 | if test -n "$AWK"; then |
---|
6431 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
6432 | else |
---|
6433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6434 | for as_dir in $PATH |
---|
6435 | do |
---|
6436 | IFS=$as_save_IFS |
---|
6437 | test -z "$as_dir" && as_dir=. |
---|
6438 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6440 | ac_cv_prog_AWK="$ac_prog" |
---|
6441 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6442 | break 2 |
---|
6443 | fi |
---|
6444 | done |
---|
6445 | done |
---|
6446 | IFS=$as_save_IFS |
---|
6447 | |
---|
6448 | fi |
---|
6449 | fi |
---|
6450 | AWK=$ac_cv_prog_AWK |
---|
6451 | if test -n "$AWK"; then |
---|
6452 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
6453 | $as_echo "$AWK" >&6; } |
---|
6454 | else |
---|
6455 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
---|
6456 | $as_echo "no" >&6; } |
---|
6457 | fi |
---|
6458 | |
---|
6459 | |
---|
6460 | test -n "$AWK" && break |
---|
6461 | done |
---|
6462 | |
---|
6463 | |
---|
6464 | #---------------------------------------------------------------------- |
---|
6465 | # Create the Makefile from Makefile.in |
---|
6466 | #---------------------------------------------------------------------- |
---|
6467 | if test "$gcc_ok" = "g++"; then |
---|
6468 | CC=$gcc_ok |
---|
6469 | fi |
---|
6470 | ac_config_files="$ac_config_files Makefile" |
---|
6471 | |
---|
6472 | cat >confcache <<\_ACEOF |
---|
6473 | # This file is a shell script that caches the results of configure |
---|
6474 | # tests run on this system so they can be shared between configure |
---|
6475 | # scripts and configure runs, see configure's option --config-cache. |
---|
6476 | # It is not useful on other systems. If it contains results you don't |
---|
6477 | # want to keep, you may remove or edit it. |
---|
6478 | # |
---|
6479 | # config.status only pays attention to the cache file if you give it |
---|
6480 | # the --recheck option to rerun configure. |
---|
6481 | # |
---|
6482 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6483 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6484 | # following values. |
---|
6485 | |
---|
6486 | _ACEOF |
---|
6487 | |
---|
6488 | # The following way of writing the cache mishandles newlines in values, |
---|
6489 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6490 | # So, we kill variables containing newlines. |
---|
6491 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6492 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6493 | ( |
---|
6494 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6495 | eval ac_val=\$$ac_var |
---|
6496 | case $ac_val in #( |
---|
6497 | *${as_nl}*) |
---|
6498 | case $ac_var in #( |
---|
6499 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6500 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6501 | esac |
---|
6502 | case $ac_var in #( |
---|
6503 | _ | IFS | as_nl) ;; #( |
---|
6504 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6505 | *) $as_unset $ac_var ;; |
---|
6506 | esac ;; |
---|
6507 | esac |
---|
6508 | done |
---|
6509 | |
---|
6510 | (set) 2>&1 | |
---|
6511 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6512 | *${as_nl}ac_space=\ *) |
---|
6513 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6514 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6515 | sed -n \ |
---|
6516 | "s/'/'\\\\''/g; |
---|
6517 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6518 | ;; #( |
---|
6519 | *) |
---|
6520 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6521 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6522 | ;; |
---|
6523 | esac | |
---|
6524 | sort |
---|
6525 | ) | |
---|
6526 | sed ' |
---|
6527 | /^ac_cv_env_/b end |
---|
6528 | t clear |
---|
6529 | :clear |
---|
6530 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6531 | t end |
---|
6532 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6533 | :end' >>confcache |
---|
6534 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6535 | if test -w "$cache_file"; then |
---|
6536 | test "x$cache_file" != "x/dev/null" && |
---|
6537 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
6538 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6539 | cat confcache >$cache_file |
---|
6540 | else |
---|
6541 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
6542 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6543 | fi |
---|
6544 | fi |
---|
6545 | rm -f confcache |
---|
6546 | |
---|
6547 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6548 | # Let make expand exec_prefix. |
---|
6549 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6550 | |
---|
6551 | # Transform confdefs.h into DEFS. |
---|
6552 | # Protect against shell expansion while executing Makefile rules. |
---|
6553 | # Protect against Makefile macro expansion. |
---|
6554 | # |
---|
6555 | # If the first sed substitution is executed (which looks for macros that |
---|
6556 | # take arguments), then branch to the quote section. Otherwise, |
---|
6557 | # look for a macro that doesn't take arguments. |
---|
6558 | ac_script=' |
---|
6559 | :mline |
---|
6560 | /\\$/{ |
---|
6561 | N |
---|
6562 | s,\\\n,, |
---|
6563 | b mline |
---|
6564 | } |
---|
6565 | t clear |
---|
6566 | :clear |
---|
6567 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
6568 | t quote |
---|
6569 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
6570 | t quote |
---|
6571 | b any |
---|
6572 | :quote |
---|
6573 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
6574 | s/\[/\\&/g |
---|
6575 | s/\]/\\&/g |
---|
6576 | s/\$/$$/g |
---|
6577 | H |
---|
6578 | :any |
---|
6579 | ${ |
---|
6580 | g |
---|
6581 | s/^\n// |
---|
6582 | s/\n/ /g |
---|
6583 | p |
---|
6584 | } |
---|
6585 | ' |
---|
6586 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
6587 | |
---|
6588 | |
---|
6589 | ac_libobjs= |
---|
6590 | ac_ltlibobjs= |
---|
6591 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6592 | # 1. Remove the extension, and $U if already installed. |
---|
6593 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6594 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6595 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6596 | # will be set to the directory where LIBOBJS objects are built. |
---|
6597 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6598 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6599 | done |
---|
6600 | LIBOBJS=$ac_libobjs |
---|
6601 | |
---|
6602 | LTLIBOBJS=$ac_ltlibobjs |
---|
6603 | |
---|
6604 | |
---|
6605 | |
---|
6606 | : ${CONFIG_STATUS=./config.status} |
---|
6607 | ac_write_fail=0 |
---|
6608 | ac_clean_files_save=$ac_clean_files |
---|
6609 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6610 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6611 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6612 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6613 | #! $SHELL |
---|
6614 | # Generated by $as_me. |
---|
6615 | # Run this file to recreate the current configuration. |
---|
6616 | # Compiler output produced by configure, useful for debugging |
---|
6617 | # configure, is in config.log if it exists. |
---|
6618 | |
---|
6619 | debug=false |
---|
6620 | ac_cs_recheck=false |
---|
6621 | ac_cs_silent=false |
---|
6622 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6623 | _ACEOF |
---|
6624 | |
---|
6625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6626 | ## --------------------- ## |
---|
6627 | ## M4sh Initialization. ## |
---|
6628 | ## --------------------- ## |
---|
6629 | |
---|
6630 | # Be more Bourne compatible |
---|
6631 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6632 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6633 | emulate sh |
---|
6634 | NULLCMD=: |
---|
6635 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6636 | # is contrary to our usage. Disable this feature. |
---|
6637 | alias -g '${1+"$@"}'='"$@"' |
---|
6638 | setopt NO_GLOB_SUBST |
---|
6639 | else |
---|
6640 | case `(set -o) 2>/dev/null` in |
---|
6641 | *posix*) set -o posix ;; |
---|
6642 | esac |
---|
6643 | |
---|
6644 | fi |
---|
6645 | |
---|
6646 | |
---|
6647 | |
---|
6648 | |
---|
6649 | # PATH needs CR |
---|
6650 | # Avoid depending upon Character Ranges. |
---|
6651 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6652 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6653 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6654 | as_cr_digits='0123456789' |
---|
6655 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6656 | |
---|
6657 | as_nl=' |
---|
6658 | ' |
---|
6659 | export as_nl |
---|
6660 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6661 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6662 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6663 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6664 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6665 | as_echo='printf %s\n' |
---|
6666 | as_echo_n='printf %s' |
---|
6667 | else |
---|
6668 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6669 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6670 | as_echo_n='/usr/ucb/echo -n' |
---|
6671 | else |
---|
6672 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6673 | as_echo_n_body='eval |
---|
6674 | arg=$1; |
---|
6675 | case $arg in |
---|
6676 | *"$as_nl"*) |
---|
6677 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6678 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6679 | esac; |
---|
6680 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6681 | ' |
---|
6682 | export as_echo_n_body |
---|
6683 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6684 | fi |
---|
6685 | export as_echo_body |
---|
6686 | as_echo='sh -c $as_echo_body as_echo' |
---|
6687 | fi |
---|
6688 | |
---|
6689 | # The user is always right. |
---|
6690 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6691 | PATH_SEPARATOR=: |
---|
6692 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6693 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6694 | PATH_SEPARATOR=';' |
---|
6695 | } |
---|
6696 | fi |
---|
6697 | |
---|
6698 | # Support unset when possible. |
---|
6699 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6700 | as_unset=unset |
---|
6701 | else |
---|
6702 | as_unset=false |
---|
6703 | fi |
---|
6704 | |
---|
6705 | |
---|
6706 | # IFS |
---|
6707 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6708 | # there to prevent editors from complaining about space-tab. |
---|
6709 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6710 | # splitting by setting IFS to empty value.) |
---|
6711 | IFS=" "" $as_nl" |
---|
6712 | |
---|
6713 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6714 | case $0 in |
---|
6715 | *[\\/]* ) as_myself=$0 ;; |
---|
6716 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6717 | for as_dir in $PATH |
---|
6718 | do |
---|
6719 | IFS=$as_save_IFS |
---|
6720 | test -z "$as_dir" && as_dir=. |
---|
6721 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6722 | done |
---|
6723 | IFS=$as_save_IFS |
---|
6724 | |
---|
6725 | ;; |
---|
6726 | esac |
---|
6727 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6728 | # in which case we are not to be found in the path. |
---|
6729 | if test "x$as_myself" = x; then |
---|
6730 | as_myself=$0 |
---|
6731 | fi |
---|
6732 | if test ! -f "$as_myself"; then |
---|
6733 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6734 | { (exit 1); exit 1; } |
---|
6735 | fi |
---|
6736 | |
---|
6737 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6738 | for as_var in ENV MAIL MAILPATH |
---|
6739 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
6740 | done |
---|
6741 | PS1='$ ' |
---|
6742 | PS2='> ' |
---|
6743 | PS4='+ ' |
---|
6744 | |
---|
6745 | # NLS nuisances. |
---|
6746 | LC_ALL=C |
---|
6747 | export LC_ALL |
---|
6748 | LANGUAGE=C |
---|
6749 | export LANGUAGE |
---|
6750 | |
---|
6751 | # Required to use basename. |
---|
6752 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6753 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6754 | as_expr=expr |
---|
6755 | else |
---|
6756 | as_expr=false |
---|
6757 | fi |
---|
6758 | |
---|
6759 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6760 | as_basename=basename |
---|
6761 | else |
---|
6762 | as_basename=false |
---|
6763 | fi |
---|
6764 | |
---|
6765 | |
---|
6766 | # Name of the executable. |
---|
6767 | as_me=`$as_basename -- "$0" || |
---|
6768 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6769 | X"$0" : 'X\(//\)$' \| \ |
---|
6770 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6771 | $as_echo X/"$0" | |
---|
6772 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6773 | s//\1/ |
---|
6774 | q |
---|
6775 | } |
---|
6776 | /^X\/\(\/\/\)$/{ |
---|
6777 | s//\1/ |
---|
6778 | q |
---|
6779 | } |
---|
6780 | /^X\/\(\/\).*/{ |
---|
6781 | s//\1/ |
---|
6782 | q |
---|
6783 | } |
---|
6784 | s/.*/./; q'` |
---|
6785 | |
---|
6786 | # CDPATH. |
---|
6787 | $as_unset CDPATH |
---|
6788 | |
---|
6789 | |
---|
6790 | |
---|
6791 | as_lineno_1=$LINENO |
---|
6792 | as_lineno_2=$LINENO |
---|
6793 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6794 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
6795 | |
---|
6796 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6797 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6798 | # line-number line after each line using $LINENO; the second 'sed' |
---|
6799 | # does the real work. The second script uses 'N' to pair each |
---|
6800 | # line-number line with the line containing $LINENO, and appends |
---|
6801 | # trailing '-' during substitution so that $LINENO is not a special |
---|
6802 | # case at line end. |
---|
6803 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6804 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
6805 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
6806 | sed -n ' |
---|
6807 | p |
---|
6808 | /[$]LINENO/= |
---|
6809 | ' <$as_myself | |
---|
6810 | sed ' |
---|
6811 | s/[$]LINENO.*/&-/ |
---|
6812 | t lineno |
---|
6813 | b |
---|
6814 | :lineno |
---|
6815 | N |
---|
6816 | :loop |
---|
6817 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
6818 | t loop |
---|
6819 | s/-\n.*// |
---|
6820 | ' >$as_me.lineno && |
---|
6821 | chmod +x "$as_me.lineno" || |
---|
6822 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
6823 | { (exit 1); exit 1; }; } |
---|
6824 | |
---|
6825 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6826 | # (the dirname of $[0] is not the place where we might find the |
---|
6827 | # original and so on. Autoconf is especially sensitive to this). |
---|
6828 | . "./$as_me.lineno" |
---|
6829 | # Exit status is that of the last command. |
---|
6830 | exit |
---|
6831 | } |
---|
6832 | |
---|
6833 | |
---|
6834 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6835 | as_dirname=dirname |
---|
6836 | else |
---|
6837 | as_dirname=false |
---|
6838 | fi |
---|
6839 | |
---|
6840 | ECHO_C= ECHO_N= ECHO_T= |
---|
6841 | case `echo -n x` in |
---|
6842 | -n*) |
---|
6843 | case `echo 'x\c'` in |
---|
6844 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6845 | *) ECHO_C='\c';; |
---|
6846 | esac;; |
---|
6847 | *) |
---|
6848 | ECHO_N='-n';; |
---|
6849 | esac |
---|
6850 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6851 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6852 | as_expr=expr |
---|
6853 | else |
---|
6854 | as_expr=false |
---|
6855 | fi |
---|
6856 | |
---|
6857 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6858 | if test -d conf$$.dir; then |
---|
6859 | rm -f conf$$.dir/conf$$.file |
---|
6860 | else |
---|
6861 | rm -f conf$$.dir |
---|
6862 | mkdir conf$$.dir 2>/dev/null |
---|
6863 | fi |
---|
6864 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6865 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6866 | as_ln_s='ln -s' |
---|
6867 | # ... but there are two gotchas: |
---|
6868 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6869 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6870 | # In both cases, we have to default to `cp -p'. |
---|
6871 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6872 | as_ln_s='cp -p' |
---|
6873 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6874 | as_ln_s=ln |
---|
6875 | else |
---|
6876 | as_ln_s='cp -p' |
---|
6877 | fi |
---|
6878 | else |
---|
6879 | as_ln_s='cp -p' |
---|
6880 | fi |
---|
6881 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6882 | rmdir conf$$.dir 2>/dev/null |
---|
6883 | |
---|
6884 | if mkdir -p . 2>/dev/null; then |
---|
6885 | as_mkdir_p=: |
---|
6886 | else |
---|
6887 | test -d ./-p && rmdir ./-p |
---|
6888 | as_mkdir_p=false |
---|
6889 | fi |
---|
6890 | |
---|
6891 | if test -x / >/dev/null 2>&1; then |
---|
6892 | as_test_x='test -x' |
---|
6893 | else |
---|
6894 | if ls -dL / >/dev/null 2>&1; then |
---|
6895 | as_ls_L_option=L |
---|
6896 | else |
---|
6897 | as_ls_L_option= |
---|
6898 | fi |
---|
6899 | as_test_x=' |
---|
6900 | eval sh -c '\'' |
---|
6901 | if test -d "$1"; then |
---|
6902 | test -d "$1/."; |
---|
6903 | else |
---|
6904 | case $1 in |
---|
6905 | -*)set "./$1";; |
---|
6906 | esac; |
---|
6907 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
6908 | ???[sx]*):;;*)false;;esac;fi |
---|
6909 | '\'' sh |
---|
6910 | ' |
---|
6911 | fi |
---|
6912 | as_executable_p=$as_test_x |
---|
6913 | |
---|
6914 | # Sed expression to map a string onto a valid CPP name. |
---|
6915 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6916 | |
---|
6917 | # Sed expression to map a string onto a valid variable name. |
---|
6918 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6919 | |
---|
6920 | |
---|
6921 | exec 6>&1 |
---|
6922 | |
---|
6923 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
6924 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6925 | # values after options handling. |
---|
6926 | ac_log=" |
---|
6927 | This file was extended by $as_me, which was |
---|
6928 | generated by GNU Autoconf 2.63. Invocation command line was |
---|
6929 | |
---|
6930 | CONFIG_FILES = $CONFIG_FILES |
---|
6931 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6932 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6933 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6934 | $ $0 $@ |
---|
6935 | |
---|
6936 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6937 | " |
---|
6938 | |
---|
6939 | _ACEOF |
---|
6940 | |
---|
6941 | case $ac_config_files in *" |
---|
6942 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6943 | esac |
---|
6944 | |
---|
6945 | |
---|
6946 | |
---|
6947 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6948 | # Files that config.status was made for. |
---|
6949 | config_files="`echo $ac_config_files`" |
---|
6950 | |
---|
6951 | _ACEOF |
---|
6952 | |
---|
6953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6954 | ac_cs_usage="\ |
---|
6955 | \`$as_me' instantiates files from templates according to the |
---|
6956 | current configuration. |
---|
6957 | |
---|
6958 | Usage: $0 [OPTION]... [FILE]... |
---|
6959 | |
---|
6960 | -h, --help print this help, then exit |
---|
6961 | -V, --version print version number and configuration settings, then exit |
---|
6962 | -q, --quiet, --silent |
---|
6963 | do not print progress messages |
---|
6964 | -d, --debug don't remove temporary files |
---|
6965 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6966 | --file=FILE[:TEMPLATE] |
---|
6967 | instantiate the configuration file FILE |
---|
6968 | |
---|
6969 | Configuration files: |
---|
6970 | $config_files |
---|
6971 | |
---|
6972 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6973 | |
---|
6974 | _ACEOF |
---|
6975 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6976 | ac_cs_version="\\ |
---|
6977 | config.status |
---|
6978 | configured by $0, generated by GNU Autoconf 2.63, |
---|
6979 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
6980 | |
---|
6981 | Copyright (C) 2008 Free Software Foundation, Inc. |
---|
6982 | This config.status script is free software; the Free Software Foundation |
---|
6983 | gives unlimited permission to copy, distribute and modify it." |
---|
6984 | |
---|
6985 | ac_pwd='$ac_pwd' |
---|
6986 | srcdir='$srcdir' |
---|
6987 | INSTALL='$INSTALL' |
---|
6988 | AWK='$AWK' |
---|
6989 | test -n "\$AWK" || AWK=awk |
---|
6990 | _ACEOF |
---|
6991 | |
---|
6992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6993 | # The default lists apply if the user does not specify any file. |
---|
6994 | ac_need_defaults=: |
---|
6995 | while test $# != 0 |
---|
6996 | do |
---|
6997 | case $1 in |
---|
6998 | --*=*) |
---|
6999 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
7000 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
7001 | ac_shift=: |
---|
7002 | ;; |
---|
7003 | *) |
---|
7004 | ac_option=$1 |
---|
7005 | ac_optarg=$2 |
---|
7006 | ac_shift=shift |
---|
7007 | ;; |
---|
7008 | esac |
---|
7009 | |
---|
7010 | case $ac_option in |
---|
7011 | # Handling of the options. |
---|
7012 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7013 | ac_cs_recheck=: ;; |
---|
7014 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
7015 | $as_echo "$ac_cs_version"; exit ;; |
---|
7016 | --debug | --debu | --deb | --de | --d | -d ) |
---|
7017 | debug=: ;; |
---|
7018 | --file | --fil | --fi | --f ) |
---|
7019 | $ac_shift |
---|
7020 | case $ac_optarg in |
---|
7021 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
7022 | esac |
---|
7023 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
---|
7024 | ac_need_defaults=false;; |
---|
7025 | --he | --h | --help | --hel | -h ) |
---|
7026 | $as_echo "$ac_cs_usage"; exit ;; |
---|
7027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7028 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7029 | ac_cs_silent=: ;; |
---|
7030 | |
---|
7031 | # This is an error. |
---|
7032 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
---|
7033 | Try \`$0 --help' for more information." >&2 |
---|
7034 | { (exit 1); exit 1; }; } ;; |
---|
7035 | |
---|
7036 | *) ac_config_targets="$ac_config_targets $1" |
---|
7037 | ac_need_defaults=false ;; |
---|
7038 | |
---|
7039 | esac |
---|
7040 | shift |
---|
7041 | done |
---|
7042 | |
---|
7043 | ac_configure_extra_args= |
---|
7044 | |
---|
7045 | if $ac_cs_silent; then |
---|
7046 | exec 6>/dev/null |
---|
7047 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7048 | fi |
---|
7049 | |
---|
7050 | _ACEOF |
---|
7051 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7052 | if \$ac_cs_recheck; then |
---|
7053 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7054 | shift |
---|
7055 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
7056 | CONFIG_SHELL='$SHELL' |
---|
7057 | export CONFIG_SHELL |
---|
7058 | exec "\$@" |
---|
7059 | fi |
---|
7060 | |
---|
7061 | _ACEOF |
---|
7062 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7063 | exec 5>>config.log |
---|
7064 | { |
---|
7065 | echo |
---|
7066 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7067 | ## Running $as_me. ## |
---|
7068 | _ASBOX |
---|
7069 | $as_echo "$ac_log" |
---|
7070 | } >&5 |
---|
7071 | |
---|
7072 | _ACEOF |
---|
7073 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7074 | _ACEOF |
---|
7075 | |
---|
7076 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7077 | |
---|
7078 | # Handling of arguments. |
---|
7079 | for ac_config_target in $ac_config_targets |
---|
7080 | do |
---|
7081 | case $ac_config_target in |
---|
7082 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7083 | |
---|
7084 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
7085 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
7086 | { (exit 1); exit 1; }; };; |
---|
7087 | esac |
---|
7088 | done |
---|
7089 | |
---|
7090 | |
---|
7091 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7092 | # then the envvar interface is used. Set only those that are not. |
---|
7093 | # We use the long form for the default assignment because of an extremely |
---|
7094 | # bizarre bug on SunOS 4.1.3. |
---|
7095 | if $ac_need_defaults; then |
---|
7096 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7097 | fi |
---|
7098 | |
---|
7099 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7100 | # simply because there is no reason against having it here, and in addition, |
---|
7101 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7102 | # Hook for its removal unless debugging. |
---|
7103 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7104 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7105 | $debug || |
---|
7106 | { |
---|
7107 | tmp= |
---|
7108 | trap 'exit_status=$? |
---|
7109 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
7110 | ' 0 |
---|
7111 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
7112 | } |
---|
7113 | # Create a (secure) tmp directory for tmp files. |
---|
7114 | |
---|
7115 | { |
---|
7116 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7117 | test -n "$tmp" && test -d "$tmp" |
---|
7118 | } || |
---|
7119 | { |
---|
7120 | tmp=./conf$$-$RANDOM |
---|
7121 | (umask 077 && mkdir "$tmp") |
---|
7122 | } || |
---|
7123 | { |
---|
7124 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
---|
7125 | { (exit 1); exit 1; } |
---|
7126 | } |
---|
7127 | |
---|
7128 | # Set up the scripts for CONFIG_FILES section. |
---|
7129 | # No need to generate them if there are no CONFIG_FILES. |
---|
7130 | # This happens for instance with `./config.status config.h'. |
---|
7131 | if test -n "$CONFIG_FILES"; then |
---|
7132 | |
---|
7133 | |
---|
7134 | ac_cr=' |
---|
7135 | ' |
---|
7136 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7137 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7138 | ac_cs_awk_cr='\\r' |
---|
7139 | else |
---|
7140 | ac_cs_awk_cr=$ac_cr |
---|
7141 | fi |
---|
7142 | |
---|
7143 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
---|
7144 | _ACEOF |
---|
7145 | |
---|
7146 | |
---|
7147 | { |
---|
7148 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7149 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7150 | echo "_ACEOF" |
---|
7151 | } >conf$$subs.sh || |
---|
7152 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
7153 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
7154 | { (exit 1); exit 1; }; } |
---|
7155 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
---|
7156 | ac_delim='%!_!# ' |
---|
7157 | for ac_last_try in false false false false false :; do |
---|
7158 | . ./conf$$subs.sh || |
---|
7159 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
7160 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
7161 | { (exit 1); exit 1; }; } |
---|
7162 | |
---|
7163 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7164 | if test $ac_delim_n = $ac_delim_num; then |
---|
7165 | break |
---|
7166 | elif $ac_last_try; then |
---|
7167 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
7168 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
7169 | { (exit 1); exit 1; }; } |
---|
7170 | else |
---|
7171 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7172 | fi |
---|
7173 | done |
---|
7174 | rm -f conf$$subs.sh |
---|
7175 | |
---|
7176 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7177 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
---|
7178 | _ACEOF |
---|
7179 | sed -n ' |
---|
7180 | h |
---|
7181 | s/^/S["/; s/!.*/"]=/ |
---|
7182 | p |
---|
7183 | g |
---|
7184 | s/^[^!]*!// |
---|
7185 | :repl |
---|
7186 | t repl |
---|
7187 | s/'"$ac_delim"'$// |
---|
7188 | t delim |
---|
7189 | :nl |
---|
7190 | h |
---|
7191 | s/\(.\{148\}\).*/\1/ |
---|
7192 | t more1 |
---|
7193 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7194 | p |
---|
7195 | n |
---|
7196 | b repl |
---|
7197 | :more1 |
---|
7198 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7199 | p |
---|
7200 | g |
---|
7201 | s/.\{148\}// |
---|
7202 | t nl |
---|
7203 | :delim |
---|
7204 | h |
---|
7205 | s/\(.\{148\}\).*/\1/ |
---|
7206 | t more2 |
---|
7207 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7208 | p |
---|
7209 | b |
---|
7210 | :more2 |
---|
7211 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7212 | p |
---|
7213 | g |
---|
7214 | s/.\{148\}// |
---|
7215 | t delim |
---|
7216 | ' <conf$$subs.awk | sed ' |
---|
7217 | /^[^""]/{ |
---|
7218 | N |
---|
7219 | s/\n// |
---|
7220 | } |
---|
7221 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7222 | rm -f conf$$subs.awk |
---|
7223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7224 | _ACAWK |
---|
7225 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
---|
7226 | for (key in S) S_is_set[key] = 1 |
---|
7227 | FS = "" |
---|
7228 | |
---|
7229 | } |
---|
7230 | { |
---|
7231 | line = $ 0 |
---|
7232 | nfields = split(line, field, "@") |
---|
7233 | substed = 0 |
---|
7234 | len = length(field[1]) |
---|
7235 | for (i = 2; i < nfields; i++) { |
---|
7236 | key = field[i] |
---|
7237 | keylen = length(key) |
---|
7238 | if (S_is_set[key]) { |
---|
7239 | value = S[key] |
---|
7240 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7241 | len += length(value) + length(field[++i]) |
---|
7242 | substed = 1 |
---|
7243 | } else |
---|
7244 | len += 1 + keylen |
---|
7245 | } |
---|
7246 | |
---|
7247 | print line |
---|
7248 | } |
---|
7249 | |
---|
7250 | _ACAWK |
---|
7251 | _ACEOF |
---|
7252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7253 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7254 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7255 | else |
---|
7256 | cat |
---|
7257 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
---|
7258 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
---|
7259 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
---|
7260 | { (exit 1); exit 1; }; } |
---|
7261 | _ACEOF |
---|
7262 | |
---|
7263 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7264 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7265 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7266 | # (actually we leave an empty line to preserve line numbers). |
---|
7267 | if test "x$srcdir" = x.; then |
---|
7268 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7269 | s/:*\$(srcdir):*/:/ |
---|
7270 | s/:*\${srcdir}:*/:/ |
---|
7271 | s/:*@srcdir@:*/:/ |
---|
7272 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
7273 | s/:*$// |
---|
7274 | s/^[^=]*=[ ]*$// |
---|
7275 | }' |
---|
7276 | fi |
---|
7277 | |
---|
7278 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7279 | fi # test -n "$CONFIG_FILES" |
---|
7280 | |
---|
7281 | |
---|
7282 | eval set X " :F $CONFIG_FILES " |
---|
7283 | shift |
---|
7284 | for ac_tag |
---|
7285 | do |
---|
7286 | case $ac_tag in |
---|
7287 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7288 | esac |
---|
7289 | case $ac_mode$ac_tag in |
---|
7290 | :[FHL]*:*);; |
---|
7291 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
---|
7292 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
---|
7293 | { (exit 1); exit 1; }; };; |
---|
7294 | :[FH]-) ac_tag=-:-;; |
---|
7295 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7296 | esac |
---|
7297 | ac_save_IFS=$IFS |
---|
7298 | IFS=: |
---|
7299 | set x $ac_tag |
---|
7300 | IFS=$ac_save_IFS |
---|
7301 | shift |
---|
7302 | ac_file=$1 |
---|
7303 | shift |
---|
7304 | |
---|
7305 | case $ac_mode in |
---|
7306 | :L) ac_source=$1;; |
---|
7307 | :[FH]) |
---|
7308 | ac_file_inputs= |
---|
7309 | for ac_f |
---|
7310 | do |
---|
7311 | case $ac_f in |
---|
7312 | -) ac_f="$tmp/stdin";; |
---|
7313 | *) # Look for the file first in the build tree, then in the source tree |
---|
7314 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7315 | # because $ac_f cannot contain `:'. |
---|
7316 | test -f "$ac_f" || |
---|
7317 | case $ac_f in |
---|
7318 | [\\/$]*) false;; |
---|
7319 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7320 | esac || |
---|
7321 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
7322 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
7323 | { (exit 1); exit 1; }; };; |
---|
7324 | esac |
---|
7325 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7326 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
---|
7327 | done |
---|
7328 | |
---|
7329 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7330 | # use $as_me), people would be surprised to read: |
---|
7331 | # /* config.h. Generated by config.status. */ |
---|
7332 | configure_input='Generated from '` |
---|
7333 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7334 | `' by configure.' |
---|
7335 | if test x"$ac_file" != x-; then |
---|
7336 | configure_input="$ac_file. $configure_input" |
---|
7337 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7338 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7339 | fi |
---|
7340 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7341 | case $configure_input in #( |
---|
7342 | *\&* | *\|* | *\\* ) |
---|
7343 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7344 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7345 | *) ac_sed_conf_input=$configure_input;; |
---|
7346 | esac |
---|
7347 | |
---|
7348 | case $ac_tag in |
---|
7349 | *:-:* | *:-) cat >"$tmp/stdin" \ |
---|
7350 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
7351 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
7352 | { (exit 1); exit 1; }; } ;; |
---|
7353 | esac |
---|
7354 | ;; |
---|
7355 | esac |
---|
7356 | |
---|
7357 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7358 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7359 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7360 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7361 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7362 | $as_echo X"$ac_file" | |
---|
7363 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7364 | s//\1/ |
---|
7365 | q |
---|
7366 | } |
---|
7367 | /^X\(\/\/\)[^/].*/{ |
---|
7368 | s//\1/ |
---|
7369 | q |
---|
7370 | } |
---|
7371 | /^X\(\/\/\)$/{ |
---|
7372 | s//\1/ |
---|
7373 | q |
---|
7374 | } |
---|
7375 | /^X\(\/\).*/{ |
---|
7376 | s//\1/ |
---|
7377 | q |
---|
7378 | } |
---|
7379 | s/.*/./; q'` |
---|
7380 | { as_dir="$ac_dir" |
---|
7381 | case $as_dir in #( |
---|
7382 | -*) as_dir=./$as_dir;; |
---|
7383 | esac |
---|
7384 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
7385 | as_dirs= |
---|
7386 | while :; do |
---|
7387 | case $as_dir in #( |
---|
7388 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
7389 | *) as_qdir=$as_dir;; |
---|
7390 | esac |
---|
7391 | as_dirs="'$as_qdir' $as_dirs" |
---|
7392 | as_dir=`$as_dirname -- "$as_dir" || |
---|
7393 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7394 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7395 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7396 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
7397 | $as_echo X"$as_dir" | |
---|
7398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7399 | s//\1/ |
---|
7400 | q |
---|
7401 | } |
---|
7402 | /^X\(\/\/\)[^/].*/{ |
---|
7403 | s//\1/ |
---|
7404 | q |
---|
7405 | } |
---|
7406 | /^X\(\/\/\)$/{ |
---|
7407 | s//\1/ |
---|
7408 | q |
---|
7409 | } |
---|
7410 | /^X\(\/\).*/{ |
---|
7411 | s//\1/ |
---|
7412 | q |
---|
7413 | } |
---|
7414 | s/.*/./; q'` |
---|
7415 | test -d "$as_dir" && break |
---|
7416 | done |
---|
7417 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
7418 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
7419 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
7420 | { (exit 1); exit 1; }; }; } |
---|
7421 | ac_builddir=. |
---|
7422 | |
---|
7423 | case "$ac_dir" in |
---|
7424 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7425 | *) |
---|
7426 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7427 | # A ".." for each directory in $ac_dir_suffix. |
---|
7428 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7429 | case $ac_top_builddir_sub in |
---|
7430 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7431 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7432 | esac ;; |
---|
7433 | esac |
---|
7434 | ac_abs_top_builddir=$ac_pwd |
---|
7435 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7436 | # for backward compatibility: |
---|
7437 | ac_top_builddir=$ac_top_build_prefix |
---|
7438 | |
---|
7439 | case $srcdir in |
---|
7440 | .) # We are building in place. |
---|
7441 | ac_srcdir=. |
---|
7442 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7443 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7444 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7445 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7446 | ac_top_srcdir=$srcdir |
---|
7447 | ac_abs_top_srcdir=$srcdir ;; |
---|
7448 | *) # Relative name. |
---|
7449 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7450 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7451 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7452 | esac |
---|
7453 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7454 | |
---|
7455 | |
---|
7456 | case $ac_mode in |
---|
7457 | :F) |
---|
7458 | # |
---|
7459 | # CONFIG_FILE |
---|
7460 | # |
---|
7461 | |
---|
7462 | case $INSTALL in |
---|
7463 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7464 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7465 | esac |
---|
7466 | _ACEOF |
---|
7467 | |
---|
7468 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7469 | # If the template does not know about datarootdir, expand it. |
---|
7470 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7471 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7472 | |
---|
7473 | ac_sed_dataroot=' |
---|
7474 | /datarootdir/ { |
---|
7475 | p |
---|
7476 | q |
---|
7477 | } |
---|
7478 | /@datadir@/p |
---|
7479 | /@docdir@/p |
---|
7480 | /@infodir@/p |
---|
7481 | /@localedir@/p |
---|
7482 | /@mandir@/p |
---|
7483 | ' |
---|
7484 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7485 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7486 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7488 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7489 | _ACEOF |
---|
7490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7491 | ac_datarootdir_hack=' |
---|
7492 | s&@datadir@&$datadir&g |
---|
7493 | s&@docdir@&$docdir&g |
---|
7494 | s&@infodir@&$infodir&g |
---|
7495 | s&@localedir@&$localedir&g |
---|
7496 | s&@mandir@&$mandir&g |
---|
7497 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7498 | esac |
---|
7499 | _ACEOF |
---|
7500 | |
---|
7501 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7502 | # Shell code in configure.ac might set extrasub. |
---|
7503 | # FIXME: do we really want to maintain this feature? |
---|
7504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7505 | ac_sed_extra="$ac_vpsub |
---|
7506 | $extrasub |
---|
7507 | _ACEOF |
---|
7508 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7509 | :t |
---|
7510 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7511 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7512 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7513 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7514 | s&@srcdir@&$ac_srcdir&;t t |
---|
7515 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7516 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7517 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7518 | s&@builddir@&$ac_builddir&;t t |
---|
7519 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7520 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7521 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7522 | $ac_datarootdir_hack |
---|
7523 | " |
---|
7524 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
---|
7525 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
7526 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
7527 | { (exit 1); exit 1; }; } |
---|
7528 | |
---|
7529 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7530 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
7531 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
7532 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7533 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
7534 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7535 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
7536 | |
---|
7537 | rm -f "$tmp/stdin" |
---|
7538 | case $ac_file in |
---|
7539 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
---|
7540 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
---|
7541 | esac \ |
---|
7542 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
---|
7543 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
---|
7544 | { (exit 1); exit 1; }; } |
---|
7545 | ;; |
---|
7546 | |
---|
7547 | |
---|
7548 | |
---|
7549 | esac |
---|
7550 | |
---|
7551 | done # for ac_tag |
---|
7552 | |
---|
7553 | |
---|
7554 | { (exit 0); exit 0; } |
---|
7555 | _ACEOF |
---|
7556 | chmod +x $CONFIG_STATUS |
---|
7557 | ac_clean_files=$ac_clean_files_save |
---|
7558 | |
---|
7559 | test $ac_write_fail = 0 || |
---|
7560 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
---|
7561 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
---|
7562 | { (exit 1); exit 1; }; } |
---|
7563 | |
---|
7564 | |
---|
7565 | # configure is writing to config.log, and then calls config.status. |
---|
7566 | # config.status does its own redirection, appending to config.log. |
---|
7567 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7568 | # by configure, so config.status won't be able to write to it; its |
---|
7569 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7570 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7571 | # appended to by config.status. When coming back to configure, we |
---|
7572 | # need to make the FD available again. |
---|
7573 | if test "$no_create" != yes; then |
---|
7574 | ac_cs_success=: |
---|
7575 | ac_config_status_args= |
---|
7576 | test "$silent" = yes && |
---|
7577 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7578 | exec 5>/dev/null |
---|
7579 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7580 | exec 5>>config.log |
---|
7581 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7582 | # would make configure fail if this is the last instruction. |
---|
7583 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7584 | fi |
---|
7585 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7586 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7587 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7588 | fi |
---|
7589 | |
---|