]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
25fbec5b | 3 | # Generated by GNU Autoconf 2.61. |
795ca3e5 | 4 | # |
7a197a62 AK |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
ad6254c5 AK |
51 | fi |
52 | ||
53 | # Support unset when possible. | |
8a2fc586 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
7a197a62 AK |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
1995c9ff AK |
66 | as_nl=' |
67 | ' | |
7a197a62 AK |
68 | IFS=" "" $as_nl" |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
1995c9ff | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
91 | { (exit 1); exit 1; } |
92 | fi | |
93 | ||
ad6254c5 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
ad6254c5 AK |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
103 | for as_var in \ | |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
8a2fc586 | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
109 | eval $as_var=C; export $as_var |
110 | else | |
7a197a62 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 AK |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
7a197a62 AK |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
7a197a62 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
7a197a62 | 131 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 135 | echo X/"$0" | |
7a197a62 AK |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
ad6254c5 | 149 | |
7a197a62 AK |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
ad6254c5 | 152 | |
ad6254c5 | 153 | |
7a197a62 AK |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
ad6254c5 AK |
159 | fi |
160 | ||
7a197a62 AK |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
ad6254c5 | 177 | |
7a197a62 AK |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
ad6254c5 | 185 | |
7a197a62 AK |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
ad6254c5 | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 226 | case $as_dir in |
ad6254c5 | 227 | /*) |
7a197a62 AK |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
25fbec5b AK |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
7a197a62 | 252 | fi |
25fbec5b | 253 | |
7a197a62 AK |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
25fbec5b AK |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
7a197a62 | 273 | fi |
25fbec5b | 274 | |
7a197a62 AK |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
ad6254c5 AK |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
ad6254c5 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
ad6254c5 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
ad6254c5 | 442 | sed ' |
7a197a62 AK |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
ad6254c5 | 447 | N |
7a197a62 AK |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 450 | t loop |
7a197a62 | 451 | s/-\n.*// |
ad6254c5 | 452 | ' >$as_me.lineno && |
7a197a62 | 453 | chmod +x "$as_me.lineno" || |
1995c9ff | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
455 | { (exit 1); exit 1; }; } |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
ad6254c5 AK |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
795ca3e5 | 464 | |
ad6254c5 | 465 | |
7a197a62 AK |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
ad6254c5 | 481 | esac |
1995c9ff | 482 | |
7a197a62 AK |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
ad6254c5 AK |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 505 | as_ln_s='cp -p' |
ad6254c5 AK |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
7a197a62 AK |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
8a2fc586 | 517 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
25fbec5b AK |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
7a197a62 | 523 | else |
25fbec5b AK |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
7a197a62 | 541 | fi |
25fbec5b | 542 | as_executable_p=$as_test_x |
ad6254c5 AK |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
549 | |
550 | ||
ad6254c5 | 551 | |
7a197a62 | 552 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
ad6254c5 AK |
559 | # |
560 | # Initializations. | |
561 | # | |
795ca3e5 | 562 | ac_default_prefix=/usr/local |
7a197a62 | 563 | ac_clean_files= |
ad6254c5 | 564 | ac_config_libobj_dir=. |
7a197a62 | 565 | LIBOBJS= |
ad6254c5 AK |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
ad6254c5 AK |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="lib/device/dev-cache.h" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
25fbec5b | 583 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
584 | # include <sys/types.h> |
585 | #endif | |
25fbec5b | 586 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
587 | # include <sys/stat.h> |
588 | #endif | |
25fbec5b | 589 | #ifdef STDC_HEADERS |
ad6254c5 AK |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
25fbec5b | 593 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
25fbec5b AK |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
25fbec5b | 603 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
604 | # include <strings.h> |
605 | #endif | |
25fbec5b | 606 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 607 | # include <inttypes.h> |
ad6254c5 | 608 | #endif |
25fbec5b | 609 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
610 | # include <stdint.h> |
611 | #endif | |
25fbec5b | 612 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
795ca3e5 | 616 | ac_default_prefix=/usr |
7a197a62 AK |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | build | |
655 | build_cpu | |
656 | build_vendor | |
657 | build_os | |
658 | host | |
659 | host_cpu | |
660 | host_vendor | |
661 | host_os | |
662 | target | |
663 | target_cpu | |
664 | target_vendor | |
665 | target_os | |
666 | AWK | |
667 | CC | |
668 | CFLAGS | |
669 | LDFLAGS | |
670 | CPPFLAGS | |
671 | ac_ct_CC | |
672 | EXEEXT | |
673 | OBJEXT | |
674 | INSTALL_PROGRAM | |
675 | INSTALL_SCRIPT | |
676 | INSTALL_DATA | |
677 | LN_S | |
678 | SET_MAKE | |
679 | RANLIB | |
680 | CFLOW_CMD | |
681 | CSCOPE_CMD | |
682 | CPP | |
683 | GREP | |
684 | EGREP | |
685 | ALLOCA | |
686 | LIBOBJS | |
687 | POW_LIB | |
688 | MSGFMT | |
689 | MODPROBE_CMD | |
690 | JOBS | |
691 | STATIC_LINK | |
692 | LVM1 | |
693 | POOL | |
694 | SNAPSHOTS | |
695 | MIRRORS | |
696 | OWNER | |
697 | GROUP | |
698 | COPTIMISE_FLAG | |
699 | CLDFLAGS | |
700 | CLDWHOLEARCHIVE | |
701 | CLDNOWHOLEARCHIVE | |
702 | LDDEPS | |
703 | LIB_SUFFIX | |
704 | LVM_VERSION | |
705 | LVM1_FALLBACK | |
706 | DEBUG | |
707 | DEVMAPPER | |
708 | HAVE_LIBDL | |
709 | HAVE_SELINUX | |
710 | HAVE_REALTIME | |
711 | CMDLIB | |
712 | LOCALEDIR | |
713 | CONFDIR | |
714 | STATICDIR | |
715 | DMDIR | |
716 | INTL_PACKAGE | |
717 | INTL | |
718 | CLVMD | |
719 | CLUSTER | |
720 | FSADM | |
721 | DMEVENTD | |
66e941e8 | 722 | LIB_PTHREAD |
7a197a62 | 723 | LTLIBOBJS' |
ad6254c5 | 724 | ac_subst_files='' |
7a197a62 AK |
725 | ac_precious_vars='build_alias |
726 | host_alias | |
727 | target_alias | |
728 | CC | |
729 | CFLAGS | |
730 | LDFLAGS | |
25fbec5b | 731 | LIBS |
7a197a62 AK |
732 | CPPFLAGS |
733 | CPP' | |
734 | ||
795ca3e5 AK |
735 | |
736 | # Initialize some variables set by options. | |
ad6254c5 AK |
737 | ac_init_help= |
738 | ac_init_version=false | |
795ca3e5 AK |
739 | # The variables have the same names as the options, with |
740 | # dashes changed to underlines. | |
ad6254c5 | 741 | cache_file=/dev/null |
795ca3e5 | 742 | exec_prefix=NONE |
795ca3e5 | 743 | no_create= |
795ca3e5 AK |
744 | no_recursion= |
745 | prefix=NONE | |
746 | program_prefix=NONE | |
747 | program_suffix=NONE | |
748 | program_transform_name=s,x,x, | |
749 | silent= | |
750 | site= | |
751 | srcdir= | |
795ca3e5 AK |
752 | verbose= |
753 | x_includes=NONE | |
754 | x_libraries=NONE | |
ad6254c5 AK |
755 | |
756 | # Installation directory options. | |
757 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
758 | # and all the variables that are supposed to be based on exec_prefix | |
759 | # by default will actually change. | |
760 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 761 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
762 | bindir='${exec_prefix}/bin' |
763 | sbindir='${exec_prefix}/sbin' | |
764 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
765 | datarootdir='${prefix}/share' |
766 | datadir='${datarootdir}' | |
795ca3e5 AK |
767 | sysconfdir='${prefix}/etc' |
768 | sharedstatedir='${prefix}/com' | |
769 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
770 | includedir='${prefix}/include' |
771 | oldincludedir='/usr/include' | |
7a197a62 AK |
772 | docdir='${datarootdir}/doc/${PACKAGE}' |
773 | infodir='${datarootdir}/info' | |
774 | htmldir='${docdir}' | |
775 | dvidir='${docdir}' | |
776 | pdfdir='${docdir}' | |
777 | psdir='${docdir}' | |
778 | libdir='${exec_prefix}/lib' | |
779 | localedir='${datarootdir}/locale' | |
780 | mandir='${datarootdir}/man' | |
795ca3e5 | 781 | |
795ca3e5 | 782 | ac_prev= |
7a197a62 | 783 | ac_dashdash= |
795ca3e5 AK |
784 | for ac_option |
785 | do | |
795ca3e5 AK |
786 | # If the previous option needs an argument, assign it. |
787 | if test -n "$ac_prev"; then | |
7a197a62 | 788 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
789 | ac_prev= |
790 | continue | |
791 | fi | |
792 | ||
7a197a62 AK |
793 | case $ac_option in |
794 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
795 | *) ac_optarg=yes ;; | |
796 | esac | |
795ca3e5 AK |
797 | |
798 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
799 | ||
7a197a62 AK |
800 | case $ac_dashdash$ac_option in |
801 | --) | |
802 | ac_dashdash=yes ;; | |
795ca3e5 AK |
803 | |
804 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
805 | ac_prev=bindir ;; | |
806 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 807 | bindir=$ac_optarg ;; |
795ca3e5 AK |
808 | |
809 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 810 | ac_prev=build_alias ;; |
795ca3e5 | 811 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 812 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
813 | |
814 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
815 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
816 | ac_prev=cache_file ;; | |
817 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
818 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
819 | cache_file=$ac_optarg ;; |
820 | ||
821 | --config-cache | -C) | |
822 | cache_file=config.cache ;; | |
795ca3e5 | 823 | |
7a197a62 | 824 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 825 | ac_prev=datadir ;; |
7a197a62 | 826 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 827 | datadir=$ac_optarg ;; |
795ca3e5 | 828 | |
7a197a62 AK |
829 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
830 | | --dataroo | --dataro | --datar) | |
831 | ac_prev=datarootdir ;; | |
832 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
833 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
834 | datarootdir=$ac_optarg ;; | |
835 | ||
795ca3e5 | 836 | -disable-* | --disable-*) |
1995c9ff | 837 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 838 | # Reject names that are not valid shell variable names. |
25fbec5b | 839 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 840 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
ad6254c5 | 841 | { (exit 1); exit 1; }; } |
25fbec5b | 842 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1995c9ff | 843 | eval enable_$ac_feature=no ;; |
7a197a62 AK |
844 | |
845 | -docdir | --docdir | --docdi | --doc | --do) | |
846 | ac_prev=docdir ;; | |
847 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
848 | docdir=$ac_optarg ;; | |
849 | ||
850 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
851 | ac_prev=dvidir ;; | |
852 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
853 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
854 | |
855 | -enable-* | --enable-*) | |
1995c9ff | 856 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 857 | # Reject names that are not valid shell variable names. |
25fbec5b | 858 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 859 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
ad6254c5 | 860 | { (exit 1); exit 1; }; } |
25fbec5b | 861 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1995c9ff | 862 | eval enable_$ac_feature=\$ac_optarg ;; |
795ca3e5 AK |
863 | |
864 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
865 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
866 | | --exec | --exe | --ex) | |
867 | ac_prev=exec_prefix ;; | |
868 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
869 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
870 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 871 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
872 | |
873 | -gas | --gas | --ga | --g) | |
874 | # Obsolete; use --with-gas. | |
875 | with_gas=yes ;; | |
876 | ||
ad6254c5 AK |
877 | -help | --help | --hel | --he | -h) |
878 | ac_init_help=long ;; | |
879 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
880 | ac_init_help=recursive ;; | |
881 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
882 | ac_init_help=short ;; | |
795ca3e5 AK |
883 | |
884 | -host | --host | --hos | --ho) | |
ad6254c5 | 885 | ac_prev=host_alias ;; |
795ca3e5 | 886 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 887 | host_alias=$ac_optarg ;; |
795ca3e5 | 888 | |
7a197a62 AK |
889 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
890 | ac_prev=htmldir ;; | |
891 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
892 | | --ht=*) | |
893 | htmldir=$ac_optarg ;; | |
894 | ||
795ca3e5 AK |
895 | -includedir | --includedir | --includedi | --included | --include \ |
896 | | --includ | --inclu | --incl | --inc) | |
897 | ac_prev=includedir ;; | |
898 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
899 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 900 | includedir=$ac_optarg ;; |
795ca3e5 AK |
901 | |
902 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
903 | ac_prev=infodir ;; | |
904 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 905 | infodir=$ac_optarg ;; |
795ca3e5 AK |
906 | |
907 | -libdir | --libdir | --libdi | --libd) | |
908 | ac_prev=libdir ;; | |
909 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 910 | libdir=$ac_optarg ;; |
795ca3e5 AK |
911 | |
912 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
913 | | --libexe | --libex | --libe) | |
914 | ac_prev=libexecdir ;; | |
915 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
916 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 917 | libexecdir=$ac_optarg ;; |
795ca3e5 | 918 | |
7a197a62 AK |
919 | -localedir | --localedir | --localedi | --localed | --locale) |
920 | ac_prev=localedir ;; | |
921 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
922 | localedir=$ac_optarg ;; | |
923 | ||
795ca3e5 | 924 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 925 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
926 | ac_prev=localstatedir ;; |
927 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 928 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 929 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
930 | |
931 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
932 | ac_prev=mandir ;; | |
933 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 934 | mandir=$ac_optarg ;; |
795ca3e5 AK |
935 | |
936 | -nfp | --nfp | --nf) | |
937 | # Obsolete; use --without-fp. | |
938 | with_fp=no ;; | |
939 | ||
940 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 941 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
942 | no_create=yes ;; |
943 | ||
944 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
945 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
946 | no_recursion=yes ;; | |
947 | ||
948 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
949 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
950 | | --oldin | --oldi | --old | --ol | --o) | |
951 | ac_prev=oldincludedir ;; | |
952 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
953 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
954 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 955 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
956 | |
957 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
958 | ac_prev=prefix ;; | |
959 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 960 | prefix=$ac_optarg ;; |
795ca3e5 AK |
961 | |
962 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
963 | | --program-pre | --program-pr | --program-p) | |
964 | ac_prev=program_prefix ;; | |
965 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
966 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 967 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
968 | |
969 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
970 | | --program-suf | --program-su | --program-s) | |
971 | ac_prev=program_suffix ;; | |
972 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
973 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 974 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
975 | |
976 | -program-transform-name | --program-transform-name \ | |
977 | | --program-transform-nam | --program-transform-na \ | |
978 | | --program-transform-n | --program-transform- \ | |
979 | | --program-transform | --program-transfor \ | |
980 | | --program-transfo | --program-transf \ | |
981 | | --program-trans | --program-tran \ | |
982 | | --progr-tra | --program-tr | --program-t) | |
983 | ac_prev=program_transform_name ;; | |
984 | -program-transform-name=* | --program-transform-name=* \ | |
985 | | --program-transform-nam=* | --program-transform-na=* \ | |
986 | | --program-transform-n=* | --program-transform-=* \ | |
987 | | --program-transform=* | --program-transfor=* \ | |
988 | | --program-transfo=* | --program-transf=* \ | |
989 | | --program-trans=* | --program-tran=* \ | |
990 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 991 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 992 | |
7a197a62 AK |
993 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
994 | ac_prev=pdfdir ;; | |
995 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
996 | pdfdir=$ac_optarg ;; | |
997 | ||
998 | -psdir | --psdir | --psdi | --psd | --ps) | |
999 | ac_prev=psdir ;; | |
1000 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1001 | psdir=$ac_optarg ;; | |
1002 | ||
795ca3e5 AK |
1003 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1004 | | -silent | --silent | --silen | --sile | --sil) | |
1005 | silent=yes ;; | |
1006 | ||
1007 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1008 | ac_prev=sbindir ;; | |
1009 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1010 | | --sbi=* | --sb=*) | |
ad6254c5 | 1011 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1012 | |
1013 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1014 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1015 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1016 | | --sha | --sh) | |
1017 | ac_prev=sharedstatedir ;; | |
1018 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1019 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1020 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1021 | | --sha=* | --sh=*) | |
ad6254c5 | 1022 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1023 | |
1024 | -site | --site | --sit) | |
1025 | ac_prev=site ;; | |
1026 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1027 | site=$ac_optarg ;; |
795ca3e5 AK |
1028 | |
1029 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1030 | ac_prev=srcdir ;; | |
1031 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1032 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1033 | |
1034 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1035 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1036 | ac_prev=sysconfdir ;; | |
1037 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1038 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1039 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1040 | |
1041 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1042 | ac_prev=target_alias ;; |
795ca3e5 | 1043 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1044 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1045 | |
1046 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1047 | verbose=yes ;; | |
1048 | ||
ad6254c5 AK |
1049 | -version | --version | --versio | --versi | --vers | -V) |
1050 | ac_init_version=: ;; | |
795ca3e5 AK |
1051 | |
1052 | -with-* | --with-*) | |
1995c9ff | 1053 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1054 | # Reject names that are not valid shell variable names. |
25fbec5b | 1055 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1056 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
ad6254c5 | 1057 | { (exit 1); exit 1; }; } |
25fbec5b | 1058 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1995c9ff | 1059 | eval with_$ac_package=\$ac_optarg ;; |
795ca3e5 AK |
1060 | |
1061 | -without-* | --without-*) | |
1995c9ff | 1062 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1063 | # Reject names that are not valid shell variable names. |
25fbec5b | 1064 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1065 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
ad6254c5 | 1066 | { (exit 1); exit 1; }; } |
25fbec5b | 1067 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1995c9ff | 1068 | eval with_$ac_package=no ;; |
795ca3e5 AK |
1069 | |
1070 | --x) | |
1071 | # Obsolete; use --with-x. | |
1072 | with_x=yes ;; | |
1073 | ||
1074 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1075 | | --x-incl | --x-inc | --x-in | --x-i) | |
1076 | ac_prev=x_includes ;; | |
1077 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1078 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1079 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1080 | |
1081 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1082 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1083 | ac_prev=x_libraries ;; | |
1084 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1085 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1086 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1087 | |
1995c9ff | 1088 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1089 | Try \`$0 --help' for more information." >&2 |
1090 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1091 | ;; |
1092 | ||
ad6254c5 AK |
1093 | *=*) |
1094 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1095 | # Reject names that are not valid shell variable names. | |
1096 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1995c9ff | 1097 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1098 | { (exit 1); exit 1; }; } |
7a197a62 | 1099 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1100 | export $ac_envvar ;; |
1101 | ||
795ca3e5 | 1102 | *) |
ad6254c5 | 1103 | # FIXME: should be removed in autoconf 3.0. |
1995c9ff | 1104 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1105 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1106 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1107 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1108 | ;; |
1109 | ||
1110 | esac | |
1111 | done | |
1112 | ||
1113 | if test -n "$ac_prev"; then | |
ad6254c5 | 1114 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1995c9ff | 1115 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1116 | { (exit 1); exit 1; }; } |
795ca3e5 | 1117 | fi |
795ca3e5 | 1118 | |
7a197a62 AK |
1119 | # Be sure to have absolute directory names. |
1120 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1121 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1122 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1123 | libdir localedir mandir | |
795ca3e5 | 1124 | do |
7a197a62 | 1125 | eval ac_val=\$$ac_var |
ad6254c5 | 1126 | case $ac_val in |
7a197a62 AK |
1127 | [\\/$]* | ?:[\\/]* ) continue;; |
1128 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1129 | esac |
1995c9ff | 1130 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1131 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1132 | done |
1133 | ||
ad6254c5 AK |
1134 | # There might be people who depend on the old broken behavior: `$host' |
1135 | # used to hold the argument of --host etc. | |
1136 | # FIXME: To remove some day. | |
1137 | build=$build_alias | |
1138 | host=$host_alias | |
1139 | target=$target_alias | |
1140 | ||
1141 | # FIXME: To remove some day. | |
1142 | if test "x$host_alias" != x; then | |
1143 | if test "x$build_alias" = x; then | |
1144 | cross_compiling=maybe | |
1995c9ff | 1145 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1146 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1147 | elif test "x$build_alias" != "x$host_alias"; then | |
1148 | cross_compiling=yes | |
1149 | fi | |
1150 | fi | |
8106cdd5 | 1151 | |
ad6254c5 AK |
1152 | ac_tool_prefix= |
1153 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1154 | ||
1155 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1156 | |
795ca3e5 | 1157 | |
7a197a62 AK |
1158 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1159 | ac_ls_di=`ls -di .` && | |
1160 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1995c9ff | 1161 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1162 | { (exit 1); exit 1; }; } |
1163 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1995c9ff | 1164 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1165 | { (exit 1); exit 1; }; } |
1166 | ||
1167 | ||
795ca3e5 AK |
1168 | # Find the source files, if location was not specified. |
1169 | if test -z "$srcdir"; then | |
1170 | ac_srcdir_defaulted=yes | |
7a197a62 AK |
1171 | # Try the directory containing this script, then the parent directory. |
1172 | ac_confdir=`$as_dirname -- "$0" || | |
ad6254c5 | 1173 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
1174 | X"$0" : 'X\(//\)[^/]' \| \ |
1175 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 1176 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 1177 | echo X"$0" | |
7a197a62 AK |
1178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1179 | s//\1/ | |
1180 | q | |
1181 | } | |
1182 | /^X\(\/\/\)[^/].*/{ | |
1183 | s//\1/ | |
1184 | q | |
1185 | } | |
1186 | /^X\(\/\/\)$/{ | |
1187 | s//\1/ | |
1188 | q | |
1189 | } | |
1190 | /^X\(\/\).*/{ | |
1191 | s//\1/ | |
1192 | q | |
1193 | } | |
1194 | s/.*/./; q'` | |
795ca3e5 | 1195 | srcdir=$ac_confdir |
7a197a62 | 1196 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1197 | srcdir=.. |
1198 | fi | |
1199 | else | |
1200 | ac_srcdir_defaulted=no | |
1201 | fi | |
7a197a62 AK |
1202 | if test ! -r "$srcdir/$ac_unique_file"; then |
1203 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1995c9ff | 1204 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1205 | { (exit 1); exit 1; }; } |
795ca3e5 | 1206 | fi |
7a197a62 AK |
1207 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1208 | ac_abs_confdir=`( | |
1995c9ff | 1209 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1210 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1211 | pwd)` |
1212 | # When building in place, set srcdir=. | |
1213 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1214 | srcdir=. | |
1215 | fi | |
1216 | # Remove unnecessary trailing slashes from srcdir. | |
1217 | # Double slashes in file names in object file debugging info | |
1218 | # mess up M-x gdb in Emacs. | |
1219 | case $srcdir in | |
1220 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1221 | esac | |
1222 | for ac_var in $ac_precious_vars; do | |
1223 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1224 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1225 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1226 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1227 | done | |
ad6254c5 AK |
1228 | |
1229 | # | |
1230 | # Report the --help message. | |
1231 | # | |
1232 | if test "$ac_init_help" = "long"; then | |
1233 | # Omit some internal or obsolete options to make the list less imposing. | |
1234 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1235 | cat <<_ACEOF | |
1236 | \`configure' configures this package to adapt to many kinds of systems. | |
1237 | ||
1238 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1239 | ||
1240 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1241 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1242 | ||
1243 | Defaults for the options are specified in brackets. | |
1244 | ||
1245 | Configuration: | |
1246 | -h, --help display this help and exit | |
1247 | --help=short display options specific to this package | |
1248 | --help=recursive display the short help of all the included packages | |
1249 | -V, --version display version information and exit | |
1250 | -q, --quiet, --silent do not print \`checking...' messages | |
1251 | --cache-file=FILE cache test results in FILE [disabled] | |
1252 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1253 | -n, --no-create do not create output files | |
1254 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1255 | ||
ad6254c5 AK |
1256 | Installation directories: |
1257 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 1258 | [$ac_default_prefix] |
ad6254c5 | 1259 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 1260 | [PREFIX] |
ad6254c5 AK |
1261 | |
1262 | By default, \`make install' will install all the files in | |
1263 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1264 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1265 | for instance \`--prefix=\$HOME'. | |
1266 | ||
1267 | For better control, use the options below. | |
1268 | ||
1269 | Fine tuning of the installation directories: | |
1270 | --bindir=DIR user executables [EPREFIX/bin] | |
1271 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1272 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ad6254c5 AK |
1273 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1274 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1275 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1276 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1277 | --includedir=DIR C header files [PREFIX/include] | |
1278 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7a197a62 AK |
1279 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1280 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1281 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1282 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1283 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1284 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1285 | --htmldir=DIR html documentation [DOCDIR] | |
1286 | --dvidir=DIR dvi documentation [DOCDIR] | |
1287 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1288 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1289 | _ACEOF |
1290 | ||
1291 | cat <<\_ACEOF | |
1292 | ||
1293 | System types: | |
1294 | --build=BUILD configure for building on BUILD [guessed] | |
1295 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1296 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1297 | _ACEOF | |
1298 | fi | |
1299 | ||
1300 | if test -n "$ac_init_help"; then | |
1301 | ||
1302 | cat <<\_ACEOF | |
1303 | ||
1304 | Optional Features: | |
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1307 | --enable-jobs=NUM Number of jobs to run simultaneously | |
1308 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
1309 | device-mapper is missing from the kernel | |
1310 | --enable-static_link Use this to link the tools to their libraries | |
1311 | statically. Default is dynamic linking | |
1312 | --enable-readline Enable readline support | |
1313 | --disable-selinux Disable selinux support | |
3d978351 | 1314 | --disable-realtime Disable realtime clock support |
ad6254c5 AK |
1315 | --enable-debug Enable debugging |
1316 | --disable-devmapper Disable device-mapper interaction | |
1317 | --disable-o_direct Disable O_DIRECT | |
1318 | --enable-cmdlib Build shared command library | |
1319 | --enable-fsadm Enable fsadm | |
15d91f5a | 1320 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
1321 | --enable-nls Enable Native Language Support |
1322 | ||
1323 | Optional Packages: | |
1324 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1325 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1326 | --with-user=USER Set the owner of installed files | |
1327 | --with-group=GROUP Set the group owner of installed files | |
1328 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
1329 | TYPE=internal | |
1330 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1331 | TYPE=internal | |
1332 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1333 | TYPE=internal | |
1334 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1335 | TYPE=internal | |
1336 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1337 | TYPE=internal | |
5c7fc7c4 | 1338 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1339 | TYPE=none |
ad6254c5 AK |
1340 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
1341 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
1342 | --with-confdir=DIR Configuration files in DIR /etc | |
1343 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1344 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1345 | |
1346 | Some influential environment variables: | |
1347 | CC C compiler command | |
1348 | CFLAGS C compiler flags | |
1349 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1350 | nonstandard directory <lib dir> | |
25fbec5b | 1351 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1352 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1353 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1354 | CPP C preprocessor |
1355 | ||
1356 | Use these variables to override the choices made by `configure' or to help | |
1357 | it to find libraries and programs with nonstandard names/locations. | |
1358 | ||
1359 | _ACEOF | |
7a197a62 | 1360 | ac_status=$? |
ad6254c5 AK |
1361 | fi |
1362 | ||
1363 | if test "$ac_init_help" = "recursive"; then | |
1364 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1365 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7a197a62 | 1366 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1367 | ac_builddir=. |
1368 | ||
7a197a62 AK |
1369 | case "$ac_dir" in |
1370 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1371 | *) | |
1995c9ff | 1372 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1373 | # A ".." for each directory in $ac_dir_suffix. |
1995c9ff | 1374 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1375 | case $ac_top_builddir_sub in |
1376 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1377 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1378 | esac ;; | |
1379 | esac | |
1380 | ac_abs_top_builddir=$ac_pwd | |
1381 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1382 | # for backward compatibility: | |
1383 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1384 | |
1385 | case $srcdir in | |
7a197a62 | 1386 | .) # We are building in place. |
ad6254c5 | 1387 | ac_srcdir=. |
7a197a62 AK |
1388 | ac_top_srcdir=$ac_top_builddir_sub |
1389 | ac_abs_top_srcdir=$ac_pwd ;; | |
1390 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1391 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1392 | ac_top_srcdir=$srcdir |
1393 | ac_abs_top_srcdir=$srcdir ;; | |
1394 | *) # Relative name. | |
1395 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1396 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1397 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1398 | esac |
7a197a62 AK |
1399 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1400 | ||
1401 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1402 | # Check for guested configure. | |
1403 | if test -f "$ac_srcdir/configure.gnu"; then | |
1404 | echo && | |
1405 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1406 | elif test -f "$ac_srcdir/configure"; then | |
1407 | echo && | |
1408 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1409 | else |
1995c9ff | 1410 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1411 | fi || ac_status=$? |
1412 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1413 | done |
1414 | fi | |
1415 | ||
7a197a62 | 1416 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1417 | if $ac_init_version; then |
1418 | cat <<\_ACEOF | |
7a197a62 | 1419 | configure |
25fbec5b | 1420 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1421 | |
7a197a62 AK |
1422 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1423 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
ad6254c5 AK |
1424 | This configure script is free software; the Free Software Foundation |
1425 | gives unlimited permission to copy, distribute and modify it. | |
1426 | _ACEOF | |
7a197a62 | 1427 | exit |
ad6254c5 | 1428 | fi |
7a197a62 | 1429 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1430 | This file contains any messages produced by compilers while |
1431 | running configure, to aid debugging if configure makes a mistake. | |
1432 | ||
1433 | It was created by $as_me, which was | |
25fbec5b | 1434 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1435 | |
1436 | $ $0 $@ | |
1437 | ||
1438 | _ACEOF | |
7a197a62 | 1439 | exec 5>>config.log |
ad6254c5 AK |
1440 | { |
1441 | cat <<_ASUNAME | |
1442 | ## --------- ## | |
1443 | ## Platform. ## | |
1444 | ## --------- ## | |
1445 | ||
1446 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1447 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1448 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1449 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1450 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1451 | ||
1452 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1453 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1454 | ||
1455 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1456 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1457 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1458 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1459 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1460 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1461 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1462 | ||
1463 | _ASUNAME | |
1464 | ||
1465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1466 | for as_dir in $PATH | |
1467 | do | |
1468 | IFS=$as_save_IFS | |
1469 | test -z "$as_dir" && as_dir=. | |
1995c9ff | 1470 | echo "PATH: $as_dir" |
ad6254c5 | 1471 | done |
7a197a62 | 1472 | IFS=$as_save_IFS |
ad6254c5 AK |
1473 | |
1474 | } >&5 | |
1475 | ||
1476 | cat >&5 <<_ACEOF | |
1477 | ||
1478 | ||
1479 | ## ----------- ## | |
1480 | ## Core tests. ## | |
1481 | ## ----------- ## | |
1482 | ||
1483 | _ACEOF | |
1484 | ||
1485 | ||
1486 | # Keep a trace of the command line. | |
1487 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1488 | # Strip out --silent because we don't want to record it for future runs. | |
1489 | # Also quote any args containing shell meta-characters. | |
1490 | # Make two passes to allow for proper duplicate-argument suppression. | |
1491 | ac_configure_args= | |
1492 | ac_configure_args0= | |
1493 | ac_configure_args1= | |
ad6254c5 AK |
1494 | ac_must_keep_next=false |
1495 | for ac_pass in 1 2 | |
1496 | do | |
1497 | for ac_arg | |
1498 | do | |
1499 | case $ac_arg in | |
1500 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1501 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1502 | | -silent | --silent | --silen | --sile | --sil) | |
1503 | continue ;; | |
7a197a62 | 1504 | *\'*) |
1995c9ff | 1505 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1506 | esac |
1507 | case $ac_pass in | |
1508 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1509 | 2) | |
1510 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1511 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1512 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1513 | else |
8a2fc586 AK |
1514 | case $ac_arg in |
1515 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1516 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1517 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1518 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1519 | case "$ac_configure_args0 " in | |
1520 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1521 | esac | |
1522 | ;; | |
1523 | -* ) ac_must_keep_next=true ;; | |
1524 | esac | |
ad6254c5 | 1525 | fi |
7a197a62 | 1526 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1527 | ;; |
1528 | esac | |
1529 | done | |
1530 | done | |
1531 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1532 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1533 | ||
1534 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1535 | # config.log. We remove comments because anyway the quotes in there | |
1536 | # would cause problems or look ugly. | |
7a197a62 AK |
1537 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1538 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1539 | trap 'exit_status=$? |
1540 | # Save into config.log some information that might help in debugging. | |
1541 | { | |
1542 | echo | |
1543 | ||
1544 | cat <<\_ASBOX | |
1545 | ## ---------------- ## | |
1546 | ## Cache variables. ## | |
1547 | ## ---------------- ## | |
1548 | _ASBOX | |
1549 | echo | |
1550 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1551 | ( |
1552 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1553 | eval ac_val=\$$ac_var | |
1554 | case $ac_val in #( | |
1555 | *${as_nl}*) | |
1556 | case $ac_var in #( | |
1995c9ff AK |
1557 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1558 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1559 | esac |
1560 | case $ac_var in #( | |
1561 | _ | IFS | as_nl) ;; #( | |
1562 | *) $as_unset $ac_var ;; | |
1563 | esac ;; | |
1564 | esac | |
1565 | done | |
ad6254c5 | 1566 | (set) 2>&1 | |
7a197a62 AK |
1567 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1568 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1569 | sed -n \ |
7a197a62 AK |
1570 | "s/'\''/'\''\\\\'\'''\''/g; |
1571 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1572 | ;; #( | |
ad6254c5 | 1573 | *) |
7a197a62 | 1574 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1575 | ;; |
7a197a62 AK |
1576 | esac | |
1577 | sort | |
1578 | ) | |
ad6254c5 AK |
1579 | echo |
1580 | ||
1581 | cat <<\_ASBOX | |
1582 | ## ----------------- ## | |
1583 | ## Output variables. ## | |
1584 | ## ----------------- ## | |
1585 | _ASBOX | |
1586 | echo | |
1587 | for ac_var in $ac_subst_vars | |
1588 | do | |
7a197a62 AK |
1589 | eval ac_val=\$$ac_var |
1590 | case $ac_val in | |
1995c9ff | 1591 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1592 | esac |
1995c9ff | 1593 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1594 | done | sort |
1595 | echo | |
1596 | ||
1597 | if test -n "$ac_subst_files"; then | |
1598 | cat <<\_ASBOX | |
7a197a62 AK |
1599 | ## ------------------- ## |
1600 | ## File substitutions. ## | |
1601 | ## ------------------- ## | |
ad6254c5 AK |
1602 | _ASBOX |
1603 | echo | |
1604 | for ac_var in $ac_subst_files | |
1605 | do | |
7a197a62 AK |
1606 | eval ac_val=\$$ac_var |
1607 | case $ac_val in | |
1995c9ff | 1608 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1609 | esac |
1995c9ff | 1610 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1611 | done | sort |
1612 | echo | |
1613 | fi | |
1614 | ||
1615 | if test -s confdefs.h; then | |
1616 | cat <<\_ASBOX | |
1617 | ## ----------- ## | |
1618 | ## confdefs.h. ## | |
1619 | ## ----------- ## | |
1620 | _ASBOX | |
1621 | echo | |
7a197a62 | 1622 | cat confdefs.h |
ad6254c5 AK |
1623 | echo |
1624 | fi | |
1625 | test "$ac_signal" != 0 && | |
1995c9ff AK |
1626 | echo "$as_me: caught signal $ac_signal" |
1627 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1628 | } >&5 |
7a197a62 AK |
1629 | rm -f core *.core core.conftest.* && |
1630 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1631 | exit $exit_status |
7a197a62 | 1632 | ' 0 |
ad6254c5 AK |
1633 | for ac_signal in 1 2 13 15; do |
1634 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1635 | done | |
1636 | ac_signal=0 | |
1637 | ||
1638 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1639 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1640 | |
1641 | # Predefined preprocessor variables. | |
1642 | ||
1643 | cat >>confdefs.h <<_ACEOF | |
1644 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1645 | _ACEOF | |
1646 | ||
1647 | ||
1648 | cat >>confdefs.h <<_ACEOF | |
1649 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1650 | _ACEOF | |
1651 | ||
1652 | ||
1653 | cat >>confdefs.h <<_ACEOF | |
1654 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1655 | _ACEOF | |
8106cdd5 | 1656 | |
ad6254c5 AK |
1657 | |
1658 | cat >>confdefs.h <<_ACEOF | |
1659 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1660 | _ACEOF | |
1661 | ||
1662 | ||
1663 | cat >>confdefs.h <<_ACEOF | |
1664 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1665 | _ACEOF | |
1666 | ||
1667 | ||
1668 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 | 1669 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 AK |
1670 | if test -n "$CONFIG_SITE"; then |
1671 | set x "$CONFIG_SITE" | |
1672 | elif test "x$prefix" != xNONE; then | |
1673 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1674 | else | |
1675 | set x "$ac_default_prefix/share/config.site" \ | |
1676 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1677 | fi |
7a197a62 AK |
1678 | shift |
1679 | for ac_site_file | |
1680 | do | |
795ca3e5 | 1681 | if test -r "$ac_site_file"; then |
1995c9ff AK |
1682 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1683 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1684 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1685 | . "$ac_site_file" |
1686 | fi | |
1687 | done | |
1688 | ||
1689 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1690 | # Some versions of bash will fail to source /dev/null (special |
1691 | # files actually), so we avoid doing that. | |
1692 | if test -f "$cache_file"; then | |
1995c9ff AK |
1693 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1694 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1695 | case $cache_file in |
7a197a62 AK |
1696 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1697 | *) . "./$cache_file";; | |
ad6254c5 AK |
1698 | esac |
1699 | fi | |
795ca3e5 | 1700 | else |
1995c9ff AK |
1701 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1702 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1703 | >$cache_file |
1704 | fi | |
1705 | ||
1706 | # Check that the precious variables saved in the cache have kept the same | |
1707 | # value. | |
1708 | ac_cache_corrupted=false | |
7a197a62 | 1709 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1710 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1711 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1712 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1713 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1714 | case $ac_old_set,$ac_new_set in |
1715 | set,) | |
1995c9ff AK |
1716 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1717 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1718 | ac_cache_corrupted=: ;; |
1719 | ,set) | |
1995c9ff AK |
1720 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1721 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1722 | ac_cache_corrupted=: ;; |
1723 | ,);; | |
1724 | *) | |
1725 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1995c9ff AK |
1726 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1727 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1728 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1729 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1730 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1731 | echo "$as_me: current value: $ac_new_val" >&2;} | |
8a2fc586 | 1732 | ac_cache_corrupted=: |
ad6254c5 AK |
1733 | fi;; |
1734 | esac | |
1735 | # Pass precious variables to config.status. | |
1736 | if test "$ac_new_set" = set; then | |
1737 | case $ac_new_val in | |
1995c9ff | 1738 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1739 | *) ac_arg=$ac_var=$ac_new_val ;; |
1740 | esac | |
1741 | case " $ac_configure_args " in | |
1742 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1743 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1744 | esac | |
1745 | fi | |
1746 | done | |
1747 | if $ac_cache_corrupted; then | |
1995c9ff AK |
1748 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1749 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1750 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1751 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1752 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1753 | fi |
1754 | ||
ad6254c5 AK |
1755 | |
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
7a197a62 AK |
1771 | ac_ext=c |
1772 | ac_cpp='$CPP $CPPFLAGS' | |
1773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1776 | |
795ca3e5 AK |
1777 | |
1778 | ||
1779 | ||
72b2cb61 | 1780 | ################################################################################ |
7a197a62 | 1781 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1782 | |
1783 | ||
80992638 | 1784 | ################################################################################ |
795ca3e5 | 1785 | ac_aux_dir= |
7a197a62 AK |
1786 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1787 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1788 | ac_aux_dir=$ac_dir |
1789 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1790 | break | |
7a197a62 | 1791 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1792 | ac_aux_dir=$ac_dir |
1793 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1794 | break | |
7a197a62 | 1795 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1796 | ac_aux_dir=$ac_dir |
1797 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1798 | break | |
795ca3e5 AK |
1799 | fi |
1800 | done | |
1801 | if test -z "$ac_aux_dir"; then | |
1995c9ff AK |
1802 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1803 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1804 | { (exit 1); exit 1; }; } |
795ca3e5 | 1805 | fi |
7a197a62 AK |
1806 | |
1807 | # These three variables are undocumented and unsupported, | |
1808 | # and are intended to be withdrawn in a future Autoconf release. | |
1809 | # They can cause serious problems if a builder's source tree is in a directory | |
1810 | # whose full name contains unusual characters. | |
1811 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1812 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1813 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1814 | ||
8ce0cbda AK |
1815 | |
1816 | ||
ad6254c5 | 1817 | ################################################################################ |
8ce0cbda | 1818 | # Make sure we can run config.sub. |
7a197a62 | 1819 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1995c9ff AK |
1820 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1821 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1822 | { (exit 1); exit 1; }; } |
1823 | ||
1995c9ff AK |
1824 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1825 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1826 | if test "${ac_cv_build+set}" = set; then |
1995c9ff | 1827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1828 | else |
7a197a62 AK |
1829 | ac_build_alias=$build_alias |
1830 | test "x$ac_build_alias" = x && | |
1831 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1832 | test "x$ac_build_alias" = x && | |
1995c9ff AK |
1833 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1834 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1835 | { (exit 1); exit 1; }; } |
7a197a62 | 1836 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1995c9ff AK |
1837 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1838 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1839 | { (exit 1); exit 1; }; } |
1840 | ||
1841 | fi | |
1995c9ff AK |
1842 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1843 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1844 | case $ac_cv_build in |
1845 | *-*-*) ;; | |
1995c9ff AK |
1846 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1847 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1848 | { (exit 1); exit 1; }; };; |
1849 | esac | |
ad6254c5 | 1850 | build=$ac_cv_build |
7a197a62 AK |
1851 | ac_save_IFS=$IFS; IFS='-' |
1852 | set x $ac_cv_build | |
1853 | shift | |
1854 | build_cpu=$1 | |
1855 | build_vendor=$2 | |
1856 | shift; shift | |
1857 | # Remember, the first character of IFS is used to create $*, | |
1858 | # except with old shells: | |
1859 | build_os=$* | |
1860 | IFS=$ac_save_IFS | |
1861 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1862 | |
1863 | ||
1995c9ff AK |
1864 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1865 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1866 | if test "${ac_cv_host+set}" = set; then |
1995c9ff | 1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1868 | else |
7a197a62 AK |
1869 | if test "x$host_alias" = x; then |
1870 | ac_cv_host=$ac_cv_build | |
1871 | else | |
1872 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1995c9ff AK |
1873 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1874 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1875 | { (exit 1); exit 1; }; } |
7a197a62 | 1876 | fi |
ad6254c5 AK |
1877 | |
1878 | fi | |
1995c9ff AK |
1879 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1880 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1881 | case $ac_cv_host in |
1882 | *-*-*) ;; | |
1995c9ff AK |
1883 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1884 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1885 | { (exit 1); exit 1; }; };; |
1886 | esac | |
ad6254c5 | 1887 | host=$ac_cv_host |
7a197a62 AK |
1888 | ac_save_IFS=$IFS; IFS='-' |
1889 | set x $ac_cv_host | |
1890 | shift | |
1891 | host_cpu=$1 | |
1892 | host_vendor=$2 | |
1893 | shift; shift | |
1894 | # Remember, the first character of IFS is used to create $*, | |
1895 | # except with old shells: | |
1896 | host_os=$* | |
1897 | IFS=$ac_save_IFS | |
1898 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1899 | |
1900 | ||
1995c9ff AK |
1901 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1902 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1903 | if test "${ac_cv_target+set}" = set; then |
1995c9ff | 1904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1905 | else |
7a197a62 AK |
1906 | if test "x$target_alias" = x; then |
1907 | ac_cv_target=$ac_cv_host | |
1908 | else | |
1909 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1995c9ff AK |
1910 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1911 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1912 | { (exit 1); exit 1; }; } |
7a197a62 | 1913 | fi |
8ce0cbda | 1914 | |
ad6254c5 | 1915 | fi |
1995c9ff AK |
1916 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1917 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1918 | case $ac_cv_target in |
1919 | *-*-*) ;; | |
1995c9ff AK |
1920 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1921 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1922 | { (exit 1); exit 1; }; };; |
1923 | esac | |
ad6254c5 | 1924 | target=$ac_cv_target |
7a197a62 AK |
1925 | ac_save_IFS=$IFS; IFS='-' |
1926 | set x $ac_cv_target | |
1927 | shift | |
1928 | target_cpu=$1 | |
1929 | target_vendor=$2 | |
1930 | shift; shift | |
1931 | # Remember, the first character of IFS is used to create $*, | |
1932 | # except with old shells: | |
1933 | target_os=$* | |
1934 | IFS=$ac_save_IFS | |
1935 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1936 | |
8ce0cbda | 1937 | |
ad6254c5 AK |
1938 | # The aliases save the names the user supplied, while $host etc. |
1939 | # will get canonicalized. | |
1940 | test -n "$target_alias" && | |
8ce0cbda AK |
1941 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1942 | NONENONEs,x,x, && | |
1943 | program_prefix=${target_alias}- | |
1944 | ||
8ce0cbda AK |
1945 | case "$host_os" in |
1946 | linux*) | |
1947 | CFLAGS="$CFLAGS" | |
1948 | COPTIMISE_FLAG="-O2" | |
1949 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1950 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1951 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1952 | LDDEPS="$LDDEPS .export.sym" | |
1953 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1954 | LIB_SUFFIX="so" |
8ce0cbda AK |
1955 | DEVMAPPER=yes |
1956 | ODIRECT=yes | |
1957 | SELINUX=yes | |
8b1a3214 | 1958 | REALTIME=yes |
8ce0cbda AK |
1959 | CLUSTER=internal |
1960 | FSADM=no ;; | |
1961 | darwin*) | |
1962 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1963 | COPTIMISE_FLAG="-O2" | |
1964 | CLDFLAGS="$CLDFLAGS" | |
1965 | CLDWHOLEARCHIVE="-all_load" | |
1966 | CLDNOWHOLEARCHIVE= | |
1967 | LDDEPS="$LDDEPS" | |
1968 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1969 | LIB_SUFFIX="dylib" |
a653923f | 1970 | DEVMAPPER=yes |
8ce0cbda AK |
1971 | ODIRECT=no |
1972 | SELINUX=no | |
8b1a3214 | 1973 | REALTIME=no |
8ce0cbda AK |
1974 | CLUSTER=none |
1975 | FSADM=no ;; | |
1976 | esac | |
1977 | ||
80992638 | 1978 | ################################################################################ |
ad6254c5 | 1979 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1980 | do |
ad6254c5 | 1981 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1982 | set dummy $ac_prog; ac_word=$2 |
1995c9ff AK |
1983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 1985 | if test "${ac_cv_prog_AWK+set}" = set; then |
1995c9ff | 1986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
1987 | else |
1988 | if test -n "$AWK"; then | |
1989 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1990 | else | |
ad6254c5 AK |
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1992 | for as_dir in $PATH | |
1993 | do | |
1994 | IFS=$as_save_IFS | |
1995 | test -z "$as_dir" && as_dir=. | |
1996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 1997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 1998 | ac_cv_prog_AWK="$ac_prog" |
1995c9ff | 1999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2000 | break 2 |
2001 | fi | |
2002 | done | |
2003 | done | |
7a197a62 | 2004 | IFS=$as_save_IFS |
ad6254c5 | 2005 | |
795ca3e5 AK |
2006 | fi |
2007 | fi | |
ad6254c5 | 2008 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2009 | if test -n "$AWK"; then |
1995c9ff AK |
2010 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2011 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2012 | else |
1995c9ff AK |
2013 | { echo "$as_me:$LINENO: result: no" >&5 |
2014 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2015 | fi |
2016 | ||
7a197a62 | 2017 | |
ad6254c5 AK |
2018 | test -n "$AWK" && break |
2019 | done | |
2020 | ||
2021 | ac_ext=c | |
2022 | ac_cpp='$CPP $CPPFLAGS' | |
2023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2026 | if test -n "$ac_tool_prefix"; then | |
2027 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2028 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1995c9ff AK |
2029 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2031 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2033 | else |
2034 | if test -n "$CC"; then | |
2035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2036 | else | |
2037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2038 | for as_dir in $PATH | |
2039 | do | |
2040 | IFS=$as_save_IFS | |
2041 | test -z "$as_dir" && as_dir=. | |
2042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2044 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1995c9ff | 2045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2046 | break 2 |
2047 | fi | |
2048 | done | |
8106cdd5 | 2049 | done |
7a197a62 | 2050 | IFS=$as_save_IFS |
8106cdd5 | 2051 | |
ad6254c5 AK |
2052 | fi |
2053 | fi | |
2054 | CC=$ac_cv_prog_CC | |
2055 | if test -n "$CC"; then | |
1995c9ff AK |
2056 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2057 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2058 | else |
1995c9ff AK |
2059 | { echo "$as_me:$LINENO: result: no" >&5 |
2060 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2061 | fi |
2062 | ||
7a197a62 | 2063 | |
ad6254c5 AK |
2064 | fi |
2065 | if test -z "$ac_cv_prog_CC"; then | |
2066 | ac_ct_CC=$CC | |
2067 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2068 | set dummy gcc; ac_word=$2 |
1995c9ff AK |
2069 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2071 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1995c9ff | 2072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2073 | else |
2074 | if test -n "$ac_ct_CC"; then | |
2075 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2076 | else | |
2077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2078 | for as_dir in $PATH | |
2079 | do | |
2080 | IFS=$as_save_IFS | |
2081 | test -z "$as_dir" && as_dir=. | |
2082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2084 | ac_cv_prog_ac_ct_CC="gcc" |
1995c9ff | 2085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2086 | break 2 |
2087 | fi | |
2088 | done | |
2089 | done | |
7a197a62 | 2090 | IFS=$as_save_IFS |
ad6254c5 AK |
2091 | |
2092 | fi | |
2093 | fi | |
2094 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2095 | if test -n "$ac_ct_CC"; then | |
1995c9ff AK |
2096 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2097 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2098 | else |
1995c9ff AK |
2099 | { echo "$as_me:$LINENO: result: no" >&5 |
2100 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2101 | fi |
2102 | ||
7a197a62 AK |
2103 | if test "x$ac_ct_CC" = x; then |
2104 | CC="" | |
2105 | else | |
2106 | case $cross_compiling:$ac_tool_warned in | |
2107 | yes:) | |
1995c9ff | 2108 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2109 | whose name does not start with the host triplet. If you think this |
2110 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 2111 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2112 | whose name does not start with the host triplet. If you think this |
2113 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2114 | ac_tool_warned=yes ;; | |
2115 | esac | |
2116 | CC=$ac_ct_CC | |
2117 | fi | |
ad6254c5 AK |
2118 | else |
2119 | CC="$ac_cv_prog_CC" | |
2120 | fi | |
2121 | ||
2122 | if test -z "$CC"; then | |
7a197a62 AK |
2123 | if test -n "$ac_tool_prefix"; then |
2124 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2125 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1995c9ff AK |
2126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2128 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2130 | else |
2131 | if test -n "$CC"; then | |
2132 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2133 | else | |
ad6254c5 AK |
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2135 | for as_dir in $PATH | |
2136 | do | |
2137 | IFS=$as_save_IFS | |
2138 | test -z "$as_dir" && as_dir=. | |
2139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2141 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1995c9ff | 2142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2143 | break 2 |
2144 | fi | |
2145 | done | |
2146 | done | |
7a197a62 | 2147 | IFS=$as_save_IFS |
ad6254c5 | 2148 | |
8106cdd5 AK |
2149 | fi |
2150 | fi | |
ad6254c5 | 2151 | CC=$ac_cv_prog_CC |
8106cdd5 | 2152 | if test -n "$CC"; then |
1995c9ff AK |
2153 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2154 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2155 | else |
1995c9ff AK |
2156 | { echo "$as_me:$LINENO: result: no" >&5 |
2157 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2158 | fi |
2159 | ||
8106cdd5 | 2160 | |
7a197a62 | 2161 | fi |
ad6254c5 | 2162 | fi |
795ca3e5 AK |
2163 | if test -z "$CC"; then |
2164 | # Extract the first word of "cc", so it can be a program name with args. | |
2165 | set dummy cc; ac_word=$2 | |
1995c9ff AK |
2166 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2168 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2170 | else |
2171 | if test -n "$CC"; then | |
2172 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2173 | else | |
795ca3e5 | 2174 | ac_prog_rejected=no |
ad6254c5 AK |
2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2176 | for as_dir in $PATH | |
2177 | do | |
2178 | IFS=$as_save_IFS | |
2179 | test -z "$as_dir" && as_dir=. | |
2180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2182 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2183 | ac_prog_rejected=yes | |
2184 | continue | |
2185 | fi | |
2186 | ac_cv_prog_CC="cc" | |
1995c9ff | 2187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2188 | break 2 |
2189 | fi | |
2190 | done | |
2191 | done | |
7a197a62 | 2192 | IFS=$as_save_IFS |
ad6254c5 | 2193 | |
795ca3e5 AK |
2194 | if test $ac_prog_rejected = yes; then |
2195 | # We found a bogon in the path, so make sure we never use it. | |
2196 | set dummy $ac_cv_prog_CC | |
2197 | shift | |
ad6254c5 | 2198 | if test $# != 0; then |
795ca3e5 AK |
2199 | # We chose a different compiler from the bogus one. |
2200 | # However, it has the same basename, so the bogon will be chosen | |
2201 | # first if we set CC to just the basename; use the full file name. | |
2202 | shift | |
ad6254c5 | 2203 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2204 | fi |
2205 | fi | |
2206 | fi | |
2207 | fi | |
ad6254c5 | 2208 | CC=$ac_cv_prog_CC |
795ca3e5 | 2209 | if test -n "$CC"; then |
1995c9ff AK |
2210 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2211 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2212 | else |
1995c9ff AK |
2213 | { echo "$as_me:$LINENO: result: no" >&5 |
2214 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2215 | fi |
2216 | ||
7a197a62 | 2217 | |
ad6254c5 AK |
2218 | fi |
2219 | if test -z "$CC"; then | |
2220 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2221 | for ac_prog in cl.exe |
ad6254c5 AK |
2222 | do |
2223 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2224 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1995c9ff AK |
2225 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2227 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2229 | else |
2230 | if test -n "$CC"; then | |
2231 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2232 | else | |
ad6254c5 AK |
2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2234 | for as_dir in $PATH | |
2235 | do | |
2236 | IFS=$as_save_IFS | |
2237 | test -z "$as_dir" && as_dir=. | |
2238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2240 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1995c9ff | 2241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2242 | break 2 |
2243 | fi | |
2244 | done | |
2245 | done | |
7a197a62 | 2246 | IFS=$as_save_IFS |
ad6254c5 | 2247 | |
795ca3e5 AK |
2248 | fi |
2249 | fi | |
ad6254c5 | 2250 | CC=$ac_cv_prog_CC |
795ca3e5 | 2251 | if test -n "$CC"; then |
1995c9ff AK |
2252 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2253 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2254 | else |
1995c9ff AK |
2255 | { echo "$as_me:$LINENO: result: no" >&5 |
2256 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2257 | fi |
ad6254c5 | 2258 | |
7a197a62 | 2259 | |
ad6254c5 AK |
2260 | test -n "$CC" && break |
2261 | done | |
2262 | fi | |
2263 | if test -z "$CC"; then | |
2264 | ac_ct_CC=$CC | |
7a197a62 | 2265 | for ac_prog in cl.exe |
ad6254c5 AK |
2266 | do |
2267 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2268 | set dummy $ac_prog; ac_word=$2 | |
1995c9ff AK |
2269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2271 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1995c9ff | 2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2273 | else |
2274 | if test -n "$ac_ct_CC"; then | |
2275 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2276 | else | |
2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2278 | for as_dir in $PATH | |
2279 | do | |
2280 | IFS=$as_save_IFS | |
2281 | test -z "$as_dir" && as_dir=. | |
2282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2284 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1995c9ff | 2285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2286 | break 2 |
795ca3e5 | 2287 | fi |
ad6254c5 AK |
2288 | done |
2289 | done | |
7a197a62 | 2290 | IFS=$as_save_IFS |
ad6254c5 AK |
2291 | |
2292 | fi | |
2293 | fi | |
2294 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2295 | if test -n "$ac_ct_CC"; then | |
1995c9ff AK |
2296 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2297 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2298 | else |
1995c9ff AK |
2299 | { echo "$as_me:$LINENO: result: no" >&5 |
2300 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2301 | fi |
2302 | ||
7a197a62 | 2303 | |
ad6254c5 AK |
2304 | test -n "$ac_ct_CC" && break |
2305 | done | |
795ca3e5 | 2306 | |
7a197a62 AK |
2307 | if test "x$ac_ct_CC" = x; then |
2308 | CC="" | |
2309 | else | |
2310 | case $cross_compiling:$ac_tool_warned in | |
2311 | yes:) | |
1995c9ff | 2312 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2313 | whose name does not start with the host triplet. If you think this |
2314 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 2315 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2316 | whose name does not start with the host triplet. If you think this |
2317 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2318 | ac_tool_warned=yes ;; | |
2319 | esac | |
2320 | CC=$ac_ct_CC | |
2321 | fi | |
ad6254c5 AK |
2322 | fi |
2323 | ||
2324 | fi | |
2325 | ||
2326 | ||
1995c9ff | 2327 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2328 | See \`config.log' for more details." >&5 |
1995c9ff | 2329 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2330 | See \`config.log' for more details." >&2;} |
2331 | { (exit 1); exit 1; }; } | |
2332 | ||
2333 | # Provide some information about the compiler. | |
1995c9ff AK |
2334 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2335 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2336 | { (ac_try="$ac_compiler --version >&5" |
2337 | case "(($ac_try" in | |
2338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2339 | *) ac_try_echo=$ac_try;; | |
2340 | esac | |
1995c9ff | 2341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2342 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2343 | ac_status=$? |
1995c9ff | 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2345 | (exit $ac_status); } |
7a197a62 AK |
2346 | { (ac_try="$ac_compiler -v >&5" |
2347 | case "(($ac_try" in | |
2348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2349 | *) ac_try_echo=$ac_try;; | |
2350 | esac | |
1995c9ff | 2351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2352 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2353 | ac_status=$? |
1995c9ff | 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2355 | (exit $ac_status); } |
7a197a62 AK |
2356 | { (ac_try="$ac_compiler -V >&5" |
2357 | case "(($ac_try" in | |
2358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2359 | *) ac_try_echo=$ac_try;; | |
2360 | esac | |
1995c9ff | 2361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2362 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2363 | ac_status=$? |
1995c9ff | 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2365 | (exit $ac_status); } |
2366 | ||
2367 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2368 | /* confdefs.h. */ |
2369 | _ACEOF | |
2370 | cat confdefs.h >>conftest.$ac_ext | |
2371 | cat >>conftest.$ac_ext <<_ACEOF | |
2372 | /* end confdefs.h. */ | |
2373 | ||
2374 | int | |
2375 | main () | |
2376 | { | |
2377 | ||
2378 | ; | |
2379 | return 0; | |
2380 | } | |
2381 | _ACEOF | |
2382 | ac_clean_files_save=$ac_clean_files | |
2383 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2384 | # Try to create an executable without -o first, disregard a.out. | |
2385 | # It will help us diagnose broken compilers, and finding out an intuition | |
2386 | # of exeext. | |
1995c9ff AK |
2387 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2388 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2389 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
7a197a62 AK |
2390 | # |
2391 | # List of possible output files, starting from the most likely. | |
2392 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2393 | # only as a last resort. b.out is created by i960 compilers. | |
2394 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2395 | # | |
2396 | # The IRIX 6 linker writes into existing files which may not be | |
2397 | # executable, retaining their permissions. Remove them first so a | |
2398 | # subsequent execution test works. | |
2399 | ac_rmfiles= | |
2400 | for ac_file in $ac_files | |
2401 | do | |
2402 | case $ac_file in | |
2403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2404 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2405 | esac | |
2406 | done | |
2407 | rm -f $ac_rmfiles | |
2408 | ||
2409 | if { (ac_try="$ac_link_default" | |
2410 | case "(($ac_try" in | |
2411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2412 | *) ac_try_echo=$ac_try;; | |
2413 | esac | |
1995c9ff | 2414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2415 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2416 | ac_status=$? |
1995c9ff | 2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2418 | (exit $ac_status); }; then |
7a197a62 AK |
2419 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2420 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2421 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2422 | # so that the user can short-circuit this test for compilers unknown to | |
2423 | # Autoconf. | |
25fbec5b | 2424 | for ac_file in $ac_files '' |
ad6254c5 AK |
2425 | do |
2426 | test -f "$ac_file" || continue | |
2427 | case $ac_file in | |
7a197a62 | 2428 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2429 | ;; |
ad6254c5 | 2430 | [ab].out ) |
8a2fc586 AK |
2431 | # We found the default executable, but exeext='' is most |
2432 | # certainly right. | |
2433 | break;; | |
ad6254c5 | 2434 | *.* ) |
7a197a62 AK |
2435 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2436 | then :; else | |
2437 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2438 | fi | |
2439 | # We set ac_cv_exeext here because the later test for it is not | |
2440 | # safe: cross compilers may not add the suffix if given an `-o' | |
2441 | # argument, so we may need to know it at that point already. | |
2442 | # Even if this section looks crufty: it has the advantage of | |
2443 | # actually working. | |
8a2fc586 | 2444 | break;; |
ad6254c5 | 2445 | * ) |
8a2fc586 | 2446 | break;; |
ad6254c5 AK |
2447 | esac |
2448 | done | |
7a197a62 AK |
2449 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2450 | ||
ad6254c5 | 2451 | else |
25fbec5b AK |
2452 | ac_file='' |
2453 | fi | |
2454 | ||
2455 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2456 | echo "${ECHO_T}$ac_file" >&6; } | |
2457 | if test -z "$ac_file"; then | |
1995c9ff | 2458 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2459 | sed 's/^/| /' conftest.$ac_ext >&5 |
2460 | ||
1995c9ff | 2461 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2462 | See \`config.log' for more details." >&5 |
1995c9ff | 2463 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2464 | See \`config.log' for more details." >&2;} |
2465 | { (exit 77); exit 77; }; } | |
2466 | fi | |
2467 | ||
2468 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2469 | |
7a197a62 | 2470 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2471 | # the compiler is broken, or we cross compile. |
1995c9ff AK |
2472 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2473 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2474 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2475 | # If not cross compiling, check that we can run a simple program. | |
2476 | if test "$cross_compiling" != yes; then | |
2477 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2478 | { (case "(($ac_try" in |
2479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2480 | *) ac_try_echo=$ac_try;; | |
2481 | esac | |
1995c9ff | 2482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2483 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2484 | ac_status=$? |
1995c9ff | 2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2486 | (exit $ac_status); }; }; then |
2487 | cross_compiling=no | |
795ca3e5 | 2488 | else |
ad6254c5 AK |
2489 | if test "$cross_compiling" = maybe; then |
2490 | cross_compiling=yes | |
2491 | else | |
1995c9ff | 2492 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2493 | If you meant to cross compile, use \`--host'. |
2494 | See \`config.log' for more details." >&5 | |
1995c9ff | 2495 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2496 | If you meant to cross compile, use \`--host'. |
2497 | See \`config.log' for more details." >&2;} | |
2498 | { (exit 1); exit 1; }; } | |
2499 | fi | |
795ca3e5 | 2500 | fi |
80992638 | 2501 | fi |
1995c9ff AK |
2502 | { echo "$as_me:$LINENO: result: yes" >&5 |
2503 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 AK |
2504 | |
2505 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2506 | ac_clean_files=$ac_clean_files_save | |
7a197a62 | 2507 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2508 | # the compiler is broken, or we cross compile. |
1995c9ff AK |
2509 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2510 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2511 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2512 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2513 | |
1995c9ff AK |
2514 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2515 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2516 | if { (ac_try="$ac_link" |
2517 | case "(($ac_try" in | |
2518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2519 | *) ac_try_echo=$ac_try;; | |
2520 | esac | |
1995c9ff | 2521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2522 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2523 | ac_status=$? |
1995c9ff | 2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2525 | (exit $ac_status); }; then |
2526 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2527 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2528 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2529 | # `rm'. | |
2530 | for ac_file in conftest.exe conftest conftest.*; do | |
2531 | test -f "$ac_file" || continue | |
2532 | case $ac_file in | |
7a197a62 | 2533 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2534 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2535 | break;; |
ad6254c5 AK |
2536 | * ) break;; |
2537 | esac | |
2538 | done | |
80992638 | 2539 | else |
1995c9ff | 2540 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2541 | See \`config.log' for more details." >&5 |
1995c9ff | 2542 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2543 | See \`config.log' for more details." >&2;} |
2544 | { (exit 1); exit 1; }; } | |
2545 | fi | |
2546 | ||
2547 | rm -f conftest$ac_cv_exeext | |
1995c9ff AK |
2548 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2549 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2550 | |
2551 | rm -f conftest.$ac_ext | |
2552 | EXEEXT=$ac_cv_exeext | |
2553 | ac_exeext=$EXEEXT | |
1995c9ff AK |
2554 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2555 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2556 | if test "${ac_cv_objext+set}" = set; then |
1995c9ff | 2557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2558 | else |
ad6254c5 | 2559 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2560 | /* confdefs.h. */ |
2561 | _ACEOF | |
2562 | cat confdefs.h >>conftest.$ac_ext | |
2563 | cat >>conftest.$ac_ext <<_ACEOF | |
2564 | /* end confdefs.h. */ | |
2565 | ||
2566 | int | |
2567 | main () | |
2568 | { | |
2569 | ||
2570 | ; | |
2571 | return 0; | |
2572 | } | |
2573 | _ACEOF | |
2574 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2575 | if { (ac_try="$ac_compile" |
2576 | case "(($ac_try" in | |
2577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2578 | *) ac_try_echo=$ac_try;; | |
2579 | esac | |
1995c9ff | 2580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2581 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2582 | ac_status=$? |
1995c9ff | 2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2584 | (exit $ac_status); }; then |
7a197a62 AK |
2585 | for ac_file in conftest.o conftest.obj conftest.*; do |
2586 | test -f "$ac_file" || continue; | |
ad6254c5 | 2587 | case $ac_file in |
7a197a62 | 2588 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2589 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2590 | break;; | |
2591 | esac | |
2592 | done | |
2593 | else | |
1995c9ff | 2594 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2595 | sed 's/^/| /' conftest.$ac_ext >&5 |
2596 | ||
1995c9ff | 2597 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2598 | See \`config.log' for more details." >&5 |
1995c9ff | 2599 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2600 | See \`config.log' for more details." >&2;} |
2601 | { (exit 1); exit 1; }; } | |
2602 | fi | |
2603 | ||
2604 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2605 | fi | |
1995c9ff AK |
2606 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2607 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2608 | OBJEXT=$ac_cv_objext |
2609 | ac_objext=$OBJEXT | |
1995c9ff AK |
2610 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2611 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2612 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1995c9ff | 2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2614 | else |
2615 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2616 | /* confdefs.h. */ |
2617 | _ACEOF | |
2618 | cat confdefs.h >>conftest.$ac_ext | |
2619 | cat >>conftest.$ac_ext <<_ACEOF | |
2620 | /* end confdefs.h. */ | |
2621 | ||
2622 | int | |
2623 | main () | |
2624 | { | |
2625 | #ifndef __GNUC__ | |
2626 | choke me | |
2627 | #endif | |
80992638 | 2628 | |
ad6254c5 AK |
2629 | ; |
2630 | return 0; | |
2631 | } | |
2632 | _ACEOF | |
2633 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2634 | if { (ac_try="$ac_compile" |
2635 | case "(($ac_try" in | |
2636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2637 | *) ac_try_echo=$ac_try;; | |
2638 | esac | |
1995c9ff | 2639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2640 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2641 | ac_status=$? |
8a2fc586 AK |
2642 | grep -v '^ *+' conftest.er1 >conftest.err |
2643 | rm -f conftest.er1 | |
2644 | cat conftest.err >&5 | |
1995c9ff | 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2646 | (exit $ac_status); } && { |
2647 | test -z "$ac_c_werror_flag" || | |
2648 | test ! -s conftest.err | |
2649 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2650 | ac_compiler_gnu=yes |
80992638 | 2651 | else |
1995c9ff | 2652 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2653 | sed 's/^/| /' conftest.$ac_ext >&5 |
2654 | ||
7a197a62 | 2655 | ac_compiler_gnu=no |
8106cdd5 | 2656 | fi |
7a197a62 AK |
2657 | |
2658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2659 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2660 | |
ad6254c5 | 2661 | fi |
1995c9ff AK |
2662 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2663 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2664 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2665 | ac_test_CFLAGS=${CFLAGS+set} |
2666 | ac_save_CFLAGS=$CFLAGS | |
1995c9ff AK |
2667 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2668 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2669 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1995c9ff | 2670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2671 | else |
7a197a62 AK |
2672 | ac_save_c_werror_flag=$ac_c_werror_flag |
2673 | ac_c_werror_flag=yes | |
2674 | ac_cv_prog_cc_g=no | |
2675 | CFLAGS="-g" | |
2676 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2677 | /* confdefs.h. */ |
2678 | _ACEOF | |
2679 | cat confdefs.h >>conftest.$ac_ext | |
2680 | cat >>conftest.$ac_ext <<_ACEOF | |
2681 | /* end confdefs.h. */ | |
2682 | ||
2683 | int | |
2684 | main () | |
2685 | { | |
2686 | ||
2687 | ; | |
2688 | return 0; | |
2689 | } | |
2690 | _ACEOF | |
2691 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2692 | if { (ac_try="$ac_compile" |
2693 | case "(($ac_try" in | |
2694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2695 | *) ac_try_echo=$ac_try;; | |
2696 | esac | |
1995c9ff | 2697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2698 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2699 | ac_status=$? |
8a2fc586 AK |
2700 | grep -v '^ *+' conftest.er1 >conftest.err |
2701 | rm -f conftest.er1 | |
2702 | cat conftest.err >&5 | |
1995c9ff | 2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2704 | (exit $ac_status); } && { |
2705 | test -z "$ac_c_werror_flag" || | |
2706 | test ! -s conftest.err | |
2707 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2708 | ac_cv_prog_cc_g=yes |
2709 | else | |
1995c9ff | 2710 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2711 | sed 's/^/| /' conftest.$ac_ext >&5 |
2712 | ||
2713 | CFLAGS="" | |
2714 | cat >conftest.$ac_ext <<_ACEOF | |
2715 | /* confdefs.h. */ | |
2716 | _ACEOF | |
2717 | cat confdefs.h >>conftest.$ac_ext | |
2718 | cat >>conftest.$ac_ext <<_ACEOF | |
2719 | /* end confdefs.h. */ | |
2720 | ||
2721 | int | |
2722 | main () | |
2723 | { | |
2724 | ||
2725 | ; | |
2726 | return 0; | |
2727 | } | |
2728 | _ACEOF | |
2729 | rm -f conftest.$ac_objext | |
2730 | if { (ac_try="$ac_compile" | |
2731 | case "(($ac_try" in | |
2732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2733 | *) ac_try_echo=$ac_try;; | |
2734 | esac | |
1995c9ff | 2735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2736 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2737 | ac_status=$? |
7a197a62 AK |
2738 | grep -v '^ *+' conftest.er1 >conftest.err |
2739 | rm -f conftest.er1 | |
2740 | cat conftest.err >&5 | |
1995c9ff | 2741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2742 | (exit $ac_status); } && { |
2743 | test -z "$ac_c_werror_flag" || | |
2744 | test ! -s conftest.err | |
2745 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2746 | : |
2747 | else | |
1995c9ff | 2748 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2749 | sed 's/^/| /' conftest.$ac_ext >&5 |
2750 | ||
2751 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2752 | CFLAGS="-g" | |
2753 | cat >conftest.$ac_ext <<_ACEOF | |
2754 | /* confdefs.h. */ | |
2755 | _ACEOF | |
2756 | cat confdefs.h >>conftest.$ac_ext | |
2757 | cat >>conftest.$ac_ext <<_ACEOF | |
2758 | /* end confdefs.h. */ | |
2759 | ||
2760 | int | |
2761 | main () | |
2762 | { | |
2763 | ||
2764 | ; | |
2765 | return 0; | |
2766 | } | |
2767 | _ACEOF | |
2768 | rm -f conftest.$ac_objext | |
2769 | if { (ac_try="$ac_compile" | |
2770 | case "(($ac_try" in | |
2771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2772 | *) ac_try_echo=$ac_try;; | |
2773 | esac | |
1995c9ff | 2774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2775 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2776 | ac_status=$? |
7a197a62 AK |
2777 | grep -v '^ *+' conftest.er1 >conftest.err |
2778 | rm -f conftest.er1 | |
2779 | cat conftest.err >&5 | |
1995c9ff | 2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2781 | (exit $ac_status); } && { |
2782 | test -z "$ac_c_werror_flag" || | |
2783 | test ! -s conftest.err | |
2784 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2785 | ac_cv_prog_cc_g=yes |
2786 | else | |
1995c9ff | 2787 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2788 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2789 | |
7a197a62 AK |
2790 | |
2791 | fi | |
2792 | ||
2793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2794 | fi | |
2795 | ||
2796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2797 | fi |
7a197a62 AK |
2798 | |
2799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2800 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2801 | fi |
1995c9ff AK |
2802 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2803 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2804 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2805 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2806 | elif test $ac_cv_prog_cc_g = yes; then |
2807 | if test "$GCC" = yes; then | |
2808 | CFLAGS="-g -O2" | |
2809 | else | |
2810 | CFLAGS="-g" | |
2811 | fi | |
2812 | else | |
2813 | if test "$GCC" = yes; then | |
2814 | CFLAGS="-O2" | |
2815 | else | |
2816 | CFLAGS= | |
2817 | fi | |
2818 | fi | |
1995c9ff AK |
2819 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2820 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2821 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
1995c9ff | 2822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2823 | else |
7a197a62 | 2824 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2825 | ac_save_CC=$CC |
2826 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2827 | /* confdefs.h. */ |
2828 | _ACEOF | |
2829 | cat confdefs.h >>conftest.$ac_ext | |
2830 | cat >>conftest.$ac_ext <<_ACEOF | |
2831 | /* end confdefs.h. */ | |
2832 | #include <stdarg.h> | |
2833 | #include <stdio.h> | |
2834 | #include <sys/types.h> | |
2835 | #include <sys/stat.h> | |
2836 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2837 | struct buf { int x; }; | |
2838 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2839 | static char *e (p, i) | |
2840 | char **p; | |
2841 | int i; | |
2842 | { | |
2843 | return p[i]; | |
2844 | } | |
2845 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2846 | { | |
2847 | char *s; | |
2848 | va_list v; | |
2849 | va_start (v,p); | |
2850 | s = g (p, va_arg (v,int)); | |
2851 | va_end (v); | |
2852 | return s; | |
2853 | } | |
8a2fc586 AK |
2854 | |
2855 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2856 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2857 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2858 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2859 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2860 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2861 | that's true only with -std. */ |
8a2fc586 AK |
2862 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2863 | ||
7a197a62 AK |
2864 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2865 | inside strings and character constants. */ | |
2866 | #define FOO(x) 'x' | |
2867 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2868 | ||
ad6254c5 AK |
2869 | int test (int i, double x); |
2870 | struct s1 {int (*f) (int a);}; | |
2871 | struct s2 {int (*f) (double a);}; | |
2872 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2873 | int argc; | |
2874 | char **argv; | |
2875 | int | |
2876 | main () | |
2877 | { | |
2878 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2879 | ; | |
2880 | return 0; | |
2881 | } | |
2882 | _ACEOF | |
7a197a62 AK |
2883 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2884 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2885 | do |
2886 | CC="$ac_save_CC $ac_arg" | |
2887 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2888 | if { (ac_try="$ac_compile" |
2889 | case "(($ac_try" in | |
2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2891 | *) ac_try_echo=$ac_try;; | |
2892 | esac | |
1995c9ff | 2893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2894 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2895 | ac_status=$? |
8a2fc586 AK |
2896 | grep -v '^ *+' conftest.er1 >conftest.err |
2897 | rm -f conftest.er1 | |
2898 | cat conftest.err >&5 | |
1995c9ff | 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2900 | (exit $ac_status); } && { |
2901 | test -z "$ac_c_werror_flag" || | |
2902 | test ! -s conftest.err | |
2903 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 2904 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 2905 | else |
1995c9ff | 2906 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2907 | sed 's/^/| /' conftest.$ac_ext >&5 |
2908 | ||
7a197a62 | 2909 | |
ad6254c5 | 2910 | fi |
7a197a62 AK |
2911 | |
2912 | rm -f core conftest.err conftest.$ac_objext | |
2913 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2914 | done |
7a197a62 | 2915 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2916 | CC=$ac_save_CC |
2917 | ||
2918 | fi | |
7a197a62 AK |
2919 | # AC_CACHE_VAL |
2920 | case "x$ac_cv_prog_cc_c89" in | |
2921 | x) | |
1995c9ff AK |
2922 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2923 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 2924 | xno) |
1995c9ff AK |
2925 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
2926 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 2927 | *) |
7a197a62 | 2928 | CC="$CC $ac_cv_prog_cc_c89" |
1995c9ff AK |
2929 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2930 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2931 | esac |
2932 | ||
ad6254c5 | 2933 | |
ad6254c5 AK |
2934 | ac_ext=c |
2935 | ac_cpp='$CPP $CPPFLAGS' | |
2936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2939 | |
2940 | # Find a good install program. We prefer a C program (faster), | |
2941 | # so one script is as good as another. But avoid the broken or | |
2942 | # incompatible versions: | |
2943 | # SysV /etc/install, /usr/sbin/install | |
2944 | # SunOS /usr/etc/install | |
2945 | # IRIX /sbin/install | |
2946 | # AIX /bin/install | |
ad6254c5 | 2947 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2948 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2949 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2950 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 2951 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2952 | # ./install, which can be erroneously created by make from ./install.sh. |
1995c9ff AK |
2953 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2954 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
795ca3e5 | 2955 | if test -z "$INSTALL"; then |
ad6254c5 | 2956 | if test "${ac_cv_path_install+set}" = set; then |
1995c9ff | 2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2958 | else |
2959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2960 | for as_dir in $PATH | |
2961 | do | |
2962 | IFS=$as_save_IFS | |
2963 | test -z "$as_dir" && as_dir=. | |
2964 | # Account for people who put trailing slashes in PATH elements. | |
2965 | case $as_dir/ in | |
2966 | ./ | .// | /cC/* | \ | |
2967 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 2968 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2969 | /usr/ucb/* ) ;; |
2970 | *) | |
2971 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2972 | # Don't use installbsd from OSF since it installs stuff as root | |
2973 | # by default. | |
2974 | for ac_prog in ginstall scoinst install; do | |
2975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2976 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
8a2fc586 AK |
2977 | if test $ac_prog = install && |
2978 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2979 | # AIX install. It has an incompatible calling convention. | |
2980 | : | |
2981 | elif test $ac_prog = install && | |
2982 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2983 | # program-specific install script used by HP pwplus--don't use. | |
2984 | : | |
2985 | else | |
2986 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2987 | break 3 | |
2988 | fi | |
2989 | fi | |
795ca3e5 | 2990 | done |
ad6254c5 AK |
2991 | done |
2992 | ;; | |
2993 | esac | |
2994 | done | |
7a197a62 | 2995 | IFS=$as_save_IFS |
ad6254c5 | 2996 | |
795ca3e5 AK |
2997 | |
2998 | fi | |
2999 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 3000 | INSTALL=$ac_cv_path_install |
795ca3e5 | 3001 | else |
7a197a62 AK |
3002 | # As a last resort, use the slow shell script. Don't cache a |
3003 | # value for INSTALL within a source directory, because that will | |
795ca3e5 | 3004 | # break other packages using the cache if that directory is |
7a197a62 | 3005 | # removed, or if the value is a relative name. |
ad6254c5 | 3006 | INSTALL=$ac_install_sh |
795ca3e5 AK |
3007 | fi |
3008 | fi | |
1995c9ff AK |
3009 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3010 | echo "${ECHO_T}$INSTALL" >&6; } | |
795ca3e5 AK |
3011 | |
3012 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3013 | # It thinks the first close brace ends the variable substitution. | |
3014 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3015 | ||
ad6254c5 | 3016 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
3017 | |
3018 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3019 | ||
1995c9ff AK |
3020 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3021 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
ad6254c5 AK |
3022 | LN_S=$as_ln_s |
3023 | if test "$LN_S" = "ln -s"; then | |
1995c9ff AK |
3024 | { echo "$as_me:$LINENO: result: yes" >&5 |
3025 | echo "${ECHO_T}yes" >&6; } | |
80992638 | 3026 | else |
1995c9ff AK |
3027 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3028 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 AK |
3029 | fi |
3030 | ||
1995c9ff AK |
3031 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3032 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3033 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7a197a62 | 3034 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 3035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 3036 | else |
ad6254c5 | 3037 | cat >conftest.make <<\_ACEOF |
7a197a62 | 3038 | SHELL = /bin/sh |
795ca3e5 | 3039 | all: |
7a197a62 | 3040 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
ad6254c5 | 3041 | _ACEOF |
795ca3e5 | 3042 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7a197a62 AK |
3043 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3044 | *@@@%%%=?*=@@@%%%*) | |
3045 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3046 | *) | |
3047 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3048 | esac | |
ad6254c5 | 3049 | rm -f conftest.make |
795ca3e5 | 3050 | fi |
7a197a62 | 3051 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1995c9ff AK |
3052 | { echo "$as_me:$LINENO: result: yes" >&5 |
3053 | echo "${ECHO_T}yes" >&6; } | |
795ca3e5 AK |
3054 | SET_MAKE= |
3055 | else | |
1995c9ff AK |
3056 | { echo "$as_me:$LINENO: result: no" >&5 |
3057 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
3058 | SET_MAKE="MAKE=${MAKE-make}" |
3059 | fi | |
3060 | ||
ad6254c5 AK |
3061 | if test -n "$ac_tool_prefix"; then |
3062 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3063 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1995c9ff AK |
3064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 3066 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
1995c9ff | 3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
3068 | else |
3069 | if test -n "$RANLIB"; then | |
3070 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3071 | else | |
ad6254c5 AK |
3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3073 | for as_dir in $PATH | |
3074 | do | |
3075 | IFS=$as_save_IFS | |
3076 | test -z "$as_dir" && as_dir=. | |
3077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 3078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 3079 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
1995c9ff | 3080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
3081 | break 2 |
3082 | fi | |
3083 | done | |
3084 | done | |
7a197a62 | 3085 | IFS=$as_save_IFS |
ad6254c5 | 3086 | |
795ca3e5 AK |
3087 | fi |
3088 | fi | |
ad6254c5 | 3089 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 3090 | if test -n "$RANLIB"; then |
1995c9ff AK |
3091 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3092 | echo "${ECHO_T}$RANLIB" >&6; } | |
8106cdd5 | 3093 | else |
1995c9ff AK |
3094 | { echo "$as_me:$LINENO: result: no" >&5 |
3095 | echo "${ECHO_T}no" >&6; } | |
8106cdd5 AK |
3096 | fi |
3097 | ||
7a197a62 | 3098 | |
795ca3e5 | 3099 | fi |
ad6254c5 AK |
3100 | if test -z "$ac_cv_prog_RANLIB"; then |
3101 | ac_ct_RANLIB=$RANLIB | |
3102 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3103 | set dummy ranlib; ac_word=$2 | |
1995c9ff AK |
3104 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 3106 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
1995c9ff | 3107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 3108 | else |
ad6254c5 AK |
3109 | if test -n "$ac_ct_RANLIB"; then |
3110 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3111 | else | |
3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3113 | for as_dir in $PATH | |
3114 | do | |
3115 | IFS=$as_save_IFS | |
3116 | test -z "$as_dir" && as_dir=. | |
3117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 3118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 3119 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
1995c9ff | 3120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
3121 | break 2 |
3122 | fi | |
3123 | done | |
795ca3e5 | 3124 | done |
7a197a62 | 3125 | IFS=$as_save_IFS |
8106cdd5 | 3126 | |
795ca3e5 | 3127 | fi |
80992638 | 3128 | fi |
ad6254c5 AK |
3129 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3130 | if test -n "$ac_ct_RANLIB"; then | |
1995c9ff AK |
3131 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3132 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
80992638 | 3133 | else |
1995c9ff AK |
3134 | { echo "$as_me:$LINENO: result: no" >&5 |
3135 | echo "${ECHO_T}no" >&6; } | |
8106cdd5 | 3136 | fi |
8106cdd5 | 3137 | |
7a197a62 AK |
3138 | if test "x$ac_ct_RANLIB" = x; then |
3139 | RANLIB=":" | |
3140 | else | |
3141 | case $cross_compiling:$ac_tool_warned in | |
3142 | yes:) | |
1995c9ff | 3143 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
3144 | whose name does not start with the host triplet. If you think this |
3145 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 3146 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
3147 | whose name does not start with the host triplet. If you think this |
3148 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3149 | ac_tool_warned=yes ;; | |
3150 | esac | |
3151 | RANLIB=$ac_ct_RANLIB | |
3152 | fi | |
80992638 | 3153 | else |
ad6254c5 | 3154 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 3155 | fi |
795ca3e5 | 3156 | |
8a2fc586 AK |
3157 | # Extract the first word of "cflow", so it can be a program name with args. |
3158 | set dummy cflow; ac_word=$2 | |
1995c9ff AK |
3159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8a2fc586 | 3161 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
1995c9ff | 3162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
3163 | else |
3164 | case $CFLOW_CMD in | |
3165 | [\\/]* | ?:[\\/]*) | |
3166 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3167 | ;; | |
3168 | *) | |
3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3170 | for as_dir in $PATH | |
3171 | do | |
3172 | IFS=$as_save_IFS | |
3173 | test -z "$as_dir" && as_dir=. | |
3174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 3175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 | 3176 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 3177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8a2fc586 AK |
3178 | break 2 |
3179 | fi | |
3180 | done | |
3181 | done | |
7a197a62 | 3182 | IFS=$as_save_IFS |
8a2fc586 AK |
3183 | |
3184 | ;; | |
3185 | esac | |
3186 | fi | |
3187 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
8a2fc586 | 3188 | if test -n "$CFLOW_CMD"; then |
1995c9ff AK |
3189 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3190 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
8a2fc586 | 3191 | else |
1995c9ff AK |
3192 | { echo "$as_me:$LINENO: result: no" >&5 |
3193 | echo "${ECHO_T}no" >&6; } | |
8a2fc586 AK |
3194 | fi |
3195 | ||
7a197a62 | 3196 | |
8a2fc586 AK |
3197 | # Extract the first word of "cscope", so it can be a program name with args. |
3198 | set dummy cscope; ac_word=$2 | |
1995c9ff AK |
3199 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8a2fc586 | 3201 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
1995c9ff | 3202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
3203 | else |
3204 | case $CSCOPE_CMD in | |
3205 | [\\/]* | ?:[\\/]*) | |
3206 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3207 | ;; | |
3208 | *) | |
3209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3210 | for as_dir in $PATH | |
3211 | do | |
3212 | IFS=$as_save_IFS | |
3213 | test -z "$as_dir" && as_dir=. | |
3214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 3215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 | 3216 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 3217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8a2fc586 AK |
3218 | break 2 |
3219 | fi | |
3220 | done | |
3221 | done | |
7a197a62 | 3222 | IFS=$as_save_IFS |
8a2fc586 AK |
3223 | |
3224 | ;; | |
3225 | esac | |
3226 | fi | |
3227 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
8a2fc586 | 3228 | if test -n "$CSCOPE_CMD"; then |
1995c9ff AK |
3229 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3230 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
8a2fc586 | 3231 | else |
1995c9ff AK |
3232 | { echo "$as_me:$LINENO: result: no" >&5 |
3233 | echo "${ECHO_T}no" >&6; } | |
8a2fc586 AK |
3234 | fi |
3235 | ||
795ca3e5 | 3236 | |
7a197a62 | 3237 | |
ad6254c5 AK |
3238 | ################################################################################ |
3239 | ||
3240 | ||
3241 | ||
3242 | ||
3243 | ||
3244 | ||
3245 | ac_header_dirent=no | |
3246 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
1995c9ff AK |
3247 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3248 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3249 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
7a197a62 | 3250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 3251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3252 | else |
ad6254c5 | 3253 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3254 | /* confdefs.h. */ |
3255 | _ACEOF | |
3256 | cat confdefs.h >>conftest.$ac_ext | |
3257 | cat >>conftest.$ac_ext <<_ACEOF | |
3258 | /* end confdefs.h. */ | |
3259 | #include <sys/types.h> | |
3260 | #include <$ac_hdr> | |
3261 | ||
3262 | int | |
3263 | main () | |
3264 | { | |
3265 | if ((DIR *) 0) | |
3266 | return 0; | |
3267 | ; | |
3268 | return 0; | |
3269 | } | |
3270 | _ACEOF | |
3271 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3272 | if { (ac_try="$ac_compile" |
3273 | case "(($ac_try" in | |
3274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3275 | *) ac_try_echo=$ac_try;; | |
3276 | esac | |
1995c9ff | 3277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3278 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3279 | ac_status=$? |
8a2fc586 AK |
3280 | grep -v '^ *+' conftest.er1 >conftest.err |
3281 | rm -f conftest.er1 | |
3282 | cat conftest.err >&5 | |
1995c9ff | 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3284 | (exit $ac_status); } && { |
3285 | test -z "$ac_c_werror_flag" || | |
3286 | test ! -s conftest.err | |
3287 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3288 | eval "$as_ac_Header=yes" |
8106cdd5 | 3289 | else |
1995c9ff | 3290 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3291 | sed 's/^/| /' conftest.$ac_ext >&5 |
3292 | ||
7a197a62 | 3293 | eval "$as_ac_Header=no" |
795ca3e5 | 3294 | fi |
7a197a62 AK |
3295 | |
3296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 3297 | fi |
1995c9ff AK |
3298 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3299 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3300 | echo "${ECHO_T}$ac_res" >&6; } | |
3301 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
ad6254c5 | 3302 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 3303 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
ad6254c5 AK |
3304 | _ACEOF |
3305 | ||
3306 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 3307 | fi |
8106cdd5 | 3308 | |
ad6254c5 AK |
3309 | done |
3310 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3311 | if test $ac_header_dirent = dirent.h; then | |
1995c9ff AK |
3312 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3313 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
ad6254c5 | 3314 | if test "${ac_cv_search_opendir+set}" = set; then |
1995c9ff | 3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 3316 | else |
ad6254c5 | 3317 | ac_func_search_save_LIBS=$LIBS |
ad6254c5 | 3318 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3319 | /* confdefs.h. */ |
3320 | _ACEOF | |
3321 | cat confdefs.h >>conftest.$ac_ext | |
3322 | cat >>conftest.$ac_ext <<_ACEOF | |
3323 | /* end confdefs.h. */ | |
3324 | ||
7a197a62 AK |
3325 | /* Override any GCC internal prototype to avoid an error. |
3326 | Use char because int might match the return type of a GCC | |
3327 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3328 | #ifdef __cplusplus |
3329 | extern "C" | |
3330 | #endif | |
ad6254c5 AK |
3331 | char opendir (); |
3332 | int | |
3333 | main () | |
3334 | { | |
7a197a62 | 3335 | return opendir (); |
ad6254c5 AK |
3336 | ; |
3337 | return 0; | |
3338 | } | |
3339 | _ACEOF | |
7a197a62 AK |
3340 | for ac_lib in '' dir; do |
3341 | if test -z "$ac_lib"; then | |
3342 | ac_res="none required" | |
3343 | else | |
3344 | ac_res=-l$ac_lib | |
3345 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3346 | fi | |
3347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3348 | if { (ac_try="$ac_link" | |
3349 | case "(($ac_try" in | |
3350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3351 | *) ac_try_echo=$ac_try;; | |
3352 | esac | |
1995c9ff | 3353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3354 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 3355 | ac_status=$? |
8a2fc586 AK |
3356 | grep -v '^ *+' conftest.er1 >conftest.err |
3357 | rm -f conftest.er1 | |
3358 | cat conftest.err >&5 | |
1995c9ff | 3359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3360 | (exit $ac_status); } && { |
3361 | test -z "$ac_c_werror_flag" || | |
3362 | test ! -s conftest.err | |
3363 | } && test -s conftest$ac_exeext && | |
3364 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 3365 | ac_cv_search_opendir=$ac_res |
795ca3e5 | 3366 | else |
1995c9ff | 3367 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3368 | sed 's/^/| /' conftest.$ac_ext >&5 |
3369 | ||
795ca3e5 | 3370 | |
7a197a62 | 3371 | fi |
795ca3e5 | 3372 | |
25fbec5b | 3373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
3374 | conftest$ac_exeext |
3375 | if test "${ac_cv_search_opendir+set}" = set; then | |
3376 | break | |
795ca3e5 | 3377 | fi |
7a197a62 AK |
3378 | done |
3379 | if test "${ac_cv_search_opendir+set}" = set; then | |
3380 | : | |
3381 | else | |
3382 | ac_cv_search_opendir=no | |
795ca3e5 | 3383 | fi |
7a197a62 | 3384 | rm conftest.$ac_ext |
ad6254c5 AK |
3385 | LIBS=$ac_func_search_save_LIBS |
3386 | fi | |
1995c9ff AK |
3387 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3388 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
7a197a62 AK |
3389 | ac_res=$ac_cv_search_opendir |
3390 | if test "$ac_res" != no; then | |
3391 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
795ca3e5 AK |
3392 | |
3393 | fi | |
3394 | ||
795ca3e5 | 3395 | else |
1995c9ff AK |
3396 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3397 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
ad6254c5 | 3398 | if test "${ac_cv_search_opendir+set}" = set; then |
1995c9ff | 3399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
3400 | else |
3401 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 3402 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3403 | /* confdefs.h. */ |
3404 | _ACEOF | |
3405 | cat confdefs.h >>conftest.$ac_ext | |
3406 | cat >>conftest.$ac_ext <<_ACEOF | |
3407 | /* end confdefs.h. */ | |
80992638 | 3408 | |
7a197a62 AK |
3409 | /* Override any GCC internal prototype to avoid an error. |
3410 | Use char because int might match the return type of a GCC | |
3411 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3412 | #ifdef __cplusplus |
3413 | extern "C" | |
3414 | #endif | |
ad6254c5 AK |
3415 | char opendir (); |
3416 | int | |
3417 | main () | |
3418 | { | |
7a197a62 | 3419 | return opendir (); |
ad6254c5 AK |
3420 | ; |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
7a197a62 AK |
3424 | for ac_lib in '' x; do |
3425 | if test -z "$ac_lib"; then | |
3426 | ac_res="none required" | |
3427 | else | |
3428 | ac_res=-l$ac_lib | |
3429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3430 | fi | |
3431 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3432 | if { (ac_try="$ac_link" | |
3433 | case "(($ac_try" in | |
3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3435 | *) ac_try_echo=$ac_try;; | |
3436 | esac | |
1995c9ff | 3437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3438 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 3439 | ac_status=$? |
8a2fc586 AK |
3440 | grep -v '^ *+' conftest.er1 >conftest.err |
3441 | rm -f conftest.er1 | |
3442 | cat conftest.err >&5 | |
1995c9ff | 3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3444 | (exit $ac_status); } && { |
3445 | test -z "$ac_c_werror_flag" || | |
3446 | test ! -s conftest.err | |
3447 | } && test -s conftest$ac_exeext && | |
3448 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 3449 | ac_cv_search_opendir=$ac_res |
795ca3e5 | 3450 | else |
1995c9ff | 3451 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3452 | sed 's/^/| /' conftest.$ac_ext >&5 |
3453 | ||
ad6254c5 | 3454 | |
7a197a62 | 3455 | fi |
80992638 | 3456 | |
25fbec5b | 3457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
3458 | conftest$ac_exeext |
3459 | if test "${ac_cv_search_opendir+set}" = set; then | |
3460 | break | |
795ca3e5 | 3461 | fi |
7a197a62 AK |
3462 | done |
3463 | if test "${ac_cv_search_opendir+set}" = set; then | |
3464 | : | |
3465 | else | |
3466 | ac_cv_search_opendir=no | |
ad6254c5 | 3467 | fi |
7a197a62 | 3468 | rm conftest.$ac_ext |
ad6254c5 | 3469 | LIBS=$ac_func_search_save_LIBS |
795ca3e5 | 3470 | fi |
1995c9ff AK |
3471 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3472 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
7a197a62 AK |
3473 | ac_res=$ac_cv_search_opendir |
3474 | if test "$ac_res" != no; then | |
3475 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8106cdd5 | 3476 | |
ad6254c5 | 3477 | fi |
8106cdd5 | 3478 | |
795ca3e5 | 3479 | fi |
8106cdd5 | 3480 | |
ad6254c5 AK |
3481 | ac_ext=c |
3482 | ac_cpp='$CPP $CPPFLAGS' | |
3483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1995c9ff AK |
3486 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3487 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ad6254c5 AK |
3488 | # On Suns, sometimes $CPP names a directory. |
3489 | if test -n "$CPP" && test -d "$CPP"; then | |
3490 | CPP= | |
3491 | fi | |
3492 | if test -z "$CPP"; then | |
3493 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1995c9ff | 3494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
3495 | else |
3496 | # Double quotes because CPP needs to be expanded | |
3497 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3498 | do | |
3499 | ac_preproc_ok=false | |
3500 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3501 | do |
ad6254c5 AK |
3502 | # Use a header file that comes with gcc, so configuring glibc |
3503 | # with a fresh cross-compiler works. | |
3504 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3505 | # <limits.h> exists even on freestanding compilers. | |
3506 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3507 | # not just through cpp. "Syntax error" is here to catch this case. | |
3508 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3509 | /* confdefs.h. */ |
3510 | _ACEOF | |
3511 | cat confdefs.h >>conftest.$ac_ext | |
3512 | cat >>conftest.$ac_ext <<_ACEOF | |
3513 | /* end confdefs.h. */ | |
3514 | #ifdef __STDC__ | |
3515 | # include <limits.h> | |
3516 | #else | |
3517 | # include <assert.h> | |
3518 | #endif | |
8a2fc586 | 3519 | Syntax error |
ad6254c5 | 3520 | _ACEOF |
7a197a62 AK |
3521 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3522 | case "(($ac_try" in | |
3523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3524 | *) ac_try_echo=$ac_try;; | |
3525 | esac | |
1995c9ff | 3526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3527 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3528 | ac_status=$? |
3529 | grep -v '^ *+' conftest.er1 >conftest.err | |
3530 | rm -f conftest.er1 | |
3531 | cat conftest.err >&5 | |
1995c9ff | 3532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3533 | (exit $ac_status); } >/dev/null && { |
3534 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3535 | test ! -s conftest.err | |
3536 | }; then | |
ad6254c5 AK |
3537 | : |
3538 | else | |
1995c9ff | 3539 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3540 | sed 's/^/| /' conftest.$ac_ext >&5 |
3541 | ||
3542 | # Broken: fails on valid input. | |
3543 | continue | |
3544 | fi | |
7a197a62 | 3545 | |
ad6254c5 AK |
3546 | rm -f conftest.err conftest.$ac_ext |
3547 | ||
7a197a62 | 3548 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3549 | # can be detected and how. |
3550 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3551 | /* confdefs.h. */ |
3552 | _ACEOF | |
3553 | cat confdefs.h >>conftest.$ac_ext | |
3554 | cat >>conftest.$ac_ext <<_ACEOF | |
3555 | /* end confdefs.h. */ | |
3556 | #include <ac_nonexistent.h> | |
3557 | _ACEOF | |
7a197a62 AK |
3558 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3559 | case "(($ac_try" in | |
3560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3561 | *) ac_try_echo=$ac_try;; | |
3562 | esac | |
1995c9ff | 3563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3564 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3565 | ac_status=$? |
3566 | grep -v '^ *+' conftest.er1 >conftest.err | |
3567 | rm -f conftest.er1 | |
3568 | cat conftest.err >&5 | |
1995c9ff | 3569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3570 | (exit $ac_status); } >/dev/null && { |
3571 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3572 | test ! -s conftest.err | |
3573 | }; then | |
ad6254c5 AK |
3574 | # Broken: success on invalid input. |
3575 | continue | |
80992638 | 3576 | else |
1995c9ff | 3577 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3578 | sed 's/^/| /' conftest.$ac_ext >&5 |
3579 | ||
3580 | # Passes both tests. | |
3581 | ac_preproc_ok=: | |
3582 | break | |
795ca3e5 | 3583 | fi |
7a197a62 | 3584 | |
ad6254c5 AK |
3585 | rm -f conftest.err conftest.$ac_ext |
3586 | ||
795ca3e5 | 3587 | done |
ad6254c5 AK |
3588 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3589 | rm -f conftest.err conftest.$ac_ext | |
3590 | if $ac_preproc_ok; then | |
3591 | break | |
3592 | fi | |
795ca3e5 | 3593 | |
ad6254c5 AK |
3594 | done |
3595 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3596 | |
ad6254c5 AK |
3597 | fi |
3598 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3599 | else |
ad6254c5 | 3600 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3601 | fi |
1995c9ff AK |
3602 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3603 | echo "${ECHO_T}$CPP" >&6; } | |
ad6254c5 AK |
3604 | ac_preproc_ok=false |
3605 | for ac_c_preproc_warn_flag in '' yes | |
3606 | do | |
3607 | # Use a header file that comes with gcc, so configuring glibc | |
3608 | # with a fresh cross-compiler works. | |
3609 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3610 | # <limits.h> exists even on freestanding compilers. | |
3611 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3612 | # not just through cpp. "Syntax error" is here to catch this case. | |
3613 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3614 | /* confdefs.h. */ |
3615 | _ACEOF | |
3616 | cat confdefs.h >>conftest.$ac_ext | |
3617 | cat >>conftest.$ac_ext <<_ACEOF | |
3618 | /* end confdefs.h. */ | |
3619 | #ifdef __STDC__ | |
3620 | # include <limits.h> | |
3621 | #else | |
3622 | # include <assert.h> | |
3623 | #endif | |
8a2fc586 | 3624 | Syntax error |
ad6254c5 | 3625 | _ACEOF |
7a197a62 AK |
3626 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3627 | case "(($ac_try" in | |
3628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3629 | *) ac_try_echo=$ac_try;; | |
3630 | esac | |
1995c9ff | 3631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3633 | ac_status=$? |
3634 | grep -v '^ *+' conftest.er1 >conftest.err | |
3635 | rm -f conftest.er1 | |
3636 | cat conftest.err >&5 | |
1995c9ff | 3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3638 | (exit $ac_status); } >/dev/null && { |
3639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3640 | test ! -s conftest.err | |
3641 | }; then | |
ad6254c5 AK |
3642 | : |
3643 | else | |
1995c9ff | 3644 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
3646 | ||
3647 | # Broken: fails on valid input. | |
3648 | continue | |
3649 | fi | |
7a197a62 | 3650 | |
ad6254c5 AK |
3651 | rm -f conftest.err conftest.$ac_ext |
3652 | ||
7a197a62 | 3653 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3654 | # can be detected and how. |
3655 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3656 | /* confdefs.h. */ |
3657 | _ACEOF | |
3658 | cat confdefs.h >>conftest.$ac_ext | |
3659 | cat >>conftest.$ac_ext <<_ACEOF | |
3660 | /* end confdefs.h. */ | |
3661 | #include <ac_nonexistent.h> | |
3662 | _ACEOF | |
7a197a62 AK |
3663 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3664 | case "(($ac_try" in | |
3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3666 | *) ac_try_echo=$ac_try;; | |
3667 | esac | |
1995c9ff | 3668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3670 | ac_status=$? |
3671 | grep -v '^ *+' conftest.er1 >conftest.err | |
3672 | rm -f conftest.er1 | |
3673 | cat conftest.err >&5 | |
1995c9ff | 3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3675 | (exit $ac_status); } >/dev/null && { |
3676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3677 | test ! -s conftest.err | |
3678 | }; then | |
ad6254c5 AK |
3679 | # Broken: success on invalid input. |
3680 | continue | |
3681 | else | |
1995c9ff | 3682 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3683 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3684 | |
ad6254c5 AK |
3685 | # Passes both tests. |
3686 | ac_preproc_ok=: | |
3687 | break | |
795ca3e5 | 3688 | fi |
7a197a62 | 3689 | |
ad6254c5 | 3690 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3691 | |
ad6254c5 AK |
3692 | done |
3693 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3694 | rm -f conftest.err conftest.$ac_ext | |
3695 | if $ac_preproc_ok; then | |
3696 | : | |
795ca3e5 | 3697 | else |
1995c9ff | 3698 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
ad6254c5 | 3699 | See \`config.log' for more details." >&5 |
1995c9ff | 3700 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
ad6254c5 AK |
3701 | See \`config.log' for more details." >&2;} |
3702 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3703 | fi |
795ca3e5 | 3704 | |
ad6254c5 AK |
3705 | ac_ext=c |
3706 | ac_cpp='$CPP $CPPFLAGS' | |
3707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3710 | ||
3711 | ||
1995c9ff AK |
3712 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3713 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
7a197a62 | 3714 | if test "${ac_cv_path_GREP+set}" = set; then |
1995c9ff | 3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3716 | else |
3717 | # Extract the first word of "grep ggrep" to use in msg output | |
3718 | if test -z "$GREP"; then | |
3719 | set dummy grep ggrep; ac_prog_name=$2 | |
3720 | if test "${ac_cv_path_GREP+set}" = set; then | |
1995c9ff | 3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3722 | else |
7a197a62 AK |
3723 | ac_path_GREP_found=false |
3724 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3726 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3727 | do | |
3728 | IFS=$as_save_IFS | |
3729 | test -z "$as_dir" && as_dir=. | |
3730 | for ac_prog in grep ggrep; do | |
3731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3732 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
25fbec5b | 3733 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
7a197a62 AK |
3734 | # Check for GNU ac_path_GREP and select it if it is found. |
3735 | # Check for GNU $ac_path_GREP | |
3736 | case `"$ac_path_GREP" --version 2>&1` in | |
3737 | *GNU*) | |
3738 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3739 | *) | |
3740 | ac_count=0 | |
1995c9ff | 3741 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
7a197a62 AK |
3742 | while : |
3743 | do | |
3744 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3745 | mv "conftest.tmp" "conftest.in" | |
3746 | cp "conftest.in" "conftest.nl" | |
1995c9ff | 3747 | echo 'GREP' >> "conftest.nl" |
7a197a62 AK |
3748 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3749 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3750 | ac_count=`expr $ac_count + 1` | |
3751 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3752 | # Best one so far, save it but keep looking for a better one | |
3753 | ac_cv_path_GREP="$ac_path_GREP" | |
3754 | ac_path_GREP_max=$ac_count | |
ad6254c5 | 3755 | fi |
7a197a62 AK |
3756 | # 10*(2^10) chars as input seems more than enough |
3757 | test $ac_count -gt 10 && break | |
3758 | done | |
3759 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3760 | esac | |
80992638 | 3761 | |
795ca3e5 | 3762 | |
7a197a62 AK |
3763 | $ac_path_GREP_found && break 3 |
3764 | done | |
3765 | done | |
ad6254c5 | 3766 | |
7a197a62 AK |
3767 | done |
3768 | IFS=$as_save_IFS | |
ad6254c5 | 3769 | |
ad6254c5 | 3770 | |
795ca3e5 | 3771 | fi |
ad6254c5 | 3772 | |
7a197a62 AK |
3773 | GREP="$ac_cv_path_GREP" |
3774 | if test -z "$GREP"; then | |
1995c9ff AK |
3775 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3776 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7a197a62 AK |
3777 | { (exit 1); exit 1; }; } |
3778 | fi | |
3779 | ||
3780 | else | |
3781 | ac_cv_path_GREP=$GREP | |
3782 | fi | |
3783 | ||
3784 | ||
3785 | fi | |
1995c9ff AK |
3786 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3787 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
7a197a62 AK |
3788 | GREP="$ac_cv_path_GREP" |
3789 | ||
3790 | ||
1995c9ff AK |
3791 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3792 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
7a197a62 | 3793 | if test "${ac_cv_path_EGREP+set}" = set; then |
1995c9ff | 3794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3795 | else |
3796 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3797 | then ac_cv_path_EGREP="$GREP -E" | |
3798 | else | |
3799 | # Extract the first word of "egrep" to use in msg output | |
3800 | if test -z "$EGREP"; then | |
3801 | set dummy egrep; ac_prog_name=$2 | |
3802 | if test "${ac_cv_path_EGREP+set}" = set; then | |
1995c9ff | 3803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3804 | else |
3805 | ac_path_EGREP_found=false | |
3806 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3808 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3809 | do | |
3810 | IFS=$as_save_IFS | |
3811 | test -z "$as_dir" && as_dir=. | |
3812 | for ac_prog in egrep; do | |
3813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3814 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
25fbec5b | 3815 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
7a197a62 AK |
3816 | # Check for GNU ac_path_EGREP and select it if it is found. |
3817 | # Check for GNU $ac_path_EGREP | |
3818 | case `"$ac_path_EGREP" --version 2>&1` in | |
3819 | *GNU*) | |
3820 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3821 | *) | |
3822 | ac_count=0 | |
1995c9ff | 3823 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
7a197a62 AK |
3824 | while : |
3825 | do | |
3826 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3827 | mv "conftest.tmp" "conftest.in" | |
3828 | cp "conftest.in" "conftest.nl" | |
1995c9ff | 3829 | echo 'EGREP' >> "conftest.nl" |
7a197a62 AK |
3830 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3831 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3832 | ac_count=`expr $ac_count + 1` | |
3833 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3834 | # Best one so far, save it but keep looking for a better one | |
3835 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3836 | ac_path_EGREP_max=$ac_count | |
3837 | fi | |
3838 | # 10*(2^10) chars as input seems more than enough | |
3839 | test $ac_count -gt 10 && break | |
3840 | done | |
3841 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3842 | esac | |
3843 | ||
3844 | ||
3845 | $ac_path_EGREP_found && break 3 | |
3846 | done | |
3847 | done | |
3848 | ||
3849 | done | |
3850 | IFS=$as_save_IFS | |
3851 | ||
3852 | ||
3853 | fi | |
3854 | ||
3855 | EGREP="$ac_cv_path_EGREP" | |
3856 | if test -z "$EGREP"; then | |
1995c9ff AK |
3857 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3858 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7a197a62 AK |
3859 | { (exit 1); exit 1; }; } |
3860 | fi | |
3861 | ||
3862 | else | |
3863 | ac_cv_path_EGREP=$EGREP | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | fi | |
3868 | fi | |
1995c9ff AK |
3869 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3870 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
7a197a62 AK |
3871 | EGREP="$ac_cv_path_EGREP" |
3872 | ||
3873 | ||
1995c9ff AK |
3874 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3875 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 3876 | if test "${ac_cv_header_stdc+set}" = set; then |
1995c9ff | 3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3878 | else |
3879 | cat >conftest.$ac_ext <<_ACEOF | |
3880 | /* confdefs.h. */ | |
3881 | _ACEOF | |
3882 | cat confdefs.h >>conftest.$ac_ext | |
3883 | cat >>conftest.$ac_ext <<_ACEOF | |
3884 | /* end confdefs.h. */ | |
3885 | #include <stdlib.h> | |
3886 | #include <stdarg.h> | |
3887 | #include <string.h> | |
3888 | #include <float.h> | |
3889 | ||
3890 | int | |
3891 | main () | |
3892 | { | |
3893 | ||
3894 | ; | |
3895 | return 0; | |
3896 | } | |
3897 | _ACEOF | |
3898 | rm -f conftest.$ac_objext | |
3899 | if { (ac_try="$ac_compile" | |
3900 | case "(($ac_try" in | |
3901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3902 | *) ac_try_echo=$ac_try;; | |
3903 | esac | |
1995c9ff | 3904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
3905 | (eval "$ac_compile") 2>conftest.er1 |
3906 | ac_status=$? | |
3907 | grep -v '^ *+' conftest.er1 >conftest.err | |
3908 | rm -f conftest.er1 | |
3909 | cat conftest.err >&5 | |
1995c9ff | 3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3911 | (exit $ac_status); } && { |
3912 | test -z "$ac_c_werror_flag" || | |
3913 | test ! -s conftest.err | |
3914 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3915 | ac_cv_header_stdc=yes |
3916 | else | |
1995c9ff | 3917 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3918 | sed 's/^/| /' conftest.$ac_ext >&5 |
3919 | ||
3920 | ac_cv_header_stdc=no | |
3921 | fi | |
3922 | ||
3923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3924 | ||
3925 | if test $ac_cv_header_stdc = yes; then | |
3926 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 3927 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3928 | /* confdefs.h. */ |
3929 | _ACEOF | |
3930 | cat confdefs.h >>conftest.$ac_ext | |
3931 | cat >>conftest.$ac_ext <<_ACEOF | |
3932 | /* end confdefs.h. */ | |
3933 | #include <string.h> | |
8106cdd5 | 3934 | |
ad6254c5 AK |
3935 | _ACEOF |
3936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3937 | $EGREP "memchr" >/dev/null 2>&1; then | |
3938 | : | |
3939 | else | |
3940 | ac_cv_header_stdc=no | |
80992638 | 3941 | fi |
ad6254c5 | 3942 | rm -f conftest* |
795ca3e5 AK |
3943 | |
3944 | fi | |
3945 | ||
ad6254c5 AK |
3946 | if test $ac_cv_header_stdc = yes; then |
3947 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3948 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3949 | /* confdefs.h. */ |
3950 | _ACEOF | |
3951 | cat confdefs.h >>conftest.$ac_ext | |
3952 | cat >>conftest.$ac_ext <<_ACEOF | |
3953 | /* end confdefs.h. */ | |
80992638 | 3954 | #include <stdlib.h> |
ad6254c5 AK |
3955 | |
3956 | _ACEOF | |
80992638 | 3957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3958 | $EGREP "free" >/dev/null 2>&1; then |
3959 | : | |
795ca3e5 | 3960 | else |
ad6254c5 | 3961 | ac_cv_header_stdc=no |
795ca3e5 | 3962 | fi |
80992638 | 3963 | rm -f conftest* |
8106cdd5 | 3964 | |
795ca3e5 AK |
3965 | fi |
3966 | ||
ad6254c5 AK |
3967 | if test $ac_cv_header_stdc = yes; then |
3968 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3969 | if test "$cross_compiling" = yes; then | |
3970 | : | |
795ca3e5 | 3971 | else |
ad6254c5 | 3972 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3973 | /* confdefs.h. */ |
3974 | _ACEOF | |
3975 | cat confdefs.h >>conftest.$ac_ext | |
3976 | cat >>conftest.$ac_ext <<_ACEOF | |
3977 | /* end confdefs.h. */ | |
3978 | #include <ctype.h> | |
7a197a62 | 3979 | #include <stdlib.h> |
ad6254c5 AK |
3980 | #if ((' ' & 0x0FF) == 0x020) |
3981 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3982 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3983 | #else | |
3984 | # define ISLOWER(c) \ | |
8a2fc586 AK |
3985 | (('a' <= (c) && (c) <= 'i') \ |
3986 | || ('j' <= (c) && (c) <= 'r') \ | |
3987 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3988 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3989 | #endif |
ad6254c5 AK |
3990 | |
3991 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3992 | int | |
3993 | main () | |
3994 | { | |
3995 | int i; | |
3996 | for (i = 0; i < 256; i++) | |
3997 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 3998 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
3999 | return 2; |
4000 | return 0; | |
ad6254c5 AK |
4001 | } |
4002 | _ACEOF | |
4003 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4004 | if { (ac_try="$ac_link" |
4005 | case "(($ac_try" in | |
4006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4007 | *) ac_try_echo=$ac_try;; | |
4008 | esac | |
1995c9ff | 4009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4010 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4011 | ac_status=$? |
1995c9ff | 4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4014 | { (case "(($ac_try" in |
4015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4016 | *) ac_try_echo=$ac_try;; | |
4017 | esac | |
1995c9ff | 4018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4019 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4020 | ac_status=$? |
1995c9ff | 4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4022 | (exit $ac_status); }; }; then |
4023 | : | |
795ca3e5 | 4024 | else |
1995c9ff AK |
4025 | echo "$as_me: program exited with status $ac_status" >&5 |
4026 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4027 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4028 | |
ad6254c5 AK |
4029 | ( exit $ac_status ) |
4030 | ac_cv_header_stdc=no | |
80992638 | 4031 | fi |
7a197a62 | 4032 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4033 | fi |
7a197a62 AK |
4034 | |
4035 | ||
ad6254c5 AK |
4036 | fi |
4037 | fi | |
1995c9ff AK |
4038 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4039 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4040 | if test $ac_cv_header_stdc = yes; then |
4041 | ||
4042 | cat >>confdefs.h <<\_ACEOF | |
4043 | #define STDC_HEADERS 1 | |
4044 | _ACEOF | |
795ca3e5 AK |
4045 | |
4046 | fi | |
4047 | ||
1995c9ff AK |
4048 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4049 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4050 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
1995c9ff | 4051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4052 | else |
ad6254c5 | 4053 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4054 | /* confdefs.h. */ |
4055 | _ACEOF | |
4056 | cat confdefs.h >>conftest.$ac_ext | |
4057 | cat >>conftest.$ac_ext <<_ACEOF | |
4058 | /* end confdefs.h. */ | |
80992638 | 4059 | #include <sys/types.h> |
ad6254c5 AK |
4060 | #include <sys/wait.h> |
4061 | #ifndef WEXITSTATUS | |
7a197a62 | 4062 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4063 | #endif |
4064 | #ifndef WIFEXITED | |
4065 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4066 | #endif | |
4067 | ||
4068 | int | |
4069 | main () | |
4070 | { | |
4071 | int s; | |
4072 | wait (&s); | |
4073 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4074 | ; | |
4075 | return 0; | |
4076 | } | |
4077 | _ACEOF | |
4078 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4079 | if { (ac_try="$ac_compile" |
4080 | case "(($ac_try" in | |
4081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4082 | *) ac_try_echo=$ac_try;; | |
4083 | esac | |
1995c9ff | 4084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4085 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4086 | ac_status=$? |
8a2fc586 AK |
4087 | grep -v '^ *+' conftest.er1 >conftest.err |
4088 | rm -f conftest.er1 | |
4089 | cat conftest.err >&5 | |
1995c9ff | 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4091 | (exit $ac_status); } && { |
4092 | test -z "$ac_c_werror_flag" || | |
4093 | test ! -s conftest.err | |
4094 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4095 | ac_cv_header_sys_wait_h=yes |
4096 | else | |
1995c9ff | 4097 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4098 | sed 's/^/| /' conftest.$ac_ext >&5 |
4099 | ||
7a197a62 | 4100 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4101 | fi |
7a197a62 AK |
4102 | |
4103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4104 | fi |
1995c9ff AK |
4105 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4106 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4107 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4108 | |
ad6254c5 AK |
4109 | cat >>confdefs.h <<\_ACEOF |
4110 | #define HAVE_SYS_WAIT_H 1 | |
4111 | _ACEOF | |
795ca3e5 AK |
4112 | |
4113 | fi | |
4114 | ||
1995c9ff AK |
4115 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4116 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4117 | if test "${ac_cv_header_time+set}" = set; then |
1995c9ff | 4118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4119 | else |
ad6254c5 | 4120 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4121 | /* confdefs.h. */ |
4122 | _ACEOF | |
4123 | cat confdefs.h >>conftest.$ac_ext | |
4124 | cat >>conftest.$ac_ext <<_ACEOF | |
4125 | /* end confdefs.h. */ | |
795ca3e5 AK |
4126 | #include <sys/types.h> |
4127 | #include <sys/time.h> | |
4128 | #include <time.h> | |
ad6254c5 AK |
4129 | |
4130 | int | |
4131 | main () | |
4132 | { | |
4133 | if ((struct tm *) 0) | |
4134 | return 0; | |
4135 | ; | |
4136 | return 0; | |
4137 | } | |
4138 | _ACEOF | |
4139 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4140 | if { (ac_try="$ac_compile" |
4141 | case "(($ac_try" in | |
4142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4143 | *) ac_try_echo=$ac_try;; | |
4144 | esac | |
1995c9ff | 4145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4146 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4147 | ac_status=$? |
8a2fc586 AK |
4148 | grep -v '^ *+' conftest.er1 >conftest.err |
4149 | rm -f conftest.er1 | |
4150 | cat conftest.err >&5 | |
1995c9ff | 4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4152 | (exit $ac_status); } && { |
4153 | test -z "$ac_c_werror_flag" || | |
4154 | test ! -s conftest.err | |
4155 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4156 | ac_cv_header_time=yes |
4157 | else | |
1995c9ff | 4158 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4159 | sed 's/^/| /' conftest.$ac_ext >&5 |
4160 | ||
7a197a62 | 4161 | ac_cv_header_time=no |
795ca3e5 | 4162 | fi |
7a197a62 AK |
4163 | |
4164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4165 | fi |
1995c9ff AK |
4166 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4167 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4168 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4169 | |
4170 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4171 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4172 | _ACEOF |
b896caa1 | 4173 | |
8106cdd5 | 4174 | fi |
b896caa1 | 4175 | |
b896caa1 | 4176 | |
ad6254c5 | 4177 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 4178 | |
b896caa1 AK |
4179 | |
4180 | ||
795ca3e5 | 4181 | |
8106cdd5 | 4182 | |
80992638 | 4183 | |
795ca3e5 | 4184 | |
a38df97f | 4185 | |
80992638 | 4186 | |
ad6254c5 | 4187 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 4188 | inttypes.h stdint.h unistd.h |
ad6254c5 | 4189 | do |
1995c9ff AK |
4190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4191 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4192 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4193 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
4195 | else |
4196 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4197 | /* confdefs.h. */ |
4198 | _ACEOF | |
4199 | cat confdefs.h >>conftest.$ac_ext | |
4200 | cat >>conftest.$ac_ext <<_ACEOF | |
4201 | /* end confdefs.h. */ | |
4202 | $ac_includes_default | |
4203 | ||
4204 | #include <$ac_header> | |
4205 | _ACEOF | |
4206 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4207 | if { (ac_try="$ac_compile" |
4208 | case "(($ac_try" in | |
4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4210 | *) ac_try_echo=$ac_try;; | |
4211 | esac | |
1995c9ff | 4212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4213 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4214 | ac_status=$? |
8a2fc586 AK |
4215 | grep -v '^ *+' conftest.er1 >conftest.err |
4216 | rm -f conftest.er1 | |
4217 | cat conftest.err >&5 | |
1995c9ff | 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4219 | (exit $ac_status); } && { |
4220 | test -z "$ac_c_werror_flag" || | |
4221 | test ! -s conftest.err | |
4222 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4223 | eval "$as_ac_Header=yes" |
4224 | else | |
1995c9ff | 4225 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4226 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4227 | |
7a197a62 | 4228 | eval "$as_ac_Header=no" |
ad6254c5 | 4229 | fi |
7a197a62 AK |
4230 | |
4231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a38df97f | 4232 | fi |
1995c9ff AK |
4233 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4234 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4235 | echo "${ECHO_T}$ac_res" >&6; } | |
4236 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
ad6254c5 | 4237 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4238 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4239 | _ACEOF |
a38df97f | 4240 | |
80992638 AK |
4241 | fi |
4242 | ||
ad6254c5 AK |
4243 | done |
4244 | ||
7d1552c9 | 4245 | |
7d1552c9 | 4246 | |
80992638 | 4247 | |
5a52dca9 | 4248 | |
5a52dca9 | 4249 | |
ad6254c5 AK |
4250 | |
4251 | ||
4252 | ||
4253 | ||
4254 | ||
4255 | for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h | |
4256 | do | |
1995c9ff | 4257 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4258 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4259 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4261 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4263 | fi |
1995c9ff AK |
4264 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4265 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4266 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4267 | else |
4268 | # Is the header compilable? | |
1995c9ff AK |
4269 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4270 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4271 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4272 | /* confdefs.h. */ |
4273 | _ACEOF | |
4274 | cat confdefs.h >>conftest.$ac_ext | |
4275 | cat >>conftest.$ac_ext <<_ACEOF | |
4276 | /* end confdefs.h. */ | |
4277 | $ac_includes_default | |
4278 | #include <$ac_header> | |
4279 | _ACEOF | |
4280 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4281 | if { (ac_try="$ac_compile" |
4282 | case "(($ac_try" in | |
4283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4284 | *) ac_try_echo=$ac_try;; | |
4285 | esac | |
1995c9ff | 4286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4287 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4288 | ac_status=$? |
8a2fc586 AK |
4289 | grep -v '^ *+' conftest.er1 >conftest.err |
4290 | rm -f conftest.er1 | |
4291 | cat conftest.err >&5 | |
1995c9ff | 4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4293 | (exit $ac_status); } && { |
4294 | test -z "$ac_c_werror_flag" || | |
4295 | test ! -s conftest.err | |
4296 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4297 | ac_header_compiler=yes |
4298 | else | |
4299 | echo "$as_me: failed program was:" >&5 | |
4300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4301 | ||
4302 | ac_header_compiler=no | |
4303 | fi | |
4304 | ||
4305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4306 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4307 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4308 | |
4309 | # Is the header present? | |
1995c9ff AK |
4310 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4311 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4312 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4313 | /* confdefs.h. */ |
4314 | _ACEOF | |
4315 | cat confdefs.h >>conftest.$ac_ext | |
4316 | cat >>conftest.$ac_ext <<_ACEOF | |
4317 | /* end confdefs.h. */ | |
4318 | #include <$ac_header> | |
4319 | _ACEOF | |
7a197a62 AK |
4320 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4321 | case "(($ac_try" in | |
4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4323 | *) ac_try_echo=$ac_try;; | |
4324 | esac | |
1995c9ff | 4325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4326 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4327 | ac_status=$? |
4328 | grep -v '^ *+' conftest.er1 >conftest.err | |
4329 | rm -f conftest.er1 | |
4330 | cat conftest.err >&5 | |
1995c9ff | 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4332 | (exit $ac_status); } >/dev/null && { |
4333 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4334 | test ! -s conftest.err | |
4335 | }; then | |
ad6254c5 AK |
4336 | ac_header_preproc=yes |
4337 | else | |
1995c9ff | 4338 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4339 | sed 's/^/| /' conftest.$ac_ext >&5 |
4340 | ||
4341 | ac_header_preproc=no | |
4342 | fi | |
7a197a62 | 4343 | |
ad6254c5 | 4344 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4345 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4346 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4347 | |
4348 | # So? What about this header? | |
8a2fc586 AK |
4349 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4350 | yes:no: ) | |
1995c9ff AK |
4351 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4352 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4353 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4354 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4355 | ac_header_preproc=yes |
ad6254c5 | 4356 | ;; |
8a2fc586 | 4357 | no:yes:* ) |
1995c9ff AK |
4358 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4359 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4360 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4361 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4362 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4363 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4364 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4365 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4367 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4368 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4369 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4370 | |
ad6254c5 AK |
4371 | ;; |
4372 | esac | |
1995c9ff AK |
4373 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4375 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4377 | else |
8a2fc586 | 4378 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4379 | fi |
1995c9ff AK |
4380 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4381 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4382 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4383 | |
4384 | fi | |
1995c9ff | 4385 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4386 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4387 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4388 | _ACEOF |
b896caa1 | 4389 | |
d8ac0fbc | 4390 | else |
1995c9ff AK |
4391 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4392 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4393 | { (exit 1); exit 1; }; } |
80992638 AK |
4394 | fi |
4395 | ||
ad6254c5 | 4396 | done |
d8ac0fbc | 4397 | |
d8ac0fbc | 4398 | |
d8ac0fbc | 4399 | |
80992638 | 4400 | |
d3c8211f | 4401 | |
d3c8211f | 4402 | |
d3c8211f | 4403 | |
80992638 | 4404 | |
4922197a | 4405 | |
4922197a | 4406 | |
ad6254c5 AK |
4407 | |
4408 | ||
4409 | ||
4410 | for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h | |
4411 | do | |
1995c9ff | 4412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4413 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4414 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4416 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4418 | fi |
1995c9ff AK |
4419 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4420 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4421 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4422 | else |
4423 | # Is the header compilable? | |
1995c9ff AK |
4424 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4426 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4427 | /* confdefs.h. */ |
4428 | _ACEOF | |
4429 | cat confdefs.h >>conftest.$ac_ext | |
4430 | cat >>conftest.$ac_ext <<_ACEOF | |
4431 | /* end confdefs.h. */ | |
4432 | $ac_includes_default | |
4433 | #include <$ac_header> | |
4434 | _ACEOF | |
4435 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4436 | if { (ac_try="$ac_compile" |
4437 | case "(($ac_try" in | |
4438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4439 | *) ac_try_echo=$ac_try;; | |
4440 | esac | |
1995c9ff | 4441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4442 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4443 | ac_status=$? |
8a2fc586 AK |
4444 | grep -v '^ *+' conftest.er1 >conftest.err |
4445 | rm -f conftest.er1 | |
4446 | cat conftest.err >&5 | |
1995c9ff | 4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4448 | (exit $ac_status); } && { |
4449 | test -z "$ac_c_werror_flag" || | |
4450 | test ! -s conftest.err | |
4451 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4452 | ac_header_compiler=yes |
4453 | else | |
1995c9ff | 4454 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4455 | sed 's/^/| /' conftest.$ac_ext >&5 |
4456 | ||
7a197a62 | 4457 | ac_header_compiler=no |
ad6254c5 | 4458 | fi |
7a197a62 AK |
4459 | |
4460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4461 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4462 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4463 | |
4464 | # Is the header present? | |
1995c9ff AK |
4465 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4466 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4467 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4468 | /* confdefs.h. */ |
4469 | _ACEOF | |
4470 | cat confdefs.h >>conftest.$ac_ext | |
4471 | cat >>conftest.$ac_ext <<_ACEOF | |
4472 | /* end confdefs.h. */ | |
4473 | #include <$ac_header> | |
4474 | _ACEOF | |
7a197a62 AK |
4475 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4476 | case "(($ac_try" in | |
4477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4478 | *) ac_try_echo=$ac_try;; | |
4479 | esac | |
1995c9ff | 4480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4481 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4482 | ac_status=$? |
4483 | grep -v '^ *+' conftest.er1 >conftest.err | |
4484 | rm -f conftest.er1 | |
4485 | cat conftest.err >&5 | |
1995c9ff | 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4487 | (exit $ac_status); } >/dev/null && { |
4488 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4489 | test ! -s conftest.err | |
4490 | }; then | |
ad6254c5 AK |
4491 | ac_header_preproc=yes |
4492 | else | |
1995c9ff | 4493 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4494 | sed 's/^/| /' conftest.$ac_ext >&5 |
4495 | ||
4496 | ac_header_preproc=no | |
4497 | fi | |
7a197a62 | 4498 | |
ad6254c5 | 4499 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4500 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4501 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4502 | |
4503 | # So? What about this header? | |
8a2fc586 AK |
4504 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4505 | yes:no: ) | |
1995c9ff AK |
4506 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4507 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4509 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4510 | ac_header_preproc=yes |
ad6254c5 | 4511 | ;; |
8a2fc586 | 4512 | no:yes:* ) |
1995c9ff AK |
4513 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4514 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4515 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4516 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4517 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4518 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4519 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4520 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4521 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4522 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4523 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4524 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4525 | |
ad6254c5 AK |
4526 | ;; |
4527 | esac | |
1995c9ff AK |
4528 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4530 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4532 | else |
8a2fc586 | 4533 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4534 | fi |
1995c9ff AK |
4535 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4536 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4537 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4538 | |
4539 | fi | |
1995c9ff | 4540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4541 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4543 | _ACEOF |
4922197a | 4544 | |
4922197a | 4545 | else |
1995c9ff AK |
4546 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4547 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4548 | { (exit 1); exit 1; }; } |
80992638 AK |
4549 | fi |
4550 | ||
ad6254c5 | 4551 | done |
4922197a | 4552 | |
4922197a | 4553 | |
ad6254c5 AK |
4554 | case "$host_os" in |
4555 | linux*) | |
4922197a | 4556 | |
ad6254c5 AK |
4557 | |
4558 | ||
4559 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4560 | do | |
1995c9ff | 4561 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4563 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4567 | fi |
1995c9ff AK |
4568 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4570 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4571 | else |
ad6254c5 | 4572 | # Is the header compilable? |
1995c9ff AK |
4573 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4575 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4576 | /* confdefs.h. */ |
4577 | _ACEOF | |
4578 | cat confdefs.h >>conftest.$ac_ext | |
4579 | cat >>conftest.$ac_ext <<_ACEOF | |
4580 | /* end confdefs.h. */ | |
4581 | $ac_includes_default | |
4582 | #include <$ac_header> | |
4583 | _ACEOF | |
4584 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4585 | if { (ac_try="$ac_compile" |
4586 | case "(($ac_try" in | |
4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4588 | *) ac_try_echo=$ac_try;; | |
4589 | esac | |
1995c9ff | 4590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4591 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4592 | ac_status=$? |
8a2fc586 AK |
4593 | grep -v '^ *+' conftest.er1 >conftest.err |
4594 | rm -f conftest.er1 | |
4595 | cat conftest.err >&5 | |
1995c9ff | 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4597 | (exit $ac_status); } && { |
4598 | test -z "$ac_c_werror_flag" || | |
4599 | test ! -s conftest.err | |
4600 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4601 | ac_header_compiler=yes |
4602 | else | |
1995c9ff | 4603 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4604 | sed 's/^/| /' conftest.$ac_ext >&5 |
4605 | ||
7a197a62 | 4606 | ac_header_compiler=no |
ad6254c5 | 4607 | fi |
7a197a62 AK |
4608 | |
4609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4610 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4611 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4612 | |
4613 | # Is the header present? | |
1995c9ff AK |
4614 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4615 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4616 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4617 | /* confdefs.h. */ |
4618 | _ACEOF | |
4619 | cat confdefs.h >>conftest.$ac_ext | |
4620 | cat >>conftest.$ac_ext <<_ACEOF | |
4621 | /* end confdefs.h. */ | |
4622 | #include <$ac_header> | |
4623 | _ACEOF | |
7a197a62 AK |
4624 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4625 | case "(($ac_try" in | |
4626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4627 | *) ac_try_echo=$ac_try;; | |
4628 | esac | |
1995c9ff | 4629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4631 | ac_status=$? |
4632 | grep -v '^ *+' conftest.er1 >conftest.err | |
4633 | rm -f conftest.er1 | |
4634 | cat conftest.err >&5 | |
1995c9ff | 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4636 | (exit $ac_status); } >/dev/null && { |
4637 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4638 | test ! -s conftest.err | |
4639 | }; then | |
ad6254c5 AK |
4640 | ac_header_preproc=yes |
4641 | else | |
1995c9ff | 4642 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4643 | sed 's/^/| /' conftest.$ac_ext >&5 |
4644 | ||
4645 | ac_header_preproc=no | |
4646 | fi | |
7a197a62 | 4647 | |
ad6254c5 | 4648 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4649 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4650 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4651 | |
4652 | # So? What about this header? | |
8a2fc586 AK |
4653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4654 | yes:no: ) | |
1995c9ff AK |
4655 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4656 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4657 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4658 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4659 | ac_header_preproc=yes |
ad6254c5 | 4660 | ;; |
8a2fc586 | 4661 | no:yes:* ) |
1995c9ff AK |
4662 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4663 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4664 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4665 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4666 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4667 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4668 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4669 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4671 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4672 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4673 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4674 | |
ad6254c5 AK |
4675 | ;; |
4676 | esac | |
1995c9ff AK |
4677 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4681 | else |
8a2fc586 | 4682 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4683 | fi |
1995c9ff AK |
4684 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4686 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 4687 | |
ad6254c5 | 4688 | fi |
1995c9ff | 4689 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4690 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4691 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4692 | _ACEOF |
795ca3e5 | 4693 | |
795ca3e5 | 4694 | else |
1995c9ff AK |
4695 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4696 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4697 | { (exit 1); exit 1; }; } |
80992638 AK |
4698 | fi |
4699 | ||
ad6254c5 AK |
4700 | done |
4701 | ;; | |
4702 | darwin*) | |
4703 | ||
795ca3e5 | 4704 | |
ad6254c5 AK |
4705 | for ac_header in machine/endian.h sys/disk.h |
4706 | do | |
1995c9ff | 4707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4708 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4709 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4711 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4713 | fi |
1995c9ff AK |
4714 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4715 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4716 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4717 | else |
4718 | # Is the header compilable? | |
1995c9ff AK |
4719 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4720 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4721 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4722 | /* confdefs.h. */ |
4723 | _ACEOF | |
4724 | cat confdefs.h >>conftest.$ac_ext | |
4725 | cat >>conftest.$ac_ext <<_ACEOF | |
4726 | /* end confdefs.h. */ | |
4727 | $ac_includes_default | |
4728 | #include <$ac_header> | |
4729 | _ACEOF | |
4730 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4731 | if { (ac_try="$ac_compile" |
4732 | case "(($ac_try" in | |
4733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4734 | *) ac_try_echo=$ac_try;; | |
4735 | esac | |
1995c9ff | 4736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4737 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4738 | ac_status=$? |
8a2fc586 AK |
4739 | grep -v '^ *+' conftest.er1 >conftest.err |
4740 | rm -f conftest.er1 | |
4741 | cat conftest.err >&5 | |
1995c9ff | 4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4743 | (exit $ac_status); } && { |
4744 | test -z "$ac_c_werror_flag" || | |
4745 | test ! -s conftest.err | |
4746 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4747 | ac_header_compiler=yes |
4748 | else | |
1995c9ff | 4749 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4750 | sed 's/^/| /' conftest.$ac_ext >&5 |
4751 | ||
7a197a62 | 4752 | ac_header_compiler=no |
ad6254c5 | 4753 | fi |
7a197a62 AK |
4754 | |
4755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4756 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4757 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4758 | |
4759 | # Is the header present? | |
1995c9ff AK |
4760 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4761 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4762 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4763 | /* confdefs.h. */ |
4764 | _ACEOF | |
4765 | cat confdefs.h >>conftest.$ac_ext | |
4766 | cat >>conftest.$ac_ext <<_ACEOF | |
4767 | /* end confdefs.h. */ | |
4768 | #include <$ac_header> | |
4769 | _ACEOF | |
7a197a62 AK |
4770 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4771 | case "(($ac_try" in | |
4772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4773 | *) ac_try_echo=$ac_try;; | |
4774 | esac | |
1995c9ff | 4775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4776 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4777 | ac_status=$? |
4778 | grep -v '^ *+' conftest.er1 >conftest.err | |
4779 | rm -f conftest.er1 | |
4780 | cat conftest.err >&5 | |
1995c9ff | 4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4782 | (exit $ac_status); } >/dev/null && { |
4783 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4784 | test ! -s conftest.err | |
4785 | }; then | |
ad6254c5 AK |
4786 | ac_header_preproc=yes |
4787 | else | |
1995c9ff | 4788 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4789 | sed 's/^/| /' conftest.$ac_ext >&5 |
4790 | ||
4791 | ac_header_preproc=no | |
4792 | fi | |
7a197a62 | 4793 | |
ad6254c5 | 4794 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4795 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4796 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4797 | |
4798 | # So? What about this header? | |
8a2fc586 AK |
4799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4800 | yes:no: ) | |
1995c9ff AK |
4801 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4802 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4803 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4804 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4805 | ac_header_preproc=yes |
ad6254c5 | 4806 | ;; |
8a2fc586 | 4807 | no:yes:* ) |
1995c9ff AK |
4808 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4809 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4810 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4811 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4812 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4813 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4814 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4815 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4818 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4819 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4820 | |
ad6254c5 AK |
4821 | ;; |
4822 | esac | |
1995c9ff AK |
4823 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4825 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4827 | else |
8a2fc586 | 4828 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4829 | fi |
1995c9ff AK |
4830 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4832 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 4833 | |
ad6254c5 | 4834 | fi |
1995c9ff | 4835 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4836 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4837 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
4838 | _ACEOF |
4839 | ||
4840 | else | |
1995c9ff AK |
4841 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4842 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4843 | { (exit 1); exit 1; }; } |
80992638 AK |
4844 | fi |
4845 | ||
ad6254c5 AK |
4846 | done |
4847 | ;; | |
4848 | esac | |
d3c8211f | 4849 | |
80992638 | 4850 | ################################################################################ |
1995c9ff AK |
4851 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4852 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 4853 | if test "${ac_cv_c_const+set}" = set; then |
1995c9ff | 4854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 4855 | else |
ad6254c5 | 4856 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4857 | /* confdefs.h. */ |
4858 | _ACEOF | |
4859 | cat confdefs.h >>conftest.$ac_ext | |
4860 | cat >>conftest.$ac_ext <<_ACEOF | |
4861 | /* end confdefs.h. */ | |
4862 | ||
4863 | int | |
4864 | main () | |
4865 | { | |
4866 | /* FIXME: Include the comments suggested by Paul. */ | |
4867 | #ifndef __cplusplus | |
4868 | /* Ultrix mips cc rejects this. */ | |
4869 | typedef int charset[2]; | |
25fbec5b | 4870 | const charset cs; |
ad6254c5 | 4871 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
4872 | char const *const *pcpcc; |
4873 | char **ppc; | |
ad6254c5 AK |
4874 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4875 | struct point {int x, y;}; | |
4876 | static struct point const zero = {0,0}; | |
4877 | /* AIX XL C 1.02.0.0 rejects this. | |
4878 | It does not let you subtract one const X* pointer from another in | |
4879 | an arm of an if-expression whose if-part is not a constant | |
4880 | expression */ | |
4881 | const char *g = "string"; | |
25fbec5b | 4882 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 4883 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
4884 | ++pcpcc; |
4885 | ppc = (char**) pcpcc; | |
4886 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
4887 | { /* SCO 3.2v4 cc rejects this. */ |
4888 | char *t; | |
4889 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4890 | ||
4891 | *t++ = 0; | |
7a197a62 | 4892 | if (s) return 0; |
ad6254c5 AK |
4893 | } |
4894 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4895 | int x[] = {25, 17}; | |
4896 | const int *foo = &x[0]; | |
4897 | ++foo; | |
4898 | } | |
4899 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4900 | typedef const int *iptr; | |
4901 | iptr p = 0; | |
4902 | ++p; | |
4903 | } | |
4904 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4905 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4906 | struct s { int j; const int *ap[3]; }; | |
4907 | struct s *b; b->j = 5; | |
4908 | } | |
4909 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4910 | const int foo = 10; | |
7a197a62 | 4911 | if (!foo) return 0; |
ad6254c5 | 4912 | } |
25fbec5b | 4913 | return !cs[0] && !zero.x; |
ad6254c5 AK |
4914 | #endif |
4915 | ||
4916 | ; | |
4917 | return 0; | |
4918 | } | |
4919 | _ACEOF | |
4920 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4921 | if { (ac_try="$ac_compile" |
4922 | case "(($ac_try" in | |
4923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4924 | *) ac_try_echo=$ac_try;; | |
4925 | esac | |
1995c9ff | 4926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4927 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4928 | ac_status=$? |
8a2fc586 AK |
4929 | grep -v '^ *+' conftest.er1 >conftest.err |
4930 | rm -f conftest.er1 | |
4931 | cat conftest.err >&5 | |
1995c9ff | 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4933 | (exit $ac_status); } && { |
4934 | test -z "$ac_c_werror_flag" || | |
4935 | test ! -s conftest.err | |
4936 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4937 | ac_cv_c_const=yes |
4938 | else | |
1995c9ff | 4939 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4940 | sed 's/^/| /' conftest.$ac_ext >&5 |
4941 | ||
7a197a62 | 4942 | ac_cv_c_const=no |
ad6254c5 | 4943 | fi |
7a197a62 AK |
4944 | |
4945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 4946 | fi |
1995c9ff AK |
4947 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4948 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 4949 | if test $ac_cv_c_const = no; then |
80992638 | 4950 | |
ad6254c5 AK |
4951 | cat >>confdefs.h <<\_ACEOF |
4952 | #define const | |
4953 | _ACEOF | |
80992638 | 4954 | |
d3c8211f | 4955 | fi |
d3c8211f | 4956 | |
1995c9ff AK |
4957 | { echo "$as_me:$LINENO: checking for inline" >&5 |
4958 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 4959 | if test "${ac_cv_c_inline+set}" = set; then |
1995c9ff | 4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 4961 | else |
ad6254c5 AK |
4962 | ac_cv_c_inline=no |
4963 | for ac_kw in inline __inline__ __inline; do | |
4964 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4965 | /* confdefs.h. */ |
4966 | _ACEOF | |
4967 | cat confdefs.h >>conftest.$ac_ext | |
4968 | cat >>conftest.$ac_ext <<_ACEOF | |
4969 | /* end confdefs.h. */ | |
4970 | #ifndef __cplusplus | |
4971 | typedef int foo_t; | |
4972 | static $ac_kw foo_t static_foo () {return 0; } | |
4973 | $ac_kw foo_t foo () {return 0; } | |
4974 | #endif | |
80992638 | 4975 | |
ad6254c5 AK |
4976 | _ACEOF |
4977 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4978 | if { (ac_try="$ac_compile" |
4979 | case "(($ac_try" in | |
4980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4981 | *) ac_try_echo=$ac_try;; | |
4982 | esac | |
1995c9ff | 4983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4984 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4985 | ac_status=$? |
8a2fc586 AK |
4986 | grep -v '^ *+' conftest.er1 >conftest.err |
4987 | rm -f conftest.er1 | |
4988 | cat conftest.err >&5 | |
1995c9ff | 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4990 | (exit $ac_status); } && { |
4991 | test -z "$ac_c_werror_flag" || | |
4992 | test ! -s conftest.err | |
4993 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 4994 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 4995 | else |
1995c9ff | 4996 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4997 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 4998 | |
7a197a62 | 4999 | |
8ce0cbda | 5000 | fi |
7a197a62 AK |
5001 | |
5002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5003 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5004 | done |
8ce0cbda | 5005 | |
8ce0cbda | 5006 | fi |
1995c9ff AK |
5007 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5008 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5009 | |
5010 | ||
ad6254c5 AK |
5011 | case $ac_cv_c_inline in |
5012 | inline | yes) ;; | |
8a2fc586 AK |
5013 | *) |
5014 | case $ac_cv_c_inline in | |
5015 | no) ac_val=;; | |
5016 | *) ac_val=$ac_cv_c_inline;; | |
5017 | esac | |
5018 | cat >>confdefs.h <<_ACEOF | |
5019 | #ifndef __cplusplus | |
5020 | #define inline $ac_val | |
5021 | #endif | |
c1c065a3 | 5022 | _ACEOF |
8a2fc586 | 5023 | ;; |
ad6254c5 | 5024 | esac |
8ce0cbda | 5025 | |
1995c9ff AK |
5026 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5027 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5028 | if test "${ac_cv_type_off_t+set}" = set; then |
1995c9ff | 5029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5030 | else |
5031 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5032 | /* confdefs.h. */ |
5033 | _ACEOF | |
5034 | cat confdefs.h >>conftest.$ac_ext | |
5035 | cat >>conftest.$ac_ext <<_ACEOF | |
5036 | /* end confdefs.h. */ | |
5037 | $ac_includes_default | |
7a197a62 | 5038 | typedef off_t ac__type_new_; |
ad6254c5 AK |
5039 | int |
5040 | main () | |
5041 | { | |
7a197a62 | 5042 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5043 | return 0; |
7a197a62 | 5044 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5045 | return 0; |
5046 | ; | |
5047 | return 0; | |
5048 | } | |
5049 | _ACEOF | |
5050 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5051 | if { (ac_try="$ac_compile" |
5052 | case "(($ac_try" in | |
5053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5054 | *) ac_try_echo=$ac_try;; | |
5055 | esac | |
1995c9ff | 5056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5057 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5058 | ac_status=$? |
8a2fc586 AK |
5059 | grep -v '^ *+' conftest.er1 >conftest.err |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
1995c9ff | 5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5063 | (exit $ac_status); } && { |
5064 | test -z "$ac_c_werror_flag" || | |
5065 | test ! -s conftest.err | |
5066 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5067 | ac_cv_type_off_t=yes |
5068 | else | |
1995c9ff | 5069 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5070 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5071 | |
7a197a62 | 5072 | ac_cv_type_off_t=no |
80992638 | 5073 | fi |
7a197a62 AK |
5074 | |
5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5076 | fi |
1995c9ff AK |
5077 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5078 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5079 | if test $ac_cv_type_off_t = yes; then |
5080 | : | |
5081 | else | |
80992638 | 5082 | |
ad6254c5 | 5083 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5084 | #define off_t long int |
ad6254c5 | 5085 | _ACEOF |
199e490e | 5086 | |
b896caa1 AK |
5087 | fi |
5088 | ||
1995c9ff AK |
5089 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5090 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5091 | if test "${ac_cv_type_pid_t+set}" = set; then |
1995c9ff | 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5093 | else |
5094 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5095 | /* confdefs.h. */ |
5096 | _ACEOF | |
5097 | cat confdefs.h >>conftest.$ac_ext | |
5098 | cat >>conftest.$ac_ext <<_ACEOF | |
5099 | /* end confdefs.h. */ | |
5100 | $ac_includes_default | |
7a197a62 | 5101 | typedef pid_t ac__type_new_; |
ad6254c5 AK |
5102 | int |
5103 | main () | |
5104 | { | |
7a197a62 | 5105 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5106 | return 0; |
7a197a62 | 5107 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5108 | return 0; |
5109 | ; | |
5110 | return 0; | |
5111 | } | |
5112 | _ACEOF | |
5113 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5114 | if { (ac_try="$ac_compile" |
5115 | case "(($ac_try" in | |
5116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5117 | *) ac_try_echo=$ac_try;; | |
5118 | esac | |
1995c9ff | 5119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5120 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5121 | ac_status=$? |
8a2fc586 AK |
5122 | grep -v '^ *+' conftest.er1 >conftest.err |
5123 | rm -f conftest.er1 | |
5124 | cat conftest.err >&5 | |
1995c9ff | 5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5126 | (exit $ac_status); } && { |
5127 | test -z "$ac_c_werror_flag" || | |
5128 | test ! -s conftest.err | |
5129 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5130 | ac_cv_type_pid_t=yes |
5131 | else | |
1995c9ff | 5132 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
5134 | ||
7a197a62 | 5135 | ac_cv_type_pid_t=no |
ad6254c5 | 5136 | fi |
7a197a62 AK |
5137 | |
5138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5139 | fi |
1995c9ff AK |
5140 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5141 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5142 | if test $ac_cv_type_pid_t = yes; then |
5143 | : | |
5144 | else | |
80992638 | 5145 | |
ad6254c5 AK |
5146 | cat >>confdefs.h <<_ACEOF |
5147 | #define pid_t int | |
5148 | _ACEOF | |
2dc95e1c | 5149 | |
2dc95e1c AK |
5150 | fi |
5151 | ||
1995c9ff AK |
5152 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5153 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5154 | if test "${ac_cv_type_size_t+set}" = set; then |
1995c9ff | 5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5156 | else |
ad6254c5 | 5157 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5158 | /* confdefs.h. */ |
5159 | _ACEOF | |
5160 | cat confdefs.h >>conftest.$ac_ext | |
5161 | cat >>conftest.$ac_ext <<_ACEOF | |
5162 | /* end confdefs.h. */ | |
5163 | $ac_includes_default | |
7a197a62 | 5164 | typedef size_t ac__type_new_; |
ad6254c5 AK |
5165 | int |
5166 | main () | |
5167 | { | |
7a197a62 | 5168 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5169 | return 0; |
7a197a62 | 5170 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5171 | return 0; |
5172 | ; | |
5173 | return 0; | |
5174 | } | |
5175 | _ACEOF | |
5176 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5177 | if { (ac_try="$ac_compile" |
5178 | case "(($ac_try" in | |
5179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5180 | *) ac_try_echo=$ac_try;; | |
5181 | esac | |
1995c9ff | 5182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5183 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5184 | ac_status=$? |
8a2fc586 AK |
5185 | grep -v '^ *+' conftest.er1 >conftest.err |
5186 | rm -f conftest.er1 | |
5187 | cat conftest.err >&5 | |
1995c9ff | 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5189 | (exit $ac_status); } && { |
5190 | test -z "$ac_c_werror_flag" || | |
5191 | test ! -s conftest.err | |
5192 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5193 | ac_cv_type_size_t=yes |
5194 | else | |
1995c9ff | 5195 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5196 | sed 's/^/| /' conftest.$ac_ext >&5 |
5197 | ||
7a197a62 | 5198 | ac_cv_type_size_t=no |
80992638 | 5199 | fi |
7a197a62 AK |
5200 | |
5201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5202 | fi |
1995c9ff AK |
5203 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5204 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5205 | if test $ac_cv_type_size_t = yes; then |
5206 | : | |
5207 | else | |
80992638 | 5208 | |
ad6254c5 | 5209 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5210 | #define size_t unsigned int |
ad6254c5 | 5211 | _ACEOF |
8106cdd5 | 5212 | |
8106cdd5 AK |
5213 | fi |
5214 | ||
1995c9ff AK |
5215 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5216 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5217 | if test "${ac_cv_type_mode_t+set}" = set; then |
1995c9ff | 5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5219 | else |
5220 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5221 | /* confdefs.h. */ |
5222 | _ACEOF | |
5223 | cat confdefs.h >>conftest.$ac_ext | |
5224 | cat >>conftest.$ac_ext <<_ACEOF | |
5225 | /* end confdefs.h. */ | |
5226 | $ac_includes_default | |
7a197a62 | 5227 | typedef mode_t ac__type_new_; |
ad6254c5 AK |
5228 | int |
5229 | main () | |
5230 | { | |
7a197a62 | 5231 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5232 | return 0; |
7a197a62 | 5233 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5234 | return 0; |
5235 | ; | |
5236 | return 0; | |
5237 | } | |
5238 | _ACEOF | |
5239 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5240 | if { (ac_try="$ac_compile" |
5241 | case "(($ac_try" in | |
5242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5243 | *) ac_try_echo=$ac_try;; | |
5244 | esac | |
1995c9ff | 5245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5246 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5247 | ac_status=$? |
8a2fc586 AK |
5248 | grep -v '^ *+' conftest.er1 >conftest.err |
5249 | rm -f conftest.er1 | |
5250 | cat conftest.err >&5 | |
1995c9ff | 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5252 | (exit $ac_status); } && { |
5253 | test -z "$ac_c_werror_flag" || | |
5254 | test ! -s conftest.err | |
5255 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5256 | ac_cv_type_mode_t=yes |
5257 | else | |
1995c9ff | 5258 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5259 | sed 's/^/| /' conftest.$ac_ext >&5 |
5260 | ||
7a197a62 | 5261 | ac_cv_type_mode_t=no |
80992638 | 5262 | fi |
7a197a62 AK |
5263 | |
5264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5265 | fi |
1995c9ff AK |
5266 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5267 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5268 | if test $ac_cv_type_mode_t = yes; then |
5269 | : | |
5270 | else | |
80992638 | 5271 | |
ad6254c5 AK |
5272 | cat >>confdefs.h <<_ACEOF |
5273 | #define mode_t int | |
5274 | _ACEOF | |
5275 | ||
5276 | fi | |
5277 | ||
1995c9ff AK |
5278 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5279 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5280 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
1995c9ff | 5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5282 | else |
5283 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5284 | /* confdefs.h. */ |
5285 | _ACEOF | |
5286 | cat confdefs.h >>conftest.$ac_ext | |
5287 | cat >>conftest.$ac_ext <<_ACEOF | |
5288 | /* end confdefs.h. */ | |
5289 | $ac_includes_default | |
5290 | int | |
5291 | main () | |
5292 | { | |
5293 | static struct stat ac_aggr; | |
5294 | if (ac_aggr.st_rdev) | |
5295 | return 0; | |
5296 | ; | |
5297 | return 0; | |
5298 | } | |
5299 | _ACEOF | |
5300 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5301 | if { (ac_try="$ac_compile" |
5302 | case "(($ac_try" in | |
5303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5304 | *) ac_try_echo=$ac_try;; | |
5305 | esac | |
1995c9ff | 5306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5307 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5308 | ac_status=$? |
8a2fc586 AK |
5309 | grep -v '^ *+' conftest.er1 >conftest.err |
5310 | rm -f conftest.er1 | |
5311 | cat conftest.err >&5 | |
1995c9ff | 5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5313 | (exit $ac_status); } && { |
5314 | test -z "$ac_c_werror_flag" || | |
5315 | test ! -s conftest.err | |
5316 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5317 | ac_cv_member_struct_stat_st_rdev=yes |
5318 | else | |
1995c9ff | 5319 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
5321 | ||
7a197a62 | 5322 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5323 | /* confdefs.h. */ |
5324 | _ACEOF | |
5325 | cat confdefs.h >>conftest.$ac_ext | |
5326 | cat >>conftest.$ac_ext <<_ACEOF | |
5327 | /* end confdefs.h. */ | |
5328 | $ac_includes_default | |
5329 | int | |
5330 | main () | |
5331 | { | |
5332 | static struct stat ac_aggr; | |
5333 | if (sizeof ac_aggr.st_rdev) | |
5334 | return 0; | |
5335 | ; | |
5336 | return 0; | |
5337 | } | |
5338 | _ACEOF | |
5339 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5340 | if { (ac_try="$ac_compile" |
5341 | case "(($ac_try" in | |
5342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5343 | *) ac_try_echo=$ac_try;; | |
5344 | esac | |
1995c9ff | 5345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5346 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5347 | ac_status=$? |
8a2fc586 AK |
5348 | grep -v '^ *+' conftest.er1 >conftest.err |
5349 | rm -f conftest.er1 | |
5350 | cat conftest.err >&5 | |
1995c9ff | 5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5352 | (exit $ac_status); } && { |
5353 | test -z "$ac_c_werror_flag" || | |
5354 | test ! -s conftest.err | |
5355 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5356 | ac_cv_member_struct_stat_st_rdev=yes |
5357 | else | |
1995c9ff | 5358 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5359 | sed 's/^/| /' conftest.$ac_ext >&5 |
5360 | ||
7a197a62 | 5361 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5362 | fi |
7a197a62 AK |
5363 | |
5364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5365 | fi |
7a197a62 AK |
5366 | |
5367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5368 | fi |
1995c9ff AK |
5369 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5370 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5371 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5372 | ||
5373 | cat >>confdefs.h <<_ACEOF | |
5374 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5375 | _ACEOF | |
5376 | ||
5377 | ||
ad6254c5 AK |
5378 | fi |
5379 | ||
1995c9ff AK |
5380 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5381 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5382 | if test "${ac_cv_struct_tm+set}" = set; then |
1995c9ff | 5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5384 | else |
5385 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5386 | /* confdefs.h. */ |
5387 | _ACEOF | |
5388 | cat confdefs.h >>conftest.$ac_ext | |
5389 | cat >>conftest.$ac_ext <<_ACEOF | |
5390 | /* end confdefs.h. */ | |
5391 | #include <sys/types.h> | |
5392 | #include <time.h> | |
5393 | ||
5394 | int | |
5395 | main () | |
5396 | { | |
25fbec5b AK |
5397 | struct tm tm; |
5398 | int *p = &tm.tm_sec; | |
5399 | return !p; | |
ad6254c5 AK |
5400 | ; |
5401 | return 0; | |
5402 | } | |
5403 | _ACEOF | |
5404 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5405 | if { (ac_try="$ac_compile" |
5406 | case "(($ac_try" in | |
5407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5408 | *) ac_try_echo=$ac_try;; | |
5409 | esac | |
1995c9ff | 5410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5411 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5412 | ac_status=$? |
8a2fc586 AK |
5413 | grep -v '^ *+' conftest.er1 >conftest.err |
5414 | rm -f conftest.er1 | |
5415 | cat conftest.err >&5 | |
1995c9ff | 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5417 | (exit $ac_status); } && { |
5418 | test -z "$ac_c_werror_flag" || | |
5419 | test ! -s conftest.err | |
5420 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5421 | ac_cv_struct_tm=time.h |
5422 | else | |
1995c9ff | 5423 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5424 | sed 's/^/| /' conftest.$ac_ext >&5 |
5425 | ||
7a197a62 | 5426 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5427 | fi |
7a197a62 AK |
5428 | |
5429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5430 | fi |
1995c9ff AK |
5431 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5432 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5433 | if test $ac_cv_struct_tm = sys/time.h; then |
5434 | ||
5435 | cat >>confdefs.h <<\_ACEOF | |
5436 | #define TM_IN_SYS_TIME 1 | |
5437 | _ACEOF | |
5438 | ||
5439 | fi | |
809fae91 | 5440 | |
795ca3e5 | 5441 | |
80992638 | 5442 | ################################################################################ |
ad6254c5 AK |
5443 | |
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
5458 | do | |
1995c9ff AK |
5459 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5460 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5461 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5462 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5464 | else |
ad6254c5 | 5465 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5466 | /* confdefs.h. */ |
5467 | _ACEOF | |
5468 | cat confdefs.h >>conftest.$ac_ext | |
5469 | cat >>conftest.$ac_ext <<_ACEOF | |
5470 | /* end confdefs.h. */ | |
8a2fc586 AK |
5471 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5473 | #define $ac_func innocuous_$ac_func | |
5474 | ||
ad6254c5 AK |
5475 | /* System header to define __stub macros and hopefully few prototypes, |
5476 | which can conflict with char $ac_func (); below. | |
5477 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5478 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5479 | |
ad6254c5 AK |
5480 | #ifdef __STDC__ |
5481 | # include <limits.h> | |
5482 | #else | |
5483 | # include <assert.h> | |
5484 | #endif | |
8a2fc586 AK |
5485 | |
5486 | #undef $ac_func | |
5487 | ||
7a197a62 AK |
5488 | /* Override any GCC internal prototype to avoid an error. |
5489 | Use char because int might match the return type of a GCC | |
5490 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5491 | #ifdef __cplusplus |
5492 | extern "C" | |
ad6254c5 | 5493 | #endif |
ad6254c5 AK |
5494 | char $ac_func (); |
5495 | /* The GNU C library defines this for functions which it implements | |
5496 | to always fail with ENOSYS. Some functions are actually named | |
5497 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5498 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5499 | choke me |
ad6254c5 AK |
5500 | #endif |
5501 | ||
5502 | int | |
5503 | main () | |
5504 | { | |
7a197a62 | 5505 | return $ac_func (); |
ad6254c5 AK |
5506 | ; |
5507 | return 0; | |
5508 | } | |
5509 | _ACEOF | |
5510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5511 | if { (ac_try="$ac_link" |
5512 | case "(($ac_try" in | |
5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5514 | *) ac_try_echo=$ac_try;; | |
5515 | esac | |
1995c9ff | 5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5517 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5518 | ac_status=$? |
8a2fc586 AK |
5519 | grep -v '^ *+' conftest.er1 >conftest.err |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
1995c9ff | 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5523 | (exit $ac_status); } && { |
5524 | test -z "$ac_c_werror_flag" || | |
5525 | test ! -s conftest.err | |
5526 | } && test -s conftest$ac_exeext && | |
5527 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
5528 | eval "$as_ac_var=yes" |
5529 | else | |
5530 | echo "$as_me: failed program was:" >&5 | |
5531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5532 | ||
5533 | eval "$as_ac_var=no" | |
5534 | fi | |
5535 | ||
25fbec5b | 5536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
5537 | conftest$ac_exeext conftest.$ac_ext |
5538 | fi | |
1995c9ff AK |
5539 | ac_res=`eval echo '${'$as_ac_var'}'` |
5540 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5541 | echo "${ECHO_T}$ac_res" >&6; } | |
5542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 5543 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 5544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
5545 | _ACEOF |
5546 | ||
5547 | else | |
1995c9ff AK |
5548 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5549 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
5550 | { (exit 1); exit 1; }; } |
5551 | fi | |
5552 | done | |
795ca3e5 | 5553 | |
ad6254c5 AK |
5554 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5555 | # for constant arguments. Useless! | |
1995c9ff AK |
5556 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5557 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 5558 | if test "${ac_cv_working_alloca_h+set}" = set; then |
1995c9ff | 5559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5560 | else |
5561 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5562 | /* confdefs.h. */ |
5563 | _ACEOF | |
5564 | cat confdefs.h >>conftest.$ac_ext | |
5565 | cat >>conftest.$ac_ext <<_ACEOF | |
5566 | /* end confdefs.h. */ | |
5567 | #include <alloca.h> | |
5568 | int | |
5569 | main () | |
5570 | { | |
5571 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 5572 | if (p) return 0; |
ad6254c5 AK |
5573 | ; |
5574 | return 0; | |
5575 | } | |
5576 | _ACEOF | |
5577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5578 | if { (ac_try="$ac_link" |
5579 | case "(($ac_try" in | |
5580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5581 | *) ac_try_echo=$ac_try;; | |
5582 | esac | |
1995c9ff | 5583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5584 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5585 | ac_status=$? |
8a2fc586 AK |
5586 | grep -v '^ *+' conftest.er1 >conftest.err |
5587 | rm -f conftest.er1 | |
5588 | cat conftest.err >&5 | |
1995c9ff | 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5590 | (exit $ac_status); } && { |
5591 | test -z "$ac_c_werror_flag" || | |
5592 | test ! -s conftest.err | |
5593 | } && test -s conftest$ac_exeext && | |
5594 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5595 | ac_cv_working_alloca_h=yes |
5596 | else | |
1995c9ff | 5597 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5598 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 5599 | |
7a197a62 | 5600 | ac_cv_working_alloca_h=no |
ad6254c5 | 5601 | fi |
7a197a62 | 5602 | |
25fbec5b | 5603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 5604 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5605 | fi |
1995c9ff AK |
5606 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
5607 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
5608 | if test $ac_cv_working_alloca_h = yes; then |
5609 | ||
5610 | cat >>confdefs.h <<\_ACEOF | |
5611 | #define HAVE_ALLOCA_H 1 | |
5612 | _ACEOF | |
5613 | ||
5614 | fi | |
5615 | ||
1995c9ff AK |
5616 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
5617 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 5618 | if test "${ac_cv_func_alloca_works+set}" = set; then |
1995c9ff | 5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5620 | else |
5621 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5622 | /* confdefs.h. */ |
5623 | _ACEOF | |
5624 | cat confdefs.h >>conftest.$ac_ext | |
5625 | cat >>conftest.$ac_ext <<_ACEOF | |
5626 | /* end confdefs.h. */ | |
5627 | #ifdef __GNUC__ | |
5628 | # define alloca __builtin_alloca | |
5629 | #else | |
5630 | # ifdef _MSC_VER | |
5631 | # include <malloc.h> | |
5632 | # define alloca _alloca | |
5633 | # else | |
25fbec5b | 5634 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
5635 | # include <alloca.h> |
5636 | # else | |
5637 | # ifdef _AIX | |
5638 | #pragma alloca | |
5639 | # else | |
5640 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5641 | char *alloca (); | |
5642 | # endif | |
5643 | # endif | |
5644 | # endif | |
5645 | # endif | |
5646 | #endif | |
5647 | ||
5648 | int | |
5649 | main () | |
5650 | { | |
5651 | char *p = (char *) alloca (1); | |
7a197a62 | 5652 | if (p) return 0; |
ad6254c5 AK |
5653 | ; |
5654 | return 0; | |
5655 | } | |
5656 | _ACEOF | |
5657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5658 | if { (ac_try="$ac_link" |
5659 | case "(($ac_try" in | |
5660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5661 | *) ac_try_echo=$ac_try;; | |
5662 | esac | |
1995c9ff | 5663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5664 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5665 | ac_status=$? |
8a2fc586 AK |
5666 | grep -v '^ *+' conftest.er1 >conftest.err |
5667 | rm -f conftest.er1 | |
5668 | cat conftest.err >&5 | |
1995c9ff | 5669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5670 | (exit $ac_status); } && { |
5671 | test -z "$ac_c_werror_flag" || | |
5672 | test ! -s conftest.err | |
5673 | } && test -s conftest$ac_exeext && | |
5674 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5675 | ac_cv_func_alloca_works=yes |
5676 | else | |
1995c9ff | 5677 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5678 | sed 's/^/| /' conftest.$ac_ext >&5 |
5679 | ||
7a197a62 | 5680 | ac_cv_func_alloca_works=no |
ad6254c5 | 5681 | fi |
7a197a62 | 5682 | |
25fbec5b | 5683 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 5684 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5685 | fi |
1995c9ff AK |
5686 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5687 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
5688 | |
5689 | if test $ac_cv_func_alloca_works = yes; then | |
5690 | ||
5691 | cat >>confdefs.h <<\_ACEOF | |
5692 | #define HAVE_ALLOCA 1 | |
5693 | _ACEOF | |
5694 | ||
5695 | else | |
5696 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5697 | # that cause trouble. Some versions do not even contain alloca or | |
5698 | # contain a buggy version. If you still want to use their alloca, | |
5699 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5700 | ||
7a197a62 | 5701 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
5702 | |
5703 | cat >>confdefs.h <<\_ACEOF | |
5704 | #define C_ALLOCA 1 | |
5705 | _ACEOF | |
5706 | ||
5707 | ||
1995c9ff AK |
5708 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5709 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 5710 | if test "${ac_cv_os_cray+set}" = set; then |
1995c9ff | 5711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5712 | else |
5713 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5714 | /* confdefs.h. */ |
5715 | _ACEOF | |
5716 | cat confdefs.h >>conftest.$ac_ext | |
5717 | cat >>conftest.$ac_ext <<_ACEOF | |
5718 | /* end confdefs.h. */ | |
7a197a62 | 5719 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
5720 | webecray |
5721 | #else | |
5722 | wenotbecray | |
5723 | #endif | |
5724 | ||
5725 | _ACEOF | |
795ca3e5 | 5726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5727 | $EGREP "webecray" >/dev/null 2>&1; then |
5728 | ac_cv_os_cray=yes | |
5729 | else | |
5730 | ac_cv_os_cray=no | |
795ca3e5 AK |
5731 | fi |
5732 | rm -f conftest* | |
5733 | ||
795ca3e5 | 5734 | fi |
1995c9ff AK |
5735 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5736 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
5737 | if test $ac_cv_os_cray = yes; then |
5738 | for ac_func in _getb67 GETB67 getb67; do | |
1995c9ff AK |
5739 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5740 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5741 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5742 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5744 | else |
5745 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5746 | /* confdefs.h. */ |
5747 | _ACEOF | |
5748 | cat confdefs.h >>conftest.$ac_ext | |
5749 | cat >>conftest.$ac_ext <<_ACEOF | |
5750 | /* end confdefs.h. */ | |
8a2fc586 AK |
5751 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5752 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5753 | #define $ac_func innocuous_$ac_func | |
5754 | ||
ad6254c5 AK |
5755 | /* System header to define __stub macros and hopefully few prototypes, |
5756 | which can conflict with char $ac_func (); below. | |
5757 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5758 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5759 | |
ad6254c5 AK |
5760 | #ifdef __STDC__ |
5761 | # include <limits.h> | |
5762 | #else | |
5763 | # include <assert.h> | |
5764 | #endif | |
8a2fc586 AK |
5765 | |
5766 | #undef $ac_func | |
5767 | ||
7a197a62 AK |
5768 | /* Override any GCC internal prototype to avoid an error. |
5769 | Use char because int might match the return type of a GCC | |
5770 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5771 | #ifdef __cplusplus |
5772 | extern "C" | |
ad6254c5 | 5773 | #endif |
ad6254c5 AK |
5774 | char $ac_func (); |
5775 | /* The GNU C library defines this for functions which it implements | |
5776 | to always fail with ENOSYS. Some functions are actually named | |
5777 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5778 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5779 | choke me |
ad6254c5 AK |
5780 | #endif |
5781 | ||
5782 | int | |
5783 | main () | |
5784 | { | |
7a197a62 | 5785 | return $ac_func (); |
ad6254c5 AK |
5786 | ; |
5787 | return 0; | |
5788 | } | |
5789 | _ACEOF | |
5790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5791 | if { (ac_try="$ac_link" |
5792 | case "(($ac_try" in | |
5793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5794 | *) ac_try_echo=$ac_try;; | |
5795 | esac | |
1995c9ff | 5796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5797 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5798 | ac_status=$? |
8a2fc586 AK |
5799 | grep -v '^ *+' conftest.er1 >conftest.err |
5800 | rm -f conftest.er1 | |
5801 | cat conftest.err >&5 | |
1995c9ff | 5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5803 | (exit $ac_status); } && { |
5804 | test -z "$ac_c_werror_flag" || | |
5805 | test ! -s conftest.err | |
5806 | } && test -s conftest$ac_exeext && | |
5807 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
5808 | eval "$as_ac_var=yes" |
5809 | else | |
1995c9ff | 5810 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5811 | sed 's/^/| /' conftest.$ac_ext >&5 |
5812 | ||
7a197a62 | 5813 | eval "$as_ac_var=no" |
ad6254c5 | 5814 | fi |
7a197a62 | 5815 | |
25fbec5b | 5816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 5817 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 5818 | fi |
1995c9ff AK |
5819 | ac_res=`eval echo '${'$as_ac_var'}'` |
5820 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5821 | echo "${ECHO_T}$ac_res" >&6; } | |
5822 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 5823 | |
ad6254c5 AK |
5824 | cat >>confdefs.h <<_ACEOF |
5825 | #define CRAY_STACKSEG_END $ac_func | |
5826 | _ACEOF | |
5827 | ||
5828 | break | |
5829 | fi | |
5830 | ||
5831 | done | |
5832 | fi | |
5833 | ||
1995c9ff AK |
5834 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
5835 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 5836 | if test "${ac_cv_c_stack_direction+set}" = set; then |
1995c9ff | 5837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5838 | else |
5839 | if test "$cross_compiling" = yes; then | |
5840 | ac_cv_c_stack_direction=0 | |
5841 | else | |
5842 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5843 | /* confdefs.h. */ |
5844 | _ACEOF | |
5845 | cat confdefs.h >>conftest.$ac_ext | |
5846 | cat >>conftest.$ac_ext <<_ACEOF | |
5847 | /* end confdefs.h. */ | |
7a197a62 | 5848 | $ac_includes_default |
ad6254c5 AK |
5849 | int |
5850 | find_stack_direction () | |
5851 | { | |
5852 | static char *addr = 0; | |
5853 | auto char dummy; | |
5854 | if (addr == 0) | |
5855 | { | |
5856 | addr = &dummy; | |
5857 | return find_stack_direction (); | |
5858 | } | |
5859 | else | |
5860 | return (&dummy > addr) ? 1 : -1; | |
5861 | } | |
5862 | ||
5863 | int | |
5864 | main () | |
5865 | { | |
7a197a62 | 5866 | return find_stack_direction () < 0; |
ad6254c5 AK |
5867 | } |
5868 | _ACEOF | |
5869 | rm -f conftest$ac_exeext | |
7a197a62 AK |
5870 | if { (ac_try="$ac_link" |
5871 | case "(($ac_try" in | |
5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5873 | *) ac_try_echo=$ac_try;; | |
5874 | esac | |
1995c9ff | 5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5876 | (eval "$ac_link") 2>&5 |
ad6254c5 | 5877 | ac_status=$? |
1995c9ff | 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 5879 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
5880 | { (case "(($ac_try" in |
5881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5882 | *) ac_try_echo=$ac_try;; | |
5883 | esac | |
1995c9ff | 5884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5885 | (eval "$ac_try") 2>&5 |
ad6254c5 | 5886 | ac_status=$? |
1995c9ff | 5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
5888 | (exit $ac_status); }; }; then |
5889 | ac_cv_c_stack_direction=1 | |
5890 | else | |
1995c9ff AK |
5891 | echo "$as_me: program exited with status $ac_status" >&5 |
5892 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
5893 | sed 's/^/| /' conftest.$ac_ext >&5 |
5894 | ||
5895 | ( exit $ac_status ) | |
5896 | ac_cv_c_stack_direction=-1 | |
5897 | fi | |
7a197a62 | 5898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 5899 | fi |
7a197a62 AK |
5900 | |
5901 | ||
ad6254c5 | 5902 | fi |
1995c9ff AK |
5903 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
5904 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
5905 | |
5906 | cat >>confdefs.h <<_ACEOF | |
5907 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5908 | _ACEOF | |
5909 | ||
5910 | ||
5911 | fi | |
5912 | ||
1995c9ff AK |
5913 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
5914 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 5915 | if test "${ac_cv_func_closedir_void+set}" = set; then |
1995c9ff | 5916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5917 | else |
5918 | if test "$cross_compiling" = yes; then | |
5919 | ac_cv_func_closedir_void=yes | |
5920 | else | |
5921 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5922 | /* confdefs.h. */ |
5923 | _ACEOF | |
5924 | cat confdefs.h >>conftest.$ac_ext | |
5925 | cat >>conftest.$ac_ext <<_ACEOF | |
5926 | /* end confdefs.h. */ | |
5927 | $ac_includes_default | |
5928 | #include <$ac_header_dirent> | |
5929 | #ifndef __cplusplus | |
5930 | int closedir (); | |
5931 | #endif | |
5932 | ||
5933 | int | |
5934 | main () | |
5935 | { | |
7a197a62 | 5936 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
5937 | ; |
5938 | return 0; | |
5939 | } | |
5940 | _ACEOF | |
5941 | rm -f conftest$ac_exeext | |
7a197a62 AK |
5942 | if { (ac_try="$ac_link" |
5943 | case "(($ac_try" in | |
5944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5945 | *) ac_try_echo=$ac_try;; | |
5946 | esac | |
1995c9ff | 5947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5948 | (eval "$ac_link") 2>&5 |
ad6254c5 | 5949 | ac_status=$? |
1995c9ff | 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 5951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
5952 | { (case "(($ac_try" in |
5953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5954 | *) ac_try_echo=$ac_try;; | |
5955 | esac | |
1995c9ff | 5956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5957 | (eval "$ac_try") 2>&5 |
ad6254c5 | 5958 | ac_status=$? |
1995c9ff | 5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
5960 | (exit $ac_status); }; }; then |
5961 | ac_cv_func_closedir_void=no | |
5962 | else | |
1995c9ff AK |
5963 | echo "$as_me: program exited with status $ac_status" >&5 |
5964 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
5965 | sed 's/^/| /' conftest.$ac_ext >&5 |
5966 | ||
5967 | ( exit $ac_status ) | |
5968 | ac_cv_func_closedir_void=yes | |
5969 | fi | |
7a197a62 | 5970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 5971 | fi |
7a197a62 AK |
5972 | |
5973 | ||
ad6254c5 | 5974 | fi |
1995c9ff AK |
5975 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
5976 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
5977 | if test $ac_cv_func_closedir_void = yes; then |
5978 | ||
5979 | cat >>confdefs.h <<\_ACEOF | |
5980 | #define CLOSEDIR_VOID 1 | |
5981 | _ACEOF | |
5982 | ||
5983 | fi | |
5984 | ||
5985 | ||
7a197a62 | 5986 | for ac_header in vfork.h |
ad6254c5 | 5987 | do |
1995c9ff | 5988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
5990 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5994 | fi |
1995c9ff AK |
5995 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5996 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5997 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5998 | else |
5999 | # Is the header compilable? | |
1995c9ff AK |
6000 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6002 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6003 | /* confdefs.h. */ |
6004 | _ACEOF | |
6005 | cat confdefs.h >>conftest.$ac_ext | |
6006 | cat >>conftest.$ac_ext <<_ACEOF | |
6007 | /* end confdefs.h. */ | |
6008 | $ac_includes_default | |
6009 | #include <$ac_header> | |
6010 | _ACEOF | |
6011 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6012 | if { (ac_try="$ac_compile" |
6013 | case "(($ac_try" in | |
6014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6015 | *) ac_try_echo=$ac_try;; | |
6016 | esac | |
1995c9ff | 6017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6018 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6019 | ac_status=$? |
8a2fc586 AK |
6020 | grep -v '^ *+' conftest.er1 >conftest.err |
6021 | rm -f conftest.er1 | |
6022 | cat conftest.err >&5 | |
1995c9ff | 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6024 | (exit $ac_status); } && { |
6025 | test -z "$ac_c_werror_flag" || | |
6026 | test ! -s conftest.err | |
6027 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6028 | ac_header_compiler=yes |
6029 | else | |
1995c9ff | 6030 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6031 | sed 's/^/| /' conftest.$ac_ext >&5 |
6032 | ||
7a197a62 | 6033 | ac_header_compiler=no |
ad6254c5 | 6034 | fi |
7a197a62 AK |
6035 | |
6036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
6037 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6038 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6039 | |
6040 | # Is the header present? | |
1995c9ff AK |
6041 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6042 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6043 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6044 | /* confdefs.h. */ |
6045 | _ACEOF | |
6046 | cat confdefs.h >>conftest.$ac_ext | |
6047 | cat >>conftest.$ac_ext <<_ACEOF | |
6048 | /* end confdefs.h. */ | |
6049 | #include <$ac_header> | |
6050 | _ACEOF | |
7a197a62 AK |
6051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6052 | case "(($ac_try" in | |
6053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6054 | *) ac_try_echo=$ac_try;; | |
6055 | esac | |
1995c9ff | 6056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6058 | ac_status=$? |
6059 | grep -v '^ *+' conftest.er1 >conftest.err | |
6060 | rm -f conftest.er1 | |
6061 | cat conftest.err >&5 | |
1995c9ff | 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6063 | (exit $ac_status); } >/dev/null && { |
6064 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6065 | test ! -s conftest.err | |
6066 | }; then | |
ad6254c5 AK |
6067 | ac_header_preproc=yes |
6068 | else | |
1995c9ff | 6069 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
6071 | ||
6072 | ac_header_preproc=no | |
6073 | fi | |
7a197a62 | 6074 | |
ad6254c5 | 6075 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
6076 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6077 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6078 | |
6079 | # So? What about this header? | |
8a2fc586 AK |
6080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6081 | yes:no: ) | |
1995c9ff AK |
6082 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6083 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6085 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6086 | ac_header_preproc=yes |
ad6254c5 | 6087 | ;; |
8a2fc586 | 6088 | no:yes:* ) |
1995c9ff AK |
6089 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6090 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6091 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6092 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6093 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6094 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6095 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6096 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6098 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6099 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6100 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6101 | |
ad6254c5 AK |
6102 | ;; |
6103 | esac | |
1995c9ff AK |
6104 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6105 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6108 | else |
8a2fc586 | 6109 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6110 | fi |
1995c9ff AK |
6111 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6112 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6113 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6114 | |
795ca3e5 | 6115 | fi |
1995c9ff | 6116 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6117 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6118 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6119 | _ACEOF |
6120 | ||
6121 | fi | |
6122 | ||
6123 | done | |
795ca3e5 | 6124 | |
ad6254c5 AK |
6125 | |
6126 | ||
6127 | for ac_func in fork vfork | |
6128 | do | |
1995c9ff AK |
6129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6130 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6132 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6134 | else |
ad6254c5 | 6135 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6136 | /* confdefs.h. */ |
6137 | _ACEOF | |
6138 | cat confdefs.h >>conftest.$ac_ext | |
6139 | cat >>conftest.$ac_ext <<_ACEOF | |
6140 | /* end confdefs.h. */ | |
8a2fc586 AK |
6141 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6143 | #define $ac_func innocuous_$ac_func | |
6144 | ||
ad6254c5 AK |
6145 | /* System header to define __stub macros and hopefully few prototypes, |
6146 | which can conflict with char $ac_func (); below. | |
6147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6148 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6149 | |
ad6254c5 AK |
6150 | #ifdef __STDC__ |
6151 | # include <limits.h> | |
6152 | #else | |
6153 | # include <assert.h> | |
795ca3e5 | 6154 | #endif |
8a2fc586 AK |
6155 | |
6156 | #undef $ac_func | |
6157 | ||
7a197a62 AK |
6158 | /* Override any GCC internal prototype to avoid an error. |
6159 | Use char because int might match the return type of a GCC | |
6160 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6161 | #ifdef __cplusplus |
ad6254c5 | 6162 | extern "C" |
ad6254c5 | 6163 | #endif |
ad6254c5 AK |
6164 | char $ac_func (); |
6165 | /* The GNU C library defines this for functions which it implements | |
6166 | to always fail with ENOSYS. Some functions are actually named | |
6167 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6168 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6169 | choke me |
795ca3e5 AK |
6170 | #endif |
6171 | ||
ad6254c5 AK |
6172 | int |
6173 | main () | |
6174 | { | |
7a197a62 | 6175 | return $ac_func (); |
ad6254c5 AK |
6176 | ; |
6177 | return 0; | |
6178 | } | |
6179 | _ACEOF | |
6180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6181 | if { (ac_try="$ac_link" |
6182 | case "(($ac_try" in | |
6183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6184 | *) ac_try_echo=$ac_try;; | |
6185 | esac | |
1995c9ff | 6186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6187 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6188 | ac_status=$? |
8a2fc586 AK |
6189 | grep -v '^ *+' conftest.er1 >conftest.err |
6190 | rm -f conftest.er1 | |
6191 | cat conftest.err >&5 | |
1995c9ff | 6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6193 | (exit $ac_status); } && { |
6194 | test -z "$ac_c_werror_flag" || | |
6195 | test ! -s conftest.err | |
6196 | } && test -s conftest$ac_exeext && | |
6197 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6198 | eval "$as_ac_var=yes" |
795ca3e5 | 6199 | else |
1995c9ff | 6200 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6201 | sed 's/^/| /' conftest.$ac_ext >&5 |
6202 | ||
7a197a62 | 6203 | eval "$as_ac_var=no" |
795ca3e5 | 6204 | fi |
7a197a62 | 6205 | |
25fbec5b | 6206 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6207 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6208 | fi |
1995c9ff AK |
6209 | ac_res=`eval echo '${'$as_ac_var'}'` |
6210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6211 | echo "${ECHO_T}$ac_res" >&6; } | |
6212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6213 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6215 | _ACEOF |
6216 | ||
6217 | fi | |
6218 | done | |
6219 | ||
6220 | if test "x$ac_cv_func_fork" = xyes; then | |
1995c9ff AK |
6221 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6222 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6223 | if test "${ac_cv_func_fork_works+set}" = set; then |
1995c9ff | 6224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6225 | else |
6226 | if test "$cross_compiling" = yes; then | |
6227 | ac_cv_func_fork_works=cross | |
6228 | else | |
6229 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6230 | /* confdefs.h. */ |
6231 | _ACEOF | |
6232 | cat confdefs.h >>conftest.$ac_ext | |
6233 | cat >>conftest.$ac_ext <<_ACEOF | |
6234 | /* end confdefs.h. */ | |
6235 | $ac_includes_default | |
6236 | int | |
6237 | main () | |
6238 | { | |
6239 | ||
6240 | /* By Ruediger Kuhlmann. */ | |
6241 | return fork () < 0; | |
6242 | ||
6243 | ; | |
6244 | return 0; | |
6245 | } | |
ad6254c5 AK |
6246 | _ACEOF |
6247 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6248 | if { (ac_try="$ac_link" |
6249 | case "(($ac_try" in | |
6250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6251 | *) ac_try_echo=$ac_try;; | |
6252 | esac | |
1995c9ff | 6253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6254 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6255 | ac_status=$? |
1995c9ff | 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6257 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6258 | { (case "(($ac_try" in |
6259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6260 | *) ac_try_echo=$ac_try;; | |
6261 | esac | |
1995c9ff | 6262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6263 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6264 | ac_status=$? |
1995c9ff | 6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6266 | (exit $ac_status); }; }; then |
6267 | ac_cv_func_fork_works=yes | |
6268 | else | |
1995c9ff AK |
6269 | echo "$as_me: program exited with status $ac_status" >&5 |
6270 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6271 | sed 's/^/| /' conftest.$ac_ext >&5 |
6272 | ||
6273 | ( exit $ac_status ) | |
6274 | ac_cv_func_fork_works=no | |
6275 | fi | |
7a197a62 | 6276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6277 | fi |
7a197a62 AK |
6278 | |
6279 | ||
ad6254c5 | 6280 | fi |
1995c9ff AK |
6281 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6282 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6283 | |
6284 | else | |
6285 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6286 | fi | |
6287 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6288 | case $host in | |
6289 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6290 | # Override, as these systems have only a dummy fork() stub | |
6291 | ac_cv_func_fork_works=no | |
6292 | ;; | |
6293 | *) | |
6294 | ac_cv_func_fork_works=yes | |
6295 | ;; | |
6296 | esac | |
1995c9ff AK |
6297 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6298 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6299 | fi |
6300 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6301 | if test "x$ac_cv_func_vfork" = xyes; then | |
1995c9ff AK |
6302 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6303 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6304 | if test "${ac_cv_func_vfork_works+set}" = set; then |
1995c9ff | 6305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6306 | else |
6307 | if test "$cross_compiling" = yes; then | |
6308 | ac_cv_func_vfork_works=cross | |
6309 | else | |
6310 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6311 | /* confdefs.h. */ |
6312 | _ACEOF | |
6313 | cat confdefs.h >>conftest.$ac_ext | |
6314 | cat >>conftest.$ac_ext <<_ACEOF | |
6315 | /* end confdefs.h. */ | |
6316 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6317 | $ac_includes_default |
ad6254c5 | 6318 | #include <sys/wait.h> |
25fbec5b | 6319 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6320 | # include <vfork.h> |
6321 | #endif | |
6322 | /* On some sparc systems, changes by the child to local and incoming | |
6323 | argument registers are propagated back to the parent. The compiler | |
6324 | is told about this with #include <vfork.h>, but some compilers | |
6325 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6326 | static variable whose address is put into a register that is | |
6327 | clobbered by the vfork. */ | |
6328 | static void | |
6329 | #ifdef __cplusplus | |
6330 | sparc_address_test (int arg) | |
6331 | # else | |
6332 | sparc_address_test (arg) int arg; | |
6333 | #endif | |
6334 | { | |
6335 | static pid_t child; | |
6336 | if (!child) { | |
6337 | child = vfork (); | |
6338 | if (child < 0) { | |
6339 | perror ("vfork"); | |
6340 | _exit(2); | |
6341 | } | |
6342 | if (!child) { | |
6343 | arg = getpid(); | |
6344 | write(-1, "", 0); | |
6345 | _exit (arg); | |
6346 | } | |
6347 | } | |
6348 | } | |
6349 | ||
6350 | int | |
6351 | main () | |
6352 | { | |
6353 | pid_t parent = getpid (); | |
6354 | pid_t child; | |
6355 | ||
6356 | sparc_address_test (0); | |
6357 | ||
6358 | child = vfork (); | |
6359 | ||
6360 | if (child == 0) { | |
6361 | /* Here is another test for sparc vfork register problems. This | |
6362 | test uses lots of local variables, at least as many local | |
6363 | variables as main has allocated so far including compiler | |
6364 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6365 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6366 | reuse the register of parent for one of the local variables, | |
6367 | since it will think that parent can't possibly be used any more | |
6368 | in this routine. Assigning to the local variable will thus | |
6369 | munge parent in the parent process. */ | |
6370 | pid_t | |
6371 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6372 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6373 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6374 | use the same hardware register for all 8 local variables. */ | |
6375 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6376 | || p != p5 || p != p6 || p != p7) | |
6377 | _exit(1); | |
6378 | ||
6379 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6380 | from child file descriptors. If the child closes a descriptor | |
6381 | before it execs or exits, this munges the parent's descriptor | |
6382 | as well. Test for this by closing stdout in the child. */ | |
6383 | _exit(close(fileno(stdout)) != 0); | |
6384 | } else { | |
6385 | int status; | |
6386 | struct stat st; | |
6387 | ||
6388 | while (wait(&status) != child) | |
6389 | ; | |
7a197a62 | 6390 | return ( |
ad6254c5 AK |
6391 | /* Was there some problem with vforking? */ |
6392 | child < 0 | |
6393 | ||
6394 | /* Did the child fail? (This shouldn't happen.) */ | |
6395 | || status | |
6396 | ||
6397 | /* Did the vfork/compiler bug occur? */ | |
6398 | || parent != getpid() | |
6399 | ||
6400 | /* Did the file descriptor bug occur? */ | |
6401 | || fstat(fileno(stdout), &st) != 0 | |
6402 | ); | |
6403 | } | |
6404 | } | |
6405 | _ACEOF | |
6406 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6407 | if { (ac_try="$ac_link" |
6408 | case "(($ac_try" in | |
6409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6410 | *) ac_try_echo=$ac_try;; | |
6411 | esac | |
1995c9ff | 6412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6413 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6414 | ac_status=$? |
1995c9ff | 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6416 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6417 | { (case "(($ac_try" in |
6418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6419 | *) ac_try_echo=$ac_try;; | |
6420 | esac | |
1995c9ff | 6421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6422 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6423 | ac_status=$? |
1995c9ff | 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6425 | (exit $ac_status); }; }; then |
6426 | ac_cv_func_vfork_works=yes | |
6427 | else | |
1995c9ff AK |
6428 | echo "$as_me: program exited with status $ac_status" >&5 |
6429 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6430 | sed 's/^/| /' conftest.$ac_ext >&5 |
6431 | ||
6432 | ( exit $ac_status ) | |
6433 | ac_cv_func_vfork_works=no | |
6434 | fi | |
7a197a62 | 6435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6436 | fi |
7a197a62 AK |
6437 | |
6438 | ||
ad6254c5 | 6439 | fi |
1995c9ff AK |
6440 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6441 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6442 | |
6443 | fi; | |
6444 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6445 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
1995c9ff AK |
6446 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6447 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6448 | fi |
6449 | ||
6450 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6451 | ||
6452 | cat >>confdefs.h <<\_ACEOF | |
6453 | #define HAVE_WORKING_VFORK 1 | |
6454 | _ACEOF | |
6455 | ||
6456 | else | |
6457 | ||
6458 | cat >>confdefs.h <<\_ACEOF | |
6459 | #define vfork fork | |
6460 | _ACEOF | |
6461 | ||
6462 | fi | |
6463 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6464 | ||
6465 | cat >>confdefs.h <<\_ACEOF | |
6466 | #define HAVE_WORKING_FORK 1 | |
6467 | _ACEOF | |
6468 | ||
6469 | fi | |
6470 | ||
1995c9ff AK |
6471 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6472 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6473 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
1995c9ff | 6474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6475 | else |
6476 | rm -f conftest.sym conftest.file | |
6477 | echo >conftest.file | |
6478 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6479 | if test "$cross_compiling" = yes; then | |
6480 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6481 | else | |
6482 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6483 | /* confdefs.h. */ |
6484 | _ACEOF | |
6485 | cat confdefs.h >>conftest.$ac_ext | |
6486 | cat >>conftest.$ac_ext <<_ACEOF | |
6487 | /* end confdefs.h. */ | |
6488 | $ac_includes_default | |
6489 | int | |
6490 | main () | |
6491 | { | |
6492 | struct stat sbuf; | |
6493 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6494 | That is better in the sense that it means we will not |
6495 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 6496 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
6497 | ; |
6498 | return 0; | |
6499 | } | |
6500 | _ACEOF | |
6501 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6502 | if { (ac_try="$ac_link" |
6503 | case "(($ac_try" in | |
6504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6505 | *) ac_try_echo=$ac_try;; | |
6506 | esac | |
1995c9ff | 6507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6508 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6509 | ac_status=$? |
1995c9ff | 6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6512 | { (case "(($ac_try" in |
6513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6514 | *) ac_try_echo=$ac_try;; | |
6515 | esac | |
1995c9ff | 6516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6517 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6518 | ac_status=$? |
1995c9ff | 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6520 | (exit $ac_status); }; }; then |
6521 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6522 | else | |
1995c9ff AK |
6523 | echo "$as_me: program exited with status $ac_status" >&5 |
6524 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6525 | sed 's/^/| /' conftest.$ac_ext >&5 |
6526 | ||
6527 | ( exit $ac_status ) | |
6528 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6529 | fi | |
7a197a62 | 6530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6531 | fi |
7a197a62 AK |
6532 | |
6533 | ||
ad6254c5 AK |
6534 | else |
6535 | # If the `ln -s' command failed, then we probably don't even | |
6536 | # have an lstat function. | |
6537 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6538 | fi | |
6539 | rm -f conftest.sym conftest.file | |
6540 | ||
6541 | fi | |
1995c9ff AK |
6542 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6543 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
6544 | |
6545 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6546 | ||
6547 | cat >>confdefs.h <<_ACEOF | |
6548 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6549 | _ACEOF | |
6550 | ||
6551 | ||
6552 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 6553 | case " $LIBOBJS " in |
8a2fc586 | 6554 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6555 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6556 | ;; | |
8a2fc586 AK |
6557 | esac |
6558 | ||
ad6254c5 AK |
6559 | fi |
6560 | ||
1995c9ff AK |
6561 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6562 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 6563 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
1995c9ff | 6564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6565 | else |
6566 | if test "$cross_compiling" = yes; then | |
6567 | ac_cv_func_lstat_empty_string_bug=yes | |
6568 | else | |
6569 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6570 | /* confdefs.h. */ |
6571 | _ACEOF | |
6572 | cat confdefs.h >>conftest.$ac_ext | |
6573 | cat >>conftest.$ac_ext <<_ACEOF | |
6574 | /* end confdefs.h. */ | |
6575 | $ac_includes_default | |
6576 | int | |
6577 | main () | |
6578 | { | |
6579 | struct stat sbuf; | |
7a197a62 | 6580 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
6581 | ; |
6582 | return 0; | |
6583 | } | |
6584 | _ACEOF | |
6585 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6586 | if { (ac_try="$ac_link" |
6587 | case "(($ac_try" in | |
6588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6589 | *) ac_try_echo=$ac_try;; | |
6590 | esac | |
1995c9ff | 6591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6592 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6593 | ac_status=$? |
1995c9ff | 6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6595 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6596 | { (case "(($ac_try" in |
6597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6598 | *) ac_try_echo=$ac_try;; | |
6599 | esac | |
1995c9ff | 6600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6601 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6602 | ac_status=$? |
1995c9ff | 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6604 | (exit $ac_status); }; }; then |
7a197a62 | 6605 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 6606 | else |
1995c9ff AK |
6607 | echo "$as_me: program exited with status $ac_status" >&5 |
6608 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6609 | sed 's/^/| /' conftest.$ac_ext >&5 |
6610 | ||
6611 | ( exit $ac_status ) | |
7a197a62 | 6612 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 6613 | fi |
7a197a62 | 6614 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6615 | fi |
7a197a62 AK |
6616 | |
6617 | ||
ad6254c5 | 6618 | fi |
1995c9ff AK |
6619 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
6620 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 6621 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 6622 | case " $LIBOBJS " in |
8a2fc586 | 6623 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6624 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6625 | ;; | |
8a2fc586 AK |
6626 | esac |
6627 | ||
ad6254c5 AK |
6628 | |
6629 | cat >>confdefs.h <<_ACEOF | |
6630 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6631 | _ACEOF | |
6632 | ||
6633 | fi | |
6634 | ||
6635 | ||
6636 | for ac_header in stdlib.h | |
6637 | do | |
1995c9ff | 6638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6639 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
6640 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6644 | fi |
1995c9ff AK |
6645 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6646 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6647 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6648 | else |
6649 | # Is the header compilable? | |
1995c9ff AK |
6650 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6651 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6652 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6653 | /* confdefs.h. */ |
6654 | _ACEOF | |
6655 | cat confdefs.h >>conftest.$ac_ext | |
6656 | cat >>conftest.$ac_ext <<_ACEOF | |
6657 | /* end confdefs.h. */ | |
6658 | $ac_includes_default | |
6659 | #include <$ac_header> | |
6660 | _ACEOF | |
6661 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6662 | if { (ac_try="$ac_compile" |
6663 | case "(($ac_try" in | |
6664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6665 | *) ac_try_echo=$ac_try;; | |
6666 | esac | |
1995c9ff | 6667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6668 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6669 | ac_status=$? |
8a2fc586 AK |
6670 | grep -v '^ *+' conftest.er1 >conftest.err |
6671 | rm -f conftest.er1 | |
6672 | cat conftest.err >&5 | |
1995c9ff | 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6674 | (exit $ac_status); } && { |
6675 | test -z "$ac_c_werror_flag" || | |
6676 | test ! -s conftest.err | |
6677 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6678 | ac_header_compiler=yes |
6679 | else | |
1995c9ff | 6680 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6681 | sed 's/^/| /' conftest.$ac_ext >&5 |
6682 | ||
7a197a62 | 6683 | ac_header_compiler=no |
ad6254c5 | 6684 | fi |
7a197a62 AK |
6685 | |
6686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
6687 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6688 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6689 | |
6690 | # Is the header present? | |
1995c9ff AK |
6691 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6692 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6693 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6694 | /* confdefs.h. */ |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
6698 | /* end confdefs.h. */ | |
6699 | #include <$ac_header> | |
6700 | _ACEOF | |
7a197a62 AK |
6701 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6702 | case "(($ac_try" in | |
6703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6704 | *) ac_try_echo=$ac_try;; | |
6705 | esac | |
1995c9ff | 6706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6707 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6708 | ac_status=$? |
6709 | grep -v '^ *+' conftest.er1 >conftest.err | |
6710 | rm -f conftest.er1 | |
6711 | cat conftest.err >&5 | |
1995c9ff | 6712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6713 | (exit $ac_status); } >/dev/null && { |
6714 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6715 | test ! -s conftest.err | |
6716 | }; then | |
ad6254c5 AK |
6717 | ac_header_preproc=yes |
6718 | else | |
1995c9ff | 6719 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6720 | sed 's/^/| /' conftest.$ac_ext >&5 |
6721 | ||
6722 | ac_header_preproc=no | |
6723 | fi | |
7a197a62 | 6724 | |
ad6254c5 | 6725 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
6726 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6727 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6728 | |
6729 | # So? What about this header? | |
8a2fc586 AK |
6730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6731 | yes:no: ) | |
1995c9ff AK |
6732 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6733 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6735 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6736 | ac_header_preproc=yes |
ad6254c5 | 6737 | ;; |
8a2fc586 | 6738 | no:yes:* ) |
1995c9ff AK |
6739 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6740 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6741 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6742 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6743 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6744 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6745 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6746 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6748 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6749 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6750 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6751 | |
ad6254c5 AK |
6752 | ;; |
6753 | esac | |
1995c9ff AK |
6754 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6756 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6758 | else |
8a2fc586 | 6759 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6760 | fi |
1995c9ff AK |
6761 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6762 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6763 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6764 | |
6765 | fi | |
1995c9ff | 6766 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6767 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6768 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6769 | _ACEOF |
6770 | ||
6771 | fi | |
6772 | ||
6773 | done | |
6774 | ||
1995c9ff AK |
6775 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
6776 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 6777 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
1995c9ff | 6778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6779 | else |
6780 | if test "$cross_compiling" = yes; then | |
6781 | ac_cv_func_malloc_0_nonnull=no | |
6782 | else | |
6783 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6784 | /* confdefs.h. */ |
6785 | _ACEOF | |
6786 | cat confdefs.h >>conftest.$ac_ext | |
6787 | cat >>conftest.$ac_ext <<_ACEOF | |
6788 | /* end confdefs.h. */ | |
25fbec5b | 6789 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
6790 | # include <stdlib.h> |
6791 | #else | |
6792 | char *malloc (); | |
6793 | #endif | |
6794 | ||
6795 | int | |
6796 | main () | |
6797 | { | |
7a197a62 | 6798 | return ! malloc (0); |
ad6254c5 AK |
6799 | ; |
6800 | return 0; | |
6801 | } | |
6802 | _ACEOF | |
6803 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6804 | if { (ac_try="$ac_link" |
6805 | case "(($ac_try" in | |
6806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6807 | *) ac_try_echo=$ac_try;; | |
6808 | esac | |
1995c9ff | 6809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6810 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6811 | ac_status=$? |
1995c9ff | 6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6814 | { (case "(($ac_try" in |
6815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6816 | *) ac_try_echo=$ac_try;; | |
6817 | esac | |
1995c9ff | 6818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6819 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6820 | ac_status=$? |
1995c9ff | 6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6822 | (exit $ac_status); }; }; then |
6823 | ac_cv_func_malloc_0_nonnull=yes | |
6824 | else | |
1995c9ff AK |
6825 | echo "$as_me: program exited with status $ac_status" >&5 |
6826 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6827 | sed 's/^/| /' conftest.$ac_ext >&5 |
6828 | ||
6829 | ( exit $ac_status ) | |
6830 | ac_cv_func_malloc_0_nonnull=no | |
6831 | fi | |
7a197a62 | 6832 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6833 | fi |
7a197a62 AK |
6834 | |
6835 | ||
ad6254c5 | 6836 | fi |
1995c9ff AK |
6837 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6838 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
6839 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
6840 | ||
6841 | cat >>confdefs.h <<\_ACEOF | |
6842 | #define HAVE_MALLOC 1 | |
6843 | _ACEOF | |
6844 | ||
6845 | else | |
6846 | cat >>confdefs.h <<\_ACEOF | |
6847 | #define HAVE_MALLOC 0 | |
6848 | _ACEOF | |
6849 | ||
7a197a62 | 6850 | case " $LIBOBJS " in |
8a2fc586 | 6851 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
6852 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
6853 | ;; | |
8a2fc586 AK |
6854 | esac |
6855 | ||
ad6254c5 AK |
6856 | |
6857 | cat >>confdefs.h <<\_ACEOF | |
6858 | #define malloc rpl_malloc | |
6859 | _ACEOF | |
6860 | ||
6861 | fi | |
6862 | ||
6863 | ||
6864 | ||
1995c9ff AK |
6865 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
6866 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 6867 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
1995c9ff | 6868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6869 | else |
6870 | if test "$cross_compiling" = yes; then | |
6871 | ac_cv_func_memcmp_working=no | |
6872 | else | |
6873 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6874 | /* confdefs.h. */ |
6875 | _ACEOF | |
6876 | cat confdefs.h >>conftest.$ac_ext | |
6877 | cat >>conftest.$ac_ext <<_ACEOF | |
6878 | /* end confdefs.h. */ | |
8a2fc586 | 6879 | $ac_includes_default |
ad6254c5 AK |
6880 | int |
6881 | main () | |
6882 | { | |
6883 | ||
6884 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 6885 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 6886 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 6887 | return 1; |
ad6254c5 AK |
6888 | |
6889 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6890 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6891 | William Lewis provided this test program. */ | |
6892 | { | |
6893 | char foo[21]; | |
6894 | char bar[21]; | |
6895 | int i; | |
6896 | for (i = 0; i < 4; i++) | |
6897 | { | |
8a2fc586 AK |
6898 | char *a = foo + i; |
6899 | char *b = bar + i; | |
6900 | strcpy (a, "--------01111111"); | |
6901 | strcpy (b, "--------10000000"); | |
6902 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 6903 | return 1; |
ad6254c5 | 6904 | } |
7a197a62 | 6905 | return 0; |
ad6254c5 AK |
6906 | } |
6907 | ||
6908 | ; | |
6909 | return 0; | |
6910 | } | |
6911 | _ACEOF | |
6912 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6913 | if { (ac_try="$ac_link" |
6914 | case "(($ac_try" in | |
6915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6916 | *) ac_try_echo=$ac_try;; | |
6917 | esac | |
1995c9ff | 6918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6919 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6920 | ac_status=$? |
1995c9ff | 6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6923 | { (case "(($ac_try" in |
6924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6925 | *) ac_try_echo=$ac_try;; | |
6926 | esac | |
1995c9ff | 6927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6928 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6929 | ac_status=$? |
1995c9ff | 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6931 | (exit $ac_status); }; }; then |
6932 | ac_cv_func_memcmp_working=yes | |
6933 | else | |
1995c9ff AK |
6934 | echo "$as_me: program exited with status $ac_status" >&5 |
6935 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6936 | sed 's/^/| /' conftest.$ac_ext >&5 |
6937 | ||
6938 | ( exit $ac_status ) | |
6939 | ac_cv_func_memcmp_working=no | |
6940 | fi | |
7a197a62 | 6941 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6942 | fi |
7a197a62 AK |
6943 | |
6944 | ||
ad6254c5 | 6945 | fi |
1995c9ff AK |
6946 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
6947 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 6948 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 6949 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
6950 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
6951 | ;; | |
8a2fc586 AK |
6952 | esac |
6953 | ||
ad6254c5 AK |
6954 | |
6955 | ||
6956 | ||
6957 | for ac_header in stdlib.h unistd.h | |
6958 | do | |
1995c9ff | 6959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6960 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
6961 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6963 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6965 | fi |
1995c9ff AK |
6966 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6967 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6968 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6969 | else |
6970 | # Is the header compilable? | |
1995c9ff AK |
6971 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6973 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6974 | /* confdefs.h. */ |
6975 | _ACEOF | |
6976 | cat confdefs.h >>conftest.$ac_ext | |
6977 | cat >>conftest.$ac_ext <<_ACEOF | |
6978 | /* end confdefs.h. */ | |
6979 | $ac_includes_default | |
6980 | #include <$ac_header> | |
6981 | _ACEOF | |
6982 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6983 | if { (ac_try="$ac_compile" |
6984 | case "(($ac_try" in | |
6985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6986 | *) ac_try_echo=$ac_try;; | |
6987 | esac | |
1995c9ff | 6988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6989 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6990 | ac_status=$? |
8a2fc586 AK |
6991 | grep -v '^ *+' conftest.er1 >conftest.err |
6992 | rm -f conftest.er1 | |
6993 | cat conftest.err >&5 | |
1995c9ff | 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6995 | (exit $ac_status); } && { |
6996 | test -z "$ac_c_werror_flag" || | |
6997 | test ! -s conftest.err | |
6998 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6999 | ac_header_compiler=yes |
7000 | else | |
1995c9ff | 7001 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7002 | sed 's/^/| /' conftest.$ac_ext >&5 |
7003 | ||
7a197a62 | 7004 | ac_header_compiler=no |
ad6254c5 | 7005 | fi |
7a197a62 AK |
7006 | |
7007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
7008 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7009 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7010 | |
7011 | # Is the header present? | |
1995c9ff AK |
7012 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7013 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7014 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7015 | /* confdefs.h. */ |
7016 | _ACEOF | |
7017 | cat confdefs.h >>conftest.$ac_ext | |
7018 | cat >>conftest.$ac_ext <<_ACEOF | |
7019 | /* end confdefs.h. */ | |
7020 | #include <$ac_header> | |
7021 | _ACEOF | |
7a197a62 AK |
7022 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7023 | case "(($ac_try" in | |
7024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7025 | *) ac_try_echo=$ac_try;; | |
7026 | esac | |
1995c9ff | 7027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7029 | ac_status=$? |
7030 | grep -v '^ *+' conftest.er1 >conftest.err | |
7031 | rm -f conftest.er1 | |
7032 | cat conftest.err >&5 | |
1995c9ff | 7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7034 | (exit $ac_status); } >/dev/null && { |
7035 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7036 | test ! -s conftest.err | |
7037 | }; then | |
ad6254c5 AK |
7038 | ac_header_preproc=yes |
7039 | else | |
1995c9ff | 7040 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7041 | sed 's/^/| /' conftest.$ac_ext >&5 |
7042 | ||
7043 | ac_header_preproc=no | |
7044 | fi | |
7a197a62 | 7045 | |
ad6254c5 | 7046 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
7047 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7048 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7049 | |
7050 | # So? What about this header? | |
8a2fc586 AK |
7051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7052 | yes:no: ) | |
1995c9ff AK |
7053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7056 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7057 | ac_header_preproc=yes |
ad6254c5 | 7058 | ;; |
8a2fc586 | 7059 | no:yes:* ) |
1995c9ff AK |
7060 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7061 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7062 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7063 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7064 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7065 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7066 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7067 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7070 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7071 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7072 | |
ad6254c5 AK |
7073 | ;; |
7074 | esac | |
1995c9ff AK |
7075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7079 | else |
8a2fc586 | 7080 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7081 | fi |
1995c9ff AK |
7082 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7083 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7084 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7085 | |
7086 | fi | |
1995c9ff | 7087 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7088 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7089 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7090 | _ACEOF |
7091 | ||
7092 | fi | |
7093 | ||
7094 | done | |
7095 | ||
7096 | ||
7097 | for ac_func in getpagesize | |
7098 | do | |
1995c9ff AK |
7099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7100 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7102 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7104 | else |
7105 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7106 | /* confdefs.h. */ |
7107 | _ACEOF | |
7108 | cat confdefs.h >>conftest.$ac_ext | |
7109 | cat >>conftest.$ac_ext <<_ACEOF | |
7110 | /* end confdefs.h. */ | |
8a2fc586 AK |
7111 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7112 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7113 | #define $ac_func innocuous_$ac_func | |
7114 | ||
ad6254c5 AK |
7115 | /* System header to define __stub macros and hopefully few prototypes, |
7116 | which can conflict with char $ac_func (); below. | |
7117 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7118 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7119 | |
ad6254c5 AK |
7120 | #ifdef __STDC__ |
7121 | # include <limits.h> | |
7122 | #else | |
7123 | # include <assert.h> | |
7124 | #endif | |
8a2fc586 AK |
7125 | |
7126 | #undef $ac_func | |
7127 | ||
7a197a62 AK |
7128 | /* Override any GCC internal prototype to avoid an error. |
7129 | Use char because int might match the return type of a GCC | |
7130 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7131 | #ifdef __cplusplus |
7132 | extern "C" | |
ad6254c5 | 7133 | #endif |
ad6254c5 AK |
7134 | char $ac_func (); |
7135 | /* The GNU C library defines this for functions which it implements | |
7136 | to always fail with ENOSYS. Some functions are actually named | |
7137 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7138 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7139 | choke me |
ad6254c5 AK |
7140 | #endif |
7141 | ||
7142 | int | |
7143 | main () | |
7144 | { | |
7a197a62 | 7145 | return $ac_func (); |
ad6254c5 AK |
7146 | ; |
7147 | return 0; | |
7148 | } | |
7149 | _ACEOF | |
7150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7151 | if { (ac_try="$ac_link" |
7152 | case "(($ac_try" in | |
7153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7154 | *) ac_try_echo=$ac_try;; | |
7155 | esac | |
1995c9ff | 7156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7157 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7158 | ac_status=$? |
8a2fc586 AK |
7159 | grep -v '^ *+' conftest.er1 >conftest.err |
7160 | rm -f conftest.er1 | |
7161 | cat conftest.err >&5 | |
1995c9ff | 7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7163 | (exit $ac_status); } && { |
7164 | test -z "$ac_c_werror_flag" || | |
7165 | test ! -s conftest.err | |
7166 | } && test -s conftest$ac_exeext && | |
7167 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7168 | eval "$as_ac_var=yes" |
7169 | else | |
1995c9ff | 7170 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7171 | sed 's/^/| /' conftest.$ac_ext >&5 |
7172 | ||
7a197a62 | 7173 | eval "$as_ac_var=no" |
ad6254c5 | 7174 | fi |
7a197a62 | 7175 | |
25fbec5b | 7176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7177 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7178 | fi |
1995c9ff AK |
7179 | ac_res=`eval echo '${'$as_ac_var'}'` |
7180 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7181 | echo "${ECHO_T}$ac_res" >&6; } | |
7182 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7183 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7184 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7185 | _ACEOF |
7186 | ||
7187 | fi | |
7188 | done | |
7189 | ||
1995c9ff AK |
7190 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7191 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7192 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
1995c9ff | 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7194 | else |
7195 | if test "$cross_compiling" = yes; then | |
7196 | ac_cv_func_mmap_fixed_mapped=no | |
7197 | else | |
7198 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7199 | /* confdefs.h. */ |
7200 | _ACEOF | |
7201 | cat confdefs.h >>conftest.$ac_ext | |
7202 | cat >>conftest.$ac_ext <<_ACEOF | |
7203 | /* end confdefs.h. */ | |
7204 | $ac_includes_default | |
7205 | /* malloc might have been renamed as rpl_malloc. */ | |
7206 | #undef malloc | |
7207 | ||
7208 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7209 | Here is a matrix of mmap possibilities: | |
7210 | mmap private not fixed | |
7211 | mmap private fixed at somewhere currently unmapped | |
7212 | mmap private fixed at somewhere already mapped | |
7213 | mmap shared not fixed | |
7214 | mmap shared fixed at somewhere currently unmapped | |
7215 | mmap shared fixed at somewhere already mapped | |
7216 | For private mappings, we should verify that changes cannot be read() | |
7217 | back from the file, nor mmap's back from the file at a different | |
7218 | address. (There have been systems where private was not correctly | |
7219 | implemented like the infamous i386 svr4.0, and systems where the | |
7220 | VM page cache was not coherent with the file system buffer cache | |
7221 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7222 | For shared mappings, we should conversely verify that changes get | |
7223 | propagated back to all the places they're supposed to be. | |
7224 | ||
7225 | Grep wants private fixed already mapped. | |
7226 | The main things grep needs to know about mmap are: | |
7227 | * does it exist and is it safe to write into the mmap'd area | |
7228 | * how to use it (BSD variants) */ | |
7229 | ||
7230 | #include <fcntl.h> | |
7231 | #include <sys/mman.h> | |
7232 | ||
25fbec5b | 7233 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7234 | char *malloc (); |
7235 | #endif | |
7236 | ||
7237 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7238 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7239 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7240 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7241 | # define HAVE_SYS_PARAM_H 1 |
7242 | # endif | |
7243 | ||
7244 | # ifdef _SC_PAGESIZE | |
7245 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7246 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7247 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7248 | # include <sys/param.h> |
7249 | # ifdef EXEC_PAGESIZE | |
7250 | # define getpagesize() EXEC_PAGESIZE | |
7251 | # else /* no EXEC_PAGESIZE */ | |
7252 | # ifdef NBPG | |
7253 | # define getpagesize() NBPG * CLSIZE | |
7254 | # ifndef CLSIZE | |
7255 | # define CLSIZE 1 | |
7256 | # endif /* no CLSIZE */ | |
7257 | # else /* no NBPG */ | |
7258 | # ifdef NBPC | |
7259 | # define getpagesize() NBPC | |
7260 | # else /* no NBPC */ | |
7261 | # ifdef PAGESIZE | |
7262 | # define getpagesize() PAGESIZE | |
7263 | # endif /* PAGESIZE */ | |
7264 | # endif /* no NBPC */ | |
7265 | # endif /* no NBPG */ | |
7266 | # endif /* no EXEC_PAGESIZE */ | |
7267 | # else /* no HAVE_SYS_PARAM_H */ | |
7268 | # define getpagesize() 8192 /* punt totally */ | |
7269 | # endif /* no HAVE_SYS_PARAM_H */ | |
7270 | # endif /* no _SC_PAGESIZE */ | |
7271 | ||
7272 | #endif /* no HAVE_GETPAGESIZE */ | |
7273 | ||
7274 | int | |
7275 | main () | |
7276 | { | |
7277 | char *data, *data2, *data3; | |
7278 | int i, pagesize; | |
7279 | int fd; | |
7280 | ||
7281 | pagesize = getpagesize (); | |
7282 | ||
7283 | /* First, make a file with some known garbage in it. */ | |
7284 | data = (char *) malloc (pagesize); | |
7285 | if (!data) | |
7a197a62 | 7286 | return 1; |
ad6254c5 AK |
7287 | for (i = 0; i < pagesize; ++i) |
7288 | *(data + i) = rand (); | |
7289 | umask (0); | |
7290 | fd = creat ("conftest.mmap", 0600); | |
7291 | if (fd < 0) | |
7a197a62 | 7292 | return 1; |
ad6254c5 | 7293 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7294 | return 1; |
ad6254c5 AK |
7295 | close (fd); |
7296 | ||
7297 | /* Next, try to mmap the file at a fixed address which already has | |
7298 | something else allocated at it. If we can, also make sure that | |
7299 | we see the same garbage. */ | |
7300 | fd = open ("conftest.mmap", O_RDWR); | |
7301 | if (fd < 0) | |
7a197a62 | 7302 | return 1; |
ad6254c5 AK |
7303 | data2 = (char *) malloc (2 * pagesize); |
7304 | if (!data2) | |
7a197a62 AK |
7305 | return 1; |
7306 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7307 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7308 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7309 | return 1; |
ad6254c5 AK |
7310 | for (i = 0; i < pagesize; ++i) |
7311 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7312 | return 1; |
ad6254c5 AK |
7313 | |
7314 | /* Finally, make sure that changes to the mapped area do not | |
7315 | percolate back to the file as seen by read(). (This is a bug on | |
7316 | some variants of i386 svr4.0.) */ | |
7317 | for (i = 0; i < pagesize; ++i) | |
7318 | *(data2 + i) = *(data2 + i) + 1; | |
7319 | data3 = (char *) malloc (pagesize); | |
7320 | if (!data3) | |
7a197a62 | 7321 | return 1; |
ad6254c5 | 7322 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7323 | return 1; |
ad6254c5 AK |
7324 | for (i = 0; i < pagesize; ++i) |
7325 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7326 | return 1; |
ad6254c5 | 7327 | close (fd); |
7a197a62 | 7328 | return 0; |
ad6254c5 AK |
7329 | } |
7330 | _ACEOF | |
7331 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7332 | if { (ac_try="$ac_link" |
7333 | case "(($ac_try" in | |
7334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7335 | *) ac_try_echo=$ac_try;; | |
7336 | esac | |
1995c9ff | 7337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7338 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7339 | ac_status=$? |
1995c9ff | 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7342 | { (case "(($ac_try" in |
7343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7344 | *) ac_try_echo=$ac_try;; | |
7345 | esac | |
1995c9ff | 7346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7347 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7348 | ac_status=$? |
1995c9ff | 7349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7350 | (exit $ac_status); }; }; then |
7351 | ac_cv_func_mmap_fixed_mapped=yes | |
7352 | else | |
1995c9ff AK |
7353 | echo "$as_me: program exited with status $ac_status" >&5 |
7354 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7355 | sed 's/^/| /' conftest.$ac_ext >&5 |
7356 | ||
7357 | ( exit $ac_status ) | |
7358 | ac_cv_func_mmap_fixed_mapped=no | |
7359 | fi | |
7a197a62 | 7360 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7361 | fi |
7a197a62 AK |
7362 | |
7363 | ||
ad6254c5 | 7364 | fi |
1995c9ff AK |
7365 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7366 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7367 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7368 | ||
7369 | cat >>confdefs.h <<\_ACEOF | |
7370 | #define HAVE_MMAP 1 | |
7371 | _ACEOF | |
7372 | ||
7373 | fi | |
7374 | rm -f conftest.mmap | |
7375 | ||
1995c9ff AK |
7376 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7377 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7378 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
1995c9ff | 7379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7380 | else |
7381 | if test "$cross_compiling" = yes; then | |
7382 | ac_cv_func_stat_empty_string_bug=yes | |
7383 | else | |
7384 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7385 | /* confdefs.h. */ |
7386 | _ACEOF | |
7387 | cat confdefs.h >>conftest.$ac_ext | |
7388 | cat >>conftest.$ac_ext <<_ACEOF | |
7389 | /* end confdefs.h. */ | |
7390 | $ac_includes_default | |
7391 | int | |
7392 | main () | |
7393 | { | |
7394 | struct stat sbuf; | |
7a197a62 | 7395 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7396 | ; |
7397 | return 0; | |
7398 | } | |
7399 | _ACEOF | |
7400 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7401 | if { (ac_try="$ac_link" |
7402 | case "(($ac_try" in | |
7403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7404 | *) ac_try_echo=$ac_try;; | |
7405 | esac | |
1995c9ff | 7406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7407 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7408 | ac_status=$? |
1995c9ff | 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7411 | { (case "(($ac_try" in |
7412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7413 | *) ac_try_echo=$ac_try;; | |
7414 | esac | |
1995c9ff | 7415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7416 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7417 | ac_status=$? |
1995c9ff | 7418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7419 | (exit $ac_status); }; }; then |
7a197a62 | 7420 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7421 | else |
1995c9ff AK |
7422 | echo "$as_me: program exited with status $ac_status" >&5 |
7423 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7424 | sed 's/^/| /' conftest.$ac_ext >&5 |
7425 | ||
7426 | ( exit $ac_status ) | |
7a197a62 | 7427 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7428 | fi |
7a197a62 | 7429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7430 | fi |
7a197a62 AK |
7431 | |
7432 | ||
ad6254c5 | 7433 | fi |
1995c9ff AK |
7434 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7435 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7436 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7437 | case " $LIBOBJS " in |
8a2fc586 | 7438 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7439 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7440 | ;; | |
8a2fc586 AK |
7441 | esac |
7442 | ||
ad6254c5 AK |
7443 | |
7444 | cat >>confdefs.h <<_ACEOF | |
7445 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7446 | _ACEOF | |
7447 | ||
7448 | fi | |
7449 | ||
1995c9ff AK |
7450 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7451 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7452 | if test "${ac_cv_func_strtod+set}" = set; then |
1995c9ff | 7453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7454 | else |
7455 | if test "$cross_compiling" = yes; then | |
7456 | ac_cv_func_strtod=no | |
7457 | else | |
7458 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7459 | /* confdefs.h. */ |
7460 | _ACEOF | |
7461 | cat confdefs.h >>conftest.$ac_ext | |
7462 | cat >>conftest.$ac_ext <<_ACEOF | |
7463 | /* end confdefs.h. */ | |
7464 | ||
7a197a62 AK |
7465 | $ac_includes_default |
7466 | #ifndef strtod | |
ad6254c5 | 7467 | double strtod (); |
7a197a62 | 7468 | #endif |
ad6254c5 AK |
7469 | int |
7470 | main() | |
7471 | { | |
7472 | { | |
7473 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7474 | char *string = " +69"; | |
7475 | char *term; | |
7476 | double value; | |
7477 | value = strtod (string, &term); | |
7478 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7479 | return 1; |
ad6254c5 AK |
7480 | } |
7481 | ||
7482 | { | |
7483 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7484 | terminating character under some conditions. */ | |
7485 | char *string = "NaN"; | |
7486 | char *term; | |
7487 | strtod (string, &term); | |
7488 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7489 | return 1; |
ad6254c5 | 7490 | } |
7a197a62 | 7491 | return 0; |
ad6254c5 AK |
7492 | } |
7493 | ||
7494 | _ACEOF | |
7495 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7496 | if { (ac_try="$ac_link" |
7497 | case "(($ac_try" in | |
7498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7499 | *) ac_try_echo=$ac_try;; | |
7500 | esac | |
1995c9ff | 7501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7502 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7503 | ac_status=$? |
1995c9ff | 7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7506 | { (case "(($ac_try" in |
7507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7508 | *) ac_try_echo=$ac_try;; | |
7509 | esac | |
1995c9ff | 7510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7511 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7512 | ac_status=$? |
1995c9ff | 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7514 | (exit $ac_status); }; }; then |
7515 | ac_cv_func_strtod=yes | |
7516 | else | |
1995c9ff AK |
7517 | echo "$as_me: program exited with status $ac_status" >&5 |
7518 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7519 | sed 's/^/| /' conftest.$ac_ext >&5 |
7520 | ||
7521 | ( exit $ac_status ) | |
7522 | ac_cv_func_strtod=no | |
7523 | fi | |
7a197a62 | 7524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7525 | fi |
7a197a62 AK |
7526 | |
7527 | ||
ad6254c5 | 7528 | fi |
1995c9ff AK |
7529 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
7530 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 7531 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 7532 | case " $LIBOBJS " in |
8a2fc586 | 7533 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
7534 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
7535 | ;; | |
8a2fc586 AK |
7536 | esac |
7537 | ||
1995c9ff AK |
7538 | { echo "$as_me:$LINENO: checking for pow" >&5 |
7539 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 7540 | if test "${ac_cv_func_pow+set}" = set; then |
1995c9ff | 7541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7542 | else |
7543 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7544 | /* confdefs.h. */ |
7545 | _ACEOF | |
7546 | cat confdefs.h >>conftest.$ac_ext | |
7547 | cat >>conftest.$ac_ext <<_ACEOF | |
7548 | /* end confdefs.h. */ | |
8a2fc586 AK |
7549 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7551 | #define pow innocuous_pow | |
7552 | ||
ad6254c5 AK |
7553 | /* System header to define __stub macros and hopefully few prototypes, |
7554 | which can conflict with char pow (); below. | |
7555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7556 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7557 | |
ad6254c5 AK |
7558 | #ifdef __STDC__ |
7559 | # include <limits.h> | |
7560 | #else | |
7561 | # include <assert.h> | |
7562 | #endif | |
8a2fc586 AK |
7563 | |
7564 | #undef pow | |
7565 | ||
7a197a62 AK |
7566 | /* Override any GCC internal prototype to avoid an error. |
7567 | Use char because int might match the return type of a GCC | |
7568 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7569 | #ifdef __cplusplus |
7570 | extern "C" | |
ad6254c5 | 7571 | #endif |
ad6254c5 AK |
7572 | char pow (); |
7573 | /* The GNU C library defines this for functions which it implements | |
7574 | to always fail with ENOSYS. Some functions are actually named | |
7575 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7576 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 7577 | choke me |
ad6254c5 AK |
7578 | #endif |
7579 | ||
7580 | int | |
7581 | main () | |
7582 | { | |
7a197a62 | 7583 | return pow (); |
ad6254c5 AK |
7584 | ; |
7585 | return 0; | |
7586 | } | |
7587 | _ACEOF | |
7588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7589 | if { (ac_try="$ac_link" |
7590 | case "(($ac_try" in | |
7591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7592 | *) ac_try_echo=$ac_try;; | |
7593 | esac | |
1995c9ff | 7594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7595 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7596 | ac_status=$? |
8a2fc586 AK |
7597 | grep -v '^ *+' conftest.er1 >conftest.err |
7598 | rm -f conftest.er1 | |
7599 | cat conftest.err >&5 | |
1995c9ff | 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7601 | (exit $ac_status); } && { |
7602 | test -z "$ac_c_werror_flag" || | |
7603 | test ! -s conftest.err | |
7604 | } && test -s conftest$ac_exeext && | |
7605 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7606 | ac_cv_func_pow=yes |
7607 | else | |
1995c9ff | 7608 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7609 | sed 's/^/| /' conftest.$ac_ext >&5 |
7610 | ||
7a197a62 | 7611 | ac_cv_func_pow=no |
ad6254c5 | 7612 | fi |
7a197a62 | 7613 | |
25fbec5b | 7614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7615 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7616 | fi |
1995c9ff AK |
7617 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
7618 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
7619 | |
7620 | if test $ac_cv_func_pow = no; then | |
1995c9ff AK |
7621 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
7622 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 7623 | if test "${ac_cv_lib_m_pow+set}" = set; then |
1995c9ff | 7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7625 | else |
7626 | ac_check_lib_save_LIBS=$LIBS | |
7627 | LIBS="-lm $LIBS" | |
7628 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7629 | /* confdefs.h. */ |
7630 | _ACEOF | |
7631 | cat confdefs.h >>conftest.$ac_ext | |
7632 | cat >>conftest.$ac_ext <<_ACEOF | |
7633 | /* end confdefs.h. */ | |
7634 | ||
7a197a62 AK |
7635 | /* Override any GCC internal prototype to avoid an error. |
7636 | Use char because int might match the return type of a GCC | |
7637 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7638 | #ifdef __cplusplus |
7639 | extern "C" | |
7640 | #endif | |
ad6254c5 AK |
7641 | char pow (); |
7642 | int | |
7643 | main () | |
7644 | { | |
7a197a62 | 7645 | return pow (); |
ad6254c5 AK |
7646 | ; |
7647 | return 0; | |
7648 | } | |
7649 | _ACEOF | |
7650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7651 | if { (ac_try="$ac_link" |
7652 | case "(($ac_try" in | |
7653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7654 | *) ac_try_echo=$ac_try;; | |
7655 | esac | |
1995c9ff | 7656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7657 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7658 | ac_status=$? |
8a2fc586 AK |
7659 | grep -v '^ *+' conftest.er1 >conftest.err |
7660 | rm -f conftest.er1 | |
7661 | cat conftest.err >&5 | |
1995c9ff | 7662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7663 | (exit $ac_status); } && { |
7664 | test -z "$ac_c_werror_flag" || | |
7665 | test ! -s conftest.err | |
7666 | } && test -s conftest$ac_exeext && | |
7667 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7668 | ac_cv_lib_m_pow=yes |
7669 | else | |
1995c9ff | 7670 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7671 | sed 's/^/| /' conftest.$ac_ext >&5 |
7672 | ||
7a197a62 | 7673 | ac_cv_lib_m_pow=no |
ad6254c5 | 7674 | fi |
7a197a62 | 7675 | |
25fbec5b | 7676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7677 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7678 | LIBS=$ac_check_lib_save_LIBS |
7679 | fi | |
1995c9ff AK |
7680 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
7681 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
ad6254c5 AK |
7682 | if test $ac_cv_lib_m_pow = yes; then |
7683 | POW_LIB=-lm | |
7684 | else | |
1995c9ff AK |
7685 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
7686 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
ad6254c5 AK |
7687 | fi |
7688 | ||
7689 | fi | |
7690 | ||
7691 | fi | |
7692 | ||
7693 | ||
7694 | ################################################################################ | |
7695 | ||
7696 | ||
7697 | ################################################################################ | |
7a197a62 | 7698 | # Check whether --enable-jobs was given. |
ad6254c5 | 7699 | if test "${enable_jobs+set}" = set; then |
7a197a62 | 7700 | enableval=$enable_jobs; JOBS=-j$enableval |
ad6254c5 AK |
7701 | else |
7702 | JOBS=-j2 | |
7a197a62 AK |
7703 | fi |
7704 | ||
ad6254c5 AK |
7705 | |
7706 | ################################################################################ | |
1995c9ff AK |
7707 | { echo "$as_me:$LINENO: checking file owner" >&5 |
7708 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
ad6254c5 AK |
7709 | OWNER="root" |
7710 | ||
7711 | ||
7a197a62 | 7712 | # Check whether --with-user was given. |
ad6254c5 | 7713 | if test "${with_user+set}" = set; then |
7a197a62 AK |
7714 | withval=$with_user; OWNER="$withval" |
7715 | fi | |
7716 | ||
1995c9ff AK |
7717 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
7718 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 AK |
7719 | |
7720 | if test x$OWNER != x; then | |
7721 | OWNER="-o $OWNER" | |
7722 | fi | |
7723 | ||
7724 | ################################################################################ | |
1995c9ff AK |
7725 | { echo "$as_me:$LINENO: checking group owner" >&5 |
7726 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
ad6254c5 AK |
7727 | GROUP="root" |
7728 | ||
7a197a62 | 7729 | # Check whether --with-group was given. |
ad6254c5 | 7730 | if test "${with_group+set}" = set; then |
7a197a62 AK |
7731 | withval=$with_group; GROUP="$withval" |
7732 | fi | |
7733 | ||
1995c9ff AK |
7734 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
7735 | echo "${ECHO_T}$GROUP" >&6; } | |
ad6254c5 AK |
7736 | |
7737 | if test x$GROUP != x; then | |
7738 | GROUP="-g $GROUP" | |
7739 | fi | |
7740 | ||
7741 | ################################################################################ | |
1995c9ff AK |
7742 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
7743 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
7a197a62 | 7744 | # Check whether --enable-lvm1_fallback was given. |
ad6254c5 | 7745 | if test "${enable_lvm1_fallback+set}" = set; then |
7a197a62 | 7746 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval |
ad6254c5 AK |
7747 | else |
7748 | LVM1_FALLBACK=no | |
7a197a62 AK |
7749 | fi |
7750 | ||
1995c9ff AK |
7751 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
7752 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 AK |
7753 | |
7754 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 AK |
7755 | |
7756 | cat >>confdefs.h <<\_ACEOF | |
7757 | #define LVM1_FALLBACK 1 | |
7758 | _ACEOF | |
7759 | ||
ad6254c5 AK |
7760 | fi |
7761 | ||
7762 | ################################################################################ | |
1995c9ff AK |
7763 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
7764 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
ad6254c5 | 7765 | |
7a197a62 | 7766 | # Check whether --with-lvm1 was given. |
ad6254c5 | 7767 | if test "${with_lvm1+set}" = set; then |
7a197a62 | 7768 | withval=$with_lvm1; LVM1="$withval" |
ad6254c5 AK |
7769 | else |
7770 | LVM1="internal" | |
7a197a62 AK |
7771 | fi |
7772 | ||
1995c9ff AK |
7773 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
7774 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 AK |
7775 | |
7776 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
1995c9ff | 7777 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
ad6254c5 | 7778 | " >&5 |
1995c9ff | 7779 | echo "$as_me: error: --with-lvm1 parameter invalid |
ad6254c5 AK |
7780 | " >&2;} |
7781 | { (exit 1); exit 1; }; } | |
7782 | fi; | |
7783 | ||
7784 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
7785 | |
7786 | cat >>confdefs.h <<\_ACEOF | |
7787 | #define LVM1_INTERNAL 1 | |
7788 | _ACEOF | |
7789 | ||
ad6254c5 AK |
7790 | fi |
7791 | ||
7792 | ################################################################################ | |
1995c9ff AK |
7793 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
7794 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
ad6254c5 | 7795 | |
7a197a62 | 7796 | # Check whether --with-pool was given. |
ad6254c5 | 7797 | if test "${with_pool+set}" = set; then |
7a197a62 | 7798 | withval=$with_pool; POOL="$withval" |
ad6254c5 AK |
7799 | else |
7800 | POOL="internal" | |
7a197a62 AK |
7801 | fi |
7802 | ||
1995c9ff AK |
7803 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
7804 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 AK |
7805 | |
7806 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
1995c9ff | 7807 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
ad6254c5 | 7808 | " >&5 |
1995c9ff | 7809 | echo "$as_me: error: --with-pool parameter invalid |
ad6254c5 AK |
7810 | " >&2;} |
7811 | { (exit 1); exit 1; }; } | |
7812 | fi; | |
7813 | ||
7814 | if test x$POOL = xinternal; then | |
72b2cb61 AK |
7815 | |
7816 | cat >>confdefs.h <<\_ACEOF | |
7817 | #define POOL_INTERNAL 1 | |
7818 | _ACEOF | |
7819 | ||
ad6254c5 AK |
7820 | fi |
7821 | ||
7822 | ################################################################################ | |
1995c9ff AK |
7823 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
7824 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
ad6254c5 | 7825 | |
7a197a62 | 7826 | # Check whether --with-cluster was given. |
ad6254c5 | 7827 | if test "${with_cluster+set}" = set; then |
7a197a62 AK |
7828 | withval=$with_cluster; CLUSTER="$withval" |
7829 | fi | |
7830 | ||
1995c9ff AK |
7831 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
7832 | echo "${ECHO_T}$CLUSTER" >&6; } | |
ad6254c5 AK |
7833 | |
7834 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
1995c9ff | 7835 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
ad6254c5 | 7836 | " >&5 |
1995c9ff | 7837 | echo "$as_me: error: --with-cluster parameter invalid |
ad6254c5 AK |
7838 | " >&2;} |
7839 | { (exit 1); exit 1; }; } | |
7840 | fi; | |
7841 | ||
7842 | if test x$CLUSTER = xinternal; then | |
72b2cb61 AK |
7843 | |
7844 | cat >>confdefs.h <<\_ACEOF | |
7845 | #define CLUSTER_LOCKING_INTERNAL 1 | |
7846 | _ACEOF | |
7847 | ||
ad6254c5 AK |
7848 | fi |
7849 | ||
7850 | ################################################################################ | |
1995c9ff AK |
7851 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
7852 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 7853 | |
7a197a62 | 7854 | # Check whether --with-snapshots was given. |
ad6254c5 | 7855 | if test "${with_snapshots+set}" = set; then |
7a197a62 | 7856 | withval=$with_snapshots; SNAPSHOTS="$withval" |
ad6254c5 AK |
7857 | else |
7858 | SNAPSHOTS="internal" | |
7a197a62 AK |
7859 | fi |
7860 | ||
1995c9ff AK |
7861 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
7862 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 AK |
7863 | |
7864 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
1995c9ff | 7865 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
ad6254c5 | 7866 | " >&5 |
1995c9ff | 7867 | echo "$as_me: error: --with-snapshots parameter invalid |
ad6254c5 AK |
7868 | " >&2;} |
7869 | { (exit 1); exit 1; }; } | |
7870 | fi; | |
7871 | ||
7872 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 AK |
7873 | |
7874 | cat >>confdefs.h <<\_ACEOF | |
7875 | #define SNAPSHOT_INTERNAL 1 | |
7876 | _ACEOF | |
7877 | ||
ad6254c5 AK |
7878 | fi |
7879 | ||
7880 | ################################################################################ | |
1995c9ff AK |
7881 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
7882 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
ad6254c5 | 7883 | |
7a197a62 | 7884 | # Check whether --with-mirrors was given. |
ad6254c5 | 7885 | if test "${with_mirrors+set}" = set; then |
7a197a62 | 7886 | withval=$with_mirrors; MIRRORS="$withval" |
ad6254c5 AK |
7887 | else |
7888 | MIRRORS="internal" | |
7a197a62 AK |
7889 | fi |
7890 | ||
1995c9ff AK |
7891 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
7892 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 AK |
7893 | |
7894 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
1995c9ff | 7895 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
ad6254c5 | 7896 | " >&5 |
1995c9ff | 7897 | echo "$as_me: error: --with-mirrors parameter invalid |
ad6254c5 AK |
7898 | " >&2;} |
7899 | { (exit 1); exit 1; }; } | |
7900 | fi; | |
7901 | ||
7902 | if test x$MIRRORS = xinternal; then | |
72b2cb61 AK |
7903 | |
7904 | cat >>confdefs.h <<\_ACEOF | |
7905 | #define MIRRORED_INTERNAL 1 | |
7906 | _ACEOF | |
7907 | ||
ad6254c5 AK |
7908 | fi |
7909 | ||
7910 | ################################################################################ | |
1995c9ff AK |
7911 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
7912 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
7a197a62 | 7913 | # Check whether --enable-static_link was given. |
ad6254c5 | 7914 | if test "${enable_static_link+set}" = set; then |
7a197a62 | 7915 | enableval=$enable_static_link; STATIC_LINK=$enableval |
ad6254c5 AK |
7916 | else |
7917 | STATIC_LINK=no | |
7a197a62 AK |
7918 | fi |
7919 | ||
1995c9ff AK |
7920 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
7921 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
ad6254c5 AK |
7922 | |
7923 | ################################################################################ | |
1995c9ff AK |
7924 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
7925 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
7a197a62 | 7926 | # Check whether --enable-readline was given. |
ad6254c5 | 7927 | if test "${enable_readline+set}" = set; then |
7a197a62 | 7928 | enableval=$enable_readline; READLINE=$enableval |
ad6254c5 AK |
7929 | else |
7930 | READLINE=no | |
7a197a62 AK |
7931 | fi |
7932 | ||
1995c9ff AK |
7933 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
7934 | echo "${ECHO_T}$READLINE" >&6; } | |
ad6254c5 AK |
7935 | |
7936 | if test x$READLINE = xyes; then | |
72b2cb61 AK |
7937 | |
7938 | cat >>confdefs.h <<\_ACEOF | |
7939 | #define READLINE_SUPPORT 1 | |
7940 | _ACEOF | |
7941 | ||
ad6254c5 AK |
7942 | fi |
7943 | ||
7944 | ################################################################################ | |
1995c9ff AK |
7945 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
7946 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
7a197a62 | 7947 | # Check whether --enable-selinux was given. |
ad6254c5 | 7948 | if test "${enable_selinux+set}" = set; then |
7a197a62 AK |
7949 | enableval=$enable_selinux; SELINUX=$enableval |
7950 | fi | |
7951 | ||
1995c9ff AK |
7952 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
7953 | echo "${ECHO_T}$SELINUX" >&6; } | |
ad6254c5 | 7954 | |
8b1a3214 | 7955 | ################################################################################ |
1995c9ff AK |
7956 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
7957 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
7a197a62 | 7958 | # Check whether --enable-realtime was given. |
8b1a3214 | 7959 | if test "${enable_realtime+set}" = set; then |
7a197a62 AK |
7960 | enableval=$enable_realtime; REALTIME=$enableval |
7961 | fi | |
7962 | ||
1995c9ff AK |
7963 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
7964 | echo "${ECHO_T}$REALTIME" >&6; } | |
8b1a3214 | 7965 | |
ad6254c5 | 7966 | ################################################################################ |
1995c9ff AK |
7967 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
7968 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
ad6254c5 | 7969 | |
7a197a62 | 7970 | # Check whether --with-clvmd was given. |
ad6254c5 | 7971 | if test "${with_clvmd+set}" = set; then |
7a197a62 | 7972 | withval=$with_clvmd; CLVMD="$withval" |
ad6254c5 | 7973 | else |
a266258f | 7974 | CLVMD="none" |
7a197a62 AK |
7975 | fi |
7976 | ||
a266258f | 7977 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7978 | CLVMD=all |
b1098701 | 7979 | fi |
1995c9ff AK |
7980 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7981 | echo "${ECHO_T}$CLVMD" >&6; } | |
ad6254c5 | 7982 | |
a266258f | 7983 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7984 | CLUSTER=internal |
7985 | fi | |
7986 | ||
7987 | ################################################################################ | |
1995c9ff AK |
7988 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
7989 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
7a197a62 | 7990 | # Check whether --enable-debug was given. |
ad6254c5 | 7991 | if test "${enable_debug+set}" = set; then |
7a197a62 | 7992 | enableval=$enable_debug; DEBUG=$enableval |
ad6254c5 AK |
7993 | else |
7994 | DEBUG=no | |
7a197a62 AK |
7995 | fi |
7996 | ||
1995c9ff AK |
7997 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
7998 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 AK |
7999 | |
8000 | if test x$DEBUG = xyes; then | |
8001 | COPTIMISE_FLAG= | |
8a2fc586 AK |
8002 | else |
8003 | CSCOPE_CMD= | |
ad6254c5 AK |
8004 | fi |
8005 | ||
8006 | ################################################################################ | |
1995c9ff AK |
8007 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8008 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
ad6254c5 | 8009 | |
7a197a62 | 8010 | # Check whether --with-optimisation was given. |
ad6254c5 | 8011 | if test "${with_optimisation+set}" = set; then |
7a197a62 AK |
8012 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" |
8013 | fi | |
8014 | ||
1995c9ff AK |
8015 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8016 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
ad6254c5 AK |
8017 | |
8018 | ################################################################################ | |
1995c9ff AK |
8019 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8020 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
7a197a62 | 8021 | # Check whether --enable-devmapper was given. |
ad6254c5 | 8022 | if test "${enable_devmapper+set}" = set; then |
7a197a62 AK |
8023 | enableval=$enable_devmapper; DEVMAPPER=$enableval |
8024 | fi | |
8025 | ||
1995c9ff AK |
8026 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8027 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
ad6254c5 AK |
8028 | |
8029 | if test x$DEVMAPPER = xyes; then | |
72b2cb61 AK |
8030 | |
8031 | cat >>confdefs.h <<\_ACEOF | |
8032 | #define DEVMAPPER_SUPPORT 1 | |
8033 | _ACEOF | |
8034 | ||
ad6254c5 AK |
8035 | fi |
8036 | ||
8037 | ################################################################################ | |
1995c9ff AK |
8038 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8039 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
7a197a62 | 8040 | # Check whether --enable-o_direct was given. |
ad6254c5 | 8041 | if test "${enable_o_direct+set}" = set; then |
7a197a62 AK |
8042 | enableval=$enable_o_direct; ODIRECT=$enableval |
8043 | fi | |
8044 | ||
1995c9ff AK |
8045 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8046 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 AK |
8047 | |
8048 | if test x$ODIRECT = xyes; then | |
72b2cb61 AK |
8049 | |
8050 | cat >>confdefs.h <<\_ACEOF | |
8051 | #define O_DIRECT_SUPPORT 1 | |
8052 | _ACEOF | |
8053 | ||
ad6254c5 AK |
8054 | fi |
8055 | ||
8056 | ################################################################################ | |
1995c9ff AK |
8057 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8058 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
7a197a62 | 8059 | # Check whether --enable-cmdlib was given. |
ad6254c5 | 8060 | if test "${enable_cmdlib+set}" = set; then |
7a197a62 | 8061 | enableval=$enable_cmdlib; CMDLIB=$enableval |
ad6254c5 AK |
8062 | else |
8063 | CMDLIB=no | |
7a197a62 AK |
8064 | fi |
8065 | ||
1995c9ff AK |
8066 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8067 | echo "${ECHO_T}$CMDLIB" >&6; } | |
ad6254c5 | 8068 | |
ad6254c5 | 8069 | ################################################################################ |
1995c9ff AK |
8070 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8071 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
7a197a62 | 8072 | # Check whether --enable-fsadm was given. |
ad6254c5 | 8073 | if test "${enable_fsadm+set}" = set; then |
7a197a62 AK |
8074 | enableval=$enable_fsadm; FSADM=$enableval |
8075 | fi | |
8076 | ||
1995c9ff AK |
8077 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8078 | echo "${ECHO_T}$FSADM" >&6; } | |
ad6254c5 | 8079 | |
06f62ad1 | 8080 | ################################################################################ |
1995c9ff AK |
8081 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8082 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
7a197a62 | 8083 | # Check whether --enable-dmeventd was given. |
06f62ad1 | 8084 | if test "${enable_dmeventd+set}" = set; then |
7a197a62 AK |
8085 | enableval=$enable_dmeventd; DMEVENTD=$enableval |
8086 | fi | |
8087 | ||
1995c9ff AK |
8088 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8089 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
06f62ad1 AK |
8090 | |
8091 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
1995c9ff | 8092 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
06f62ad1 | 8093 | " >&5 |
1995c9ff | 8094 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
06f62ad1 AK |
8095 | " >&2;} |
8096 | { (exit 1); exit 1; }; } | |
8097 | fi | |
8098 | ||
15d91f5a | 8099 | if test x$DMEVENTD = xyes; then |
72b2cb61 AK |
8100 | |
8101 | cat >>confdefs.h <<\_ACEOF | |
8102 | #define DMEVENTD 1 | |
8103 | _ACEOF | |
8104 | ||
15d91f5a | 8105 | fi |
ad6254c5 AK |
8106 | ################################################################################ |
8107 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8108 | then exec_prefix=""; | |
8109 | fi; | |
8110 | ||
8111 | ################################################################################ | |
8112 | if test $ac_cv_c_compiler_gnu = yes; then | |
1995c9ff AK |
8113 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
8114 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
ad6254c5 | 8115 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
1995c9ff | 8116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8117 | else |
8118 | ac_pattern="Autoconf.*'x'" | |
8119 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8120 | /* confdefs.h. */ |
8121 | _ACEOF | |
8122 | cat confdefs.h >>conftest.$ac_ext | |
8123 | cat >>conftest.$ac_ext <<_ACEOF | |
8124 | /* end confdefs.h. */ | |
8125 | #include <sgtty.h> | |
8126 | Autoconf TIOCGETP | |
8127 | _ACEOF | |
8128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8129 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8130 | ac_cv_prog_gcc_traditional=yes | |
8131 | else | |
8132 | ac_cv_prog_gcc_traditional=no | |
8133 | fi | |
8134 | rm -f conftest* | |
8135 | ||
8136 | ||
8137 | if test $ac_cv_prog_gcc_traditional = no; then | |
8138 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8139 | /* confdefs.h. */ |
8140 | _ACEOF | |
8141 | cat confdefs.h >>conftest.$ac_ext | |
8142 | cat >>conftest.$ac_ext <<_ACEOF | |
8143 | /* end confdefs.h. */ | |
8144 | #include <termio.h> | |
8145 | Autoconf TCGETA | |
8146 | _ACEOF | |
8147 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8148 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8149 | ac_cv_prog_gcc_traditional=yes | |
8150 | fi | |
8151 | rm -f conftest* | |
8152 | ||
8153 | fi | |
8154 | fi | |
1995c9ff AK |
8155 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
8156 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
ad6254c5 AK |
8157 | if test $ac_cv_prog_gcc_traditional = yes; then |
8158 | CC="$CC -traditional" | |
8159 | fi | |
8160 | fi | |
8161 | ||
1995c9ff AK |
8162 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
8163 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
ad6254c5 | 8164 | if test "${ac_cv_type_signal+set}" = set; then |
1995c9ff | 8165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8166 | else |
8167 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8168 | /* confdefs.h. */ |
8169 | _ACEOF | |
8170 | cat confdefs.h >>conftest.$ac_ext | |
8171 | cat >>conftest.$ac_ext <<_ACEOF | |
8172 | /* end confdefs.h. */ | |
8173 | #include <sys/types.h> | |
8174 | #include <signal.h> | |
ad6254c5 AK |
8175 | |
8176 | int | |
8177 | main () | |
8178 | { | |
7a197a62 | 8179 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
8180 | ; |
8181 | return 0; | |
8182 | } | |
8183 | _ACEOF | |
8184 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8185 | if { (ac_try="$ac_compile" |
8186 | case "(($ac_try" in | |
8187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8188 | *) ac_try_echo=$ac_try;; | |
8189 | esac | |
1995c9ff | 8190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8191 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8192 | ac_status=$? |
8a2fc586 AK |
8193 | grep -v '^ *+' conftest.er1 >conftest.err |
8194 | rm -f conftest.er1 | |
8195 | cat conftest.err >&5 | |
1995c9ff | 8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8197 | (exit $ac_status); } && { |
8198 | test -z "$ac_c_werror_flag" || | |
8199 | test ! -s conftest.err | |
8200 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 8201 | ac_cv_type_signal=int |
ad6254c5 | 8202 | else |
1995c9ff | 8203 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8204 | sed 's/^/| /' conftest.$ac_ext >&5 |
8205 | ||
7a197a62 | 8206 | ac_cv_type_signal=void |
ad6254c5 | 8207 | fi |
7a197a62 AK |
8208 | |
8209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 8210 | fi |
1995c9ff AK |
8211 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
8212 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
ad6254c5 AK |
8213 | |
8214 | cat >>confdefs.h <<_ACEOF | |
8215 | #define RETSIGTYPE $ac_cv_type_signal | |
8216 | _ACEOF | |
8217 | ||
8218 | ||
8219 | ||
8220 | for ac_func in vprintf | |
8221 | do | |
1995c9ff AK |
8222 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8223 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8224 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 8225 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 8226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8227 | else |
8228 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8229 | /* confdefs.h. */ |
8230 | _ACEOF | |
8231 | cat confdefs.h >>conftest.$ac_ext | |
8232 | cat >>conftest.$ac_ext <<_ACEOF | |
8233 | /* end confdefs.h. */ | |
8a2fc586 AK |
8234 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8235 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8236 | #define $ac_func innocuous_$ac_func | |
8237 | ||
ad6254c5 AK |
8238 | /* System header to define __stub macros and hopefully few prototypes, |
8239 | which can conflict with char $ac_func (); below. | |
8240 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8241 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8242 | |
ad6254c5 AK |
8243 | #ifdef __STDC__ |
8244 | # include <limits.h> | |
8245 | #else | |
8246 | # include <assert.h> | |
8247 | #endif | |
8a2fc586 AK |
8248 | |
8249 | #undef $ac_func | |
8250 | ||
7a197a62 AK |
8251 | /* Override any GCC internal prototype to avoid an error. |
8252 | Use char because int might match the return type of a GCC | |
8253 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8254 | #ifdef __cplusplus |
8255 | extern "C" | |
ad6254c5 | 8256 | #endif |
ad6254c5 AK |
8257 | char $ac_func (); |
8258 | /* The GNU C library defines this for functions which it implements | |
8259 | to always fail with ENOSYS. Some functions are actually named | |
8260 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8261 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8262 | choke me |
ad6254c5 AK |
8263 | #endif |
8264 | ||
8265 | int | |
8266 | main () | |
8267 | { | |
7a197a62 | 8268 | return $ac_func (); |
ad6254c5 AK |
8269 | ; |
8270 | return 0; | |
8271 | } | |
8272 | _ACEOF | |
8273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8274 | if { (ac_try="$ac_link" |
8275 | case "(($ac_try" in | |
8276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8277 | *) ac_try_echo=$ac_try;; | |
8278 | esac | |
1995c9ff | 8279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8280 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8281 | ac_status=$? |
8a2fc586 AK |
8282 | grep -v '^ *+' conftest.er1 >conftest.err |
8283 | rm -f conftest.er1 | |
8284 | cat conftest.err >&5 | |
1995c9ff | 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8286 | (exit $ac_status); } && { |
8287 | test -z "$ac_c_werror_flag" || | |
8288 | test ! -s conftest.err | |
8289 | } && test -s conftest$ac_exeext && | |
8290 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8291 | eval "$as_ac_var=yes" |
8292 | else | |
1995c9ff | 8293 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8294 | sed 's/^/| /' conftest.$ac_ext >&5 |
8295 | ||
7a197a62 | 8296 | eval "$as_ac_var=no" |
ad6254c5 | 8297 | fi |
7a197a62 | 8298 | |
25fbec5b | 8299 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8300 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8301 | fi |
1995c9ff AK |
8302 | ac_res=`eval echo '${'$as_ac_var'}'` |
8303 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8304 | echo "${ECHO_T}$ac_res" >&6; } | |
8305 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 8306 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 8307 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8308 | _ACEOF |
8309 | ||
1995c9ff AK |
8310 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8311 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
ad6254c5 | 8312 | if test "${ac_cv_func__doprnt+set}" = set; then |
1995c9ff | 8313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8314 | else |
8315 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8316 | /* confdefs.h. */ |
8317 | _ACEOF | |
8318 | cat confdefs.h >>conftest.$ac_ext | |
8319 | cat >>conftest.$ac_ext <<_ACEOF | |
8320 | /* end confdefs.h. */ | |
8a2fc586 AK |
8321 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
8322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8323 | #define _doprnt innocuous__doprnt | |
8324 | ||
ad6254c5 AK |
8325 | /* System header to define __stub macros and hopefully few prototypes, |
8326 | which can conflict with char _doprnt (); below. | |
8327 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8328 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8329 | |
ad6254c5 AK |
8330 | #ifdef __STDC__ |
8331 | # include <limits.h> | |
8332 | #else | |
8333 | # include <assert.h> | |
8334 | #endif | |
8a2fc586 AK |
8335 | |
8336 | #undef _doprnt | |
8337 | ||
7a197a62 AK |
8338 | /* Override any GCC internal prototype to avoid an error. |
8339 | Use char because int might match the return type of a GCC | |
8340 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8341 | #ifdef __cplusplus |
8342 | extern "C" | |
ad6254c5 | 8343 | #endif |
ad6254c5 AK |
8344 | char _doprnt (); |
8345 | /* The GNU C library defines this for functions which it implements | |
8346 | to always fail with ENOSYS. Some functions are actually named | |
8347 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8348 | #if defined __stub__doprnt || defined __stub____doprnt |
ad6254c5 | 8349 | choke me |
ad6254c5 AK |
8350 | #endif |
8351 | ||
8352 | int | |
8353 | main () | |
8354 | { | |
7a197a62 | 8355 | return _doprnt (); |
ad6254c5 AK |
8356 | ; |
8357 | return 0; | |
8358 | } | |
8359 | _ACEOF | |
8360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8361 | if { (ac_try="$ac_link" |
8362 | case "(($ac_try" in | |
8363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8364 | *) ac_try_echo=$ac_try;; | |
8365 | esac | |
1995c9ff | 8366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8367 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8368 | ac_status=$? |
8a2fc586 AK |
8369 | grep -v '^ *+' conftest.er1 >conftest.err |
8370 | rm -f conftest.er1 | |
8371 | cat conftest.err >&5 | |
1995c9ff | 8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8373 | (exit $ac_status); } && { |
8374 | test -z "$ac_c_werror_flag" || | |
8375 | test ! -s conftest.err | |
8376 | } && test -s conftest$ac_exeext && | |
8377 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
8378 | ac_cv_func__doprnt=yes |
8379 | else | |
8380 | echo "$as_me: failed program was:" >&5 | |
8381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8382 | ||
8383 | ac_cv_func__doprnt=no | |
8384 | fi | |
8385 | ||
25fbec5b | 8386 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8387 | conftest$ac_exeext conftest.$ac_ext |
8388 | fi | |
8389 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
8390 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
8391 | if test $ac_cv_func__doprnt = yes; then | |
ad6254c5 AK |
8392 | |
8393 | cat >>confdefs.h <<\_ACEOF | |
8394 | #define HAVE_DOPRNT 1 | |
8395 | _ACEOF | |
8396 | ||
8397 | fi | |
8398 | ||
8399 | fi | |
8400 | done | |
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | ||
8406 | for ac_func in mkdir rmdir uname | |
8407 | do | |
1995c9ff AK |
8408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8409 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 8411 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 8412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8413 | else |
8414 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8415 | /* confdefs.h. */ |
8416 | _ACEOF | |
8417 | cat confdefs.h >>conftest.$ac_ext | |
8418 | cat >>conftest.$ac_ext <<_ACEOF | |
8419 | /* end confdefs.h. */ | |
8a2fc586 AK |
8420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8422 | #define $ac_func innocuous_$ac_func | |
8423 | ||
ad6254c5 AK |
8424 | /* System header to define __stub macros and hopefully few prototypes, |
8425 | which can conflict with char $ac_func (); below. | |
8426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8427 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8428 | |
ad6254c5 AK |
8429 | #ifdef __STDC__ |
8430 | # include <limits.h> | |
8431 | #else | |
8432 | # include <assert.h> | |
8433 | #endif | |
8a2fc586 AK |
8434 | |
8435 | #undef $ac_func | |
8436 | ||
7a197a62 AK |
8437 | /* Override any GCC internal prototype to avoid an error. |
8438 | Use char because int might match the return type of a GCC | |
8439 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8440 | #ifdef __cplusplus |
8441 | extern "C" | |
ad6254c5 | 8442 | #endif |
ad6254c5 AK |
8443 | char $ac_func (); |
8444 | /* The GNU C library defines this for functions which it implements | |
8445 | to always fail with ENOSYS. Some functions are actually named | |
8446 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8447 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8448 | choke me |
ad6254c5 AK |
8449 | #endif |
8450 | ||
8451 | int | |
8452 | main () | |
8453 | { | |
7a197a62 | 8454 | return $ac_func (); |
ad6254c5 AK |
8455 | ; |
8456 | return 0; | |
8457 | } | |
8458 | _ACEOF | |
8459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8460 | if { (ac_try="$ac_link" |
8461 | case "(($ac_try" in | |
8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8463 | *) ac_try_echo=$ac_try;; | |
8464 | esac | |
1995c9ff | 8465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8466 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8467 | ac_status=$? |
8a2fc586 AK |
8468 | grep -v '^ *+' conftest.er1 >conftest.err |
8469 | rm -f conftest.er1 | |
8470 | cat conftest.err >&5 | |
1995c9ff | 8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8472 | (exit $ac_status); } && { |
8473 | test -z "$ac_c_werror_flag" || | |
8474 | test ! -s conftest.err | |
8475 | } && test -s conftest$ac_exeext && | |
8476 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8477 | eval "$as_ac_var=yes" |
8478 | else | |
1995c9ff | 8479 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8480 | sed 's/^/| /' conftest.$ac_ext >&5 |
8481 | ||
7a197a62 | 8482 | eval "$as_ac_var=no" |
ad6254c5 | 8483 | fi |
7a197a62 | 8484 | |
25fbec5b | 8485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8486 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8487 | fi |
1995c9ff AK |
8488 | ac_res=`eval echo '${'$as_ac_var'}'` |
8489 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8490 | echo "${ECHO_T}$ac_res" >&6; } | |
8491 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 8492 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 8493 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8494 | _ACEOF |
8495 | ||
8496 | else | |
1995c9ff AK |
8497 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
8498 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8499 | { (exit 1); exit 1; }; } |
8500 | fi | |
8501 | done | |
8502 | ||
8503 | ||
8504 | ################################################################################ | |
8505 | if test x$READLINE = xyes; then | |
1995c9ff AK |
8506 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8507 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 8508 | if test "${ac_cv_search_tgetent+set}" = set; then |
1995c9ff | 8509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8510 | else |
8511 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8512 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8513 | /* confdefs.h. */ |
8514 | _ACEOF | |
8515 | cat confdefs.h >>conftest.$ac_ext | |
8516 | cat >>conftest.$ac_ext <<_ACEOF | |
8517 | /* end confdefs.h. */ | |
8518 | ||
7a197a62 AK |
8519 | /* Override any GCC internal prototype to avoid an error. |
8520 | Use char because int might match the return type of a GCC | |
8521 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8522 | #ifdef __cplusplus |
8523 | extern "C" | |
8524 | #endif | |
ad6254c5 AK |
8525 | char tgetent (); |
8526 | int | |
8527 | main () | |
8528 | { | |
7a197a62 | 8529 | return tgetent (); |
ad6254c5 AK |
8530 | ; |
8531 | return 0; | |
8532 | } | |
8533 | _ACEOF | |
7a197a62 AK |
8534 | for ac_lib in '' ncurses curses termcap termlib; do |
8535 | if test -z "$ac_lib"; then | |
8536 | ac_res="none required" | |
8537 | else | |
8538 | ac_res=-l$ac_lib | |
8539 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8540 | fi | |
8541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8542 | if { (ac_try="$ac_link" | |
8543 | case "(($ac_try" in | |
8544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8545 | *) ac_try_echo=$ac_try;; | |
8546 | esac | |
1995c9ff | 8547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8548 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8549 | ac_status=$? |
8a2fc586 AK |
8550 | grep -v '^ *+' conftest.er1 >conftest.err |
8551 | rm -f conftest.er1 | |
8552 | cat conftest.err >&5 | |
1995c9ff | 8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8554 | (exit $ac_status); } && { |
8555 | test -z "$ac_c_werror_flag" || | |
8556 | test ! -s conftest.err | |
8557 | } && test -s conftest$ac_exeext && | |
8558 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 8559 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 8560 | else |
1995c9ff | 8561 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8562 | sed 's/^/| /' conftest.$ac_ext >&5 |
8563 | ||
ad6254c5 | 8564 | |
7a197a62 | 8565 | fi |
ad6254c5 | 8566 | |
25fbec5b | 8567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
8568 | conftest$ac_exeext |
8569 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8570 | break | |
ad6254c5 | 8571 | fi |
7a197a62 AK |
8572 | done |
8573 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8574 | : | |
8575 | else | |
8576 | ac_cv_search_tgetent=no | |
ad6254c5 | 8577 | fi |
7a197a62 | 8578 | rm conftest.$ac_ext |
ad6254c5 AK |
8579 | LIBS=$ac_func_search_save_LIBS |
8580 | fi | |
1995c9ff AK |
8581 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8582 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
8583 | ac_res=$ac_cv_search_tgetent |
8584 | if test "$ac_res" != no; then | |
8585 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 AK |
8586 | |
8587 | else | |
1995c9ff | 8588 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
8589 | --enable-readline option (which is enabled by default). Either disable readline |
8590 | support with --disable-readline or download and install termcap from: | |
8591 | ftp.gnu.org/gnu/termcap | |
8592 | Note: if you are using precompiled packages you will also need the development | |
8593 | package as well (which may be called termcap-devel or something similar). | |
8594 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8595 | not found either - but you could try installing that as well. | |
8596 | " >&5 | |
1995c9ff | 8597 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
8598 | --enable-readline option (which is enabled by default). Either disable readline |
8599 | support with --disable-readline or download and install termcap from: | |
8600 | ftp.gnu.org/gnu/termcap | |
8601 | Note: if you are using precompiled packages you will also need the development | |
8602 | package as well (which may be called termcap-devel or something similar). | |
8603 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8604 | not found either - but you could try installing that as well. | |
8605 | " >&2;} | |
8606 | { (exit 1); exit 1; }; } | |
8607 | ||
8608 | fi | |
8609 | ||
8610 | fi | |
8611 | ||
8612 | ################################################################################ | |
1995c9ff AK |
8613 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8614 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 8615 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
1995c9ff | 8616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8617 | else |
8618 | ac_check_lib_save_LIBS=$LIBS | |
8619 | LIBS="-ldl $LIBS" | |
8620 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8621 | /* confdefs.h. */ |
8622 | _ACEOF | |
8623 | cat confdefs.h >>conftest.$ac_ext | |
8624 | cat >>conftest.$ac_ext <<_ACEOF | |
8625 | /* end confdefs.h. */ | |
8626 | ||
7a197a62 AK |
8627 | /* Override any GCC internal prototype to avoid an error. |
8628 | Use char because int might match the return type of a GCC | |
8629 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8630 | #ifdef __cplusplus |
8631 | extern "C" | |
8632 | #endif | |
ad6254c5 AK |
8633 | char dlopen (); |
8634 | int | |
8635 | main () | |
8636 | { | |
7a197a62 | 8637 | return dlopen (); |
ad6254c5 AK |
8638 | ; |
8639 | return 0; | |
8640 | } | |
8641 | _ACEOF | |
8642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8643 | if { (ac_try="$ac_link" |
8644 | case "(($ac_try" in | |
8645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8646 | *) ac_try_echo=$ac_try;; | |
8647 | esac | |
1995c9ff | 8648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8649 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8650 | ac_status=$? |
8a2fc586 AK |
8651 | grep -v '^ *+' conftest.er1 >conftest.err |
8652 | rm -f conftest.er1 | |
8653 | cat conftest.err >&5 | |
1995c9ff | 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8655 | (exit $ac_status); } && { |
8656 | test -z "$ac_c_werror_flag" || | |
8657 | test ! -s conftest.err | |
8658 | } && test -s conftest$ac_exeext && | |
8659 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8660 | ac_cv_lib_dl_dlopen=yes |
8661 | else | |
1995c9ff | 8662 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8663 | sed 's/^/| /' conftest.$ac_ext >&5 |
8664 | ||
7a197a62 | 8665 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 8666 | fi |
7a197a62 | 8667 | |
25fbec5b | 8668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8669 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8670 | LIBS=$ac_check_lib_save_LIBS |
8671 | fi | |
1995c9ff AK |
8672 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8673 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
8674 | if test $ac_cv_lib_dl_dlopen = yes; then |
8675 | HAVE_LIBDL=yes | |
8676 | else | |
8677 | HAVE_LIBDL=no | |
8678 | fi | |
8679 | ||
8680 | ||
7e9e9502 | 8681 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8682 | |
8683 | cat >>confdefs.h <<\_ACEOF | |
8684 | #define HAVE_LIBDL 1 | |
8685 | _ACEOF | |
8686 | ||
ad6254c5 AK |
8687 | LIBS="-ldl $LIBS" |
8688 | else | |
8689 | HAVE_LIBDL=no | |
8690 | fi | |
8691 | ||
8692 | ################################################################################ | |
8693 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8694 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8695 | \) -a "x$STATIC_LINK" = xyes ]; | |
1995c9ff | 8696 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 8697 | " >&5 |
1995c9ff | 8698 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
8699 | " >&2;} |
8700 | { (exit 1); exit 1; }; } | |
8701 | fi | |
8702 | ||
8703 | ################################################################################ | |
8704 | if test x$SELINUX = xyes; then | |
1995c9ff AK |
8705 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
8706 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 8707 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
1995c9ff | 8708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
8709 | else |
8710 | ac_check_lib_save_LIBS=$LIBS | |
8711 | LIBS="-lsepol $LIBS" | |
8712 | cat >conftest.$ac_ext <<_ACEOF | |
8713 | /* confdefs.h. */ | |
8714 | _ACEOF | |
8715 | cat confdefs.h >>conftest.$ac_ext | |
8716 | cat >>conftest.$ac_ext <<_ACEOF | |
8717 | /* end confdefs.h. */ | |
8718 | ||
7a197a62 AK |
8719 | /* Override any GCC internal prototype to avoid an error. |
8720 | Use char because int might match the return type of a GCC | |
8721 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
8722 | #ifdef __cplusplus |
8723 | extern "C" | |
8724 | #endif | |
8a2fc586 AK |
8725 | char sepol_check_context (); |
8726 | int | |
8727 | main () | |
8728 | { | |
7a197a62 | 8729 | return sepol_check_context (); |
8a2fc586 AK |
8730 | ; |
8731 | return 0; | |
8732 | } | |
8733 | _ACEOF | |
8734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8735 | if { (ac_try="$ac_link" |
8736 | case "(($ac_try" in | |
8737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8738 | *) ac_try_echo=$ac_try;; | |
8739 | esac | |
1995c9ff | 8740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8741 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
8742 | ac_status=$? |
8743 | grep -v '^ *+' conftest.er1 >conftest.err | |
8744 | rm -f conftest.er1 | |
8745 | cat conftest.err >&5 | |
1995c9ff | 8746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8747 | (exit $ac_status); } && { |
8748 | test -z "$ac_c_werror_flag" || | |
8749 | test ! -s conftest.err | |
8750 | } && test -s conftest$ac_exeext && | |
8751 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
8752 | ac_cv_lib_sepol_sepol_check_context=yes |
8753 | else | |
1995c9ff | 8754 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
8755 | sed 's/^/| /' conftest.$ac_ext >&5 |
8756 | ||
7a197a62 | 8757 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 8758 | fi |
7a197a62 | 8759 | |
25fbec5b | 8760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
8761 | conftest$ac_exeext conftest.$ac_ext |
8762 | LIBS=$ac_check_lib_save_LIBS | |
8763 | fi | |
1995c9ff AK |
8764 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
8765 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
8766 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
8767 | HAVE_SEPOL=yes | |
8768 | else | |
8769 | HAVE_SEPOL=no | |
8770 | fi | |
8771 | ||
8a2fc586 AK |
8772 | |
8773 | if test x$HAVE_SEPOL = xyes; then | |
8774 | LIBS="-lsepol $LIBS" | |
8775 | fi | |
8776 | ||
1995c9ff AK |
8777 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
8778 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 8779 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
1995c9ff | 8780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8781 | else |
8782 | ac_check_lib_save_LIBS=$LIBS | |
8783 | LIBS="-lselinux $LIBS" | |
8784 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8785 | /* confdefs.h. */ |
8786 | _ACEOF | |
8787 | cat confdefs.h >>conftest.$ac_ext | |
8788 | cat >>conftest.$ac_ext <<_ACEOF | |
8789 | /* end confdefs.h. */ | |
8790 | ||
7a197a62 AK |
8791 | /* Override any GCC internal prototype to avoid an error. |
8792 | Use char because int might match the return type of a GCC | |
8793 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8794 | #ifdef __cplusplus |
8795 | extern "C" | |
8796 | #endif | |
ad6254c5 AK |
8797 | char is_selinux_enabled (); |
8798 | int | |
8799 | main () | |
8800 | { | |
7a197a62 | 8801 | return is_selinux_enabled (); |
ad6254c5 AK |
8802 | ; |
8803 | return 0; | |
8804 | } | |
8805 | _ACEOF | |
8806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8807 | if { (ac_try="$ac_link" |
8808 | case "(($ac_try" in | |
8809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8810 | *) ac_try_echo=$ac_try;; | |
8811 | esac | |
1995c9ff | 8812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8813 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8814 | ac_status=$? |
8a2fc586 AK |
8815 | grep -v '^ *+' conftest.er1 >conftest.err |
8816 | rm -f conftest.er1 | |
8817 | cat conftest.err >&5 | |
1995c9ff | 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8819 | (exit $ac_status); } && { |
8820 | test -z "$ac_c_werror_flag" || | |
8821 | test ! -s conftest.err | |
8822 | } && test -s conftest$ac_exeext && | |
8823 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8824 | ac_cv_lib_selinux_is_selinux_enabled=yes |
8825 | else | |
1995c9ff | 8826 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8827 | sed 's/^/| /' conftest.$ac_ext >&5 |
8828 | ||
7a197a62 | 8829 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 8830 | fi |
7a197a62 | 8831 | |
25fbec5b | 8832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8833 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8834 | LIBS=$ac_check_lib_save_LIBS |
8835 | fi | |
1995c9ff AK |
8836 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
8837 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
8838 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
8839 | HAVE_SELINUX=yes | |
8840 | else | |
8841 | HAVE_SELINUX=no | |
8842 | fi | |
8843 | ||
ad6254c5 AK |
8844 | |
8845 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
8846 | |
8847 | cat >>confdefs.h <<\_ACEOF | |
8848 | #define HAVE_SELINUX 1 | |
8849 | _ACEOF | |
8850 | ||
ad6254c5 AK |
8851 | LIBS="-lselinux $LIBS" |
8852 | else | |
1995c9ff AK |
8853 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
8854 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
8855 | fi |
8856 | ||
8857 | # With --enable-static_link and selinux enabled, linking lvm.static | |
8858 | # fails on at least Debian unstable due to unsatisfied references | |
8859 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
8860 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
8861 | lvm_saved_libs=$LIBS | |
8862 | LIBS="$LIBS -static" | |
1995c9ff AK |
8863 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
8864 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 8865 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
1995c9ff | 8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
8867 | else |
8868 | ac_func_search_save_LIBS=$LIBS | |
8869 | cat >conftest.$ac_ext <<_ACEOF | |
8870 | /* confdefs.h. */ | |
8871 | _ACEOF | |
8872 | cat confdefs.h >>conftest.$ac_ext | |
8873 | cat >>conftest.$ac_ext <<_ACEOF | |
8874 | /* end confdefs.h. */ | |
8875 | ||
8876 | /* Override any GCC internal prototype to avoid an error. | |
8877 | Use char because int might match the return type of a GCC | |
8878 | builtin and then its argument prototype would still apply. */ | |
8879 | #ifdef __cplusplus | |
8880 | extern "C" | |
8881 | #endif | |
8882 | char pthread_mutex_lock (); | |
8883 | int | |
8884 | main () | |
8885 | { | |
8886 | return pthread_mutex_lock (); | |
8887 | ; | |
8888 | return 0; | |
8889 | } | |
8890 | _ACEOF | |
8891 | for ac_lib in '' pthread; do | |
8892 | if test -z "$ac_lib"; then | |
8893 | ac_res="none required" | |
8894 | else | |
8895 | ac_res=-l$ac_lib | |
8896 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8897 | fi | |
8898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8899 | if { (ac_try="$ac_link" | |
8900 | case "(($ac_try" in | |
8901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8902 | *) ac_try_echo=$ac_try;; | |
8903 | esac | |
1995c9ff | 8904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
8905 | (eval "$ac_link") 2>conftest.er1 |
8906 | ac_status=$? | |
8907 | grep -v '^ *+' conftest.er1 >conftest.err | |
8908 | rm -f conftest.er1 | |
8909 | cat conftest.err >&5 | |
1995c9ff | 8910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8911 | (exit $ac_status); } && { |
8912 | test -z "$ac_c_werror_flag" || | |
8913 | test ! -s conftest.err | |
8914 | } && test -s conftest$ac_exeext && | |
8915 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
8916 | ac_cv_search_pthread_mutex_lock=$ac_res |
8917 | else | |
1995c9ff | 8918 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
8919 | sed 's/^/| /' conftest.$ac_ext >&5 |
8920 | ||
8921 | ||
8922 | fi | |
8923 | ||
25fbec5b | 8924 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
8925 | conftest$ac_exeext |
8926 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
8927 | break | |
8928 | fi | |
8929 | done | |
8930 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
8931 | : | |
8932 | else | |
8933 | ac_cv_search_pthread_mutex_lock=no | |
8934 | fi | |
8935 | rm conftest.$ac_ext | |
8936 | LIBS=$ac_func_search_save_LIBS | |
8937 | fi | |
1995c9ff AK |
8938 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
8939 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
8940 | ac_res=$ac_cv_search_pthread_mutex_lock |
8941 | if test "$ac_res" != no; then | |
8942 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8943 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
8944 | LIB_PTHREAD=-lpthread | |
8945 | fi | |
8946 | ||
8947 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
8948 | fi |
8949 | fi | |
8950 | ||
8b1a3214 AK |
8951 | ################################################################################ |
8952 | if test x$REALTIME = xyes; then | |
1995c9ff AK |
8953 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
8954 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 8955 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
1995c9ff | 8956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
8957 | else |
8958 | ac_check_lib_save_LIBS=$LIBS | |
8959 | LIBS="-lrt $LIBS" | |
8960 | cat >conftest.$ac_ext <<_ACEOF | |
8961 | /* confdefs.h. */ | |
8962 | _ACEOF | |
8963 | cat confdefs.h >>conftest.$ac_ext | |
8964 | cat >>conftest.$ac_ext <<_ACEOF | |
8965 | /* end confdefs.h. */ | |
8966 | ||
7a197a62 AK |
8967 | /* Override any GCC internal prototype to avoid an error. |
8968 | Use char because int might match the return type of a GCC | |
8969 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
8970 | #ifdef __cplusplus |
8971 | extern "C" | |
8972 | #endif | |
8b1a3214 AK |
8973 | char clock_gettime (); |
8974 | int | |
8975 | main () | |
8976 | { | |
7a197a62 | 8977 | return clock_gettime (); |
8b1a3214 AK |
8978 | ; |
8979 | return 0; | |
8980 | } | |
8981 | _ACEOF | |
8982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8983 | if { (ac_try="$ac_link" |
8984 | case "(($ac_try" in | |
8985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8986 | *) ac_try_echo=$ac_try;; | |
8987 | esac | |
1995c9ff | 8988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8989 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
8990 | ac_status=$? |
8991 | grep -v '^ *+' conftest.er1 >conftest.err | |
8992 | rm -f conftest.er1 | |
8993 | cat conftest.err >&5 | |
1995c9ff | 8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8995 | (exit $ac_status); } && { |
8996 | test -z "$ac_c_werror_flag" || | |
8997 | test ! -s conftest.err | |
8998 | } && test -s conftest$ac_exeext && | |
8999 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9000 | ac_cv_lib_rt_clock_gettime=yes |
9001 | else | |
1995c9ff | 9002 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9003 | sed 's/^/| /' conftest.$ac_ext >&5 |
9004 | ||
7a197a62 | 9005 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9006 | fi |
7a197a62 | 9007 | |
25fbec5b | 9008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9009 | conftest$ac_exeext conftest.$ac_ext |
9010 | LIBS=$ac_check_lib_save_LIBS | |
9011 | fi | |
1995c9ff AK |
9012 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9013 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9014 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9015 | HAVE_REALTIME=yes | |
9016 | else | |
9017 | HAVE_REALTIME=no | |
9018 | fi | |
9019 | ||
8b1a3214 AK |
9020 | |
9021 | if test x$HAVE_REALTIME = xyes; then | |
9022 | ||
9023 | cat >>confdefs.h <<\_ACEOF | |
9024 | #define HAVE_REALTIME 1 | |
9025 | _ACEOF | |
9026 | ||
9027 | LIBS="-lrt $LIBS" | |
9028 | else | |
1995c9ff AK |
9029 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9030 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9031 | fi |
9032 | fi | |
9033 | ||
ad6254c5 AK |
9034 | ################################################################################ |
9035 | ||
9036 | for ac_header in getopt.h | |
9037 | do | |
1995c9ff | 9038 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9040 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9044 | fi |
1995c9ff AK |
9045 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9046 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9047 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9048 | else |
9049 | # Is the header compilable? | |
1995c9ff AK |
9050 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9051 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9052 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9053 | /* confdefs.h. */ |
9054 | _ACEOF | |
9055 | cat confdefs.h >>conftest.$ac_ext | |
9056 | cat >>conftest.$ac_ext <<_ACEOF | |
9057 | /* end confdefs.h. */ | |
9058 | $ac_includes_default | |
9059 | #include <$ac_header> | |
9060 | _ACEOF | |
9061 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9062 | if { (ac_try="$ac_compile" |
9063 | case "(($ac_try" in | |
9064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9065 | *) ac_try_echo=$ac_try;; | |
9066 | esac | |
1995c9ff | 9067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9068 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9069 | ac_status=$? |
8a2fc586 AK |
9070 | grep -v '^ *+' conftest.er1 >conftest.err |
9071 | rm -f conftest.er1 | |
9072 | cat conftest.err >&5 | |
1995c9ff | 9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9074 | (exit $ac_status); } && { |
9075 | test -z "$ac_c_werror_flag" || | |
9076 | test ! -s conftest.err | |
9077 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9078 | ac_header_compiler=yes |
9079 | else | |
1995c9ff | 9080 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
9082 | ||
7a197a62 | 9083 | ac_header_compiler=no |
ad6254c5 | 9084 | fi |
7a197a62 AK |
9085 | |
9086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9087 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9088 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9089 | |
9090 | # Is the header present? | |
1995c9ff AK |
9091 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9092 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9093 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9094 | /* confdefs.h. */ |
9095 | _ACEOF | |
9096 | cat confdefs.h >>conftest.$ac_ext | |
9097 | cat >>conftest.$ac_ext <<_ACEOF | |
9098 | /* end confdefs.h. */ | |
9099 | #include <$ac_header> | |
9100 | _ACEOF | |
7a197a62 AK |
9101 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9102 | case "(($ac_try" in | |
9103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9104 | *) ac_try_echo=$ac_try;; | |
9105 | esac | |
1995c9ff | 9106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9107 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9108 | ac_status=$? |
9109 | grep -v '^ *+' conftest.er1 >conftest.err | |
9110 | rm -f conftest.er1 | |
9111 | cat conftest.err >&5 | |
1995c9ff | 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9113 | (exit $ac_status); } >/dev/null && { |
9114 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9115 | test ! -s conftest.err | |
9116 | }; then | |
ad6254c5 AK |
9117 | ac_header_preproc=yes |
9118 | else | |
1995c9ff | 9119 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9120 | sed 's/^/| /' conftest.$ac_ext >&5 |
9121 | ||
9122 | ac_header_preproc=no | |
9123 | fi | |
7a197a62 | 9124 | |
ad6254c5 | 9125 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9126 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9127 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9128 | |
9129 | # So? What about this header? | |
8a2fc586 AK |
9130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9131 | yes:no: ) | |
1995c9ff AK |
9132 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9133 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9135 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9136 | ac_header_preproc=yes |
ad6254c5 | 9137 | ;; |
8a2fc586 | 9138 | no:yes:* ) |
1995c9ff AK |
9139 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9140 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9141 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9142 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9143 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9144 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9145 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9146 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9149 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9150 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9151 | |
ad6254c5 AK |
9152 | ;; |
9153 | esac | |
1995c9ff AK |
9154 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9158 | else |
8a2fc586 | 9159 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9160 | fi |
1995c9ff AK |
9161 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9162 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9163 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9164 | |
9165 | fi | |
1995c9ff | 9166 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9167 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9168 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9169 | _ACEOF |
72b2cb61 AK |
9170 | |
9171 | cat >>confdefs.h <<\_ACEOF | |
9172 | #define HAVE_GETOPTLONG 1 | |
9173 | _ACEOF | |
9174 | ||
ad6254c5 AK |
9175 | fi |
9176 | ||
9177 | done | |
9178 | ||
9179 | ||
9180 | ################################################################################ | |
9181 | if test x$READLINE = xyes; then | |
9182 | ||
1995c9ff AK |
9183 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9184 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9185 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
1995c9ff | 9186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9187 | else |
9188 | ac_check_lib_save_LIBS=$LIBS | |
9189 | LIBS="-lreadline $LIBS" | |
9190 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9191 | /* confdefs.h. */ |
9192 | _ACEOF | |
9193 | cat confdefs.h >>conftest.$ac_ext | |
9194 | cat >>conftest.$ac_ext <<_ACEOF | |
9195 | /* end confdefs.h. */ | |
9196 | ||
7a197a62 AK |
9197 | /* Override any GCC internal prototype to avoid an error. |
9198 | Use char because int might match the return type of a GCC | |
9199 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9200 | #ifdef __cplusplus |
9201 | extern "C" | |
9202 | #endif | |
ad6254c5 AK |
9203 | char readline (); |
9204 | int | |
9205 | main () | |
9206 | { | |
7a197a62 | 9207 | return readline (); |
ad6254c5 AK |
9208 | ; |
9209 | return 0; | |
9210 | } | |
9211 | _ACEOF | |
9212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9213 | if { (ac_try="$ac_link" |
9214 | case "(($ac_try" in | |
9215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9216 | *) ac_try_echo=$ac_try;; | |
9217 | esac | |
1995c9ff | 9218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9219 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9220 | ac_status=$? |
8a2fc586 AK |
9221 | grep -v '^ *+' conftest.er1 >conftest.err |
9222 | rm -f conftest.er1 | |
9223 | cat conftest.err >&5 | |
1995c9ff | 9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9225 | (exit $ac_status); } && { |
9226 | test -z "$ac_c_werror_flag" || | |
9227 | test ! -s conftest.err | |
9228 | } && test -s conftest$ac_exeext && | |
9229 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9230 | ac_cv_lib_readline_readline=yes |
9231 | else | |
1995c9ff | 9232 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9233 | sed 's/^/| /' conftest.$ac_ext >&5 |
9234 | ||
7a197a62 | 9235 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9236 | fi |
7a197a62 | 9237 | |
25fbec5b | 9238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9239 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9240 | LIBS=$ac_check_lib_save_LIBS |
9241 | fi | |
1995c9ff AK |
9242 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9243 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 AK |
9244 | if test $ac_cv_lib_readline_readline = yes; then |
9245 | cat >>confdefs.h <<_ACEOF | |
9246 | #define HAVE_LIBREADLINE 1 | |
9247 | _ACEOF | |
9248 | ||
9249 | LIBS="-lreadline $LIBS" | |
9250 | ||
9251 | else | |
1995c9ff | 9252 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9253 | --enable-readline option (which is enabled by default). Either disable readline |
9254 | support with --disable-readline or download and install readline from: | |
9255 | ftp.gnu.org/gnu/readline | |
9256 | Note: if you are using precompiled packages you will also need the development | |
9257 | package as well (which may be called readline-devel or something similar). | |
9258 | " >&5 | |
1995c9ff | 9259 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9260 | --enable-readline option (which is enabled by default). Either disable readline |
9261 | support with --disable-readline or download and install readline from: | |
9262 | ftp.gnu.org/gnu/readline | |
9263 | Note: if you are using precompiled packages you will also need the development | |
9264 | package as well (which may be called readline-devel or something similar). | |
9265 | " >&2;} | |
9266 | { (exit 1); exit 1; }; } | |
9267 | ||
9268 | fi | |
9269 | ||
1995c9ff AK |
9270 | { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
9271 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; } | |
ad6254c5 | 9272 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
1995c9ff | 9273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9274 | else |
9275 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9276 | /* confdefs.h. */ |
9277 | _ACEOF | |
9278 | cat confdefs.h >>conftest.$ac_ext | |
9279 | cat >>conftest.$ac_ext <<_ACEOF | |
9280 | /* end confdefs.h. */ | |
8a2fc586 AK |
9281 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
9282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9283 | #define rl_completion_matches innocuous_rl_completion_matches | |
9284 | ||
ad6254c5 AK |
9285 | /* System header to define __stub macros and hopefully few prototypes, |
9286 | which can conflict with char rl_completion_matches (); below. | |
9287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9288 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9289 | |
ad6254c5 AK |
9290 | #ifdef __STDC__ |
9291 | # include <limits.h> | |
9292 | #else | |
9293 | # include <assert.h> | |
9294 | #endif | |
8a2fc586 AK |
9295 | |
9296 | #undef rl_completion_matches | |
9297 | ||
7a197a62 AK |
9298 | /* Override any GCC internal prototype to avoid an error. |
9299 | Use char because int might match the return type of a GCC | |
9300 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9301 | #ifdef __cplusplus |
9302 | extern "C" | |
ad6254c5 | 9303 | #endif |
ad6254c5 AK |
9304 | char rl_completion_matches (); |
9305 | /* The GNU C library defines this for functions which it implements | |
9306 | to always fail with ENOSYS. Some functions are actually named | |
9307 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9308 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 9309 | choke me |
ad6254c5 AK |
9310 | #endif |
9311 | ||
9312 | int | |
9313 | main () | |
9314 | { | |
7a197a62 | 9315 | return rl_completion_matches (); |
ad6254c5 AK |
9316 | ; |
9317 | return 0; | |
9318 | } | |
9319 | _ACEOF | |
9320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9321 | if { (ac_try="$ac_link" |
9322 | case "(($ac_try" in | |
9323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9324 | *) ac_try_echo=$ac_try;; | |
9325 | esac | |
1995c9ff | 9326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9327 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9328 | ac_status=$? |
8a2fc586 AK |
9329 | grep -v '^ *+' conftest.er1 >conftest.err |
9330 | rm -f conftest.er1 | |
9331 | cat conftest.err >&5 | |
1995c9ff | 9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9333 | (exit $ac_status); } && { |
9334 | test -z "$ac_c_werror_flag" || | |
9335 | test ! -s conftest.err | |
9336 | } && test -s conftest$ac_exeext && | |
9337 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9338 | ac_cv_func_rl_completion_matches=yes |
9339 | else | |
1995c9ff | 9340 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9341 | sed 's/^/| /' conftest.$ac_ext >&5 |
9342 | ||
7a197a62 | 9343 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 9344 | fi |
7a197a62 | 9345 | |
25fbec5b | 9346 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9347 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9348 | fi |
1995c9ff AK |
9349 | { echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
9350 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 9351 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 9352 | |
72b2cb61 AK |
9353 | cat >>confdefs.h <<\_ACEOF |
9354 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
9355 | _ACEOF | |
9356 | ||
9357 | fi | |
ad6254c5 AK |
9358 | |
9359 | fi | |
9360 | ||
9361 | ################################################################################ | |
1995c9ff AK |
9362 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9363 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 9364 | # Check whether --enable-nls was given. |
ad6254c5 | 9365 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9366 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9367 | else |
9368 | INTL=no | |
7a197a62 AK |
9369 | fi |
9370 | ||
1995c9ff AK |
9371 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
9372 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9373 | |
9374 | if test x$INTL = xyes; then | |
9375 | INTL_PACKAGE="lvm2" | |
9376 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9377 | set dummy msgfmt; ac_word=$2 | |
1995c9ff AK |
9378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 9380 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
1995c9ff | 9381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9382 | else |
9383 | case $MSGFMT in | |
9384 | [\\/]* | ?:[\\/]*) | |
9385 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9386 | ;; | |
9387 | *) | |
9388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9389 | for as_dir in $PATH | |
9390 | do | |
9391 | IFS=$as_save_IFS | |
9392 | test -z "$as_dir" && as_dir=. | |
9393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 9394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 9395 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 9396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
9397 | break 2 |
9398 | fi | |
9399 | done | |
9400 | done | |
7a197a62 | 9401 | IFS=$as_save_IFS |
ad6254c5 AK |
9402 | |
9403 | ;; | |
9404 | esac | |
9405 | fi | |
9406 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9407 | if test -n "$MSGFMT"; then |
1995c9ff AK |
9408 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9409 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 9410 | else |
1995c9ff AK |
9411 | { echo "$as_me:$LINENO: result: no" >&5 |
9412 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
9413 | fi |
9414 | ||
7a197a62 | 9415 | |
ad6254c5 | 9416 | if [ "x$MSGFMT" == x ]; |
1995c9ff | 9417 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 9418 | " >&5 |
1995c9ff | 9419 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
9420 | " >&2;} |
9421 | { (exit 1); exit 1; }; } | |
9422 | fi; | |
9423 | ||
9424 | ||
7a197a62 | 9425 | # Check whether --with-localedir was given. |
ad6254c5 | 9426 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9427 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9428 | else |
9429 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9430 | fi |
9431 | ||
ad6254c5 AK |
9432 | fi |
9433 | ||
9434 | ################################################################################ | |
9435 | ||
7a197a62 | 9436 | # Check whether --with-confdir was given. |
ad6254c5 | 9437 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9438 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9439 | else |
9440 | CONFDIR='/etc' | |
7a197a62 AK |
9441 | fi |
9442 | ||
ad6254c5 AK |
9443 | |
9444 | ||
7a197a62 | 9445 | # Check whether --with-staticdir was given. |
ad6254c5 | 9446 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9447 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9448 | else |
9449 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9450 | fi |
ad6254c5 | 9451 | |
33f732c5 | 9452 | |
7a197a62 AK |
9453 | |
9454 | # Check whether --with-dmdir was given. | |
33f732c5 | 9455 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9456 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9457 | else |
9458 | DMDIR= | |
7a197a62 AK |
9459 | fi |
9460 | ||
33f732c5 | 9461 | |
09339e2b | 9462 | # Convert a relative dir name to absolute. |
25fbec5b AK |
9463 | case $DMDIR in |
9464 | /*) ;; | |
9465 | *) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
9466 | esac |
9467 | ||
ad6254c5 AK |
9468 | ################################################################################ |
9469 | if test x$READLINE = xyes; then | |
9470 | ||
9471 | ||
9472 | for ac_header in readline/readline.h readline/history.h | |
9473 | do | |
1995c9ff | 9474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9476 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9480 | fi |
1995c9ff AK |
9481 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9482 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9483 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9484 | else |
9485 | # Is the header compilable? | |
1995c9ff AK |
9486 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9488 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9489 | /* confdefs.h. */ |
9490 | _ACEOF | |
9491 | cat confdefs.h >>conftest.$ac_ext | |
9492 | cat >>conftest.$ac_ext <<_ACEOF | |
9493 | /* end confdefs.h. */ | |
9494 | $ac_includes_default | |
9495 | #include <$ac_header> | |
9496 | _ACEOF | |
9497 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9498 | if { (ac_try="$ac_compile" |
9499 | case "(($ac_try" in | |
9500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9501 | *) ac_try_echo=$ac_try;; | |
9502 | esac | |
1995c9ff | 9503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9504 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9505 | ac_status=$? |
8a2fc586 AK |
9506 | grep -v '^ *+' conftest.er1 >conftest.err |
9507 | rm -f conftest.er1 | |
9508 | cat conftest.err >&5 | |
1995c9ff | 9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9510 | (exit $ac_status); } && { |
9511 | test -z "$ac_c_werror_flag" || | |
9512 | test ! -s conftest.err | |
9513 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9514 | ac_header_compiler=yes |
9515 | else | |
1995c9ff | 9516 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9517 | sed 's/^/| /' conftest.$ac_ext >&5 |
9518 | ||
7a197a62 | 9519 | ac_header_compiler=no |
ad6254c5 | 9520 | fi |
7a197a62 AK |
9521 | |
9522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9523 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9524 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9525 | |
9526 | # Is the header present? | |
1995c9ff AK |
9527 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9528 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9529 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9530 | /* confdefs.h. */ |
9531 | _ACEOF | |
9532 | cat confdefs.h >>conftest.$ac_ext | |
9533 | cat >>conftest.$ac_ext <<_ACEOF | |
9534 | /* end confdefs.h. */ | |
9535 | #include <$ac_header> | |
9536 | _ACEOF | |
7a197a62 AK |
9537 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9538 | case "(($ac_try" in | |
9539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9540 | *) ac_try_echo=$ac_try;; | |
9541 | esac | |
1995c9ff | 9542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9543 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9544 | ac_status=$? |
9545 | grep -v '^ *+' conftest.er1 >conftest.err | |
9546 | rm -f conftest.er1 | |
9547 | cat conftest.err >&5 | |
1995c9ff | 9548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9549 | (exit $ac_status); } >/dev/null && { |
9550 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9551 | test ! -s conftest.err | |
9552 | }; then | |
ad6254c5 AK |
9553 | ac_header_preproc=yes |
9554 | else | |
1995c9ff | 9555 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9556 | sed 's/^/| /' conftest.$ac_ext >&5 |
9557 | ||
9558 | ac_header_preproc=no | |
9559 | fi | |
7a197a62 | 9560 | |
ad6254c5 | 9561 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9562 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9563 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9564 | |
9565 | # So? What about this header? | |
8a2fc586 AK |
9566 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9567 | yes:no: ) | |
1995c9ff AK |
9568 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9569 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9570 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9571 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9572 | ac_header_preproc=yes |
ad6254c5 | 9573 | ;; |
8a2fc586 | 9574 | no:yes:* ) |
1995c9ff AK |
9575 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9576 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9577 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9578 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9579 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9580 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9581 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9582 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9583 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9584 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9585 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9586 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9587 | |
ad6254c5 AK |
9588 | ;; |
9589 | esac | |
1995c9ff AK |
9590 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9594 | else |
8a2fc586 | 9595 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9596 | fi |
1995c9ff AK |
9597 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9599 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9600 | |
9601 | fi | |
1995c9ff | 9602 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9603 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9604 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9605 | _ACEOF |
9606 | ||
9607 | else | |
1995c9ff AK |
9608 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9609 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
9610 | { (exit 1); exit 1; }; } |
9611 | fi | |
9612 | ||
9613 | done | |
9614 | ||
9615 | fi | |
9616 | ||
5c7fc7c4 | 9617 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9618 | |
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h | |
9629 | do | |
1995c9ff | 9630 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9631 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9632 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9636 | fi |
1995c9ff AK |
9637 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9639 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9640 | else |
9641 | # Is the header compilable? | |
1995c9ff AK |
9642 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9644 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9645 | /* confdefs.h. */ |
9646 | _ACEOF | |
9647 | cat confdefs.h >>conftest.$ac_ext | |
9648 | cat >>conftest.$ac_ext <<_ACEOF | |
9649 | /* end confdefs.h. */ | |
9650 | $ac_includes_default | |
9651 | #include <$ac_header> | |
9652 | _ACEOF | |
9653 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9654 | if { (ac_try="$ac_compile" |
9655 | case "(($ac_try" in | |
9656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9657 | *) ac_try_echo=$ac_try;; | |
9658 | esac | |
1995c9ff | 9659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9660 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9661 | ac_status=$? |
8a2fc586 AK |
9662 | grep -v '^ *+' conftest.er1 >conftest.err |
9663 | rm -f conftest.er1 | |
9664 | cat conftest.err >&5 | |
1995c9ff | 9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9666 | (exit $ac_status); } && { |
9667 | test -z "$ac_c_werror_flag" || | |
9668 | test ! -s conftest.err | |
9669 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9670 | ac_header_compiler=yes |
9671 | else | |
1995c9ff | 9672 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9673 | sed 's/^/| /' conftest.$ac_ext >&5 |
9674 | ||
7a197a62 | 9675 | ac_header_compiler=no |
ad6254c5 | 9676 | fi |
7a197a62 AK |
9677 | |
9678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9679 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9680 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9681 | |
9682 | # Is the header present? | |
1995c9ff AK |
9683 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9685 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9686 | /* confdefs.h. */ |
9687 | _ACEOF | |
9688 | cat confdefs.h >>conftest.$ac_ext | |
9689 | cat >>conftest.$ac_ext <<_ACEOF | |
9690 | /* end confdefs.h. */ | |
9691 | #include <$ac_header> | |
9692 | _ACEOF | |
7a197a62 AK |
9693 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9694 | case "(($ac_try" in | |
9695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9696 | *) ac_try_echo=$ac_try;; | |
9697 | esac | |
1995c9ff | 9698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9700 | ac_status=$? |
9701 | grep -v '^ *+' conftest.er1 >conftest.err | |
9702 | rm -f conftest.er1 | |
9703 | cat conftest.err >&5 | |
1995c9ff | 9704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9705 | (exit $ac_status); } >/dev/null && { |
9706 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9707 | test ! -s conftest.err | |
9708 | }; then | |
ad6254c5 AK |
9709 | ac_header_preproc=yes |
9710 | else | |
1995c9ff | 9711 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9712 | sed 's/^/| /' conftest.$ac_ext >&5 |
9713 | ||
9714 | ac_header_preproc=no | |
9715 | fi | |
7a197a62 | 9716 | |
ad6254c5 | 9717 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9718 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9719 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9720 | |
9721 | # So? What about this header? | |
8a2fc586 AK |
9722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9723 | yes:no: ) | |
1995c9ff AK |
9724 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9725 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9727 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9728 | ac_header_preproc=yes |
ad6254c5 | 9729 | ;; |
8a2fc586 | 9730 | no:yes:* ) |
1995c9ff AK |
9731 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9732 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9733 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9734 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9735 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9736 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9737 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9738 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9740 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9741 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9742 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9743 | |
ad6254c5 AK |
9744 | ;; |
9745 | esac | |
1995c9ff AK |
9746 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9748 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9750 | else |
8a2fc586 | 9751 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9752 | fi |
1995c9ff AK |
9753 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9754 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9755 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9756 | |
9757 | fi | |
1995c9ff | 9758 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9759 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9760 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9761 | _ACEOF |
9762 | ||
9763 | else | |
1995c9ff AK |
9764 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9765 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 9766 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
9767 | fi |
9768 | ||
ad6254c5 AK |
9769 | done |
9770 | ||
9771 | ||
795ca3e5 | 9772 | |
8106cdd5 | 9773 | |
ad6254c5 AK |
9774 | |
9775 | ||
9776 | for ac_func in dup2 getmntent memmove select socket | |
9777 | do | |
1995c9ff AK |
9778 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9779 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9780 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 9781 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 9783 | else |
ad6254c5 | 9784 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9785 | /* confdefs.h. */ |
9786 | _ACEOF | |
9787 | cat confdefs.h >>conftest.$ac_ext | |
9788 | cat >>conftest.$ac_ext <<_ACEOF | |
9789 | /* end confdefs.h. */ | |
8a2fc586 AK |
9790 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9792 | #define $ac_func innocuous_$ac_func | |
9793 | ||
795ca3e5 | 9794 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9795 | which can conflict with char $ac_func (); below. |
9796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9797 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9798 | |
ad6254c5 AK |
9799 | #ifdef __STDC__ |
9800 | # include <limits.h> | |
9801 | #else | |
9802 | # include <assert.h> | |
9803 | #endif | |
8a2fc586 AK |
9804 | |
9805 | #undef $ac_func | |
9806 | ||
7a197a62 AK |
9807 | /* Override any GCC internal prototype to avoid an error. |
9808 | Use char because int might match the return type of a GCC | |
9809 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9810 | #ifdef __cplusplus |
9811 | extern "C" | |
ad6254c5 | 9812 | #endif |
ad6254c5 | 9813 | char $ac_func (); |
795ca3e5 AK |
9814 | /* The GNU C library defines this for functions which it implements |
9815 | to always fail with ENOSYS. Some functions are actually named | |
9816 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9817 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 9818 | choke me |
795ca3e5 AK |
9819 | #endif |
9820 | ||
ad6254c5 AK |
9821 | int |
9822 | main () | |
9823 | { | |
7a197a62 | 9824 | return $ac_func (); |
ad6254c5 AK |
9825 | ; |
9826 | return 0; | |
9827 | } | |
9828 | _ACEOF | |
9829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9830 | if { (ac_try="$ac_link" |
9831 | case "(($ac_try" in | |
9832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9833 | *) ac_try_echo=$ac_try;; | |
9834 | esac | |
1995c9ff | 9835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9836 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9837 | ac_status=$? |
8a2fc586 AK |
9838 | grep -v '^ *+' conftest.er1 >conftest.err |
9839 | rm -f conftest.er1 | |
9840 | cat conftest.err >&5 | |
1995c9ff | 9841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9842 | (exit $ac_status); } && { |
9843 | test -z "$ac_c_werror_flag" || | |
9844 | test ! -s conftest.err | |
9845 | } && test -s conftest$ac_exeext && | |
9846 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 9847 | eval "$as_ac_var=yes" |
795ca3e5 | 9848 | else |
1995c9ff | 9849 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9850 | sed 's/^/| /' conftest.$ac_ext >&5 |
9851 | ||
7a197a62 | 9852 | eval "$as_ac_var=no" |
80992638 | 9853 | fi |
7a197a62 | 9854 | |
25fbec5b | 9855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9856 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 9857 | fi |
1995c9ff AK |
9858 | ac_res=`eval echo '${'$as_ac_var'}'` |
9859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9860 | echo "${ECHO_T}$ac_res" >&6; } | |
9861 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 9862 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9863 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 9864 | _ACEOF |
80992638 AK |
9865 | |
9866 | else | |
1995c9ff AK |
9867 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9868 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 9869 | { (exit 1); exit 1; }; } |
8106cdd5 | 9870 | fi |
ad6254c5 | 9871 | done |
795ca3e5 | 9872 | |
25fbec5b AK |
9873 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9874 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9875 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 | |
9876 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
9877 | if test "${ac_cv_search_getmntent+set}" = set; then | |
9878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9879 | else | |
9880 | ac_func_search_save_LIBS=$LIBS | |
9881 | cat >conftest.$ac_ext <<_ACEOF | |
9882 | /* confdefs.h. */ | |
9883 | _ACEOF | |
9884 | cat confdefs.h >>conftest.$ac_ext | |
9885 | cat >>conftest.$ac_ext <<_ACEOF | |
9886 | /* end confdefs.h. */ | |
80992638 | 9887 | |
7a197a62 AK |
9888 | /* Override any GCC internal prototype to avoid an error. |
9889 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9890 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9891 | #ifdef __cplusplus |
9892 | extern "C" | |
9893 | #endif | |
25fbec5b | 9894 | char getmntent (); |
ad6254c5 AK |
9895 | int |
9896 | main () | |
9897 | { | |
25fbec5b | 9898 | return getmntent (); |
ad6254c5 AK |
9899 | ; |
9900 | return 0; | |
9901 | } | |
9902 | _ACEOF | |
25fbec5b AK |
9903 | for ac_lib in '' sun seq gen; do |
9904 | if test -z "$ac_lib"; then | |
9905 | ac_res="none required" | |
9906 | else | |
9907 | ac_res=-l$ac_lib | |
9908 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9909 | fi | |
9910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9911 | if { (ac_try="$ac_link" |
9912 | case "(($ac_try" in | |
9913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9914 | *) ac_try_echo=$ac_try;; | |
9915 | esac | |
1995c9ff | 9916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9917 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9918 | ac_status=$? |
8a2fc586 AK |
9919 | grep -v '^ *+' conftest.er1 >conftest.err |
9920 | rm -f conftest.er1 | |
9921 | cat conftest.err >&5 | |
1995c9ff | 9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9923 | (exit $ac_status); } && { |
9924 | test -z "$ac_c_werror_flag" || | |
9925 | test ! -s conftest.err | |
9926 | } && test -s conftest$ac_exeext && | |
9927 | $as_test_x conftest$ac_exeext; then | |
9928 | ac_cv_search_getmntent=$ac_res | |
80992638 | 9929 | else |
1995c9ff | 9930 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9931 | sed 's/^/| /' conftest.$ac_ext >&5 |
9932 | ||
25fbec5b | 9933 | |
795ca3e5 AK |
9934 | fi |
9935 | ||
25fbec5b AK |
9936 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9937 | conftest$ac_exeext | |
9938 | if test "${ac_cv_search_getmntent+set}" = set; then | |
9939 | break | |
795ca3e5 | 9940 | fi |
25fbec5b AK |
9941 | done |
9942 | if test "${ac_cv_search_getmntent+set}" = set; then | |
9943 | : | |
9944 | else | |
9945 | ac_cv_search_getmntent=no | |
9946 | fi | |
9947 | rm conftest.$ac_ext | |
9948 | LIBS=$ac_func_search_save_LIBS | |
9949 | fi | |
9950 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 | |
9951 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
9952 | ac_res=$ac_cv_search_getmntent | |
9953 | if test "$ac_res" != no; then | |
9954 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9955 | ac_cv_func_getmntent=yes | |
9956 | ||
9957 | cat >>confdefs.h <<\_ACEOF | |
9958 | #define HAVE_GETMNTENT | |
ad6254c5 | 9959 | _ACEOF |
795ca3e5 | 9960 | |
25fbec5b AK |
9961 | else |
9962 | ac_cv_func_getmntent=no | |
795ca3e5 | 9963 | fi |
795ca3e5 AK |
9964 | |
9965 | ||
ad6254c5 AK |
9966 | # AC_FUNC_REALLOC |
9967 | ||
9968 | ||
9969 | for ac_header in sys/select.h sys/socket.h | |
9970 | do | |
1995c9ff | 9971 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9973 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9975 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9977 | fi |
1995c9ff AK |
9978 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9979 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9980 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 9981 | else |
ad6254c5 | 9982 | # Is the header compilable? |
1995c9ff AK |
9983 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9984 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9985 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9986 | /* confdefs.h. */ |
9987 | _ACEOF | |
9988 | cat confdefs.h >>conftest.$ac_ext | |
9989 | cat >>conftest.$ac_ext <<_ACEOF | |
9990 | /* end confdefs.h. */ | |
9991 | $ac_includes_default | |
9992 | #include <$ac_header> | |
9993 | _ACEOF | |
9994 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9995 | if { (ac_try="$ac_compile" |
9996 | case "(($ac_try" in | |
9997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9998 | *) ac_try_echo=$ac_try;; | |
9999 | esac | |
1995c9ff | 10000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10001 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10002 | ac_status=$? |
8a2fc586 AK |
10003 | grep -v '^ *+' conftest.er1 >conftest.err |
10004 | rm -f conftest.er1 | |
10005 | cat conftest.err >&5 | |
1995c9ff | 10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10007 | (exit $ac_status); } && { |
10008 | test -z "$ac_c_werror_flag" || | |
10009 | test ! -s conftest.err | |
10010 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10011 | ac_header_compiler=yes |
80992638 | 10012 | else |
1995c9ff | 10013 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10014 | sed 's/^/| /' conftest.$ac_ext >&5 |
10015 | ||
7a197a62 | 10016 | ac_header_compiler=no |
ad6254c5 | 10017 | fi |
7a197a62 AK |
10018 | |
10019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10020 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10021 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10022 | |
10023 | # Is the header present? | |
1995c9ff AK |
10024 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10025 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10026 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10027 | /* confdefs.h. */ |
10028 | _ACEOF | |
10029 | cat confdefs.h >>conftest.$ac_ext | |
10030 | cat >>conftest.$ac_ext <<_ACEOF | |
10031 | /* end confdefs.h. */ | |
10032 | #include <$ac_header> | |
10033 | _ACEOF | |
7a197a62 AK |
10034 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10035 | case "(($ac_try" in | |
10036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10037 | *) ac_try_echo=$ac_try;; | |
10038 | esac | |
1995c9ff | 10039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10041 | ac_status=$? |
10042 | grep -v '^ *+' conftest.er1 >conftest.err | |
10043 | rm -f conftest.er1 | |
10044 | cat conftest.err >&5 | |
1995c9ff | 10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10046 | (exit $ac_status); } >/dev/null && { |
10047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10048 | test ! -s conftest.err | |
10049 | }; then | |
ad6254c5 AK |
10050 | ac_header_preproc=yes |
10051 | else | |
1995c9ff | 10052 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10053 | sed 's/^/| /' conftest.$ac_ext >&5 |
10054 | ||
10055 | ac_header_preproc=no | |
10056 | fi | |
7a197a62 | 10057 | |
ad6254c5 | 10058 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10059 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10060 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10061 | |
10062 | # So? What about this header? | |
8a2fc586 AK |
10063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10064 | yes:no: ) | |
1995c9ff AK |
10065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10068 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10069 | ac_header_preproc=yes |
ad6254c5 | 10070 | ;; |
8a2fc586 | 10071 | no:yes:* ) |
1995c9ff AK |
10072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10076 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10077 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10078 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10079 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10081 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10082 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10083 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10084 | |
ad6254c5 AK |
10085 | ;; |
10086 | esac | |
1995c9ff AK |
10087 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10089 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10091 | else |
8a2fc586 | 10092 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10093 | fi |
1995c9ff AK |
10094 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10095 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10096 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10097 | |
795ca3e5 | 10098 | fi |
1995c9ff | 10099 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10100 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10101 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10102 | _ACEOF |
10103 | ||
795ca3e5 AK |
10104 | fi |
10105 | ||
ad6254c5 AK |
10106 | done |
10107 | ||
1995c9ff AK |
10108 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10109 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10110 | if test "${ac_cv_func_select_args+set}" = set; then |
1995c9ff | 10111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10112 | else |
ad6254c5 | 10113 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10114 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10115 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10116 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10117 | /* confdefs.h. */ |
10118 | _ACEOF | |
10119 | cat confdefs.h >>conftest.$ac_ext | |
10120 | cat >>conftest.$ac_ext <<_ACEOF | |
10121 | /* end confdefs.h. */ | |
10122 | $ac_includes_default | |
25fbec5b | 10123 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10124 | # include <sys/select.h> |
10125 | #endif | |
25fbec5b | 10126 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10127 | # include <sys/socket.h> |
10128 | #endif | |
10129 | ||
10130 | int | |
10131 | main () | |
10132 | { | |
10133 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10134 | $ac_arg234, $ac_arg234, $ac_arg234, |
10135 | $ac_arg5); | |
ad6254c5 AK |
10136 | ; |
10137 | return 0; | |
10138 | } | |
10139 | _ACEOF | |
10140 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10141 | if { (ac_try="$ac_compile" |
10142 | case "(($ac_try" in | |
10143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10144 | *) ac_try_echo=$ac_try;; | |
10145 | esac | |
1995c9ff | 10146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10147 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10148 | ac_status=$? |
8a2fc586 AK |
10149 | grep -v '^ *+' conftest.er1 >conftest.err |
10150 | rm -f conftest.er1 | |
10151 | cat conftest.err >&5 | |
1995c9ff | 10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10153 | (exit $ac_status); } && { |
10154 | test -z "$ac_c_werror_flag" || | |
10155 | test ! -s conftest.err | |
10156 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10157 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10158 | else | |
1995c9ff | 10159 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10160 | sed 's/^/| /' conftest.$ac_ext >&5 |
10161 | ||
7a197a62 | 10162 | |
ad6254c5 | 10163 | fi |
7a197a62 AK |
10164 | |
10165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10166 | done |
10167 | done | |
10168 | done | |
10169 | # Provide a safe default value. | |
10170 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10171 | ||
26e7f2e0 | 10172 | fi |
1995c9ff AK |
10173 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10174 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10175 | ac_save_IFS=$IFS; IFS=',' |
10176 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10177 | IFS=$ac_save_IFS | |
10178 | shift | |
10179 | ||
10180 | cat >>confdefs.h <<_ACEOF | |
10181 | #define SELECT_TYPE_ARG1 $1 | |
10182 | _ACEOF | |
10183 | ||
10184 | ||
10185 | cat >>confdefs.h <<_ACEOF | |
10186 | #define SELECT_TYPE_ARG234 ($2) | |
10187 | _ACEOF | |
10188 | ||
10189 | ||
10190 | cat >>confdefs.h <<_ACEOF | |
10191 | #define SELECT_TYPE_ARG5 ($3) | |
10192 | _ACEOF | |
10193 | ||
80992638 | 10194 | rm -f conftest* |
80992638 | 10195 | |
8106cdd5 | 10196 | fi |
ad6254c5 | 10197 | |
ad6254c5 AK |
10198 | if test x$CLUSTER != xnone; then |
10199 | ||
10200 | ||
10201 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10202 | do |
1995c9ff | 10203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10205 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10209 | fi |
1995c9ff AK |
10210 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10211 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10212 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10213 | else |
10214 | # Is the header compilable? | |
1995c9ff AK |
10215 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10216 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10217 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10218 | /* confdefs.h. */ |
10219 | _ACEOF | |
10220 | cat confdefs.h >>conftest.$ac_ext | |
10221 | cat >>conftest.$ac_ext <<_ACEOF | |
10222 | /* end confdefs.h. */ | |
10223 | $ac_includes_default | |
10224 | #include <$ac_header> | |
10225 | _ACEOF | |
10226 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10227 | if { (ac_try="$ac_compile" |
10228 | case "(($ac_try" in | |
10229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10230 | *) ac_try_echo=$ac_try;; | |
10231 | esac | |
1995c9ff | 10232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10233 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10234 | ac_status=$? |
8a2fc586 AK |
10235 | grep -v '^ *+' conftest.er1 >conftest.err |
10236 | rm -f conftest.er1 | |
10237 | cat conftest.err >&5 | |
1995c9ff | 10238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10239 | (exit $ac_status); } && { |
10240 | test -z "$ac_c_werror_flag" || | |
10241 | test ! -s conftest.err | |
10242 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10243 | ac_header_compiler=yes |
10244 | else | |
1995c9ff | 10245 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10246 | sed 's/^/| /' conftest.$ac_ext >&5 |
10247 | ||
7a197a62 | 10248 | ac_header_compiler=no |
ad6254c5 | 10249 | fi |
7a197a62 AK |
10250 | |
10251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10252 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10253 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10254 | |
10255 | # Is the header present? | |
1995c9ff AK |
10256 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10257 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10258 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10259 | /* confdefs.h. */ |
10260 | _ACEOF | |
10261 | cat confdefs.h >>conftest.$ac_ext | |
10262 | cat >>conftest.$ac_ext <<_ACEOF | |
10263 | /* end confdefs.h. */ | |
10264 | #include <$ac_header> | |
10265 | _ACEOF | |
7a197a62 AK |
10266 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10267 | case "(($ac_try" in | |
10268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10269 | *) ac_try_echo=$ac_try;; | |
10270 | esac | |
1995c9ff | 10271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10272 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10273 | ac_status=$? |
10274 | grep -v '^ *+' conftest.er1 >conftest.err | |
10275 | rm -f conftest.er1 | |
10276 | cat conftest.err >&5 | |
1995c9ff | 10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10278 | (exit $ac_status); } >/dev/null && { |
10279 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10280 | test ! -s conftest.err | |
10281 | }; then | |
ad6254c5 AK |
10282 | ac_header_preproc=yes |
10283 | else | |
1995c9ff | 10284 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10285 | sed 's/^/| /' conftest.$ac_ext >&5 |
10286 | ||
10287 | ac_header_preproc=no | |
10288 | fi | |
7a197a62 | 10289 | |
ad6254c5 | 10290 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10291 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10292 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10293 | |
10294 | # So? What about this header? | |
8a2fc586 AK |
10295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10296 | yes:no: ) | |
1995c9ff AK |
10297 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10298 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10300 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10301 | ac_header_preproc=yes |
ad6254c5 | 10302 | ;; |
8a2fc586 | 10303 | no:yes:* ) |
1995c9ff AK |
10304 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10306 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10308 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10309 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10310 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10311 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10313 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10314 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10315 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10316 | |
ad6254c5 AK |
10317 | ;; |
10318 | esac | |
1995c9ff AK |
10319 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10323 | else |
8a2fc586 | 10324 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10325 | fi |
1995c9ff AK |
10326 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10327 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10328 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10329 | |
10330 | fi | |
1995c9ff | 10331 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10332 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10333 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10334 | _ACEOF |
10335 | ||
80992638 | 10336 | else |
1995c9ff AK |
10337 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10338 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10339 | { (exit 1); exit 1; }; } |
b896caa1 | 10340 | fi |
ad6254c5 | 10341 | |
b896caa1 AK |
10342 | done |
10343 | ||
10344 | ||
ad6254c5 AK |
10345 | for ac_func in socket |
10346 | do | |
1995c9ff AK |
10347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10348 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10350 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10352 | else |
ad6254c5 | 10353 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10354 | /* confdefs.h. */ |
10355 | _ACEOF | |
10356 | cat confdefs.h >>conftest.$ac_ext | |
10357 | cat >>conftest.$ac_ext <<_ACEOF | |
10358 | /* end confdefs.h. */ | |
8a2fc586 AK |
10359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10361 | #define $ac_func innocuous_$ac_func | |
10362 | ||
ad6254c5 AK |
10363 | /* System header to define __stub macros and hopefully few prototypes, |
10364 | which can conflict with char $ac_func (); below. | |
10365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10366 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10367 | |
ad6254c5 AK |
10368 | #ifdef __STDC__ |
10369 | # include <limits.h> | |
10370 | #else | |
10371 | # include <assert.h> | |
10372 | #endif | |
8a2fc586 AK |
10373 | |
10374 | #undef $ac_func | |
10375 | ||
7a197a62 AK |
10376 | /* Override any GCC internal prototype to avoid an error. |
10377 | Use char because int might match the return type of a GCC | |
10378 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10379 | #ifdef __cplusplus |
10380 | extern "C" | |
ad6254c5 | 10381 | #endif |
ad6254c5 AK |
10382 | char $ac_func (); |
10383 | /* The GNU C library defines this for functions which it implements | |
10384 | to always fail with ENOSYS. Some functions are actually named | |
10385 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10386 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10387 | choke me |
ad6254c5 AK |
10388 | #endif |
10389 | ||
10390 | int | |
10391 | main () | |
10392 | { | |
7a197a62 | 10393 | return $ac_func (); |
ad6254c5 AK |
10394 | ; |
10395 | return 0; | |
10396 | } | |
10397 | _ACEOF | |
10398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10399 | if { (ac_try="$ac_link" |
10400 | case "(($ac_try" in | |
10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10402 | *) ac_try_echo=$ac_try;; | |
10403 | esac | |
1995c9ff | 10404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10405 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10406 | ac_status=$? |
8a2fc586 AK |
10407 | grep -v '^ *+' conftest.er1 >conftest.err |
10408 | rm -f conftest.er1 | |
10409 | cat conftest.err >&5 | |
1995c9ff | 10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10411 | (exit $ac_status); } && { |
10412 | test -z "$ac_c_werror_flag" || | |
10413 | test ! -s conftest.err | |
10414 | } && test -s conftest$ac_exeext && | |
10415 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10416 | eval "$as_ac_var=yes" |
10417 | else | |
1995c9ff | 10418 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10419 | sed 's/^/| /' conftest.$ac_ext >&5 |
10420 | ||
7a197a62 | 10421 | eval "$as_ac_var=no" |
ad6254c5 | 10422 | fi |
7a197a62 | 10423 | |
25fbec5b | 10424 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10425 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10426 | fi |
1995c9ff AK |
10427 | ac_res=`eval echo '${'$as_ac_var'}'` |
10428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10429 | echo "${ECHO_T}$ac_res" >&6; } | |
10430 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10431 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10432 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10433 | _ACEOF |
10434 | ||
10435 | else | |
1995c9ff AK |
10436 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10437 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10438 | { (exit 1); exit 1; }; } |
10439 | fi | |
10440 | done | |
10441 | ||
10442 | fi | |
10443 | ||
10444 | if test x$HAVE_LIBDL = xyes; then | |
10445 | ||
10446 | for ac_header in dlfcn.h | |
10447 | do | |
1995c9ff | 10448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10450 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10454 | fi |
1995c9ff AK |
10455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10457 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10458 | else |
10459 | # Is the header compilable? | |
1995c9ff AK |
10460 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10462 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10463 | /* confdefs.h. */ |
10464 | _ACEOF | |
10465 | cat confdefs.h >>conftest.$ac_ext | |
10466 | cat >>conftest.$ac_ext <<_ACEOF | |
10467 | /* end confdefs.h. */ | |
10468 | $ac_includes_default | |
10469 | #include <$ac_header> | |
10470 | _ACEOF | |
10471 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10472 | if { (ac_try="$ac_compile" |
10473 | case "(($ac_try" in | |
10474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10475 | *) ac_try_echo=$ac_try;; | |
10476 | esac | |
1995c9ff | 10477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10478 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10479 | ac_status=$? |
8a2fc586 AK |
10480 | grep -v '^ *+' conftest.er1 >conftest.err |
10481 | rm -f conftest.er1 | |
10482 | cat conftest.err >&5 | |
1995c9ff | 10483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10484 | (exit $ac_status); } && { |
10485 | test -z "$ac_c_werror_flag" || | |
10486 | test ! -s conftest.err | |
10487 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10488 | ac_header_compiler=yes |
10489 | else | |
1995c9ff | 10490 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10491 | sed 's/^/| /' conftest.$ac_ext >&5 |
10492 | ||
7a197a62 | 10493 | ac_header_compiler=no |
ad6254c5 | 10494 | fi |
7a197a62 AK |
10495 | |
10496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10497 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10498 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10499 | |
10500 | # Is the header present? | |
1995c9ff AK |
10501 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10502 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10503 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10504 | /* confdefs.h. */ |
10505 | _ACEOF | |
10506 | cat confdefs.h >>conftest.$ac_ext | |
10507 | cat >>conftest.$ac_ext <<_ACEOF | |
10508 | /* end confdefs.h. */ | |
10509 | #include <$ac_header> | |
10510 | _ACEOF | |
7a197a62 AK |
10511 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10512 | case "(($ac_try" in | |
10513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10514 | *) ac_try_echo=$ac_try;; | |
10515 | esac | |
1995c9ff | 10516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10518 | ac_status=$? |
10519 | grep -v '^ *+' conftest.er1 >conftest.err | |
10520 | rm -f conftest.er1 | |
10521 | cat conftest.err >&5 | |
1995c9ff | 10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10523 | (exit $ac_status); } >/dev/null && { |
10524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10525 | test ! -s conftest.err | |
10526 | }; then | |
ad6254c5 AK |
10527 | ac_header_preproc=yes |
10528 | else | |
1995c9ff | 10529 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10530 | sed 's/^/| /' conftest.$ac_ext >&5 |
10531 | ||
10532 | ac_header_preproc=no | |
10533 | fi | |
7a197a62 | 10534 | |
ad6254c5 | 10535 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10536 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10537 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10538 | |
10539 | # So? What about this header? | |
8a2fc586 AK |
10540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10541 | yes:no: ) | |
1995c9ff AK |
10542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10543 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10545 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10546 | ac_header_preproc=yes |
ad6254c5 | 10547 | ;; |
8a2fc586 | 10548 | no:yes:* ) |
1995c9ff AK |
10549 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10550 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10551 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10552 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10553 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10554 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10555 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10556 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10558 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10559 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10560 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10561 | |
ad6254c5 AK |
10562 | ;; |
10563 | esac | |
1995c9ff AK |
10564 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10566 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10568 | else |
8a2fc586 | 10569 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10570 | fi |
1995c9ff AK |
10571 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10572 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10573 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 10574 | |
8106cdd5 | 10575 | fi |
1995c9ff | 10576 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10577 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10578 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10579 | _ACEOF |
795ca3e5 AK |
10580 | |
10581 | else | |
1995c9ff AK |
10582 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10583 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10584 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10585 | fi |
10586 | ||
ad6254c5 | 10587 | done |
80992638 | 10588 | |
ad6254c5 | 10589 | fi |
80992638 | 10590 | |
ad6254c5 | 10591 | if test x$INTL = xyes; then |
83912faa | 10592 | |
ad6254c5 AK |
10593 | for ac_header in libintl.h |
10594 | do | |
1995c9ff | 10595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10597 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10599 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10601 | fi |
1995c9ff AK |
10602 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10603 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10604 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10605 | else |
ad6254c5 | 10606 | # Is the header compilable? |
1995c9ff AK |
10607 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10608 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10609 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10610 | /* confdefs.h. */ |
10611 | _ACEOF | |
10612 | cat confdefs.h >>conftest.$ac_ext | |
10613 | cat >>conftest.$ac_ext <<_ACEOF | |
10614 | /* end confdefs.h. */ | |
10615 | $ac_includes_default | |
10616 | #include <$ac_header> | |
10617 | _ACEOF | |
10618 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10619 | if { (ac_try="$ac_compile" |
10620 | case "(($ac_try" in | |
10621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10622 | *) ac_try_echo=$ac_try;; | |
10623 | esac | |
1995c9ff | 10624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10625 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10626 | ac_status=$? |
8a2fc586 AK |
10627 | grep -v '^ *+' conftest.er1 >conftest.err |
10628 | rm -f conftest.er1 | |
10629 | cat conftest.err >&5 | |
1995c9ff | 10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10631 | (exit $ac_status); } && { |
10632 | test -z "$ac_c_werror_flag" || | |
10633 | test ! -s conftest.err | |
10634 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10635 | ac_header_compiler=yes |
10636 | else | |
1995c9ff | 10637 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10638 | sed 's/^/| /' conftest.$ac_ext >&5 |
10639 | ||
7a197a62 | 10640 | ac_header_compiler=no |
ad6254c5 | 10641 | fi |
7a197a62 AK |
10642 | |
10643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10644 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10645 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10646 | |
10647 | # Is the header present? | |
1995c9ff AK |
10648 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10649 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10650 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10651 | /* confdefs.h. */ |
10652 | _ACEOF | |
10653 | cat confdefs.h >>conftest.$ac_ext | |
10654 | cat >>conftest.$ac_ext <<_ACEOF | |
10655 | /* end confdefs.h. */ | |
10656 | #include <$ac_header> | |
10657 | _ACEOF | |
7a197a62 AK |
10658 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10659 | case "(($ac_try" in | |
10660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10661 | *) ac_try_echo=$ac_try;; | |
10662 | esac | |
1995c9ff | 10663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10664 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10665 | ac_status=$? |
10666 | grep -v '^ *+' conftest.er1 >conftest.err | |
10667 | rm -f conftest.er1 | |
10668 | cat conftest.err >&5 | |
1995c9ff | 10669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10670 | (exit $ac_status); } >/dev/null && { |
10671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10672 | test ! -s conftest.err | |
10673 | }; then | |
ad6254c5 AK |
10674 | ac_header_preproc=yes |
10675 | else | |
1995c9ff | 10676 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10677 | sed 's/^/| /' conftest.$ac_ext >&5 |
10678 | ||
10679 | ac_header_preproc=no | |
10680 | fi | |
7a197a62 | 10681 | |
ad6254c5 | 10682 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10683 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10684 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10685 | |
10686 | # So? What about this header? | |
8a2fc586 AK |
10687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10688 | yes:no: ) | |
1995c9ff AK |
10689 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10690 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10692 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10693 | ac_header_preproc=yes |
ad6254c5 | 10694 | ;; |
8a2fc586 | 10695 | no:yes:* ) |
1995c9ff AK |
10696 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10697 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10698 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10699 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10700 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10701 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10702 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10703 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10704 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10705 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10706 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10707 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10708 | |
ad6254c5 AK |
10709 | ;; |
10710 | esac | |
1995c9ff AK |
10711 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10712 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10713 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 10715 | else |
8a2fc586 | 10716 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10717 | fi |
1995c9ff AK |
10718 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10719 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10720 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10721 | |
69792976 | 10722 | fi |
1995c9ff | 10723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10724 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10726 | _ACEOF |
69792976 | 10727 | |
69792976 | 10728 | else |
1995c9ff AK |
10729 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10730 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10731 | { (exit 1); exit 1; }; } |
80992638 AK |
10732 | fi |
10733 | ||
ad6254c5 | 10734 | done |
69792976 | 10735 | |
ad6254c5 AK |
10736 | fi |
10737 | ||
ad6254c5 AK |
10738 | |
10739 | for ac_header in libdevmapper.h | |
10740 | do | |
1995c9ff | 10741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10743 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10747 | fi |
1995c9ff AK |
10748 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10750 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 10751 | else |
ad6254c5 | 10752 | # Is the header compilable? |
1995c9ff AK |
10753 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10754 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10755 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10756 | /* confdefs.h. */ |
10757 | _ACEOF | |
10758 | cat confdefs.h >>conftest.$ac_ext | |
10759 | cat >>conftest.$ac_ext <<_ACEOF | |
10760 | /* end confdefs.h. */ | |
10761 | $ac_includes_default | |
10762 | #include <$ac_header> | |
10763 | _ACEOF | |
10764 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10765 | if { (ac_try="$ac_compile" |
10766 | case "(($ac_try" in | |
10767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10768 | *) ac_try_echo=$ac_try;; | |
10769 | esac | |
1995c9ff | 10770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10771 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10772 | ac_status=$? |
8a2fc586 AK |
10773 | grep -v '^ *+' conftest.er1 >conftest.err |
10774 | rm -f conftest.er1 | |
10775 | cat conftest.err >&5 | |
1995c9ff | 10776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10777 | (exit $ac_status); } && { |
10778 | test -z "$ac_c_werror_flag" || | |
10779 | test ! -s conftest.err | |
10780 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10781 | ac_header_compiler=yes |
10782 | else | |
1995c9ff | 10783 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10784 | sed 's/^/| /' conftest.$ac_ext >&5 |
10785 | ||
7a197a62 | 10786 | ac_header_compiler=no |
ad6254c5 | 10787 | fi |
7a197a62 AK |
10788 | |
10789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10790 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10791 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10792 | |
10793 | # Is the header present? | |
1995c9ff AK |
10794 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10796 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10797 | /* confdefs.h. */ |
10798 | _ACEOF | |
10799 | cat confdefs.h >>conftest.$ac_ext | |
10800 | cat >>conftest.$ac_ext <<_ACEOF | |
10801 | /* end confdefs.h. */ | |
10802 | #include <$ac_header> | |
10803 | _ACEOF | |
7a197a62 AK |
10804 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10805 | case "(($ac_try" in | |
10806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10807 | *) ac_try_echo=$ac_try;; | |
10808 | esac | |
1995c9ff | 10809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10811 | ac_status=$? |
10812 | grep -v '^ *+' conftest.er1 >conftest.err | |
10813 | rm -f conftest.er1 | |
10814 | cat conftest.err >&5 | |
1995c9ff | 10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10816 | (exit $ac_status); } >/dev/null && { |
10817 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10818 | test ! -s conftest.err | |
10819 | }; then | |
ad6254c5 AK |
10820 | ac_header_preproc=yes |
10821 | else | |
1995c9ff | 10822 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10823 | sed 's/^/| /' conftest.$ac_ext >&5 |
10824 | ||
10825 | ac_header_preproc=no | |
10826 | fi | |
7a197a62 | 10827 | |
ad6254c5 | 10828 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10829 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10830 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10831 | |
10832 | # So? What about this header? | |
8a2fc586 AK |
10833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10834 | yes:no: ) | |
1995c9ff AK |
10835 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10836 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10837 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10838 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10839 | ac_header_preproc=yes |
ad6254c5 | 10840 | ;; |
8a2fc586 | 10841 | no:yes:* ) |
1995c9ff AK |
10842 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10843 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10844 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10845 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10846 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10847 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10848 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10849 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10850 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10851 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10852 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10853 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10854 | |
ad6254c5 AK |
10855 | ;; |
10856 | esac | |
1995c9ff AK |
10857 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10859 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 10861 | else |
8a2fc586 | 10862 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 10863 | fi |
1995c9ff AK |
10864 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10865 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10866 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 10867 | |
ad6254c5 | 10868 | fi |
1995c9ff | 10869 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10870 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10871 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10872 | _ACEOF |
69792976 | 10873 | |
69792976 | 10874 | else |
1995c9ff AK |
10875 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10876 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10877 | { (exit 1); exit 1; }; } |
83912faa AK |
10878 | fi |
10879 | ||
ad6254c5 AK |
10880 | done |
10881 | ||
4a7f3eb2 | 10882 | |
ad6254c5 AK |
10883 | if test x$HAVE_SELINUX = xyes; then |
10884 | ||
10885 | for ac_header in selinux/selinux.h | |
10886 | do | |
1995c9ff | 10887 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10889 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10891 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10893 | fi |
1995c9ff AK |
10894 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10895 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10896 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 10897 | else |
ad6254c5 | 10898 | # Is the header compilable? |
1995c9ff AK |
10899 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10900 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10901 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10902 | /* confdefs.h. */ |
10903 | _ACEOF | |
10904 | cat confdefs.h >>conftest.$ac_ext | |
10905 | cat >>conftest.$ac_ext <<_ACEOF | |
10906 | /* end confdefs.h. */ | |
10907 | $ac_includes_default | |
10908 | #include <$ac_header> | |
10909 | _ACEOF | |
10910 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10911 | if { (ac_try="$ac_compile" |
10912 | case "(($ac_try" in | |
10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10914 | *) ac_try_echo=$ac_try;; | |
10915 | esac | |
1995c9ff | 10916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10917 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10918 | ac_status=$? |
8a2fc586 AK |
10919 | grep -v '^ *+' conftest.er1 >conftest.err |
10920 | rm -f conftest.er1 | |
10921 | cat conftest.err >&5 | |
1995c9ff | 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10923 | (exit $ac_status); } && { |
10924 | test -z "$ac_c_werror_flag" || | |
10925 | test ! -s conftest.err | |
10926 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10927 | ac_header_compiler=yes |
10928 | else | |
1995c9ff | 10929 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10930 | sed 's/^/| /' conftest.$ac_ext >&5 |
10931 | ||
7a197a62 | 10932 | ac_header_compiler=no |
ad6254c5 | 10933 | fi |
7a197a62 AK |
10934 | |
10935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10936 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10937 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10938 | |
10939 | # Is the header present? | |
1995c9ff AK |
10940 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10941 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10942 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10943 | /* confdefs.h. */ |
10944 | _ACEOF | |
10945 | cat confdefs.h >>conftest.$ac_ext | |
10946 | cat >>conftest.$ac_ext <<_ACEOF | |
10947 | /* end confdefs.h. */ | |
10948 | #include <$ac_header> | |
10949 | _ACEOF | |
7a197a62 AK |
10950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10951 | case "(($ac_try" in | |
10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10953 | *) ac_try_echo=$ac_try;; | |
10954 | esac | |
1995c9ff | 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10956 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10957 | ac_status=$? |
10958 | grep -v '^ *+' conftest.er1 >conftest.err | |
10959 | rm -f conftest.er1 | |
10960 | cat conftest.err >&5 | |
1995c9ff | 10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10962 | (exit $ac_status); } >/dev/null && { |
10963 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10964 | test ! -s conftest.err | |
10965 | }; then | |
ad6254c5 AK |
10966 | ac_header_preproc=yes |
10967 | else | |
1995c9ff | 10968 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10969 | sed 's/^/| /' conftest.$ac_ext >&5 |
10970 | ||
10971 | ac_header_preproc=no | |
10972 | fi | |
7a197a62 | 10973 | |
ad6254c5 | 10974 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10975 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10976 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10977 | |
10978 | # So? What about this header? | |
8a2fc586 AK |
10979 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10980 | yes:no: ) | |
1995c9ff AK |
10981 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10982 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10984 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10985 | ac_header_preproc=yes |
ad6254c5 | 10986 | ;; |
8a2fc586 | 10987 | no:yes:* ) |
1995c9ff AK |
10988 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10989 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10990 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10991 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10992 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10993 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10994 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10995 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10997 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10998 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10999 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11000 | |
ad6254c5 AK |
11001 | ;; |
11002 | esac | |
1995c9ff AK |
11003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11007 | else |
8a2fc586 | 11008 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11009 | fi |
1995c9ff AK |
11010 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11011 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11012 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11013 | |
ad6254c5 | 11014 | fi |
1995c9ff | 11015 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11016 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11017 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11018 | _ACEOF |
0a62c911 | 11019 | |
0a62c911 | 11020 | else |
1995c9ff AK |
11021 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11022 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11023 | { (exit 1); exit 1; }; } |
80992638 AK |
11024 | fi |
11025 | ||
ad6254c5 | 11026 | done |
0a62c911 | 11027 | |
ad6254c5 | 11028 | fi |
0a62c911 | 11029 | |
a653923f AK |
11030 | ################################################################################ |
11031 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11032 | set dummy modprobe; ac_word=$2 | |
1995c9ff AK |
11033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11035 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
1995c9ff | 11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11037 | else |
11038 | case $MODPROBE_CMD in | |
11039 | [\\/]* | ?:[\\/]*) | |
11040 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11041 | ;; | |
11042 | *) | |
11043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11044 | for as_dir in $PATH | |
11045 | do | |
11046 | IFS=$as_save_IFS | |
11047 | test -z "$as_dir" && as_dir=. | |
11048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11050 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 11051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11052 | break 2 |
11053 | fi | |
11054 | done | |
11055 | done | |
7a197a62 | 11056 | IFS=$as_save_IFS |
72b2cb61 AK |
11057 | |
11058 | ;; | |
11059 | esac | |
11060 | fi | |
11061 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11062 | if test -n "$MODPROBE_CMD"; then |
1995c9ff AK |
11063 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11064 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11065 | else |
1995c9ff AK |
11066 | { echo "$as_me:$LINENO: result: no" >&5 |
11067 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11068 | fi |
11069 | ||
a653923f | 11070 | |
7a197a62 | 11071 | |
a653923f | 11072 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11073 | |
11074 | cat >>confdefs.h <<_ACEOF | |
11075 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11076 | _ACEOF | |
11077 | ||
a653923f AK |
11078 | fi |
11079 | ||
80992638 | 11080 | ################################################################################ |
fae0c576 AK |
11081 | if test "-f VERSION"; then |
11082 | LVM_VERSION="\"`cat VERSION`\"" | |
11083 | else | |
11084 | LVM_VERSION="Unknown" | |
11085 | fi | |
11086 | ||
80992638 | 11087 | ################################################################################ |
fae0c576 | 11088 | |
83912faa | 11089 | |
795ca3e5 AK |
11090 | |
11091 | ||
11092 | ||
11093 | ||
11094 | ||
11095 | ||
5a52dca9 | 11096 | |
8ef2b021 | 11097 | |
199e490e | 11098 | |
69792976 AK |
11099 | |
11100 | ||
11101 | ||
11102 | ||
8106cdd5 AK |
11103 | |
11104 | ||
11105 | ||
11106 | ||
11107 | ||
d68a82ec | 11108 | |
036f273a | 11109 | |
7d1552c9 | 11110 | |
8106cdd5 | 11111 | |
0a62c911 | 11112 | |
8106cdd5 | 11113 | |
4a7f3eb2 | 11114 | |
4922197a AK |
11115 | |
11116 | ||
d8ac0fbc | 11117 | |
1a9ea74d | 11118 | |
8a2fc586 AK |
11119 | |
11120 | ||
11121 | ||
8ce0cbda | 11122 | |
8b1a3214 | 11123 | |
33f732c5 | 11124 | |
66e941e8 | 11125 | |
d3c8211f AK |
11126 | |
11127 | ||
80992638 | 11128 | ################################################################################ |
67961c7c | 11129 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11130 | |
ad6254c5 | 11131 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11132 | # This file is a shell script that caches the results of configure |
11133 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11134 | # scripts and configure runs, see configure's option --config-cache. |
11135 | # It is not useful on other systems. If it contains results you don't | |
11136 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11137 | # |
ad6254c5 AK |
11138 | # config.status only pays attention to the cache file if you give it |
11139 | # the --recheck option to rerun configure. | |
795ca3e5 | 11140 | # |
ad6254c5 AK |
11141 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11142 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11143 | # following values. | |
11144 | ||
11145 | _ACEOF | |
11146 | ||
795ca3e5 AK |
11147 | # The following way of writing the cache mishandles newlines in values, |
11148 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11149 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11150 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11151 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11152 | ( |
11153 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11154 | eval ac_val=\$$ac_var | |
11155 | case $ac_val in #( | |
11156 | *${as_nl}*) | |
11157 | case $ac_var in #( | |
1995c9ff AK |
11158 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11159 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11160 | esac |
11161 | case $ac_var in #( | |
11162 | _ | IFS | as_nl) ;; #( | |
11163 | *) $as_unset $ac_var ;; | |
11164 | esac ;; | |
11165 | esac | |
11166 | done | |
11167 | ||
ad6254c5 | 11168 | (set) 2>&1 | |
7a197a62 AK |
11169 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11170 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11171 | # `set' does not quote correctly, so add quotes (double-quote |
11172 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11173 | sed -n \ | |
8a2fc586 AK |
11174 | "s/'/'\\\\''/g; |
11175 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11176 | ;; #( |
ad6254c5 AK |
11177 | *) |
11178 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11179 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11180 | ;; |
7a197a62 AK |
11181 | esac | |
11182 | sort | |
11183 | ) | | |
ad6254c5 | 11184 | sed ' |
7a197a62 | 11185 | /^ac_cv_env_/b end |
ad6254c5 | 11186 | t clear |
7a197a62 | 11187 | :clear |
ad6254c5 AK |
11188 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11189 | t end | |
7a197a62 AK |
11190 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11191 | :end' >>confcache | |
11192 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11193 | if test -w "$cache_file"; then | |
11194 | test "x$cache_file" != "x/dev/null" && | |
1995c9ff AK |
11195 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11196 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11197 | cat confcache >$cache_file |
795ca3e5 | 11198 | else |
1995c9ff AK |
11199 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11200 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11201 | fi |
11202 | fi | |
11203 | rm -f confcache | |
11204 | ||
795ca3e5 AK |
11205 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11206 | # Let make expand exec_prefix. | |
11207 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11208 | ||
72b2cb61 | 11209 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11210 | |
11211 | ac_libobjs= | |
11212 | ac_ltlibobjs= | |
11213 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11214 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11215 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
1995c9ff | 11216 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11217 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11218 | # will be set to the directory where LIBOBJS objects are built. | |
11219 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11220 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11221 | done |
11222 | LIBOBJS=$ac_libobjs | |
80992638 | 11223 | |
ad6254c5 AK |
11224 | LTLIBOBJS=$ac_ltlibobjs |
11225 | ||
11226 | ||
11227 | ||
11228 | : ${CONFIG_STATUS=./config.status} | |
11229 | ac_clean_files_save=$ac_clean_files | |
11230 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1995c9ff AK |
11231 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11232 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
ad6254c5 AK |
11233 | cat >$CONFIG_STATUS <<_ACEOF |
11234 | #! $SHELL | |
11235 | # Generated by $as_me. | |
795ca3e5 | 11236 | # Run this file to recreate the current configuration. |
795ca3e5 | 11237 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11238 | # configure, is in config.log if it exists. |
11239 | ||
11240 | debug=false | |
11241 | ac_cs_recheck=false | |
11242 | ac_cs_silent=false | |
11243 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11244 | _ACEOF | |
11245 | ||
11246 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11247 | ## --------------------- ## | |
11248 | ## M4sh Initialization. ## | |
11249 | ## --------------------- ## | |
11250 | ||
25fbec5b AK |
11251 | # Be more Bourne compatible |
11252 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11253 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11254 | emulate sh | |
11255 | NULLCMD=: | |
11256 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11257 | # is contrary to our usage. Disable this feature. | |
11258 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11259 | setopt NO_GLOB_SUBST |
11260 | else | |
25fbec5b AK |
11261 | case `(set -o) 2>/dev/null` in |
11262 | *posix*) set -o posix ;; | |
11263 | esac | |
11264 | ||
7a197a62 | 11265 | fi |
25fbec5b AK |
11266 | |
11267 | ||
7a197a62 AK |
11268 | |
11269 | ||
11270 | # PATH needs CR | |
11271 | # Avoid depending upon Character Ranges. | |
11272 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11273 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11274 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11275 | as_cr_digits='0123456789' | |
11276 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11277 | ||
11278 | # The user is always right. | |
11279 | if test "${PATH_SEPARATOR+set}" != set; then | |
11280 | echo "#! /bin/sh" >conf$$.sh | |
11281 | echo "exit 0" >>conf$$.sh | |
11282 | chmod +x conf$$.sh | |
11283 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11284 | PATH_SEPARATOR=';' | |
11285 | else | |
11286 | PATH_SEPARATOR=: | |
11287 | fi | |
11288 | rm -f conf$$.sh | |
ad6254c5 AK |
11289 | fi |
11290 | ||
11291 | # Support unset when possible. | |
8a2fc586 | 11292 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11293 | as_unset=unset |
11294 | else | |
11295 | as_unset=false | |
11296 | fi | |
8106cdd5 | 11297 | |
ad6254c5 | 11298 | |
7a197a62 AK |
11299 | # IFS |
11300 | # We need space, tab and new line, in precisely that order. Quoting is | |
11301 | # there to prevent editors from complaining about space-tab. | |
11302 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11303 | # splitting by setting IFS to empty value.) | |
1995c9ff AK |
11304 | as_nl=' |
11305 | ' | |
7a197a62 AK |
11306 | IFS=" "" $as_nl" |
11307 | ||
11308 | # Find who we are. Look in the path if we contain no directory separator. | |
11309 | case $0 in | |
11310 | *[\\/]* ) as_myself=$0 ;; | |
11311 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11312 | for as_dir in $PATH | |
11313 | do | |
11314 | IFS=$as_save_IFS | |
11315 | test -z "$as_dir" && as_dir=. | |
11316 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11317 | done | |
11318 | IFS=$as_save_IFS | |
11319 | ||
11320 | ;; | |
11321 | esac | |
11322 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11323 | # in which case we are not to be found in the path. | |
11324 | if test "x$as_myself" = x; then | |
11325 | as_myself=$0 | |
11326 | fi | |
11327 | if test ! -f "$as_myself"; then | |
1995c9ff | 11328 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11329 | { (exit 1); exit 1; } |
11330 | fi | |
11331 | ||
ad6254c5 | 11332 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11333 | for as_var in ENV MAIL MAILPATH |
11334 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11335 | done | |
ad6254c5 AK |
11336 | PS1='$ ' |
11337 | PS2='> ' | |
11338 | PS4='+ ' | |
11339 | ||
11340 | # NLS nuisances. | |
11341 | for as_var in \ | |
11342 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11343 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11344 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11345 | do |
8a2fc586 | 11346 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11347 | eval $as_var=C; export $as_var |
11348 | else | |
7a197a62 | 11349 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 | 11350 | fi |
8106cdd5 AK |
11351 | done |
11352 | ||
ad6254c5 | 11353 | # Required to use basename. |
7a197a62 AK |
11354 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11355 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11356 | as_expr=expr |
11357 | else | |
11358 | as_expr=false | |
11359 | fi | |
8106cdd5 | 11360 | |
7a197a62 | 11361 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11362 | as_basename=basename |
11363 | else | |
11364 | as_basename=false | |
11365 | fi | |
11366 | ||
11367 | ||
11368 | # Name of the executable. | |
7a197a62 | 11369 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11370 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11371 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11372 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 11373 | echo X/"$0" | |
7a197a62 AK |
11374 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11375 | s//\1/ | |
11376 | q | |
11377 | } | |
11378 | /^X\/\(\/\/\)$/{ | |
11379 | s//\1/ | |
11380 | q | |
11381 | } | |
11382 | /^X\/\(\/\).*/{ | |
11383 | s//\1/ | |
11384 | q | |
11385 | } | |
11386 | s/.*/./; q'` | |
ad6254c5 | 11387 | |
7a197a62 AK |
11388 | # CDPATH. |
11389 | $as_unset CDPATH | |
ad6254c5 AK |
11390 | |
11391 | ||
ad6254c5 | 11392 | |
ad6254c5 AK |
11393 | as_lineno_1=$LINENO |
11394 | as_lineno_2=$LINENO | |
ad6254c5 | 11395 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11396 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11397 | |
ad6254c5 AK |
11398 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11399 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11400 | # line-number line after each line using $LINENO; the second 'sed' |
11401 | # does the real work. The second script uses 'N' to pair each | |
11402 | # line-number line with the line containing $LINENO, and appends | |
11403 | # trailing '-' during substitution so that $LINENO is not a special | |
11404 | # case at line end. | |
ad6254c5 | 11405 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11406 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11407 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11408 | sed -n ' | |
11409 | p | |
11410 | /[$]LINENO/= | |
11411 | ' <$as_myself | | |
ad6254c5 | 11412 | sed ' |
7a197a62 AK |
11413 | s/[$]LINENO.*/&-/ |
11414 | t lineno | |
11415 | b | |
11416 | :lineno | |
ad6254c5 | 11417 | N |
7a197a62 AK |
11418 | :loop |
11419 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11420 | t loop |
7a197a62 | 11421 | s/-\n.*// |
ad6254c5 | 11422 | ' >$as_me.lineno && |
7a197a62 | 11423 | chmod +x "$as_me.lineno" || |
1995c9ff | 11424 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
11425 | { (exit 1); exit 1; }; } |
11426 | ||
11427 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11428 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11429 | # original and so on. Autoconf is especially sensitive to this). |
11430 | . "./$as_me.lineno" | |
ad6254c5 AK |
11431 | # Exit status is that of the last command. |
11432 | exit | |
11433 | } | |
11434 | ||
11435 | ||
7a197a62 AK |
11436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11437 | as_dirname=dirname | |
11438 | else | |
11439 | as_dirname=false | |
11440 | fi | |
11441 | ||
11442 | ECHO_C= ECHO_N= ECHO_T= | |
11443 | case `echo -n x` in | |
11444 | -n*) | |
11445 | case `echo 'x\c'` in | |
11446 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11447 | *) ECHO_C='\c';; | |
11448 | esac;; | |
11449 | *) | |
11450 | ECHO_N='-n';; | |
ad6254c5 | 11451 | esac |
1995c9ff | 11452 | |
7a197a62 AK |
11453 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11454 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11455 | as_expr=expr |
11456 | else | |
11457 | as_expr=false | |
11458 | fi | |
80992638 | 11459 | |
ad6254c5 | 11460 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11461 | if test -d conf$$.dir; then |
11462 | rm -f conf$$.dir/conf$$.file | |
11463 | else | |
11464 | rm -f conf$$.dir | |
11465 | mkdir conf$$.dir | |
11466 | fi | |
ad6254c5 AK |
11467 | echo >conf$$.file |
11468 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
11469 | as_ln_s='ln -s' |
11470 | # ... but there are two gotchas: | |
11471 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11472 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11473 | # In both cases, we have to default to `cp -p'. | |
11474 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11475 | as_ln_s='cp -p' |
ad6254c5 AK |
11476 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11477 | as_ln_s=ln | |
11478 | else | |
11479 | as_ln_s='cp -p' | |
11480 | fi | |
7a197a62 AK |
11481 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11482 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11483 | |
ad6254c5 AK |
11484 | if mkdir -p . 2>/dev/null; then |
11485 | as_mkdir_p=: | |
11486 | else | |
8a2fc586 | 11487 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11488 | as_mkdir_p=false |
11489 | fi | |
11490 | ||
25fbec5b AK |
11491 | if test -x / >/dev/null 2>&1; then |
11492 | as_test_x='test -x' | |
7a197a62 | 11493 | else |
25fbec5b AK |
11494 | if ls -dL / >/dev/null 2>&1; then |
11495 | as_ls_L_option=L | |
11496 | else | |
11497 | as_ls_L_option= | |
11498 | fi | |
11499 | as_test_x=' | |
11500 | eval sh -c '\'' | |
11501 | if test -d "$1"; then | |
11502 | test -d "$1/."; | |
11503 | else | |
11504 | case $1 in | |
11505 | -*)set "./$1";; | |
11506 | esac; | |
11507 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
11508 | ???[sx]*):;;*)false;;esac;fi | |
11509 | '\'' sh | |
11510 | ' | |
7a197a62 | 11511 | fi |
25fbec5b | 11512 | as_executable_p=$as_test_x |
ad6254c5 AK |
11513 | |
11514 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11515 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11516 | |
11517 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11518 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11519 | |
11520 | ||
ad6254c5 AK |
11521 | exec 6>&1 |
11522 | ||
7a197a62 | 11523 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 11524 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11525 | # values after options handling. |
11526 | ac_log=" | |
ad6254c5 | 11527 | This file was extended by $as_me, which was |
25fbec5b | 11528 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
11529 | |
11530 | CONFIG_FILES = $CONFIG_FILES | |
11531 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11532 | CONFIG_LINKS = $CONFIG_LINKS | |
11533 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11534 | $ $0 $@ | |
11535 | ||
7a197a62 AK |
11536 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11537 | " | |
11538 | ||
ad6254c5 AK |
11539 | _ACEOF |
11540 | ||
7a197a62 | 11541 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11542 | # Files that config.status was made for. |
7a197a62 AK |
11543 | config_files="$ac_config_files" |
11544 | config_headers="$ac_config_headers" | |
ad6254c5 | 11545 | |
7a197a62 | 11546 | _ACEOF |
ad6254c5 AK |
11547 | |
11548 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ad6254c5 AK |
11549 | ac_cs_usage="\ |
11550 | \`$as_me' instantiates files from templates according to the | |
11551 | current configuration. | |
11552 | ||
11553 | Usage: $0 [OPTIONS] [FILE]... | |
11554 | ||
11555 | -h, --help print this help, then exit | |
25fbec5b | 11556 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
11557 | -q, --quiet do not print progress messages |
11558 | -d, --debug don't remove temporary files | |
11559 | --recheck update $as_me by reconfiguring in the same conditions | |
11560 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 11561 | instantiate the configuration file FILE |
72b2cb61 AK |
11562 | --header=FILE[:TEMPLATE] |
11563 | instantiate the configuration header FILE | |
ad6254c5 AK |
11564 | |
11565 | Configuration files: | |
11566 | $config_files | |
11567 | ||
72b2cb61 AK |
11568 | Configuration headers: |
11569 | $config_headers | |
11570 | ||
ad6254c5 | 11571 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 11572 | |
7a197a62 | 11573 | _ACEOF |
ad6254c5 AK |
11574 | cat >>$CONFIG_STATUS <<_ACEOF |
11575 | ac_cs_version="\\ | |
11576 | config.status | |
25fbec5b | 11577 | configured by $0, generated by GNU Autoconf 2.61, |
1995c9ff | 11578 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
ad6254c5 | 11579 | |
7a197a62 | 11580 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
11581 | This config.status script is free software; the Free Software Foundation |
11582 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11583 | |
11584 | ac_pwd='$ac_pwd' | |
11585 | srcdir='$srcdir' | |
11586 | INSTALL='$INSTALL' | |
ad6254c5 AK |
11587 | _ACEOF |
11588 | ||
11589 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11590 | # If no file are specified by the user, then we need to provide default | |
11591 | # value. By we need to know if files were specified by the user. | |
11592 | ac_need_defaults=: | |
11593 | while test $# != 0 | |
11594 | do | |
11595 | case $1 in | |
11596 | --*=*) | |
7a197a62 AK |
11597 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11598 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11599 | ac_shift=: |
11600 | ;; | |
7a197a62 | 11601 | *) |
ad6254c5 AK |
11602 | ac_option=$1 |
11603 | ac_optarg=$2 | |
11604 | ac_shift=shift | |
11605 | ;; | |
ad6254c5 AK |
11606 | esac |
11607 | ||
11608 | case $ac_option in | |
11609 | # Handling of the options. | |
ad6254c5 AK |
11610 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11611 | ac_cs_recheck=: ;; | |
7a197a62 | 11612 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
1995c9ff | 11613 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 11614 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11615 | debug=: ;; |
11616 | --file | --fil | --fi | --f ) | |
11617 | $ac_shift | |
11618 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11619 | ac_need_defaults=false;; | |
11620 | --header | --heade | --head | --hea ) | |
11621 | $ac_shift | |
11622 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11623 | ac_need_defaults=false;; | |
7a197a62 AK |
11624 | --he | --h) |
11625 | # Conflict between --help and --header | |
1995c9ff | 11626 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
11627 | Try \`$0 --help' for more information." >&2 |
11628 | { (exit 1); exit 1; }; };; | |
11629 | --help | --hel | -h ) | |
1995c9ff | 11630 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11631 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11632 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11633 | ac_cs_silent=: ;; | |
11634 | ||
11635 | # This is an error. | |
1995c9ff | 11636 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 11637 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
11638 | { (exit 1); exit 1; }; } ;; |
11639 | ||
7a197a62 AK |
11640 | *) ac_config_targets="$ac_config_targets $1" |
11641 | ac_need_defaults=false ;; | |
ad6254c5 AK |
11642 | |
11643 | esac | |
11644 | shift | |
11645 | done | |
11646 | ||
11647 | ac_configure_extra_args= | |
11648 | ||
11649 | if $ac_cs_silent; then | |
11650 | exec 6>/dev/null | |
11651 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11652 | fi | |
11653 | ||
11654 | _ACEOF | |
11655 | cat >>$CONFIG_STATUS <<_ACEOF | |
11656 | if \$ac_cs_recheck; then | |
1995c9ff AK |
11657 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11658 | CONFIG_SHELL=$SHELL | |
7a197a62 | 11659 | export CONFIG_SHELL |
1995c9ff | 11660 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
11661 | fi |
11662 | ||
11663 | _ACEOF | |
7a197a62 AK |
11664 | cat >>$CONFIG_STATUS <<\_ACEOF |
11665 | exec 5>>config.log | |
11666 | { | |
11667 | echo | |
11668 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11669 | ## Running $as_me. ## | |
11670 | _ASBOX | |
1995c9ff | 11671 | echo "$ac_log" |
7a197a62 | 11672 | } >&5 |
ad6254c5 | 11673 | |
7a197a62 AK |
11674 | _ACEOF |
11675 | cat >>$CONFIG_STATUS <<_ACEOF | |
11676 | _ACEOF | |
ad6254c5 AK |
11677 | |
11678 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7a197a62 AK |
11679 | |
11680 | # Handling of arguments. | |
ad6254c5 AK |
11681 | for ac_config_target in $ac_config_targets |
11682 | do | |
7a197a62 AK |
11683 | case $ac_config_target in |
11684 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11685 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11686 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11687 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11688 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
11689 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
11690 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
25fbec5b | 11691 | "dmeventd/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 AK |
11692 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11693 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11694 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11695 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11696 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11697 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11698 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11699 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 11700 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
11701 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11702 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11703 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
11704 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11705 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 11706 | |
1995c9ff AK |
11707 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11708 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 11709 | { (exit 1); exit 1; }; };; |
80992638 | 11710 | esac |
ad6254c5 AK |
11711 | done |
11712 | ||
7a197a62 | 11713 | |
ad6254c5 AK |
11714 | # If the user did not use the arguments to specify the items to instantiate, |
11715 | # then the envvar interface is used. Set only those that are not. | |
11716 | # We use the long form for the default assignment because of an extremely | |
11717 | # bizarre bug on SunOS 4.1.3. | |
11718 | if $ac_need_defaults; then | |
11719 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11720 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11721 | fi |
11722 | ||
11723 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11724 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11725 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11726 | # Hook for its removal unless debugging. |
11727 | # Note that there is a small window in which the directory will not be cleaned: | |
11728 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11729 | $debug || |
11730 | { | |
7a197a62 AK |
11731 | tmp= |
11732 | trap 'exit_status=$? | |
11733 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11734 | ' 0 | |
ad6254c5 AK |
11735 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
11736 | } | |
ad6254c5 AK |
11737 | # Create a (secure) tmp directory for tmp files. |
11738 | ||
11739 | { | |
7a197a62 | 11740 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11741 | test -n "$tmp" && test -d "$tmp" |
11742 | } || | |
11743 | { | |
7a197a62 AK |
11744 | tmp=./conf$$-$RANDOM |
11745 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
11746 | } || |
11747 | { | |
1995c9ff | 11748 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
11749 | { (exit 1); exit 1; } |
11750 | } | |
11751 | ||
1995c9ff AK |
11752 | # |
11753 | # Set up the sed scripts for CONFIG_FILES section. | |
11754 | # | |
7a197a62 | 11755 | |
1995c9ff AK |
11756 | # No need to generate the scripts if there are no CONFIG_FILES. |
11757 | # This happens for instance when ./config.status config.h | |
11758 | if test -n "$CONFIG_FILES"; then | |
7a197a62 | 11759 | |
66e941e8 | 11760 | _ACEOF |
7a197a62 AK |
11761 | |
11762 | ||
1995c9ff | 11763 | |
7a197a62 AK |
11764 | ac_delim='%!_!# ' |
11765 | for ac_last_try in false false false false false :; do | |
1995c9ff AK |
11766 | cat >conf$$subs.sed <<_ACEOF |
11767 | SHELL!$SHELL$ac_delim | |
11768 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
11769 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
11770 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
11771 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
11772 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
11773 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
11774 | exec_prefix!$exec_prefix$ac_delim | |
11775 | prefix!$prefix$ac_delim | |
11776 | program_transform_name!$program_transform_name$ac_delim | |
11777 | bindir!$bindir$ac_delim | |
11778 | sbindir!$sbindir$ac_delim | |
11779 | libexecdir!$libexecdir$ac_delim | |
11780 | datarootdir!$datarootdir$ac_delim | |
11781 | datadir!$datadir$ac_delim | |
11782 | sysconfdir!$sysconfdir$ac_delim | |
11783 | sharedstatedir!$sharedstatedir$ac_delim | |
11784 | localstatedir!$localstatedir$ac_delim | |
11785 | includedir!$includedir$ac_delim | |
11786 | oldincludedir!$oldincludedir$ac_delim | |
11787 | docdir!$docdir$ac_delim | |
11788 | infodir!$infodir$ac_delim | |
11789 | htmldir!$htmldir$ac_delim | |
11790 | dvidir!$dvidir$ac_delim | |
11791 | pdfdir!$pdfdir$ac_delim | |
11792 | psdir!$psdir$ac_delim | |
11793 | libdir!$libdir$ac_delim | |
11794 | localedir!$localedir$ac_delim | |
11795 | mandir!$mandir$ac_delim | |
11796 | DEFS!$DEFS$ac_delim | |
11797 | ECHO_C!$ECHO_C$ac_delim | |
11798 | ECHO_N!$ECHO_N$ac_delim | |
11799 | ECHO_T!$ECHO_T$ac_delim | |
11800 | LIBS!$LIBS$ac_delim | |
11801 | build_alias!$build_alias$ac_delim | |
11802 | host_alias!$host_alias$ac_delim | |
11803 | target_alias!$target_alias$ac_delim | |
11804 | build!$build$ac_delim | |
11805 | build_cpu!$build_cpu$ac_delim | |
11806 | build_vendor!$build_vendor$ac_delim | |
11807 | build_os!$build_os$ac_delim | |
11808 | host!$host$ac_delim | |
11809 | host_cpu!$host_cpu$ac_delim | |
11810 | host_vendor!$host_vendor$ac_delim | |
11811 | host_os!$host_os$ac_delim | |
11812 | target!$target$ac_delim | |
11813 | target_cpu!$target_cpu$ac_delim | |
11814 | target_vendor!$target_vendor$ac_delim | |
11815 | target_os!$target_os$ac_delim | |
11816 | AWK!$AWK$ac_delim | |
11817 | CC!$CC$ac_delim | |
11818 | CFLAGS!$CFLAGS$ac_delim | |
11819 | LDFLAGS!$LDFLAGS$ac_delim | |
11820 | CPPFLAGS!$CPPFLAGS$ac_delim | |
11821 | ac_ct_CC!$ac_ct_CC$ac_delim | |
11822 | EXEEXT!$EXEEXT$ac_delim | |
11823 | OBJEXT!$OBJEXT$ac_delim | |
11824 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
11825 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
11826 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
11827 | LN_S!$LN_S$ac_delim | |
11828 | SET_MAKE!$SET_MAKE$ac_delim | |
11829 | RANLIB!$RANLIB$ac_delim | |
11830 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
11831 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
11832 | CPP!$CPP$ac_delim | |
11833 | GREP!$GREP$ac_delim | |
11834 | EGREP!$EGREP$ac_delim | |
11835 | ALLOCA!$ALLOCA$ac_delim | |
11836 | LIBOBJS!$LIBOBJS$ac_delim | |
11837 | POW_LIB!$POW_LIB$ac_delim | |
11838 | MSGFMT!$MSGFMT$ac_delim | |
11839 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
11840 | JOBS!$JOBS$ac_delim | |
11841 | STATIC_LINK!$STATIC_LINK$ac_delim | |
11842 | LVM1!$LVM1$ac_delim | |
11843 | POOL!$POOL$ac_delim | |
11844 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
11845 | MIRRORS!$MIRRORS$ac_delim | |
11846 | OWNER!$OWNER$ac_delim | |
11847 | GROUP!$GROUP$ac_delim | |
11848 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
11849 | CLDFLAGS!$CLDFLAGS$ac_delim | |
11850 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
11851 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
11852 | LDDEPS!$LDDEPS$ac_delim | |
11853 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
11854 | LVM_VERSION!$LVM_VERSION$ac_delim | |
11855 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
11856 | DEBUG!$DEBUG$ac_delim | |
11857 | DEVMAPPER!$DEVMAPPER$ac_delim | |
11858 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim | |
11859 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
11860 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
11861 | CMDLIB!$CMDLIB$ac_delim | |
11862 | LOCALEDIR!$LOCALEDIR$ac_delim | |
11863 | CONFDIR!$CONFDIR$ac_delim | |
11864 | _ACEOF | |
11865 | ||
11866 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
7a197a62 AK |
11867 | break |
11868 | elif $ac_last_try; then | |
1995c9ff AK |
11869 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
11870 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7a197a62 AK |
11871 | { (exit 1); exit 1; }; } |
11872 | else | |
11873 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ad6254c5 | 11874 | fi |
7a197a62 | 11875 | done |
1995c9ff AK |
11876 | |
11877 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
11878 | if test -n "$ac_eof"; then | |
11879 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
11880 | ac_eof=`expr $ac_eof + 1` | |
11881 | fi | |
7a197a62 AK |
11882 | |
11883 | cat >>$CONFIG_STATUS <<_ACEOF | |
1995c9ff AK |
11884 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
11885 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11886 | _ACEOF | |
11887 | sed ' | |
11888 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
11889 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
11890 | :n | |
11891 | t n | |
11892 | s/'"$ac_delim"'$/,g/; t | |
11893 | s/$/\\/; p | |
11894 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
11895 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
11896 | rm -f conf$$subs.sed | |
7a197a62 | 11897 | cat >>$CONFIG_STATUS <<_ACEOF |
1995c9ff AK |
11898 | CEOF$ac_eof |
11899 | _ACEOF | |
7a197a62 | 11900 | |
8106cdd5 | 11901 | |
1995c9ff AK |
11902 | ac_delim='%!_!# ' |
11903 | for ac_last_try in false false false false false :; do | |
11904 | cat >conf$$subs.sed <<_ACEOF | |
11905 | STATICDIR!$STATICDIR$ac_delim | |
11906 | DMDIR!$DMDIR$ac_delim | |
11907 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
11908 | INTL!$INTL$ac_delim | |
11909 | CLVMD!$CLVMD$ac_delim | |
11910 | CLUSTER!$CLUSTER$ac_delim | |
11911 | FSADM!$FSADM$ac_delim | |
11912 | DMEVENTD!$DMEVENTD$ac_delim | |
11913 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
11914 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
11915 | _ACEOF | |
11916 | ||
11917 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then | |
11918 | break | |
11919 | elif $ac_last_try; then | |
11920 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
11921 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
11922 | { (exit 1); exit 1; }; } | |
11923 | else | |
11924 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11925 | fi | |
11926 | done | |
11927 | ||
11928 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
11929 | if test -n "$ac_eof"; then | |
11930 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
11931 | ac_eof=`expr $ac_eof + 1` | |
11932 | fi | |
7a197a62 | 11933 | |
1995c9ff AK |
11934 | cat >>$CONFIG_STATUS <<_ACEOF |
11935 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
11936 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
11937 | _ACEOF | |
11938 | sed ' | |
11939 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
11940 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
11941 | :n | |
11942 | t n | |
11943 | s/'"$ac_delim"'$/,g/; t | |
11944 | s/$/\\/; p | |
11945 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
11946 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
11947 | rm -f conf$$subs.sed | |
11948 | cat >>$CONFIG_STATUS <<_ACEOF | |
11949 | :end | |
11950 | s/|#_!!_#|//g | |
11951 | CEOF$ac_eof | |
7a197a62 AK |
11952 | _ACEOF |
11953 | ||
1995c9ff | 11954 | |
7a197a62 AK |
11955 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
11956 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11957 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11958 | # (actually we leave an empty line to preserve line numbers). | |
11959 | if test "x$srcdir" = x.; then | |
11960 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11961 | s/:*\$(srcdir):*/:/ | |
11962 | s/:*\${srcdir}:*/:/ | |
11963 | s/:*@srcdir@:*/:/ | |
11964 | s/^\([^=]*=[ ]*\):*/\1/ | |
11965 | s/:*$// | |
11966 | s/^[^=]*=[ ]*$// | |
11967 | }' | |
11968 | fi | |
11969 | ||
ad6254c5 | 11970 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
11971 | fi # test -n "$CONFIG_FILES" |
11972 | ||
11973 | ||
11974 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
11975 | do | |
11976 | case $ac_tag in | |
11977 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11978 | esac | |
11979 | case $ac_mode$ac_tag in | |
11980 | :[FHL]*:*);; | |
1995c9ff AK |
11981 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
11982 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
11983 | { (exit 1); exit 1; }; };; |
11984 | :[FH]-) ac_tag=-:-;; | |
11985 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11986 | esac | |
11987 | ac_save_IFS=$IFS | |
11988 | IFS=: | |
11989 | set x $ac_tag | |
11990 | IFS=$ac_save_IFS | |
11991 | shift | |
11992 | ac_file=$1 | |
11993 | shift | |
11994 | ||
11995 | case $ac_mode in | |
11996 | :L) ac_source=$1;; | |
11997 | :[FH]) | |
11998 | ac_file_inputs= | |
11999 | for ac_f | |
12000 | do | |
12001 | case $ac_f in | |
12002 | -) ac_f="$tmp/stdin";; | |
12003 | *) # Look for the file first in the build tree, then in the source tree | |
12004 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12005 | # because $ac_f cannot contain `:'. | |
12006 | test -f "$ac_f" || | |
12007 | case $ac_f in | |
12008 | [\\/$]*) false;; | |
12009 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12010 | esac || | |
1995c9ff AK |
12011 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12012 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12013 | { (exit 1); exit 1; }; };; |
12014 | esac | |
12015 | ac_file_inputs="$ac_file_inputs $ac_f" | |
12016 | done | |
12017 | ||
12018 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12019 | # use $as_me), people would be surprised to read: | |
12020 | # /* config.h. Generated by config.status. */ | |
1995c9ff AK |
12021 | configure_input="Generated from "`IFS=: |
12022 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12023 | if test x"$ac_file" != x-; then |
12024 | configure_input="$ac_file. $configure_input" | |
1995c9ff AK |
12025 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12026 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12027 | fi |
12028 | ||
12029 | case $ac_tag in | |
12030 | *:-:* | *:-) cat >"$tmp/stdin";; | |
12031 | esac | |
12032 | ;; | |
80992638 | 12033 | esac |
8106cdd5 | 12034 | |
7a197a62 | 12035 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12036 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12037 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12038 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12039 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 12040 | echo X"$ac_file" | |
7a197a62 AK |
12041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12042 | s//\1/ | |
12043 | q | |
12044 | } | |
12045 | /^X\(\/\/\)[^/].*/{ | |
12046 | s//\1/ | |
12047 | q | |
12048 | } | |
12049 | /^X\(\/\/\)$/{ | |
12050 | s//\1/ | |
12051 | q | |
12052 | } | |
12053 | /^X\(\/\).*/{ | |
12054 | s//\1/ | |
12055 | q | |
12056 | } | |
12057 | s/.*/./; q'` | |
12058 | { as_dir="$ac_dir" | |
12059 | case $as_dir in #( | |
12060 | -*) as_dir=./$as_dir;; | |
12061 | esac | |
12062 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12063 | as_dirs= |
7a197a62 AK |
12064 | while :; do |
12065 | case $as_dir in #( | |
1995c9ff | 12066 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12067 | *) as_qdir=$as_dir;; |
12068 | esac | |
12069 | as_dirs="'$as_qdir' $as_dirs" | |
12070 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12071 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12072 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12073 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12074 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 12075 | echo X"$as_dir" | |
7a197a62 AK |
12076 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12077 | s//\1/ | |
12078 | q | |
12079 | } | |
12080 | /^X\(\/\/\)[^/].*/{ | |
12081 | s//\1/ | |
12082 | q | |
12083 | } | |
12084 | /^X\(\/\/\)$/{ | |
12085 | s//\1/ | |
12086 | q | |
12087 | } | |
12088 | /^X\(\/\).*/{ | |
12089 | s//\1/ | |
12090 | q | |
12091 | } | |
12092 | s/.*/./; q'` | |
12093 | test -d "$as_dir" && break | |
ad6254c5 | 12094 | done |
7a197a62 | 12095 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
1995c9ff AK |
12096 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12097 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12098 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12099 | ac_builddir=. |
12100 | ||
7a197a62 AK |
12101 | case "$ac_dir" in |
12102 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12103 | *) | |
1995c9ff | 12104 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12105 | # A ".." for each directory in $ac_dir_suffix. |
1995c9ff | 12106 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12107 | case $ac_top_builddir_sub in |
12108 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12109 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12110 | esac ;; | |
12111 | esac | |
12112 | ac_abs_top_builddir=$ac_pwd | |
12113 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12114 | # for backward compatibility: | |
12115 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12116 | |
12117 | case $srcdir in | |
7a197a62 | 12118 | .) # We are building in place. |
ad6254c5 | 12119 | ac_srcdir=. |
7a197a62 AK |
12120 | ac_top_srcdir=$ac_top_builddir_sub |
12121 | ac_abs_top_srcdir=$ac_pwd ;; | |
12122 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12123 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12124 | ac_top_srcdir=$srcdir |
12125 | ac_abs_top_srcdir=$srcdir ;; | |
12126 | *) # Relative name. | |
12127 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12128 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12129 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12130 | esac |
7a197a62 | 12131 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12132 | |
ad6254c5 | 12133 | |
7a197a62 AK |
12134 | case $ac_mode in |
12135 | :F) | |
12136 | # | |
12137 | # CONFIG_FILE | |
12138 | # | |
ad6254c5 AK |
12139 | |
12140 | case $INSTALL in | |
12141 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12142 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12143 | esac |
7a197a62 | 12144 | _ACEOF |
795ca3e5 | 12145 | |
7a197a62 AK |
12146 | cat >>$CONFIG_STATUS <<\_ACEOF |
12147 | # If the template does not know about datarootdir, expand it. | |
12148 | # FIXME: This hack should be removed a few years after 2.60. | |
12149 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12150 | ||
12151 | case `sed -n '/datarootdir/ { | |
12152 | p | |
12153 | q | |
12154 | } | |
12155 | /@datadir@/p | |
12156 | /@docdir@/p | |
12157 | /@infodir@/p | |
12158 | /@localedir@/p | |
12159 | /@mandir@/p | |
12160 | ' $ac_file_inputs` in | |
12161 | *datarootdir*) ac_datarootdir_seen=yes;; | |
12162 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1995c9ff AK |
12163 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12164 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12165 | _ACEOF |
7a197a62 AK |
12166 | cat >>$CONFIG_STATUS <<_ACEOF |
12167 | ac_datarootdir_hack=' | |
12168 | s&@datadir@&$datadir&g | |
12169 | s&@docdir@&$docdir&g | |
12170 | s&@infodir@&$infodir&g | |
12171 | s&@localedir@&$localedir&g | |
12172 | s&@mandir@&$mandir&g | |
12173 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12174 | esac | |
12175 | _ACEOF | |
12176 | ||
12177 | # Neutralize VPATH when `$srcdir' = `.'. | |
12178 | # Shell code in configure.ac might set extrasub. | |
12179 | # FIXME: do we really want to maintain this feature? | |
ad6254c5 AK |
12180 | cat >>$CONFIG_STATUS <<_ACEOF |
12181 | sed "$ac_vpsub | |
12182 | $extrasub | |
12183 | _ACEOF | |
12184 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12185 | :t | |
12186 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7a197a62 AK |
12187 | s&@configure_input@&$configure_input&;t t |
12188 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12189 | s&@srcdir@&$ac_srcdir&;t t | |
12190 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12191 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12192 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12193 | s&@builddir@&$ac_builddir&;t t | |
12194 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12195 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12196 | s&@INSTALL@&$ac_INSTALL&;t t | |
12197 | $ac_datarootdir_hack | |
1995c9ff | 12198 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12199 | |
12200 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12201 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12202 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
1995c9ff | 12203 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12204 | which seems to be undefined. Please make sure it is defined." >&5 |
1995c9ff | 12205 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12206 | which seems to be undefined. Please make sure it is defined." >&2;} |
12207 | ||
12208 | rm -f "$tmp/stdin" | |
72b2cb61 | 12209 | case $ac_file in |
7a197a62 AK |
12210 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12211 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
72b2cb61 | 12212 | esac |
7a197a62 AK |
12213 | ;; |
12214 | :H) | |
12215 | # | |
12216 | # CONFIG_HEADER | |
12217 | # | |
12218 | _ACEOF | |
12219 | ||
12220 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12221 | # substitutes the proper values into config.h.in to produce config.h. | |
12222 | rm -f conftest.defines conftest.tail | |
12223 | # First, append a space to every undef/define line, to ease matching. | |
12224 | echo 's/$/ /' >conftest.defines | |
12225 | # Then, protect against being on the right side of a sed subst, or in | |
12226 | # an unquoted here document, in config.status. If some macros were | |
12227 | # called several times there might be several #defines for the same | |
12228 | # symbol, which is useless. But do not sort them, since the last | |
12229 | # AC_DEFINE must be honored. | |
12230 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12231 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12232 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12233 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12234 | # just an empty string. | |
12235 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12236 | ac_dB='\\)[ (].*,\\1define\\2' | |
12237 | ac_dC=' ' | |
12238 | ac_dD=' ,' | |
12239 | ||
12240 | uniq confdefs.h | | |
12241 | sed -n ' | |
12242 | t rset | |
12243 | :rset | |
12244 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12245 | t ok | |
12246 | d | |
12247 | :ok | |
12248 | s/[\\&,]/\\&/g | |
12249 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12250 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12251 | ' >>conftest.defines | |
12252 | ||
12253 | # Remove the space that was appended to ease matching. | |
12254 | # Then replace #undef with comments. This is necessary, for | |
72b2cb61 AK |
12255 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
12256 | # on some systems where configure will not decide to define it. | |
7a197a62 AK |
12257 | # (The regexp can be short, since the line contains either #define or #undef.) |
12258 | echo 's/ $// | |
12259 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12260 | ||
12261 | # Break up conftest.defines: | |
12262 | ac_max_sed_lines=50 | |
12263 | ||
12264 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12265 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12266 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12267 | # et cetera. | |
12268 | ac_in='$ac_file_inputs' | |
12269 | ac_out='"$tmp/out1"' | |
12270 | ac_nxt='"$tmp/out2"' | |
12271 | ||
12272 | while : | |
72b2cb61 | 12273 | do |
7a197a62 AK |
12274 | # Write a here document: |
12275 | cat >>$CONFIG_STATUS <<_ACEOF | |
12276 | # First, check the format of the line: | |
12277 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12278 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12279 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12280 | b | |
12281 | :def | |
12282 | _ACEOF | |
12283 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
72b2cb61 | 12284 | echo 'CEOF |
7a197a62 AK |
12285 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
12286 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12287 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12288 | grep . conftest.tail >/dev/null || break | |
72b2cb61 AK |
12289 | rm -f conftest.defines |
12290 | mv conftest.tail conftest.defines | |
12291 | done | |
7a197a62 | 12292 | rm -f conftest.defines conftest.tail |
72b2cb61 | 12293 | |
7a197a62 | 12294 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
72b2cb61 | 12295 | cat >>$CONFIG_STATUS <<\_ACEOF |
72b2cb61 | 12296 | if test x"$ac_file" != x-; then |
1995c9ff | 12297 | echo "/* $configure_input */" >"$tmp/config.h" |
7a197a62 AK |
12298 | cat "$ac_result" >>"$tmp/config.h" |
12299 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
1995c9ff AK |
12300 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
12301 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12302 | else |
72b2cb61 | 12303 | rm -f $ac_file |
7a197a62 | 12304 | mv "$tmp/config.h" $ac_file |
72b2cb61 AK |
12305 | fi |
12306 | else | |
1995c9ff | 12307 | echo "/* $configure_input */" |
7a197a62 | 12308 | cat "$ac_result" |
72b2cb61 | 12309 | fi |
7a197a62 AK |
12310 | rm -f "$tmp/out12" |
12311 | ;; | |
12312 | ||
12313 | ||
12314 | esac | |
12315 | ||
12316 | done # for ac_tag | |
795ca3e5 | 12317 | |
795ca3e5 | 12318 | |
ad6254c5 AK |
12319 | { (exit 0); exit 0; } |
12320 | _ACEOF | |
795ca3e5 | 12321 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12322 | ac_clean_files=$ac_clean_files_save |
12323 | ||
12324 | ||
12325 | # configure is writing to config.log, and then calls config.status. | |
12326 | # config.status does its own redirection, appending to config.log. | |
12327 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12328 | # by configure, so config.status won't be able to write to it; its | |
12329 | # output is simply discarded. So we exec the FD to /dev/null, | |
12330 | # effectively closing config.log, so it can be properly (re)opened and | |
12331 | # appended to by config.status. When coming back to configure, we | |
12332 | # need to make the FD available again. | |
12333 | if test "$no_create" != yes; then | |
12334 | ac_cs_success=: | |
12335 | ac_config_status_args= | |
12336 | test "$silent" = yes && | |
12337 | ac_config_status_args="$ac_config_status_args --quiet" | |
12338 | exec 5>/dev/null | |
12339 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12340 | exec 5>>config.log | |
12341 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12342 | # would make configure fail if this is the last instruction. | |
12343 | $ac_cs_success || { (exit 1); exit 1; } | |
12344 | fi | |
795ca3e5 | 12345 | |
2dc95e1c AK |
12346 | |
12347 | if test x$ODIRECT != xyes; then | |
1995c9ff AK |
12348 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12349 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12350 | fi |
809fae91 AK |
12351 | |
12352 | if test x$FSADM == xyes; then | |
1995c9ff AK |
12353 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12354 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12355 | fi |
06f62ad1 AK |
12356 | |
12357 | if test x$DMEVENTD == xyes; then | |
1995c9ff AK |
12358 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
12359 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 12360 | fi |