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